:root {
  color-scheme: dark light;
  --bg: #0b111c;
  --bg-elevated: #121c2e;
  --bg-recessed: #0e1625;
  --border: rgba(148, 163, 184, 0.22);
  --border-strong: rgba(96, 165, 250, 0.42);
  --text: #f8fafc;
  --text-muted: #94a3b8;
  --text-soft: #cbd5e1;
  --primary: #3b82f6;
  --primary-hover: #2563eb;
  --primary-soft: rgba(59, 130, 246, 0.16);
  --primary-text: #93c5fd;
  --accent-green: #10b981;
  --accent-green-soft: rgba(16, 185, 129, 0.14);
  --shadow-card: 0 18px 42px rgba(2, 6, 23, 0.42);
  --shadow-phone: 0 24px 60px rgba(2, 6, 23, 0.65);
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-pill: 999px;
  --max-w: 1080px;
}

@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    color-scheme: light;
    --bg: #f4f7fb;
    --bg-elevated: #ffffff;
    --bg-recessed: #eef3fa;
    --border: rgba(15, 23, 42, 0.12);
    --border-strong: rgba(37, 99, 235, 0.35);
    --text: #0f172a;
    --text-muted: #475569;
    --text-soft: #334155;
    --primary: #2563eb;
    --primary-hover: #1d4ed8;
    --primary-soft: rgba(37, 99, 235, 0.10);
    --primary-text: #1d4ed8;
    --accent-green: #059669;
    --accent-green-soft: rgba(5, 150, 105, 0.11);
    --shadow-card: 0 12px 30px rgba(15, 23, 42, 0.08);
    --shadow-phone: 0 22px 48px rgba(15, 23, 42, 0.18);
  }
}

:root[data-theme="light"] {
  color-scheme: light;
  --bg: #f4f7fb;
  --bg-elevated: #ffffff;
  --bg-recessed: #eef3fa;
  --border: rgba(15, 23, 42, 0.12);
  --border-strong: rgba(37, 99, 235, 0.35);
  --text: #0f172a;
  --text-muted: #475569;
  --text-soft: #334155;
  --primary: #2563eb;
  --primary-hover: #1d4ed8;
  --primary-soft: rgba(37, 99, 235, 0.10);
  --primary-text: #1d4ed8;
  --accent-green: #059669;
  --accent-green-soft: rgba(5, 150, 105, 0.11);
  --shadow-card: 0 12px 30px rgba(15, 23, 42, 0.08);
  --shadow-phone: 0 22px 48px rgba(15, 23, 42, 0.18);
}

:root[data-theme="dark"] {
  color-scheme: dark;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  -webkit-text-size-adjust: 100%;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  min-height: 100dvh;
  background:
    radial-gradient(900px 480px at 78% -8%, rgba(59, 130, 246, 0.18), transparent 65%),
    radial-gradient(640px 360px at 12% 14%, rgba(16, 185, 129, 0.08), transparent 60%),
    var(--bg);
}

a {
  color: var(--primary-text);
  text-underline-offset: 3px;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 8px;
  padding: 10px 14px;
  border-radius: var(--radius-md);
  background: var(--primary);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  z-index: 100;
}
.skip-link:focus { left: 12px; }

.container {
  width: min(100%, var(--max-w));
  margin: 0 auto;
  padding: 0 clamp(16px, 4vw, 28px);
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 66px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
  font-weight: 750;
  font-size: 1.08rem;
  letter-spacing: -0.02em;
}

.brand img.brand-logo {
  height: 44px;
  width: auto;
  border-radius: 0;
  display: block;
}

.brand img.brand-logo-light {
  display: none;
}

@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) .brand img.brand-logo-dark { display: none; }
  :root:not([data-theme="dark"]) .brand img.brand-logo-light { display: block; }
}

:root[data-theme="light"] .brand img.brand-logo-dark { display: none; }
:root[data-theme="light"] .brand img.brand-logo-light { display: block; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 18px;
}

.nav-links a:not(.btn) {
  color: var(--text-soft);
  text-decoration: none;
  font-size: 0.94rem;
  font-weight: 500;
}

