:root {
    /* Primary Colors - Daylight Friendly */
    --sky-blue: #58B1E2;
    --royal-blue: #3B6FB6;
    --warm-coral: #F78C8E;

    /* Secondary Colors */
    --lemon-yellow: #FAD63D;
    --leaf-green: #6DC27E;
    --soft-lavender: #C8A2C8;

    /* Neutrals */
    --cloud-white: #F9F9F9;
    --mist-grey: #BFC9D1;
    --slate-grey: #708090;

    /* Legacy compatibility */
    --shadow: 0 12px 24px rgba(88, 177, 226, 0.15);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: "Nunito", "Quicksand", "Avenir Next", "Trebuchet MS", sans-serif;
    color: #2a3442;
    background: linear-gradient(180deg, #e8f4fc 0%, #fef9f3 100%);
    min-height: 100vh;
}

.bg-grid {
    position: fixed;
    inset: 0;
    background-image:
        linear-gradient(transparent 94%, rgba(88, 177, 226, 0.08) 95%),
        linear-gradient(90deg, transparent 94%, rgba(88, 177, 226, 0.08) 95%);
    background-size: 80px 80px;
    opacity: 0.3;
    pointer-events: none;
}

.bg-comet {
    position: fixed;
    width: 500px;
    height: 500px;
    top: -100px;
    right: -150px;
    background: radial-gradient(circle, rgba(250, 214, 61, 0.25) 0%, rgba(247, 140, 142, 0.15) 50%, transparent 70%);
    filter: blur(60px);
    pointer-events: none;
}

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

.site-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 28px 6vw;
    position: sticky;
    top: 0;
    background: rgba(249, 249, 249, 0.85);
    backdrop-filter: blur(10px);
    z-index: 10;
    border-bottom: 2px solid rgba(88, 177, 226, 0.1);
}

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

.brand-mark {
    display: grid;
    gap: 6px;
}

.brand-mark span {
    display: block;
    width: 32px;
    height: 6px;
    border-radius: 999px;
    background: var(--sky-blue);
}

.brand-text {
    line-height: 1.1;
}

.brand-eyebrow {
    font-size: 1.1rem;
    letter-spacing: 0.2rem;
    text-transform: uppercase;
    margin: 0;
}

.brand-sub {
    font-size: 0.8rem;
    margin: 0;
    color: var(--slate-grey);
}

.site-nav {
    display: flex;
    gap: 24px;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.12rem;
}

.site-nav a {
    position: relative;
    padding-bottom: 4px;
}

.site-nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    background: var(--warm-coral);
    transition: width 0.3s ease;
}

.auth-bar {
    position: fixed;
    top: 10px;
    right: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    background: rgba(249, 249, 249, 0.95);
    border: 2px solid var(--sky-blue);
    border-radius: 20px;
    z-index: 20;
    font-size: 0.75rem;
    color: #2a3442;
    backdrop-filter: blur(8px);
}

.auth-bar input {
    width: 140px;
    padding: 6px 8px;
    border-radius: 12px;
    border: 2px solid var(--mist-grey);
    background: white;
    color: #2a3442;
    font-size: 0.75rem;
}

.auth-bar button {
    padding: 6px 10px;
    border-radius: 12px;
    border: 2px solid var(--mist-grey);
    background: white;
    color: #2a3442;
    font-size: 0.75rem;
    cursor: pointer;
}

.auth-bar button.primary {
    background: var(--sky-blue);
    color: white;
    border: none;
}

.auth-status {
    color: var(--slate-grey);
    margin-right: 4px;
}

.site-nav a:hover::after {
    width: 100%;
}

.hero {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    gap: 60px;
    padding: 60px 6vw 40px;
    align-items: center;
}

.hero-copy h1 {
    font-size: clamp(2.8rem, 4vw, 4.8rem);
    margin: 12px 0 20px;
    line-height: 1.05;
}

.hero-copy h1 span {
    display: block;
    color: var(--sky-blue);
}

.tag {
    display: inline-block;
    background: rgba(88, 177, 226, 0.2);
    color: var(--royal-blue);
    padding: 8px 14px;
    border-radius: 999px;
    text-transform: uppercase;
    letter-spacing: 0.12rem;
    font-size: 0.75rem;
}

.lede {
    font-size: 1.1rem;
    color: var(--slate-grey);
    max-width: 520px;
}

.cta-row {
    display: flex;
    gap: 16px;
    margin: 24px 0 18px;
}

.cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border-radius: 24px;
    font-size: 0.95rem;
    letter-spacing: 0.08rem;
    text-transform: uppercase;
    border: 2px solid transparent;
    background: transparent;
    color: white;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    font-weight: 600;
}

.cta.primary {
    background: var(--sky-blue);
    color: white;
    box-shadow: 0 6px 16px rgba(88, 177, 226, 0.3);
}

.cta.ghost {
    border-color: var(--warm-coral);
    background: white;
    color: var(--warm-coral);
}

.cta:hover {
    transform: translateY(-2px);
}

.meta {
    display: flex;
    gap: 18px;
    font-size: 0.8rem;
    color: var(--slate-grey);
    text-transform: uppercase;
    letter-spacing: 0.1rem;
}

.hero-panel {
    background: white;
    border-radius: 28px;
    padding: 28px;
    box-shadow: var(--shadow);
    border: 2px solid rgba(88, 177, 226, 0.2);
}

.panel-grid {
    display: grid;
    gap: 20px;
}

.panel {
    background: var(--cloud-white);
    border-radius: 20px;
    padding: 18px;
    border: 2px solid rgba(88, 177, 226, 0.15);
}

.panel-title {
    text-transform: uppercase;
    letter-spacing: 0.15rem;
    font-size: 0.75rem;
    color: var(--royal-blue);
    font-weight: 700;
}

