:root {
  color-scheme: light dark;
  --paper: #f7f2e9;
  --paper-strong: #fffaf1;
  --paper-soft: #eee7dc;
  --ink: #1d1c19;
  --muted: #746f67;
  --faint: #9b958b;
  --line: color-mix(in srgb, var(--ink), transparent 88%);
  --accent: #e85823;
  --accent-deep: #b83b12;
  --accent-soft: color-mix(in srgb, var(--accent), transparent 88%);
  --glass: color-mix(in srgb, var(--paper-strong), transparent 18%);
  --shadow-xl: 0 34px 100px rgba(62, 47, 25, .16), 0 8px 24px rgba(62, 47, 25, .08);
  --shadow-md: 0 18px 50px rgba(62, 47, 25, .11);
  --ease: cubic-bezier(.16, 1, .3, 1);
  --page-gutter: clamp(20px, 5vw, 76px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  overflow-x: clip;
  background: var(--paper);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang SC", "Helvetica Neue", sans-serif;
  -webkit-font-smoothing: antialiased;
}
button, input, a { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }

.skip-link {
  position: fixed; z-index: 100; left: 16px; top: 12px; padding: 10px 14px;
  border-radius: 12px; background: var(--ink); color: var(--paper); transform: translateY(-150%);
}
.skip-link:focus { transform: translateY(0); }

.site-header {
  position: fixed; z-index: 40; top: 14px; left: 50%; width: min(1120px, calc(100% - 28px)); height: 58px;
  padding: 0 10px 0 12px; display: flex; align-items: center; gap: 24px; transform: translateX(-50%);
  border: 1px solid color-mix(in srgb, var(--paper-strong), transparent 26%); border-radius: 19px;
  background: color-mix(in srgb, var(--paper), transparent 18%); box-shadow: 0 12px 38px rgba(51, 40, 23, .08);
  backdrop-filter: blur(22px) saturate(150%); -webkit-backdrop-filter: blur(22px) saturate(150%);
}
.brand { display: inline-flex; align-items: center; gap: 9px; font-weight: 720; letter-spacing: -.02em; }
.brand img { border-radius: 9px; box-shadow: 0 4px 13px rgba(41, 29, 12, .17); }
.site-header nav { margin-left: auto; display: flex; gap: 5px; }
.site-header nav a { min-height: 40px; padding: 0 12px; display: grid; place-items: center; border-radius: 12px; color: var(--muted); font-size: 13px; }
.site-header nav a:hover { background: color-mix(in srgb, var(--ink), transparent 94%); color: var(--ink); }
.nav-download { min-height: 40px; padding: 0 17px; display: grid; place-items: center; border-radius: 13px; background: var(--ink); color: var(--paper); font-size: 13px; font-weight: 650; }

.screen { position: relative; min-height: 100svh; padding: 104px var(--page-gutter) 56px; }
.hero { display: grid; grid-template-columns: minmax(0, .9fr) minmax(420px, 1.1fr); align-items: center; gap: clamp(44px, 7vw, 116px); overflow: hidden; }
.hero::before {
  content: ""; position: absolute; width: 58vw; aspect-ratio: 1; right: -15vw; top: -24vw; border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--accent), transparent 72%), transparent 68%); filter: blur(18px); pointer-events: none;
}
.hero-copy, .hero-object, .how-layout, .product-layout, .privacy-layout, .closing-inner { position: relative; z-index: 1; }
.eyebrow { margin: 0 0 20px; color: var(--accent-deep); font-size: 12px; font-weight: 720; letter-spacing: .13em; text-transform: uppercase; }
.status-dot { display: inline-block; width: 8px; height: 8px; margin-right: 8px; border-radius: 50%; background: #32b95a; box-shadow: 0 0 0 5px rgba(50,185,90,.12); }
h1, h2 { margin: 0; font-weight: 780; letter-spacing: -.065em; line-height: .98; }
h1 { max-width: 760px; font-size: clamp(3.25rem, 6.3vw, 6.8rem); }
h2 { font-size: clamp(3rem, 5.3vw, 6rem); }
.hero-lede { max-width: 620px; margin: 27px 0 0; color: var(--muted); font-size: clamp(17px, 1.45vw, 21px); line-height: 1.65; }
.hero-actions, .closing-actions { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 10px; }
.button { min-height: 50px; padding: 0 20px; display: inline-flex; align-items: center; justify-content: center; border-radius: 15px; font-size: 14px; font-weight: 680; transition: transform .18s var(--ease), box-shadow .18s ease, background-color .18s ease; }
.button:hover { transform: translateY(-2px); }
.button:active { transform: scale(.98); }
.button.primary { background: var(--ink); color: var(--paper); box-shadow: 0 15px 34px rgba(38, 30, 18, .17); }
.button.secondary { background: color-mix(in srgb, var(--paper-strong), transparent 10%); box-shadow: inset 0 0 0 1px var(--line); }
.trust-line { margin: 24px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 19px; list-style: none; color: var(--faint); font-size: 12px; }
.trust-line li::before { content: "·"; margin-right: 8px; color: var(--accent); }

.hero-object { width: min(100%, 680px); justify-self: center; }
.paper-card {
  position: relative; padding: clamp(24px, 3.2vw, 42px); overflow: hidden; border-radius: 28px 28px 28px 20px;
  background: color-mix(in srgb, var(--paper-strong), transparent 3%); box-shadow: var(--shadow-xl), inset 0 0 0 1px color-mix(in srgb, var(--ink), transparent 92%);
}
.paper-card::after { content: ""; position: absolute; right: 0; top: 0; width: 48px; height: 48px; background: linear-gradient(225deg, var(--paper-soft) 49%, transparent 51%); filter: drop-shadow(-5px 6px 7px rgba(41,31,18,.08)); }
.card-topline { display: flex; align-items: center; justify-content: space-between; gap: 16px; color: var(--muted); font-size: 11px; font-weight: 720; letter-spacing: .12em; }
.card-topline i { display: inline-block; width: 7px; height: 7px; margin-right: 7px; border-radius: 50%; background: var(--accent); }
.demo-label { padding: 7px 10px; border-radius: 99px; background: var(--accent-soft); color: var(--accent-deep); letter-spacing: 0; }
.paper-card > label { display: block; margin-top: 42px; color: var(--muted); font-size: 12px; font-weight: 650; }
.demo-input-row { margin-top: 8px; display: grid; grid-template-columns: 1fr auto; gap: 9px; }
.demo-input-row input { min-width: 0; height: 58px; padding: 0 17px; border: 0; border-radius: 14px; outline: none; background: color-mix(in srgb, var(--paper), transparent 18%); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); font-size: 20px; font-weight: 640; }
.demo-input-row input:focus { box-shadow: inset 0 0 0 2px var(--accent), 0 0 0 4px var(--accent-soft); }
.demo-input-row button { min-width: 116px; border: 0; border-radius: 14px; background: var(--accent); color: #fff8ef; cursor: pointer; font-weight: 700; }
.term-chips { margin-top: 11px; display: flex; flex-wrap: wrap; gap: 7px; }
.term-chips button { min-height: 38px; padding: 0 12px; border: 0; border-radius: 11px; background: transparent; color: var(--muted); box-shadow: inset 0 0 0 1px var(--line); cursor: pointer; font-size: 12px; }
.term-chips button:hover { color: var(--ink); background: var(--paper-soft); }
.answer { min-height: 158px; margin-top: 24px; padding: 22px; border-radius: 18px; background: color-mix(in srgb, var(--ink), transparent 95%); }
.answer-meta { display: flex; align-items: baseline; gap: 11px; }
.answer-meta span { color: var(--accent); font: 720 12px/1 ui-monospace, SFMono-Regular, Menlo, monospace; }
.answer-meta strong { font-size: 16px; }
.answer p { margin: 16px 0 0; color: var(--muted); font-family: ui-serif, "Songti SC", STSong, serif; font-size: 17px; line-height: 1.78; }
.answer.is-changing { animation: answer-in .34s var(--ease); }
.card-foot { margin-top: 24px; padding-top: 14px; display: flex; justify-content: space-between; gap: 14px; border-top: 1px solid var(--line); color: var(--faint); font-size: 10px; }
.demo-boundary { max-width: 620px; margin: 15px auto 0; color: var(--muted); font-size: 12px; line-height: 1.6; text-align: center; }
.demo-boundary strong { color: var(--ink); }
.scroll-cue { position: absolute; left: 50%; bottom: 18px; display: grid; justify-items: center; gap: 6px; transform: translateX(-50%); color: var(--faint); font-size: 10px; }
.scroll-cue span { width: 1px; height: 24px; background: linear-gradient(var(--accent), transparent); }

.how { display: grid; align-items: center; background: var(--ink); color: #f3eee5; }
.how-layout, .product-layout, .privacy-layout { width: min(1180px, 100%); margin: auto; display: grid; grid-template-columns: minmax(320px, .78fr) minmax(420px, 1.22fr); align-items: center; gap: clamp(50px, 8vw, 132px); }
.section-copy > p:not(.eyebrow) { max-width: 600px; margin: 27px 0 0; color: color-mix(in srgb, currentColor, transparent 38%); font-size: 18px; line-height: 1.72; }
.steps { margin: 38px 0 0; padding: 0; list-style: none; }
.steps li { border-top: 1px solid rgba(255,255,255,.12); }
.steps button { width: 100%; min-height: 82px; padding: 13px 0; display: grid; grid-template-columns: 44px 1fr; gap: 4px 14px; border: 0; background: transparent; color: inherit; cursor: pointer; text-align: left; }
.steps span { grid-row: 1 / 3; color: #9c958c; font: 680 11px/1.5 ui-monospace, SFMono-Regular, Menlo, monospace; }
.steps strong { font-size: 16px; }
.steps small { color: #9c958c; font-size: 12px; }
.steps li.is-active strong, .steps li.is-active span { color: #ff7b42; }
.product-stage { min-width: 0; }
.app-window { overflow: hidden; border-radius: 26px; background: #efebe3; box-shadow: 0 40px 100px rgba(0,0,0,.42); }
.window-bar { height: 52px; padding: 0 18px; display: flex; align-items: center; gap: 8px; background: #f7f4ee; color: #726d65; font-size: 12px; }
.window-bar i { width: 11px; height: 11px; border-radius: 50%; background: #ff5f57; }
.window-bar i:nth-child(2) { background: #febc2e; }
.window-bar i:nth-child(3) { background: #28c840; }
.window-bar span { margin-left: 7px; }
.window-canvas { position: relative; min-height: 520px; display: grid; place-items: center; background: radial-gradient(circle at 50% 42%, #fffaf0, #ded7cb); }
.window-canvas img { width: min(380px, 72%); filter: drop-shadow(0 28px 30px rgba(40,30,16,.22)); transition: transform .36s var(--ease), opacity .24s ease; }
.stage-note { position: absolute; left: 24px; right: 24px; bottom: 22px; padding: 14px 17px; border-radius: 14px; background: rgba(255,252,245,.83); color: #49443d; box-shadow: 0 13px 34px rgba(50,37,18,.12); backdrop-filter: blur(16px); font-size: 12px; text-align: center; }
.product-stage[data-product-stage="1"] .window-canvas img { transform: translateY(-5px) scale(1.025); }
.product-stage[data-product-stage="2"] .window-canvas img { transform: rotateY(7deg) translateY(-4px); }
.reality-label { margin: 16px 0 0; color: #a8a197; font-size: 11px; text-align: center; }
.reality-label span { display: inline-block; width: 7px; height: 7px; margin-right: 7px; border-radius: 50%; background: #31b95a; }

.product { display: grid; align-items: center; background: var(--paper-strong); }
.product-layout { grid-template-columns: minmax(480px, 1.25fr) minmax(320px, .75fr); }
.product-shot { position: relative; padding: 16px; border-radius: 30px; background: color-mix(in srgb, var(--paper), transparent 30%); box-shadow: var(--shadow-xl); transform: rotate(-1.2deg); }
.product-shot img { border-radius: 18px; }
.product .section-copy p:not(.eyebrow) { color: var(--muted); }
.fact-list { margin: 34px 0 0; }
.fact-list div { padding: 17px 0; display: grid; grid-template-columns: 120px 1fr; gap: 18px; border-top: 1px solid var(--line); }
.fact-list dt { color: var(--accent-deep); font-size: 12px; font-weight: 700; }
.fact-list dd { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.5; }

.privacy { display: grid; align-items: center; background: #e9e1d4; }
.privacy-layout { grid-template-columns: .85fr 1.15fr; }
.privacy .section-copy > p:not(.eyebrow) { color: #625c53; }
.privacy-points article { padding: 25px 0; display: grid; grid-template-columns: 52px 1fr; gap: 16px; border-top: 1px solid rgba(29,28,25,.14); }
.privacy-points article > span { color: var(--accent-deep); font: 700 12px/1.5 ui-monospace, SFMono-Regular, Menlo, monospace; }
.privacy-points strong { font-size: 18px; }
.privacy-points p { margin: 8px 0 0; color: #686158; font-size: 14px; line-height: 1.62; }

.closing { min-height: 100svh; padding-bottom: 0; display: flex; flex-direction: column; background: #171613; color: #f4eee4; }
.closing-inner { width: min(920px, 100%); margin: auto; text-align: center; }
.closing-inner > img { margin: 0 auto 26px; border-radius: 25px; box-shadow: 0 22px 60px rgba(0,0,0,.38); }
.closing-inner h2 { max-width: 900px; margin: auto; }
.closing-inner > p:not(.eyebrow, .beta-note) { max-width: 690px; margin: 26px auto 0; color: #aaa399; font-size: 17px; line-height: 1.65; }
.closing-actions { justify-content: center; }
.closing .button.primary { background: #f4eee4; color: #1b1916; }
.closing .button.secondary { color: #eee7dc; background: rgba(255,255,255,.08); box-shadow: inset 0 0 0 1px rgba(255,255,255,.12); }
.release-meta { max-width: 760px; margin: 36px auto 0; display: grid; grid-template-columns: repeat(4, 1fr); }
.release-meta div { padding: 15px 18px; border-left: 1px solid rgba(255,255,255,.12); }
.release-meta div:first-child { border-left: 0; }
.release-meta dt { color: #8e877e; font-size: 10px; }
.release-meta dd { margin: 7px 0 0; font-size: 12px; }
.checksum { max-width: 760px; min-height: 50px; margin: 17px auto 0; padding: 8px 10px 8px 16px; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; border-radius: 14px; background: rgba(255,255,255,.06); text-align: left; }
.checksum span { color: #8e877e; font-size: 9px; }
.checksum code { min-width: 0; overflow: hidden; color: #bbb4aa; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.checksum button { min-width: 60px; min-height: 34px; border: 0; border-radius: 10px; background: rgba(255,255,255,.09); color: #eee7dc; cursor: pointer; font-size: 11px; }
.beta-note { margin: 16px 0 0; color: #817b72; font-size: 11px; }
footer { width: 100%; margin-top: auto; padding: 20px 0; display: flex; align-items: center; gap: 22px; border-top: 1px solid rgba(255,255,255,.09); color: #817b72; font-size: 10px; }
footer .brand { color: #d8d0c5; }
footer p:nth-child(2) { margin-left: auto; }

.toast { position: fixed; z-index: 80; left: 50%; bottom: 22px; padding: 11px 16px; border-radius: 99px; background: var(--ink); color: var(--paper); box-shadow: var(--shadow-md); opacity: 0; transform: translate(-50%, 18px); pointer-events: none; transition: opacity .2s ease, transform .28s var(--ease); font-size: 12px; }
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .65s ease, transform .65s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }

button:focus-visible, a:focus-visible, input:focus-visible { outline: 3px solid color-mix(in srgb, var(--accent), transparent 32%); outline-offset: 3px; }
@keyframes answer-in { from { opacity: .3; transform: translateY(7px); } to { opacity: 1; transform: none; } }

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #12110f; --paper-strong: #1b1916; --paper-soft: #25221d; --ink: #f2ece2; --muted: #aaa399; --faint: #817a71;
    --line: rgba(255,255,255,.12); --accent: #ff7640; --accent-deep: #ff8e61; --glass: rgba(25,23,20,.84);
    --shadow-xl: 0 36px 110px rgba(0,0,0,.43); --shadow-md: 0 18px 54px rgba(0,0,0,.34);
  }
  .site-header { border-color: rgba(255,255,255,.08); background: rgba(18,17,15,.78); box-shadow: 0 15px 45px rgba(0,0,0,.28); }
  .demo-input-row button { color: #fff4ea; }
  .how { background: #090908; }
  .window-bar { background: #282520; color: #aaa39a; }
  .window-canvas { background: radial-gradient(circle at 50% 42%, #373128, #151310); }
  .stage-note { background: rgba(38,35,30,.88); color: #ddd5c9; }
  .product { background: #181612; }
  .privacy { background: #211e19; }
  .privacy .section-copy > p:not(.eyebrow), .privacy-points p { color: #aaa399; }
  .privacy-points article { border-color: rgba(255,255,255,.12); }
}

@media (max-width: 980px) {
  .screen { min-height: 100svh; padding-top: 102px; }
  .hero { grid-template-columns: 1fr; align-content: center; padding-bottom: 78px; }
  .hero-copy { max-width: 760px; }
  .hero-object { width: min(700px, 100%); }
  .how-layout, .product-layout, .privacy-layout { grid-template-columns: 1fr; gap: 48px; }
  .how-layout, .privacy-layout { align-content: center; }
  .product-shot { order: 2; transform: none; }
  .product .section-copy { order: 1; }
  .window-canvas { min-height: 470px; }
}

@media (max-width: 680px) {
  :root { --page-gutter: 18px; }
  .site-header { top: 10px; height: 54px; }
  .site-header nav { display: none; }
  .nav-download { margin-left: auto; min-height: 38px; padding: 0 13px; }
  .screen { padding-top: 92px; padding-bottom: 46px; }
  .hero { display: flex; flex-direction: column; justify-content: center; gap: 42px; }
  h1 { font-size: clamp(3rem, 14vw, 4.8rem); }
  h2 { font-size: clamp(2.7rem, 12vw, 4.3rem); }
  .hero-lede, .section-copy > p:not(.eyebrow) { font-size: 16px; }
  .hero-actions, .closing-actions { flex-direction: column; }
  .button { width: 100%; }
  .paper-card { padding: 22px 18px; border-radius: 23px 23px 23px 16px; }
  .card-topline { padding-right: 34px; }
  .paper-card > label { margin-top: 34px; }
  .demo-input-row { grid-template-columns: 1fr; }
  .demo-input-row button { min-height: 50px; }
  .answer { min-height: 180px; padding: 18px; }
  .card-foot { align-items: flex-start; flex-direction: column; }
  .scroll-cue { display: none; }
  .window-canvas { min-height: 390px; }
  .window-canvas img { width: min(330px, 88%); }
  .stage-note { left: 14px; right: 14px; bottom: 14px; }
  .fact-list div { grid-template-columns: 94px 1fr; gap: 12px; }
  .release-meta { grid-template-columns: 1fr 1fr; }
  .release-meta div { border-left: 0; border-top: 1px solid rgba(255,255,255,.12); }
  .checksum { grid-template-columns: 1fr auto; }
  .checksum span { grid-column: 1 / -1; }
  footer { align-items: flex-start; flex-direction: column; gap: 8px; }
  footer p { margin: 0; }
  footer p:nth-child(2) { margin-left: 0; }
}

@media (max-height: 760px) and (min-width: 981px) {
  .screen { padding-top: 86px; padding-bottom: 38px; }
  h1 { font-size: clamp(3.2rem, 5.4vw, 5.4rem); }
  .paper-card { padding: 24px 30px; }
  .paper-card > label { margin-top: 28px; }
  .answer { min-height: 128px; margin-top: 18px; padding: 17px; }
  .answer p { margin-top: 10px; font-size: 15px; }
  .window-canvas { min-height: 440px; }
}

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

@media (prefers-reduced-transparency: reduce) {
  .site-header, .stage-note { background: var(--paper-strong); backdrop-filter: none; -webkit-backdrop-filter: none; }
}
