:root {
    --bg: #0f1117;
    --bg-soft: #171a24;
    --panel: rgba(27, 31, 45, 0.82);
    --panel-strong: rgba(36, 41, 59, 0.92);
    --text: #f5ead2;
    --muted: #c6b997;
    --gold: #d3a24f;
    --amber: #ffcc73;
    --ember: #d35f34;
    --moss: #617447;
    --line: rgba(255, 214, 143, 0.12);
    --shadow: 0 30px 70px rgba(0, 0, 0, 0.42);
    --radius-xl: 28px;
    --radius-lg: 22px;
    --max-width: 1180px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--text);
    font-family: "IBM Plex Sans", sans-serif;
    background:
        radial-gradient(circle at top center, rgba(211, 95, 52, 0.12), transparent 22%),
        radial-gradient(circle at 15% 15%, rgba(211, 162, 79, 0.14), transparent 18%),
        linear-gradient(180deg, #19140f 0%, #0f1117 24%, #0c0e14 100%);
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    opacity: 0.18;
    background-image:
        linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
    background-size: 28px 28px;
}

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

.page-shell {
    width: min(calc(100% - 32px), var(--max-width));
    margin: 0 auto;
    padding-bottom: 28px;
}

.topbar {
    position: sticky;
    top: 16px;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    flex-wrap: wrap;
    margin-top: 18px;
    padding: 16px 22px;
    background: rgba(20, 22, 32, 0.84);
    border: 1px solid rgba(211, 162, 79, 0.14);
    border-radius: 999px;
    backdrop-filter: blur(16px);
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.28);
}

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

.brand-gem {
    position: relative;
    width: 42px;
    height: 42px;
    border-radius: 14px;
    background:
        radial-gradient(circle at 30% 30%, rgba(255,255,255,0.45), transparent 22%),
        linear-gradient(135deg, #bf3c2b, #d3a24f 50%, #7e944a);
    box-shadow: inset 0 0 0 2px rgba(255,255,255,0.08), 0 0 20px rgba(211, 162, 79, 0.2);
}

.brand-text strong,
h1,
h2,
h3,
.mini-label,
.app-like {
    font-family: "Press Start 2P", cursive;
}

.brand-text strong {
    display: block;
    font-size: 0.9rem;
    line-height: 1.4;
}

.brand-text small,
.nav a,
.top-link,
.hero-text,
.section-heading p:last-child,
.feature-card p,
.timeline p,
.status-card p,
.footer p,
.hero-points li,
.hero-card p {
    color: var(--muted);
}

.brand-text small,
.nav a,
.top-link {
    font-size: 0.88rem;
}

.nav,
.hero-actions,
.hero-points,
.status-actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    align-items: center;
}

.hero,
.section {
    padding: 82px 0;
}

.hero {
    display: grid;
    grid-template-columns: 1.08fr 0.92fr;
    gap: 40px;
    align-items: center;
    min-height: calc(100vh - 120px);
}

.eyebrow {
    margin: 0 0 14px;
    color: var(--amber);
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-size: 0.82rem;
    font-weight: 700;
}

h1 {
    margin: 0;
    font-size: clamp(2.3rem, 5vw, 4.1rem);
    line-height: 1.1;
    color: #fff4dc;
}

h2 {
    margin: 0;
    font-size: clamp(1.6rem, 3vw, 2.6rem);
    line-height: 1.35;
    color: #fff0cf;
}

h3 {
    margin: 0 0 10px;
    font-size: 1rem;
    line-height: 1.6;
    color: #ffe8bc;
}

.hero-text {
    max-width: 60ch;
    margin: 20px 0 30px;
    line-height: 1.75;
    font-size: 1.05rem;
}

