:root {
  color-scheme: light dark;
  --accent: #2F6BFF;
  --accent-strong: #174ED8;
  --accent-soft: #EDF3FF;
  --canvas: #F7F8FC;
  --surface: #FFFFFF;
  --surface-secondary: #F5F8FF;
  --surface-tint: #E8EEFF;
  --menu-tint: #EAF1FF;
  --outline: #DCE6FF;
  --text: #111827;
  --muted: #64748B;
  --soft-muted: #8290A4;
  --success: #1D9A68;
  --warning: #DC2626;
  --shadow: 0 24px 70px rgba(15, 23, 42, 0.10);
  --shadow-soft: 0 12px 38px rgba(15, 23, 42, 0.08);
  --radius-lg: 32px;
  --radius-md: 24px;
  --radius-sm: 16px;
  --container: 1120px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --accent: #2F6BFF;
    --accent-strong: #8EAFFF;
    --accent-soft: #162A61;
    --canvas: #070A12;
    --surface: #151923;
    --surface-secondary: #20283D;
    --surface-tint: #1C2745;
    --menu-tint: #1B2C5C;
    --outline: #34405F;
    --text: #F8FAFC;
    --muted: #AEB8C8;
    --soft-muted: #8995A7;
    --success: #72D39B;
    --warning: #F87171;
    --shadow: 0 24px 70px rgba(0, 0, 0, 0.38);
    --shadow-soft: 0 12px 38px rgba(0, 0, 0, 0.26);
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 14% 0%, rgba(47,107,255,0.13), transparent 34rem),
    radial-gradient(circle at 92% 8%, rgba(47,107,255,0.12), transparent 30rem),
    var(--canvas);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent-strong); }

.container {
  width: min(var(--container), calc(100% - 40px));
  margin: 0 auto;
}

.skip-link {
  position: absolute;
  left: 20px;
  top: -120px;
  z-index: 1000;
  background: var(--surface);
  color: var(--text);
  padding: 10px 14px;
  border-radius: 999px;
  box-shadow: var(--shadow-soft);
}
.skip-link:focus { top: 20px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(148, 163, 184, 0.18);
  background: color-mix(in srgb, var(--canvas) 84%, transparent);
  backdrop-filter: blur(22px);
}

.nav-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 78px;
  gap: 18px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: inline-grid;
  place-items: center;
  border-radius: 15px;
  color: #fff;
  font-weight: 800;
  letter-spacing: -0.04em;
  background: linear-gradient(180deg, #5E8BFF 0%, #2F6BFF 100%);
  box-shadow: 0 10px 24px rgba(47, 107, 255, 0.28);
}

.brand strong {
  font-size: 1.17rem;
  letter-spacing: -0.035em;
  white-space: nowrap;
}

.top-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: nowrap;
}

.top-nav a {
  color: var(--muted);
  padding: 10px 14px;
  border-radius: 14px;
  font-weight: 650;
  transition: color .2s ease, background .2s ease, transform .2s ease;
}
.top-nav a:hover,
.top-nav a:focus-visible {
  color: var(--text);
  background: color-mix(in srgb, var(--surface) 72%, transparent);
}
.top-nav .nav-cta, .button-primary {
  color: #fff;
  background: linear-gradient(180deg, #4D83FF 0%, #2F6BFF 100%);
  border: 1px solid rgba(17, 72, 170, 0.16);
  box-shadow: 0 13px 30px rgba(47, 107, 255, 0.22);
}
.top-nav .nav-cta:hover, .button-primary:hover {
  color: #fff;
  transform: translateY(-1px);
}

.hero { padding: 68px 0 36px; }
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  gap: 44px;
  align-items: center;
}
.hero-copy { max-width: 700px; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--accent-strong);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 800;
}
.eyebrow::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 0 8px color-mix(in srgb, var(--accent) 12%, transparent);
}

