@font-face {
  font-family: "Pretendard";
  src: url("/assets/fonts/Pretendard-Regular-subset.otf") format("opentype");
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Pretendard";
  src: url("/assets/fonts/Pretendard-SemiBold-subset.otf") format("opentype");
  font-weight: 600;
  font-display: swap;
}

@font-face {
  font-family: "Pretendard";
  src: url("/assets/fonts/Pretendard-Bold-subset.otf") format("opentype");
  font-weight: 800;
  font-display: swap;
}

@font-face {
  font-family: "JetBrains Mono";
  src: url("/assets/fonts/JetBrainsMono-Regular-subset.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --ink: #0c0c0c;
  --surface: #161513;
  --raised: #1f1d1a;
  --rule: #353128;
  --paper: #f5f5f2;
  --muted: #b6b2a8;
  --brass: #ffcc1a;
  --brass-deep: #d7a700;
  --max: 1240px;
  --pad: clamp(1.25rem, 4vw, 4rem);
  --ease: cubic-bezier(.2, .8, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--ink); }
body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 82% 6%, rgba(255, 204, 26, .08), transparent 26rem),
    var(--ink);
  color: var(--paper);
  font-family: "Pretendard", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
a { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; }

.skip-link {
  position: fixed;
  z-index: 100;
  top: .75rem;
  left: .75rem;
  padding: .75rem 1rem;
  transform: translateY(-180%);
  background: var(--brass);
  color: #151000;
  font-weight: 800;
}
.skip-link:focus { transform: translateY(0); }

