﻿:root {
    color-scheme: dark;
    --black: #03040a;
    --obsidian: #070915;
    --panel: rgba(11, 16, 33, 0.76);
    --panel-strong: rgba(14, 22, 48, 0.9);
    --ink: #f6f8ff;
    --muted: #aeb8d0;
    --dim: #6f7a94;
    --violet: #986cff;
    --blue: #4bd7ff;
    --gold: #f1c76a;
    --ember: #ff7f50;
    --green: #38d59f;
    --line: rgba(255, 255, 255, 0.15);
    --shadow: 0 24px 80px rgba(0, 0, 0, 0.46);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-width: 320px;
    background:
        radial-gradient(circle at 12% 8%, rgba(75, 215, 255, 0.16), transparent 30rem),
        radial-gradient(circle at 88% 2%, rgba(152, 108, 255, 0.18), transparent 34rem),
        linear-gradient(180deg, #020309, var(--obsidian) 42%, #040611);
    color: var(--ink);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

body::before {
    position: fixed;
    inset: 0;
    z-index: -2;
    pointer-events: none;
    content: "";
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
    background-size: 84px 84px;
    mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.7), transparent 76%);
}

body::after {
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    content: "";
    background:
        radial-gradient(circle at 50% -10%, rgba(241, 199, 106, 0.09), transparent 32rem),
        linear-gradient(120deg, transparent, rgba(75, 215, 255, 0.04), transparent 60%);
}

img {
    display: block;
    max-width: 100%;
}

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

button {
    font: inherit;
}

h1,
h2,
h3,
p {
    margin-top: 0;
}

h1 {
    margin-bottom: 22px;
    font-size: clamp(2.85rem, 12vw, 6.8rem);
    line-height: 0.9;
    letter-spacing: 0;
}

h2 {
    margin-bottom: 14px;
    font-size: clamp(1.85rem, 7vw, 3.9rem);
    line-height: 1;
    letter-spacing: 0;
}

h3 {
    margin-bottom: 10px;
    font-size: 1.12rem;
    line-height: 1.25;
}

p {
    color: var(--muted);
}

.container {
    width: min(1160px, calc(100% - 32px));
    margin-inline: auto;
}

.narrow {
    width: min(840px, calc(100% - 32px));
}

.skip-link {
    position: fixed;
    top: 12px;
    left: 12px;
    z-index: 100;
    transform: translateY(-160%);
    border-radius: 8px;
    background: var(--gold);
    color: #11131b;
    padding: 10px 14px;
    font-weight: 900;
}

.skip-link:focus {
    transform: translateY(0);
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 40;
    border-bottom: 1px solid transparent;
    background: rgba(3, 4, 10, 0.7);
    backdrop-filter: blur(20px);
    transition: background 180ms ease, border-color 180ms ease;
}

.site-header.is-scrolled {
    border-color: var(--line);
    background: rgba(3, 4, 10, 0.92);
}

.nav-shell {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 74px;
    gap: 18px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-width: max-content;
}

.brand-logo {
    position: relative;
    width: 52px;
    height: 52px;
    border: 1px solid rgba(241, 199, 106, 0.38);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.04);
    object-fit: contain;
    padding: 3px;
    filter: drop-shadow(0 0 12px rgba(255, 127, 80, 0.48)) drop-shadow(0 0 24px rgba(241, 199, 106, 0.16));
    transition: transform 180ms ease, filter 180ms ease;
}

.brand:hover .brand-logo,
.brand:focus .brand-logo {
    transform: translateY(-1px);
    filter: drop-shadow(0 0 16px rgba(255, 127, 80, 0.62)) drop-shadow(0 0 30px rgba(241, 199, 106, 0.22));
}

.brand-copy,
.brand-copy strong,
.brand-copy span {
    display: block;
}

.brand-copy {
    min-width: 0;
}

.brand-copy strong {
    color: var(--ink);
    font-size: 1.02rem;
    line-height: 1.1;
}

.brand-copy span {
    margin-top: 2px;
    color: var(--muted);
    font-size: 0.74rem;
    line-height: 1.2;
}

.primary-nav {
    display: flex;
    align-items: center;
    gap: 4px;
}

.primary-nav a {
    border-radius: 8px;
    color: var(--muted);
    padding: 10px 11px;
    font-size: 0.9rem;
    font-weight: 800;
}

