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

:root {
  --bg: #070710;
  --bg2: #0d0d1a;
  --bg3: #0a0a16;
  --card: rgba(255,255,255,0.04);
  --card-border: rgba(255,255,255,0.08);
  --card-hover: rgba(255,255,255,0.07);
  --text: #e8e8f0;
  --text-muted: #6b6b8a;
  --text-soft: #9999b8;
  --accent: #7c5cfc;
  --accent2: #4f9cff;
  --green: #22d3a0;
  --orange: #f59e0b;
  --font: 'Inter', -apple-system, sans-serif;
  --mono: 'JetBrains Mono', 'Courier New', monospace;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}

/* ── NAV ─────────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  background: rgba(7, 7, 16, 0.85);
  border-bottom: 1px solid var(--card-border);
  transition: background 0.3s;
}
.nav.scrolled {
  background: rgba(7, 7, 16, 0.98);
  border-bottom-color: rgba(255,255,255,0.12);
}
.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  gap: 32px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text);
  text-decoration: none;
  white-space: nowrap;
}
.logo-icon {
  width: 32px; height: 32px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.nav-links {
  display: flex;
  gap: 4px;
  flex: 1;
}
.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: 8px;
  transition: color 0.2s, background 0.2s;
}
.nav-links a:hover {
  color: var(--text);
  background: var(--card);
}
.nav-cta { display: flex; gap: 10px; align-items: center; }
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  margin-left: auto;
}
.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-muted);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

/* ── BUTTONS ─────────────────────────────────────────── */
.btn-primary {
  background: linear-gradient(135deg, var(--accent), #5b8ef5);
  color: #fff;
  padding: 10px 20px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  transition: opacity 0.2s, transform 0.2s, box-shadow 0.2s;
  white-space: nowrap;
  box-shadow: 0 4px 20px rgba(124, 92, 252, 0.3);
}
.btn-primary:hover {
  opacity: 0.92;
  transform: translateY(-1px);
  box-shadow: 0 6px 28px rgba(124, 92, 252, 0.45);
}
.btn-primary.btn-lg { padding: 14px 28px; font-size: 1rem; border-radius: 10px; }
.btn-primary.btn-xl { padding: 18px 44px; font-size: 1.1rem; border-radius: 12px; }

.btn-outline {
  color: var(--text);
  padding: 10px 20px;
  border-radius: 8px;
  font-weight: 500;
  font-size: 0.9rem;
  text-decoration: none;
  border: 1px solid var(--card-border);
  transition: border-color 0.2s, background 0.2s;
}
.btn-outline:hover { border-color: rgba(255,255,255,0.2); background: var(--card); }

.btn-ghost {
  color: var(--text-muted);
  padding: 14px 24px;
  border-radius: 10px;
  font-weight: 500;
  font-size: 1rem;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--card-border);
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}
.btn-ghost:hover { color: var(--text); border-color: rgba(255,255,255,0.2); background: var(--card); }

/* ── BADGE ───────────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: 100px;
  border: 1px solid var(--card-border);
  background: var(--card);
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 28px;
}
.badge-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 8px var(--green);
  animation: blink 2s ease-in-out infinite;
  flex-shrink: 0;
}
@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

/* ── HERO ────────────────────────────────────────────── */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding: 120px 24px 100px;
}
.hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
}
.hero-glow-1 {
  width: 600px; height: 600px;
  background: rgba(124, 92, 252, 0.18);
  top: -100px; left: -200px;
  animation: pulse 8s ease-in-out infinite;
}
.hero-glow-2 {
  width: 500px; height: 500px;
  background: rgba(79, 156, 255, 0.14);
  bottom: -100px; right: -150px;
  animation: pulse 8s ease-in-out infinite reverse;
}
.hero-glow-3 {
  width: 300px; height: 300px;
  background: rgba(34, 211, 160, 0.08);
  top: 50%; left: 60%;
  animation: pulse 10s ease-in-out infinite 2s;
}
@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.1); opacity: 0.8; }
}
.hero-inner {
  max-width: 760px;
  text-align: center;
  position: relative;
  z-index: 1;
}
.hero-title {
  font-size: clamp(2.8rem, 6vw, 4.5rem);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
}
.gradient-text {
  background: linear-gradient(135deg, var(--accent), var(--accent2), var(--green));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-sub {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto 36px;
  line-height: 1.75;
}
.hero-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 64px;
}
.hero-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 32px;
  border-radius: 16px;
  border: 1px solid var(--card-border);
  background: var(--card);
  backdrop-filter: blur(20px);
  flex-wrap: wrap;
  gap: 8px;
}
.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 8px 32px;
}
.stat-val {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  background: linear-gradient(135deg, var(--text), rgba(232,232,240,0.7));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.stat-unit {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--accent2);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 1px;
}
.stat-label {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: 2px;
}
.stat-divider {
  width: 1px;
  height: 48px;
  background: var(--card-border);
}

