:root {
    --bg: #07060b;
    --panel: rgba(255, 255, 255, 0.055);
    --panel-strong: rgba(255, 255, 255, 0.09);
    --line: rgba(255, 255, 255, 0.11);
    --text: #ffffff;
    --muted: #aaa4b9;
    --purple: #9d7ad2;
    --purple-dark: #482071;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    min-height: 100vh;
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--text);
    background:
        radial-gradient(circle at 50% -10%, rgba(150,112,210,.16), transparent 38%),
        radial-gradient(circle at 15% 75%, rgba(94,48,151,.10), transparent 32%),
        var(--bg);
    overflow-x: hidden;
}

.noise, .grid-bg {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: -1;
}
.noise {
    opacity: .08;
    background-image: radial-gradient(rgba(255,255,255,.36) 1px, transparent 1px);
    background-size: 40px 40px;
}
.grid-bg {
    background:
        linear-gradient(rgba(255,255,255,.028) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.028) 1px, transparent 1px);
    background-size: 84px 84px;
    mask-image: linear-gradient(to bottom, transparent, black 16%, black 70%, transparent);
}

.teaser-shell,
.page-shell {
    width: min(1120px, calc(100% - 34px));
    margin: 0 auto;
}

.teaser-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 18px;
    padding: 24px 0;
}
.brand {
    display: inline-flex;
    align-items: center;
    min-height: 54px;
    text-decoration: none;
    color: white;
}
.brand img {
    width: 210px;
    max-height: 74px;
    object-fit: contain;
    display: block;
}
.brand-fallback {
    display: none;
    font-weight: 900;
    letter-spacing: .08em;
}
.discord-link,
.btn,
.mini-pill,
.back-link {
    color: white;
    text-decoration: none;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(255,255,255,.06);
    backdrop-filter: blur(14px);
    font-weight: 900;
    letter-spacing: .12em;
    text-transform: uppercase;
}
.discord-link { padding: 11px 18px; font-size: .78rem; }

.teaser-hero {
    min-height: calc(100vh - 250px);
    display: grid;
    place-items: center;
    text-align: center;
    position: relative;
    padding: 58px 26px;
    margin: 18px 0 34px;
    border: 1px solid var(--line);
    border-radius: 30px;
    background: linear-gradient(145deg, rgba(255,255,255,.075), rgba(255,255,255,.025));
    box-shadow: 0 22px 80px rgba(0,0,0,.38), inset 0 1px 0 rgba(255,255,255,.12);
    overflow: hidden;
}
.teaser-hero::before {
    content: "";
    position: absolute;
    inset: -1px;
    background: linear-gradient(110deg, transparent 0 32%, rgba(255,255,255,.055), transparent 60%);
    transform: translateX(-90%);
    animation: shine 8s ease-in-out infinite;
}
.teaser-hero > * { position: relative; z-index: 1; }
.hero-glow {
    position: absolute;
    width: 520px;
    height: 520px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(150,112,210,.14), transparent 66%);
    filter: blur(6px);
    animation: float 9s ease-in-out infinite;
    z-index: 0;
}
.eyebrow,
.section-kicker {
    margin: 0;
    color: #eee7ff;
    text-transform: uppercase;
    letter-spacing: .18em;
    font-size: .78rem;
    font-weight: 900;
}
.eyebrow span {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-right: 10px;
    background: white;
    box-shadow: 0 0 10px rgba(255,255,255,.55), 0 0 22px var(--purple);
}
.hero-logo {
    width: min(500px, 88%);
    margin: 14px auto 8px;
    display: block;
    filter: drop-shadow(0 0 18px rgba(177,111,255,.14));
}
h1, h2, h3, p { margin-top: 0; }
h1 {
    font-size: clamp(2.4rem, 6.6vw, 5.6rem);
    line-height: .88;
    letter-spacing: -0.055em;
    margin-bottom: 18px;
}
h2 {
    font-size: clamp(2rem, 4vw, 4.2rem);
    line-height: .95;
    letter-spacing: -0.055em;
    margin-bottom: 18px;
}
.hero-text {
    max-width: 690px;
    margin: 0 auto 32px;
    color: var(--muted);
    font-size: 1.02rem;
    line-height: 1.65;
}
.countdown {
    width: min(760px, 100%);
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin: 0 auto 18px;
}
.count-box {
    border: 1px solid var(--line);
    border-radius: 20px;
    padding: 20px 12px;
    background: radial-gradient(circle at 50% 0%, rgba(255,255,255,.09), transparent 58%), rgba(255,255,255,.04);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.16);
}
.count-box strong {
    display: block;
    font-size: clamp(1.85rem, 4.2vw, 3.6rem);
    line-height: .9;
    letter-spacing: -0.06em;
}
.count-box span {
    display: block;
    margin-top: 12px;
    color: var(--muted);
    font-size: .78rem;
    font-weight: 900;
    letter-spacing: .18em;
    text-transform: uppercase;
}
.launch-date {
    margin: 0;
    color: #eee7ff;
    font-weight: 800;
    letter-spacing: .04em;
}
.hero-actions {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 30px;
}
.btn,
.mini-pill { padding: 14px 20px; font-size: .78rem; }
.btn.primary {
    background: white;
    color: #09070f;
    box-shadow: 0 0 22px rgba(255,255,255,.10);
}


