:root {
    --bg: #0d0d0d;
    --surface: #161616;
    --surface-2: #1e1e1e;
    --border: #272727;
    --green: #22c55e;
    --green-dim: rgba(34, 197, 94, 0.1);
    --text: #f0f0f0;
    --text-muted: #777;
    --radius: 10px;
    --radius-lg: 16px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    background: var(--bg);
    color: var(--text);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

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

/* ── NAV ── */

nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 0 48px;
    height: 58px;
    background: rgba(13, 13, 13, 0.88);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border);
    z-index: 100;
}

.logo-mark {
    width: 30px;
    height: 30px;
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 17px;
    color: var(--green);
    font-style: italic;
    letter-spacing: -1px;
}

.nav-name {
    font-size: 15px;
    font-weight: 600;
    letter-spacing: -0.02em;
}

.nav-spacer { flex: 1; }

.nav-links {
    display: flex;
    align-items: center;
    gap: 28px;
    list-style: none;
    margin-right: 12px;
}

.nav-links a {
    font-size: 14px;
    color: var(--text-muted);
    transition: color 0.15s;
}

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

/* ── BUTTONS ── */

.btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: var(--radius);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: opacity 0.15s, transform 0.1s;
    white-space: nowrap;
}

.btn:hover { opacity: 0.85; }
.btn:active { transform: scale(0.98); }

.btn-primary {
    background: var(--green);
    color: #000;
}

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

.btn-outline:hover {
    background: var(--surface-2);
    opacity: 1;
}

/* ── LAYOUT ── */

.container {
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 48px;
}

/* ── HERO ── */

.hero {
    padding: 160px 48px 100px;
    max-width: 1080px;
    margin: 0 auto;
    text-align: center;
}

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--green);
    margin-bottom: 24px;
    padding: 5px 14px;
    border: 1px solid rgba(34, 197, 94, 0.25);
    border-radius: 999px;
    background: var(--green-dim);
}

.hero h1 {
    font-size: clamp(36px, 5.5vw, 68px);
    font-weight: 700;
    letter-spacing: -0.04em;
    line-height: 1.08;
    margin-bottom: 22px;
}

.hero h1 em {
    color: var(--green);
    font-style: normal;
}

.hero p {
    font-size: 18px;
    color: var(--text-muted);
    max-width: 520px;
    margin: 0 auto 36px;
    line-height: 1.7;
}

.hero-ctas {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ── DIVIDER ── */

.section-divider {
    border: none;
    border-top: 1px solid var(--border);
    margin: 0;
}

/* ── SECTION ── */

.section {
    padding: 96px 48px;
    max-width: 1080px;
    margin: 0 auto;
}

.section-label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--green);
    margin-bottom: 10px;
}

.section-heading {
    font-size: clamp(26px, 3vw, 38px);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.2;
    margin-bottom: 12px;
}

.section-sub {
    font-size: 16px;
    color: var(--text-muted);
    max-width: 520px;
    line-height: 1.7;
}

/* ── FEATURES ── */

.features-intro {
    margin-bottom: 72px;
}

.feature-block {
    display: flex;
    align-items: center;
    gap: 64px;
    margin-bottom: 80px;
}

.feature-block.reverse {
    flex-direction: row-reverse;
}

.feature-text {
    flex: 0 0 280px;
}

.feature-number {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    margin-bottom: 14px;
}

.feature-text h3 {
    font-size: 22px;
    font-weight: 600;
    letter-spacing: -0.02em;
    margin-bottom: 12px;
    line-height: 1.3;
}

.feature-text p {
    font-size: 15px;
    color: var(--text-muted);
    line-height: 1.75;
}

.feature-img-wrap {
    flex: 1;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border);
    box-shadow: 0 32px 64px rgba(0, 0, 0, 0.55);
}

.feature-img-wrap img {
    width: 100%;
    display: block;
}

/* ── CODE SECTION ── */

.code-section {
    padding: 96px 0;
}

.code-section-inner {
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 48px;
}

.code-section-top {
    display: flex;
    align-items: flex-start;
    gap: 80px;
    margin-bottom: 40px;
}

.code-section-text {
    flex: 0 0 340px;
}

.code-section-text .section-label {
    margin-bottom: 10px;
}