.primary-nav a:hover,
.primary-nav a:focus,
.primary-nav a.is-active {
    background: rgba(255, 255, 255, 0.08);
    color: var(--ink);
}

.nav-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.06);
    color: var(--ink);
}

.nav-toggle span {
    display: block;
    width: 18px;
    height: 2px;
    margin: 4px auto;
    border-radius: 999px;
    background: currentColor;
}

.hero {
    position: relative;
    min-height: calc(100vh - 74px);
    overflow: hidden;
    padding: 92px 0 70px;
    isolation: isolate;
}

.hero-media {
    position: absolute;
    inset: 0;
    z-index: -2;
}

.hero-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 62% center;
}

.hero-media::after {
    position: absolute;
    inset: 0;
    content: "";
    background:
        linear-gradient(90deg, rgba(3, 4, 10, 0.96), rgba(3, 4, 10, 0.7) 34%, rgba(3, 4, 10, 0.18) 68%, rgba(3, 4, 10, 0.5)),
        linear-gradient(180deg, rgba(3, 4, 10, 0.18), rgba(3, 4, 10, 0.9));
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(320px, 0.75fr);
    align-items: center;
    gap: 42px;
}

.hero-copy {
    max-width: 760px;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;
    color: var(--gold);
    font-size: 0.76rem;
    font-weight: 950;
    letter-spacing: 0;
    text-transform: uppercase;
}

.eyebrow::before {
    width: 28px;
    height: 2px;
    border-radius: 999px;
    background: currentColor;
    content: "";
}

.lead {
    max-width: 700px;
    color: #d6ddf2;
    font-size: clamp(1.05rem, 2vw, 1.3rem);
}

.actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 32px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    border: 1px solid transparent;
    border-radius: 8px;
    padding: 0 18px;
    cursor: pointer;
    font-weight: 950;
    transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.btn:hover,
.btn:focus {
    transform: translateY(-2px);
}

.btn-primary {
    background: linear-gradient(135deg, var(--gold), #ffe6a5);
    color: #141722;
    box-shadow: 0 18px 50px rgba(241, 199, 106, 0.24);
}

.btn-secondary {
    border-color: rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.07);
    color: var(--ink);
}

.hero-hud {
    display: grid;
    gap: 14px;
}

.hud-panel,
.card,
.stat-card,
.timeline-item,
.feature-panel,
.legal-panel {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--panel);
    box-shadow: var(--shadow);
    backdrop-filter: blur(18px);
}

.hud-panel {
    position: relative;
    padding: 18px;
    overflow: hidden;
}

.hud-panel::before {
    position: absolute;
    inset: 0;
    pointer-events: none;
    content: "";
    background: linear-gradient(120deg, transparent, rgba(75, 215, 255, 0.12), transparent);
    transform: translateX(-100%);
    animation: sweep 5s ease-in-out infinite;
}

.hud-panel small,
.hud-panel strong {
    display: block;
}

.hud-panel small {
    color: var(--dim);
    font-weight: 800;
    text-transform: uppercase;
}

.hud-panel strong {
    margin-top: 4px;
    font-size: 1.15rem;
}

.hero-note {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 24px;
    color: var(--muted);
    font-weight: 800;
}

.pulse-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--green);
    box-shadow: 0 0 0 8px rgba(56, 213, 159, 0.12);
}

.section {
    padding: 88px 0;
}

.section-deep {
    background:
        radial-gradient(circle at 75% 10%, rgba(152, 108, 255, 0.12), transparent 25rem),
        linear-gradient(180deg, rgba(255, 255, 255, 0.025), rgba(255, 255, 255, 0.01));
}

.section-heading {
    width: min(780px, 100%);
    margin-bottom: 34px;
}

.grid-2,
.grid-3,
.grid-4 {
    display: grid;
    gap: 18px;
}

.grid-2 {
    grid-template-columns: repeat(2, 1fr);
}

.grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

.grid-4 {
    grid-template-columns: repeat(4, 1fr);
}

.card,
.feature-panel,
.legal-panel {
    padding: 24px;
}

.card p,
.feature-panel p,
.legal-panel p {
    margin-bottom: 0;
}

.card-topline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 24px;
}