.site-footer {
    border-top: 1px solid var(--line);
    background: rgba(0,0,0,.45);
    backdrop-filter: blur(14px);
    padding: 28px 17px;
}
.footer-inner {
    width: min(1120px, 100%);
    margin: 0 auto;
    display: grid;
    gap: 14px;
    text-align: center;
    color: var(--muted);
}
.footer-inner p { margin: 0; }
.footer-links {
    display: flex;
    justify-content: center;
    gap: 18px;
    flex-wrap: wrap;
}
.footer-links a {
    color: white;
    text-decoration: none;
    font-weight: 700;
}
.footer-note {
    max-width: 850px;
    margin: 0 auto !important;
    font-size: .92rem;
    line-height: 1.55;
}

.legal-page { min-height: 72vh; padding: 42px 0 80px; }
.legal-card {
    border: 1px solid var(--line);
    border-radius: 30px;
    background: linear-gradient(145deg, rgba(255,255,255,.10), rgba(255,255,255,.03));
    padding: 44px;
}
.legal-card p:not(.section-kicker) {
    color: var(--muted);
    line-height: 1.75;
    max-width: 820px;
}
.back-link {
    display: inline-block;
    margin: 0 0 18px;
    padding: 10px 16px;
    font-size: .75rem;
}
.legal-intro { font-size: 1.08rem; margin-bottom: 30px; }
.legal-sections { display: grid; gap: 18px; margin-top: 24px; }
.legal-section {
    border: 1px solid var(--line);
    border-radius: 20px;
    padding: 22px;
    background: rgba(255,255,255,.028);
}
.legal-section h2 {
    font-size: 1.25rem;
    letter-spacing: -0.02em;
    margin-bottom: 10px;
}
.legal-section p { margin-bottom: 0; }
.not-found { min-height: 100vh; display: grid; place-content: center; text-align: center; }
.not-found h1 { font-size: 7rem; margin-bottom: 0; }
.not-found a { color: white; }

.reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity .7s ease, transform .7s ease;
    transition-delay: var(--delay, 0ms);
}
.reveal.visible { opacity: 1; transform: translateY(0); }

@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(18px); } }
@keyframes shine { 0%, 35% { transform: translateX(-90%); } 65%, 100% { transform: translateX(90%); } }

@media (hover: hover) {
    .discord-link:hover,
    .btn:hover,
    .mini-pill:hover,
    .back-link:hover {
        transform: translateY(-1px);
        border-color: rgba(255,255,255,.24);
        background: rgba(255,255,255,.095);
    }
    .btn.primary:hover {
        background: #f4efff;
    }
}

