:root {
    --bg: #000000;
    --surface: #141414;
    --surface-strong: #101010;
    --surface-soft: rgba(255, 255, 255, 0.04);
    --text: #ffffff;
    --text-soft: rgba(255, 255, 255, 0.72);
    --text-muted: rgba(255, 255, 255, 0.56);
    --accent: #eeead7;
    --accent-gold: #7a6200;
    --border: rgba(255, 255, 255, 0.1);
    --border-gold: rgba(122, 98, 0, 0.4);
    --shadow: 0 28px 80px rgba(0, 0, 0, 0.4);
    --radius: 28px;
    --radius-sm: 18px;
    --container: min(1180px, calc(100vw - 40px));
    --transition: 220ms ease;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: "Inter", sans-serif;
    background:
        radial-gradient(circle at top, rgba(122, 98, 0, 0.16), transparent 28%),
        linear-gradient(180deg, #080808 0%, #000000 55%, #060606 100%);
    color: var(--text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

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

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

button,
input,
textarea,
select {
    font: inherit;
}

.site-shell {
    min-height: 100vh;
    overflow: clip;
}

.container {
    width: var(--container);
    margin: 0 auto;
}

.section {
    position: relative;
    padding: 112px 0;
}

section[id],
.anchor-offset,
footer[id] {
    scroll-margin-top: 110px;
}

.section-full {
    min-height: 100vh;
    display: grid;
    align-items: end;
}

.eyebrow,
.panel-label {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--accent);
    margin-bottom: 18px;
}

.eyebrow::before,
.panel-label::before {
    content: "";
    width: 30px;
    height: 1px;
    background: linear-gradient(90deg, var(--accent-gold), transparent);
}

h1,
h2,
h3,
p,
ul {
    margin: 0;
}

h1,
h2 {
    line-height: 1.06;
    letter-spacing: -0.04em;
}

h1 {
    font-size: clamp(3rem, 6vw, 5.9rem);
    max-width: 12ch;
}

h2 {
    font-size: clamp(2.1rem, 4vw, 4rem);
    max-width: 15ch;
}

h3 {
    font-size: 1.18rem;
    line-height: 1.2;
}

p {
    color: var(--text-soft);
    font-size: 1.02rem;
}

.lead {
    max-width: 64ch;
    font-size: clamp(1.06rem, 1.8vw, 1.22rem);
}

.muted-copy {
    color: var(--text-muted);
}

.section-intro {
    display: grid;
    gap: 22px;
}

.section-intro.centered {
    max-width: 780px;
    margin: 0 auto 52px;
    text-align: center;
}

.button-row {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 54px;
    padding: 0 22px;
    border-radius: 999px;
    border: 1px solid transparent;
    transition: transform var(--transition), background var(--transition), border-color var(--transition), color var(--transition), box-shadow var(--transition);
    font-weight: 600;
    letter-spacing: -0.01em;
}

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

.button-primary {
    background: linear-gradient(135deg, var(--accent), #d8cfab);
    color: #111111;
    box-shadow: 0 20px 40px rgba(238, 234, 215, 0.12);
}

.button-secondary {
    background: rgba(255, 255, 255, 0.03);
    border-color: var(--border);
    color: var(--text);
}

.button-secondary:hover,
.button-secondary:focus-visible {
    border-color: rgba(238, 234, 215, 0.35);
    background: rgba(255, 255, 255, 0.06);
}

.site-header {
    position: fixed;
    inset: 0 0 auto;
    z-index: 20;
    padding: 18px 0;
    transition: background var(--transition), backdrop-filter var(--transition), border-color var(--transition), box-shadow var(--transition);
}

.site-header.is-scrolled {
    background: rgba(10, 10, 10, 0.72);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.2);
}

.header-inner,
.header-actions,
.brand,
.site-nav,
.site-nav ul,
.footer-grid,
.two-column,
.authority-grid,
.book-grid,
.apps-grid,
.spotlight-grid,
.hero-content {
    display: flex;
}

.header-inner,
.header-actions,
.site-nav ul {
    align-items: center;
}

.header-inner {
    justify-content: space-between;
    gap: 28px;
}

.brand {
    align-items: center;
    gap: 14px;
    min-width: 0;
}

.brand-mark {
    width: 54px;
    height: 54px;
    border-radius: 16px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02));
    border: 1px solid rgba(255, 255, 255, 0.12);
    overflow: hidden;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
    flex: 0 0 auto;
}

