:root {
  color-scheme: dark;
  --ink: #f3f7f3;
  --muted: #9baaa1;
  --dark: #06110b;
  --dark-deep: #020704;
  --green: #0b2b1b;
  --forest: #123c27;
  --lime: #c9ffa0;
  --lime-strong: #aeea7f;
  --paper: #f4f7f3;
  --paper-text: #0c2a1d;
  --paper-muted: #69756e;
  --line-dark: rgba(232, 255, 239, 0.14);
  --line-light: rgba(12, 42, 29, 0.14);
  --shell: min(1200px, calc(100vw - 96px));
  --display: clamp(3.2rem, 6.3vw, 6.7rem);
  --heading: clamp(2.5rem, 4.4vw, 4.85rem);
  --radius: 34px;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "PingFang SC", "Helvetica Neue", sans-serif;
  font-synthesis: none;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--dark-deep); }
body { margin: 0; background: var(--dark); color: var(--ink); -webkit-font-smoothing: antialiased; }
body, button, a { font: inherit; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { color: inherit; }
::selection { color: #07150d; background: var(--lime); }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.page-shell { width: var(--shell); margin-inline: auto; }

.site-header {
  position: fixed;
  z-index: 50;
  top: 0;
  left: 0;
  right: 0;
  height: 82px;
  padding: 0 max(48px, calc((100vw - 1200px) / 2));
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  border-bottom: 1px solid transparent;
  transition: background 260ms ease, border-color 260ms ease, backdrop-filter 260ms ease;
}

.site-header.is-scrolled {
  background: rgba(3, 12, 7, 0.72);
  border-color: rgba(230, 255, 237, 0.09);
  backdrop-filter: blur(22px) saturate(130%);
}

.brand { display: inline-flex; align-items: center; gap: 11px; font-size: 1.15rem; font-weight: 650; letter-spacing: 0.02em; justify-self: start; }
.brand img { border-radius: 11px; box-shadow: 0 0 20px rgba(158, 255, 185, 0.13); }
.desktop-nav, .site-footer nav { display: flex; align-items: center; gap: 38px; color: rgba(244, 248, 245, 0.73); font-size: 0.9rem; }
.desktop-nav a, .site-footer a, .header-contact { transition: color 180ms ease, border-color 180ms ease, background 180ms ease; }
.desktop-nav a:hover, .site-footer nav a:hover { color: white; }
.header-contact { justify-self: end; padding: 11px 20px; border: 1px solid rgba(237, 255, 242, 0.45); border-radius: 999px; font-size: 0.88rem; }
.header-contact:hover { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.78); }
.menu-button, .mobile-nav { display: none; }

.hero { min-height: 100svh; position: relative; overflow: hidden; display: flex; align-items: center; background: #020704; }
.hero-art { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; opacity: 0.97; transform: scale(1.015); animation: hero-breathe 12s ease-in-out infinite alternate; }
.hero-vignette { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(1,7,4,.84) 0%, rgba(1,7,4,.58) 36%, rgba(1,7,4,.08) 64%, rgba(1,7,4,.12) 100%), linear-gradient(0deg, rgba(0,4,2,.58), transparent 34%); }
.hero-content { position: relative; z-index: 2; padding-top: 66px; }
.hero h1 { max-width: 780px; margin: 0; font-size: var(--display); line-height: 1.04; letter-spacing: -0.052em; font-weight: 480; text-wrap: balance; }
.hero p { max-width: 530px; margin: 36px 0 0; color: rgba(236,244,239,.69); font-size: clamp(1.08rem, 1.5vw, 1.4rem); line-height: 1.65; }
.hero-actions { display: flex; gap: 14px; margin-top: 40px; }
.button { min-height: 54px; display: inline-flex; align-items: center; justify-content: center; gap: 18px; border-radius: 999px; padding: 0 27px; font-size: 0.96rem; font-weight: 620; }
.button-primary { color: #0a1c11; background: linear-gradient(135deg, #e4ffd2, #baf08c); box-shadow: 0 13px 40px rgba(163,238,123,.18); }
.button-primary:hover { filter: brightness(1.06); transform: translateY(-1px); }
.button-quiet { border: 1px solid rgba(238,255,242,.32); background: rgba(0,0,0,.12); }
.button-quiet:hover { border-color: rgba(238,255,242,.65); background: rgba(255,255,255,.05); }
.scroll-cue { position: absolute; z-index: 2; bottom: 28px; left: 50%; transform: translateX(-50%); display: grid; justify-items: center; gap: 8px; color: rgba(237,247,240,.52); font-size: .75rem; letter-spacing: .08em; }
.scroll-cue svg { width: 20px; fill: none; stroke: currentColor; stroke-width: 1.5; }

.story { position: relative; overflow: hidden; }
.story-dark { padding: 150px 0 130px; background: radial-gradient(circle at 77% 50%, #123a25 0, #07140d 37%, #030905 72%); }
.story-grid { display: grid; grid-template-columns: 1.02fr .98fr; gap: 90px; align-items: center; }
.story-copy h2, .focus-copy h2, .archive-intro h2, .privacy-grid h2, .closing-layout h2 { margin: 0; font-size: var(--heading); line-height: 1.08; letter-spacing: -.045em; font-weight: 470; text-wrap: balance; }
.story-copy > p { max-width: 530px; margin: 32px 0 0; color: var(--muted); font-size: 1.12rem; line-height: 1.75; }
.story-note { padding-top: 25px; border-top: 1px solid var(--line-dark); font-size: .95rem !important; color: rgba(230,242,234,.56) !important; }

.device-stage { min-height: 720px; display: grid; place-items: center; position: relative; }
.device-stage::before { content: ""; position: absolute; inset: 20% 4%; border-radius: 50%; background: rgba(114,244,154,.16); filter: blur(80px); }
.device-frame { width: min(350px, 78vw); aspect-ratio: 1206 / 2622; position: relative; padding: 12px; border: 1px solid rgba(255,255,255,.36); border-radius: 58px; background: linear-gradient(145deg, #252c28, #030604 40%, #18201c); box-shadow: 0 40px 100px rgba(0,0,0,.55), inset 0 0 0 2px rgba(255,255,255,.09); transform: rotate(2deg); }
.device-frame::after { content: ""; position: absolute; inset: 12px; border: 1px solid rgba(255,255,255,.08); border-radius: 47px; pointer-events: none; }
.app-screenshot { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: 47px; }

.focus-section { color: var(--paper-text); background: var(--paper); padding: 150px 0; position: relative; overflow: hidden; }
.focus-section::after { content: ""; position: absolute; width: 560px; height: 560px; border-radius: 50%; right: -160px; bottom: -210px; background: rgba(112,194,137,.14); filter: blur(40px); }
.focus-layout { display: grid; grid-template-columns: 1.2fr .8fr; gap: 100px; align-items: center; position: relative; z-index: 1; }
.focus-copy > p { max-width: 590px; color: var(--paper-muted); font-size: 1.08rem; line-height: 1.75; margin: 26px 0 46px; }
.feature-lines { border-top: 1px solid var(--line-light); }
.feature-lines article { display: grid; grid-template-columns: 54px 1fr; gap: 20px; padding: 25px 0; border-bottom: 1px solid var(--line-light); }
.line-icon { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; background: rgba(24,83,52,.075); }
.line-icon svg { width: 20px; fill: none; stroke: #175636; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.feature-lines h3, .archive-features h3 { margin: 0 0 8px; font-size: 1.18rem; font-weight: 620; }
.feature-lines p, .archive-features p { margin: 0; color: var(--paper-muted); line-height: 1.65; font-size: .94rem; }
.portrait-placeholder { justify-self: center; width: min(350px, 80vw); aspect-ratio: 1206 / 2622; border-radius: 58px; border: 9px solid #17211b; background: #07100b; box-shadow: 0 35px 80px rgba(17,48,31,.17), inset 0 0 0 1px rgba(255,255,255,.08); position: relative; overflow: hidden; }

.archive-section { padding: 150px 0 135px; background: #030905; overflow: hidden; }
.archive-intro { display: grid; grid-template-columns: 1.1fr .9fr; gap: 100px; align-items: end; }
.archive-intro p { max-width: 530px; color: var(--muted); font-size: 1.08rem; line-height: 1.75; margin: 0 0 8px; }
.growth-art-wrap { width: min(1580px, 100%); margin: 30px auto 10px; }
.growth-art-wrap img { width: 100%; mix-blend-mode: screen; }
.archive-features { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line-dark); }
.archive-features article { padding: 28px 34px 0 0; }
.archive-features article + article { border-left: 1px solid var(--line-dark); padding-left: 34px; }
.archive-features span { display: block; margin-bottom: 24px; color: rgba(197,255,214,.45); font-size: .72rem; letter-spacing: .14em; }
.archive-features p { color: var(--muted); }

.privacy-promise { color: var(--paper-text); background: #e8efe9; padding: 125px 0; }
.privacy-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 120px; align-items: center; }
.privacy-grid p { margin: 0 0 28px; color: #52655a; font-size: 1.08rem; line-height: 1.8; }
.text-link { color: #125d37; font-weight: 630; padding-bottom: 5px; border-bottom: 1px solid rgba(18,93,55,.3); }

.closing-section { min-height: 690px; position: relative; overflow: hidden; display: flex; align-items: center; background: radial-gradient(circle at 76% 48%, #164c30, #06140c 36%, #020704 72%); }
.closing-organism { position: absolute; width: min(630px, 52vw); right: 6vw; opacity: .45; filter: blur(1px) drop-shadow(0 0 60px rgba(159,255,190,.25)); transform: rotate(-20deg) scale(1.35); }
.closing-layout { position: relative; z-index: 1; display: grid; grid-template-columns: 1.15fr .85fr; gap: 100px; align-items: end; }
.closing-layout > div:first-child p { margin: 26px 0 0; color: var(--muted); font-size: 1.15rem; }
.contact-block { padding: 28px 0; border-top: 1px solid var(--line-dark); border-bottom: 1px solid var(--line-dark); }
.contact-block p { margin: 0 0 25px; color: var(--muted); line-height: 1.7; }
.contact-block a { color: var(--lime); font-size: 1.08rem; font-weight: 560; }

.site-footer { background: #010402; border-top: 1px solid rgba(230,255,237,.11); }
.footer-inner { min-height: 112px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 40px; }
.site-footer p { justify-self: end; margin: 0; color: rgba(236,245,239,.48); font-size: .75rem; }

.reveal-on-scroll { opacity: 0; transform: translateY(28px); transition: opacity 800ms cubic-bezier(.2,.7,.2,1), transform 800ms cubic-bezier(.2,.7,.2,1); }
.reveal-on-scroll.is-visible { opacity: 1; transform: translateY(0); }
@keyframes hero-breathe { from { transform: scale(1.015); } to { transform: scale(1.045); } }

/* Legal pages */
.legal-body { color-scheme: light; color: var(--paper-text); background: #f7f9f7; }
.legal-body .site-header { position: sticky; color: var(--paper-text); background: rgba(247,249,247,.83); border-color: var(--line-light); backdrop-filter: blur(22px); }
.legal-body .desktop-nav, .legal-body .header-contact { color: #3c5648; }
.legal-body .header-contact { border-color: rgba(12,42,29,.28); }
.legal-main { padding: 85px 0 130px; }
.legal-hero { margin-bottom: 68px; padding-bottom: 46px; border-bottom: 1px solid var(--line-light); }
.legal-hero h1 { margin: 0; font-size: clamp(2.7rem, 5vw, 5.2rem); line-height: 1.02; letter-spacing: -.05em; font-weight: 520; }
.legal-meta { display: flex; gap: 28px; margin-top: 24px; color: var(--paper-muted); font-size: .86rem; }
.legal-layout { display: grid; grid-template-columns: 220px minmax(0, 760px); gap: 76px; align-items: start; }
.legal-toc { position: sticky; top: 118px; display: grid; gap: 3px; padding-left: 18px; border-left: 1px solid var(--line-light); }
.legal-toc span { margin-bottom: 15px; color: #8b9891; font-size: .72rem; letter-spacing: .12em; }
.legal-toc a { padding: 8px 12px; margin-left: -19px; color: #607068; border-left: 2px solid transparent; font-size: .85rem; }
.legal-toc a:hover { color: #155936; border-color: #3b9e67; }
.legal-article { font-size: 1rem; line-height: 1.86; color: #405248; }
.legal-article section { scroll-margin-top: 120px; margin-bottom: 48px; }
.legal-article h2 { margin: 0 0 16px; color: #0c3020; font-size: 1.55rem; line-height: 1.3; letter-spacing: -.02em; }
.legal-article h3 { margin: 25px 0 10px; color: #183a29; font-size: 1.05rem; }
.legal-article p { margin: 0 0 13px; }
.legal-article ul { margin: 10px 0 0; padding-left: 1.25rem; }
.legal-article li { margin: 7px 0; padding-left: .35rem; }
.legal-article a { color: #147443; text-decoration: underline; text-underline-offset: 3px; }
.legal-contact { margin-top: 55px; padding: 30px; border: 1px solid var(--line-light); border-radius: 22px; background: white; }
.legal-contact strong { display: block; margin-bottom: 10px; color: #123723; }

@media (max-width: 900px) {
  :root { --shell: min(100% - 44px, 720px); }
  .site-header { height: 70px; padding: 0 22px; grid-template-columns: 1fr auto; }
  .desktop-nav, .header-contact { display: none; }
  .menu-button { display: grid; width: 42px; height: 42px; padding: 12px 9px; border: 0; background: transparent; align-content: center; gap: 6px; }
  .menu-button span:not(.sr-only) { display: block; height: 1px; background: currentColor; transition: transform 180ms ease; }
  .menu-button[aria-expanded="true"] span:first-child { transform: translateY(3.5px) rotate(45deg); }
  .menu-button[aria-expanded="true"] span:nth-child(2) { transform: translateY(-3.5px) rotate(-45deg); }
  .mobile-nav { display: none; position: absolute; top: 69px; left: 14px; right: 14px; padding: 14px; border: 1px solid rgba(255,255,255,.14); border-radius: 18px; background: rgba(4,13,8,.95); backdrop-filter: blur(24px); }
  .legal-body .mobile-nav { background: rgba(247,249,247,.98); border-color: var(--line-light); }
  .mobile-nav.is-open { display: grid; }
  .mobile-nav a { padding: 14px; border-radius: 11px; }
  .hero { min-height: 880px; align-items: flex-start; }
  .hero-art { height: 61%; top: auto; object-position: 64% center; }
  .hero-vignette { background: linear-gradient(180deg, rgba(1,7,4,.92) 0%, rgba(1,7,4,.72) 45%, rgba(1,7,4,.05) 76%, rgba(1,7,4,.5) 100%); }
  .hero-content { padding-top: 160px; }
  .hero h1 { font-size: clamp(3.1rem, 13vw, 5rem); }
  .hero p { margin-top: 25px; max-width: 420px; }
  .story-dark, .focus-section, .archive-section { padding: 100px 0; }
  .story-grid, .focus-layout, .archive-intro, .privacy-grid, .closing-layout { grid-template-columns: 1fr; gap: 58px; }
  .story-copy h2, .focus-copy h2, .archive-intro h2, .privacy-grid h2, .closing-layout h2 { font-size: clamp(2.6rem, 10vw, 4rem); }
  .device-stage { min-height: 600px; }
  .archive-intro { align-items: start; }
  .growth-art-wrap { width: 135%; margin-left: -18%; }
  .archive-features { grid-template-columns: 1fr; }
  .archive-features article { padding: 24px 0; }
  .archive-features article + article { border-left: 0; border-top: 1px solid var(--line-dark); padding-left: 0; }
  .privacy-promise { padding: 90px 0; }
  .closing-section { min-height: 720px; }
  .closing-organism { width: 80vw; right: -18vw; top: 70px; opacity: .27; }
  .closing-layout { gap: 80px; }
  .footer-inner { padding: 30px 0; grid-template-columns: 1fr; justify-items: start; }
  .site-footer nav { flex-wrap: wrap; gap: 18px 26px; }
  .site-footer p { justify-self: start; }
  .legal-main { padding-top: 55px; }
  .legal-layout { grid-template-columns: 1fr; gap: 35px; }
  .legal-toc { position: static; grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 18px; border: 1px solid var(--line-light); border-radius: 18px; }
  .legal-toc span { grid-column: 1 / -1; }
  .legal-toc a { margin: 0; padding: 7px 0; border: 0; }
}

@media (max-width: 560px) {
  :root { --shell: calc(100% - 32px); }
  .brand { font-size: 1.02rem; }
  .brand img { width: 32px; height: 32px; }
  .hero { min-height: 820px; }
  .hero-content { padding-top: 132px; }
  .hero h1 { font-size: clamp(2.85rem, 14vw, 4rem); }
  .hero p { font-size: 1rem; line-height: 1.6; }
  .hero-actions { flex-direction: column; align-items: stretch; max-width: 310px; }
  .button { width: 100%; }
  .scroll-cue { display: none; }
  .story-dark, .focus-section, .archive-section { padding: 84px 0; }
  .device-stage { min-height: 530px; }
  .device-frame, .portrait-placeholder { width: min(300px, 83vw); border-radius: 48px; }
  .device-frame { padding: 9px; }
  .app-screenshot { border-radius: 39px; }
  .feature-lines article { grid-template-columns: 44px 1fr; gap: 15px; }
  .line-icon { width: 38px; height: 38px; }
  .growth-art-wrap { width: 180%; margin-left: -40%; }
  .privacy-grid { gap: 30px; }
  .closing-section { min-height: 700px; }
  .contact-block a { font-size: .92rem; word-break: break-all; }
  .legal-hero { margin-bottom: 42px; }
  .legal-meta { flex-direction: column; gap: 5px; }
  .legal-toc { grid-template-columns: 1fr; }
  .legal-article { font-size: .94rem; }
  .legal-contact { padding: 24px 20px; }
}

@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-on-scroll { opacity: 1; transform: none; }
}
