:root {
    --bg: #07060c;
    --bg-soft: #0d0b16;
    --surface: #11101a;
    --surface-hi: #161527;
    --border: rgba(168, 85, 247, 0.14);
    --border-hi: rgba(168, 85, 247, 0.28);
    --text: #ece9f5;
    --text-mute: #9b97b4;
    --text-dim: #6e6a85;
    --accent: #a855f7;
    --accent-2: #8b5cf6;
    --accent-3: #6366f1;
    --accent-glow: rgba(168, 85, 247, 0.45);
    --success: #34d399;
    --radius: 14px;
    --radius-lg: 22px;
    --container: 1180px;
    --shadow-card: 0 1px 0 rgba(255,255,255,0.03) inset, 0 14px 40px -20px rgba(0,0,0,0.6);
    --shadow-glow: 0 0 0 1px rgba(168, 85, 247, 0.35), 0 12px 36px -10px rgba(168, 85, 247, 0.45);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
code, pre { font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.92em; }

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

/* ── Background fx ─────────────────────────────────────────── */
.bg-grid {
    position: fixed; inset: 0;
    background-image:
        linear-gradient(rgba(168,85,247,0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(168,85,247,0.05) 1px, transparent 1px);
    background-size: 56px 56px;
    mask-image: radial-gradient(ellipse 70% 50% at 50% 30%, #000 40%, transparent 100%);
    pointer-events: none;
    z-index: -2;
}
.bg-glow {
    position: fixed;
    width: 720px; height: 720px;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.45;
    pointer-events: none;
    z-index: -1;
}
.bg-glow--1 {
    top: -200px; left: -150px;
    background: radial-gradient(circle, var(--accent) 0%, transparent 60%);
}
.bg-glow--2 {
    top: 300px; right: -250px;
    background: radial-gradient(circle, var(--accent-3) 0%, transparent 60%);
    opacity: 0.3;
}

/* ── Navigation ────────────────────────────────────────────── */
.nav {
    position: sticky; top: 0; z-index: 50;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    background: rgba(7, 6, 12, 0.6);
    border-bottom: 1px solid rgba(255,255,255,0.04);
}
.nav__inner {
    display: flex; align-items: center; justify-content: space-between;
    height: 68px; gap: 24px;
}
.nav__brand {
    display: flex; align-items: center; gap: 10px;
    font-weight: 700; font-size: 1.05rem;
}
.nav__logo {
    width: 32px; height: 32px; color: var(--accent);
    display: grid; place-items: center;
    background: linear-gradient(135deg, rgba(168,85,247,0.15), rgba(99,102,241,0.1));
    border: 1px solid var(--border-hi);
    border-radius: 9px;
}
.nav__logo svg { width: 20px; height: 20px; }
.nav__name { letter-spacing: -0.01em; }
.nav__badge {
    font-size: 0.7rem; font-weight: 600;
    color: var(--accent);
    background: rgba(168,85,247,0.12);
    border: 1px solid var(--border-hi);
    padding: 2px 8px; border-radius: 999px;
}
.nav__links {
    display: flex; gap: 28px;
    font-size: 0.92rem; color: var(--text-mute);
}
.nav__links a { transition: color 0.15s; }
.nav__links a:hover { color: var(--text); }
.nav__cta { display: flex; gap: 10px; }
@media (max-width: 880px) {
    .nav__links { display: none; }
}
@media (max-width: 560px) {
    .nav__cta .btn--ghost { display: none; }
    .nav__badge { display: none; }
}

/* ── Buttons & pills ───────────────────────────────────────── */
.btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 10px 18px;
    border-radius: 10px;
    font-weight: 600; font-size: 0.92rem;
    border: 1px solid transparent;
    transition: all 0.15s ease;
    white-space: nowrap;
}
.btn--lg { padding: 14px 24px; font-size: 0.98rem; border-radius: 12px; }
.btn--block { width: 100%; justify-content: center; margin-top: 16px; }
.btn--primary {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-3) 100%);
    color: #fff;
    box-shadow: 0 0 0 1px rgba(168,85,247,0.5), 0 8px 24px -8px var(--accent-glow);
}
.btn--primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 0 0 1px rgba(168,85,247,0.7), 0 14px 32px -8px var(--accent-glow);
}
.btn--ghost {
    background: rgba(255,255,255,0.03);
    color: var(--text);
    border-color: rgba(255,255,255,0.08);
}
.btn--ghost:hover {
    background: rgba(168,85,247,0.08);
    border-color: var(--border-hi);
    color: var(--text);
}