@media (max-width: 860px) {
    .teaser-shell,
    .page-shell {
        width: min(100% - 28px, 1120px);
    }
    .teaser-nav {
        padding: max(18px, env(safe-area-inset-top)) 0 18px;
    }
    .teaser-hero {
        min-height: auto;
        padding: 52px 20px;
        border-radius: 28px;
    }
    .hero-logo {
        width: min(430px, 92%);
    }
    .countdown {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .legal-card {
        padding: 36px 26px;
    }
}

@media (max-width: 560px) {
    body {
        background:
            radial-gradient(circle at 50% -8%, rgba(150,112,210,.20), transparent 34%),
            radial-gradient(circle at 50% 84%, rgba(94,48,151,.12), transparent 30%),
            var(--bg);
    }
    .grid-bg {
        background-size: 56px 56px;
    }
    .teaser-shell,
    .page-shell {
        width: min(100% - 18px, 1120px);
    }
    .teaser-nav {
        align-items: center;
        justify-content: center;
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }
    .brand {
        min-height: auto;
        justify-content: center;
        width: 100%;
    }
    .brand img {
        width: min(220px, 82vw);
        max-height: 88px;
    }
    .discord-link {
        width: min(100%, 340px);
        text-align: center;
        padding: 13px 18px;
    }
    .teaser-hero {
        margin: 8px 0 26px;
        padding: 38px 14px 34px;
        border-radius: 24px;
    }
    .hero-glow {
        width: 330px;
        height: 330px;
    }
    .eyebrow,
    .section-kicker {
        font-size: .68rem;
        letter-spacing: .13em;
    }
    .hero-logo {
        width: min(310px, 88vw);
        margin-top: 10px;
    }
    h1 {
        font-size: clamp(2.25rem, 14.5vw, 4rem);
        line-height: .92;
        letter-spacing: -0.06em;
    }
    h2 {
        font-size: clamp(1.85rem, 10vw, 3rem);
    }
    .hero-text {
        font-size: .98rem;
        line-height: 1.58;
        margin-bottom: 24px;
    }
    .countdown {
        gap: 9px;
        margin-bottom: 16px;
    }
    .count-box {
        padding: 18px 8px;
        border-radius: 18px;
    }
    .count-box strong {
        font-size: clamp(2rem, 12vw, 3.15rem);
    }
    .count-box span {
        font-size: .66rem;
        letter-spacing: .14em;
        margin-top: 9px;
    }
    .hero-actions {
        width: 100%;
        margin-top: 24px;
    }
    .btn,
    .mini-pill {
        width: min(100%, 340px);
        text-align: center;
        padding: 14px 18px;
    }
    .site-footer {
        padding: 24px max(12px, env(safe-area-inset-left)) max(24px, env(safe-area-inset-bottom)) max(12px, env(safe-area-inset-right));
    }
    .footer-inner {
        gap: 12px;
        font-size: .9rem;
    }
    .footer-links {
        gap: 10px;
    }
    .footer-links a {
        display: inline-flex;
        padding: 6px 4px;
    }
    .legal-page {
        padding: 28px 0 54px;
    }
    .legal-card {
        padding: 26px 18px;
        border-radius: 22px;
    }
    .legal-intro {
        font-size: 1rem;
        line-height: 1.6;
    }
    .legal-section {
        padding: 18px;
        border-radius: 18px;
    }
    .legal-section h2 {
        font-size: 1.08rem;
    }
    .legal-card p:not(.section-kicker),
    .legal-section p {
        font-size: .95rem;
        line-height: 1.65;
    }
    .not-found h1 {
        font-size: 5rem;
    }
}

@media (max-width: 360px) {
    .countdown {
        grid-template-columns: 1fr;
    }
    .teaser-hero {
        padding-left: 12px;
        padding-right: 12px;
    }
}
