/* ===== Design tokens ===== */
:root {
    --bg:        #07090d;
    --bg-soft:   #0d1118;
    --bg-card:   #11161f;
    --border:    #1d2530;
    --text:      #e7ecf3;
    --muted:     #8b97a8;
    --accent:    #19e3a0;   /* PCB-trace green */
    --accent-2:  #3da9fc;   /* signal blue */
    --glow:      rgba(25, 227, 160, .35);
}

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

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', system-ui, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }

.page { overflow-x: hidden; }

/* ===== Buttons ===== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .85rem 1.5rem;
    border-radius: 10px;
    font-weight: 600;
    font-size: .95rem;
    cursor: pointer;
    border: 1px solid transparent;
    transition: transform .15s ease, box-shadow .2s ease, background .2s ease;
}
.btn-sm { padding: .55rem 1.05rem; font-size: .85rem; }
.btn-primary {
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    color: #04130d;
    box-shadow: 0 8px 30px -8px var(--glow);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 40px -8px var(--glow); }
.btn-ghost { background: transparent; border-color: var(--border); color: var(--text); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

/* ===== Navbar ===== */
.nav {
    position: sticky;
    top: 0;
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem clamp(1.2rem, 5vw, 4rem);
    background: rgba(7, 9, 13, .72);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
}
.brand { display: flex; align-items: center; gap: .5rem; font-weight: 800; font-size: 1.2rem; }
.brand-mark { color: var(--accent); filter: drop-shadow(0 0 6px var(--glow)); }
.brand-ai { color: var(--accent); }
.nav-links { display: flex; gap: 2rem; font-size: .95rem; color: var(--muted); }
.nav-links a:hover { color: var(--text); }

/* ===== Hero ===== */
.hero { position: relative; padding: clamp(3rem, 9vw, 7rem) 1.2rem 4rem; text-align: center; }
.hero-grid-bg {
    position: absolute; inset: 0; z-index: 0;
    background-image:
        linear-gradient(var(--border) 1px, transparent 1px),
        linear-gradient(90deg, var(--border) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: radial-gradient(ellipse 70% 60% at 50% 0%, #000 30%, transparent 75%);
    opacity: .5;
}
.hero-inner { position: relative; z-index: 1; max-width: 880px; margin: 0 auto; }
.pill {
    display: inline-block;
    padding: .4rem 1rem;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: var(--bg-soft);
    color: var(--accent);
    font-size: .82rem;
    font-weight: 500;
    margin-bottom: 1.6rem;
}
.hero-title { font-size: clamp(2.4rem, 7vw, 4.4rem); font-weight: 800; line-height: 1.05; letter-spacing: -.02em; }
.gradient-text {
    background: linear-gradient(120deg, var(--accent), var(--accent-2));
    -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-sub { max-width: 620px; margin: 1.5rem auto 2.2rem; font-size: 1.15rem; color: var(--muted); }
.hero-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ===== Console mockup ===== */
.console {
    max-width: 640px;
    margin: 3.5rem auto 0;
    text-align: left;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 30px 80px -30px rgba(0,0,0,.8);
}
.console-bar {
    display: flex; align-items: center; gap: .5rem;
    padding: .7rem 1rem;
    background: var(--bg-soft);
    border-bottom: 1px solid var(--border);
}
.dot { width: 11px; height: 11px; border-radius: 50%; }
.dot.red { background: #ff5f57; } .dot.yellow { background: #febc2e; } .dot.green { background: #28c840; }
.console-title { margin-left: .6rem; font-size: .8rem; color: var(--muted); font-family: 'JetBrains Mono', monospace; }
.console-body { padding: 1.2rem 1.3rem; font-family: 'JetBrains Mono', monospace; font-size: .9rem; }
.console-body p { margin: .35rem 0; }
.console-body .prompt { color: var(--accent); font-weight: 700; }
.console-body .muted { color: var(--muted); }
.console-body .ok { color: var(--accent); font-weight: 700; }

/* ===== Strip ===== */
.strip {
    display: flex; flex-wrap: wrap; gap: 1.2rem; justify-content: center;
    padding: 1.4rem 1rem;
    color: var(--muted); font-size: .9rem;
    border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
    background: var(--bg-soft);
}

/* ===== Sections ===== */
.section { padding: clamp(3.5rem, 8vw, 6rem) clamp(1.2rem, 5vw, 4rem); max-width: 1140px; margin: 0 auto; }
.section-alt { background: var(--bg-soft); max-width: none; }
.section-alt > * { max-width: 1140px; margin-left: auto; margin-right: auto; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 3rem; }
.section-head h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 800; letter-spacing: -.02em; }
.section-head p { margin-top: .8rem; color: var(--muted); font-size: 1.1rem; }

/* ===== Feature cards ===== */
.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.3rem; }
.card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 1.7rem;
    transition: transform .18s ease, border-color .2s ease;
}
.card:hover { transform: translateY(-4px); border-color: var(--accent); }
.card-icon {
    width: 50px; height: 50px; border-radius: 12px;
    display: grid; place-items: center; font-size: 1.5rem;
    background: var(--bg-soft); border: 1px solid var(--border); margin-bottom: 1.1rem;
}
.card h3 { font-size: 1.15rem; margin-bottom: .5rem; }
.card p { color: var(--muted); font-size: .96rem; }

/* ===== Steps ===== */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.5rem; }
.step { position: relative; padding: 1.5rem; }
.step-num {
    font-family: 'JetBrains Mono', monospace; font-weight: 700; font-size: 1.1rem;
    color: var(--accent); border: 1px solid var(--border); border-radius: 10px;
    width: 48px; height: 48px; display: grid; place-items: center; margin-bottom: 1rem;
    background: var(--bg-card);
}
.step h3 { font-size: 1.15rem; margin-bottom: .4rem; }
.step p { color: var(--muted); font-size: .96rem; }

/* ===== CTA ===== */
.cta { padding: clamp(3rem, 8vw, 6rem) 1.2rem; }
.cta-card {
    max-width: 720px; margin: 0 auto; text-align: center;
    padding: clamp(2.5rem, 6vw, 4rem) 2rem;
    border-radius: 24px;
    background:
        radial-gradient(ellipse at top, rgba(25,227,160,.12), transparent 60%),
        var(--bg-card);
    border: 1px solid var(--border);
}
.cta-card h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 800; letter-spacing: -.02em; }
.cta-card > p { color: var(--muted); margin: .9rem 0 1.8rem; font-size: 1.1rem; }
.cta-form { display: flex; gap: .7rem; max-width: 460px; margin: 0 auto; flex-wrap: wrap; }
.cta-form input {
    flex: 1; min-width: 220px;
    padding: .85rem 1.1rem; border-radius: 10px;
    background: var(--bg-soft); border: 1px solid var(--border);
    color: var(--text); font-size: .95rem; outline: none;
}
.cta-form input:focus { border-color: var(--accent); }
.cta-fine { color: var(--muted); font-size: .82rem; margin-top: 1rem; }

/* ===== Footer ===== */
.footer {
    display: flex; flex-direction: column; align-items: center; gap: .6rem;
    padding: 2.5rem 1rem; border-top: 1px solid var(--border);
    color: var(--muted); font-size: .9rem; text-align: center;
}
.footer-brand { display: flex; align-items: center; gap: .4rem; font-weight: 800; color: var(--text); }

/* ===== Responsive ===== */
@media (max-width: 720px) {
    .nav-links { display: none; }
}