.nav-links a:not(.btn):hover {
  color: var(--text);
}

.theme-toggle {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  padding: 0;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  color: var(--text-soft);
  cursor: pointer;
  flex-shrink: 0;
  transition: border-color 140ms ease, color 140ms ease, background-color 140ms ease;
}

.theme-toggle:hover {
  border-color: var(--border-strong);
  color: var(--text);
}

.theme-toggle svg {
  width: 18px;
  height: 18px;
  display: block;
}

.theme-toggle .icon-sun { display: block; }
.theme-toggle .icon-moon { display: none; }

@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) .theme-toggle .icon-sun { display: none; }
  :root:not([data-theme="dark"]) .theme-toggle .icon-moon { display: block; }
}

:root[data-theme="light"] .theme-toggle .icon-sun { display: none; }
:root[data-theme="light"] .theme-toggle .icon-moon { display: block; }

@media (max-width: 640px) {
  .nav-hide-sm { display: none; }
  .nav-links { gap: 10px; }
  .brand img.brand-logo { height: 36px; }
}

/* Buttons & Badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  background: var(--primary-soft);
  border: 1px solid var(--border-strong);
  color: var(--primary-text);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent-green);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 22px;
  border-radius: var(--radius-md);
  font-size: 0.98rem;
  font-weight: 680;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color 140ms ease, border-color 140ms ease, transform 140ms ease;
}

.btn-sm {
  padding: 9px 15px;
  font-size: 0.88rem;
  border-radius: var(--radius-pill);
}

.btn-primary {
  background: var(--primary);
  color: #ffffff;
}

.btn-primary:hover {
  background: var(--primary-hover);
  transform: translateY(-1px);
}

.btn-secondary {
  background: var(--bg-elevated);
  color: var(--text);
  border-color: var(--border);
}

.btn-secondary:hover {
  border-color: var(--border-strong);
}

/* Hero */
.hero {
  padding: clamp(36px, 6vw, 72px) 0 clamp(44px, 6vw, 80px);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(28px, 5vw, 56px);
  align-items: center;
}

@media (max-width: 860px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-actions,
  .hero-meta {
    justify-content: center;
  }
}

.hero h1 {
  margin: 16px 0 14px;
  font-size: clamp(2.15rem, 5.2vw, 3.5rem);
  line-height: 1.07;
  letter-spacing: -0.032em;
}