.brand-mark img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 8px;
}

.brand-copy {
    display: grid;
    gap: 2px;
}

.brand-copy strong {
    font-size: 0.95rem;
    letter-spacing: -0.02em;
}

.brand-copy span {
    font-size: 0.78rem;
    color: var(--text-muted);
}

.site-nav {
    align-items: center;
    gap: 24px;
}

.site-nav ul {
    list-style: none;
    gap: 18px;
    padding: 0;
}

.site-nav a {
    color: var(--text-soft);
    font-size: 0.94rem;
    transition: color var(--transition);
}

.site-nav a:hover,
.site-nav a:focus-visible,
.language-switch:hover,
.language-switch:focus-visible {
    color: var(--text);
}

.header-actions {
    gap: 12px;
}

.language-switch {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 999px;
    border: 1px solid var(--border);
    color: var(--text-soft);
    background: rgba(255, 255, 255, 0.03);
    font-weight: 600;
}

.menu-toggle {
    display: none;
    width: 48px;
    height: 48px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.04);
    padding: 0;
}

.menu-toggle span {
    display: block;
    width: 18px;
    height: 1px;
    background: #ffffff;
    margin: 0 auto;
}

.menu-toggle span + span {
    margin-top: 5px;
}

.hero {
    padding-top: 160px;
}

.hero-media,
.spotlight-media,
.apps-background,
.closing-background {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.hero-media img,
.spotlight-media img,
.apps-background img,
.closing-background img {
    width: 100%;
    height: 110%;
    object-fit: cover;
    opacity: 0.35;
    filter: saturate(0.85) brightness(0.48);
    transform: translate3d(0, 0, 0) scale(1.05);
}

.has-media-fallback {
    background:
        radial-gradient(circle at 20% 20%, rgba(238, 234, 215, 0.08), transparent 24%),
        linear-gradient(180deg, rgba(24, 24, 24, 0.96), rgba(4, 4, 4, 1));
}

.portrait-card.has-media-fallback,
.book-visual.has-media-fallback {
    min-height: 420px;
}

.media-gradient {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(0, 0, 0, 0.36), rgba(0, 0, 0, 0.88)),
        radial-gradient(circle at 20% 20%, rgba(238, 234, 215, 0.08), transparent 28%);
    z-index: 1;
}

.hero-grid-overlay {
    position: absolute;
    inset: 0;
    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: 120px 120px;
    mask-image: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.8) 25%, rgba(0, 0, 0, 0.9));
    opacity: 0.18;
}

.hero-content,
.spotlight-grid,
.apps-grid {
    position: relative;
    z-index: 2;
}

.hero-content {
    align-items: end;
    justify-content: space-between;
    gap: 48px;
    padding-bottom: 82px;
}

.hero-panel,
.criteria-card,
.mini-card,
.feature-card,
.ecosystem-card,
.portrait-card,
.app-window,
.closing-card,
.selector-card {
    background: linear-gradient(180deg, rgba(24, 24, 24, 0.88), rgba(12, 12, 12, 0.88));
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    backdrop-filter: blur(8px);
}

.hero-panel {
    max-width: 340px;
    border-radius: var(--radius);
    padding: 28px;
}

.metric-list,
.criteria-list,
.footer-links {
    list-style: none;
    padding: 0;
}

.metric-list {
    display: grid;
    gap: 14px;
    margin: 0;
}

.metric-list li,
.criteria-list li {
    position: relative;
    padding-left: 18px;
    color: var(--text-soft);
}

.metric-list li::before,
.criteria-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.8em;
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--accent), var(--accent-gold));
}

.panel-line {
    width: 100%;
    height: 1px;
    margin: 20px 0;
    background: linear-gradient(90deg, rgba(238, 234, 215, 0.45), transparent);
}

