:root {
    --bg: #0c0e14;
    --bg-card: #13151f;
    --bg-terminal: #0a0c12;
    --border: #1e2333;
    --border-mid: #2a3145;
    --accent: #0ea5e9;
    --accent-hover: #0284c7;
    --green: #4ade80;
    --yellow: #fbbf24;
    --red: #f87171;
    --text: #e8eaf0;
    --text-muted: #6b7a9a;
    --text-dim: #3d4a6a;
    --font: 'Inter', system-ui, -apple-system, sans-serif;
    --mono: 'Cascadia Code', 'Courier New', monospace;
}

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

html { scroll-behavior: smooth; }

body {
    background: var(--bg);
    color: var(--text);
    font-family: var(--font);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* ── Header ───────────────────────────────────────────── */
.app-header {
    background: rgba(12, 14, 20, 0.85);
    backdrop-filter: blur(12px);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid var(--border);
    padding: 1rem 0;
}

.app-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text);
    letter-spacing: -0.02em;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-muted);
    font-weight: 500;
    font-size: 0.9rem;
    transition: color 0.15s;
}

.nav-links a:hover { color: var(--text); }

.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
    padding: 4px;
}

.nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text-muted);
    border-radius: 2px;
}

/* ── Background animation ─────────────────────────────── */
@keyframes drift-a {
    0%   { transform: translate(0, 0) scale(1); }
    100% { transform: translate(70px, 50px) scale(1.12); }
}

@keyframes drift-b {
    0%   { transform: translate(0, 0) scale(1); }
    100% { transform: translate(-60px, -40px) scale(1.1); }
}

@keyframes drift-c {
    0%   { transform: translate(0, 0) scale(1); }
    100% { transform: translate(30px, -60px) scale(1.08); }
}

/* ── Hero ─────────────────────────────────────────────── */
.hero {
    padding: 5rem 0 4rem;
    border-bottom: 1px solid var(--border);
    position: relative;
    overflow: hidden;
}

.hero::before,
.hero::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
}

.hero::before {
    top: -15%;
    left: -8%;
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, rgba(14, 165, 233, 0.07) 0%, transparent 65%);
    animation: drift-a 14s ease-in-out infinite alternate;
}

.hero::after {
    bottom: -20%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(74, 222, 128, 0.05) 0%, transparent 65%);
    animation: drift-b 18s ease-in-out infinite alternate;
}

.hero .container {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 3.5rem;
    align-items: start;
}

.eyebrow {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--accent);
    margin-bottom: 1.25rem;
}

.hero h1 {
    font-size: 3.25rem;
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.04em;
    margin-bottom: 1.25rem;
    color: var(--text);
}

.hero .subtitle {
    font-size: 1rem;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 2rem;
}

.hero-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

/* ── Buttons ──────────────────────────────────────────── */
.btn {
    padding: 0.7rem 1.4rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.15s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    white-space: nowrap;
}

.btn-primary {
    background: var(--accent);
    color: #fff;
    border: 1px solid var(--accent);
}

.btn-primary:hover {
    background: var(--accent-hover);
    border-color: var(--accent-hover);
}

.btn-ghost {
    background: transparent;
    color: var(--text-muted);
    border: 1px solid var(--border-mid);
}

.btn-ghost:hover {
    color: var(--text);
    border-color: var(--text-muted);
}

.btn-large {
    width: 100%;
    padding: 0.9rem;
    font-size: 1rem;
    border-radius: 10px;
}

.btn-disabled {
    opacity: 0.45;
    cursor: not-allowed;
    pointer-events: none;
}

/* ── Terminal ─────────────────────────────────────────── */
.hero-terminal {
    background: var(--bg-terminal);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    font-family: var(--mono);
    font-size: 0.8rem;
    box-shadow: 0 24px 48px -12px rgba(0,0,0,0.7);
    margin-top: 0.5rem;
}

.terminal-bar {
    background: #111420;
    padding: 0.6rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    border-bottom: 1px solid var(--border);
}

.terminal-dots { display: flex; gap: 6px; }

.tdot {
    width: 11px;
    height: 11px;
    border-radius: 50%;
}