.hero-accent {
  background: linear-gradient(120deg, #60a5fa 0%, #34d399 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) .hero-accent {
    background: linear-gradient(120deg, #2563eb 0%, #059669 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
  }
}

:root[data-theme="light"] .hero-accent {
  background: linear-gradient(120deg, #2563eb 0%, #059669 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-lead {
  margin: 0 0 24px;
  font-size: clamp(1.02rem, 2.2vw, 1.16rem);
  color: var(--text-soft);
  max-width: 54ch;
}

@media (max-width: 860px) {
  .hero-lead { margin-inline: auto; }
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 22px;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.hero-meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.trust-strip {
  margin-top: clamp(28px, 4vw, 44px);
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

@media (max-width: 860px) {
  .trust-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 440px) {
  .trust-strip { grid-template-columns: 1fr; }
}

.trust-item {
  background: color-mix(in srgb, var(--bg-elevated) 85%, transparent);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 14px 16px;
}

.trust-item strong {
  display: block;
  font-size: 0.94rem;
  color: var(--text);
  margin-bottom: 2px;
}

.trust-item span {
  display: block;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
}

.hero-visual::before {
  content: "";
  position: absolute;
  inset: 8% 10%;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.28) 0%, rgba(16, 185, 129, 0.12) 48%, transparent 72%);
  filter: blur(34px);
  pointer-events: none;
  z-index: 0;
}

/* Sleek Flagship Phone Hardware Frame (Uniform 9:20 ratio across all cards & videos) */
.phone-frame {
  position: relative;
  z-index: 1;
  width: min(100%, 296px);
  padding: 9px;
  border-radius: 36px;
  background: linear-gradient(155deg, #334155 0%, #0f172a 46%, #1e293b 100%);
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    var(--shadow-phone);
}

.phone-frame::before {
  content: "";
  position: absolute;
  top: 15px;
  left: 50%;
  transform: translateX(-50%);
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #020617;
  box-shadow: 0 0 0 1.5px rgba(148, 163, 184, 0.24);
  z-index: 3;
  pointer-events: none;
}

.phone-frame img,
.phone-frame video {
  width: 100%;
  aspect-ratio: 9 / 20;
  height: auto;
  object-fit: cover;
  display: block;
  border-radius: 27px;
  background: #0b111c;
}

:root[data-theme="light"] .phone-frame img,
:root[data-theme="light"] .phone-frame video {
  background: #f8fafc;
}

/* Interactive Video Demo Section */
.demo-panel {
  background:
    radial-gradient(520px 260px at 14% 0%, rgba(16, 185, 129, 0.14), transparent 70%),
    radial-gradient(520px 260px at 88% 100%, rgba(59, 130, 246, 0.16), transparent 70%),
    var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: clamp(20px, 4.5vw, 38px);
  box-shadow: var(--shadow-card);
}

.demo-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: clamp(24px, 4.5vw, 48px);
  align-items: center;
}

@media (max-width: 860px) {
  .demo-grid {
    grid-template-columns: 1fr;
  }
}

.demo-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0 16px;
}

.demo-tab {
  appearance: none;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 650;
  padding: 10px 16px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  background: var(--bg-recessed);
  color: var(--text-soft);
  cursor: pointer;
  transition: background-color 140ms ease, border-color 140ms ease, color 140ms ease;
}

.demo-tab:hover {
  border-color: var(--border-strong);
  color: var(--text);
}

.demo-tab[aria-selected="true"] {
  background: var(--primary);
  border-color: var(--primary);
  color: #ffffff;
}

.demo-caption {
  margin: 0 0 14px;
  color: var(--text-soft);
  font-size: 0.97rem;
}

.demo-chapters {
  list-style: none;
  margin: 0 0 22px;
  padding: 0;
  display: grid;
  gap: 10px;
}

.demo-chapters li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 12px;
  border-radius: var(--radius-md);
  background: var(--bg-recessed);
  border: 1px solid var(--border);
  font-size: 0.9rem;
  color: var(--text-soft);
}

.chapter-badge {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--primary-soft);
  color: var(--primary-text);
  font-size: 0.78rem;
  font-weight: 750;
}

.demo-player-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.demo-player-note {
  margin: 0;
  font-size: 0.82rem;
  color: var(--text-muted);
  text-align: center;
}

/* Sections */
.section {
  padding: clamp(40px, 6vw, 72px) 0;
}

.section-head {
  max-width: 640px;
  margin-bottom: clamp(24px, 4vw, 36px);
}

.section-eyebrow {
  font-size: 0.8rem;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary-text);
  margin: 0 0 8px;
}

.section-head h2 {
  margin: 0 0 10px;
  font-size: clamp(1.55rem, 3.6vw, 2.25rem);
  line-height: 1.16;
  letter-spacing: -0.025em;
}

.section-head p {
  margin: 0;
  color: var(--text-muted);
  font-size: 1rem;
}

/* Feature Grid (8-card 4x2 desktop, 2x4 tablet, 1x8 mobile) */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

@media (max-width: 1080px) {
  .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
  .feature-grid { grid-template-columns: 1fr; }
}

.card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow-card);
  transition: border-color 160ms ease, transform 160ms ease;
}

.card:hover {
  border-color: var(--border-strong);
  transform: translateY(-2px);
}

.card h3 {
  margin: 0 0 8px;
  font-size: 1.08rem;
  letter-spacing: -0.015em;
}

.card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* Also built in compact strip */
.also-strip {
  margin-top: 20px;
  padding: 16px 20px;
  border-radius: var(--radius-lg);
  background: var(--bg-recessed);
  border: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 12px;
}

.also-label {
  font-size: 0.78rem;
  font-weight: 750;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--primary-text);
  margin-right: 4px;
}