.two-column,
.authority-grid,
.book-grid,
.apps-grid,
.spotlight-grid {
    justify-content: space-between;
    gap: 42px;
}

.two-column > *,
.authority-grid > *,
.book-grid > *,
.apps-grid > *,
.spotlight-grid > * {
    flex: 1 1 0;
}

.mini-grid,
.scarcity-grid,
.card-grid {
    display: grid;
    gap: 18px;
}

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

.mini-card,
.feature-card,
.ecosystem-card {
    border-radius: 24px;
    padding: 28px;
}

.mini-card {
    min-height: 220px;
}

.mini-card p,
.ecosystem-card p {
    margin-top: 12px;
}

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

.feature-card {
    min-height: 170px;
    display: grid;
    align-content: space-between;
}

.icon-wrap {
    width: 52px;
    height: 52px;
    border-radius: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--accent);
}

.icon-accent {
    box-shadow: inset 0 0 0 1px rgba(122, 98, 0, 0.22);
}

.icon-wrap svg {
    width: 22px;
    height: 22px;
    fill: currentColor;
}

.card-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-top: 38px;
}

.ecosystem-card {
    display: grid;
    gap: 16px;
    min-height: 320px;
    transition: transform var(--transition), border-color var(--transition), background var(--transition);
}

.ecosystem-card:hover,
.ecosystem-card:focus-visible {
    transform: translateY(-4px);
    border-color: rgba(238, 234, 215, 0.26);
    background: linear-gradient(180deg, rgba(28, 28, 28, 0.96), rgba(12, 12, 12, 0.92));
}

.card-link {
    margin-top: auto;
    color: var(--accent);
    font-size: 0.92rem;
}

.feature-spotlight {
    overflow: hidden;
}

.spotlight-grid {
    align-items: center;
}

.spotlight-copy {
    position: relative;
    z-index: 2;
    display: grid;
    gap: 22px;
}

.criteria-card {
    border-radius: 32px;
    padding: 34px;
    max-width: 420px;
    justify-self: end;
    border-color: var(--border-gold);
}

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

.portrait-card,
.book-visual {
    border-radius: 30px;
    overflow: hidden;
}

.portrait-card img,
.book-visual img {
    width: 100%;
    height: 100%;
    min-height: 520px;
    object-fit: cover;
    filter: saturate(0.82) brightness(0.88);
}

.portrait-card figcaption {
    padding: 18px 22px 24px;
    color: var(--text-muted);
    background: var(--surface-strong);
}

.app-showcase {
    display: grid;
    align-items: center;
}

.app-window {
    border-radius: 30px;
    overflow: hidden;
    max-width: 460px;
    justify-self: end;
}

.window-top {
    display: flex;
    gap: 8px;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border);
}

.window-top span {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
}

.window-body {
    display: grid;
    gap: 24px;
    padding: 28px;
}

.stat-card {
    display: grid;
    gap: 8px;
    padding: 24px;
    border-radius: 24px;
    background: linear-gradient(180deg, rgba(238, 234, 215, 0.1), rgba(255, 255, 255, 0.03));
    border: 1px solid rgba(238, 234, 215, 0.2);
}

.stat-card strong {
    font-size: clamp(2.3rem, 4vw, 3.5rem);
    line-height: 1;
    letter-spacing: -0.05em;
}

.mini-bars {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    align-items: end;
    gap: 12px;
    min-height: 110px;
}

.mini-bars span {
    display: block;
    border-radius: 999px 999px 12px 12px;
    background: linear-gradient(180deg, rgba(238, 234, 215, 0.8), rgba(122, 98, 0, 0.9));
}

.mini-bars span:nth-child(1) { height: 42%; }
.mini-bars span:nth-child(2) { height: 74%; }
.mini-bars span:nth-child(3) { height: 58%; }
.mini-bars span:nth-child(4) { height: 88%; }

.insight-line {
    color: var(--text-soft);
    padding-top: 8px;
    border-top: 1px solid var(--border);
}

