/* ====== Base ====== */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
}

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", sans-serif;
    color: #e5e7eb;
    background:
        radial-gradient(circle at top left, #3b82f6 0, transparent 55%),
        radial-gradient(circle at bottom right, #a855f7 0, transparent 55%),
        radial-gradient(circle at top right, #0f172a 0, #020617 60%);
    min-height: 100vh;
}

.page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ====== Layout ====== */

.main {
    width: 100%;
    max-width: 1120px;
    margin: 20px auto 32px;
    padding: 0 16px 32px;
}

/* ====== Header & Navigation ====== */

.site-header {
    width: 100%;
    max-width: 1120px;
    margin: 16px auto 0;
    padding: 16px 16px 12px;
    display: flex;
    align-items: center;
    gap: 16px;
}

.brand {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 6px 0;
}

.brand-title {
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -0.01em;
    color: #f9fafb;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.brand-tagline {
    font-size: 13px;
    line-height: 1.25;
    color: #cbd5f5;
    opacity: 0.75;
}


/* Navigation */

.nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
}

.nav-link {
    padding: 6px 12px;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.5);
    font-size: 13px;
    color: #e5e7eb;
    text-decoration: none;
    background: radial-gradient(circle at top, rgba(148, 163, 184, 0.22), rgba(15, 23, 42, 0.8));
    box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.5);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: background 0.15s ease, transform 0.1s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.nav-link:hover {
    background: radial-gradient(circle at top, rgba(248, 250, 252, 0.12), rgba(15, 23, 42, 0.9));
    border-color: rgba(248, 250, 252, 0.5);
    transform: translateY(-1px);
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.6);
}

.nav-link.active {
    background: linear-gradient(135deg, #6366f1, #a855f7);
    border-color: transparent;
    color: #f9fafb;
    box-shadow: 0 12px 30px rgba(79, 70, 229, 0.7);
}

/* Mobile toggle */

.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    width: 34px;
    height: 34px;
    padding: 0;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.6);
    background: rgba(15, 23, 42, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    cursor: pointer;
}

.nav-toggle span {
    display: block;
    height: 2px;
    width: 18px;
    margin: 0 auto;
    background: #e5e7eb;
    border-radius: 999px;
    transition: transform 0.15s ease, opacity 0.15s ease;
}

.nav-toggle.open span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}

.nav-toggle.open span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.open span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
}

/* ====== Cards & Sections ====== */

.card {
    background: radial-gradient(circle at top left, rgba(148, 163, 184, 0.16), rgba(15, 23, 42, 0.95));
    border-radius: 24px;
    border: 1px solid rgba(148, 163, 184, 0.35);
    box-shadow:
        0 18px 45px rgba(15, 23, 42, 0.9),
        inset 0 0 0 0.5px rgba(15, 23, 42, 0.7);
    padding: 24px 24px 22px;
    margin-top: 18px;
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.hero {
    margin-top: 8px;
}

.hero-header {
    margin-bottom: 18px;
}

.hero-title {
    margin: 0 0 12px;
    font-weight: 700;
    line-height: 1.15;
    color: #f9fafb;
    font-size: clamp(32px, 4vw + 12px, 48px);
    letter-spacing: -0.02em;
}

.hero-title .hero-highlight {
    background: linear-gradient(135deg, #a78bfa, #c084fc, #f472b6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    margin: 0 0 24px;
    color: #d1d5db;
    font-size: clamp(16px, 1.2vw + 10px, 20px);
    max-width: 720px;
    line-height: 1.45;
}


.hero-text {
    margin: 0 0 18px;
    color: #d1d5db;
    font-size: 15px;
    max-width: 720px;
}

/* Hero grid */

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    gap: 16px;
    margin-top: 8px;
}

.hero-pill {
    border-radius: 18px;
    border: 1px solid rgba(148, 163, 184, 0.35);
    background: radial-gradient(circle at top left, rgba(248, 250, 252, 0.06), rgba(15, 23, 42, 0.96));
    padding: 14px 16px 12px;
}

.pill-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #9ca3af;
    margin-bottom: 4px;
}

.pill-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 4px;
    color: #e5e7eb;
}

.pill-text {
    margin: 0;
    font-size: 14px;
    color: #cbd5f5;
}

.pill-list {
    margin: 6px 0 0;
    padding-left: 18px;
    font-size: 14px;
    color: #cbd5f5;
}

/* Generic typography */

.section-title {
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 8px;
    color: #f9fafb;
}

.section-text {
    font-size: 14px;
    color: #cbd5f5;
    margin: 0 0 12px;
}

.section-note {
    margin: 10px 0 0;
    font-size: 13px;
    color: #9ca3af;
}

.section-note.small {
    font-size: 12px;
}

/* Lists & links */

.clean-list {
    list-style: none;
    padding-left: 0;
    margin: 6px 0 0;
    font-size: 14px;
}