.pill {
    display: inline-flex; align-items: center; gap: 8px;
    font-size: 0.82rem; font-weight: 500;
    color: var(--text-mute);
    background: rgba(168,85,247,0.08);
    border: 1px solid var(--border-hi);
    padding: 6px 14px;
    border-radius: 999px;
    margin-bottom: 28px;
}
.pill__dot {
    width: 7px; height: 7px; border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 8px var(--accent-glow);
    animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse {
    0%, 100% { opacity: 0.85; }
    50% { opacity: 0.4; }
}

.eyebrow {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--accent);
    margin-bottom: 14px;
}

/* ── Hero ──────────────────────────────────────────────────── */
.hero {
    padding: 90px 0 80px;
    text-align: center;
    position: relative;
}
.hero__inner { max-width: 880px; margin: 0 auto; }
.hero__title {
    font-size: clamp(2.4rem, 6vw, 4.4rem);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.025em;
    margin: 0 0 22px;
}
.hero__title-line { display: block; color: var(--text); }
.hero__title-grad {
    display: block;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 50%, var(--accent-3) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    margin-top: 6px;
}
.hero__sub {
    font-size: clamp(1rem, 1.6vw, 1.18rem);
    color: var(--text-mute);
    max-width: 680px;
    margin: 0 auto 36px;
}
.hero__cta {
    display: flex; justify-content: center; gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 56px;
}

.hero__terminal {
    max-width: 640px;
    margin: 0 auto;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-card);
    overflow: hidden;
    text-align: left;
}
.terminal__bar {
    display: flex; align-items: center; gap: 8px;
    padding: 12px 16px;
    background: rgba(255,255,255,0.02);
    border-bottom: 1px solid var(--border);
}
.terminal__dot { width: 11px; height: 11px; border-radius: 50%; }
.terminal__dot--r { background: #ff5f57; }
.terminal__dot--y { background: #febc2e; }
.terminal__dot--g { background: #28c840; }
.terminal__title {
    margin-left: 12px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.78rem;
    color: var(--text-dim);
}
.terminal__body {
    padding: 18px 20px;
    display: flex; align-items: center; justify-content: space-between;
    gap: 16px;
}
.terminal__body code {
    color: var(--text);
    word-break: break-all;
    flex: 1;
}
.prompt { color: var(--accent); margin-right: 8px; user-select: none; }

.copy-btn {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 6px 12px;
    background: rgba(168,85,247,0.1);
    color: var(--text);
    border: 1px solid var(--border-hi);
    border-radius: 8px;
    font-size: 0.82rem;
    transition: all 0.15s;
}
.copy-btn:hover { background: rgba(168,85,247,0.2); }
.copy-btn.is-copied { background: rgba(52,211,153,0.15); border-color: rgba(52,211,153,0.4); color: var(--success); }

.hero__metrics {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    list-style: none; padding: 0; margin: 56px 0 0;
}
.hero__metrics li {
    display: flex; flex-direction: column; align-items: center; gap: 4px;
}
.hero__metrics strong {
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--accent), var(--accent-3));
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent;
}
.hero__metrics span {
    font-size: 0.82rem;
    color: var(--text-dim);
    letter-spacing: 0.02em;
}
@media (max-width: 600px) {
    .hero__metrics { grid-template-columns: repeat(2, 1fr); }
}

/* ── Sections ──────────────────────────────────────────────── */
.section {
    padding: 100px 0;
    position: relative;
}
.section--alt { background: linear-gradient(180deg, transparent, rgba(13,11,22,0.6), transparent); }

.section__head {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 60px;
}
.section__head h2 {
    font-size: clamp(1.8rem, 3.6vw, 2.6rem);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.02em;
    margin: 0 0 16px;
}
.section__head p {
    color: var(--text-mute);
    font-size: 1.05rem;
    margin: 0;
}

/* ── Cards & feature grid ──────────────────────────────────── */
.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px;
    box-shadow: var(--shadow-card);
    position: relative;
    transition: all 0.2s ease;
}
.card:hover {
    transform: translateY(-2px);
    border-color: var(--border-hi);
    background: var(--surface-hi);
}

.grid { display: grid; gap: 20px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 920px) { .grid--3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .grid--3 { grid-template-columns: 1fr; } }

.feature__icon {
    width: 48px; height: 48px;
    display: grid; place-items: center;
    background: linear-gradient(135deg, rgba(168,85,247,0.18), rgba(99,102,241,0.1));
    color: var(--accent);
    border: 1px solid var(--border-hi);
    border-radius: 12px;
    margin-bottom: 18px;
}
.feature h3 {
    font-size: 1.15rem; font-weight: 600;
    letter-spacing: -0.01em;
    margin: 0 0 8px;
}
.feature p {
    color: var(--text-mute);
    font-size: 0.94rem;
    margin: 0;
}

/* ── Install ──────────────────────────────────────────────── */
.install-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr;
    gap: 28px;
    margin-bottom: 60px;
}
@media (max-width: 880px) { .install-grid { grid-template-columns: 1fr; } }