.tdot-red    { background: #ff5f57; }
.tdot-yellow { background: #febc2e; }
.tdot-green  { background: #28c840; }

.terminal-title {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-family: var(--mono);
    flex: 1;
    text-align: center;
    margin-right: 54px; /* optical balance with dots */
}

.terminal-body {
    padding: 1.25rem 1.5rem;
    overflow-x: auto;
}

.terminal-body pre {
    margin: 0;
    white-space: pre;
    line-height: 1.65;
    color: var(--text);
}

.t-dim     { color: var(--text-muted); }
.t-label   { color: var(--text); font-weight: 600; }
.t-str     { color: #a5d6ff; }
.t-green   { color: var(--green); }
.t-ep      { color: var(--text); }
.t-lock    { color: var(--yellow); }
.t-score-hi   { color: var(--accent); font-weight: 600; }
.t-score-lock { color: var(--green); font-weight: 600; }

/* ── Features ─────────────────────────────────────────── */
.features {
    padding: 6rem 0;
    border-bottom: 1px solid var(--border);
}

.features-header {
    max-width: 640px;
    margin-bottom: 3.5rem;
}

.features-header h2 {
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--text);
}

.features-header p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.7;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: var(--border);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
}

.feature-card {
    background: var(--bg-card);
    padding: 2rem;
    transition: background 0.15s;
}

.feature-card:hover { background: #161824; }

.feature-label {
    font-family: var(--mono);
    font-size: 0.7rem;
    color: var(--text-dim);
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
}

.feature-card h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 0.6rem;
    letter-spacing: -0.01em;
}

.feature-card p {
    color: var(--text-muted);
    font-size: 0.875rem;
    line-height: 1.7;
}

.feature-card .mono {
    font-family: var(--mono);
    font-size: 0.8em;
    color: var(--accent);
}

/* ── Pricing ──────────────────────────────────────────── */
.pricing {
    padding: 6rem 0;
    border-bottom: 1px solid var(--border);
}

.pricing-inner {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 4rem;
    align-items: start;
}

.pricing-left h2 {
    font-size: 1.75rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.pricing-left > p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.pricing-list {
    list-style: none;
    margin-bottom: 1.5rem;
}

.pricing-list li {
    color: var(--text-muted);
    font-size: 0.9rem;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.pricing-list li:first-child { border-top: 1px solid var(--border); }
.pricing-list li:last-child { border-bottom: none; }

.pricing-req-item {
    color: var(--text-dim) !important;
    font-size: 0.82rem !important;
}

.pricing-req-item::before {
    background: var(--text-dim) !important;
}

.pricing-list li::before {
    content: '';
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--green);
    flex-shrink: 0;
}


.pricing-card {
    background: var(--bg-card);
    border: 1px solid var(--border-mid);
    border-radius: 14px;
    padding: 2.5rem 2rem;
    text-align: center;
}

.price-amount {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    margin-bottom: 0.25rem;
}

.price-currency {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-muted);
    padding-top: 0.5rem;
}

.price-num {
    font-size: 5rem;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.04em;
    color: var(--text);
}

.price-once {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.price-sub {
    margin-top: 1rem;
    font-size: 0.78rem;
    color: var(--text-dim);
    line-height: 1.5;
}

/* ── Footer ───────────────────────────────────────────── */
.app-footer {
    padding: 2.5rem 0;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.25rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-muted);
}

.footer-links {
    display: flex;
    gap: 1.5rem;
}

.footer-links a {
    color: var(--text-dim);
    text-decoration: none;
    font-size: 0.85rem;
    transition: color 0.15s;
}

.footer-links a:hover { color: var(--text-muted); }

.copyright {
    text-align: center;
    color: var(--text-dim);
    font-size: 0.8rem;
}

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

    .pricing-inner {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .pricing-right { max-width: 380px; }
}

@media (max-width: 768px) {
    .hero .container {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .hero h1 { font-size: 2.5rem; }

    .nav-toggle { display: flex; }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(12, 14, 20, 0.97);
        backdrop-filter: blur(12px);
        flex-direction: column;
        padding: 1rem 2rem;
        gap: 0;
        border-bottom: 1px solid var(--border);
    }

    .nav-links.open { display: flex; }

    .nav-links li a {
        display: block;
        padding: 0.75rem 0;
        border-bottom: 1px solid var(--border);
    }

    .nav-links li:last-child a { border-bottom: none; }

    .app-header .container { position: relative; }

    .features-grid { grid-template-columns: 1fr; }

    .footer-content {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}
