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

:root {
    --bg: #0d1117;
    --bg-card: rgba(22, 27, 34, 0.6);
    --bg-card-solid: #161b22;
    --bg-deep: #010409;
    --border: #30363d;
    --text: #c9d1d9;
    --text-bright: #f0f6fc;
    --text-muted: #8b949e;
    --text-dim: #6e7681;
    --accent: #58a6ff;
    --accent-dim: #1f6feb;
    --green: #2ea44f;
    --green-dim: #238636;
    --red: #da3633;
    --yellow: #9e6a03;
    --purple: #8957e5;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
}

.mono {
    font-family: ui-monospace, 'SF Mono', Monaco, 'Cascadia Code', Consolas, monospace;
}

.muted { color: var(--text-muted); }
.small { font-size: 0.85rem; }

/* Scanlines overlay */
.scanlines {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1000;
    background: repeating-linear-gradient(
        0deg,
        rgba(0, 0, 0, 0.03) 0px,
        rgba(0, 0, 0, 0.03) 1px,
        transparent 1px,
        transparent 2px
    );
}

/* Blinking cursor */
.blink {
    animation: blink 1s step-end infinite;
    color: var(--accent);
}
@keyframes blink {
    50% { opacity: 0; }
}

/* Glow text */
.glow {
    color: var(--accent);
    text-shadow: 0 0 20px rgba(88, 166, 255, 0.5), 0 0 40px rgba(88, 166, 255, 0.3);
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Nav */
nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(13, 17, 23, 0.8);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    z-index: 100;
    padding: 14px 0;
}

.nav-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: ui-monospace, 'SF Mono', Monaco, Consolas, monospace;
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--accent);
    text-decoration: none;
    text-shadow: 0 0 10px rgba(88, 166, 255, 0.3);
}

.nav-links {
    display: flex;
    gap: 28px;
    align-items: center;
}

.nav-links a {
    font-family: ui-monospace, monospace;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.85rem;
    transition: color 0.2s;
}

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

/* Hamburger */
.hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    flex-direction: column;
    gap: 5px;
    z-index: 102;
}

.hamburger span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text);
    transition: transform 0.2s, opacity 0.2s;
}

.hamburger.open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.hamburger.open span:nth-child(2) {
    opacity: 0;
}

.hamburger.open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Badges */
.badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 4px;
    font-family: ui-monospace, monospace;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.badge-red { background: var(--red); color: white; }
.badge-green { background: var(--green-dim); color: white; }
.badge-blue { background: var(--accent-dim); color: white; }
.badge-yellow { background: var(--yellow); color: white; }
.badge-purple { background: var(--purple); color: white; }
.badge-gray { background: var(--border); color: var(--text-muted); }

.terminal-header {
    margin-bottom: 12px;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 6px;
    font-family: ui-monospace, monospace;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.2s;
    cursor: pointer;
    border: 1px solid transparent;
}

.btn-primary {
    background: var(--green);
    color: white;
    border-color: var(--green);
}

.btn-primary:hover {
    background: var(--green-dim);
    box-shadow: 0 0 20px rgba(46, 164, 79, 0.3);
}

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

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

.full-width { width: 100%; text-align: center; }

/* Hero */
.hero {
    padding: 140px 0 80px;
}

.hero h1 {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 20px;
    letter-spacing: -0.02em;
}

.hero .mono {
    font-size: 1rem;
    max-width: 600px;
    margin-bottom: 32px;
    color: var(--text-muted);
}

.cta-group {
    display: flex;
    gap: 14px;
    margin-bottom: 48px;
    flex-wrap: wrap;
}

.hero-stats {
    display: flex;
    gap: 40px;
    flex-wrap: wrap;
}

.stat {
    display: flex;
    flex-direction: column;
}

.stat-value {
    font-family: ui-monospace, monospace;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-bright);
}

.stat-label {
    font-family: ui-monospace, monospace;
    font-size: 0.65rem;
    color: var(--text-dim);
    letter-spacing: 0.1em;
}

/* Sections */
section {
    padding: 80px 0;
}

section h2 {
    font-size: 1.6rem;
    font-weight: 600;
    margin-bottom: 16px;
    letter-spacing: -0.01em;
}