.code-section-text .section-heading {
    margin-bottom: 14px;
}

.code-section-text p {
    font-size: 15px;
    color: var(--text-muted);
    line-height: 1.8;
}

.code-section-text p + p {
    margin-top: 12px;
}

.code-stat {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-top: 28px;
}

.code-stat-num {
    font-size: 36px;
    font-weight: 700;
    color: var(--green);
    letter-spacing: -0.04em;
}

.code-stat-label {
    font-size: 14px;
    color: var(--text-muted);
}

.code-block {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.code-block-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    border-bottom: 1px solid var(--border);
    background: var(--surface-2);
}

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

.code-dots span {
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background: var(--border);
}

.code-filename {
    font-size: 12px;
    color: var(--text-muted);
    font-family: 'SF Mono', 'Fira Code', 'Cascadia Code', monospace;
    flex: 1;
    text-align: center;
    margin-right: 32px;
}

.code-lines {
    display: flex;
    overflow-x: auto;
}

.line-numbers {
    padding: 20px 0 20px 20px;
    display: flex;
    flex-direction: column;
    gap: 0;
    user-select: none;
    border-right: 1px solid var(--border);
    min-width: 44px;
}

.line-numbers span {
    font-family: 'SF Mono', 'Fira Code', 'Cascadia Code', monospace;
    font-size: 12.5px;
    line-height: 1.75;
    color: var(--text-muted);
    opacity: 0.4;
    text-align: right;
    padding-right: 12px;
}

.code-content {
    padding: 20px 24px;
    overflow-x: auto;
    flex: 1;
}

.code-content pre {
    font-family: 'SF Mono', 'Fira Code', 'Cascadia Code', monospace;
    font-size: 12.5px;
    line-height: 1.75;
    color: #ccc;
    white-space: pre;
}

/* token colors */
.kw { color: #c792ea; }
.fn { color: #82aaff; }
.str { color: #c3e88d; }
.cm { color: #546e7a; font-style: italic; }
.pn { color: #f78c6c; }
.op { color: #89ddff; }
.bo { color: #ff9cac; }
.prop { color: #f0f0f0; }

/* ── ABOUT ── */

.about-grid {
    display: flex;
    gap: 20px;
    margin-top: 48px;
}

.about-card {
    flex: 1;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 30px;
}

.about-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--green-dim);
    border: 1px solid rgba(34, 197, 94, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 16px;
    color: var(--green);
    margin-bottom: 16px;
}

.about-card h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 4px;
}

.about-card .role {
    font-size: 13px;
    color: var(--green);
    margin-bottom: 14px;
}

.about-card p {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.75;
}

/* ── PARTNER CTA ── */

.partner-wrap {
    padding: 0 48px 96px;
    max-width: 1080px;
    margin: 0 auto;
}

.partner-box {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 72px 64px;
    text-align: center;
}

.partner-box .section-heading {
    margin-bottom: 16px;
}

.partner-box p {
    font-size: 16px;
    color: var(--text-muted);
    max-width: 480px;
    margin: 0 auto 32px;
    line-height: 1.75;
}

.partner-ctas {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ── FOOTER ── */

footer {
    border-top: 1px solid var(--border);
    padding: 28px 48px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-logo .logo-mark {
    width: 24px;
    height: 24px;
    font-size: 13px;
}

.footer-logo span {
    font-size: 13px;
    font-weight: 600;
    opacity: 0.6;
}

.footer-spacer { flex: 1; }

footer p {
    font-size: 12px;
    color: var(--text-muted);
}

/* ── RESPONSIVE ── */

@media (max-width: 768px) {
    nav { padding: 0 20px; }
    .nav-links { display: none; }

    .hero { padding: 120px 20px 80px; }

    .section { padding: 64px 20px; }

    .feature-block,
    .feature-block.reverse {
        flex-direction: column;
        gap: 32px;
    }

    .feature-text { flex: unset; }

    .code-section-top { flex-direction: column; gap: 32px; }
    .code-section-text { flex: unset; }
    .code-section-inner { padding: 0 20px; }

    .about-grid { flex-direction: column; }

    .partner-wrap { padding: 0 20px 64px; }
    .partner-box { padding: 48px 24px; }

    footer { padding: 24px 20px; flex-direction: column; text-align: center; }
}