h1, h2, h3 { line-height: 1.08; letter-spacing: -0.045em; }
.hero h1,
.legal-hero h1 {
  margin: 14px 0 0;
  font-size: clamp(2.65rem, 5.2vw, 5.15rem);
  max-width: 12.8ch;
}
.home-hero h1 { max-width: 13.8ch; }
.hero-text {
  margin: 22px 0 0;
  max-width: 62ch;
  font-size: 1.17rem;
  color: var(--text);
}
.hero-subtext, .section-heading p, .card p, .info-panel p, .legal-hero p, .footer-brand p, .prose p, .prose li, .muted {
  color: var(--muted);
}
.hero-subtext { margin: 12px 0 0; max-width: 64ch; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin: 30px 0 0; }

.button-primary, .button-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 18px;
  border-radius: 16px;
  font-weight: 800;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
}
.button-secondary {
  color: var(--text);
  background: var(--surface);
  border: 1px solid color-mix(in srgb, var(--outline) 84%, transparent);
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.06);
}
.button-secondary:hover { transform: translateY(-1px); color: var(--text); }

.hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
}
.hero-points li {
  color: var(--muted);
  background: color-mix(in srgb, var(--surface) 74%, transparent);
  border: 1px solid color-mix(in srgb, var(--outline) 76%, transparent);
  border-radius: 999px;
  padding: 8px 12px;
  font-weight: 700;
  font-size: .92rem;
}

.hero-visual { position: relative; min-height: 420px; }
.hero-orb {
  position: absolute;
  inset: 22px 0 auto auto;
  width: min(390px, 78vw);
  height: min(390px, 78vw);
  border-radius: 999px;
  background: radial-gradient(circle at 35% 30%, rgba(255,255,255,.9), rgba(47,107,255,.18) 42%, transparent 68%);
  filter: blur(.2px);
}
.app-showcase-card,
.device-card {
  position: relative;
  margin-left: auto;
  width: min(100%, 470px);
  border-radius: var(--radius-lg);
  padding: 26px;
  border: 1px solid color-mix(in srgb, var(--outline) 78%, transparent);
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--surface) 94%, transparent), color-mix(in srgb, var(--surface-secondary) 80%, transparent));
  box-shadow: var(--shadow);
  overflow: hidden;
}
.app-showcase-card::before,
.device-card::before {
  content: "";
  position: absolute;
  inset: -80px -120px auto auto;
  width: 260px;
  height: 260px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--accent) 15%, transparent);
}
.app-top {
  position: relative;
  display: flex;
  align-items: center;
  gap: 18px;
}
.app-icon-large {
  width: 112px;
  height: 112px;
  border-radius: 26px;
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.18);
  background: #000;
  object-fit: cover;
}
.app-top strong { display: block; font-size: 1.45rem; letter-spacing: -0.045em; }
.app-top span { display: block; color: var(--muted); font-weight: 650; margin-top: 2px; }
.metric-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 24px;
}
.metric-grid div {
  border-radius: 20px;
  padding: 16px;
  background: color-mix(in srgb, var(--menu-tint) 62%, var(--surface));
  border: 1px solid color-mix(in srgb, var(--outline) 70%, transparent);
}
.metric-grid span { display: block; color: var(--muted); font-size: .82rem; font-weight: 750; }
.metric-grid strong { display: block; margin-top: 4px; line-height: 1.22; }
.device-note {
  position: relative;
  margin-top: 18px;
  border-radius: 20px;
  padding: 16px;
  background: color-mix(in srgb, var(--surface) 74%, transparent);
  border: 1px solid color-mix(in srgb, var(--outline) 68%, transparent);
}

