:root {
    --bg: #09090b;
    --bg-alt: #0f0f12;
    --surface: #18181b;
    --surface-2: #1f1f23;
    --border: #27272a;
    --border-soft: rgba(63, 63, 70, .5);
    --text: #fafafa;
    --muted: #a1a1aa;
    --dim: #71717a;
    --accent: #f59e0b;
    --accent-2: #ff8a00;
    --accent-soft: rgba(245, 158, 11, .12);
    --radius: 20px;
    --font: 'Inter', ui-sans-serif, system-ui, sans-serif;
    --font-display: 'Space Grotesk', 'Inter', sans-serif;
    --header-h: 108px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }

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

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
svg { width: 18px; height: 18px; fill: currentColor; flex-shrink: 0; }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.container.narrow { max-width: 820px; }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    padding: 12px 22px; border-radius: 999px;
    font-weight: 600; font-size: 15px; border: 1px solid transparent;
    cursor: pointer; transition: transform .2s, box-shadow .2s, background .2s, border-color .2s;
    white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-sm { padding: 9px 16px; font-size: 14px; }
.btn-lg { padding: 16px 30px; font-size: 17px; }
.btn-primary {
    background: linear-gradient(180deg, #fbbf24, var(--accent-2));
    color: #111;
    box-shadow: 0 8px 30px rgba(245, 158, 11, .35);
}
.btn-primary:hover { box-shadow: 0 12px 40px rgba(245, 158, 11, .5); }
.btn-ghost { background: rgba(24, 24, 27, .8); border-color: var(--border); color: var(--text); }
.btn-ghost:hover { border-color: var(--accent); }
.btn-link { color: var(--muted); padding-left: 10px; padding-right: 10px; }
.btn-link:hover { color: var(--text); }

/* ---------- Header ---------- */
.site-header { position: fixed; inset: 0 0 auto 0; z-index: 50; }

.topbar {
    display: flex; justify-content: center; align-items: center; gap: 14px;
    height: 36px; font-size: 13px; font-weight: 600;
    background: linear-gradient(90deg, #3a2500, #6b4300 50%, #3a2500);
    border-bottom: 1px solid rgba(245, 158, 11, .35);
}
.topbar a { display: inline-flex; align-items: center; gap: 6px; color: #fcd34d; text-decoration: underline; text-underline-offset: 3px; }
.topbar a:hover { color: #fff; }
.topbar svg { width: 14px; height: 14px; }
.topbar .dot { color: rgba(252, 211, 77, .5); }

.navbar {
    height: 72px;
    background: rgba(9, 9, 11, .75);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border-soft);
}
.nav-container { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }

.logo { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 700; font-size: 22px; }
.logo img { width: 40px; height: 40px; }
.logo b { color: var(--accent); }

.main-nav { display: flex; align-items: center; gap: 4px; }
.main-nav a {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 8px 14px; border-radius: 999px;
    font-size: 14px; font-weight: 500; color: var(--muted);
    transition: color .2s, background .2s;
}
.main-nav a:hover { color: var(--text); background: var(--surface); }
.main-nav .nav-accent { color: var(--accent); }
.main-nav .nav-accent svg { width: 15px; height: 15px; }

.header-actions { display: flex; align-items: center; gap: 12px; }

.mobile-menu-toggle {
    display: none; width: 44px; height: 44px; border-radius: 50%;
    background: var(--surface); border: 1px solid var(--border);
    flex-direction: column; align-items: center; justify-content: center; gap: 4px; cursor: pointer;
}
.mobile-menu-toggle span { width: 18px; height: 2px; background: var(--text); border-radius: 2px; }

.mobile-menu {
    position: fixed; inset: 0; z-index: 100;
    background: rgba(9, 9, 11, .97);
    backdrop-filter: blur(10px);
    display: flex; align-items: center; justify-content: center;
    opacity: 0; visibility: hidden; transition: opacity .25s, visibility .25s;
}
.mobile-menu.active { opacity: 1; visibility: visible; }
.mobile-menu nav { display: flex; flex-direction: column; align-items: center; gap: 22px; }
.mobile-menu nav a { font-family: var(--font-display); font-size: 26px; font-weight: 700; }
.mobile-menu nav a.accent { color: var(--accent); }
.mobile-menu nav .btn { font-family: var(--font); font-size: 17px; margin-top: 10px; }
.mobile-menu-close {
    position: absolute; top: 24px; right: 24px; width: 44px; height: 44px; border-radius: 50%;
    background: var(--surface); border: 1px solid var(--border); color: var(--text); font-size: 26px; cursor: pointer;
}

/* ---------- Common ---------- */
.badge {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 8px 16px; border-radius: 999px;
    background: var(--accent-soft); border: 1px solid rgba(245, 158, 11, .35);
    color: #fcd34d; font-size: 14px; font-weight: 500;
}
.badge svg { width: 16px; height: 16px; }

.eyebrow {
    display: inline-block; padding: 5px 12px; border-radius: 999px;
    background: var(--accent-soft); border: 1px solid rgba(245, 158, 11, .3);
    color: var(--accent); font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
    margin-bottom: 16px;
}

.h2 {
    font-family: var(--font-display); font-weight: 700;
    font-size: clamp(32px, 5vw, 52px); line-height: 1.1; letter-spacing: -.02em;
}
.accent { color: var(--accent); }
.lead { color: var(--muted); font-size: 18px; max-width: 680px; margin: 18px auto 0; }
.link { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }

.section { padding: 110px 0; position: relative; }
.section-alt { background: rgba(24, 24, 27, .25); border-top: 1px solid var(--border-soft); border-bottom: 1px solid var(--border-soft); }
.section-head { text-align: center; margin-bottom: 60px; }
.section-head .badge { margin-bottom: 18px; }

/* ---------- Hero ---------- */
.hero {
    position: relative; overflow: hidden;
    min-height: 92vh; padding: calc(var(--header-h) + 60px) 0 80px;
    display: flex; align-items: center; text-align: center;
}
.hero-glow {
    position: absolute; left: 50%; top: 45%; transform: translate(-50%, -50%);
    width: 900px; height: 700px; pointer-events: none;
    background: radial-gradient(closest-side, rgba(245, 158, 11, .22), rgba(245, 158, 11, .06) 55%, transparent);
    filter: blur(20px);
}
.hero-glow.small { width: 600px; height: 400px; top: 30%; }
.hero-inner { position: relative; display: flex; flex-direction: column; align-items: center; }

.hero-brand { position: relative; margin: 36px 0 28px; display: flex; align-items: center; justify-content: center; }
.wordmark {
    font-family: var(--font-display); font-weight: 700;
    font-size: clamp(72px, 14vw, 170px); line-height: .9; letter-spacing: -.04em;
    background: linear-gradient(180deg, #fde68a 0%, #f59e0b 55%, #d97706 100%);
    -webkit-background-clip: text; background-clip: text; color: transparent;
    filter: drop-shadow(0 10px 40px rgba(245, 158, 11, .25));
    position: relative;
}
.wordmark small {
    position: absolute; right: -.1em; top: -.42em;
    font-size: .36em; letter-spacing: -.02em;
    background: inherit; -webkit-background-clip: text; background-clip: text;
}
.hero-mascot {
    width: clamp(110px, 16vw, 190px); margin-left: -10px;
    animation: float 4s ease-in-out infinite;
    filter: drop-shadow(0 20px 30px rgba(0, 0, 0, .6));
}
@keyframes float { 0%, 100% { transform: translateY(0) rotate(-4deg); } 50% { transform: translateY(-14px) rotate(3deg); } }

.hero-text { color: var(--muted); font-size: clamp(18px, 2.2vw, 22px); max-width: 640px; line-height: 1.55; }

.hero-buttons { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 40px; }

.hero-socials { display: flex; justify-content: center; gap: 14px; margin-top: 44px; }
.hero-socials a {
    width: 52px; height: 52px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    background: var(--surface); border: 1px solid var(--border);
    transition: border-color .2s, transform .2s;
}
.hero-socials a:hover { border-color: var(--accent); transform: translateY(-3px); }
.hero-socials img { width: 26px; height: 26px; object-fit: contain; }

/* ---------- Stats ---------- */
.stats { position: relative; z-index: 2; margin-top: -30px; }
.stats-grid {
    display: grid; grid-template-columns: repeat(4, 1fr);
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
    overflow: hidden;
}
.stat { padding: 28px 20px; text-align: center; border-right: 1px solid var(--border); }
.stat:last-child { border-right: 0; }
.stat b { display: block; font-family: var(--font-display); font-size: 36px; color: var(--accent); line-height: 1.1; }
.stat span { color: var(--muted); font-size: 14px; text-transform: uppercase; letter-spacing: .08em; }

/* ---------- Story ---------- */
.story-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 64px; align-items: center; }
.visual-card {
    background: radial-gradient(circle at 50% 40%, rgba(245, 158, 11, .15), transparent 70%), var(--surface);
    border: 1px solid var(--border); border-radius: 28px; padding: 30px;
}
.story-text { margin-top: 24px; display: flex; flex-direction: column; gap: 16px; color: var(--muted); font-size: 17px; }

/* ---------- Cards ---------- */
.cards-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card {
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
    padding: 32px; transition: border-color .25s, transform .25s;
}
.card:hover { border-color: rgba(245, 158, 11, .5); transform: translateY(-4px); }
.card-icon {
    width: 72px; height: 72px; border-radius: 18px; margin-bottom: 22px;
    background: var(--accent-soft); border: 1px solid rgba(245, 158, 11, .25);
    display: flex; align-items: center; justify-content: center;
}
.card-icon img { width: 52px; height: 52px; object-fit: contain; }
.card h3 { font-family: var(--font-display); font-size: 24px; margin-bottom: 10px; }
.card p { color: var(--muted); }

.contract-box {
    margin: 40px auto 0; max-width: 720px;
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
    padding: 22px 24px; text-align: center;
}
.contract-label { font-size: 13px; color: var(--dim); text-transform: uppercase; letter-spacing: .08em; margin-bottom: 12px; }
.contract-label a { color: var(--accent); }
.contract-copy {
    width: 100%; display: flex; align-items: center; justify-content: center; gap: 12px;
    background: var(--bg); border: 1px solid var(--border); border-radius: 14px;
    padding: 14px 18px; color: var(--text); cursor: pointer;
    font-family: ui-monospace, 'SFMono-Regular', Menlo, monospace; font-size: 15px;
    transition: border-color .2s;
}
.contract-copy:hover { border-color: var(--accent); }
.contract-copy span { overflow: hidden; text-overflow: ellipsis; }
.contract-copy svg { color: var(--accent); }
.contract-copy.copied { border-color: #22c55e; }

/* ---------- Timeline ---------- */
.timeline { position: relative; max-width: 900px; margin: 0 auto; }
.timeline::before {
    content: ''; position: absolute; left: 50%; top: 10px; bottom: 10px; width: 2px; transform: translateX(-50%);
    background: linear-gradient(180deg, transparent, var(--accent) 10%, var(--accent) 90%, transparent);
    opacity: .5;
}
.tl-item { position: relative; display: flex; padding: 14px 0; }
.tl-item:nth-child(odd) { justify-content: flex-end; }
.tl-card {
    width: calc(50% - 44px);
    background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 20px 24px;
    transition: border-color .25s;
}
.tl-card:hover { border-color: rgba(245, 158, 11, .5); }
.tl-card h4 { font-family: var(--font-display); font-size: 20px; margin-bottom: 4px; }
.tl-card p { color: var(--muted); font-size: 15px; }
.tl-dot {
    position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
    width: 36px; height: 36px; border-radius: 50%;
    background: var(--accent); color: #111; font-weight: 700;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 0 0 6px var(--bg), 0 0 24px rgba(245, 158, 11, .6);
}

/* ---------- Game ---------- */
.game-card {
    display: grid; grid-template-columns: 1fr 1fr; overflow: hidden;
    border-radius: 28px; border: 1px solid rgba(245, 158, 11, .25);
    background: linear-gradient(135deg, #2a1a05 0%, #18181b 60%);
}
.game-media { background: #000; display: flex; align-items: center; justify-content: center; }
.game-media img { width: 100%; height: 100%; object-fit: cover; }
.game-body { padding: 48px; display: flex; flex-direction: column; align-items: flex-start; gap: 16px; justify-content: center; }
.game-body h3 { font-family: var(--font-display); font-size: 38px; line-height: 1.1; }
.game-body p { color: var(--muted); font-size: 17px; }
.tag { display: inline-flex; align-items: center; gap: 8px; color: #fcd34d; font-size: 13px; font-weight: 600; }
.tag i { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 10px var(--accent); }

/* ---------- Team ---------- */
.team-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.member {
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
    overflow: hidden; text-align: center; padding-bottom: 22px;
    transition: border-color .25s, transform .25s;
}
.member:hover { border-color: rgba(245, 158, 11, .5); transform: translateY(-4px); }
.member-photo { aspect-ratio: 1 / 1; overflow: hidden; margin-bottom: 18px; background: #fff; }
.member-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.member:hover .member-photo img { transform: scale(1.04); }
.member h4 { font-family: var(--font-display); font-size: 26px; line-height: 1.1; }
.member .role { display: block; margin-top: 4px; color: var(--accent); font-size: 13px; text-transform: uppercase; letter-spacing: .08em; font-weight: 600; }
.member-social { display: flex; justify-content: center; gap: 10px; margin-top: 16px; }
.member-social a {
    width: 38px; height: 38px; border-radius: 50%; background: #fff; border: 1px solid var(--border);
    display: flex; align-items: center; justify-content: center; transition: border-color .2s;
}
.member-social a:hover { border-color: var(--accent); }
.member-social img { width: 18px; height: 18px; object-fit: contain; }

/* ---------- FAQ ---------- */
.faq-accordion { display: flex; flex-direction: column; gap: 12px; }
.faq-item { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; overflow: hidden; transition: border-color .2s; }
.faq-item.open { border-color: rgba(245, 158, 11, .45); }
.faq-trigger {
    width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 16px;
    padding: 22px 24px; background: none; border: 0; color: var(--text); cursor: pointer; text-align: left;
    font-family: var(--font); font-size: 17px; font-weight: 600;
}
.faq-trigger::after {
    content: '+'; flex-shrink: 0; width: 30px; height: 30px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    background: var(--accent-soft); color: var(--accent); font-size: 20px; font-weight: 500;
    transition: transform .25s;
}
.faq-item.open .faq-trigger::after { transform: rotate(45deg); }
.faq-content { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .3s ease; }
.faq-content > p { overflow: hidden; padding: 0 24px; color: var(--muted); }
.faq-item.open .faq-content { grid-template-rows: 1fr; }
.faq-item.open .faq-content > p { padding-bottom: 22px; }
.faq-content code { font-size: 13px; color: var(--text); background: var(--bg); padding: 2px 6px; border-radius: 6px; word-break: break-all; }

/* ---------- CTA ---------- */
.cta {
    position: relative; overflow: hidden; text-align: center;
    border-radius: 32px; border: 1px solid rgba(245, 158, 11, .3);
    background: linear-gradient(180deg, #1c1305, var(--surface));
    padding: 70px 24px;
}
.cta > * { position: relative; }
.cta .hero-glow { position: absolute; }
.cta-mascot { width: 110px; margin: 0 auto 20px; animation: float 4s ease-in-out infinite; }
.cta .hero-socials { margin-top: 32px; }

/* ---------- Footer ---------- */
.footer { padding: 50px 0; border-top: 1px solid var(--border-soft); text-align: center; color: var(--dim); }
.footer .logo { justify-content: center; color: var(--text); margin-bottom: 18px; }
.footer-links { display: flex; justify-content: center; flex-wrap: wrap; gap: 24px; margin-bottom: 18px; }
.footer-links a:hover { color: var(--accent); }
.footer p { font-size: 14px; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
    .main-nav { display: none; }
    .mobile-menu-toggle { display: flex; }
}

@media (max-width: 900px) {
    .story-grid, .game-card { grid-template-columns: 1fr; }
    .story-grid { gap: 40px; }
    .cards-3 { grid-template-columns: 1fr; }
    .team-grid { grid-template-columns: repeat(2, 1fr); }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .stat:nth-child(2) { border-right: 0; }
    .stat:nth-child(-n+2) { border-bottom: 1px solid var(--border); }
    .game-body { padding: 32px; }

    .timeline::before { left: 18px; }
    .tl-item, .tl-item:nth-child(odd) { justify-content: flex-end; }
    .tl-dot { left: 18px; }
    .tl-card { width: calc(100% - 56px); }
}

@media (max-width: 600px) {
    .container { padding: 0 16px; }
    .section { padding: 80px 0; }
    .header-actions .btn { display: none; }
    .hero-buttons { flex-direction: column; width: 100%; }
    .hero-buttons .btn { width: 100%; }
    .hero-brand { flex-direction: column; }
    .hero-mascot { margin: 10px 0 0; }
    .wordmark small { right: 0; }
    .team-grid { grid-template-columns: 1fr; gap: 16px; }
    .stat b { font-size: 28px; }
    .contract-copy { font-size: 12px; }
}
