html {
    scroll-behavior: smooth;
}

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

.skip-to-content {
    position: absolute;
    top: -40px;
    left: 24px;
    background: var(--accent);
    color: var(--accent-fg);
    padding: 8px 16px;
    z-index: 100;
    border-radius: var(--radius-md);
    font-weight: 700;
    transition: top 0.2s;
    text-decoration: none;
}
.skip-to-content:focus {
    top: 24px;
}

/* Navigation */
.site-nav {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(10, 10, 10, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 16px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 15px;
    color: var(--text-primary);
    text-decoration: none;
}

.nav-brand svg {
    color: var(--text-primary);
}

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

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.2s;
}

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

@media (max-width: 768px) {
    .nav-container {
        padding: 12px 16px;
    }
    .nav-links {
        gap: 16px;
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .nav-container {
        padding: 10px 12px;
        gap: 10px;
    }
    .nav-links {
        gap: 12px;
    }
    .nav-brand {
        gap: 8px;
        font-size: 14px;
    }
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: var(--radius-md);
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.2s;
    cursor: pointer;
    line-height: 1;
}

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

.btn-primary:active { transform: scale(0.98); }
.btn-primary:hover {
    background: var(--accent-hover);
}

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

.btn-secondary:active { transform: scale(0.98); }
.btn-secondary:hover {
    background: var(--bg-card);
    border-color: var(--border-highlight);
}

/* Hero Asymmetric Split */
.hero-split {
    max-width: 1200px;
    margin: 0 auto;
    padding: 80px 24px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
    min-height: calc(100dvh - 80px);
}

@media (max-width: 1024px) {
    .hero-split {
        grid-template-columns: 1fr;
        padding: 64px 24px;
        gap: 48px;
        min-height: auto;
    }
}

@media (max-width: 640px) {
    .hero-split {
        padding: 48px 16px;
        gap: 32px;
    }
    .hero-actions .btn {
        flex: 1 1 auto;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .hero-split {
        padding: 40px 12px;
        gap: 28px;
    }
    .hero-content h1 {
        font-size: 36px;
    }
}

.hero-content h1 {
    text-wrap: balance;
    font-family: var(--font-display);
    font-size: clamp(40px, 5vw, 64px);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin-bottom: 24px;
    max-width: 15ch;
}

.hero-content p {
    line-height: 1.75;
    font-size: 18px;
    color: var(--text-secondary);
    max-width: 480px;
    margin-bottom: 40px;
    line-height: 1.6;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 32px;
}

.hero-meta {
    font-family: var(--font-mono);
    font-size: 13px;
    color: var(--text-muted);
}

/* Showcase Component */
.showcase-wrapper {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.showcase-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    border-bottom: 1px solid var(--border);
    background: var(--bg-card);
}

.showcase-label {
    font-family: var(--font-mono);
    font-size: 12px;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.showcase-tabs {
    display: flex;
    gap: 4px;
}

.showcase-tab {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 500;
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.2s;
}

.showcase-tab:hover {
    color: var(--text-primary);
}

.showcase-tab.active {
    background: var(--bg-primary);
    color: var(--text-primary);
    box-shadow: inset 0 0 0 1px var(--border);
}

.showcase-preview-body {
    padding: 32px;
    background: var(--bg-secondary);
    min-height: 400px;
}

@media (max-width: 640px) {
    .showcase-preview-body {
        padding: 20px;
        min-height: 300px;
    }
    .showcase-header {
        padding: 10px 12px;
    }
    .showcase-tab {
        padding: 6px 10px;
    }
}

/* Features Alternating Layout */
.section {
    padding: 96px 24px;
    max-width: 1200px;
    margin: 0 auto;
}

.feature-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
    margin-bottom: 120px;
}

.feature-row:last-child {
    margin-bottom: 0;
}

.feature-row.reverse {
    direction: rtl;
}

.feature-row.reverse > * {
    direction: ltr;
}

@media (max-width: 900px) {
    .feature-row {
        grid-template-columns: 1fr;
        gap: 40px;
        margin-bottom: 80px;
    }
    .feature-row.reverse {
        direction: ltr;
    }
}

@media (max-width: 768px) {
    .section {
        padding: 64px 16px;
    }
    .feature-row {
        gap: 32px;
        margin-bottom: 64px;
    }
}

@media (max-width: 480px) {
    .section {
        padding: 48px 12px;
    }
}

.feature-text h2 {
    text-wrap: balance;
    font-family: var(--font-display);
    font-size: 32px;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 16px;
}

.feature-text p {
    line-height: 1.75;
    font-size: 16px;
    color: var(--text-secondary);
    max-width: 480px;
}

/* Visuals */
.feature-visual {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 300px;
}

.code-block {
    background: var(--bg-primary);
    padding: 24px;
    border-radius: var(--radius-md);
    font-family: var(--font-mono);
    font-size: 14px;
    color: var(--text-secondary);
    width: 100%;
    overflow-x: auto;
}

.code-block code {
    white-space: pre;
}
.token-keyword { color: #fbbf24; }
.token-string { color: #22c55e; }

.stats-mockup {
    width: 100%;
    max-width: 320px;
}

.stat-line {
    display: flex;
    justify-content: space-between;
    padding: 16px 0;
    border-bottom: 1px solid var(--border);
    font-family: var(--font-mono);
    font-size: 14px;
}

.stat-line:last-child {
    border-bottom: none;
}

.stat-line .label {
    color: var(--text-muted);
}

.stat-line .value {
    color: var(--text-primary);
    font-weight: 700;
}

.deploy-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    padding: 32px;
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 700;
    transition: border-color 0.2s;
}

.deploy-card:hover {
    border-color: var(--border-highlight);
}

/* Workflow Grid */
.workflow-header {
    margin-bottom: 48px;
    max-width: 600px;
}

.workflow-header h2 {
    font-family: var(--font-display);
    font-size: 32px;
    font-weight: 700;
    letter-spacing: -0.02em;
}

/* Workflow Steps */
.workflow-steps {
    display: flex;
    justify-content: space-between;
    position: relative;
    gap: 24px;
}

.workflow-steps::before {
    content: '';
    position: absolute;
    top: 24px;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--border);
    z-index: 0;
}

.workflow-step {
    flex: 1;
    position: relative;
    z-index: 1;
    background: var(--bg-primary);
    padding-right: 24px;
}

.workflow-step .step-num {
    font-family: var(--font-mono);
    font-size: 13px;
    font-weight: 600;
    color: var(--accent);
    background: var(--bg-card);
    border: 1px solid var(--border);
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin-bottom: 24px;
}

.workflow-step h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 12px;
}

.workflow-step p {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.6;
}

@media (max-width: 768px) {
    .workflow-steps {
        flex-direction: column;
        gap: 48px;
    }
    .workflow-steps::before {
        top: 0;
        bottom: 0;
        left: 24px;
        width: 1px;
        height: auto;
    }
    .workflow-step {
        padding-left: 64px;
        padding-right: 0;
        background: transparent;
    }
    .workflow-step .step-num {
        position: absolute;
        left: 0;
        top: 0;
        margin-bottom: 0;
    }
}

/* Footer */
.site-footer {
    border-top: 1px solid var(--border);
    padding: 32px 24px;
    margin-top: 64px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    color: var(--text-muted);
}

@media (max-width: 600px) {
    .footer-content {
        flex-direction: column;
        gap: 16px;
        align-items: flex-start;
    }
}

@media (max-width: 480px) {
    .site-footer {
        padding: 24px 16px;
        margin-top: 48px;
    }
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-primary);
    font-weight: 600;
}
.footer-left {
    display: flex;
    gap: 12px;
    align-items: center;
}

.footer-left .separator {
    color: var(--border);
}

.footer-right a { font-weight: 500;
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.2s;
}

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

