:root {
    --bg: #f5f7fb;
    --surface: #ffffff;
    --surface-alt: #eef4ff;
    --surface-accent: #f8fafc;
    --text: #0f172a;
    --muted: #475569;
    --line: #dbe4f0;
    --brand: #2563eb;
    --brand-strong: #1d4ed8;
    --brand-soft: rgba(37, 99, 235, 0.12);
    --teal: #0f766e;
    --orange: #ea580c;
    --success: #15803d;
    --radius: 22px;
    --shadow: 0 24px 60px rgba(15, 23, 42, 0.08);
    --shadow-soft: 0 10px 24px rgba(15, 23, 42, 0.05);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", system-ui, sans-serif;
    color: var(--text);
    background:
        radial-gradient(circle at top left, rgba(37, 99, 235, 0.08), transparent 28%),
        radial-gradient(circle at top right, rgba(20, 184, 166, 0.08), transparent 24%),
        linear-gradient(180deg, #f8fbff 0%, #f5f7fb 100%);
}

a {
    color: var(--brand);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    width: min(1120px, calc(100% - 32px));
    margin: 0 auto;
}

.skip-link {
    position: absolute;
    left: -9999px;
    top: 12px;
    background: #fff;
    padding: 12px 16px;
    border-radius: 12px;
    box-shadow: var(--shadow-soft);
    z-index: 100;
}

.skip-link:focus {
    left: 12px;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    backdrop-filter: blur(18px);
    background: rgba(255, 255, 255, 0.82);
    border-bottom: 1px solid rgba(219, 228, 240, 0.8);
}

.nav-shell {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 16px 0;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-weight: 800;
    font-size: 1.1rem;
    color: var(--text);
}

.brand-mark {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    color: #fff;
    font-size: 1rem;
    background: linear-gradient(135deg, #2563eb 0%, #7c3aed 100%);
}

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

.nav-links a {
    color: var(--muted);
    font-weight: 600;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
    color: var(--brand);
    text-decoration: none;
}

.hero {
    padding: 72px 0 40px;
}

.hero-panel {
    background:
        linear-gradient(135deg, rgba(37, 99, 235, 0.94) 0%, rgba(76, 29, 149, 0.92) 58%, rgba(14, 165, 233, 0.9) 100%);
    border-radius: 32px;
    color: #fff;
    padding: 40px;
    box-shadow: var(--shadow);
}

.hero-grid,
.split,
.card-grid,
.resource-grid,
.stat-grid,
.feature-nav {
    display: grid;
    gap: 20px;
}

.hero-grid {
    grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.9fr);
    align-items: start;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.18);
    font-size: 0.88rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.hero h1 {
    margin: 18px 0 14px;
    font-size: clamp(2rem, 4vw, 3.5rem);
    line-height: 1.05;
}

.hero p {
    margin: 0;
    color: rgba(255, 255, 255, 0.88);
    font-size: 1.06rem;
    line-height: 1.75;
}

.actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    margin-top: 24px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 12px 18px;
    border-radius: 14px;
    border: 1px solid transparent;
    background: #fff;
    color: var(--brand);
    font-weight: 800;
    text-decoration: none;
    box-shadow: var(--shadow-soft);
}

.btn:hover {
    text-decoration: none;
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.22);
    box-shadow: none;
}

.hero-card,
.card,
.stat,
.callout,
.toc {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-soft);
}

.hero-card {
    color: var(--text);
    padding: 22px;
}

.hero-card h2,
.hero-card h3,
.card h2,
.card h3,
.callout h2,
.callout h3 {
    margin: 0 0 12px;
}

.hero-card p,
.hero-card li,
.card p,
.card li,
.callout p,
.callout li {
    color: var(--muted);
    line-height: 1.75;
}

.hero-card ul,
.card ul,
.callout ul,
.toc ul {
    margin: 0;
    padding-left: 18px;
}

.hero-card li + li,
.card li + li,
.callout li + li,
.toc li + li {
    margin-top: 8px;
}

.breadcrumbs {
    margin: 14px 0 0;
    color: var(--muted);
    font-size: 0.95rem;
}