/* floating notifications */
.notif-float {
  position: absolute;
  z-index: 2;
  animation: float 6s ease-in-out infinite;
}
.notif-ios    { top: 130px; right: 6%; animation-delay: -2s; }
.notif-android { bottom: 160px; left: 4%; animation-delay: -4s; }
.notif-web    { top: 44%; right: 3%; animation-delay: -1s; }
@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-16px); }
}
.notif-ios-inner, .notif-web-inner {
  background: rgba(255,255,255,0.12);
  backdrop-filter: blur(24px);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 16px;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 240px;
  max-width: 280px;
  box-shadow: 0 8px 40px rgba(0,0,0,0.4);
}
.notif-web-inner {
  min-width: 220px;
  border-radius: 10px;
  background: rgba(10,10,30,0.85);
  border-color: rgba(124,92,252,0.3);
}
.notif-icon, .notif-web-icon { font-size: 1.6rem; }
.notif-app { font-size: 0.7rem; font-weight: 600; color: rgba(255,255,255,0.5); text-transform: uppercase; letter-spacing: 0.06em; }
.notif-title { font-size: 0.85rem; font-weight: 600; color: #fff; margin-top: 2px; }
.notif-android-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.72rem;
  font-weight: 600;
  color: rgba(255,255,255,0.6);
  margin-bottom: 6px;
}
.notif-android-icon { font-size: 1rem; }
.notif-android-time { margin-left: auto; }
.notif-android-body { font-size: 0.88rem; font-weight: 500; color: #fff; }
.notif-android {
  background: rgba(30, 30, 50, 0.85);
  backdrop-filter: blur(24px);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 12px;
  padding: 14px 18px;
  min-width: 230px;
  box-shadow: 0 8px 40px rgba(0,0,0,0.4);
}

/* ── TRUST BAR ───────────────────────────────────────── */
.trust {
  padding: 32px 0;
  border-top: 1px solid var(--card-border);
  border-bottom: 1px solid var(--card-border);
  background: var(--bg2);
}
.trust-label {
  text-align: center;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  margin-bottom: 20px;
}
.trust-grid {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-muted);
  padding: 6px 16px;
}
.trust-item svg { color: var(--text-muted); }
.trust-divider {
  width: 1px;
  height: 20px;
  background: var(--card-border);
}

/* ── SECTIONS ────────────────────────────────────────── */
.section-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}
.section-label {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  margin-bottom: 16px;
}
.section-title {
  font-size: clamp(1.9rem, 4vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 20px;
}
.section-sub {
  font-size: 1.05rem;
  color: var(--text-muted);
  margin-bottom: 48px;
  max-width: 600px;
  line-height: 1.7;
}

/* ── FEATURES ────────────────────────────────────────── */
.features {
  padding: 120px 0;
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg2) 100%);
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.feature-card-large { grid-column: span 2; }
.feature-card {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  padding: 28px;
  transition: border-color 0.3s, transform 0.3s, background 0.3s;
}
.feature-card:hover {
  border-color: rgba(124, 92, 252, 0.35);
  background: var(--card-hover);
  transform: translateY(-3px);
}
.feature-icon {
  width: 44px; height: 44px;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(124,92,252,0.2), rgba(79,156,255,0.1));
  border: 1px solid rgba(124,92,252,0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent2);
  margin-bottom: 18px;
}
.feature-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 10px;
}
.feature-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.65;
}
.feature-card code {
  background: rgba(124,92,252,0.15);
  color: var(--accent);
  padding: 1px 5px;
  border-radius: 4px;
  font-size: 0.85em;
  font-family: var(--mono);
}
.feature-platforms {
  display: flex;
  gap: 8px;
  margin-top: 20px;
  flex-wrap: wrap;
}
.platform-tag {
  padding: 4px 12px;
  border-radius: 100px;
  font-size: 0.78rem;
  font-weight: 600;
  border: 1px solid var(--card-border);
  background: rgba(255,255,255,0.04);
}

