:root {
    --bg: #f7f1e8;
    --bg-soft: #fff8f0;
    --card: #ffffff;
    --ink: #111b1a;
    --muted: #586463;
    --accent: #1b8a7d;
    --accent-strong: #0f6b63;
    --accent-warm: #f4a035;
    --stroke: #e6ded0;
    --shadow: 0 18px 50px rgba(19, 35, 33, 0.12);
    --radius: 18px;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: "Space Grotesk", "Trebuchet MS", sans-serif;
    color: var(--ink);
    background: var(--bg);
    min-height: 100vh;
    position: relative;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    background-image:
        radial-gradient(circle at 12% 20%, rgba(27, 138, 125, 0.12), transparent 45%),
        radial-gradient(circle at 78% 0%, rgba(244, 160, 53, 0.18), transparent 40%),
        radial-gradient(circle at 90% 78%, rgba(27, 138, 125, 0.18), transparent 40%),
        repeating-linear-gradient(120deg, rgba(0, 0, 0, 0.04) 0 1px, transparent 1px 16px);
    pointer-events: none;
    z-index: -1;
}

.backdrop {
    position: fixed;
    inset: 0;
    background: linear-gradient(120deg, rgba(255, 255, 255, 0.7), transparent 55%);
    pointer-events: none;
    z-index: -2;
}

img {
    max-width: 100%;
}

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

.shell {
    width: min(1200px, 100% - 32px);
    margin: 0 auto;
}

.topbar {
    position: sticky;
    top: 0;
    z-index: 10;
    background: rgba(255, 248, 240, 0.9);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid rgba(17, 27, 26, 0.08);
}

.topbar-inner {
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 16px 0;
}

.brand {
    display: flex;
    align-items: center;
    gap: 14px;
}

.brand-logo {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    box-shadow: 0 12px 24px rgba(27, 138, 125, 0.18);
    background: var(--card);
    padding: 6px;
}

.brand-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.brand-name {
    font-weight: 700;
    font-size: 1.1rem;
    letter-spacing: 0.02em;
}

.brand-sub {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--muted);
}

.nav {
    margin-left: auto;
}

.nav-list {
    list-style: none;
    display: flex;
    gap: 8px;
    margin: 0;
    padding: 0;
}

.nav-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    border-radius: 999px;
    font-size: 0.95rem;
    color: var(--muted);
    transition: all 0.2s ease;
}

.nav-link i {
    font-size: 0.95rem;
}

.pure-menu-selected .nav-link,
.nav-link:hover {
    color: var(--ink);
    background: rgba(27, 138, 125, 0.12);
}

.topbar-meta {
    display: flex;
    gap: 8px;
    align-items: center;
}

.pill {
    font-size: 0.78rem;
    padding: 6px 10px;
    border-radius: 999px;
    border: 1px solid rgba(27, 138, 125, 0.2);
    background: var(--card);
    color: var(--accent-strong);
}

.page {
    padding: 32px 0 56px;
    min-height: 70vh;
}

.hero {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 28px;
    align-items: center;
    margin-bottom: 32px;
}

.eyebrow {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--accent-strong);
    margin: 0 0 8px;
}

.hero-copy h1 {
    font-size: clamp(2rem, 3vw, 3rem);
    margin: 0 0 12px;
    line-height: 1.1;
}

.hero-copy .lead {
    font-size: 1.05rem;
    color: var(--muted);
    max-width: 480px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 20px 0 18px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 18px;
    border-radius: 12px;
    background: var(--accent);
    color: white;
    font-weight: 600;
    box-shadow: 0 16px 30px rgba(27, 138, 125, 0.2);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 35px rgba(27, 138, 125, 0.28);
}

.btn.ghost {
    background: transparent;
    color: var(--accent-strong);
    border: 1px solid rgba(27, 138, 125, 0.35);
    box-shadow: none;
}

.chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.chip {
    display: inline-flex;
    align-items: center;
    padding: 6px 10px;
    border-radius: 12px;
    background: rgba(17, 27, 26, 0.06);
    color: var(--muted);
    font-size: 0.85rem;
}

.panel {
    background: var(--card);
    border-radius: var(--radius);
    border: 1px solid rgba(17, 27, 26, 0.08);
    padding: 20px;
    box-shadow: var(--shadow);
}

.panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
}

.tag {
    font-size: 0.75rem;
    padding: 4px 8px;
    border-radius: 999px;
    background: rgba(244, 160, 53, 0.2);
    color: #9a5b00;
}

.panel-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 24px;
}

.stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 12px;
}

.stat-card {
    background: rgba(17, 27, 26, 0.04);
    border-radius: 14px;
    padding: 14px;
}

.stat-card-name {
    font-weight: 600;
    margin-bottom: 8px;
}

.stat-card-row {
    font-size: 0.88rem;
    color: var(--muted);
    display: flex;
    align-items: center;
    gap: 8px;
}

.stat-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.stat-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(17, 27, 26, 0.08);
}

.stat-row:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.stat-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 10px rgba(27, 138, 125, 0.6);
}

.stat-metrics {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--muted);
    font-size: 0.88rem;
}

.metric {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.code-block {
    font-family: "IBM Plex Mono", "Courier New", monospace;
    font-size: 0.85rem;
    background: #0f1d1c;
    color: #f4f4f4;
    padding: 12px 14px;
    border-radius: 12px;
    margin: 10px 0;
    overflow-x: auto;
}

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

.step-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
    margin-top: 16px;
}

.step-card {
    border-radius: 14px;
    padding: 16px;
    background: rgba(27, 138, 125, 0.08);
}

.step-number {
    font-weight: 700;
    font-size: 1.4rem;
    color: var(--accent-strong);
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 12px;
    font-size: 0.92rem;
}

.data-table th,
.data-table td {
    text-align: left;
    padding: 10px 12px;
    border-bottom: 1px solid rgba(17, 27, 26, 0.08);
}

.data-table th {
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.12em;
    color: var(--muted);
}

.data-table tr:hover {
    background: rgba(27, 138, 125, 0.06);
}

.chart-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 18px;
}

.chart-card {
    border-radius: 14px;
    border: 1px solid rgba(17, 27, 26, 0.08);
    padding: 12px;
    background: var(--bg-soft);
}

.chart-title {
    font-weight: 600;
    margin-bottom: 8px;
}

.chart-card svg {
    display: block;
    height: 260px;
}

.footer {
    padding: 28px 0 40px;
    color: var(--muted);
    font-size: 0.9rem;
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    gap: 12px;
}

.reveal {
    animation: rise 0.6s ease both;
    animation-delay: var(--delay, 0s);
}

@keyframes rise {
    from {
        opacity: 0;
        transform: translateY(18px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 980px) {
    .topbar-inner {
        flex-wrap: wrap;
        justify-content: center;
    }

    .nav {
        order: 3;
        width: 100%;
    }

    .nav-list {
        flex-wrap: wrap;
        justify-content: center;
    }

    .topbar-meta {
        order: 2;
        width: 100%;
        justify-content: center;
    }

    .footer-inner {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 640px) {
    .topbar-inner {
        gap: 12px;
    }

    .brand {
        flex-direction: column;
        text-align: center;
    }

    .hero-actions {
        flex-direction: column;
    }
}
