:root {
    --cream: #fff8df;
    --paper: #fffdf4;
    --ink: #23233a;
    --muted: #68687f;
    --blue: #3178ff;
    --aqua: #14b8a6;
    --pink: #ff5d9e;
    --orange: #ff9f1c;
    --yellow: #ffe45e;
    --purple: #7257ff;
    --line: rgba(35, 35, 58, .12);
    --shadow: 0 24px 70px rgba(49, 64, 124, .18);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    color: var(--ink);
    font-family: Figtree, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background:
        linear-gradient(90deg, rgba(49, 120, 255, .055) 1px, transparent 1px),
        linear-gradient(0deg, rgba(255, 93, 158, .05) 1px, transparent 1px),
        linear-gradient(180deg, #fffdf4 0%, #fff4c7 52%, #e9fbff 100%);
    background-size: 36px 36px, 36px 36px, auto;
    min-height: 100vh;
}

a { color: inherit; text-decoration: none; }
.skip-link, .sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
.skip-link:focus {
    width: auto;
    height: auto;
    clip: auto;
    padding: .75rem 1rem;
    margin: .75rem;
    background: var(--ink);
    color: white;
    z-index: 10;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 5;
    background: rgba(255, 253, 244, .92);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(16px);
}
.header-shell, .hero-shell, .section, .market-shell, .footer-shell {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
}
.header-shell {
    display: grid;
    grid-template-columns: auto minmax(240px, 1fr);
    gap: 16px 22px;
    align-items: center;
    padding: 16px 0;
}
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; }
.brand-mark {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border: 3px solid var(--ink);
    border-radius: 8px;
    color: white;
    background: linear-gradient(135deg, var(--blue), var(--pink) 58%, var(--orange));
    box-shadow: 5px 5px 0 var(--yellow);
    font-size: .95rem;
}
.brand-text { font-size: 1.15rem; }
.site-search { position: relative; }
.site-search input {
    width: 100%;
    border: 2px solid var(--line);
    border-radius: 999px;
    padding: 13px 72px 13px 18px;
    background: white;
    color: var(--muted);
    font: inherit;
}
.search-note {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    border-radius: 999px;
    background: var(--yellow);
    padding: 5px 10px;
    font-size: .78rem;
    font-weight: 800;
}
.primary-nav {
    grid-column: 1 / -1;
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 2px;
}
.primary-nav a {
    white-space: nowrap;
    border: 1px solid var(--line);
    background: white;
    border-radius: 999px;
    padding: 8px 12px;
    font-size: .92rem;
    font-weight: 700;
}

