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

:root {
    --white: #FFFFFF;
    --ice-white: #FAFBFC;
    --light-gray: #E4E8EC;
    --slate: #4A5568;
    --muted: #7A8599;
    --midnight: #1A1F2B;
    --primary: #1A56DB;
    --brand-blue: #1440A0;
    --danger: #DC2626;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--ice-white);
    color: var(--slate);
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: 15px;
    line-height: 1.75;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Header */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background-color: rgba(250, 251, 252, 0.92);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--light-gray);
}

.header-inner {
    max-width: 1080px;
    margin: 0 auto;
    padding: 16px 64px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: 'Space Mono', monospace;
    font-size: 14px;
    color: var(--midnight);
    letter-spacing: 0.02em;
}

.header-link {
    font-family: 'Inter', sans-serif;
    font-weight: 300;
    font-size: 13px;
    color: var(--muted);
    text-decoration: none;
    transition: color 0.2s ease;
}

.header-link:hover {
    color: var(--primary);
}

/* Content Container */
.content-container {
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 64px;
    padding-top: 80px;
}

/* Hero Section */
.hero-section {
    padding: 80px 0 60px;
    position: relative;
}

.hero-section h2 {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 600;
    font-size: 32px;
    letter-spacing: -0.02em;
    color: var(--midnight);
    margin-bottom: 16px;
}

/* Content Sections */
.content-section {
    padding: 60px 0;
    position: relative;
    border-top: 1px solid var(--light-gray);
}

/* Accent Bar */
.accent-bar {
    position: absolute;
    left: -24px;
    top: 60px;
    width: 3px;
    height: 0;
    background-color: var(--primary);
    border-radius: 1.5px;
    transition: height 0.3s ease;
}

.accent-bar.active {
    height: 40px;
}

.accent-bar.expanded {
    height: 60px;
}

/* Section Body - 2:1 Layout */
.section-body {
    display: flex;
    gap: 48px;
}

.main-column {
    flex: 2;
    min-width: 0;
}

.annotation-column {
    flex: 1;
    min-width: 0;
    padding-top: 4px;
}

/* Typography */
h2 {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 600;
    font-size: 24px;
    letter-spacing: -0.02em;
    color: var(--midnight);
    margin-bottom: 12px;
}

h3 {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 600;
    font-size: 20px;
    letter-spacing: -0.02em;
    color: var(--midnight);
    margin-bottom: 8px;
}

p {
    margin-bottom: 16px;
}

/* Annotation Column Text */
.annotation-text {
    font-family: 'Inter', sans-serif;
    font-weight: 300;
    font-size: 13px;
    line-height: 1.6;
    color: var(--muted);
}

.mono-text {
    font-family: 'Space Mono', monospace;
    font-size: 12px;
    color: var(--primary);
}

/* Gauges */
.gauge-item {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
}

.gauge {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
}

.gauge-fill {
    transition: stroke-dashoffset 0.8s ease;
}

.gauge-label {
    font-family: 'Space Mono', monospace;
    font-size: 12px;
    color: var(--midnight);
}

/* Sparkline */
.sparkline-container {
    margin-top: 24px;
    height: 40px;
    overflow: hidden;
}

.sparkline {
    width: 100%;
    height: 40px;
}

.sparkline-line {
    stroke-dasharray: 300;
    stroke-dashoffset: 300;
    animation: drawSparkline 1.5s ease forwards 0.5s;
}

@keyframes drawSparkline {
    to {
        stroke-dashoffset: 0;
    }
}

/* Dot-grid Background */
.dotgrid-bg {
    background-image: radial-gradient(var(--light-gray) 1px, transparent 1px);
    background-size: 20px 20px;
    padding-left: 16px;
    padding-right: 16px;
    margin-left: -16px;
    margin-right: -16px;
    border-radius: 4px;
}

/* Metrics */
.metric-row {
    display: flex;
    gap: 40px;
    margin-top: 24px;
}

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

.metric-value {
    font-family: 'Space Mono', monospace;
    font-size: 28px;
    font-weight: 400;
    color: var(--midnight);
    letter-spacing: -0.02em;
}

.metric-label {
    font-family: 'Inter', sans-serif;
    font-weight: 300;
    font-size: 12px;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: 4px;
}

/* Pipeline */
.pipeline {
    display: flex;
    align-items: flex-start;
    gap: 0;
    margin-top: 28px;
}

.pipeline-stage {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.stage-number {
    font-family: 'Space Mono', monospace;
    font-size: 11px;
    color: var(--primary);
    margin-bottom: 4px;
}

.stage-name {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 600;
    font-size: 16px;
    color: var(--midnight);
    margin-bottom: 4px;
}

.stage-desc {
    font-family: 'Inter', sans-serif;
    font-weight: 300;
    font-size: 13px;
    color: var(--muted);
    line-height: 1.5;
}

.pipeline-connector {
    width: 40px;
    height: 1px;
    background-color: var(--light-gray);
    margin-top: 28px;
    flex-shrink: 0;
    position: relative;
}

.pipeline-connector::after {
    content: '';
    position: absolute;
    right: 0;
    top: -3px;
    width: 6px;
    height: 6px;
    border-top: 1px solid var(--light-gray);
    border-right: 1px solid var(--light-gray);
    transform: rotate(45deg);
}

/* Trust Indicators */
.trust-indicators {
    display: flex;
    gap: 32px;
    margin-top: 24px;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.trust-icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

.trust-item span {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: 14px;
    color: var(--midnight);
}

/* Code Block */
.code-block {
    background-color: var(--midnight);
    border-radius: 6px;
    padding: 14px 18px;
    margin-bottom: 12px;
    overflow-x: auto;
}

.code-block code {
    font-family: 'Space Mono', monospace;
    font-size: 13px;
    color: var(--light-gray);
    line-height: 1.6;
}

.code-method {
    color: #58D68D;
}

.code-param {
    color: #85C1E9;
}

/* Footer */
.site-footer {
    border-top: 1px solid var(--light-gray);
    margin-top: 40px;
}

.footer-inner {
    max-width: 1080px;
    margin: 0 auto;
    padding: 24px 64px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-copyright {
    font-family: 'Space Mono', monospace;
    font-size: 12px;
    color: var(--midnight);
}

.footer-separator {
    color: var(--light-gray);
    font-size: 12px;
}

.footer-text {
    font-family: 'Inter', sans-serif;
    font-weight: 300;
    font-size: 12px;
    color: var(--muted);
}

/* Responsive */
@media (max-width: 768px) {
    .header-inner,
    .content-container,
    .footer-inner {
        padding-left: 24px;
        padding-right: 24px;
    }

    .section-body {
        flex-direction: column;
        gap: 24px;
    }

    .metric-row {
        gap: 24px;
    }

    .pipeline {
        flex-direction: column;
        gap: 16px;
    }

    .pipeline-connector {
        width: 1px;
        height: 24px;
        margin-top: 0;
        margin-left: 12px;
    }

    .pipeline-connector::after {
        display: none;
    }

    .trust-indicators {
        flex-direction: column;
        gap: 16px;
    }

    .accent-bar {
        left: -12px;
    }
}