.app-directory-card {
  position: relative;
  display: block;
  border-radius: var(--radius-lg);
  padding: 24px;
  background: var(--surface);
  border: 1px solid color-mix(in srgb, var(--outline) 78%, transparent);
  box-shadow: var(--shadow);
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.app-directory-card:hover {
  color: inherit;
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--accent) 42%, var(--outline));
  box-shadow: 0 28px 80px rgba(15, 23, 42, 0.14);
}
.app-card-row { display: flex; align-items: center; gap: 18px; }
.app-card-row img { width: 86px; height: 86px; border-radius: 22px; box-shadow: 0 14px 36px rgba(15,23,42,.18); }
.app-card-row h2 { margin: 0; font-size: 1.65rem; }
.app-card-row p { margin: 4px 0 0; }
.app-card-footer {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid color-mix(in srgb, var(--outline) 80%, transparent);
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.tag {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  border-radius: 999px;
  padding: 6px 10px;
  color: var(--accent-strong);
  background: var(--accent-soft);
  font-weight: 800;
  font-size: .84rem;
}

.section { padding: 72px 0; }
.section-alt {
  background: linear-gradient(180deg, transparent, color-mix(in srgb, var(--surface-tint) 50%, transparent), transparent);
}
.section-heading { max-width: 760px; margin-bottom: 26px; }
.section-heading h2, .info-panel h2, .cta-panel h2 {
  margin: 14px 0 0;
  font-size: clamp(2rem, 3vw, 3.1rem);
}
.section-heading p { margin: 14px 0 0; font-size: 1.05rem; }

.grid-3, .feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.card, .feature-card, .info-panel, .legal-card {
  background: var(--surface);
  border: 1px solid color-mix(in srgb, var(--outline) 78%, transparent);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
}
.card, .feature-card, .info-panel { padding: 24px; }
.card h3, .feature-card h3 { margin: 0; font-size: 1.2rem; }
.card p, .feature-card p { margin: 10px 0 0; }
.card-icon {
  width: 42px;
  height: 42px;
  border-radius: 15px;
  display: grid;
  place-items: center;
  margin-bottom: 16px;
  color: #fff;
  background: linear-gradient(180deg, #5E8BFF, #2F6BFF);
  font-weight: 900;
}

.split-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  align-items: stretch;
}
.list-clean, .steps {
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 12px;
}
.list-clean li, .steps li {
  position: relative;
  padding: 14px 14px 14px 44px;
  border-radius: 18px;
  background: color-mix(in srgb, var(--surface-secondary) 76%, transparent);
  border: 1px solid color-mix(in srgb, var(--outline) 70%, transparent);
  color: var(--muted);
}
.list-clean li::before, .steps li::before {
  position: absolute;
  left: 14px;
  top: 13px;
  width: 20px;
  height: 20px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--accent);
  font-size: 12px;
  font-weight: 900;
}
.list-clean li::before { content: "✓"; }
.steps { counter-reset: step; }
.steps li { counter-increment: step; }
.steps li::before { content: counter(step); }

.notice-panel {
  border-radius: var(--radius-md);
  padding: 22px;
  border: 1px solid color-mix(in srgb, var(--outline) 78%, transparent);
  background: linear-gradient(180deg, color-mix(in srgb, var(--accent-soft) 70%, var(--surface)), var(--surface));
}
.notice-panel p { margin: 8px 0 0; color: var(--muted); }
.notice-panel strong { color: var(--text); }

.faq-grid { display: grid; gap: 12px; }
details {
  background: var(--surface);
  border: 1px solid color-mix(in srgb, var(--outline) 78%, transparent);
  border-radius: 20px;
  padding: 18px 20px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
}
summary { cursor: pointer; font-weight: 850; color: var(--text); }
details p { margin: 10px 0 0; color: var(--muted); }

.cta-section { padding-top: 30px; }
.cta-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-radius: var(--radius-lg);
  padding: 30px;
  background: linear-gradient(135deg, var(--surface), color-mix(in srgb, var(--accent-soft) 68%, var(--surface)));
  border: 1px solid color-mix(in srgb, var(--outline) 78%, transparent);
  box-shadow: var(--shadow);
}
.cta-panel p { margin: 12px 0 0; max-width: 62ch; }

.site-footer {
  margin-top: 40px;
  padding: 42px 0;
  border-top: 1px solid color-mix(in srgb, var(--outline) 70%, transparent);
}
.footer-shell {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 30px;
}
.footer-links { display: flex; flex-wrap: wrap; gap: 10px; }
.footer-links a {
  color: var(--muted);
  border-radius: 999px;
  padding: 8px 10px;
  font-weight: 700;
}
.footer-links a:hover { background: color-mix(in srgb, var(--surface) 68%, transparent); color: var(--text); }
.footer-brand { max-width: 440px; text-align: right; }
.footer-brand strong { font-size: 1rem; }
.footer-brand p { margin: 6px 0 0; font-size: .92rem; }