/* Solution / Comparison */
.solution {
    background: var(--bg-deep);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.comparison-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 32px;
}

.comparison-card {
    background: var(--bg-card);
    backdrop-filter: blur(8px);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 24px;
}

.comparison-card.bad {
    border-left: 3px solid var(--red);
}

.comparison-card.good {
    border-left: 3px solid var(--green);
}

.card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
}

.check-list {
    list-style: none;
}

.check-list li {
    padding: 8px 0;
    padding-left: 24px;
    position: relative;
    font-family: ui-monospace, monospace;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.check-list li.bad::before {
    content: '✗';
    position: absolute;
    left: 0;
    color: var(--red);
}

.check-list li.good::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--green);
}

/* Comparison Table */
.compare-table-wrap {
    margin-top: 48px;
}

.compare-table {
    width: 100%;
    border-collapse: collapse;
    font-family: ui-monospace, 'SF Mono', Monaco, Consolas, monospace;
    font-size: 0.85rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
}

.compare-table thead tr {
    background: var(--bg-card-solid);
}

.compare-table th {
    padding: 12px 16px;
    text-align: left;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    border-bottom: 1px solid var(--border);
}

.compare-table th.col-highlight {
    color: var(--accent);
}

.compare-table td {
    padding: 10px 16px;
    border-bottom: 1px solid var(--border);
    color: var(--text-muted);
}

.compare-table td.col-highlight {
    background: rgba(88, 166, 255, 0.03);
}

.compare-table tbody tr:last-child td {
    border-bottom: none;
}

.compare-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.02);
}

.tbl-good {
    color: var(--green);
    font-weight: 700;
}

.tbl-bad {
    color: var(--red);
    opacity: 0.5;
}

/* Features */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 32px;
}

.feature-card {
    background: var(--bg-card);
    backdrop-filter: blur(8px);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 24px;
}

.feature-icon {
    font-size: 1.5rem;
    color: var(--accent);
    margin-bottom: 12px;
    text-shadow: 0 0 10px rgba(88, 166, 255, 0.4);
}

.feature-card h3 {
    font-family: ui-monospace, monospace;
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-bright);
}

.feature-card p {
    font-size: 0.85rem;
    line-height: 1.5;
}

/* How It Works */
.how-it-works {
    background: var(--bg-deep);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.code-block {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
    margin: 32px 0;
}

.code-header {
    background: var(--bg-card-solid);
    padding: 10px 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    border-bottom: 1px solid var(--border);
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.dot.red { background: #ff5f56; }
.dot.yellow { background: #ffbd2e; }
.dot.green { background: #27c93f; }

.filename {
    font-family: ui-monospace, monospace;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-left: 8px;
}

.code-block pre {
    padding: 20px;
    overflow-x: auto;
}

.code-block code {
    font-family: ui-monospace, 'SF Mono', Monaco, Consolas, monospace;
    font-size: 0.9rem;
    color: var(--green);
}

/* Timeline */
.timeline {
    margin-top: 40px;
    position: relative;
    padding-left: 60px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 20px;
    top: 0;
    bottom: 0;
    width: 1px;
    background: var(--border);
}

.timeline-item {
    position: relative;
    margin-bottom: 32px;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-marker {
    position: absolute;
    left: -60px;
    width: 40px;
    height: 40px;
    background: var(--bg-card-solid);
    border: 1px solid var(--border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: ui-monospace, monospace;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--accent);
}

.timeline-content h3 {
    font-family: ui-monospace, monospace;
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--text-bright);
}

.timeline-content p {
    font-size: 0.85rem;
}

/* Insight */
.data-insight {
    padding: 60px 0;
}

.insight-card {
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border);
    border-left: 3px solid var(--accent);
    border-radius: 8px;
    padding: 40px;
    position: relative;
    overflow: hidden;
}

.insight-card h2 {
    color: var(--text-bright);
}

.insight-card p {
    max-width: 700px;
    color: var(--text-muted);
}

.insight-visual {
    position: absolute;
    right: 40px;
    top: 50%;
    transform: translateY(-50%);
    width: 120px;
    height: 120px;
}

.pulse-ring {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 1px solid var(--accent);
    border-radius: 50%;
    opacity: 0;
    animation: pulse-out 3s ease-out infinite;
}

.pulse-ring.delay-1 { animation-delay: 1s; }
.pulse-ring.delay-2 { animation-delay: 2s; }

@keyframes pulse-out {
    0% { transform: scale(0.3); opacity: 0.8; }
    100% { transform: scale(1.5); opacity: 0; }
}

/* Pricing */
.pricing {
    background: var(--bg-deep);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
    margin-top: 32px;
}

.pricing-card {
    background: var(--bg-card);
    backdrop-filter: blur(8px);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 28px;
    display: flex;
    flex-direction: column;
}

.pricing-card.featured {
    border-color: var(--accent);
    box-shadow: 0 0 30px rgba(88, 166, 255, 0.1);
}

.pricing-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border);
}

.plan-name {
    font-family: ui-monospace, monospace;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-bright);
}

.plan-price {
    font-family: ui-monospace, monospace;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-bright);
}