.also-pills {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.also-pills li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  font-size: 0.84rem;
  font-weight: 550;
  color: var(--text-soft);
}

.also-pills li::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-green);
  flex-shrink: 0;
}

.pill-tag {
  display: inline-block;
  margin-bottom: 12px;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  font-size: 0.76rem;
  font-weight: 700;
  background: var(--primary-soft);
  color: var(--primary-text);
}

/* Screenshots Showcase */
.screens-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

@media (max-width: 720px) {
  .screens-grid { grid-template-columns: 1fr; }
}

.screen-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 24px 20px 26px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 14px;
  box-shadow: var(--shadow-card);
  transition: border-color 160ms ease, transform 160ms ease;
}

.screen-card:hover {
  border-color: var(--border-strong);
  transform: translateY(-2px);
}

.screen-card .phone-frame {
  width: min(100%, 256px);
  padding: 8px;
  border-radius: 32px;
}

.screen-card .phone-frame::before {
  top: 13px;
  width: 8px;
  height: 8px;
}

.screen-card .phone-frame img {
  border-radius: 24px;
}

.screen-card h3 {
  margin: 0;
  font-size: 1.04rem;
}

.screen-card p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-muted);
  max-width: 30ch;
}

/* Beta Sign-up Panel */
.beta-panel {
  background:
    radial-gradient(520px 260px at 90% 0%, rgba(59, 130, 246, 0.20), transparent 70%),
    var(--bg-elevated);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-xl);
  padding: clamp(22px, 4.5vw, 40px);
  box-shadow: var(--shadow-card);
}

.beta-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: clamp(24px, 4vw, 44px);
  align-items: start;
}

@media (max-width: 820px) {
  .beta-grid { grid-template-columns: 1fr; }
}

.beta-list {
  margin: 16px 0 0;
  padding-left: 20px;
  color: var(--text-soft);
  display: grid;
  gap: 8px;
  font-size: 0.94rem;
}

.beta-form {
  background: var(--bg-recessed);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  display: grid;
  gap: 14px;
}

.field {
  display: grid;
  gap: 6px;
}

.field label {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-soft);
}

.field input,
.field select {
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  color: var(--text);
  font: inherit;
  font-size: 0.96rem;
}

.field input:user-invalid {
  border-color: #ef4444;
}

.form-hint {
  margin: 0;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.form-status {
  margin: 0;
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--accent-green-soft);
  border: 1px solid color-mix(in srgb, var(--accent-green) 40%, transparent);
  color: var(--text);
  font-size: 0.9rem;
}

.form-status[hidden] { display: none; }

.status-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

/* FAQ */
.faq-list {
  display: grid;
  gap: 12px;
  max-width: 760px;
}

.faq-item {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 0 18px;
}

.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 16px 0;
  font-weight: 650;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
  content: "+";
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--primary-text);
  flex-shrink: 0;
}

.faq-item[open] summary::after {
  content: "−";
}

.faq-item p {
  margin: 0 0 16px;
  color: var(--text-muted);
  font-size: 0.94rem;
}

/* Legal / Policy Doc Layout */
.doc-main {
  padding: clamp(28px, 5vw, 52px) 0 64px;
}

.doc-card {
  width: min(100%, 740px);
  margin: 0 auto;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: clamp(22px, 5vw, 42px);
  box-shadow: var(--shadow-card);
}

.doc-card h1 {
  margin: 0 0 10px;
  font-size: clamp(1.75rem, 5vw, 2.35rem);
  line-height: 1.15;
  letter-spacing: -0.025em;
}

.doc-card h2 {
  margin: 28px 0 8px;
  font-size: 1.18rem;
}

.doc-card p,
.doc-card li {
  color: var(--text-soft);
}

.doc-meta {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin: 0 0 22px;
}

.callout {
  padding: 14px 16px;
  border-left: 3px solid var(--primary);
  background: var(--bg-recessed);
  border-radius: 10px;
  margin: 14px 0;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 28px 0 40px;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px 24px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--text);
}
