/* ============================================================================
   CORE PAGE — /core
   ============================================================================ */

/* ── Hero (Split Layout) ─────────────────────────────────────────────────── */
.core-hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 80px;
    padding-bottom: var(--space-3xl);
}
.core-hero__layout {
    display: grid;
    grid-template-columns: 55% 45%;
    gap: var(--space-3xl);
    align-items: center;
}
.core-hero__text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-md);
}
.core-hero__headline {
    font-size: 56px;
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.03em;
}
.core-hero__sub {
    color: var(--text-secondary);
    font-size: 18px;
    line-height: 1.7;
    max-width: 540px;
}
.core-hero__actions {
    display: flex;
    gap: var(--space-md);
    margin-top: var(--space-lg);
    flex-wrap: wrap;
}
.core-hero__terminal {
    width: 100%;
}


/* ── Section 2: Benchmarks ───────────────────────────────────────────────── */
.benchmarks-section {
    background: var(--bg-surface);
}
.benchmarks {
    max-width: 800px;
    margin-inline: auto;
}
.benchmarks__tabs {
    display: flex;
    gap: var(--space-xs);
    margin-bottom: var(--space-2xl);
    justify-content: center;
}
.benchmarks__tab {
    padding: 8px 20px;
    font-size: 14px;
    font-weight: 600;
    font-family: var(--font-sans);
    color: var(--text-muted);
    background: transparent;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-pill);
    cursor: pointer;
    transition: color var(--ease-fast), background var(--ease-fast), border-color var(--ease-fast);
}
.benchmarks__tab:hover {
    color: var(--text-secondary);
    border-color: var(--border-active);
}
.benchmarks__tab.is-active {
    color: var(--text-primary);
    background: var(--bg-elevated);
    border-color: var(--border-active);
}
.benchmarks__pane {
    display: none;
}
.benchmarks__pane.is-active {
    display: block;
}

/* Benchmark groups */
.bench-group {
    margin-bottom: var(--space-2xl);
}
.bench-group:last-child {
    margin-bottom: 0;
}
.bench-group__title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 2px;
}
.bench-group__desc {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: var(--space-md);
}

/* Benchmark bars */
.bench-bars {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}
.bench-bar {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.bench-bar__meta {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    font-size: 14px;
}
.bench-bar__name {
    font-weight: 600;
    color: var(--text-primary);
}
.bench-bar__name--accent {
    color: var(--product-core);
}
.bench-bar__stats {
    display: flex;
    align-items: baseline;
    gap: var(--space-md);
}
.bench-bar__time {
    font-family: var(--font-mono);
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
}
.bench-bar__rps {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--text-muted);
}
.bench-bar__slower {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--text-muted);
    opacity: 0;
    transition: opacity 400ms ease-out 800ms;
}
.bench-bar.is-visible .bench-bar__slower {
    opacity: 1;
}
.bench-bar__track {
    height: 8px;
    background: var(--bg-deep);
    border-radius: 4px;
    overflow: hidden;
}
.bench-bar__fill {
    height: 100%;
    border-radius: 4px;
    width: 0%;
    transition: width 800ms ease-out;
}
.bench-bar__fill--accent {
    background: linear-gradient(90deg, var(--product-core), var(--accent));
}
.bench-bar__fill--neutral {
    background: var(--border-active);
}

.benchmarks__env {
    font-size: 13px;
    font-style: italic;
    color: var(--text-muted);
    text-align: center;
    margin-top: var(--space-2xl);
    margin-bottom: var(--space-xs);
}
.benchmarks__tools {
    font-size: 13px;
    color: var(--text-muted);
    text-align: center;
}
.benchmarks__tools a {
    color: var(--text-secondary);
}
.benchmarks__tools a:hover {
    color: var(--accent);
}


/* ── Section 3: Feature Accordion ────────────────────────────────────────── */
.core-accordion {
    max-width: 800px;
    margin-inline: auto;
}
.core-accordion .accordion__item summary {
    list-style: none;
}
.core-accordion .accordion__item summary::-webkit-details-marker {
    display: none;
}