/* ── HOW IT WORKS ────────────────────────────────────── */
.how {
  padding: 120px 0;
  background: var(--bg2);
}
.how-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  gap: 24px;
  align-items: start;
  margin-bottom: 64px;
}
.how-step {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  padding: 28px;
}
.how-num {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 12px;
}
.how-step h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 10px;
}
.how-step p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 16px;
}
.how-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  padding-top: 60px;
}

/* code blocks */
.code-block {
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.08);
  background: #0a0a18;
}
.code-header {
  padding: 8px 14px;
  background: rgba(255,255,255,0.03);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.code-lang {
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--accent2);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.code-block pre {
  padding: 14px 16px;
  font-family: var(--mono);
  font-size: 0.78rem;
  line-height: 1.7;
  color: #a0a0c8;
  overflow-x: auto;
  white-space: pre;
}
.code-block code { font-family: var(--mono); }
.kw  { color: var(--accent2); }
.str { color: var(--green); }
.dim { color: #4a4a6a; }

/* architecture diagram */
.arch-diagram {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  padding: 32px;
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 20px;
  flex-wrap: wrap;
  gap: 24px;
}
.arch-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 20px 28px;
  border-radius: 12px;
  border: 1px solid var(--card-border);
  background: var(--bg3);
  min-width: 140px;
  text-align: center;
}
.arch-icon { font-size: 1.6rem; }
.arch-label { font-size: 0.88rem; font-weight: 700; color: var(--text); }
.arch-sub { font-size: 0.72rem; color: var(--text-muted); }
.arch-arrow {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.arch-arrow-line {
  width: 60px;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  position: relative;
}
.arch-arrow-line::after {
  content: '';
  position: absolute;
  right: -1px;
  top: -4px;
  width: 0;
  height: 0;
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
  border-left: 8px solid var(--accent2);
}
.arch-arrow-label {
  font-size: 0.7rem;
  color: var(--text-muted);
  white-space: nowrap;
}
.arch-targets {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.arch-target {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 20px;
  border-radius: 8px;
  border: 1px solid var(--card-border);
  background: var(--bg3);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-soft);
  min-width: 100px;
}

/* ── PERFORMANCE ─────────────────────────────────────── */
.perf {
  padding: 120px 0;
  background: var(--bg);
}
.perf-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.perf-body {
  color: var(--text-muted);
  margin-bottom: 32px;
  line-height: 1.75;
  font-size: 1rem;
}
.perf-items { display: flex; flex-direction: column; gap: 16px; }
.perf-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.9rem;
  color: var(--text-muted);
}
.perf-item strong { color: var(--text); }
.perf-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  margin-top: 6px;
  flex-shrink: 0;
}
.perf-dot-green  { background: var(--green);   box-shadow: 0 0 8px var(--green); }
.perf-dot-blue   { background: var(--accent2); box-shadow: 0 0 8px var(--accent2); }
.perf-dot-purple { background: var(--accent);  box-shadow: 0 0 8px var(--accent); }
.perf-dot-orange { background: var(--orange);  box-shadow: 0 0 8px var(--orange); }

/* terminal */
.terminal {
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.1);
  box-shadow: 0 24px 80px rgba(0,0,0,0.6);
  background: #0e0e1a;
}
.terminal-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 12px 16px;
  background: rgba(255,255,255,0.04);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.dot { width: 12px; height: 12px; border-radius: 50%; }
