/* Duovid website — matches the app's Theme.swift tokens. No external fonts or trackers. */
:root {
  --brand: #ff3b6d;
  --brand-alt: #00e5ff;
  --purple: #9933ff;
  --bg: #0a0a0d;
  --surface: #19191f;
  --surface-2: #26262e;
  --stroke: rgba(255, 255, 255, 0.10);
  --text: #ffffff;
  --text-2: rgba(255, 255, 255, 0.66);
  --text-3: rgba(255, 255, 255, 0.45);
  --grad: linear-gradient(135deg, #ff3b6d 0%, #9933ff 100%);
  --radius: 24px;
  --max: 1120px;
  --font: ui-rounded, "SF Pro Rounded", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
html, body { overflow-x: clip; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { line-height: 1.08; letter-spacing: -0.02em; margin: 0; }
p { margin: 0; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.pink { color: var(--brand); }
.skip { position: absolute; left: -999px; top: 8px; background: #fff; color: #000; padding: 8px 12px; border-radius: 8px; z-index: 99; }
.skip:focus { left: 8px; }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(10, 10, 13, 0.72);
  backdrop-filter: saturate(160%) blur(16px);
  -webkit-backdrop-filter: saturate(160%) blur(16px);
  border-bottom: 1px solid transparent;
}
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 12px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 900; font-size: 22px; letter-spacing: -0.02em; }
.logo small { font-size: 12px; font-weight: 700; color: var(--text-3); letter-spacing: 0; margin-left: 2px; align-self: flex-end; margin-bottom: 4px; }
.logo img { width: 34px; height: 34px; border-radius: 9px; }
.nav-links { display: flex; align-items: center; gap: 22px; }
.nav-links a { text-decoration: none; color: var(--text-2); font-weight: 600; font-size: 15px; }
.nav-links a:hover { color: var(--text); }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 20px; border-radius: 999px;
  background: var(--grad); color: #fff !important; font-weight: 800; font-size: 15px; text-decoration: none;
  box-shadow: 0 8px 24px rgba(255, 59, 109, 0.35);
}
@media (max-width: 720px) { .nav-links a:not(.btn) { display: none; } }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 56px 0 40px; }
.hero::before {
  content: ""; position: absolute; inset: -120px 0 auto; height: 720px; z-index: -1; pointer-events: none;
  background:
    radial-gradient(520px 360px at 78% 30%, rgba(153, 51, 255, 0.35), transparent 70%),
    radial-gradient(480px 340px at 18% 20%, rgba(255, 59, 109, 0.30), transparent 70%),
    radial-gradient(360px 260px at 60% 80%, rgba(0, 229, 255, 0.14), transparent 70%);
}
.hero .wrap { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 48px; align-items: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.06); border: 1px solid var(--stroke);
  font-size: 13px; font-weight: 700; color: var(--text-2); margin-bottom: 20px;
}
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 12px var(--brand); }
.hero h1 { font-size: clamp(40px, 6.4vw, 72px); font-weight: 900; }
.hero .lead { margin-top: 20px; font-size: clamp(17px, 2vw, 20px); color: var(--text-2); max-width: 34em; }
.hero .badges { margin-top: 32px; }
.hero-note { margin-top: 16px; font-size: 14px; color: var(--text-3); }

.hero-visual { position: relative; display: flex; justify-content: center; min-height: 560px; }
.hero-visual .phone { width: 270px; position: relative; z-index: 2; transform: rotate(-2deg); }
.hero-visual .phone.back { position: absolute; width: 230px; right: 0; top: 64px; z-index: 1; transform: rotate(7deg); opacity: 0.9; }
.hero-visual .phone.back.left { right: auto; left: 0; transform: rotate(-9deg); top: 90px; }