.primary-button,
.secondary-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    padding: 0 18px;
    border-radius: 14px;
    font-weight: 700;
    border: 1px solid transparent;
    transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.primary-button {
    color: #20150f;
    background: linear-gradient(180deg, #f4c970, #c68b34);
    box-shadow: 0 16px 34px rgba(198, 139, 52, 0.24);
}

.secondary-button {
    color: #ffe6b5;
    background: rgba(255, 214, 143, 0.08);
    border-color: rgba(255, 214, 143, 0.16);
}

.primary-button:hover,
.secondary-button:hover,
.top-link:hover {
    transform: translateY(-1px);
}

.top-link {
    font-weight: 700;
    color: #ffe2aa;
}

.hero-points {
    list-style: none;
    padding: 0;
    margin: 26px 0 0;
}

.hero-points li {
    padding: 12px 16px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(255, 232, 188, 0.04);
}

.hero-panel {
    position: relative;
    min-height: 390px;
}

.hero-card,
.feature-card,
.status-card,
.timeline article {
    border-radius: var(--radius-xl);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
}

.hero-card {
    padding: 28px;
}

.hero-card.parchment {
    background:
        linear-gradient(180deg, rgba(58, 45, 31, 0.96), rgba(34, 28, 20, 0.94)),
        var(--panel);
    max-width: 430px;
}

.hero-card.crystal {
    position: absolute;
    right: 0;
    bottom: 10px;
    width: min(320px, 100%);
    background:
        radial-gradient(circle at top right, rgba(211, 95, 52, 0.24), transparent 40%),
        linear-gradient(180deg, rgba(38, 30, 43, 0.95), rgba(24, 22, 34, 0.92));
}

.mini-label {
    display: inline-flex;
    margin-bottom: 16px;
    padding: 9px 12px;
    border-radius: 12px;
    background: rgba(255, 214, 143, 0.08);
    color: var(--amber);
    font-size: 0.7rem;
    line-height: 1.6;
}

.section-heading {
    display: grid;
    gap: 16px;
    max-width: 860px;
    margin-bottom: 30px;
}

.section-heading.narrow {
    max-width: 760px;
}

.feature-grid,
.timeline {
    display: grid;
    gap: 22px;
}

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

.feature-card {
    padding: 26px;
    background:
        linear-gradient(180deg, rgba(27, 31, 45, 0.88), rgba(18, 20, 28, 0.94));
}

.accent-section {
    position: relative;
}

.accent-section::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: var(--radius-xl);
    background: linear-gradient(180deg, rgba(211, 162, 79, 0.04), rgba(211, 95, 52, 0.03));
    pointer-events: none;
}

.timeline article {
    display: grid;
    grid-template-columns: 70px 1fr;
    gap: 18px;
    padding: 24px;
    background: rgba(20, 24, 34, 0.86);
}

.timeline span {
    display: grid;
    place-items: center;
    width: 54px;
    height: 54px;
    border-radius: 16px;
    background: linear-gradient(180deg, rgba(198, 139, 52, 0.22), rgba(211, 95, 52, 0.12));
    border: 1px solid rgba(255, 214, 143, 0.16);
    color: #ffe1ae;
    font-family: "Press Start 2P", cursive;
    font-size: 0.9rem;
}

.status-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
    padding: 30px;
    background:
        radial-gradient(circle at top right, rgba(211, 95, 52, 0.2), transparent 24%),
        linear-gradient(180deg, rgba(29, 23, 18, 0.96), rgba(18, 19, 27, 0.95));
}

.footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    padding: 26px 0 40px;
    border-top: 1px solid rgba(255, 214, 143, 0.08);
}

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

    .hero {
        min-height: unset;
    }

    .hero-panel {
        min-height: unset;
    }

    .hero-card.crystal {
        position: static;
        width: 100%;
        margin-top: 18px;
    }
}

@media (max-width: 720px) {
    .page-shell {
        width: min(calc(100% - 20px), var(--max-width));
    }

    .topbar {
        border-radius: 28px;
    }

    .hero,
    .section {
        padding: 58px 0;
    }

    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.45rem;
    }

    .feature-card,
    .status-card,
    .hero-card,
    .timeline article {
        padding: 22px;
    }

    .timeline article {
        grid-template-columns: 1fr;
    }
}