.breadcrumbs ol {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.breadcrumbs li + li::before {
    content: "/";
    margin-right: 10px;
    color: #94a3b8;
}

.section {
    padding: 18px 0 10px;
}

.section h2 {
    font-size: clamp(1.6rem, 2.6vw, 2.35rem);
    line-height: 1.15;
    margin: 0 0 14px;
}

.section > p.lead {
    max-width: 760px;
    margin: 0 0 24px;
    color: var(--muted);
    font-size: 1.04rem;
    line-height: 1.8;
}

.split {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.card-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.resource-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.feature-nav {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.card,
.stat,
.callout,
.toc {
    padding: 24px;
}

.card p:last-child,
.callout p:last-child,
.stat p:last-child {
    margin-bottom: 0;
}

.card .kicker,
.callout .kicker {
    display: inline-block;
    margin-bottom: 10px;
    color: var(--brand-strong);
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.stat-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.stat strong {
    display: block;
    margin-bottom: 6px;
    color: var(--brand-strong);
    font-size: 1.65rem;
    line-height: 1.1;
}

.stat span {
    color: var(--muted);
    font-weight: 600;
}

.comparison {
    overflow-x: auto;
}

.comparison table {
    width: 100%;
    border-collapse: collapse;
    min-width: 660px;
}

.comparison th,
.comparison td {
    padding: 14px 16px;
    border-bottom: 1px solid var(--line);
    text-align: left;
    vertical-align: top;
    line-height: 1.6;
}

.comparison th {
    font-size: 0.95rem;
    color: var(--text);
    background: var(--surface-alt);
}

.comparison tr:last-child td {
    border-bottom: 0;
}

.faq {
    display: grid;
    gap: 16px;
}

.faq details {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 18px 20px;
    box-shadow: var(--shadow-soft);
}

.faq summary {
    cursor: pointer;
    font-weight: 800;
    list-style: none;
}

.faq summary::-webkit-details-marker {
    display: none;
}

.faq p {
    margin: 12px 0 0;
    color: var(--muted);
    line-height: 1.75;
}

.pill-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 12px;
    border-radius: 999px;
    background: var(--brand-soft);
    color: var(--brand-strong);
    font-weight: 700;
    font-size: 0.92rem;
}

.pill.teal {
    background: rgba(15, 118, 110, 0.1);
    color: var(--teal);
}

.pill.orange {
    background: rgba(234, 88, 12, 0.1);
    color: var(--orange);
}

.pill.green {
    background: rgba(21, 128, 61, 0.1);
    color: var(--success);
}

.note {
    padding: 16px 18px;
    border-radius: 18px;
    background: var(--surface-accent);
    border: 1px solid var(--line);
    color: var(--muted);
    line-height: 1.75;
}

.cta-band {
    margin: 18px 0 36px;
    padding: 28px;
    border-radius: 28px;
    background: linear-gradient(135deg, #0f172a 0%, #1d4ed8 55%, #0f766e 100%);
    color: #fff;
    box-shadow: var(--shadow);
}

.cta-band p {
    color: rgba(255, 255, 255, 0.84);
}

.cta-band .btn-secondary {
    background: rgba(255, 255, 255, 0.08);
}

.toc {
    position: sticky;
    top: 96px;
}

.toc h2 {
    font-size: 1.15rem;
    margin: 0 0 12px;
}

.toc a {
    color: var(--muted);
    font-weight: 600;
}

.lazy-section {
    content-visibility: auto;
    contain-intrinsic-size: 1px 900px;
}

.site-footer {
    margin-top: 48px;
    padding: 36px 0 56px;
    border-top: 1px solid var(--line);
    color: var(--muted);
}

.site-footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.site-footer nav {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

@media (max-width: 980px) {
    .hero-grid,
    .split,
    .card-grid,
    .feature-nav,
    .resource-grid,
    .stat-grid {
        grid-template-columns: 1fr;
    }

    .toc {
        position: static;
    }
}

@media (max-width: 720px) {
    .nav-shell {
        align-items: flex-start;
        flex-direction: column;
    }

    .hero-panel {
        padding: 28px 22px;
        border-radius: 24px;
    }

    .actions {
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }
}