.legal-main { padding-bottom: 24px; }
.legal-hero { padding: 60px 0 20px; }
.legal-hero h1 { max-width: 16ch; }
.legal-hero p { max-width: 68ch; margin: 18px 0 0; font-size: 1.08rem; }
.legal-section { padding-top: 32px; }
.legal-layout {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}
.legal-toc { position: sticky; top: 100px; }
.legal-toc-inner {
  border-radius: 22px;
  padding: 18px;
  background: var(--surface);
  border: 1px solid color-mix(in srgb, var(--outline) 76%, transparent);
  box-shadow: var(--shadow-soft);
  max-height: calc(100vh - 130px);
  overflow: auto;
}
.legal-toc .eyebrow { margin-bottom: 12px; }
.legal-toc .eyebrow::before { display: none; }
.legal-toc a {
  display: block;
  color: var(--muted);
  padding: 8px 0;
  border-top: 1px solid color-mix(in srgb, var(--outline) 62%, transparent);
  font-weight: 700;
  line-height: 1.35;
}
.legal-toc a:hover { color: var(--accent-strong); }
.legal-card { padding: clamp(22px, 4vw, 46px); overflow: hidden; }
.prose { font-size: 1rem; }
.prose h1, .prose h2, .prose h3 {
  color: var(--text);
  scroll-margin-top: 110px;
}
.prose h1 { margin: 0 0 14px; font-size: clamp(2rem, 3vw, 3rem); }
.prose h2 { margin: 34px 0 10px; font-size: 1.45rem; letter-spacing: -0.035em; }
.prose h3 { margin: 26px 0 8px; font-size: 1.12rem; letter-spacing: -0.02em; }
.prose p { margin: 0 0 14px; }
.prose ul, .prose ol { padding-left: 1.25rem; color: var(--muted); }
.prose li { margin: 6px 0; }
.prose a { color: var(--accent-strong); font-weight: 750; text-decoration: underline; text-decoration-thickness: .08em; text-underline-offset: .18em; }
.prose hr { border: 0; height: 1px; margin: 28px 0; background: color-mix(in srgb, var(--outline) 74%, transparent); }
.prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 18px 0 24px;
  overflow: hidden;
  border-radius: 18px;
  display: block;
  overflow-x: auto;
}
.prose th, .prose td {
  border: 1px solid color-mix(in srgb, var(--outline) 78%, transparent);
  padding: 12px;
  text-align: left;
  vertical-align: top;
}
.prose th { background: color-mix(in srgb, var(--surface-secondary) 86%, transparent); color: var(--text); }
.prose code { background: var(--surface-secondary); padding: .1em .35em; border-radius: 8px; }

.error-page { min-height: 70vh; display: grid; place-items: center; padding: 60px 0; }
.error-card { max-width: 680px; text-align: center; }

@media (max-width: 900px) {
  .hero-grid, .split-grid, .legal-layout { grid-template-columns: 1fr; }
  .hero-visual { min-height: auto; }
  .app-showcase-card, .device-card { margin: 0; }
  .grid-3, .feature-grid { grid-template-columns: 1fr; }
  .legal-toc { position: static; }
  .legal-toc-inner { max-height: none; }
  .footer-shell, .cta-panel { flex-direction: column; align-items: flex-start; }
  .footer-brand { text-align: left; }
}

@media (max-width: 640px) {
  .container { width: min(100% - 28px, var(--container)); }
  .nav-shell { min-height: 70px; }
  .brand strong { font-size: 1.05rem; }
  .brand-mark { width: 38px; height: 38px; border-radius: 14px; }
  .top-nav { gap: 4px; }
  .top-nav a { padding: 9px 10px; font-size: .92rem; }
  .hero { padding-top: 46px; }
  .hero h1, .legal-hero h1 { font-size: clamp(2.35rem, 13vw, 3.5rem); }
  .metric-grid { grid-template-columns: 1fr; }
  .app-card-row { align-items: flex-start; }
  .app-card-row img { width: 72px; height: 72px; border-radius: 18px; }
  .section { padding: 52px 0; }
  .legal-card { border-radius: 22px; }
}