.steps { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 16px; }
.step {
    display: flex; gap: 18px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 22px 24px;
}
.step__num {
    flex-shrink: 0;
    width: 36px; height: 36px;
    display: grid; place-items: center;
    font-weight: 700; font-size: 0.95rem;
    background: linear-gradient(135deg, var(--accent), var(--accent-3));
    color: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 14px -4px var(--accent-glow);
}
.step h4 { margin: 0 0 6px; font-size: 1.05rem; font-weight: 600; }
.step p { color: var(--text-mute); margin: 0; font-size: 0.94rem; }
.step .code { margin-top: 12px; }

.code {
    background: rgba(0,0,0,0.4);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 12px 16px;
    margin: 0;
    overflow-x: auto;
}
.code code { color: var(--text); }

.install__aside h4 { margin: 0 0 14px; font-size: 1.05rem; font-weight: 600; }
.manual {
    margin: 0; padding-left: 20px;
    color: var(--text-mute);
    font-size: 0.92rem;
    display: flex; flex-direction: column; gap: 8px;
}
.manual code {
    color: var(--accent);
    background: rgba(168,85,247,0.08);
    padding: 1px 6px;
    border-radius: 4px;
    font-size: 0.88em;
}

.supported {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px;
}
.supported h4 { margin: 0 0 18px; font-size: 1rem; font-weight: 600; color: var(--text-mute); text-transform: uppercase; letter-spacing: 0.08em; }
.supported__list {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
}
@media (max-width: 720px) { .supported__list { grid-template-columns: 1fr; } }
.supported__item {
    display: flex; gap: 12px; align-items: center;
    padding: 14px 16px;
    background: rgba(168,85,247,0.05);
    border: 1px solid var(--border);
    border-radius: 10px;
}
.supported__item svg { color: var(--success); flex-shrink: 0; }
.supported__item strong { display: block; font-size: 0.95rem; }
.supported__item span { font-size: 0.82rem; color: var(--text-dim); }

/* ── Stack cloud ──────────────────────────────────────────── */
.stack-cloud {
    display: flex; flex-wrap: wrap; gap: 10px;
    justify-content: center;
    max-width: 720px; margin: 0 auto;
}
.chip {
    padding: 10px 18px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 999px;
    font-size: 0.9rem; font-weight: 500;
    color: var(--text);
    transition: all 0.15s;
}
.chip:hover {
    border-color: var(--border-hi);
    background: rgba(168,85,247,0.08);
    color: var(--accent);
}

/* ── Final CTA ────────────────────────────────────────────── */
.cta { padding: 60px 0 100px; }
.cta__card {
    text-align: center;
    padding: 60px 32px;
    background: linear-gradient(135deg, rgba(168,85,247,0.12) 0%, rgba(99,102,241,0.08) 100%);
    border: 1px solid var(--border-hi);
    overflow: hidden;
    position: relative;
}
.cta__card::before {
    content: '';
    position: absolute; inset: -1px;
    background: radial-gradient(circle at 50% 0%, var(--accent-glow) 0%, transparent 50%);
    opacity: 0.4;
    pointer-events: none;
}
.cta__card > * { position: relative; }
.cta__card h2 {
    font-size: clamp(1.6rem, 3vw, 2.3rem);
    font-weight: 700; margin: 0 0 12px;
    letter-spacing: -0.02em;
}
.cta__card p {
    color: var(--text-mute);
    margin: 0 auto 28px;
    max-width: 540px;
}
.cta__actions {
    display: flex; gap: 12px; justify-content: center; flex-wrap: wrap;
}

/* ── Footer ───────────────────────────────────────────────── */
.footer {
    border-top: 1px solid rgba(255,255,255,0.06);
    padding: 60px 0 40px;
    background: rgba(7,6,12,0.6);
}
.footer__inner { display: flex; flex-direction: column; gap: 40px; }
.footer__brand strong {
    font-size: 1.05rem; display: block; margin-bottom: 4px;
}
.footer__brand span { color: var(--text-dim); font-size: 0.9rem; }

.footer__cols {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}
@media (max-width: 600px) { .footer__cols { grid-template-columns: 1fr 1fr; } }

.footer__cols h5 {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-dim);
    margin: 0 0 14px;
}
.footer__cols a {
    display: block;
    color: var(--text-mute);
    font-size: 0.92rem;
    padding: 4px 0;
    transition: color 0.15s;
}
.footer__cols a:hover { color: var(--accent); }

.footer__bottom {
    padding-top: 28px;
    border-top: 1px solid rgba(255,255,255,0.04);
    color: var(--text-dim);
    font-size: 0.85rem;
    text-align: center;
}