/* ---------- Phone frame ---------- */
.phone {
  border-radius: 44px; padding: 9px; background: #1d1d22;
  box-shadow: 0 0 0 1.5px #3a3a42 inset, 0 30px 80px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.04);
}
.phone img { border-radius: 36px; width: 100%; height: auto; aspect-ratio: 1179 / 2556; object-fit: cover; background: #000; }

/* ---------- Store badges ---------- */
.badges { display: flex; flex-wrap: wrap; gap: 12px; }
.badge {
  display: inline-flex; align-items: center; gap: 12px; min-width: 196px; height: 60px; padding: 0 20px 0 16px;
  border-radius: 16px; background: #fff; color: #000; text-decoration: none;
  transition: transform .15s ease, box-shadow .15s ease;
}
.badge:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(255, 255, 255, 0.12); }
.badge svg { width: 28px; height: 28px; flex: none; }
.badge span { display: flex; flex-direction: column; line-height: 1.1; }
.badge .badge-sub { font-size: 11px; font-weight: 600; letter-spacing: .02em; }
.badge .badge-main { font-size: 20px; font-weight: 800; letter-spacing: -0.01em; }
.badge.is-soon { background: transparent; color: var(--text-2); border: 1.5px solid var(--stroke); cursor: default; }
.badge.is-soon:hover { transform: none; box-shadow: none; }
.badge.is-soon svg { opacity: .6; }

/* ---------- Pills / trust row ---------- */
.trust { padding: 8px 0 24px; }
.trust ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.trust li {
  display: flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--stroke); font-weight: 700; font-size: 14px; color: var(--text-2);
}
.trust li svg { width: 18px; height: 18px; color: var(--brand); }

/* ---------- Sections ---------- */
section { scroll-margin-top: 72px; }
.section { padding: 88px 0; }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 48px; }
.kicker { font-size: 13px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--brand); margin-bottom: 12px; }
.section-head h2, .feature h2 { font-size: clamp(32px, 4.6vw, 52px); font-weight: 900; }
.section-head p { margin-top: 16px; color: var(--text-2); font-size: 18px; }

