/* ═══════════════════════════════════════════════════
   ASTEROID — Allocation Snapshot
   Design system carried over from asteroidbsc.com
   ═══════════════════════════════════════════════════ */

/* ── Tokens ─────────────────────────────────────── */
:root {
    --bg: #05060a;
    --bg2: #0a0d16;
    --card: #0e1220;
    --line: #1c2338;
    --line-soft: rgba(28, 35, 56, 0.6);
    --text: #e8ecf6;
    --dim: #8b94ad;
    --gold: #f0b90b;
    --gold2: #ffd75e;
    --accent: #7c9cff;

    --font-display: 'Space Grotesk', sans-serif;
    --font-body: 'Inter', system-ui, sans-serif;

    --radius: 18px;
    --radius-lg: 26px;
    --pill: 999px;

    --t: 0.2s ease;
    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);

    --max-w: 1120px;
    --nav-h: 64px;
}

/* ── Reset ──────────────────────────────────────── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--nav-h) + 24px);
    -webkit-text-size-adjust: 100%;
    overflow-x: hidden;
}

body {
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul, ol { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }

h1, h2, h3, .display {
    font-family: var(--font-display);
    line-height: 1.1;
    letter-spacing: -0.02em;
}

/* ── Focus ──────────────────────────────────────── */
:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 3px;
    border-radius: 6px;
}
:focus:not(:focus-visible) { outline: none; }

.skip-link {
    position: absolute;
    top: 8px;
    left: 8px;
    z-index: 200;
    padding: 10px 18px;
    border-radius: var(--pill);
    background: var(--gold);
    color: #0a0a0a;
    font-size: 13px;
    font-weight: 600;
    transform: translateY(-200%);
    transition: transform var(--t);
}
.skip-link:focus-visible { transform: translateY(0); }

/* ── Layout ─────────────────────────────────────── */
.wrap {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 24px;
}

.section { padding: 110px 0; }
.section.alt {
    background: var(--bg2);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}
.section h2 {
    font-size: clamp(30px, 4.6vw, 52px);
    margin: 14px 0 44px;
}

.eyebrow {
    font-size: 12px;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: var(--gold);
    font-weight: 600;
}

/* ── Nav ────────────────────────────────────────── */
.nav {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 100;
    height: var(--nav-h);
    background: rgba(5, 6, 10, 0.78);
    backdrop-filter: blur(18px) saturate(1.4);
    -webkit-backdrop-filter: blur(18px) saturate(1.4);
    border-bottom: 1px solid var(--line);
    animation: navDrop 0.6s var(--ease-out-expo) backwards;
}
@keyframes navDrop {
    from { transform: translateY(-100%); }
    to { transform: translateY(0); }
}

.nav-inner {
    max-width: var(--max-w);
    height: 100%;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-display);
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.01em;
    flex-shrink: 0;
}
.nav-brand img { width: 30px; height: 30px; border-radius: 50%; }

.nav-links { display: flex; gap: 2px; }
.nav-link {
    padding: 8px 14px;
    border-radius: var(--pill);
    font-size: 13.5px;
    font-weight: 500;
    color: var(--dim);
    transition: color var(--t), background var(--t);
}
.nav-link:hover { color: var(--text); background: rgba(255, 255, 255, 0.05); }

.nav-right { display: flex; align-items: center; gap: 6px; }
.nav-site {
    padding: 8px 14px;
    border-radius: var(--pill);
    font-size: 13.5px;
    font-weight: 500;
    color: var(--dim);
    transition: color var(--t), background var(--t);
}
.nav-site:hover { color: var(--gold); background: rgba(240, 185, 11, 0.08); }

.nav-social {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: var(--dim);
    transition: color var(--t), background var(--t);
}
.nav-social:hover { color: var(--gold); background: rgba(240, 185, 11, 0.08); }

.nav-toggle {
    display: none;
    width: 36px;
    height: 36px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    border-radius: 10px;
}
.nav-toggle span {
    width: 18px;
    height: 1.6px;
    background: var(--text);
    border-radius: 2px;
    transition: transform var(--t), opacity var(--t);
}
.nav-toggle[aria-expanded='true'] span:nth-child(1) { transform: translateY(6.6px) rotate(45deg); }
.nav-toggle[aria-expanded='true'] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded='true'] span:nth-child(3) { transform: translateY(-6.6px) rotate(-45deg); }

