:root {
  --bg: #0b0f14;
  --bg-alt: #101720;
  --card: #141c27;
  --border: #223040;
  --text: #eef2f6;
  --text-muted: #9fb0c0;
  --accent: #3ea6ff;
  --accent-2: #7c5cff;
  --accent-soft: rgba(62, 166, 255, 0.12);
  --success: #34d399;
  --radius: 16px;
  --max-width: 1120px;
  --header-h: 68px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: rgba(11, 15, 20, 0.85);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--border);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 18px;
  color: var(--text);
}
.brand:hover { text-decoration: none; }
.brand img { width: 32px; height: 32px; border-radius: 8px; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 15px;
}
.nav-links a { color: var(--text-muted); }
.nav-links a:hover, .nav-links a.active { color: var(--text); text-decoration: none; }

.language-switch {
  display: inline-flex;
  align-items: center;
  padding: 5px 10px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text) !important;
  font-size: 12px;
  font-weight: 700;
}
.mobile-language { display: none; }

.nav-cta {
  padding: 9px 18px;
  border-radius: 999px;
  background: var(--accent);
  color: #051018 !important;
  font-weight: 600;
  white-space: nowrap;
}
.nav-cta:hover { background: #59b6ff; text-decoration: none; }

.nav-toggle { display: none; }

/* Hero */
.hero {
  padding: 84px 0 64px;
  background:
    radial-gradient(600px 300px at 15% 0%, var(--accent-soft), transparent 60%),
    radial-gradient(500px 260px at 85% 10%, rgba(124, 92, 255, 0.12), transparent 60%);
}
.hero .container {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid rgba(62, 166, 255, 0.35);
  padding: 6px 12px;
  border-radius: 999px;
  margin-bottom: 20px;
}
.hero h1 {
  font-size: 44px;
  line-height: 1.12;
  margin: 0 0 18px;
  letter-spacing: -0.01em;
}
.hero h1 .accent {
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero p.lead {
  font-size: 18px;
  color: var(--text-muted);
  max-width: 52ch;
  margin: 0 0 30px;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 28px; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 22px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 15px;
  border: 1px solid transparent;
  cursor: pointer;
}
.btn-primary { background: var(--text); color: #0b0f14 !important; }
.btn-primary:hover { background: #d7dee6; text-decoration: none; }
.btn-secondary { background: transparent; color: var(--text) !important; border-color: var(--border); }
.btn-secondary:hover { background: var(--card); text-decoration: none; }

.appstore-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  border-radius: 12px;
  background: #000;
  color: #fff !important;
  border: 1px solid #333;
}
.appstore-badge:hover { background: #1a1a1a; text-decoration: none; }
.appstore-badge .apple-mark { font-size: 22px; line-height: 1; }
.appstore-badge .badge-text { display: flex; flex-direction: column; line-height: 1.15; }
.appstore-badge .badge-text small { font-size: 11px; color: #bbb; }
.appstore-badge .badge-text strong { font-size: 16px; }

.trust-row {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
  color: var(--text-muted);
  font-size: 14px;
}
.trust-row span { display: inline-flex; align-items: center; gap: 6px; }

.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
}
.phone-mock {
  width: 260px;
  border-radius: 40px;
  background: linear-gradient(160deg, #1b2431, #0d131a);
  border: 1px solid var(--border);
  padding: 18px;
  box-shadow: 0 40px 80px -30px rgba(0,0,0,0.6);
}
.phone-mock .phone-screen {
  background: var(--bg-alt);
  border-radius: 24px;
  padding: 22px 18px;
  min-height: 420px;
}
.phone-mock .screen-title { font-weight: 700; font-size: 15px; margin-bottom: 4px; }
.phone-mock .screen-sub { color: var(--text-muted); font-size: 12px; margin-bottom: 18px; }
.mock-device-card {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px 12px;
  margin-bottom: 10px;
  font-size: 13px;
}
.mock-device-card .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--success); flex-shrink: 0; }
.mock-device-card .meta { color: var(--text-muted); font-size: 11px; }
.mock-dpad {
  margin-top: 22px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  justify-items: center;
}
.mock-dpad .key {
  width: 48px; height: 48px;
  border-radius: 12px;
  background: var(--card);
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-muted);
  font-size: 15px;
}
.mock-dpad .key.center { background: var(--accent); color: #051018; border-color: var(--accent); font-weight: 700; }

/* Sections */
section { padding: 72px 0; }
.section-head { max-width: 620px; margin: 0 auto 44px; text-align: center; }
.section-head h2 { font-size: 30px; margin: 0 0 12px; letter-spacing: -0.01em; }
.section-head p { color: var(--text-muted); font-size: 16px; margin: 0; }
.section-alt { background: var(--bg-alt); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
}
.card .icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: var(--accent-soft);
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
  margin-bottom: 16px;
}
.card h3 { margin: 0 0 8px; font-size: 17px; }
.card p { margin: 0; color: var(--text-muted); font-size: 14.5px; }

.brands-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
}
.brand-pill {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  border-radius: 14px;
  background: var(--card);
  border: 1px solid var(--border);
  font-weight: 600;
  font-size: 15px;
}
.brand-pill .tag {
  font-size: 11px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 999px;
  color: var(--success);
  background: rgba(52, 211, 153, 0.12);
  border: 1px solid rgba(52, 211, 153, 0.3);
}
.brand-pill .tag.soon {
  color: #f0b640;
  background: rgba(240, 182, 64, 0.12);
  border-color: rgba(240, 182, 64, 0.3);
}

.steps {
  counter-reset: step;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.step {
  position: relative;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 22px 22px;
}
.step .num {
  width: 30px; height: 30px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #05070a;
  font-weight: 700;
  font-size: 14px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 14px;
}
.step h3 { margin: 0 0 8px; font-size: 15.5px; }
.step p { margin: 0; color: var(--text-muted); font-size: 14px; }

.privacy-highlight {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 8px;
}
.privacy-highlight .item {
  text-align: center;
  padding: 26px 16px;
  border-radius: var(--radius);
  background: var(--card);
  border: 1px solid var(--border);
}
.privacy-highlight .item .big { font-size: 26px; margin-bottom: 8px; }
.privacy-highlight .item h4 { margin: 0 0 6px; font-size: 15px; }
.privacy-highlight .item p { margin: 0; color: var(--text-muted); font-size: 13.5px; }

.cta-banner {
  text-align: center;
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(62,166,255,0.12), rgba(124,92,255,0.12));
  border: 1px solid var(--border);
  padding: 56px 32px;
}
.cta-banner h2 { margin: 0 0 12px; font-size: 28px; }
.cta-banner p { margin: 0 0 28px; color: var(--text-muted); }
.cta-actions { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; }

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 44px 0 32px;
  color: var(--text-muted);
  font-size: 14px;
}
.footer-grid {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}
.footer-brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 700; }
.footer-brand img { width: 26px; height: 26px; border-radius: 7px; }
.footer-links { display: flex; gap: 32px; flex-wrap: wrap; }
.footer-links h5 { margin: 0 0 12px; color: var(--text); font-size: 13px; text-transform: uppercase; letter-spacing: 0.04em; }
.footer-links ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.footer-bottom { border-top: 1px solid var(--border); padding-top: 20px; font-size: 13px; }