:focus-visible { outline: 3px solid var(--brass); outline-offset: 4px; }
.shell { width: min(100% - (2 * var(--pad)), var(--max)); margin-inline: auto; }
.eyebrow {
  margin: 0 0 1rem;
  color: var(--brass);
  font: 400 .72rem/1.2 "JetBrains Mono", monospace;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.site-header {
  position: absolute;
  z-index: 20;
  inset: 0 0 auto;
  border-bottom: 1px solid rgba(245,245,242,.1);
}
.nav { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.wordmark { display: inline-flex; align-items: baseline; gap: .16rem; min-height: 44px; text-decoration: none; font-size: 1.12rem; font-weight: 800; letter-spacing: -.04em; }
.brand-dot { width: .42em; height: .42em; background: var(--brass); }
.nav-links { display: flex; align-items: center; gap: clamp(.75rem, 2vw, 1.5rem); }
.nav-links a { display: inline-flex; min-height: 44px; align-items: center; color: var(--muted); text-decoration: none; font-size: .9rem; }
.nav-links a:hover { color: var(--paper); }
.nav-download { padding-inline: 1rem; border: 1px solid var(--rule); border-radius: 4px; }

.hero { position: relative; isolation: isolate; min-height: min(960px, 100svh); padding: 8rem 0 5rem; overflow: clip; border-bottom: 1px solid var(--rule); background: var(--ink); }
.hero-grid { min-height: calc(min(960px, 100svh) - 13rem); display: flex; align-items: center; }
.hero-copy { position: relative; z-index: 3; width: 52%; max-width: 40rem; }
.hero h1, .chapter h2, .together h2, .closing h2 {
  margin: 0;
  max-width: 14ch;
  font-size: clamp(3.4rem, 6.4vw, 6.3rem);
  line-height: .91;
  letter-spacing: -.075em;
}
.hero h1 { max-width: 12ch; font-size: clamp(4rem, 7.2vw, 7rem); line-height: .96; letter-spacing: -.07em; }
.hero h1 span { color: var(--brass); }
.hero-intro { max-width: 29rem; margin: 2rem 0 0; color: var(--muted); font-size: clamp(1.05rem, 1.45vw, 1.28rem); text-wrap: pretty; }
.hero-art { position: absolute; z-index: 1; inset: 7rem 0 3rem; margin: 0; overflow: hidden; user-select: none; -webkit-user-select: none; }
.hero-art::after { content: ""; position: absolute; z-index: 1; inset: 0; pointer-events: none; background: linear-gradient(90deg, var(--ink) 0%, rgba(12,12,12,.85) 30%, transparent 60%), linear-gradient(180deg, var(--ink), transparent 12%, transparent 82%, var(--ink)); }
.lock-float { width: 100%; height: 100%; transform-origin: 72% 55%; animation: lock-float 8s ease-in-out infinite; animation-play-state: paused; }
.hero-art.is-floating .lock-float { animation-play-state: running; }
.hero-art img { width: 100%; height: 100%; object-fit: contain; object-position: right center; pointer-events: none; -webkit-user-drag: none; transform-origin: 72% 55%; transform: perspective(1500px) rotateY(var(--rx, 0deg)) rotateX(var(--ry, 0deg)); transition: transform .6s var(--ease); }
.hero-art.is-dragging img { transition: none; }
.lock-control { position: absolute; z-index: 2; inset: 2% 6% 10% 55%; padding: 0; border: 0; border-radius: 32px; background: none; cursor: grab; touch-action: pan-y pinch-zoom; }
.lock-control:disabled { pointer-events: none; cursor: default; }
.hero-art.is-dragging .lock-control { cursor: grabbing; }
.lock-control:focus-visible { outline-offset: -4px; outline-width: 1px; }
.lock-tools { position: absolute; z-index: 2; right: max(var(--pad), calc((100vw - var(--max)) / 2)); bottom: .5rem; display: flex; align-items: center; gap: 1.5rem; color: var(--muted); font-size: .72rem; }
.lock-tools[hidden] { display: none; }
.lock-tools > span { opacity: .75; }
.lock-tools button { min-height: 44px; padding: .5rem 0; border: 0; border-bottom: 1px solid var(--rule); background: none; color: inherit; cursor: pointer; }
.lock-tools button:hover { color: var(--brass); }
@keyframes lock-float { 0%, 100% { transform: translateY(0) rotate(-.3deg); } 50% { transform: translateY(-8px) rotate(.4deg); } }
.download-row { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 2.2rem; }
.store-badge { min-width: 176px; min-height: 56px; display: inline-flex; align-items: center; gap: .75rem; padding: .62rem .9rem; border: 1px solid #4a463c; border-radius: 7px; background: #080808; text-decoration: none; transition: transform .2s var(--ease), border-color .2s; }
.store-badge:hover { transform: translateY(-2px); border-color: var(--brass); }
.store-badge svg { flex: none; width: 27px; height: 27px; }
.store-badge small, .store-badge strong { display: block; }
.store-badge small { color: #c7c4bc; font-size: .62rem; line-height: 1.1; }
.store-badge strong { margin-top: .12rem; font-size: 1rem; line-height: 1.15; letter-spacing: -.02em; }
.purchase-note { margin: .75rem 0 0; color: #918d84; font-size: .75rem; }

.problem { padding: clamp(5rem, 11vw, 10rem) 0; }
.problem-line { display: grid; grid-template-columns: .35fr 1fr; gap: 2rem; padding-block: 1.3rem; border-top: 1px solid var(--rule); }
.problem-line:first-of-type { margin-top: 4rem; }
.problem-line .num { color: var(--brass); font: .76rem "JetBrains Mono", monospace; }
.problem-line p { margin: 0; max-width: 28ch; font-size: clamp(1.55rem, 3.2vw, 3rem); line-height: 1.08; letter-spacing: -.045em; }
.problem-lead { max-width: 24ch; margin: 0; font-size: clamp(2rem, 5vw, 4.6rem); line-height: 1; letter-spacing: -.055em; }

.chapter { padding: clamp(5rem, 10vw, 9rem) 0; border-top: 1px solid var(--rule); }
.chapter-head { display: grid; grid-template-columns: .65fr 1fr; gap: clamp(2rem, 7vw, 8rem); align-items: end; margin-bottom: 5rem; }
.chapter h2 { max-width: 9ch; font-size: clamp(2.9rem, 6vw, 6.2rem); }
.chapter-deck { max-width: 34rem; margin: 0; color: var(--muted); font-size: 1.08rem; }
.sequence { display: grid; grid-template-columns: repeat(12, 1fr); gap: 1.25rem; align-items: center; }
.step { grid-column: span 4; min-height: 230px; padding: 1.6rem 0; border-top: 2px solid var(--rule); }
.step:nth-child(2) { transform: translateY(3rem); }
.step:nth-child(3) { transform: translateY(6rem); }
.step-no { color: var(--brass); font: .75rem "JetBrains Mono", monospace; }
.step h3 { margin: 3.5rem 0 .65rem; font-size: 1.5rem; letter-spacing: -.035em; }
.step p { margin: 0; color: var(--muted); }

.screens-note { margin: 9rem 0 1rem; color: #8f8b82; font: .65rem/1.5 "JetBrains Mono", monospace; letter-spacing: .06em; }
.screens { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(.75rem, 1.6vw, 1.35rem); align-items: start; }
.screen-card { min-width: 0; margin: 0; }
.phone-shot { overflow: hidden; border: 1px solid var(--rule); border-radius: 26px; background: #050505; box-shadow: 0 35px 80px rgba(0,0,0,.4); }
.phone-shot img { width: 100%; height: auto; }
.screen-card:nth-child(even) { margin-top: 2.5rem; }
.screen-card figcaption { margin-top: .8rem; color: #8f8b82; font: .65rem/1.5 "JetBrains Mono", monospace; }

.demo-section { padding: clamp(5rem, 11vw, 10rem) 0; background: var(--paper); color: #111; }
.demo-grid { display: grid; grid-template-columns: minmax(0,.8fr) minmax(380px,1.2fr); gap: clamp(3rem, 9vw, 9rem); align-items: center; }
.demo-copy h2 { margin: 0; font-size: clamp(2.8rem, 5vw, 5.2rem); line-height: .94; letter-spacing: -.065em; }
.demo-copy p { max-width: 31rem; color: #5c584f; }
.demo-label { color: #725800; }
.timer-demo { position: relative; min-height: 510px; display: grid; place-items: center; padding: 2rem; background: #12110f; color: var(--paper); border-radius: 42% 42% 18px 18px / 28% 28% 18px 18px; box-shadow: inset 0 1px rgba(255,255,255,.08), 0 40px 80px rgba(0,0,0,.22); }
.timer-demo::before { content: ""; position: absolute; inset: 2rem; border: 1px solid #36332d; border-radius: 50%; }
.timer-face { position: relative; z-index: 1; text-align: center; }
.timer-status { color: var(--brass); font: .7rem "JetBrains Mono", monospace; letter-spacing: .14em; }
.timer-value { margin: 1rem 0 .4rem; font-size: clamp(4rem, 9vw, 7rem); font-weight: 400; line-height: 1; letter-spacing: -.065em; font-variant-numeric: tabular-nums; }
.timer-controls { display: flex; justify-content: center; gap: .75rem; margin-top: 1.5rem; }
.timer-controls button { min-height: 46px; padding: .65rem 1.1rem; border: 1px solid #4d493f; border-radius: 3px; background: transparent; color: var(--paper); cursor: pointer; }
.timer-controls .timer-primary { background: var(--brass); border-color: var(--brass); color: #161100; font-weight: 800; }
.timer-controls button:disabled { opacity: .5; cursor: default; }
.timer-fallback { max-width: 24rem; margin: 1.5rem auto 0; color: var(--muted); font-size: .85rem; }

.together { padding: clamp(6rem, 13vw, 12rem) 0; overflow: hidden; }
.together-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(3rem, 8vw, 8rem); align-items: center; }
.together h2 { max-width: 9ch; font-size: clamp(3.1rem, 6vw, 6.2rem); }
.together-copy > p:last-of-type { max-width: 32rem; color: var(--muted); font-size: 1.1rem; }
.orbit { position: relative; min-height: 520px; display: grid; place-items: center; background: radial-gradient(ellipse at center, rgba(255,204,26,.055), transparent 58%); }
.orbit::before, .orbit::after { content: ""; position: absolute; border: 1px solid rgba(193,170,108,.14); border-radius: 50%; }
.orbit::before { width: 420px; height: 420px; }
.orbit::after { width: 280px; height: 280px; }
.person { position: absolute; z-index: 2; min-width: 142px; padding: 1rem 1.2rem; border: 1px solid #36332c; border-radius: 16px; background: linear-gradient(145deg, #201f1b, #121210); box-shadow: 0 16px 40px rgba(0,0,0,.25), inset 0 1px rgba(255,255,255,.04); }
.person-avatar { display: grid; place-items: center; width: 32px; height: 32px; margin-bottom: .85rem; border: 1px solid #494236; border-radius: 50%; background: #28251e; color: #d5c49b; font-size: .65rem; letter-spacing: .04em; }
.person strong { font-size: .85rem; font-weight: 600; }
.person span { display: flex; align-items: center; gap: .4rem; margin-top: .25rem; color: var(--muted); font-size: .7rem; }
.person span::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: #9cb297; }
.person:nth-child(1) { top: 0; left: 34%; }
.person:nth-child(2) { right: 0; bottom: 16%; }
.person:nth-child(3) { left: 0; bottom: 7%; }
.orbit-center { z-index: 1; width: 116px; height: 132px; display: grid; place-items: center; border: 1px solid #5e5133; border-radius: 30px; background: linear-gradient(145deg, #29261f, #10100e 70%); color: #d6b777; box-shadow: inset 0 1px rgba(255,239,185,.14), 0 20px 44px rgba(0,0,0,.5); }
.orbit-center svg { width: 53px; height: 64px; filter: drop-shadow(0 2px 3px rgba(0,0,0,.6)); }

.progress-story { padding: clamp(5rem, 10vw, 9rem) 0; border-top: 1px solid var(--rule); }
.progress-grid { display: grid; grid-template-columns: .75fr 1.25fr; gap: clamp(3rem, 9vw, 10rem); align-items: end; }
.progress-grid h2 { max-width: 9ch; margin: 0; font-size: clamp(3rem, 6vw, 6rem); line-height: .94; letter-spacing: -.065em; }
.progress-copy { max-width: 36rem; }
.progress-copy p { margin: 0; color: var(--muted); font-size: 1.1rem; }
.progress-rule { display: grid; grid-template-columns: 1fr auto; gap: 1rem; margin-top: 3rem; padding: 1.2rem 0; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.progress-rule span:last-child { color: var(--brass); font-family: "JetBrains Mono", monospace; }

.faq { padding: clamp(5rem, 10vw, 9rem) 0; border-top: 1px solid var(--rule); }
.faq-layout { display: grid; grid-template-columns: .6fr 1fr; gap: clamp(2rem, 8vw, 8rem); }
.faq h2 { margin: 0; font-size: clamp(2.8rem, 5vw, 5rem); letter-spacing: -.06em; }
details { border-top: 1px solid var(--rule); }
details:last-child { border-bottom: 1px solid var(--rule); }
summary { min-height: 68px; display: flex; align-items: center; justify-content: space-between; gap: 1rem; cursor: pointer; font-weight: 600; list-style: none; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--brass); font: 1.2rem "JetBrains Mono", monospace; }
details[open] summary::after { content: "−"; }
details p { max-width: 44rem; margin: 0 0 1.5rem; color: var(--muted); }

.closing { padding: clamp(6rem, 12vw, 11rem) 0; background: var(--brass); color: #171100; }
.closing-grid { display: grid; grid-template-columns: 1fr .65fr; gap: 3rem; align-items: end; }
.closing h2 { max-width: 10ch; font-size: clamp(3.2rem, 7vw, 7rem); }
.closing .eyebrow { color: #5e4900; }
.closing .store-badge { color: var(--paper); border-color: #171100; }
.closing .purchase-note { color: #5e4900; }

.site-footer { padding: 3rem 0; }
.footer-grid { display: flex; justify-content: space-between; align-items: flex-start; gap: 2rem; }
.footer-links { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: .5rem 1.5rem; }
.footer-links a { min-height: 44px; display: inline-flex; align-items: center; color: var(--muted); text-decoration: none; }
.footer-links a:hover { color: var(--paper); }
.footer-note { margin: 1.3rem 0 0; color: #77736b; font-size: .74rem; }

.legal-main { padding: 9rem 0 6rem; }
.legal-head { max-width: 760px; margin-bottom: 4rem; }
.legal-head h1 { margin: 0; font-size: clamp(3rem, 7vw, 6.5rem); line-height: .95; letter-spacing: -.065em; }
.legal-date { color: var(--muted); }
.legal-content { max-width: 780px; margin-left: auto; }
.legal-content section { padding: 2rem 0; border-top: 1px solid var(--rule); }
.legal-content h2 { margin: 0 0 1rem; font-size: 1.15rem; }
.legal-content p, .legal-content li { color: var(--muted); }
.legal-content a { color: var(--brass); }
.support-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }
.text-button { min-height: 46px; display: inline-flex; align-items: center; padding: .65rem 1rem; border: 1px solid var(--rule); text-decoration: none; }
.text-button.primary { background: var(--brass); border-color: var(--brass); color: #171100; font-weight: 800; }

[data-reveal] { opacity: 1; transform: none; }
.has-reveal-motion [data-reveal] { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.has-reveal-motion [data-reveal].is-visible { opacity: 1; transform: none; }

@media (max-width: 900px) {
  .hero { min-height: 0; padding: 8rem 0 0; }
  .hero-grid { min-height: 0; flex-direction: column; align-items: stretch; }
  .chapter-head, .demo-grid, .together-grid, .progress-grid, .faq-layout, .closing-grid { grid-template-columns: 1fr; }
  .hero-copy { width: 100%; max-width: 40rem; }
  .hero-art { position: relative; flex-shrink: 0; inset: auto; width: calc(100% + (2 * var(--pad))); height: clamp(420px, 65vw, 600px); margin: 1rem calc(-1 * var(--pad)) 0; }
  .hero-art::after { background: linear-gradient(180deg, var(--ink), transparent 12%, transparent 80%, var(--ink)), linear-gradient(90deg, rgba(12,12,12,.7), transparent 40%); }
  .hero-art img { object-fit: cover; object-position: 75% center; }
  .lock-control { inset: 4% 6% 15% 25%; }
  .lock-tools { right: var(--pad); bottom: .5rem; }
  .chapter-head { margin-bottom: 3rem; }
  .screens { grid-template-columns: repeat(4, minmax(210px, 1fr)); overflow-x: auto; padding: 2rem var(--pad) 3rem; margin-inline: calc(-1 * var(--pad)); scroll-snap-type: x proximity; }
  .screen-card { scroll-snap-align: center; }
  .screen-card:nth-child(even) { margin-top: 0; }
  .together-copy { position: relative; z-index: 2; }
  .faq-layout { gap: 3rem; }
}

@media (max-width: 640px) {
  .nav-links a:not(.nav-download):not(.lang-link) { display: none; }
  .hero h1 { font-size: clamp(3.35rem, 17vw, 5rem); }
  .hero-intro { margin-top: 1.5rem; }
  .download-row { display: grid; }
  .store-badge { width: 100%; }
  .problem-line { grid-template-columns: 3rem 1fr; }
  .sequence { display: block; }
  .step, .step:nth-child(2), .step:nth-child(3) { min-height: 0; transform: none; }
  .step h3 { margin-top: 2rem; }
  .screens-note { margin-top: 5rem; }
  .screens { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 76vw; }
  .timer-demo { min-height: 390px; border-radius: 32% 32% 16px 16px / 22% 22% 16px 16px; }
  .orbit { min-height: 420px; transform: scale(.85); margin-inline: -10%; }
  .footer-grid { display: block; }
  .footer-links { justify-content: flex-start; margin-top: 2rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  [data-reveal], .has-reveal-motion [data-reveal] { opacity: 1; transform: none; }
  .hero-art img, .lock-float { transform: none !important; }
  .lock-float { animation: none !important; }
}

@media (forced-colors: active) {
  .brand-dot, .person span::before { forced-color-adjust: none; background: Highlight; }
}
