:root {
    --bg: #050505;
    --surface: #0a0a0a;
    --border: #161616;
    --border-lt: #222;
    --text: #e0e0e0;
    --text-dim: #666;
    --text-muted: #444;
    --accent: #00ff88;
    --accent-dim: rgba(0, 255, 136, 0.2);
    --accent-glow: rgba(0, 255, 136, 0.09);
    --red: #ff3355;
    --amber: #ffaa00;
    --cyan: #00ccff;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    background: var(--bg);
    color: var(--text);
    font-family: 'Outfit', sans-serif;
    overflow-x: hidden;
    line-height: 1.6;
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: 9999;
    pointer-events: none;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E");
}

/* ——— NAV ——— */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 20px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(5, 5, 5, 0.85);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
}
.logo {
    font-family: 'JetBrains Mono', monospace;
    font-size: 18px;
    font-weight: 600;
    color: var(--accent);
    letter-spacing: -0.5px;
}
.logo span { color: var(--text-muted); }
.nav-links {
    display: flex;
    gap: 32px;
    align-items: center;
}
.nav-links a {
    color: var(--text-dim);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s;
}
.nav-links a:hover { color: var(--accent); }
.btn-login {
    padding: 8px 20px;
    border: 1px solid var(--accent);
    color: var(--accent);
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.2s;
}
.btn-login:hover {
    background: var(--accent);
    color: var(--bg);
}

/* ——— HERO ——— */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 140px 40px 80px;
    position: relative;
}
.hero::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    background: radial-gradient(ellipse at 80% 30%, var(--accent-glow), transparent 60%);
    pointer-events: none;
}
.hero-tag {
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
    color: var(--accent);
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.hero-tag::before {
    content: '';
    width: 32px;
    height: 1px;
    background: var(--accent);
}
.hero h1 {
    font-size: clamp(48px, 7vw, 88px);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -3px;
    max-width: 800px;
}
.hero h1 .accent { color: var(--accent); }
.hero-sub {
    font-size: 18px;
    color: var(--text-dim);
    max-width: 520px;
    margin-top: 28px;
    font-weight: 300;
    line-height: 1.7;
}
.hero-actions {
    display: flex;
    gap: 16px;
    margin-top: 40px;
}

/* ——— BUTTONS ——— */
.btn-primary {
    padding: 14px 32px;
    background: var(--accent);
    color: var(--bg);
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    font-family: 'Outfit', sans-serif;
    transition: all 0.2s;
    text-decoration: none;
    display: inline-block;
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 32px var(--accent-dim);
}
.btn-ghost {
    padding: 14px 32px;
    background: transparent;
    color: var(--text-dim);
    border: 1px solid var(--border-lt);
    border-radius: 8px;
    font-size: 15px;
    font-weight: 500;
    text-decoration: none;
    display: inline-block;
    transition: all 0.2s;
}
.btn-ghost:hover {
    border-color: var(--text-dim);
    color: var(--text);
}

/* ——— STATS BAR ——— */
.stats-bar {
    display: flex;
    gap: 48px;
    margin-top: 64px;
    padding-top: 40px;
    border-top: 1px solid var(--border);
}
.stat-val {
    font-family: 'JetBrains Mono', monospace;
    font-size: 32px;
    font-weight: 600;
}
.stat-label {
    font-size: 12px;
    color: var(--text-muted);
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-top: 4px;
}

/* ——— TERMINAL ——— */
.terminal-section { padding: 80px 40px; }
.terminal {
    max-width: 900px;
    margin: 0 auto;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 0 80px rgba(0, 255, 136, 0.04);
}
.terminal-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 20px;
    background: #080808;
    border-bottom: 1px solid var(--border);
}
.dot { width: 10px; height: 10px; border-radius: 50%; }
.dot-r { background: #ff5f57; }
.dot-y { background: #febc2e; }
.dot-g { background: #28c840; }
.terminal-title {
    flex: 1;
    text-align: center;
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
    color: var(--text-muted);
}
.terminal-body {
    padding: 24px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 13px;
    line-height: 2;
}
.t-green { color: var(--accent); }
.t-dim { color: var(--text-muted); }
.t-amber { color: var(--amber); }
.t-cyan { color: var(--cyan); }
.cursor {
    display: inline-block;
    width: 8px;
    height: 16px;
    background: var(--accent);
    animation: blink 1s step-end infinite;
    vertical-align: text-bottom;
}
@keyframes blink { 50% { opacity: 0; } }

/* ——— FEATURES ——— */
.features {
    padding: 100px 40px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    max-width: 1100px;
    margin: 0 auto;
}
.feature {
    padding: 32px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--surface);
    transition: all 0.3s;
}
.feature:hover {
    border-color: var(--accent);
    transform: translateY(-4px);
}
.feature-icon { font-size: 28px; margin-bottom: 16px; }
.feature h3 { font-size: 17px; font-weight: 600; margin-bottom: 8px; }
.feature p { font-size: 14px; color: var(--text-dim); line-height: 1.7; }

/* ——— HOW ——— */
.how {
    padding: 100px 40px;
    max-width: 800px;
    margin: 0 auto;
}
.how h2 {
    font-size: 40px;
    font-weight: 700;
    letter-spacing: -2px;
    margin-bottom: 48px;
    text-align: center;
}
.step {
    display: flex;
    gap: 24px;
    margin-bottom: 40px;
    align-items: flex-start;
}
.step-num {
    font-family: 'JetBrains Mono', monospace;
    font-size: 14px;
    color: var(--accent);
    border: 1px solid var(--accent);
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    flex-shrink: 0;
}
.step h3 { font-size: 17px; font-weight: 600; margin-bottom: 4px; }
.step p { font-size: 14px; color: var(--text-dim); }

/* ——— FOOTER ——— */
footer {
    padding: 48px 40px;
    border-top: 1px solid var(--border);
    text-align: center;
    font-size: 13px;
    color: var(--text-muted);
}

/* ——— ANIMATIONS ——— */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 768px) {
    .nav { padding: 16px 20px; }
    .hero { padding: 120px 20px 60px; }
    .stats-bar { flex-wrap: wrap; gap: 24px; }
    .features { padding: 60px 20px; }
    .how { padding: 60px 20px; }
    .terminal-section { padding: 40px 20px; }
}