.feature-bullets {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
    margin-bottom: var(--space-lg);
}
.feature-bullets li {
    display: flex;
    align-items: flex-start;
    gap: var(--space-sm);
    color: var(--text-secondary);
    font-size: 15px;
    line-height: 1.6;
}
.feature-bullets li::before {
    content: '→';
    color: var(--product-core);
    flex-shrink: 0;
    font-weight: 600;
}

.feature-philosophy {
    color: var(--text-secondary);
    font-size: 15px;
    line-height: 1.7;
    margin-bottom: var(--space-lg);
}
.feature-philosophy code {
    color: var(--accent);
    background: var(--accent-soft);
    padding: 2px 6px;
    border-radius: var(--radius-sm);
    font-size: 13px;
}

.feature-stat-row {
    display: flex;
    gap: var(--space-2xl);
    padding: var(--space-lg);
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
}
.feature-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    flex: 1;
}
.feature-stat__number {
    font-size: 36px;
    font-weight: 700;
    color: var(--product-core);
    font-family: var(--font-mono);
    line-height: 1;
}
.feature-stat__label {
    font-size: 13px;
    color: var(--text-muted);
    margin-top: var(--space-xs);
}


/* ── Section 4: Content Drivers ──────────────────────────────────────────── */
.drivers-section {
    background: linear-gradient(180deg, var(--bg-deep) 0%, var(--bg-surface) 50%, var(--bg-deep) 100%);
}
.drivers-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-lg);
}
.driver-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    transition: border-color var(--ease-fast), transform var(--ease-fast);
    display: flex;
    flex-direction: column;
}
.driver-card:hover {
    border-color: var(--border-active);
    transform: translateY(-2px);
}
.driver-card__icon {
    font-size: 28px;
    margin-bottom: var(--space-md);
}
.driver-card__title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: var(--space-sm);
}
.driver-card__desc {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: var(--space-md);
}
.driver-card__bullets {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-top: auto;
}
.driver-card__bullets li {
    display: flex;
    align-items: flex-start;
    gap: var(--space-sm);
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.5;
}
.driver-card__bullets li::before {
    content: '·';
    color: var(--product-core);
    flex-shrink: 0;
    font-weight: 700;
}


/* ── Section 5: Security ─────────────────────────────────────────────────── */
.security-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-lg);
    max-width: 1000px;
    margin-inline: auto;
}
.security-item {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-sm);
}
.security-item__icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-soft);
    border-radius: var(--radius-md);
    color: var(--product-core);
    margin-bottom: var(--space-sm);
}
.security-item__icon svg {
    width: 22px;
    height: 22px;
}
.security-item__title {
    font-size: 16px;
    font-weight: 600;
}
.security-item__desc {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
}
.security-item__desc code {
    color: var(--accent);
    background: var(--accent-soft);
    padding: 1px 5px;
    border-radius: var(--radius-sm);
    font-size: 12px;
}


/* ── CTA Overrides ───────────────────────────────────────────────────────── */
.page-core .final-cta__sub {
    color: var(--text-secondary);
    font-size: 18px;
    margin-top: var(--space-md);
}
.final-cta__terminal {
    max-width: 580px;
    margin: var(--space-2xl) auto 0;
}


/* ── Responsive (Core) ───────────────────────────────────────────────────── */
@media (max-width: 1024px) {
    .core-hero__layout {
        grid-template-columns: 1fr;
        gap: var(--space-2xl);
    }
    .core-hero__text {
        text-align: center;
        align-items: center;
    }
    .core-hero__actions {
        justify-content: center;
    }
    .drivers-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .security-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-xl);
    }
}

@media (max-width: 639px) {
    .core-hero {
        min-height: auto;
        padding-top: 120px;
        padding-bottom: var(--space-3xl);
    }
    .core-hero__headline {
        font-size: 34px;
    }
    .core-hero__sub {
        font-size: 16px;
    }
    .bench-bar__stats {
        gap: var(--space-sm);
    }
    .bench-bar__rps {
        display: none;
    }
    .drivers-grid {
        grid-template-columns: 1fr;
    }
    .security-grid {
        grid-template-columns: 1fr;
    }
    .feature-stat-row {
        flex-direction: column;
        gap: var(--space-lg);
    }
}