.icon-orb {
    display: grid;
    width: 48px;
    height: 48px;
    place-items: center;
    border: 1px solid rgba(75, 215, 255, 0.24);
    border-radius: 8px;
    background: linear-gradient(145deg, rgba(75, 215, 255, 0.16), rgba(152, 108, 255, 0.16));
    color: var(--blue);
    font-weight: 950;
}

.pill {
    display: inline-flex;
    border: 1px solid rgba(241, 199, 106, 0.28);
    border-radius: 8px;
    padding: 5px 9px;
    color: var(--gold);
    font-size: 0.75rem;
    font-weight: 900;
}

.lifecycle {
    position: relative;
}

.lifecycle::before {
    position: absolute;
    top: 52px;
    right: 8%;
    left: 8%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(75, 215, 255, 0.55), transparent);
    content: "";
}

.timeline-item {
    position: relative;
    min-height: 230px;
    padding: 22px;
}

.egg {
    position: relative;
    width: 58px;
    height: 76px;
    margin-bottom: 26px;
    border-radius: 50% 50% 46% 46%;
    background:
        radial-gradient(circle at 50% 28%, rgba(255, 255, 255, 0.92), transparent 9px),
        linear-gradient(145deg, rgba(75, 215, 255, 0.9), rgba(152, 108, 255, 0.48), rgba(241, 199, 106, 0.42));
    box-shadow: 0 0 30px rgba(75, 215, 255, 0.34);
    animation: eggPulse 2.8s ease-in-out infinite;
}

.egg.stage-2 {
    transform: scale(0.78);
}

.egg.stage-3 {
    transform: scale(0.86);
    clip-path: polygon(0 0, 100% 0, 92% 62%, 74% 48%, 59% 72%, 42% 48%, 26% 71%, 9% 57%);
}

.egg.stage-4,
.egg.stage-5 {
    border-radius: 8px;
    width: 74px;
    height: 54px;
    transform: skewX(-8deg);
}

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

.stat-card {
    min-height: 142px;
    padding: 16px;
}

.stat-card strong {
    display: block;
    margin-bottom: 16px;
}

.stat-track {
    height: 9px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
}

.stat-fill {
    display: block;
    width: 0;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--blue), var(--violet), var(--gold));
    box-shadow: 0 0 18px rgba(75, 215, 255, 0.45);
    transition: width 1100ms ease;
}

.stat-card span:last-child {
    display: block;
    margin-top: 12px;
    color: var(--dim);
    font-size: 0.86rem;
}

.economy-panel {
    min-height: 280px;
}

.store-list {
    display: grid;
    gap: 10px;
    margin-top: 18px;
}

.store-list div {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding-bottom: 10px;
    color: var(--muted);
}

.store-list strong {
    color: var(--ink);
}

.arena-preview {
    position: relative;
    overflow: hidden;
}

.arena-preview::before {
    position: absolute;
    inset: -40% -20%;
    pointer-events: none;
    content: "";
    background: conic-gradient(from 45deg, transparent, rgba(75, 215, 255, 0.22), transparent, rgba(241, 199, 106, 0.14), transparent);
    animation: arenaSweep 10s linear infinite;
}