/* Three modes */
.modes { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.mode {
  position: relative; overflow: hidden; padding: 28px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--stroke);
}
.mode::after { content: ""; position: absolute; inset: auto -40px -60px auto; width: 220px; height: 220px; border-radius: 50%; filter: blur(50px); opacity: .45; pointer-events: none; }
.mode.m1::after { background: var(--brand); }
.mode.m2::after { background: var(--brand-alt); }
.mode.m3::after { background: var(--purple); }
.mode.m4::after { background: #ffb03b; }
.mode .ic { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; margin-bottom: 20px; }
.mode.m1 .ic { background: var(--brand); box-shadow: 0 0 24px rgba(255, 59, 109, .6); }
.mode.m2 .ic { background: #4fd7f2; box-shadow: 0 0 24px rgba(0, 229, 255, .5); }
.mode.m3 .ic { background: #9b4dff; box-shadow: 0 0 24px rgba(153, 51, 255, .6); }
.mode.m4 .ic { background: #ff9f1a; box-shadow: 0 0 24px rgba(255, 159, 26, .55); }
.mode .ic svg { width: 24px; height: 24px; color: #fff; }
.mode h3 { font-size: 22px; font-weight: 900; }
.mode p { margin-top: 10px; color: var(--text-2); }

/* Feature rows */
.feature .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.feature.flip .copy { order: 2; }
.feature .copy p { margin-top: 18px; color: var(--text-2); font-size: 18px; }
.feature .visual { display: flex; justify-content: center; gap: 20px; position: relative; }
.feature .visual::before {
  content: ""; position: absolute; inset: 10% 10%; border-radius: 50%; filter: blur(70px); opacity: .35; z-index: 0;
  background: var(--glow, var(--brand));
}
.feature .visual .phone { width: 280px; z-index: 1; }
.feature .visual.duo .phone { width: 240px; }
.feature .visual.duo .phone:nth-child(2) { margin-top: 56px; }
.ticks { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 12px; }
.ticks li { position: relative; padding-left: 32px; color: var(--text); font-weight: 600; }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: 3px; width: 20px; height: 20px; border-radius: 50%;
  background: var(--grad);
  -webkit-mask: radial-gradient(circle, #000 99%, transparent 100%);
}
.ticks li::after {
  content: ""; position: absolute; left: 6px; top: 8px; width: 8px; height: 5px;
  border-left: 2.5px solid #fff; border-bottom: 2.5px solid #fff; transform: rotate(-45deg);
}
.ticks li span { display: block; font-weight: 400; color: var(--text-2); font-size: 15px; margin-top: 2px; }

/* Layout gallery */
.layouts { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
.layout { text-align: center; }
.layout .frame {
  position: relative; aspect-ratio: 9 / 16; border-radius: 18px; overflow: hidden;
  background: #111116; border: 1.5px solid #34343c;
}
.layout .vid { position: absolute; background: linear-gradient(160deg, #3b82f6, #22d3ee); }
.layout .vid::after {
  content: ""; position: absolute; left: 50%; top: 50%; transform: translate(-35%, -50%);
  border-left: 14px solid rgba(255, 255, 255, .95); border-top: 9px solid transparent; border-bottom: 9px solid transparent;
}
.layout .me { position: absolute; background: linear-gradient(160deg, #6b1d3a, #3a1030); display: grid; place-items: center; }
.layout .me i { display: block; width: 34%; max-width: 34px; aspect-ratio: 1; border-radius: 50%; background: rgba(255, 255, 255, .92); position: relative; }
.layout .me i::after { content: ""; position: absolute; left: -45%; right: -45%; top: 115%; height: 70%; border-radius: 50% 50% 8px 8px; background: rgba(255, 255, 255, .92); }
.layout figcaption { margin-top: 10px; font-weight: 700; font-size: 14px; color: var(--text-2); }
/* positions */
.l-tb .vid { inset: 0 0 50% 0; } .l-tb .me { inset: 50% 0 0 0; }
.l-sbs .vid { inset: 30% 50% 30% 0; } .l-sbs .me { inset: 30% 0 30% 50%; }
.l-bub .vid { inset: 0; } .l-bub .me { width: 42%; aspect-ratio: 3/4; right: 8%; bottom: 6%; border-radius: 12px; border: 2px solid #fff; }
.l-cir .vid { inset: 0; } .l-cir .me { width: 56%; aspect-ratio: 1; left: 22%; bottom: 7%; border-radius: 50%; border: 2px solid #fff; overflow: hidden; }
.l-rev .me { inset: 0; } .l-rev .vid { width: 46%; aspect-ratio: 9/12; right: 7%; top: 6%; border-radius: 12px; border: 2px solid #fff; z-index: 2; }
.l-rev .vid::after { border-left-width: 9px; border-top-width: 6px; border-bottom-width: 6px; }
.l-gs .vid { inset: 0; } .l-gs .me { inset: 38% 18% 0 18%; background: transparent; align-items: end; }
.l-gs .me i { width: 46%; max-width: 46px; margin-bottom: 52%; background: #ffd1df; }
.l-gs .me i::after { background: #ff3b6d; top: 105%; height: 100%; left: -55%; right: -55%; }

/* Prompter illustration */
.prompter {
  position: relative; width: 300px; max-width: 100%; aspect-ratio: 9 / 18; border-radius: 44px; padding: 9px; background: #1d1d22;
  box-shadow: 0 0 0 1.5px #3a3a42 inset, 0 30px 80px rgba(0, 0, 0, .6); z-index: 1;
}
.prompter .screen {
  position: relative; height: 100%; border-radius: 36px; overflow: hidden;
  background: radial-gradient(120% 70% at 50% 80%, #4a1b3a 0%, #120a14 60%, #07070a 100%);
}
.prompter .cam { position: absolute; top: 12px; left: 50%; width: 90px; height: 26px; transform: translateX(-50%); border-radius: 20px; background: #000; }
.prompter .script {
  position: absolute; left: 14px; right: 14px; top: 48px; height: 44%; border-radius: 18px; overflow: hidden;
  background: rgba(0, 0, 0, .55); border: 1px solid rgba(255, 255, 255, .12); padding: 16px 16px 0;
  font-weight: 800; font-size: 17px; line-height: 1.35;
  -webkit-mask: linear-gradient(#000 70%, transparent);
  mask: linear-gradient(#000 70%, transparent);
}
.prompter .script p { color: rgba(255, 255, 255, .45); }
.prompter .script p.now { color: #fff; }
.prompter .script .line { position: absolute; left: 0; top: 52px; border-left: 8px solid var(--brand); border-top: 6px solid transparent; border-bottom: 6px solid transparent; }
.prompter .roll { animation: roll 12s linear infinite; }
@keyframes roll { from { transform: translateY(0); } to { transform: translateY(-50%); } }
.prompter .person { position: absolute; left: 50%; bottom: 0; width: 64%; transform: translateX(-50%); aspect-ratio: 1 / 1.05; }
.prompter .person::before { content: ""; position: absolute; left: 30%; right: 30%; top: 0; aspect-ratio: 1; border-radius: 50%; background: #e9b8a6; }
.prompter .person::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 48%; border-radius: 50% 50% 0 0; background: #2a2a33; }
.prompter .rail { position: absolute; right: 12px; bottom: 28%; display: grid; gap: 12px; }
.prompter .rail span { width: 38px; height: 38px; border-radius: 50%; background: rgba(255, 255, 255, .14); }
.prompter .rail span.rec { background: #fff; box-shadow: inset 0 0 0 4px #fff, inset 0 0 0 7px #000; position: relative; }
.prompter .rail span.rec::after { content: ""; position: absolute; inset: 9px; border-radius: 50%; background: #ff3333; }
@media (prefers-reduced-motion: reduce) { .prompter .roll { animation: none; } }

/* All-features grid (6 per row) */
.fgrid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; }
.fcard {
  display: block; padding: 18px 16px 20px; border-radius: 18px; text-decoration: none;
  background: var(--surface); border: 1px solid var(--stroke);
  transition: transform .15s ease, border-color .15s ease, background .15s ease;
}
.fcard:hover { transform: translateY(-3px); border-color: rgba(255, 59, 109, .45); background: var(--surface-2); }
.fcard .num { display: inline-block; font-size: 13px; font-weight: 900; letter-spacing: .04em; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.fcard h3 { margin-top: 10px; font-size: 17px; font-weight: 800; }
.fcard p { margin-top: 6px; color: var(--text-2); font-size: 14px; line-height: 1.45; }

/* Small feature grid */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.card { padding: 24px; border-radius: 20px; background: var(--surface); border: 1px solid var(--stroke); }
.card .ic { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: rgba(255, 59, 109, .14); color: var(--brand); margin-bottom: 16px; }
.card .ic svg { width: 22px; height: 22px; }
.card h3 { font-size: 18px; font-weight: 800; }
.card p { margin-top: 6px; color: var(--text-2); font-size: 15px; }

/* Privacy band */
.privacy-band {
  border-radius: 32px; padding: 56px; text-align: center; position: relative; overflow: hidden;
  background: linear-gradient(160deg, #15151b, #101015); border: 1px solid var(--stroke);
}
.privacy-band::before { content: ""; position: absolute; inset: -40% 20% auto; height: 300px; background: rgba(0, 229, 255, .18); filter: blur(80px); }
.privacy-band > * { position: relative; }
.privacy-band .shield { width: 64px; height: 64px; margin: 0 auto 20px; color: var(--brand-alt); }
.privacy-band h2 { font-size: clamp(28px, 4vw, 44px); font-weight: 900; }
.privacy-band p { margin: 16px auto 0; max-width: 40em; color: var(--text-2); font-size: 18px; }
.privacy-band .pills { list-style: none; padding: 0; margin: 24px 0 0; display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.privacy-band .pills li { padding: 8px 16px; border-radius: 999px; background: rgba(0, 229, 255, .10); border: 1px solid rgba(0, 229, 255, .28); color: var(--text); font-weight: 700; font-size: 14px; }
.privacy-band a.more { display: inline-block; margin-top: 20px; color: var(--brand-alt); font-weight: 700; }

/* CTA */
.cta { text-align: center; }
.cta .icon { width: 96px; height: 96px; border-radius: 22px; margin: 0 auto 24px; box-shadow: 0 20px 60px rgba(255, 59, 109, .4); }
.cta h2 { font-size: clamp(34px, 5vw, 56px); font-weight: 900; }
.cta p { margin-top: 14px; color: var(--text-2); font-size: 18px; }
.cta .badges { justify-content: center; margin-top: 28px; }

/* Footer */
footer { border-top: 1px solid var(--stroke); padding: 32px 0 48px; color: var(--text-3); font-size: 14px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; align-items: center; }
footer nav { display: flex; gap: 20px; }
footer a { color: var(--text-2); text-decoration: none; }
footer a:hover { color: var(--text); }
footer .by a { color: var(--text); font-weight: 700; }

/* Reveal */
.js-reveal .reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.js-reveal .reveal.is-in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero .wrap, .feature .wrap { grid-template-columns: 1fr; gap: 40px; }
  .hero { text-align: center; padding-top: 32px; }
  .hero .lead { margin-left: auto; margin-right: auto; }
  .hero .badges { justify-content: center; }
  .hero-visual { min-height: 0; padding: 0 0 20px; }
  .feature .copy, .feature.flip .copy { order: 0; text-align: left; }
  .modes { grid-template-columns: 1fr 1fr; }
  .grid { grid-template-columns: 1fr 1fr; }
  .layouts { grid-template-columns: repeat(3, 1fr); }
  .fgrid { grid-template-columns: repeat(3, 1fr); }
  .section { padding: 64px 0; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  .hero-visual .phone { width: 210px; }
  .hero-visual .phone.back { width: 160px; top: 40px; right: 0; }
  .hero-visual .phone.back.left { left: 0; right: auto; top: 60px; }
  .phone { border-radius: 34px; padding: 7px; }
  .phone img { border-radius: 28px; }
  .feature .visual .phone { width: 230px; }
  .feature .visual.duo { gap: 12px; }
  .feature .visual.duo .phone { width: calc(50% - 6px); max-width: 200px; }
  .feature .visual.duo .phone:nth-child(2) { margin-top: 36px; }
  .grid, .modes { grid-template-columns: 1fr; }
  .fgrid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .fcard { padding: 16px 14px 18px; }
  .layouts { grid-template-columns: repeat(2, 1fr); gap: 16px 12px; max-width: 320px; margin: 0 auto; }
  .badges { flex-direction: column; align-items: stretch; }
  .badge { width: 100%; justify-content: center; }
  .cta .badges, .hero .badges { max-width: 320px; margin-left: auto; margin-right: auto; }
  .privacy-band { padding: 40px 22px; border-radius: 24px; }
  .mode { padding: 24px; }
}

/* ---------- Legal page ---------- */
.legal { padding: 48px 0 80px; }
.legal .wrap { max-width: 760px; }
.legal h1 { font-size: clamp(36px, 6vw, 52px); font-weight: 900; }
.legal .updated { margin-top: 10px; color: var(--text-3); font-size: 15px; }
.legal .tldr {
  margin: 32px 0 8px; padding: 22px 24px; border-radius: 20px; background: var(--surface); border: 1px solid var(--stroke);
}
.legal .tldr > strong { display: block; font-size: 18px; margin-bottom: 8px; }
.legal .tldr ul { margin: 0; padding-left: 20px; color: var(--text-2); }
.legal .tldr li + li { margin-top: 4px; }
.legal h2 { font-size: 24px; font-weight: 800; margin: 44px 0 12px; }
.legal h3 { font-size: 18px; font-weight: 800; margin: 24px 0 8px; }
.legal p, .legal li { color: var(--text-2); }
.legal p + p { margin-top: 12px; }
.legal ul { padding-left: 20px; }
.legal li + li { margin-top: 6px; }
.legal li strong, .legal p strong { color: var(--text); }
.legal a { color: var(--brand-alt); }
.legal table { width: 100%; border-collapse: collapse; margin-top: 12px; font-size: 15px; }
.legal th, .legal td { text-align: left; vertical-align: top; padding: 12px 10px; border-bottom: 1px solid var(--stroke); }
.legal th { color: var(--text); font-weight: 800; }
.legal td { color: var(--text-2); }
.legal td:first-child { color: var(--text); font-weight: 700; white-space: nowrap; }
@media (max-width: 560px) {
  .legal table, .legal tbody, .legal tr, .legal td { display: block; width: 100%; }
  .legal thead { display: none; }
  .legal tr { padding: 12px 0; border-bottom: 1px solid var(--stroke); }
  .legal td { border: 0; padding: 2px 0; white-space: normal !important; }
}

footer .ver { color: var(--text-3); font-size: 12px; }
