﻿:root {
    /* Dark theme colors (default) */
    --fg: #e0e0e0;
    --fg-strong: #ffffff;
    --muted: #888888;
    --card: rgba(40, 40, 40, .5);
    --stroke: rgba(255, 255, 255, .2);
    --shadow: 0 10px 30px rgba(0, 0, 0, .35);
    --radius: 18px;
    --bg-color: #111111;
    /* Light theme colors */
    --fg-light: #1a1f2c;
    --fg-strong-light: #000000;
    --muted-light: #5a6585;
    --card-light: rgba(255, 255, 255, .8);
    --stroke-light: rgba(0, 0, 0, .15);
    --shadow-light: 0 10px 30px rgba(0, 0, 0, .1);
    --bg-color-light: #f0f4ff;
}

/* Light theme overrides */
.light-theme {
    --fg: var(--fg-light);
    --fg-strong: var(--fg-strong-light);
    --muted: var(--muted-light);
    --card: var(--card-light);
    --stroke: var(--stroke-light);
    --shadow: var(--shadow-light);
    --bg-color: var(--bg-color-light);
}

* {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial;
    color: var(--fg);
    background: var(--bg-color); /* Change from transparent to var(--bg-color) */
    transition: background-color 0.3s ease, color 0.3s ease; /* Add transition */
}

    body > *:not(.bg) {
        position: relative;
        z-index: 1;
    }

.bg {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background: var(--bg-color);
    opacity: 1;
    transition: background 0.3s ease;
}

    .bg canvas {
        pointer-events: none !important;
    }

.container {
    max-width: 1080px;
    margin: 0 auto;
    padding: 24px;
}

.nav {
    position: sticky;
    top: 0;
    z-index: 10;
    backdrop-filter: blur(10px) saturate(160%);
    -webkit-backdrop-filter: blur(10px) saturate(160%);
    background: rgba(17, 17, 17, .5);
    border-bottom: 1px solid var(--stroke);
    transition: background .2s ease, border-color 0.3s ease;
}

.light-theme .nav {
    background: rgba(240, 244, 255, .7);
}

.nav.scrolled {
    background: rgba(17, 17, 17, .75);
}

.light-theme .nav.scrolled {
    background: rgba(240, 244, 255, .9);
}

.nav-inner {
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--fg);
}

    .brand img {
        height: 36px;
        width: auto;
        display: block;
        border-radius: 8px;
    }

    .brand h1 {
        font-size: 16px;
        margin: 0;
        color: var(--fg-strong);
    }

.hero {
    padding: 64px 0 20px;
    text-align: center;
}

.eyebrow {
    display: inline-flex;
    gap: 8px;
    align-items: center;
    padding: 6px 10px;
    border: 1px solid var(--stroke);
    border-radius: 999px;
    background: var(--card);
    font-size: 12px;
    color: var(--muted);
    transition: all 0.3s ease;
}

.hero h2 {
    font-size: 38px;
    line-height: 1.1;
    margin: 18px auto 12px;
    max-width: 820px;
    font-weight: 800;
    color: var(--fg-strong);
}

.hero p {
    font-size: 18px;
    color: var(--fg);
    margin: 0 auto;
    max-width: 760px;
}

.grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    margin: 36px 0;
}

@media(min-width: 760px) {
    .grid {
        grid-template-columns: 1fr 1fr;
    }
}

.card {
    background: var(--card);
    border: 1px solid var(--stroke);
    border-radius: var(--radius);
    padding: 20px;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    gap: 14px;
    backdrop-filter: blur(2px);
    transition: all 0.3s ease;
}

    .card h3 {
        margin: 0;
        font-size: 22px;
        color: var(--fg-strong);
    }

.badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    padding: 6px 10px;
    border-radius: 999px;
    border: 1px solid var(--stroke);
    background: transparent;
    transition: all 0.3s ease;
}

    /* KEPT: Green badge for 'Live' */
    .badge.ok {
        color: #10b981;
        background: rgba(16, 185, 129, .12);
        border-color: rgba(16, 185, 129, .35);
    }

    /* KEPT: Orange badge for 'Soon' / 'Under Revision' */
    .badge.soon {
        color: #f59e0b;
        background: rgba(245, 158, 11, .12);
        border-color: rgba(245, 158, 11, .35);
    }

    /* ADDED: Orange badge for 'Warn' (fixes missing style) */
    .badge.warn {
        color: #f59e0b;
        background: rgba(245, 158, 11, .12);
        border-color: rgba(245, 158, 11, .35);
    }

.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    border-radius: 14px;
    text-decoration: none;
    border: 1px solid var(--stroke);
    box-shadow: none;
    font-weight: 700;
    transition: all .15s ease;
}

    /* UPDATED: Resend-style primary button */
    .btn.primary {
        background: #ffffff;
        color: #111111;
        border-color: transparent;
        box-shadow: 0 4px 10px rgba(0,0,0,.1);
    }

        .btn.primary:hover {
            background: #f0f0f0;
            box-shadow: 0 2px 6px rgba(0,0,0,.1);
        }

    /* UPDATED: Resend-style secondary button */
    .btn.secondary {
        background: transparent;
        color: var(--fg-strong);
        border-color: var(--stroke);
    }

        .btn.secondary:hover {
            background: rgba(255, 255, 255, .1);
            border-color: rgba(255, 255, 255, .3);
        }

.light-theme .btn.secondary:hover {
    background: rgba(0, 0, 0, .05);
    border-color: rgba(0, 0, 0, .2);
}

.cta-row {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.consent {
    margin-top: 8px;
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px dashed rgba(255, 255, 255, .25);
    background: rgba(255, 255, 255, .06);
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: var(--fg);
    transition: all 0.3s ease;
}

.light-theme .consent {
    border: 1px dashed rgba(0, 0, 0, .25);
    background: rgba(0, 0, 0, .03);
}

.consent input[type="checkbox"] {
    width: 16px;
    height: 16px;
}

.consent a {
    color: var(--fg-strong);
    text-decoration: underline;
}

.is-disabled {
    opacity: .6;
    pointer-events: none;
}

    .is-disabled[aria-disabled="true"] {
        cursor: not-allowed;
    }

footer {
    padding: 34px 0;
    color: var(--muted);
    font-size: 18px;
    text-align: center;
    transition: color 0.3s ease;
}

    footer a {
        color: var(--fg);
    }

/* Theme toggle button styling */
.theme-toggle {
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    color: var(--fg);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 15px;
    transition: all 0.3s ease;
    font-size: 16px;
}

    .theme-toggle:hover {
        background: rgba(255,255,255,0.2);
    }

.light-theme .theme-toggle {
    background: rgba(0,0,0,0.1);
    border: 1px solid rgba(0,0,0,0.2);
    color: var(--fg);
}

    .light-theme .theme-toggle:hover {
        background: rgba(0,0,0,0.2);
    }