.dot-red    { background: #ff5f57; }
.dot-yellow { background: #ffbd2e; }
.dot-green  { background: #28c840; }
.terminal-title {
  margin-left: 8px;
  font-size: 0.75rem;
  color: var(--text-muted);
  font-family: var(--mono);
}
.terminal-body {
  padding: 20px;
  font-family: var(--mono);
  font-size: 0.78rem;
  line-height: 1.7;
  color: #a0a0c0;
  white-space: pre;
  overflow-x: auto;
}
.term-green  { color: #22d3a0; }
.term-cyan   { color: #67e8f9; }
.term-yellow { color: #fbbf24; }
.term-white  { color: #e8e8f0; }
.term-dim    { color: #4a4a6a; }

/* ── SDKs ────────────────────────────────────────────── */
.sdks-section {
  padding: 120px 0;
  background: var(--bg2);
}
.sdk-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}
.sdk-tab {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 10px;
  border: 1px solid var(--card-border);
  background: var(--card);
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}
.sdk-tab:hover, .sdk-tab.active {
  color: var(--text);
  border-color: rgba(124, 92, 252, 0.5);
  background: rgba(124, 92, 252, 0.08);
}
.sdk-pane { display: none; }
.sdk-pane.active { display: block; }
.sdk-intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.sdk-info-card {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 14px;
  padding: 24px;
}
.sdk-info-title {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent2);
  margin-bottom: 12px;
}
.sdk-info-card p {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 12px;
}

/* ── OPEN SOURCE ─────────────────────────────────────── */
.oss {
  padding: 120px 0;
  background: var(--bg);
}
.oss-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.oss-items { display: flex; flex-direction: column; gap: 14px; margin-top: 32px; }
.oss-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.9rem;
  color: var(--text-muted);
}
.oss-icon {
  width: 22px; height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.oss-icon-green { background: rgba(34, 211, 160, 0.15); color: var(--green); }
.deploy-cards { display: flex; flex-direction: column; gap: 20px; }
.deploy-card {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  padding: 24px;
  transition: border-color 0.3s;
}
.deploy-card:hover { border-color: rgba(124, 92, 252, 0.3); }
.deploy-card-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  color: var(--text-soft);
  font-weight: 600;
  font-size: 0.95rem;
}
.deploy-badge {
  margin-left: auto;
  padding: 2px 10px;
  border-radius: 100px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: rgba(34, 211, 160, 0.1);
  color: var(--green);
  border: 1px solid rgba(34, 211, 160, 0.2);
}
.deploy-badge-purple {
  background: rgba(124, 92, 252, 0.12);
  color: var(--accent);
  border-color: rgba(124, 92, 252, 0.25);
}
.deploy-desc {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 12px;
  line-height: 1.6;
}

/* ── TECH STACK ──────────────────────────────────────── */
.stack {
  padding: 100px 0;
  background: var(--bg2);
}
.stack-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-top: 0;
}
.stack-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 22px;
  border-radius: 12px;
  border: 1px solid var(--card-border);
  background: var(--card);
  transition: color 0.2s, border-color 0.2s, background 0.2s, transform 0.2s;
}
.stack-item:hover {
  border-color: rgba(255,255,255,0.18);
  background: var(--card-hover);
  transform: translateY(-2px);
}
.stack-icon { font-size: 1.4rem; }
.stack-text { display: flex; flex-direction: column; }
.stack-name { font-size: 0.9rem; font-weight: 600; color: var(--text); }
.stack-desc { font-size: 0.72rem; color: var(--text-muted); }

/* ── DOCS ────────────────────────────────────────────── */
.docs-section {
  padding: 120px 0;
  background: var(--bg);
}
.docs-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.doc-card {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 22px;
  border-radius: 14px;
  border: 1px solid var(--card-border);
  background: var(--card);
  text-decoration: none;
  transition: border-color 0.3s, background 0.3s, transform 0.3s;
}
.doc-card:hover {
  border-color: rgba(124, 92, 252, 0.4);
  background: var(--card-hover);
  transform: translateY(-2px);
}
.doc-icon {
  width: 40px; height: 40px;
  border-radius: 10px;
  background: rgba(124,92,252,0.12);
  border: 1px solid rgba(124,92,252,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent2);
  flex-shrink: 0;
}
.doc-text { flex: 1; }
.doc-text h3 {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
}
.doc-text p {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.5;
}
.doc-text code {
  font-family: var(--mono);
  font-size: 0.78em;
  background: rgba(124,92,252,0.12);
  color: var(--accent);
  padding: 1px 4px;
  border-radius: 3px;
}
.doc-arrow {
  color: var(--text-muted);
  font-size: 1rem;
  align-self: center;
  flex-shrink: 0;
  transition: color 0.2s, transform 0.2s;
}
.doc-card:hover .doc-arrow {
  color: var(--accent2);
  transform: translateX(3px);
}

/* ── CTA ─────────────────────────────────────────────── */
.cta-section {
  padding: 140px 0;
  position: relative;
  overflow: hidden;
  background: var(--bg2);
}
.cta-glow {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 800px; height: 800px;
  background: radial-gradient(circle, rgba(124,92,252,0.15) 0%, transparent 70%);
  pointer-events: none;
}
.cta-box {
  text-align: center;
  position: relative;
  z-index: 1;
}
.cta-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: 100px;
  border: 1px solid rgba(34,211,160,0.25);
  background: rgba(34,211,160,0.08);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--green);
  margin-bottom: 24px;
}
.cta-box h2 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
}
.cta-box p {
  color: var(--text-muted);
  font-size: 1.1rem;
  margin-bottom: 40px;
}
.cta-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}
.cta-hint {
  margin-top: 24px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ── FOOTER ──────────────────────────────────────────── */
.footer {
  background: var(--bg);
  border-top: 1px solid var(--card-border);
  padding: 64px 0 32px;
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  gap: 64px;
  flex-wrap: wrap;
}
.footer-brand { flex: 1; min-width: 200px; }
.footer-brand p {
  color: var(--text-muted);
  font-size: 0.88rem;
  margin-top: 12px;
  line-height: 1.7;
}
.footer-social {
  display: flex;
  gap: 12px;
  margin-top: 16px;
}
.footer-social a {
  width: 34px; height: 34px;
  border-radius: 8px;
  border: 1px solid var(--card-border);
  background: var(--card);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: color 0.2s, border-color 0.2s;
}
.footer-social a:hover { color: var(--text); border-color: rgba(255,255,255,0.2); }
.footer-links { display: flex; gap: 48px; flex-wrap: wrap; }
.footer-col { display: flex; flex-direction: column; gap: 10px; min-width: 100px; }
.footer-col-title {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 4px;
}
.footer-col a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.88rem;
  transition: color 0.2s;
}
.footer-col a:hover { color: var(--text); }
.footer-bottom {
  max-width: 1200px;
  margin: 40px auto 0;
  padding: 20px 24px 0;
  border-top: 1px solid var(--card-border);
  font-size: 0.82rem;
  color: var(--text-muted);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

/* ── SCROLL REVEAL ───────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── RESPONSIVE ─────────────────────────────────────── */
@media (max-width: 1100px) {
  .docs-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .features-grid { grid-template-columns: 1fr; }
  .feature-card-large { grid-column: span 1; }
  .how-grid { grid-template-columns: 1fr; }
  .how-arrow { padding-top: 0; transform: rotate(90deg); }
  .perf-grid { grid-template-columns: 1fr; }
  .oss-grid { grid-template-columns: 1fr; gap: 48px; }
  .sdk-intro { grid-template-columns: 1fr; }
  .notif-float { display: none; }
  .stat-divider { display: none; }
  .hero-stats { gap: 24px; }
  .arch-diagram { gap: 12px; }
  .arch-arrow-line { width: 30px; }
  .docs-grid { grid-template-columns: 1fr; }
  .trust-divider { display: none; }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 64px; left: 0; right: 0;
    background: rgba(7, 7, 16, 0.98);
    border-bottom: 1px solid var(--card-border);
    padding: 16px 24px 24px;
    gap: 4px;
  }
  .nav-links.open a {
    padding: 10px 12px;
    font-size: 1rem;
  }
  .nav-cta { display: none; }
  .nav-hamburger { display: flex; }
  .footer-links { gap: 32px; }
  .footer-inner { gap: 40px; }
}

@media (max-width: 600px) {
  .hero-stats { flex-direction: column; align-items: stretch; }
  .stat { flex-direction: row; justify-content: space-between; padding: 12px 0; border-bottom: 1px solid var(--card-border); }
  .stat:last-child { border-bottom: none; }
  .cta-actions { flex-direction: column; align-items: center; }
  .trust-grid { flex-direction: column; align-items: center; }
  .sdk-tabs { flex-direction: column; }
}