.plan-price .period {
    font-size: 0.9rem;
    font-weight: 400;
    color: var(--text-muted);
}

.plan-features {
    list-style: none;
    margin-bottom: 24px;
    flex: 1;
}

.plan-features li {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
    font-size: 0.85rem;
}

.plan-features li:last-child {
    border-bottom: none;
}

.plan-features .label {
    font-family: ui-monospace, monospace;
    font-size: 0.7rem;
    color: var(--text-dim);
    letter-spacing: 0.05em;
}

.plan-features .value {
    font-family: ui-monospace, monospace;
    color: var(--text);
}

/* Signup */
.signup {
    padding: 100px 0;
}

.signup-card {
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 48px;
    max-width: 500px;
    margin: 0 auto;
    text-align: center;
}

.signup-card h2 {
    font-family: ui-monospace, monospace;
    margin-bottom: 24px;
}

.signup-form {
    display: flex;
    gap: 12px;
}

.signup-form input {
    flex: 1;
    padding: 14px 18px;
    border-radius: 6px;
    border: 1px solid var(--border);
    background: var(--bg);
    color: var(--text);
    font-family: ui-monospace, monospace;
    font-size: 0.95rem;
}

.signup-form input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 2px rgba(88, 166, 255, 0.2);
}

.signup-form input::placeholder {
    color: var(--text-dim);
}

.signup-card > p {
    margin-top: 16px;
    font-size: 0.8rem;
}

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

.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 24px;
    margin-bottom: 24px;
}

.footer-brand p {
    margin-top: 6px;
    font-size: 0.85rem;
}

.footer-links {
    display: flex;
    gap: 24px;
}

.footer-links a {
    font-family: ui-monospace, monospace;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.85rem;
}

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

.footer-bottom {
    font-size: 0.8rem;
    padding-top: 24px;
    border-top: 1px solid var(--border);
}

/* Responsive */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(13, 17, 23, 0.95);
        backdrop-filter: blur(12px);
        border-bottom: 1px solid var(--border);
        flex-direction: column;
        padding: 16px 24px;
        gap: 0;
    }

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

    .nav-links a {
        padding: 12px 0;
        border-bottom: 1px solid var(--border);
        font-size: 0.95rem;
    }

    .nav-links a:last-child {
        border-bottom: none;
        margin-top: 8px;
    }

    .hero {
        padding: 120px 0 60px;
    }

    .hero-stats {
        gap: 24px;
    }

    section {
        padding: 60px 0;
    }

    .timeline {
        padding-left: 50px;
    }

    .timeline-marker {
        left: -50px;
        width: 32px;
        height: 32px;
        font-size: 0.7rem;
    }

    .insight-visual {
        display: none;
    }

    .compare-table-wrap {
        overflow-x: auto;
    }

    .compare-table {
        font-size: 0.75rem;
        min-width: 480px;
    }

    .signup-form {
        flex-direction: column;
    }

    .footer-inner {
        flex-direction: column;
        text-align: center;
    }

    .footer-links {
        flex-wrap: wrap;
        justify-content: center;
    }
}