.closing-section {
    overflow: hidden;
}

.closing-card {
    position: relative;
    z-index: 1;
    max-width: 860px;
    border-radius: 36px;
    padding: clamp(30px, 4vw, 48px);
}

.site-footer {
    padding: 44px 0 64px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-grid {
    gap: 28px;
    align-items: start;
}

.footer-grid > * {
    flex: 1 1 0;
}

.footer-links {
    display: grid;
    gap: 12px;
    margin-top: 16px;
}

.footer-links a {
    color: var(--text-soft);
}

.footer-links a:hover,
.footer-links a:focus-visible {
    color: var(--text);
}

.brand-footer .brand-copy span {
    max-width: 28ch;
}

.language-selector {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 24px;
    position: relative;
    overflow: hidden;
}

.anchor-offset {
    height: 1px;
}

.selector-backdrop {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 50% 20%, rgba(238, 234, 215, 0.08), transparent 28%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent 20%),
        linear-gradient(180deg, #050505 0%, #000000 100%);
}

.selector-card {
    position: relative;
    z-index: 1;
    width: min(560px, 100%);
    border-radius: 34px;
    padding: 40px 32px;
    text-align: center;
}

.selector-logo {
    margin: 0 auto 22px;
    width: 82px;
    height: 82px;
    border-radius: 24px;
}

.selector-card h1 {
    max-width: none;
    font-size: clamp(2.4rem, 8vw, 4rem);
    margin-bottom: 10px;
}

.selector-card p {
    margin-bottom: 28px;
}

.selector-actions {
    display: flex;
    gap: 14px;
    justify-content: center;
    margin-bottom: 18px;
}

.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 700ms ease, transform 700ms ease;
}

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

body.reduce-motion *,
body.reduce-motion *::before,
body.reduce-motion *::after {
    scroll-behavior: auto !important;
    animation: none !important;
    transition-duration: 0.01ms !important;
}

@media (max-width: 1080px) {
    .card-grid,
    .scarcity-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .hero-content,
    .two-column,
    .authority-grid,
    .book-grid,
    .apps-grid,
    .spotlight-grid,
    .footer-grid {
        flex-direction: column;
    }

    .hero-panel,
    .criteria-card,
    .app-window {
        max-width: none;
        justify-self: stretch;
    }
}

@media (max-width: 860px) {
    .menu-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        flex-direction: column;
    }

    .site-nav {
        position: absolute;
        top: calc(100% + 12px);
        left: 20px;
        right: 20px;
        display: none;
        flex-direction: column;
        align-items: stretch;
        padding: 18px;
        border-radius: 26px;
        background: rgba(10, 10, 10, 0.96);
        border: 1px solid var(--border);
        box-shadow: var(--shadow);
    }

    .site-nav.is-open {
        display: flex;
    }

    .site-nav ul,
    .header-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .site-nav ul {
        gap: 6px;
    }

    .site-nav a,
    .language-switch {
        width: 100%;
        min-height: 48px;
        border-radius: 18px;
        padding: 0 14px;
        background: rgba(255, 255, 255, 0.03);
    }

    .button {
        width: 100%;
    }

    .mini-grid,
    .card-grid,
    .scarcity-grid,
    .selector-actions {
        grid-template-columns: 1fr;
        flex-direction: column;
    }

    .section {
        padding: 88px 0;
    }

    .hero {
        min-height: auto;
        padding-top: 132px;
    }

    .hero-content {
        padding-bottom: 40px;
    }

    .brand-copy span {
        display: none;
    }
}

@media (max-width: 640px) {
    :root {
        --container: calc(100vw - 28px);
    }

    h1 {
        font-size: clamp(2.6rem, 13vw, 4.1rem);
    }

    h2 {
        font-size: clamp(2rem, 10vw, 3rem);
    }

    .hero-panel,
    .mini-card,
    .feature-card,
    .ecosystem-card,
    .criteria-card,
    .closing-card,
    .selector-card,
    .window-body {
        padding: 22px;
    }

    .portrait-card img,
    .book-visual img {
        min-height: 360px;
    }
}
