:root {
  --bg: #0D0C0B;
  --surface: #161412;
  --surface-2: #1F1C19;
  --line: rgba(244, 241, 236, .08);
  --line-2: rgba(244, 241, 236, .14);
  --text: #F4F1EC;
  --muted: #B9B2A8;
  --faint: #8F887F;
  --accent: #FF6B2E;
  --rec: #E5372B;
  --display: 'Bricolage Grotesque', ui-sans-serif, system-ui, sans-serif;
  --body: 'Geist', ui-sans-serif, system-ui, sans-serif;
  --mono: 'Geist Mono', ui-monospace, monospace;
  --pad: clamp(20px, 5.5vw, 80px);
  --section: clamp(88px, 10vw, 136px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.5 var(--body);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
h1, h2, h3, p { margin: 0; }
h1, h2 { font-family: var(--display); font-weight: 700; text-wrap: balance; }
p { text-wrap: pretty; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 8px; }

.wrap { max-width: 1440px; margin-inline: auto; padding-inline: var(--pad); }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 10; padding: 10px 16px; background: var(--text); color: var(--bg); border-radius: 8px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  height: 58px; padding: 0 30px; border-radius: 999px;
  font-size: 17px; font-weight: 600; white-space: nowrap;
  transition: transform .15s ease, background-color .15s ease, border-color .15s ease;
}
.btn:active { transform: scale(.98); }
.btn-primary { background: var(--accent); color: var(--bg); }
.btn-primary:hover { background: #FF7F4A; }
.btn-ghost { border: 1px solid rgba(244, 241, 236, .22); font-weight: 500; }
.btn-ghost:hover { border-color: rgba(244, 241, 236, .45); }
.btn-sm { height: 44px; padding: 0 20px; font-size: 15px; }

/* Nav */
.nav { height: 80px; display: flex; align-items: center; justify-content: space-between; }
.brand { display: flex; align-items: center; gap: 10px; font: 700 20px/1 var(--display); letter-spacing: -.02em; }
.logo { width: 32px; height: 32px; }
.nav-links { display: flex; align-items: center; gap: 32px; font-size: 16px; }
.nav-links a:not(.btn) { color: #C9C3BA; }
.nav-links a:not(.btn):hover { color: var(--text); }
.hide-sm { display: none; }

/* Hero */
.hero { display: grid; gap: 56px; padding-block: 40px var(--section); }
.hero-copy { display: flex; flex-direction: column; gap: 24px; }
.eyebrow { font: 500 12px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
.hero h1 { font-size: clamp(50px, 7.2vw, 92px); line-height: .96; letter-spacing: -.035em; }
.lede { max-width: 580px; font-size: clamp(18px, 1.6vw, 21px); color: var(--muted); }
.actions { display: flex; flex-direction: column; gap: 12px; }
.fine { font-size: 14px; color: var(--faint); }
.hero-art { display: flex; justify-content: center; }

/* Phone mockup: every size scales from --s */
.phone {
  --s: .85;
  width: calc(330px * var(--s)); height: calc(680px * var(--s));
  padding: calc(12px * var(--s)); border-radius: calc(56px * var(--s));
  background: #1A1816; border: 1px solid rgba(244, 241, 236, .14);
  box-shadow: 0 80px 120px -50px rgba(0, 0, 0, .9);
}
.screen {
  position: relative; height: 100%; overflow: hidden; border-radius: calc(45px * var(--s));
  background: radial-gradient(120% 70% at 50% 35%, #4A3F34 0%, #1C1814 65%, #110F0D 100%);
}
.head, .shoulders { position: absolute; left: 50%; background: #16120F; opacity: .85; }
.head { bottom: calc(150px * var(--s)); width: calc(128px * var(--s)); height: calc(150px * var(--s)); margin-left: calc(-64px * var(--s)); border-radius: 50% 50% 44% 44%; }
.shoulders { bottom: calc(-70px * var(--s)); width: calc(280px * var(--s)); height: calc(240px * var(--s)); margin-left: calc(-140px * var(--s)); border-radius: 50% 50% 0 0; }
.pip {
  position: absolute; top: calc(72px * var(--s)); left: calc(18px * var(--s)); right: calc(18px * var(--s));
  height: calc(180px * var(--s)); border-radius: calc(22px * var(--s)); overflow: hidden;
  background: #000; border: 1px solid rgba(255, 255, 255, .1); box-shadow: 0 24px 48px -12px rgba(0, 0, 0, .8);
  -webkit-mask-image: linear-gradient(transparent, #000 22%, #000 70%, transparent);
          mask-image: linear-gradient(transparent, #000 22%, #000 70%, transparent);
}
.pip-track { padding: calc(18px * var(--s)) calc(20px * var(--s)); animation: prompt 16s linear infinite; }
.pip-track p { font-size: calc(17px * var(--s)); line-height: 1.5; font-weight: 600; text-align: center; color: #fff; }
.marker {
  position: absolute; z-index: 1; left: calc(8px * var(--s)); top: 50%; margin-top: calc(-6px * var(--s));
  border-block: calc(6px * var(--s)) solid transparent; border-left: calc(8px * var(--s)) solid var(--accent);
}
@keyframes prompt { to { transform: translateY(-50%); } }
.rec {
  position: absolute; left: 50%; bottom: calc(112px * var(--s)); transform: translateX(-50%);
  display: flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px;
  background: var(--rec); font: 500 calc(13px * var(--s))/1.3 var(--mono); color: #fff;
}
.rec span { width: 7px; height: 7px; border-radius: 50%; background: #fff; animation: blink 1.2s steps(2, jump-none) infinite; }
@keyframes blink { 50% { opacity: .2; } }
.shutter {
  position: absolute; left: 50%; bottom: calc(28px * var(--s)); transform: translateX(-50%);
  width: calc(70px * var(--s)); height: calc(70px * var(--s)); border-radius: 50%; border: 4px solid #fff;
  display: grid; place-items: center;
}
.shutter span { width: calc(26px * var(--s)); height: calc(26px * var(--s)); border-radius: calc(7px * var(--s)); background: var(--rec); }

/* Sections */
.modes, .how, .features, .privacy, .download { padding-bottom: var(--section); }
.modes h2, .how h2, .features h2 { font-size: clamp(40px, 4.6vw, 60px); line-height: 1; letter-spacing: -.03em; margin-bottom: clamp(28px, 4vw, 56px); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: clamp(22px, 2.4vw, 32px); }

/* Two modes */
.modes-grid { display: grid; gap: 16px; }
.mode { display: flex; flex-direction: column; gap: 12px; padding: clamp(20px, 3vw, 44px); }
.mode h3 { margin-top: 12px; font: 700 clamp(26px, 2.4vw, 32px)/1.1 var(--display); letter-spacing: -.02em; }
.mode p { font-size: clamp(16px, 1.3vw, 18px); line-height: 1.55; color: var(--muted); }
.viz { position: relative; height: clamp(210px, 21vw, 300px); border-radius: 18px; overflow: hidden; }
.viz p { font-size: clamp(12px, 1vw, 15px); font-weight: 600; text-align: center; color: #fff; }
.viz .dim { color: rgba(255, 255, 255, .3); }
.viz .mid { color: rgba(255, 255, 255, .5); }
.viz svg { fill: none; stroke: var(--text); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.viz-float { background: var(--surface-2); }
.viz-float .bar, .viz-float .block { position: absolute; left: 6%; border-radius: 7px; background: rgba(244, 241, 236, .09); }
.viz-float .b1 { top: 10%; width: 40%; height: 12px; }
.viz-float .b2 { top: 20%; width: 28%; height: 12px; background: rgba(244, 241, 236, .06); }
.viz-float .block { top: 34%; width: 52%; height: 54%; border-radius: 14px; background: rgba(244, 241, 236, .045); }
.mini-pip {
  position: absolute; right: 6%; top: 15%; width: min(250px, 68%); height: 47%;
  display: flex; flex-direction: column; justify-content: center; gap: 6px; padding: 0 12px;
  background: #000; border: 1px solid rgba(255, 255, 255, .12); border-radius: 16px;
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .9);
}
.drag { position: absolute; right: 12%; top: 68%; width: clamp(32px, 3vw, 44px); stroke-width: 1.6; }
.viz-record { background: radial-gradient(110% 90% at 50% 20%, #3E352C 0%, #1B1714 70%); }
.viz-record .box {
  position: absolute; left: 12%; right: 12%; top: 9%; height: 50%;
  display: flex; flex-direction: column; justify-content: center; gap: 6px; padding: 0 16px;
  background: rgba(0, 0, 0, .6); border-radius: 14px 14px 14px 0;
}
.tabs { position: absolute; left: 12%; right: 12%; top: 59%; display: flex; gap: 6px; }
.tabs i { flex-grow: 1; }
.tabs span {
  display: grid; place-items: center; width: clamp(38px, 3.4vw, 46px); height: clamp(30px, 2.6vw, 36px);
  border-radius: 0 0 10px 10px; background: rgba(0, 0, 0, .6);
}
.tabs svg { width: 45%; }
.shutter-sm { --s: .7; bottom: 8%; border-width: 3px; }
.shutter-sm span { width: 76%; height: 76%; border-radius: 50%; }
.count { position: absolute; right: 7%; bottom: 7%; font: 800 clamp(44px, 4.4vw, 64px)/1 var(--display); color: rgba(255, 255, 255, .9); }

/* Steps */
.steps { margin: 0; padding: 0; list-style: none; display: grid; gap: 28px; }
.steps li { display: flex; flex-direction: column; gap: 10px; padding-top: 22px; border-top: 1px solid var(--line-2); }
.num { font: 500 14px/1 var(--mono); color: var(--accent); }
.steps h3 { font-size: clamp(22px, 1.9vw, 26px); font-weight: 600; letter-spacing: -.01em; }
.steps p { font-size: clamp(16px, 1.2vw, 17px); line-height: 1.55; color: var(--muted); }

/* Features */
.features-grid { display: grid; gap: 12px; }
.feature { display: flex; flex-direction: column; gap: 8px; padding: clamp(24px, 2.2vw, 32px); }
.feature h3 { font-size: clamp(19px, 1.5vw, 21px); font-weight: 600; }
.feature p { font-size: clamp(15px, 1.1vw, 16px); line-height: 1.55; color: var(--muted); }

/* Privacy */
.privacy-band {
  display: flex; flex-direction: column; gap: 14px; padding: clamp(28px, 4vw, 56px) clamp(24px, 4.4vw, 64px);
  border: 1px solid rgba(244, 241, 236, .12); border-radius: clamp(26px, 2.4vw, 32px);
}
.privacy-band h2 { font-size: clamp(32px, 3.1vw, 44px); line-height: 1.05; letter-spacing: -.025em; }
.privacy-band p { max-width: 560px; font-size: clamp(16px, 1.3vw, 19px); line-height: 1.55; color: var(--muted); }

/* Download */
.download { display: flex; flex-direction: column; align-items: center; gap: 24px; padding-top: 24px; text-align: center; }
.download h2 { max-width: 900px; font-size: clamp(46px, 5.6vw, 80px); line-height: .98; letter-spacing: -.035em; }
.soon {
  display: inline-flex; align-items: center; height: 58px; padding: 0 30px; border-radius: 999px;
  border: 1px solid var(--accent); color: var(--accent); font-size: 17px; font-weight: 600;
}

/* Footer */
.footer {
  display: flex; flex-direction: column; gap: 8px; padding-block: 28px 36px;
  border-top: 1px solid var(--line); font-size: 14px; color: var(--faint);
}
.footer nav { display: flex; gap: 24px; }
.footer a { display: inline-flex; align-items: center; min-height: 44px; }
.footer a:hover { color: var(--text); }

/* Legal page */
.legal { max-width: 720px; padding-block: 40px var(--section); }
.legal h1 { font-size: clamp(40px, 5vw, 60px); line-height: 1; letter-spacing: -.03em; margin-bottom: 12px; }
.legal h2 { font-size: 24px; letter-spacing: -.01em; margin: 40px 0 10px; }
.legal p, .legal li { color: var(--muted); font-size: 17px; line-height: 1.6; }
.legal ul { padding-left: 20px; }
.legal a { color: var(--accent); }

@media (min-width: 640px) {
  .actions { flex-direction: row; }
  .features-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer { flex-direction: row; align-items: center; justify-content: space-between; }
}

@media (min-width: 900px) {
  .nav { height: 88px; }
  .hide-sm { display: inline; }
  .modes-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
  .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
  .privacy-band { flex-direction: row; align-items: center; justify-content: space-between; gap: 48px; }
}

@media (min-width: 1024px) {
  .hero { grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); align-items: center; gap: 64px; padding-top: 104px; }
  .hero-copy { gap: 32px; }
  .eyebrow { font-size: 14px; }
  .phone { --s: 1; }
  .features-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .pip-track, .rec span { animation: none; }
}
