:root {
  --bg: #0a0a0f;
  --bg-alt: #0f0f18;
  --surface: #141420;
  --surface-2: #1b1b2b;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(124, 58, 237, 0.4);
  --text: #f4f4f8;
  --text-muted: #a0a0b0;
  --primary: #a855f7;
  --primary-2: #7c3aed;
  --accent: #22d3ee;
  --success: #22c55e;
  --danger: #ef4444;
  --gradient-primary: linear-gradient(135deg, #7c3aed 0%, #a855f7 55%, #22d3ee 100%);
  --gradient-hero: radial-gradient(ellipse at 20% 10%, rgba(124, 58, 237, 0.25), transparent 60%),
                   radial-gradient(ellipse at 80% 80%, rgba(34, 211, 238, 0.18), transparent 60%);
  --shadow-card: 0 10px 40px -12px rgba(0, 0, 0, 0.6);
  --shadow-glow: 0 0 40px -8px rgba(168, 85, 247, 0.5);
  --radius: 14px;
  --radius-sm: 8px;
  --max-w: 1180px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }

.container { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }
.grad-text { background: var(--gradient-primary); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* Nav */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  background: rgba(10, 10, 15, 0.7);
  border-bottom: 1px solid var(--border);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: flex; align-items: center; gap: 12px; font-weight: 700; font-size: 1.1rem; }
.brand img { width: 32px; height: 32px; border-radius: 8px; }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a { color: var(--text-muted); font-size: 0.95rem; transition: color .15s; }
.nav-links a:hover { color: var(--text); }
.nav-mobile-toggle { display: none; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; border-radius: 10px; font-weight: 600; font-size: 0.95rem;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease;
  white-space: nowrap;
}
.btn-primary { background: var(--gradient-primary); color: white; box-shadow: var(--shadow-glow); }
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 0 60px -6px rgba(168, 85, 247, 0.7); }
.btn-outline { border: 1px solid var(--border); color: var(--text); background: rgba(255,255,255,0.02); }
.btn-outline:hover { border-color: var(--border-strong); background: rgba(124, 58, 237, 0.06); }
.btn-lg { padding: 15px 28px; font-size: 1rem; }
.btn svg { width: 18px; height: 18px; }

/* Hero */
.hero {
  padding-top: 130px; padding-bottom: 90px;
  position: relative; overflow: hidden;
  background: var(--gradient-hero), var(--bg);
}
.hero::before, .hero::after {
  content: ""; position: absolute; border-radius: 50%; filter: blur(80px); pointer-events: none;
}
.hero::before { width: 420px; height: 420px; background: rgba(124, 58, 237, 0.25); top: 15%; left: -100px; animation: float 8s ease-in-out infinite; }
.hero::after { width: 360px; height: 360px; background: rgba(34, 211, 238, 0.18); bottom: 0; right: -80px; animation: float 10s ease-in-out infinite reverse; }
@keyframes float { 0%, 100% { transform: translateY(0) translateX(0); } 50% { transform: translateY(-30px) translateX(20px); } }