.mobile-menu {
    position: fixed;
    top: var(--nav-h);
    left: 0;
    right: 0;
    z-index: 99;
    background: rgba(5, 6, 10, 0.97);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--line);
    padding: 14px 24px 18px;
    display: none;
    flex-direction: column;
    gap: 2px;
}
.mobile-menu.open { display: flex; }
.mobile-link {
    padding: 13px 14px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 500;
    color: var(--dim);
}
.mobile-link:hover { color: var(--text); background: rgba(255, 255, 255, 0.05); }
.mobile-socials {
    display: flex;
    gap: 20px;
    padding: 14px;
    margin-top: 6px;
    border-top: 1px solid var(--line);
    font-size: 13.5px;
    color: var(--dim);
}
.mobile-socials a:hover { color: var(--gold); }

@media (max-width: 860px) {
    .nav-links, .nav-site, .nav-social { display: none; }
    .nav-toggle { display: flex; }
}

/* ── Buttons ────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: var(--gold);
    color: #0a0a0a;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 14px;
    padding: 13px 26px;
    border-radius: var(--pill);
    transition: transform 0.15s ease, box-shadow 0.15s ease, border-color var(--t);
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 8px 30px rgba(240, 185, 11, 0.35); }
.btn:active { transform: translateY(0); }

.btn.ghost {
    background: transparent;
    color: var(--text);
    border: 1px solid var(--line);
}
.btn.ghost:hover { border-color: var(--gold); box-shadow: none; }

.arrow-down, .arrow-out { display: inline-block; transition: transform var(--t); }
.btn:hover .arrow-down { transform: translateY(3px); }
.nav-site:hover .arrow-out { transform: translate(2px, -2px); }

/* ── Hero ───────────────────────────────────────── */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: calc(var(--nav-h) + 76px) 0 64px;
    text-align: center;
}

.hero-logo {
    position: relative;
    display: grid;
    place-items: center;
    width: min(220px, 52vw);
    aspect-ratio: 1;
    margin: 0 auto 30px;
}
.hero-logo img {
    width: 100%;
    height: auto;
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
    filter: drop-shadow(0 18px 44px rgba(240, 185, 11, 0.28));
}
/* Dashed orbit carried over from the main site. */
.hero-logo .ring {
    position: absolute;
    inset: -11%;
    border: 1px dashed rgba(240, 185, 11, 0.34);
    border-radius: 50%;
    animation: spin 26s linear infinite;
}
.hero-logo .ring::after {
    content: '';
    position: absolute;
    top: -6px;
    left: 50%;
    width: 11px;
    height: 11px;
    margin-left: -5.5px;
    border-radius: 50%;
    background: var(--gold);
    box-shadow: 0 0 14px var(--gold);
}
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
}
@keyframes spin {
    to { transform: rotate(360deg); }
}

.hero h1 {
    font-size: clamp(40px, 7vw, 84px);
    margin: 18px 0 22px;
}
.hero h1 em {
    font-style: normal;
    color: var(--gold2);
}
.hero p.lede {
    color: var(--dim);
    max-width: 600px;
    margin: 0 auto 34px;
    font-size: 17px;
}
.ctas {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 76px;
}

