/* ─── Design tokens ─────────────────────────────────── */
:root {
    --bg: #0a0e14;
    --surface: #141b24;
    --border: #1e2936;
    --accent: #00ff88;
    --accent-hover: #00cc6a;
    --text: #e6edf3;
    --text-dim: #8b949e;
    --text-lighter: #6b7280;
    --grid: #1a2332;
}

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

/* ─── Base ───────────────────────────────────────────── */
body {
    font-family: 'IBM Plex Sans', -apple-system, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Grid background */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(var(--grid) 1px, transparent 1px),
        linear-gradient(90deg, var(--grid) 1px, transparent 1px);
    background-size: 40px 40px;
    opacity: 0.3;
    pointer-events: none;
    z-index: 0;
}

/* ─── Layout ─────────────────────────────────────────── */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 1;
}

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

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.logo {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--accent);
    letter-spacing: 0.05em;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

/* ─── Buttons ────────────────────────────────────────── */
.cta-button {
    padding: 0.625rem 1.25rem;
    background: var(--accent);
    color: var(--bg);
    border: none;
    border-radius: 6px;
    font-weight: 500;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.15s ease;
    font-family: 'IBM Plex Sans', sans-serif;
    text-decoration: none;
    display: inline-block;
}

.cta-button:hover {
    background: var(--accent-hover);
    box-shadow: 0 4px 12px rgba(0, 255, 136, 0.3);
}

.cta-button-outline {
    padding: 0.625rem 1.25rem;
    border: 1px solid var(--accent);
    border-radius: 6px;
    font-weight: 500;
    font-size: 0.875rem;
    font-family: 'IBM Plex Sans', sans-serif;
    color: var(--accent);
    text-decoration: none;
    transition: all 0.15s ease;
    display: inline-block;
}

.cta-button-outline:hover {
    background: var(--accent);
    color: var(--bg);
}

/* ─── Footer ─────────────────────────────────────────── */
footer {
    padding: 2.5rem 0;
    border-top: 1px solid var(--border);
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.footer-copy {
    font-size: 0.8125rem;
    color: var(--text-lighter);
    font-weight: 300;
}

.footer-links {
    display: flex;
    gap: 1.5rem;
    align-items: center;
    flex-wrap: wrap;
}

.footer-link {
    color: var(--text-dim);
    text-decoration: none;
    font-size: 0.8125rem;
    transition: color 0.15s ease;
}

.footer-link:hover {
    color: var(--text);
}

.footer-email {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.8125rem;
    color: var(--accent);
    text-decoration: none;
    opacity: 0.85;
    transition: opacity 0.15s ease;
}

.footer-email:hover {
    opacity: 1;
}

/* ─── Problem cards ─────────────────────────────────── */
.problem-section {
    padding: 5rem 0;
    border-top: 1px solid var(--border);
}

.problem-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 3rem;
}

.problem-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 2rem;
}

.problem-card h3 {
    font-size: 1.125rem;
    margin-bottom: 0.75rem;
    color: var(--text);
    font-weight: 500;
}

.problem-card p {
    color: var(--text-dim);
    font-size: 0.9375rem;
    line-height: 1.7;
    font-weight: 300;
}

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

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 3rem;
    align-items: start;
}

.pricing-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 2.5rem 2rem;
    display: flex;
    flex-direction: column;
}

.pricing-card.featured {
    border-color: var(--accent);
    box-shadow: 0 0 24px rgba(0, 255, 136, 0.08);
}

.pricing-card-header {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border);
}

.pricing-tier-name {
    font-size: 1.25rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.pricing-price {
    font-size: 2rem;
    font-weight: 600;
    color: var(--text);
    line-height: 1.2;
}

.pricing-price .period {
    font-size: 0.875rem;
    font-weight: 300;
    color: var(--text-dim);
}

.pricing-alt-prices {
    font-size: 0.75rem;
    color: var(--text-lighter);
    margin-top: 0.375rem;
    font-weight: 300;
}

.pricing-beta-badge {
    display: inline-block;
    font-size: 0.6875rem;
    font-family: 'IBM Plex Mono', monospace;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--accent);
    background: rgba(0, 255, 136, 0.1);
    border: 1px solid rgba(0, 255, 136, 0.2);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    margin-top: 0.5rem;
}

.pricing-features {
    list-style: none;
    padding: 0;
    margin: 0 0 2rem;
    flex: 1;
}

.pricing-features li {
    font-size: 0.9375rem;
    color: var(--text-dim);
    padding: 0.5rem 0;
    padding-left: 1.25rem;
    position: relative;
    font-weight: 300;
    line-height: 1.5;
}

.pricing-features li::before {
    content: '—';
    position: absolute;
    left: 0;
    color: var(--text-lighter);
}

.pricing-card .cta-button,
.pricing-card .cta-button-outline {
    width: 100%;
    text-align: center;
}

/* ─── Responsive ─────────────────────────────────────── */
@media (max-width: 768px) {
    .container {
        padding: 0 1.25rem;
    }

    .footer-inner {
        padding: 0 1.25rem;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }

    .problem-grid,
    .pricing-grid {
        grid-template-columns: 1fr;
    }
}