/* Simple content pages (docs / legal) */
.page-header {
  padding: 56px 0 32px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-alt);
}
.page-header h1 { font-size: 32px; margin: 0 0 10px; }
.page-header p { color: var(--text-muted); margin: 0; }

.content-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 48px;
  padding: 48px 0 80px;
  align-items: start;
}
.toc {
  position: sticky;
  top: calc(var(--header-h) + 24px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  background: var(--card);
}
.toc h5 { margin: 0 0 10px; font-size: 12px; text-transform: uppercase; letter-spacing: 0.04em; color: var(--text-muted); }
.toc ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 9px; font-size: 14px; }
.toc a { color: var(--text-muted); }
.toc a:hover { color: var(--text); }

.prose h2 { font-size: 22px; margin: 40px 0 14px; scroll-margin-top: calc(var(--header-h) + 16px); }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 17px; margin: 26px 0 10px; }
.prose p { color: var(--text-muted); margin: 0 0 14px; }
.prose ul, .prose ol { color: var(--text-muted); margin: 0 0 14px; padding-left: 22px; }
.prose li { margin-bottom: 6px; }
.prose strong { color: var(--text); }
.prose code {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 2px 6px;
  font-size: 0.9em;
}
.callout {
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  background: var(--card);
  border-radius: 10px;
  padding: 16px 18px;
  margin: 18px 0;
  font-size: 14.5px;
  color: var(--text-muted);
}
.callout strong { color: var(--text); }

.faq-item {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 18px 20px;
  margin-bottom: 12px;
  background: var(--card);
}
.faq-item h3 { margin: 0 0 8px; font-size: 15.5px; }
.faq-item p { margin: 0; color: var(--text-muted); font-size: 14.5px; }

.contact-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  background: var(--card);
  margin-bottom: 20px;
}
.contact-card h3 { margin: 0 0 8px; font-size: 16px; }
.contact-card p { margin: 0 0 4px; color: var(--text-muted); font-size: 14.5px; }

@media (max-width: 860px) {
  .hero .container { grid-template-columns: 1fr; }
  .hero-visual { order: -1; }
  .phone-mock { width: 220px; }
  .grid { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .privacy-highlight { grid-template-columns: 1fr; }
  .content-layout { grid-template-columns: 1fr; }
  .toc { position: static; }
  .nav-links { display: none; }
  .mobile-language { display: inline-flex; margin-left: auto; }
  .footer-grid { flex-direction: column; }
}
@media (max-width: 560px) {
  .hero h1 { font-size: 32px; }
  .grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
}