.panel-body {
    margin-top: 12px;
}

.shot {
    position: relative;
    height: 120px;
    background: linear-gradient(180deg, #e8f4fc 0%, #d0e8f7 100%);
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 14px;
}

.terrain {
    position: absolute;
    bottom: -10px;
    left: -30px;
    right: -30px;
    height: 70px;
    background: linear-gradient(180deg, #6DC27E 0%, #58B1E2 100%);
    clip-path: polygon(0% 60%, 20% 40%, 40% 55%, 60% 30%, 80% 45%, 100% 20%, 100% 100%, 0 100%);
}

.arc {
    position: absolute;
    width: 130px;
    height: 80px;
    border: 3px dashed var(--warm-coral);
    border-bottom: none;
    border-radius: 100% 100% 0 0;
    top: 18px;
    left: 40px;
}

.blast {
    position: absolute;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: radial-gradient(circle, #fff 0%, var(--lemon-yellow) 40%, var(--warm-coral) 70%);
    top: 40px;
    right: 50px;
    box-shadow: 0 0 20px rgba(250, 214, 61, 0.7);
    animation: pulse 2s infinite;
}

.stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.label {
    text-transform: uppercase;
    font-size: 0.65rem;
    letter-spacing: 0.1rem;
    color: var(--mist-grey);
    font-weight: 600;
}

.value {
    font-size: 1rem;
    margin: 4px 0 0;
    color: #2a3442;
    font-weight: 600;
}

.panel.micro {
    display: grid;
    gap: 10px;
}

.mini-stat {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
}

.energy .bar {
    width: 100%;
    height: 10px;
    border-radius: 999px;
    background: rgba(88, 177, 226, 0.15);
    overflow: hidden;
    margin: 6px 0;
}

.energy .bar span {
    display: block;
    width: 72%;
    height: 100%;
    background: var(--leaf-green);
}

.section {
    padding: 70px 6vw;
}

.section-title p {
    text-transform: uppercase;
    letter-spacing: 0.2rem;
    font-size: 0.75rem;
    color: var(--warm-coral);
    margin-bottom: 10px;
    font-weight: 700;
}

.section-title h2 {
    font-size: clamp(2rem, 3.2vw, 3.2rem);
    margin: 0 0 24px;
}

.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}

.step {
    background: white;
    padding: 24px;
    border-radius: 24px;
    border: 2px solid rgba(88, 177, 226, 0.2);
    box-shadow: var(--shadow);
}

.step span {
    font-size: 0.75rem;
    letter-spacing: 0.2rem;
    color: var(--sky-blue);
    font-weight: 700;
}

.split {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    gap: 40px;
}

.bullet-list {
    list-style: none;
    padding: 0;
    margin: 0 0 20px;
    display: grid;
    gap: 12px;
    color: var(--slate-grey);
}

.bullet-list li::before {
    content: "▸";
    color: var(--warm-coral);
    margin-right: 10px;
}

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

.chip-row span {
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(88, 177, 226, 0.2);
    color: var(--royal-blue);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.12rem;
    font-weight: 600;
}

.system-card {
    background: white;
    padding: 28px;
    border-radius: 24px;
    border: 2px solid rgba(88, 177, 226, 0.2);
    box-shadow: var(--shadow);
}

.dna {
    display: grid;
    gap: 12px;
    margin: 20px 0;
}

.dna span {
    font-size: 0.65rem;
    letter-spacing: 0.18rem;
    color: var(--mist-grey);
    font-weight: 600;
}

.dna strong {
    display: block;
    font-size: 1rem;
}

.note {
    color: var(--slate-grey);
    font-size: 0.85rem;
}

.economy .cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}

.card {
    background: white;
    padding: 22px;
    border-radius: 20px;
    border: 2px solid rgba(88, 177, 226, 0.2);
}

.raid {
    margin-top: 30px;
    padding: 24px;
    border-radius: 24px;
    background: rgba(247, 140, 142, 0.15);
    border: 2px solid var(--warm-coral);
    display: grid;
    gap: 16px;
}

.raid-math {
    display: grid;
    gap: 6px;
    font-family: "Courier New", "Nimbus Mono", monospace;
}

.telemetry-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
}

.join {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
    gap: 30px;
    align-items: center;
    background: white;
    border-radius: 30px;
    margin: 0 6vw 80px;
    padding: 50px;
    border: 2px solid var(--sky-blue);
    box-shadow: 0 12px 32px rgba(88, 177, 226, 0.2);
}

.join-card {
    background: var(--cloud-white);
    padding: 24px;
    border-radius: 24px;
    border: 2px solid rgba(88, 177, 226, 0.3);
    display: grid;
    gap: 14px;
}

.join-title {
    text-transform: uppercase;
    letter-spacing: 0.15rem;
    margin: 0;
}

.join-note {
    color: var(--slate-grey);
    margin: 0;
}

.site-footer {
    padding: 40px 6vw 60px;
    color: var(--mist-grey);
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 12px;
}

.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

@keyframes pulse {
    0% {
        transform: scale(0.9);
        opacity: 0.5;
    }
    50% {
        transform: scale(1);
        opacity: 1;
    }
    100% {
        transform: scale(0.9);
        opacity: 0.5;
    }
}

@media (max-width: 980px) {
    .hero {
        grid-template-columns: 1fr;
    }

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

    .join {
        grid-template-columns: 1fr;
        margin: 0 6vw 60px;
    }

    .site-nav {
        display: none;
    }

    .meta {
        flex-direction: column;
        gap: 8px;
    }
}

@media (max-width: 640px) {
    .cta-row {
        flex-direction: column;
        align-items: stretch;
    }

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

    .hero {
        padding-top: 30px;
    }
}
