:root {
  --ink: #0b0f14;
  --ink-2: #131a22;
  --ink-3: #1b2530;
  --line-dark: #2a3744;
  --paper: #f2f4f6;
  --paper-2: #e7ebee;
  --white: #f8fafc;
  --muted: #a0acb8;
  --body: #343e48;
  --blue: #5f9bfa;
  --blue-dark: #215ab9;
  --mint: #4bd3be;
  --amber: #ffb969;
  --danger: #ff6e7d;
  --max: 1240px;
  --font-sans: Inter, "SF Pro Display", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--ink); color: var(--white); font-family: var(--font-sans); font-size: 16px; line-height: 1.6; }
body.menu-open { overflow: hidden; }
a { color: inherit; }
img { max-width: 100%; display: block; }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 4px; }
.skip-link { position: fixed; top: 12px; left: 12px; z-index: 999; transform: translateY(-160%); padding: 10px 14px; background: var(--white); color: var(--ink); text-decoration: none; }
.skip-link:focus { transform: translateY(0); }
.page-width { width: min(var(--max), calc(100% - 64px)); margin-inline: auto; }
.section-pad { padding: 128px 0; }
.eyebrow { margin: 0 0 18px; color: var(--mint); font-size: 12px; font-weight: 800; letter-spacing: 0; text-transform: uppercase; }
.eyebrow.dark { color: var(--blue-dark); }

