/* ---------- Tokens ---------- */
:root {
  --paper: #FFF8EC;
  --paper-deep: #F6EAD3;
  --ink: #142B2B;
  --ink-soft: #4B615E;
  --teal: #2A9D8F;
  --teal-dark: #1F7A70;
  --teal-tint: #E6F3F0;
  --orange: #FF5A1F;
  --orange-dark: #E04A12;
  --green: #2DB300;
  --night: #0F2726;
  --night-text: #D6E4E1;
  --max: 1100px;
  --gutter: 16px;
  --r-pill: 999px;
  --r-lg: 28px;
  --font: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans KR", system-ui, sans-serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  word-break: keep-all;
  overflow-wrap: break-word;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
p { margin: 0 0 1em; }
h1, h2, h3 { margin: 0; line-height: 1.15; }
h3 { font-size: 1.35rem; font-weight: 800; letter-spacing: -0.015em; margin-bottom: .45em; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 6px; }
.footer-box :focus-visible { outline-color: var(--orange); }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

.display {
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.08;
  font-size: clamp(2.5rem, 8.2vw, 4.75rem);
}
.h-section {
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.12;
  font-size: clamp(1.9rem, 5vw, 3.1rem);
  margin-bottom: clamp(28px, 5vw, 56px);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .4em;
  padding: 12px 22px; border-radius: var(--r-pill);
  font-weight: 800; font-size: .98rem; letter-spacing: -0.01em; white-space: nowrap;
  transition: transform .15s var(--ease), background .15s, color .15s, box-shadow .15s;
}
.btn:active { transform: translateY(1px) scale(.99); }
.btn-play { background: var(--orange); color: var(--ink); box-shadow: 0 10px 24px -10px rgba(255, 90, 31, .7); }
.btn-play::after { content: "▶"; font-size: .7em; }
.btn-play:hover { background: var(--orange-dark); }
.btn-quiet { background: transparent; color: var(--ink); border: 2px solid var(--ink); }
.btn-quiet:hover { background: var(--ink); color: var(--paper); }
.btn-ink { background: var(--ink); color: var(--paper); }
.btn-ink::after { content: "▶"; font-size: .7em; }
.btn-ink:hover { background: #000; }
.btn-lg { padding: 16px 30px; font-size: 1.1rem; }
.btn-header { padding: 9px 16px; font-size: .9rem; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  transition: background .25s, box-shadow .25s, backdrop-filter .25s;
}
.no-js .site-header,
.site-header.is-solid {
  background: rgba(255, 248, 236, .86);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 rgba(20, 43, 43, .08);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 64px; }
.brand { min-width: 0; display: flex; }
.brand img { width: auto; height: auto; max-height: 18px; max-width: 100%; }
.site-nav { display: none; gap: 28px; font-weight: 700; color: var(--ink-soft); }
.site-nav a:hover { color: var(--ink); }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  min-height: min(100svh, 920px);
  display: flex; align-items: center;
  padding: 104px 0 64px;
  background:
    radial-gradient(60% 50% at 85% 20%, rgba(42, 157, 143, .14), transparent 70%),
    radial-gradient(50% 45% at 10% 90%, rgba(255, 90, 31, .12), transparent 70%),
    var(--paper);
}
.hero-grid { display: grid; gap: 40px; align-items: center; }
.hero-copy .display .line { display: block; overflow: hidden; }
.hero-copy .display .line > span { display: block; }
.lead { color: var(--ink-soft); font-size: clamp(1.05rem, 2vw, 1.25rem); max-width: 34em; margin: 22px 0 30px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.hero-visual { position: relative; width: 100%; max-width: 560px; margin: 0 auto; padding: 18px 22px 26px; }
.device {
  position: relative; z-index: 2;
  border-radius: 22px; padding: 10px;
  background: var(--ink);
  box-shadow: 0 40px 80px -30px rgba(20, 43, 43, .45), 0 0 0 1px rgba(255, 255, 255, .06) inset;
  transform: rotate(-3deg);
}
.device-screen { border-radius: 14px; width: 100%; }
.mascot {
  position: absolute; z-index: 3;
  width: clamp(96px, 22%, 150px);
  right: -4%; top: -14%;
  transform: rotate(8deg);
  filter: drop-shadow(0 14px 18px rgba(20, 43, 43, .25));
}
.blob { position: absolute; border-radius: 50%; z-index: 1; opacity: .9; }
.blob-orange { width: 34%; aspect-ratio: 1; background: var(--orange); left: -6%; bottom: -6%; }
.blob-green { width: 16%; aspect-ratio: 1; background: var(--green); right: 6%; bottom: -4%; }

.scroll-cue {
  position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%);
  width: 26px; height: 42px; border: 2px solid var(--ink); border-radius: 14px; opacity: .55;
  display: none;
}
.scroll-cue span {
  position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px;
  border-radius: 2px; background: var(--ink);
}

/* ---------- Statement ---------- */
.statement { padding: clamp(72px, 12vw, 140px) 0 clamp(40px, 8vw, 90px); }
.words {
  margin: 0;
  font-weight: 800; letter-spacing: -0.03em; line-height: 1.2;
  font-size: clamp(1.75rem, 5.4vw, 3.4rem);
  max-width: 22em;
}

/* word reveal */
[data-reveal] .w { display: inline-block; overflow: hidden; vertical-align: bottom; }
[data-reveal] .w > span { display: inline-block; }
.motion [data-reveal] .w > span { transform: translateY(110%); transition: transform .7s var(--ease); }
.motion [data-reveal].in .w > span { transform: translateY(0); }

/* ---------- About ---------- */
.about { padding: clamp(40px, 8vw, 90px) 0 clamp(72px, 12vw, 140px); }
.pillars { display: grid; gap: 36px; }
.pillar { padding-top: 18px; border-top: 4px solid; }
.pillar p { color: var(--ink-soft); margin: 0; }
.pillar-orange { border-color: var(--orange); }
.pillar-green { border-color: var(--green); }
.pillar-teal { border-color: var(--teal); }
.about-now { margin: 48px 0 0; color: var(--ink-soft); font-size: 1.05rem; }
.about-now strong { color: var(--ink); }

/* ---------- Games ---------- */
.games { background: var(--teal-tint); padding: clamp(72px, 12vw, 140px) 0; }
.game { display: grid; gap: 28px; }
.game-info { max-width: 640px; }
.game-shot {
  position: relative; display: block; border-radius: 18px; overflow: hidden;
  box-shadow: 0 30px 60px -30px rgba(20, 43, 43, .45);
  transition: transform .25s var(--ease);
}
@media (hover: hover) { .game-shot:hover { transform: translateY(-4px); } }
.game-shot img { width: 100%; }
.play-badge {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 76px; height: 76px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--orange); color: var(--ink); font-size: 1.6rem; padding-left: 6px;
  box-shadow: 0 16px 32px -10px rgba(255, 90, 31, .8);
}
.game-status { color: var(--teal-dark); font-weight: 700; font-size: .95rem; margin-bottom: 10px; }
.game-info h3 { font-size: clamp(1.8rem, 4vw, 2.4rem); letter-spacing: -0.03em; }
.game-info > p:not(.game-status) { color: var(--ink-soft); }
.game-meta { margin: 22px 0 26px; display: grid; gap: 8px; }
.game-meta div { display: flex; gap: 14px; align-items: baseline; }
.game-meta dt { flex: 0 0 4.5em; font-weight: 700; color: var(--ink); }
.game-meta dd { margin: 0; color: var(--ink-soft); }