.arena-stage {
    position: relative;
    display: grid;
    min-height: 360px;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 8px;
    background:
        radial-gradient(ellipse at center, rgba(75, 215, 255, 0.2), transparent 34%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
    overflow: hidden;
}

.arena-ring {
    width: min(76vw, 520px);
    aspect-ratio: 1;
    border: 2px solid rgba(75, 215, 255, 0.36);
    border-radius: 50%;
    box-shadow:
        inset 0 0 80px rgba(75, 215, 255, 0.14),
        0 0 90px rgba(152, 108, 255, 0.16);
}

.arena-ring::before,
.arena-ring::after {
    position: absolute;
    top: 50%;
    width: 80px;
    height: 80px;
    border-radius: 8px;
    background: linear-gradient(145deg, rgba(75, 215, 255, 0.36), rgba(152, 108, 255, 0.28));
    box-shadow: 0 0 40px rgba(75, 215, 255, 0.32);
    content: "";
}

.arena-ring::before {
    left: 18%;
    transform: translateY(-50%) rotate(12deg);
}

.arena-ring::after {
    right: 18%;
    transform: translateY(-50%) rotate(-12deg);
}

.disclaimer {
    border: 1px solid rgba(241, 199, 106, 0.34);
    background:
        linear-gradient(135deg, rgba(241, 199, 106, 0.12), rgba(75, 215, 255, 0.05)),
        var(--panel-strong);
}

.subpage-hero {
    padding: 94px 0 74px;
    background:
        linear-gradient(90deg, rgba(3, 4, 10, 0.96), rgba(3, 4, 10, 0.56)),
        url("../img/emberskin-firefall-hero.webp") center / cover no-repeat;
}

.subpage-hero h1 {
    font-size: clamp(2.4rem, 10vw, 5.5rem);
}

.feature-panel {
    min-height: 260px;
}

.check-list {
    display: grid;
    gap: 12px;
    margin: 18px 0 0;
    padding: 0;
    list-style: none;
}

.check-list li {
    position: relative;
    padding-left: 24px;
    color: var(--muted);
}

.check-list li::before {
    position: absolute;
    top: 0.65em;
    left: 0;
    width: 9px;
    height: 9px;
    border-radius: 999px;
    background: var(--green);
    content: "";
}

.site-footer {
    border-top: 1px solid var(--line);
    background: rgba(2, 3, 9, 0.78);
    padding: 48px 0 88px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.35fr 0.8fr 0.8fr;
    gap: 28px;
}

.footer-grid a {
    display: block;
    margin-top: 9px;
    color: var(--muted);
}

.footer-grid a:hover,
.footer-grid a:focus {
    color: var(--ink);
}

.footer-note {
    margin-top: 34px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 18px;
    color: var(--muted);
    font-size: 0.9rem;
}

.mobile-cta {
    position: fixed;
    right: 14px;
    bottom: 14px;
    left: 14px;
    z-index: 35;
    display: none;
}

.mobile-cta .btn {
    width: 100%;
}

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

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

@keyframes eggPulse {
    0%,
    100% {
        filter: brightness(1);
        transform: translateY(0) scale(1);
    }

    50% {
        filter: brightness(1.18);
        transform: translateY(-5px) scale(1.03);
    }
}

@keyframes sweep {
    0%,
    38% {
        transform: translateX(-100%);
    }

    58%,
    100% {
        transform: translateX(100%);
    }
}

@keyframes arenaSweep {
    to {
        transform: rotate(360deg);
    }
}

@media (max-width: 1060px) {
    .hero-grid,
    .grid-4,
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }

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

@media (max-width: 780px) {
    .container,
    .narrow {
        width: min(100% - 24px, 1160px);
    }

    .nav-shell {
        min-height: 68px;
    }

    .brand {
        gap: 10px;
    }

    .brand-logo {
        width: 44px;
        height: 44px;
        padding: 2px;
    }

    .brand-copy strong {
        font-size: 0.98rem;
    }

    .brand-copy span {
        font-size: 0.68rem;
    }

    .nav-toggle {
        display: block;
    }

    .primary-nav {
        position: absolute;
        top: calc(100% + 1px);
        right: 12px;
        left: 12px;
        display: none;
        border: 1px solid var(--line);
        border-radius: 8px;
        background: rgba(3, 4, 10, 0.96);
        padding: 10px;
        box-shadow: var(--shadow);
    }

    .primary-nav.is-open {
        display: grid;
    }

    .primary-nav a {
        padding: 12px;
    }

    .hero {
        min-height: auto;
        padding: 74px 0 54px;
    }

    .hero-media img {
        object-position: 68% center;
    }

    .hero-media::after {
        background:
            linear-gradient(180deg, rgba(3, 4, 10, 0.74), rgba(3, 4, 10, 0.9)),
            linear-gradient(90deg, rgba(3, 4, 10, 0.92), rgba(3, 4, 10, 0.36));
    }

    .hero-grid,
    .grid-2,
    .grid-3,
    .grid-4,
    .stats-grid,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .actions .btn {
        width: 100%;
    }

    .section {
        padding: 64px 0;
    }

    .lifecycle::before {
        display: none;
    }

    .card,
    .stat-card,
    .timeline-item,
    .feature-panel,
    .legal-panel {
        padding: 20px;
    }

    .mobile-cta {
        display: block;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: 1ms !important;
        transition-duration: 1ms !important;
    }

    .reveal {
        transform: none;
        opacity: 1;
    }

    .stat-fill {
        width: var(--fallback-width, 72%);
    }
}