.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 60px; align-items: center; position: relative; z-index: 2; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(168, 85, 247, 0.12); border: 1px solid rgba(168, 85, 247, 0.3);
  color: var(--primary); padding: 6px 14px; border-radius: 999px; font-size: 0.85rem; font-weight: 500;
}
.hero h1 { font-size: clamp(2.4rem, 5vw, 3.8rem); font-weight: 800; line-height: 1.08; letter-spacing: -0.02em; margin: 20px 0 20px; }
.hero p.lead { color: var(--text-muted); font-size: 1.15rem; max-width: 540px; margin-bottom: 32px; }
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 40px; }
.hero-stats { display: flex; gap: 40px; flex-wrap: wrap; }
.hero-stats .stat-value { font-size: 1.6rem; font-weight: 700; background: var(--gradient-primary); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-stats .stat-label { font-size: 0.85rem; color: var(--text-muted); }

/* Hero visual (CSS mockup fallback + image if present) */
.hero-visual { position: relative; }
.mockup {
  background: linear-gradient(180deg, #1b1b2b 0%, #12121d 100%);
  border: 1px solid var(--border); border-radius: 16px; padding: 14px;
  box-shadow: var(--shadow-card), 0 0 80px -20px rgba(124, 58, 237, 0.4);
}
.mockup-bar { display: flex; align-items: center; gap: 6px; padding: 4px 4px 12px; }
.mockup-bar span { width: 11px; height: 11px; border-radius: 50%; background: #333; }
.mockup-bar span:nth-child(1) { background: #ff5f57; }
.mockup-bar span:nth-child(2) { background: #febc2e; }
.mockup-bar span:nth-child(3) { background: #28c840; }
.mockup-body {
  border-radius: 10px; overflow: hidden;
  background: #0a0a12;
  aspect-ratio: 16 / 10;
  display: grid; grid-template-columns: 200px 1fr; min-height: 320px;
}
.mockup-side { background: #101020; border-right: 1px solid var(--border); padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.mockup-side .item { height: 34px; border-radius: 6px; background: rgba(255,255,255,0.04); }
.mockup-side .item.active { background: linear-gradient(90deg, rgba(124,58,237,0.4), rgba(168,85,247,0.15)); border-left: 3px solid var(--primary); }
.mockup-main { position: relative; display: flex; flex-direction: column; }
.mockup-preview {
  flex: 1; background:
    radial-gradient(circle at 30% 40%, rgba(168,85,247,0.35), transparent 60%),
    radial-gradient(circle at 70% 60%, rgba(34,211,238,0.25), transparent 60%),
    linear-gradient(135deg, #1a1a2e 0%, #0f0f1a 100%);
  display: flex; align-items: center; justify-content: center; position: relative;
}
.mockup-preview::after {
  content: "▶"; font-size: 3rem; color: rgba(255,255,255,0.85);
  background: rgba(124, 58, 237, 0.9); width: 80px; height: 80px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; padding-left: 6px;
  box-shadow: 0 0 40px rgba(168, 85, 247, 0.6);
}
.mockup-controls { display: flex; align-items: center; gap: 10px; padding: 12px; border-top: 1px solid var(--border); background: #101020; }
.mockup-controls .track { flex: 1; height: 6px; background: rgba(255,255,255,0.06); border-radius: 3px; overflow: hidden; }
.mockup-controls .track div { width: 45%; height: 100%; background: var(--gradient-primary); }
.mockup-controls .time { font-size: 0.75rem; color: var(--text-muted); font-variant-numeric: tabular-nums; }

.hero-pill {
  position: absolute; background: rgba(20, 20, 32, 0.9);
  border: 1px solid var(--border); border-radius: 10px; padding: 10px 14px;
  font-size: 0.85rem; font-weight: 500; display: flex; align-items: center; gap: 8px;
  backdrop-filter: blur(8px); box-shadow: var(--shadow-card);
  animation: float 5s ease-in-out infinite;
}
.hero-pill.pill-top { top: -18px; right: -12px; }
.hero-pill.pill-bottom { bottom: -18px; left: -12px; animation-delay: 1.5s; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--success); box-shadow: 0 0 8px var(--success); animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }

/* Sections */
.section { padding: 90px 0; position: relative; }
.section-alt { background: var(--bg-alt); }
.section-title { text-align: center; max-width: 720px; margin: 0 auto 60px; }
.section-title h2 { font-size: clamp(2rem, 4vw, 3rem); font-weight: 800; letter-spacing: -0.02em; }
.section-title p { color: var(--text-muted); font-size: 1.1rem; margin-top: 14px; }

/* Feature grid */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card {
  background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.01));
  border: 1px solid var(--border); border-radius: var(--radius);
  padding: 28px; transition: border-color .2s, transform .2s, box-shadow .2s;
}
.card:hover { border-color: var(--border-strong); transform: translateY(-3px); box-shadow: var(--shadow-glow); }
.card-icon {
  width: 46px; height: 46px; border-radius: 10px;
  background: rgba(168, 85, 247, 0.12);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px; color: var(--primary);
}
.card-icon svg { width: 22px; height: 22px; }
.card h3 { font-size: 1.15rem; margin-bottom: 10px; font-weight: 600; }
.card p { color: var(--text-muted); font-size: 0.95rem; }

/* How it works */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; position: relative; }
.step {
  background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.01));
  border: 1px solid var(--border); border-radius: var(--radius);
  padding: 36px 24px 28px; text-align: center; position: relative;
}
.step-num {
  position: absolute; top: -18px; left: 50%; transform: translateX(-50%);
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--gradient-primary); color: white;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 0.9rem; box-shadow: var(--shadow-glow);
}
.step-icon { width: 56px; height: 56px; border-radius: 12px; background: rgba(168, 85, 247, 0.12); display: flex; align-items: center; justify-content: center; margin: 8px auto 18px; color: var(--primary); }
.step-icon svg { width: 26px; height: 26px; }
.step h3 { font-size: 1.15rem; margin-bottom: 10px; }
.step p { color: var(--text-muted); font-size: 0.95rem; }

/* Use cases (2x2) */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }

/* Compat logos */
.compat {
  display: flex; flex-wrap: wrap; gap: 14px; justify-content: center;
}
.compat-badge {
  padding: 10px 20px; border-radius: 999px;
  border: 1px solid var(--border); background: rgba(255,255,255,0.02);
  color: var(--text-muted); font-weight: 500; font-size: 0.95rem;
}

/* Download callout */
.download-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 40px; }
.download-card {
  background: linear-gradient(180deg, rgba(168,85,247,0.06), rgba(255,255,255,0.01));
  border: 1px solid var(--border); border-radius: var(--radius);
  padding: 32px 28px; text-align: center;
}
.download-card .os { font-size: 1.4rem; font-weight: 700; margin-bottom: 6px; }
.download-card .desc { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 20px; min-height: 42px; }
.download-card .btn { width: 100%; margin-bottom: 10px; }
.download-card .fmt { color: var(--text-muted); font-size: 0.8rem; }
.download-card .note {
  margin-top: 14px; padding: 10px 12px; border-radius: 8px;
  background: rgba(239, 68, 68, 0.06); border: 1px solid rgba(239, 68, 68, 0.15);
  color: var(--text-muted); font-size: 0.8rem; text-align: left;
}