.hero { position: relative; overflow: hidden; padding: 74px 0 46px; }
.hero-grid {
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: .38;
}
.hero-grid span { position: absolute; width: 86px; height: 86px; border: 10px solid rgba(255, 93, 158, .35); }
.hero-grid span:nth-child(1) { left: 5%; top: 16%; }
.hero-grid span:nth-child(2) { right: 8%; top: 10%; border-color: rgba(49, 120, 255, .28); }
.hero-grid span:nth-child(3) { left: 46%; bottom: 8%; border-color: rgba(20, 184, 166, .28); }
.hero-grid span:nth-child(4) { right: 22%; bottom: 20%; border-color: rgba(255, 159, 28, .38); }
.hero-shell {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(320px, .72fr);
    gap: 44px;
    align-items: center;
}
.eyebrow {
    margin: 0 0 12px;
    color: var(--purple);
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}
h1, h2, h3, p { overflow-wrap: anywhere; }
h1 {
    margin: 0;
    max-width: 760px;
    font-size: clamp(2.65rem, 6vw, 5.8rem);
    line-height: .95;
    letter-spacing: 0;
}
.hero-text {
    max-width: 710px;
    color: var(--muted);
    font-size: 1.18rem;
    line-height: 1.65;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 20px;
    border: 2px solid var(--ink);
    border-radius: 8px;
    font-weight: 800;
    box-shadow: 5px 5px 0 rgba(35, 35, 58, .14);
}
.button-primary { background: var(--blue); color: white; }
.button-secondary { background: var(--yellow); }
.hero-panel { display: flex; justify-content: center; }
.screen-card {
    width: min(100%, 390px);
    border: 3px solid var(--ink);
    border-radius: 8px;
    background: white;
    box-shadow: var(--shadow), 9px 9px 0 var(--ink);
    overflow: hidden;
}
.screen-topbar { display: flex; gap: 7px; padding: 14px; background: #f4f0ff; border-bottom: 3px solid var(--ink); }
.screen-topbar span { width: 13px; height: 13px; border-radius: 50%; background: var(--pink); border: 2px solid var(--ink); }
.screen-topbar span:nth-child(2) { background: var(--yellow); }
.screen-topbar span:nth-child(3) { background: var(--aqua); }
.pixel-scene { position: relative; min-height: 210px; background: linear-gradient(#74d7ff 0 45%, #ffd166 45% 58%, #86efac 58%); overflow: hidden; }
.sun { position: absolute; width: 82px; height: 82px; border-radius: 50%; background: var(--yellow); right: 34px; top: 28px; border: 3px solid var(--ink); }
.mountains { position: absolute; inset: auto 0 42px; height: 92px; background: linear-gradient(135deg, transparent 0 28%, #7257ff 28% 50%, transparent 50%), linear-gradient(45deg, transparent 0 35%, #14b8a6 35% 58%, transparent 58%); background-size: 160px 92px, 190px 92px; }
.track { position: absolute; left: 0; right: 0; bottom: 0; height: 48px; background: repeating-linear-gradient(90deg, var(--ink) 0 22px, #fff 22px 36px); border-top: 3px solid var(--ink); }
.stat-row { display: flex; justify-content: space-between; gap: 16px; padding: 14px 18px; border-top: 1px solid var(--line); }
.stat-row span { color: var(--muted); font-weight: 700; }

.section { padding: 50px 0; }
.section-heading { margin-bottom: 24px; }
.section-heading h2, .market-shell h2 { margin: 0; font-size: clamp(1.8rem, 3vw, 3rem); line-height: 1.08; letter-spacing: 0; }
.split-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; }
.split-heading p { max-width: 360px; color: var(--muted); line-height: 1.55; }
.era-grid, .explore-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.era-card, .explore-card, .system-card {
    border: 2px solid var(--line);
    border-radius: 8px;
    background: rgba(255, 255, 255, .84);
    box-shadow: 0 14px 34px rgba(49, 64, 124, .1);
}
.era-card { padding: 22px; border-color: rgba(35, 35, 58, .18); }
.era-card span { display: block; font-size: 2.2rem; font-weight: 900; }
.era-card small { display: block; margin-top: 8px; color: var(--muted); font-size: .96rem; line-height: 1.4; }
.system-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }
.system-card { padding: 18px; min-height: 142px; }
.system-icon { display: block; width: 46px; height: 28px; border-radius: 8px; border: 3px solid var(--ink); background: linear-gradient(90deg, var(--pink) 0 30%, var(--yellow) 30% 64%, var(--aqua) 64%); box-shadow: 4px 4px 0 rgba(35,35,58,.15); }
.system-card h3, .explore-card h3 { margin: 16px 0 7px; font-size: 1.05rem; }
.system-card p, .explore-card p { margin: 0; color: var(--muted); line-height: 1.45; }
.explore-grid { grid-template-columns: repeat(4, 1fr); }
.explore-card { padding: 20px; min-height: 190px; border-top: 6px solid var(--orange); }
.explore-card:nth-child(2n) { border-top-color: var(--blue); }
.explore-card:nth-child(3n) { border-top-color: var(--pink); }
.explore-card:nth-child(4n) { border-top-color: var(--aqua); }
.market-section { padding: 34px 0 70px; }
.market-shell {
    display: grid;
    grid-template-columns: .9fr 1fr;
    gap: 28px;
    align-items: center;
    border: 3px solid var(--ink);
    border-radius: 8px;
    padding: 30px;
    background: linear-gradient(135deg, #ffffff, #e8fbff 48%, #fff1bd);
    box-shadow: 8px 8px 0 var(--ink);
}
.market-shell p:last-child { color: var(--muted); line-height: 1.65; margin: 0; }
.site-footer { background: var(--ink); color: white; margin-top: 40px; }
.footer-shell { display: flex; justify-content: space-between; gap: 34px; padding: 34px 0; }
.footer-brand { font-weight: 900; font-size: 1.2rem; }
.footer-shell p { max-width: 540px; color: rgba(255,255,255,.72); line-height: 1.55; }
.footer-shell nav { display: flex; flex-wrap: wrap; gap: 10px 16px; justify-content: flex-end; align-content: flex-start; }
.footer-shell nav a { color: rgba(255,255,255,.86); font-weight: 700; }

@media (max-width: 940px) {
    .hero-shell, .market-shell { grid-template-columns: 1fr; }
    .hero { padding-top: 46px; }
    .system-grid { grid-template-columns: repeat(2, 1fr); }
    .explore-grid { grid-template-columns: repeat(2, 1fr); }
    .split-heading { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 680px) {
    .header-shell { grid-template-columns: 1fr; }
    .brand-text { font-size: 1.05rem; }
    .hero-actions .button { width: 100%; }
    .era-grid, .explore-grid, .system-grid { grid-template-columns: 1fr; }
    .screen-card { box-shadow: var(--shadow), 5px 5px 0 var(--ink); }
    .market-shell { padding: 22px; box-shadow: 5px 5px 0 var(--ink); }
    .footer-shell { flex-direction: column; }
    .footer-shell nav { justify-content: flex-start; }
}

.breadcrumbs {
    margin: 0 0 20px;
    font-size: .92rem;
    font-weight: 700;
}
.breadcrumbs ol {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    list-style: none;
    margin: 0;
    padding: 0;
}
.breadcrumbs li:not(:last-child)::after {
    content: "/";
    margin-left: 8px;
    color: var(--muted);
}
.breadcrumbs a { color: var(--blue); }
.entity-hero {
    padding: 34px 0 20px;
}
.entity-shell {
    max-width: 920px;
}
.entity-summary, .muted-copy {
    color: var(--muted);
    font-size: 1.08rem;
    line-height: 1.68;
    max-width: 780px;
}
.entity-image {
    margin: 28px 0 0;
    border: 2px solid var(--line);
    border-radius: 8px;
    overflow: hidden;
    background: white;
}
.entity-image img {
    display: block;
    width: 100%;
    height: auto;
}
.entity-image figcaption {
    padding: 12px 16px;
    color: var(--muted);
    font-size: .92rem;
}
.related-section, .blog-article {
    max-width: 920px;
}
.article-body {
    color: var(--ink);
    line-height: 1.75;
    font-size: 1.05rem;
}.related-links {
    display: grid;
    gap: 12px;
    list-style: none;
    margin: 0;
    padding: 0;
}
.related-links li {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    border: 2px solid var(--line);
    border-radius: 8px;
    background: rgba(255, 255, 255, .86);
    padding: 14px 16px;
}
.related-links a {
    color: var(--blue);
    font-weight: 800;
}
.related-links span {
    color: var(--muted);
    font-size: .9rem;
    font-weight: 700;
}