/* ---------- Footer ---------- */
.site-footer { padding: 14px; background: var(--paper); }
.footer-box {
  background: var(--night); color: var(--night-text);
  border-radius: var(--r-lg);
  padding: clamp(36px, 6vw, 64px) clamp(20px, 5vw, 56px);
  font-size: .92rem;
}
.footer-top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 18px; margin-bottom: 36px; }
.footer-logo { height: 15px; width: auto; filter: brightness(1.15); }
.footer-nav { display: flex; gap: 22px; font-weight: 700; }
.footer-nav a:hover { color: #fff; }
.biz-info { margin: 0 0 14px; display: grid; gap: 6px; }
.biz-info div { display: flex; gap: 12px; }
.biz-info dt { font-weight: 700; min-width: 7.5em; color: #fff; }
.biz-info dd { margin: 0; }
.biz-info dd a:hover { color: #fff; text-decoration: underline; }
.copyright { margin: 0; font-size: .85rem; color: #8CA39E; }

/* ---------- Floating dock (desktop) ---------- */
.float-dock {
  position: fixed; right: 18px; bottom: 22px; z-index: 40;
  display: none; flex-direction: column; gap: 10px; align-items: flex-end;
  opacity: 0; transform: translateY(12px); pointer-events: none; visibility: hidden;
  transition: opacity .3s, transform .3s var(--ease), visibility 0s .3s;
}
.float-dock.is-visible { opacity: 1; transform: none; pointer-events: auto; visibility: visible; transition-delay: 0s; }
.no-js .float-dock { display: none; }
.dock-play, .dock-top {
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: var(--r-pill); font-weight: 800;
  background: #fff; color: var(--ink);
  box-shadow: 0 14px 30px -12px rgba(20, 43, 43, .45), 0 0 0 1px rgba(20, 43, 43, .06);
}
.dock-play { padding: 12px 20px; }
.dock-play::after { content: "▶"; font-size: .7em; margin-left: .4em; }
.dock-play:hover { background: var(--orange); }
.dock-top { width: 44px; height: 44px; font-size: 1.1rem; }

/* ---------- Hero load sequence ---------- */
.motion .hero-copy .display .line > span { transform: translateY(110%); animation: rise .9s var(--ease) forwards; }
.motion .hero-copy .display .line:nth-child(2) > span { animation-delay: .1s; }
.motion .hero-copy .display .line:nth-child(3) > span { animation-delay: .2s; }
.motion .lead, .motion .hero-actions { opacity: 0; animation: fade .8s var(--ease) .45s forwards; }
.motion .hero-visual { opacity: 0; transform: translateY(30px) rotate(0); animation: visual 1.1s var(--ease) .25s forwards; }
@keyframes rise { to { transform: translateY(0); } }
@keyframes fade { to { opacity: 1; } }
@keyframes visual { to { opacity: 1; transform: none; } }

/* ---------- Tablet / Desktop ---------- */
@media (min-width: 720px) {
  .header-inner { height: 76px; }
  .brand img { max-height: 24px; }
  .site-nav { display: flex; }
  .btn-header { padding: 11px 20px; font-size: .95rem; }
  .hero-grid { gap: 48px; }
  .hero-visual { max-width: 620px; }
  .pillars { max-width: 720px; }
  .float-dock { display: flex; }
}
@media (min-width: 900px) {
  .pillars { max-width: none; grid-template-columns: repeat(3, 1fr); gap: 32px; }
}
@media (min-width: 960px) {
  .display { font-size: clamp(3rem, 5.4vw, 4.75rem); }
  .hero { padding: 120px 0 96px; }
  .hero-grid { grid-template-columns: 11fr 10fr; gap: 56px; }
  .hero-visual { max-width: none; margin: 0; padding: 28px 12px 28px 0; }
  .lead { margin-bottom: 36px; }
  .scroll-cue { display: block; }
  .game { grid-template-columns: 7fr 5fr; gap: 48px; align-items: center; }
  .game-info { max-width: none; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .game-shot, .float-dock { transition: none; }
}
