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

:root {
    --color-bg: #fafafa;
    --color-surface: #ffffff;
    --color-text: #1a1a1a;
    --color-muted: #6b7280;
    --color-accent: #2563eb;
    --color-accent-hover: #1d4ed8;
    --color-highlight: #eff6ff;
    --color-highlight-border: #bfdbfe;
    --color-border: #e5e7eb;
    --max-width: 720px;
}

html {
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
}

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

main {
    flex: 1;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1.5rem;
    width: 100%;
}

/* Hero */
.hero {
    text-align: center;
    padding: 6rem 0 4rem;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    margin-bottom: 1rem;
}

.tagline {
    font-size: 1.25rem;
    color: var(--color-muted);
    margin-bottom: 1rem;
}

.tagline strong {
    color: var(--color-text);
}

.subtitle {
    font-size: 1.05rem;
    color: var(--color-muted);
    max-width: 520px;
    margin: 0 auto 2rem;
}

.hero-buttons {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    display: inline-block;
    padding: 0.75rem 2rem;
    background: var(--color-accent);
    color: #fff;
    text-decoration: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 500;
    transition: background 0.15s;
}

.btn:hover {
    background: var(--color-accent-hover);
}

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

.btn-outline:hover {
    background: var(--color-highlight);
    color: var(--color-accent-hover);
}

/* Key Findings */
.findings {
    padding: 3rem 0;
    border-top: 1px solid var(--color-border);
}

.findings h2 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.finding-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
}

.finding-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    padding: 1.5rem;
}

.finding-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-accent);
    line-height: 1.2;
}

.finding-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-muted);
    margin-bottom: 0.5rem;
}

.finding-card p {
    font-size: 0.9rem;
    color: var(--color-muted);
    line-height: 1.5;
}

/* Leaderboard */
.leaderboard {
    padding: 3rem 0;
    border-top: 1px solid var(--color-border);
}

.leaderboard h2 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.leaderboard-note {
    color: var(--color-muted);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

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

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
}

thead {
    border-bottom: 2px solid var(--color-border);
}

th {
    text-align: left;
    padding: 0.75rem 1rem;
    font-weight: 600;
    color: var(--color-muted);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

td {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--color-border);
}

tr.highlight {
    background: var(--color-highlight);
    border-left: 3px solid var(--color-accent);
}

tr.highlight td {
    font-weight: 600;
    border-bottom-color: var(--color-highlight-border);
}

tr.oracle-row td {
    color: var(--color-muted);
    font-style: italic;
    border-bottom: none;
}

/* How It Works */
.about {
    padding: 3rem 0;
    border-top: 1px solid var(--color-border);
}

.about h2 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.architecture {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    margin-bottom: 2rem;
}

.layer {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    border-radius: 6px;
    width: 100%;
    max-width: 480px;
}

.layer strong {
    white-space: nowrap;
}

.layer span {
    font-size: 0.9rem;
    color: var(--color-muted);
}

.layer-2 {
    background: var(--color-highlight);
    border: 1px solid var(--color-highlight-border);
}

.layer-1 {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
}

.layer-arrow {
    font-size: 1.25rem;
    color: var(--color-accent);
    line-height: 1;
}

.about-details p {
    color: var(--color-muted);
    max-width: 600px;
    margin-bottom: 1rem;
}

.about-details p strong {
    color: var(--color-text);
}

/* Saturation Finding */
.saturation {
    padding: 3rem 0;
    border-top: 1px solid var(--color-border);
}

.saturation h2 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.saturation p {
    color: var(--color-muted);
    max-width: 600px;
    margin-bottom: 1rem;
}

.saturation p strong {
    color: var(--color-text);
}

/* Future Work */
.future {
    padding: 3rem 0;
    border-top: 1px solid var(--color-border);
}

.future h2 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.future > p {
    color: var(--color-muted);
    max-width: 600px;
    margin-bottom: 1.5rem;
}

.future-items {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.future-item {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    padding: 1.25rem 1.5rem;
}

.future-item h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.future-item p {
    font-size: 0.9rem;
    color: var(--color-muted);
    line-height: 1.5;
}

/* Footer */
footer {
    text-align: center;
    padding: 2rem 1.5rem;
    border-top: 1px solid var(--color-border);
    color: var(--color-muted);
    font-size: 0.85rem;
}

footer a {
    color: var(--color-muted);
    text-decoration: underline;
}

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

/* Responsive */
@media (max-width: 600px) {
    .hero {
        padding: 4rem 0 3rem;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .tagline {
        font-size: 1.1rem;
    }

    .subtitle {
        font-size: 0.95rem;
    }

    .finding-grid {
        grid-template-columns: 1fr;
    }

    th, td {
        padding: 0.6rem 0.75rem;
    }
}