.clean-list li {
    margin-bottom: 4px;
    color: #e5e7eb;
}

.clean-list strong {
    color: #f9fafb;
}

.clean-list span {
    color: #cbd5f5;
}

/* Buttons & pill links */

.card-links {
    margin-top: 12px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.btn-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 14px;
    border-radius: 999px;
    border: 1px solid rgba(129, 140, 248, 0.8);
    font-size: 13px;
    text-decoration: none;
    color: #e5e7eb;
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.95), rgba(147, 51, 234, 0.95));
    box-shadow: 0 12px 30px rgba(79, 70, 229, 0.8);
    transition: transform 0.1s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.btn-link:hover {
    transform: translateY(-1px);
    box-shadow: 0 18px 40px rgba(79, 70, 229, 0.95);
}

.btn-link.subtle {
    background: transparent;
    border-color: rgba(148, 163, 184, 0.7);
    box-shadow: none;
}

.btn-link.subtle:hover {
    background: rgba(15, 23, 42, 0.9);
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.9);
}

/* External platform pills */

.pill-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.pill-link {
    display: flex;
    flex-direction: column;
    min-width: 150px;
    padding: 8px 12px;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.55);
    text-decoration: none;
    background: radial-gradient(circle at top, rgba(148, 163, 184, 0.25), rgba(15, 23, 42, 0.95));
    color: #e5e7eb;
    font-size: 12px;
    transition: background 0.15s ease, transform 0.1s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.pill-link:hover {
    border-color: rgba(248, 250, 252, 0.6);
    background: radial-gradient(circle at top, rgba(248, 250, 252, 0.16), rgba(15, 23, 42, 0.98));
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.9);
    transform: translateY(-1px);
}

.pill-main {
    font-weight: 500;
    margin-bottom: 2px;
}

.pill-sub {
    color: #cbd5f5;
}

/* Grids */

.grid.two-col {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 16px;
    margin-top: 18px;
}

/* ====== Footer ====== */

.site-footer {
    width: 100%;
    max-width: 1120px;
    margin: auto;
    padding: 8px 16px 20px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    color: #9ca3af;
}

.footer-links {
    display: flex;
    align-items: center;
    gap: 6px;
}

.footer-links a {
    color: #cbd5f5;
    text-decoration: none;
}

.footer-links a:hover {
    text-decoration: underline;
}

/* ====== Responsive ====== */

@media (max-width: 900px) {
    .site-header {
        align-items: flex-start;
        padding-bottom: 4px;
    }

    .nav-toggle {
        display: flex;
    }

    .nav {
        position: absolute;
        top: 70px;
        right: 12px;
        left: 12px;
        flex-wrap: wrap;
        justify-content: flex-start;
        padding: 10px;
        border-radius: 18px;
        border: 1px solid rgba(148, 163, 184, 0.35);
        background: rgba(15, 23, 42, 0.98);
        box-shadow: 0 18px 40px rgba(15, 23, 42, 0.95);
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        transform: translateY(-8px);
        pointer-events: none;
        transition: max-height 0.2s ease, opacity 0.2s ease, transform 0.2s ease;
        z-index: 20;
    }

    .nav.open {
        max-height: 200px;
        opacity: 1;
        transform: translateY(0);
        pointer-events: auto;
    }

    .nav-link {
        flex: 0 0 auto;
    }

    .hero-grid,
    .grid.two-col {
        grid-template-columns: minmax(0, 1fr);
    }

    .card {
        padding: 18px 16px 16px;
        border-radius: 20px;
    }

    .hero-title {
        font-size: 26px;
    }

    .site-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }
}

@media (max-width: 600px) {
    .brand {
        max-width: 70%;
    }

    .site-tagline {
        font-size: 12px;
    }

    .hero-title {
        font-size: 24px;
    }

    .hero-text,
    .section-text,
    .clean-list {
        font-size: 13px;
    }

    .pill-row {
        flex-direction: column;
    }
}
/* ====== Inner pages / page hero ====== */

.page-hero {
    margin-top: 8px;
}

.page-hero-inner {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: flex-start;
    justify-content: space-between;
}

.page-kicker {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: #9ca3af;
    margin-bottom: 6px;
}

.page-hero-heading {
    margin: 0 0 6px;
    font-size: clamp(24px, 2.4vw + 10px, 30px);
    font-weight: 600;
    color: #f9fafb;
}

.page-hero-text {
    margin: 0;
    font-size: 14px;
    color: #cbd5f5;
    max-width: 640px;
}

.page-hero-note {
    max-width: 320px;
    font-size: 13px;
    color: #9ca3af;
    line-height: 1.5;
}

/* Responsive tweak for hero inner */
@media (max-width: 900px) {
    .page-hero-inner {
        flex-direction: column;
        align-items: flex-start;
    }

    .page-hero-note {
        max-width: none;
    }
}