/* Hero load sequence — pure CSS, runs without JS. */
.hero-anim {
    opacity: 0;
    animation: fadeUp 0.7s var(--ease-out-expo) var(--d, 0s) forwards;
}
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(18px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ── Trajectory (signature) ─────────────────────── */
.trajectory {
    position: relative;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    padding-top: 42px;
    border-top: 1px solid var(--line);
    max-width: 860px;
    margin: 0 auto;
}
/* Dashed, like the orbit ring — the phases are a flight path. */
.trajectory::before {
    content: '';
    position: absolute;
    left: 16.667%;
    right: 16.667%;
    top: 47px;
    height: 0;
    border-top: 1px dashed var(--line);
    transform-origin: left center;
    animation: drawX 0.9s var(--ease-out-expo) 0.6s backwards;
}
@keyframes drawX { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes drawY { from { transform: scaleY(0); } to { transform: scaleY(1); } }

.leg {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    padding: 0 10px;
    opacity: 0;
    animation: fadeUp 0.6s var(--ease-out-expo) forwards;
}
.leg:nth-child(1) { animation-delay: 0.76s; }
.leg:nth-child(2) { animation-delay: 0.88s; }
.leg:nth-child(3) { animation-delay: 1s; }

.leg-dot {
    position: relative;
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background: var(--bg);
    border: 1.5px solid var(--line);
    box-shadow: 0 0 0 6px var(--bg);
    flex-shrink: 0;
    animation: dotIn 0.5s var(--ease-out-expo) backwards;
}
.leg:nth-child(1) .leg-dot { animation-delay: 0.8s; }
.leg:nth-child(2) .leg-dot { animation-delay: 0.92s; }
.leg:nth-child(3) .leg-dot { animation-delay: 1.04s; }
@keyframes dotIn { from { opacity: 0; transform: scale(0); } to { opacity: 1; transform: scale(1); } }

.leg.now .leg-dot {
    background: var(--gold);
    border-color: var(--gold);
    box-shadow: 0 0 0 6px var(--bg), 0 0 16px rgba(240, 185, 11, 0.75);
}
.leg.now .leg-dot::after {
    content: '';
    position: absolute;
    inset: -5px;
    border-radius: 50%;
    border: 1px solid var(--gold);
    opacity: 0;
    animation: ping 2.4s var(--ease-out-expo) 1.7s infinite;
}
@keyframes ping {
    0% { opacity: 0.7; transform: scale(0.9); }
    70%, 100% { opacity: 0; transform: scale(2.2); }
}

.leg-name {
    font-family: var(--font-display);
    font-size: 15px;
    font-weight: 700;
    color: var(--dim);
}
.leg.now .leg-name { color: var(--text); }

.leg-state {
    font-size: 11px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    font-weight: 600;
    color: var(--dim);
    margin-top: -8px;
}
.leg.now .leg-state { color: var(--gold); }

/* ── Cards ──────────────────────────────────────── */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    text-align: left;
}
.card {
    position: relative;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 28px;
    transition: border-color var(--t), transform var(--t), box-shadow var(--t);
}
.card:hover {
    border-color: rgba(240, 185, 11, 0.45);
    transform: translateY(-3px);
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.4);
}
.card.now { border-color: rgba(240, 185, 11, 0.55); }
.card h3 { font-size: 19px; margin: 0 0 8px; padding-right: 84px; }
.card p { color: var(--dim); font-size: 14.5px; }

.card-tag {
    position: absolute;
    top: 20px;
    right: 20px;
    padding: 4px 10px;
    border-radius: var(--pill);
    background: rgba(255, 255, 255, 0.05);
    color: var(--dim);
    font-size: 9.5px;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}
.card.now .card-tag { background: var(--gold); color: #0a0a0a; }

.card-icon { font-size: 22px; line-height: 1; margin-bottom: 12px; transition: transform 0.35s var(--ease-out-expo); }
.card:hover .card-icon { transform: scale(1.14) rotate(-6deg); }

/* ── Two-column prose ───────────────────────────── */
.split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
    text-align: left;
}
.prose h2 { font-size: clamp(26px, 3.4vw, 36px); margin: 0 0 18px; }
.prose p { color: var(--dim); font-size: 15.5px; margin-bottom: 15px; }
.prose p:last-child { margin-bottom: 0; }
.prose strong { color: var(--text); font-weight: 600; }
.prose a {
    color: var(--gold);
    font-weight: 500;
    border-bottom: 1px solid rgba(240, 185, 11, 0.3);
    transition: border-color var(--t);
}
.prose a:hover { border-color: var(--gold); }

.stack { display: flex; flex-direction: column; gap: 14px; }