.site-header { position: fixed; z-index: 50; top: 16px; left: 0; right: 0; transition: top 220ms ease; }
.nav-shell { width: min(var(--max), calc(100% - 32px)); min-height: 68px; margin: 0 auto; padding: 8px 10px 8px 16px; display: flex; align-items: center; justify-content: space-between; border: 1px solid rgba(255,255,255,.12); background: rgba(11,15,20,.82); backdrop-filter: blur(18px); box-shadow: 0 18px 50px rgba(0,0,0,.18); }
.brand { display: inline-flex; align-items: center; gap: 11px; color: var(--white); font-size: 19px; font-weight: 800; text-decoration: none; }
.brand img { width: 40px; height: 40px; border-radius: 8px; object-fit: cover; }
.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a { color: #d4dae0; font-size: 14px; font-weight: 650; text-decoration: none; transition: color 180ms ease; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--white); }
.nav-links .nav-action { min-height: 46px; padding: 11px 18px; display: inline-flex; align-items: center; background: var(--blue); color: #07111f; }
.nav-links .nav-action:hover { background: #82b2ff; color: #07111f; }
.menu-button { display: none; width: 46px; height: 46px; padding: 12px; border: 0; background: transparent; cursor: pointer; }
.menu-button span { display: block; height: 2px; margin: 5px 0; background: var(--white); transition: transform 180ms ease, opacity 180ms ease; }

.hero { position: relative; min-height: clamp(700px, 92vh, 940px); display: flex; align-items: flex-end; isolation: isolate; background: var(--ink) url("assets/hero-cinema.jpg") center 46% / cover no-repeat; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -2; background: inherit; filter: saturate(.86) contrast(1.05); }
.hero-shade { position: absolute; inset: 0; z-index: -1; background: rgba(5,7,10,.62); }
.hero-content { padding-bottom: 136px; }
.hero h1 { margin: 0; max-width: 720px; font-size: clamp(86px, 11vw, 168px); line-height: .86; letter-spacing: 0; }
.hero-line { margin: 28px 0 10px; color: var(--white); font-size: clamp(26px, 3vw, 44px); font-weight: 750; line-height: 1.2; }
.hero-copy { max-width: 610px; margin: 0; color: #c8d0d7; font-size: 18px; line-height: 1.8; }
.hero-actions { display: flex; gap: 14px; margin-top: 34px; }
.button { min-height: 50px; padding: 13px 22px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid transparent; text-decoration: none; font-weight: 750; transition: background 180ms ease, color 180ms ease, border-color 180ms ease; }
.button-primary { background: var(--blue); color: #07111f; }
.button-primary:hover { background: #82b2ff; }
.button-ghost { border-color: rgba(255,255,255,.38); background: rgba(11,15,20,.34); color: var(--white); }
.button-ghost:hover { border-color: var(--white); background: rgba(11,15,20,.74); }
.scroll-cue { position: absolute; right: max(32px, calc((100% - var(--max))/2)); bottom: 44px; display: flex; align-items: center; gap: 14px; color: #d6dce2; font-size: 12px; font-weight: 700; text-decoration: none; }
.scroll-cue i { position: relative; width: 42px; height: 42px; border: 1px solid rgba(255,255,255,.4); border-radius: 50%; }
.scroll-cue i::after { content: ""; position: absolute; width: 7px; height: 7px; left: 16px; top: 14px; border-right: 2px solid var(--white); border-bottom: 2px solid var(--white); transform: rotate(45deg); }

.intro { background: var(--paper); color: var(--ink); }
.intro-grid { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(360px, .92fr); gap: 9vw; align-items: start; }
.section-lead h2, .story-content h2, .safety-title h2, .privacy-band h2, .closing h2 { margin: 0; font-size: clamp(42px, 5vw, 72px); line-height: 1.1; letter-spacing: 0; }
.intro-copy > p { margin: 4px 0 42px; color: var(--body); font-size: 18px; line-height: 1.9; }
.feature-index { margin: 0; }
.feature-index div { display: grid; grid-template-columns: 50px 1fr; gap: 16px; padding: 19px 0; border-top: 1px solid #c8ced4; }
.feature-index dt { color: var(--blue-dark); font-family: ui-monospace, "SFMono-Regular", Consolas, monospace; font-weight: 800; }
.feature-index dd { margin: 0; font-weight: 700; }

.screens { overflow: hidden; background: var(--ink); }
.screens-heading { display: flex; align-items: end; justify-content: space-between; gap: 40px; margin-bottom: 44px; }
.screens-heading h2 { margin: 0; font-size: clamp(42px, 5vw, 70px); line-height: 1.05; }
.screens-heading > p { max-width: 380px; margin: 0 0 7px; color: var(--muted); }
.screen-tabs { display: flex; gap: 4px; width: fit-content; padding: 4px; border: 1px solid var(--line-dark); background: var(--ink-2); }
.screen-tabs button { min-width: 112px; min-height: 44px; padding: 10px 18px; border: 0; background: transparent; color: var(--muted); font-weight: 750; cursor: pointer; transition: background 180ms ease, color 180ms ease; }
.screen-tabs button[aria-selected="true"] { background: var(--blue); color: #07111f; }
.screen-stage { min-height: 700px; margin-top: 34px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(320px, 510px); gap: 10vw; align-items: center; }
.screen-copy { padding-left: 6vw; }
.screen-number { color: var(--amber); font-family: ui-monospace, "SFMono-Regular", Consolas, monospace; font-size: 15px; font-weight: 800; }
.screen-copy h3 { max-width: 570px; margin: 24px 0 18px; font-size: clamp(34px, 4vw, 58px); line-height: 1.12; }
.screen-copy p { max-width: 560px; margin: 0; color: #bdc6ce; font-size: 18px; line-height: 1.8; }
.screen-tags { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 30px; }
.screen-tags span { padding: 8px 12px; border: 1px solid var(--line-dark); color: #c7d0d8; font-size: 13px; }
.device-frame { position: relative; width: min(100%, 432px); aspect-ratio: 9 / 20; margin: 0 auto; overflow: hidden; border: 9px solid #26313c; border-radius: 42px; background: #05080b; box-shadow: 0 36px 90px rgba(0,0,0,.48); }
.device-frame::after { content: ""; position: absolute; top: 9px; left: 50%; width: 72px; height: 15px; transform: translateX(-50%); border-radius: 999px; background: rgba(4,7,10,.92); }
.device-frame img { width: 100%; height: 100%; object-fit: cover; transition: opacity 150ms ease; }
.device-frame img.is-changing { opacity: .2; }

.community-story { min-height: 760px; display: grid; grid-template-columns: 1.05fr .95fr; background: var(--paper); color: var(--ink); }
.story-image { min-height: 760px; background: url("assets/journal.jpg") center / cover no-repeat; }
.story-content { align-self: center; padding: 100px clamp(42px, 7vw, 120px); }
.story-content > p:not(.eyebrow) { margin: 30px 0 46px; color: var(--body); font-size: 18px; line-height: 1.9; }
.story-points { border-top: 1px solid #c7cdd3; }
.story-points div { display: grid; grid-template-columns: 130px 1fr; gap: 24px; padding: 20px 0; border-bottom: 1px solid #c7cdd3; }
.story-points span { color: #56616c; }

.safety { background: #101721; }
.safety-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 9vw; }
.safety-title { position: sticky; top: 130px; height: fit-content; }
.safety-list article { display: grid; grid-template-columns: 56px 1fr; gap: 22px; padding: 34px 0; border-top: 1px solid var(--line-dark); }
.safety-list article:last-child { border-bottom: 1px solid var(--line-dark); }
.safety-list article > span { color: var(--mint); font-family: ui-monospace, "SFMono-Regular", Consolas, monospace; font-weight: 800; }
.safety-list h3 { margin: 0 0 9px; font-size: 23px; }
.safety-list p { margin: 0; color: var(--muted); }

.privacy-band { padding: 92px 0; background: var(--amber); color: #201508; }
.privacy-band-inner { display: grid; grid-template-columns: 1.1fr .8fr auto; gap: 5vw; align-items: end; }
.privacy-band h2 { font-size: clamp(38px, 4vw, 58px); }
.privacy-band-inner > p { margin: 0; color: #4d3921; }
.text-link { white-space: nowrap; font-weight: 850; text-decoration: none; border-bottom: 2px solid currentColor; }
.text-link span { margin-left: 7px; }

.closing { background: var(--ink); }
.closing-inner { display: grid; grid-template-columns: 160px 1fr auto; gap: 56px; align-items: center; }
.closing-inner img { border-radius: 26px; }
.closing h2 { max-width: 760px; }
.site-footer { padding: 44px 0 28px; border-top: 1px solid var(--line-dark); background: var(--ink); }
.footer-grid { display: grid; grid-template-columns: 1fr auto; gap: 30px; align-items: start; }
.footer-brand { display: flex; gap: 18px; align-items: baseline; }
.footer-brand strong { font-size: 22px; }
.footer-brand span, .site-footer p { color: var(--muted); font-size: 13px; }
.site-footer nav { display: flex; gap: 24px; }
.site-footer nav a { color: #d4dae0; font-size: 13px; text-decoration: none; }
.site-footer nav a:hover { color: var(--white); }
.site-footer p { grid-column: 1 / -1; margin: 8px 0 0; }

.legal-page { background: var(--paper); color: var(--ink); }
.legal-header .nav-shell { background: rgba(11,15,20,.94); }
.legal-hero { padding: 190px 0 82px; border-bottom: 1px solid #c9d0d6; background: var(--paper); }
.legal-hero h1 { margin: 0; font-size: clamp(64px, 9vw, 124px); line-height: .95; letter-spacing: 0; }
.legal-intro { max-width: 720px; margin: 32px 0; color: var(--body); font-size: 20px; line-height: 1.8; }
.legal-meta { display: flex; gap: 12px; flex-wrap: wrap; }
.legal-meta span { padding: 8px 12px; border: 1px solid #c0c8cf; font-family: ui-monospace, "SFMono-Regular", Consolas, monospace; font-size: 13px; font-weight: 700; }
.policy-layout { display: grid; grid-template-columns: 250px minmax(0, 780px); gap: 100px; align-items: start; padding-top: 80px; padding-bottom: 130px; }
.policy-nav { position: sticky; top: 118px; }
.policy-nav > p { margin: 0 0 18px; color: #6d7780; font-size: 12px; font-weight: 800; }
.policy-nav ol { margin: 0; padding: 0; list-style: none; counter-reset: toc; border-top: 1px solid #c9d0d6; }
.policy-nav li { counter-increment: toc; border-bottom: 1px solid #c9d0d6; }
.policy-nav a { display: grid; grid-template-columns: 26px 1fr; gap: 8px; padding: 11px 0; color: #5b6570; font-size: 13px; text-decoration: none; }
.policy-nav a::before { content: counter(toc, decimal-leading-zero); color: #87919a; font-family: ui-monospace, "SFMono-Regular", Consolas, monospace; }
.policy-nav a:hover, .policy-nav a.is-active { color: var(--blue-dark); }
.policy-article section { padding: 0 0 66px; scroll-margin-top: 120px; }
.policy-article section + section { padding-top: 66px; border-top: 1px solid #c9d0d6; }
.section-number { margin: 0 0 12px; color: var(--blue-dark); font-family: ui-monospace, "SFMono-Regular", Consolas, monospace; font-size: 13px; font-weight: 800; }
.policy-article h2 { margin: 0 0 26px; font-size: clamp(34px, 4vw, 48px); line-height: 1.18; }
.policy-article h3 { margin: 32px 0 10px; font-size: 20px; }
.policy-article p, .policy-article li { color: var(--body); font-size: 16px; line-height: 1.9; }
.policy-article ul { padding-left: 22px; }
.policy-article li { margin: 8px 0; padding-left: 6px; }
.policy-definition { display: grid; grid-template-columns: 1fr 1fr; gap: 0 32px; margin-top: 20px; border-top: 1px solid #c9d0d6; }
.policy-definition > div { padding: 24px 0; border-bottom: 1px solid #c9d0d6; }
.policy-definition h3 { margin: 0 0 7px; color: var(--ink); }
.policy-definition p { margin: 0; font-size: 14px; }
.policy-note { margin-top: 24px; padding: 20px 22px; border-left: 4px solid var(--mint); background: #e3eeec; color: #263e3a; }
.permission-table { margin: 30px 0; border-top: 2px solid var(--ink); }
.permission-row { display: grid; grid-template-columns: 110px 1fr 180px; gap: 22px; padding: 17px 6px; border-bottom: 1px solid #c4cbd1; color: var(--body); }
.permission-head { color: #66717b; font-size: 12px; font-weight: 800; }
.contact-block { position: relative; margin: 28px 0; padding: 26px 72px 26px 26px; display: flex; flex-direction: column; border: 1px solid #b9c2ca; background: var(--white); text-decoration: none; transition: border-color 180ms ease, background 180ms ease; }
.contact-block:hover { border-color: var(--blue-dark); background: #edf3fc; }
.contact-block span { color: #66717b; font-size: 12px; font-weight: 800; }
.contact-block strong { margin-top: 4px; color: var(--ink); font-size: 19px; overflow-wrap: anywhere; }
.contact-block i { position: absolute; top: 50%; right: 27px; transform: translateY(-50%); color: var(--blue-dark); font-size: 27px; font-style: normal; }
.policy-end { margin-top: 16px; padding-top: 44px; display: grid; grid-template-columns: 72px 1fr; gap: 22px; align-items: center; border-top: 2px solid var(--ink); }
.policy-end img { border-radius: 14px; }
.policy-end strong { font-size: 20px; }
.policy-end p { margin: 4px 0 0; font-size: 14px; }
.legal-footer { color: var(--white); }

.reveal { opacity: 0; transform: translateY(22px); transition: opacity 650ms ease, transform 650ms ease; }
.reveal.is-visible { opacity: 1; transform: none; }

@media (max-width: 980px) {
  .section-pad { padding: 96px 0; }
  .menu-button { display: block; }
  .nav-links { position: fixed; top: 96px; left: 16px; right: 16px; max-height: calc(100vh - 112px); padding: 22px; display: none; flex-direction: column; align-items: stretch; gap: 0; overflow: auto; border: 1px solid var(--line-dark); background: #111820; box-shadow: 0 30px 70px rgba(0,0,0,.42); }
  .nav-links.is-open { display: flex; }
  .nav-links a { padding: 14px 4px; border-bottom: 1px solid var(--line-dark); }
  .nav-links .nav-action { margin-top: 14px; justify-content: center; border-bottom: 0; }
  .menu-button[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .menu-button[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .menu-button[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .intro-grid, .safety-grid { grid-template-columns: 1fr; gap: 56px; }
  .screen-stage { grid-template-columns: 1fr 380px; gap: 40px; }
  .screen-copy { padding-left: 0; }
  .community-story { grid-template-columns: 1fr; }
  .story-image { min-height: 520px; }
  .privacy-band-inner { grid-template-columns: 1fr 1fr; }
  .privacy-band .text-link { grid-column: 1 / -1; width: fit-content; margin-top: 8px; }
  .closing-inner { grid-template-columns: 120px 1fr; }
  .closing-inner img { width: 120px; height: 120px; }
  .closing-inner .button { grid-column: 2; width: fit-content; }
  .policy-layout { grid-template-columns: 200px minmax(0, 1fr); gap: 55px; }
  .permission-row { grid-template-columns: 90px 1fr 140px; }
}

@media (max-width: 720px) {
  .page-width { width: min(100% - 36px, var(--max)); }
  .section-pad { padding: 74px 0; }
  .site-header { top: 10px; }
  .nav-shell { width: calc(100% - 20px); min-height: 60px; padding: 6px 8px 6px 12px; }
  .brand img { width: 38px; height: 38px; }
  .hero { min-height: 760px; background-position: 60% center; }
  .hero-shade { background: rgba(5,7,10,.6); }
  .hero-content { padding-bottom: 118px; }
  .hero h1 { font-size: clamp(70px, 24vw, 104px); }
  .hero-line { font-size: 29px; }
  .hero-copy { font-size: 16px; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .scroll-cue { right: 18px; bottom: 32px; }
  .section-lead h2, .story-content h2, .safety-title h2, .privacy-band h2, .closing h2 { font-size: 39px; }
  .intro-grid { gap: 38px; }
  .intro-copy > p { font-size: 16px; }
  .screens-heading { align-items: start; flex-direction: column; margin-bottom: 30px; }
  .screens-heading h2 { font-size: 42px; }
  .screen-tabs { width: 100%; }
  .screen-tabs button { min-width: 0; flex: 1; padding-inline: 8px; }
  .screen-stage { min-height: auto; grid-template-columns: 1fr; gap: 44px; }
  .screen-copy h3 { font-size: 37px; }
  .device-frame { width: min(100%, 370px); }
  .story-image { min-height: 420px; }
  .story-content { padding: 72px 18px; }
  .story-points div { grid-template-columns: 1fr; gap: 3px; }
  .safety-title { position: static; }
  .privacy-band-inner { grid-template-columns: 1fr; }
  .privacy-band .text-link { grid-column: auto; white-space: normal; }
  .closing-inner { grid-template-columns: 84px 1fr; gap: 22px; }
  .closing-inner img { width: 84px; height: 84px; border-radius: 18px; }
  .closing-inner .button { grid-column: 1 / -1; width: 100%; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-brand { flex-direction: column; gap: 2px; }
  .site-footer nav { flex-wrap: wrap; }
  .site-footer p { grid-column: auto; }
  .legal-hero { padding: 150px 0 62px; }
  .legal-hero h1 { font-size: 62px; }
  .legal-intro { font-size: 17px; }
  .policy-layout { display: block; padding-top: 52px; padding-bottom: 90px; }
  .policy-nav { position: static; margin-bottom: 68px; }
  .policy-nav ol { display: grid; grid-template-columns: 1fr 1fr; }
  .policy-nav li:nth-child(odd) { border-right: 1px solid #c9d0d6; padding-right: 12px; }
  .policy-nav li:nth-child(even) { padding-left: 12px; }
  .policy-article section { padding-bottom: 48px; }
  .policy-article section + section { padding-top: 48px; }
  .policy-definition { grid-template-columns: 1fr; }
  .permission-row { grid-template-columns: 86px 1fr; gap: 12px; }
  .permission-row > :last-child { grid-column: 2; color: #68737c; font-size: 13px; }
  .permission-head > :last-child { display: none; }
  .contact-block { padding: 22px 54px 22px 18px; }
  .contact-block strong { font-size: 15px; }
}

@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; }
}