/* FAQ */
.faq { max-width: 780px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.faq details {
  background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.01));
  border: 1px solid var(--border); border-radius: var(--radius); padding: 20px 24px;
}
.faq summary {
  cursor: pointer; font-weight: 600; font-size: 1.05rem; list-style: none;
  display: flex; justify-content: space-between; align-items: center;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.3rem; color: var(--primary); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--text-muted); margin-top: 12px; }

/* CTA banner */
.cta-banner {
  background: linear-gradient(135deg, rgba(124,58,237,0.15), rgba(34,211,238,0.08));
  border: 1px solid var(--border-strong); border-radius: 20px;
  padding: 60px 40px; text-align: center; margin-top: 40px;
}
.cta-banner h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); margin-bottom: 16px; }
.cta-banner p { color: var(--text-muted); margin-bottom: 26px; max-width: 560px; margin-left: auto; margin-right: auto; }

/* Footer */
.footer { border-top: 1px solid var(--border); padding: 40px 0 32px; background: var(--bg-alt); color: var(--text-muted); font-size: 0.9rem; }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 20px; align-items: center; }
.footer .brand { color: var(--text); }
.footer-links { display: flex; gap: 22px; flex-wrap: wrap; }
.footer-links a:hover { color: var(--text); }

/* Content pages */
.content { padding: 130px 0 80px; max-width: 820px; margin: 0 auto; }
.content h1 { font-size: 2.4rem; margin-bottom: 8px; }
.content .updated { color: var(--text-muted); margin-bottom: 40px; font-size: 0.9rem; }
.content h2 { font-size: 1.5rem; margin: 32px 0 12px; }
.content p, .content li { color: var(--text-muted); margin-bottom: 12px; }
.content ul, .content ol { padding-left: 22px; margin-bottom: 12px; }
.content a { color: var(--primary); text-decoration: underline; text-decoration-color: rgba(168,85,247,0.4); }
.content a:hover { text-decoration-color: var(--primary); }
.content code { background: var(--surface); padding: 2px 6px; border-radius: 4px; font-size: 0.9em; color: var(--text); }
.content pre { background: var(--surface); padding: 16px; border-radius: 8px; overflow-x: auto; border: 1px solid var(--border); margin-bottom: 16px; }
.content pre code { background: none; padding: 0; }

/* Responsive */
@media (max-width: 900px) {
  .hero { padding-top: 110px; padding-bottom: 60px; }
  .hero-grid { grid-template-columns: 1fr; gap: 50px; }
  .grid-3, .download-grid, .steps { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .nav-links { display: none; position: absolute; top: 68px; left: 0; right: 0; background: rgba(10,10,15,0.98); flex-direction: column; padding: 20px; border-bottom: 1px solid var(--border); gap: 18px; }
  .nav-links.open { display: flex; }
  .nav-mobile-toggle { display: block; padding: 8px; }
  .nav-mobile-toggle svg { width: 22px; height: 22px; }
  .hero-pill.pill-top { right: 0; }
  .hero-pill.pill-bottom { left: 0; }
}