/* ── FAQ ────────────────────────────────────────── */
.faq-list {
    max-width: 760px;
    margin: 0 auto;
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.faq-item {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    transition: border-color var(--t);
}
.faq-item:hover { border-color: rgba(240, 185, 11, 0.3); }
.faq-item[open] { border-color: rgba(240, 185, 11, 0.45); }

.faq-q {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 20px 24px;
    font-family: var(--font-display);
    font-size: 16px;
    font-weight: 700;
    letter-spacing: -0.01em;
    cursor: pointer;
    list-style: none;
}
.faq-q::-webkit-details-marker { display: none; }

.faq-chevron {
    width: 8px;
    height: 8px;
    flex-shrink: 0;
    border-right: 1.6px solid var(--dim);
    border-bottom: 1.6px solid var(--dim);
    transform: translateY(-2px) rotate(45deg);
    transition: transform var(--t), border-color var(--t);
}
.faq-item[open] .faq-chevron {
    transform: translateY(1px) rotate(-135deg);
    border-color: var(--gold);
}

.faq-a {
    padding: 0 24px 22px;
    color: var(--dim);
    font-size: 14.5px;
    line-height: 1.7;
    max-width: 60ch;
}
.faq-a a {
    color: var(--gold);
    font-weight: 500;
    border-bottom: 1px solid rgba(240, 185, 11, 0.3);
}
.faq-a a:hover { border-color: var(--gold); }
.faq-a strong { color: var(--text); }

@supports (interpolate-size: allow-keywords) {
    :root { interpolate-size: allow-keywords; }
    .faq-item::details-content {
        height: 0;
        overflow: hidden;
        transition: height var(--t), content-visibility var(--t) allow-discrete;
    }
    .faq-item[open]::details-content { height: auto; }
}

/* ── CTA ────────────────────────────────────────── */
.cta-box {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 56px;
    text-align: center;
}
.cta-box h2 { font-size: clamp(26px, 3.6vw, 38px); margin: 0 0 12px; }
.cta-lead {
    color: var(--dim);
    font-size: 15.5px;
    max-width: 440px;
    margin: 0 auto 30px;
}
.cta-note {
    font-size: 12px;
    line-height: 1.8;
    color: var(--dim);
    max-width: 560px;
    margin: 32px auto 0;
    padding-top: 26px;
    border-top: 1px solid var(--line);
}

/* ── Footer ─────────────────────────────────────── */
footer {
    border-top: 1px solid var(--line);
    padding: 40px 0;
    color: var(--dim);
    font-size: 13px;
}
.foot-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}
.foot-brand {
    display: flex;
    align-items: center;
    gap: 9px;
    color: var(--text);
    font-weight: 600;
}
.foot-brand img { width: 24px; height: 24px; border-radius: 50%; }
.foot-links { display: flex; gap: 20px; flex-wrap: wrap; }
.foot-links a { transition: color var(--t); }
.foot-links a:hover { color: var(--gold); }
.foot-copy { width: 100%; text-align: center; font-size: 12px; margin-top: 6px; }

/* ── Reveal ─────────────────────────────────────── */
.reveal {
    opacity: 0;
    animation: fadeUp 0.55s var(--ease-out-expo) forwards;
}

::selection { background: var(--gold); color: #0a0a0a; }
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--line); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--dim); }

/* ── Responsive ─────────────────────────────────── */
@media (max-width: 860px) {
    .grid-3 { grid-template-columns: 1fr; }
    .split { grid-template-columns: 1fr; gap: 40px; }
    .section { padding: 80px 0; }
}

@media (max-width: 620px) {
    .hero { padding: calc(var(--nav-h) + 52px) 0 56px; }
    .ctas { flex-direction: column; align-items: stretch; margin-bottom: 56px; }
    .btn { width: 100%; }

    /* The trajectory turns vertical instead of compressing. */
    .trajectory {
        grid-template-columns: 1fr;
        gap: 26px;
        padding-top: 34px;
        text-align: left;
    }
    .trajectory::before {
        left: 5px;
        right: auto;
        top: 44px;
        bottom: 14px;
        width: 0;
        height: auto;
        border-top: 0;
        border-left: 1px dashed var(--line);
        transform-origin: center top;
        animation-name: drawY;
    }
    .leg { flex-direction: row; align-items: center; gap: 14px; padding: 0; flex-wrap: wrap; }
    .leg-state { margin-top: 0; margin-left: auto; }

    .card-tag { position: static; display: inline-block; margin-bottom: 14px; }
    .card h3 { padding-right: 0; }

    .section { padding: 68px 0; }
    .section h2 { margin-bottom: 32px; }
    .cta-box { padding: 36px 22px; }
    .foot-inner { flex-direction: column; text-align: center; }
    .foot-links { justify-content: center; }
}

/* ── Print ──────────────────────────────────────── */
@media print {
    .nav, .mobile-menu, .skip-link { display: none; }
    .hero { min-height: 0; padding-top: 24px; }
    .reveal, .hero-anim, .leg { opacity: 1; animation: none; }
    .leg-dot, .trajectory::before { transform: none; animation: none; }
}

/* ── Reduced motion ─────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-delay: 0ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    /* Pin every animated element to its finished state so nothing depends
       on an animation actually running to become visible. */
    .reveal, .hero-anim, .leg { opacity: 1; animation: none; }
    .leg-dot, .trajectory::before { transform: none; animation: none; }
    .nav { animation: none; }
    .hero-logo img { animation: none; }
    .hero-logo .ring { animation: none; }
    .leg.now .leg-dot::after { display: none; }
    .btn:hover, .card:hover { transform: none; }
    .card:hover .card-icon,
    .btn:hover .arrow-down,
    .nav-site:hover .arrow-out { transform: none; }
}
