:root {
    color-scheme: dark;
    --ink: #f7f3e8;
    --ink-muted: #b9c2ce;
    --ink-faint: #7f8b9b;
    --night: #07111e;
    --night-2: #0b1828;
    --surface: rgba(18, 34, 52, 0.76);
    --surface-solid: #122234;
    --surface-light: rgba(255, 255, 255, 0.07);
    --line: rgba(255, 255, 255, 0.13);
    --line-strong: rgba(255, 255, 255, 0.24);
    --sky: #74d7ff;
    --sky-strong: #22b9f3;
    --gold: #f1c45f;
    --green: #73d8a2;
    --coral: #ff8f79;
    --max: 1200px;
    --radius-sm: 12px;
    --radius: 20px;
    --radius-lg: 32px;
    --shadow: 0 24px 80px rgba(0, 0, 0, 0.34);
    --shadow-soft: 0 14px 40px rgba(0, 0, 0, 0.2);
    --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", Inter, system-ui, sans-serif;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    background: var(--night);
}

body {
    margin: 0;
    min-width: 320px;
    color: var(--ink);
    background:
        radial-gradient(circle at 12% -5%, rgba(39, 133, 180, 0.25), transparent 34rem),
        radial-gradient(circle at 94% 15%, rgba(209, 155, 61, 0.13), transparent 26rem),
        var(--night);
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.62;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

body::before {
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    content: "";
    opacity: 0.22;
    background-image:
        radial-gradient(circle at 25% 25%, rgba(255, 255, 255, 0.55) 0 0.6px, transparent 0.8px),
        radial-gradient(circle at 75% 65%, rgba(116, 215, 255, 0.45) 0 0.7px, transparent 0.9px);
    background-size: 43px 43px, 71px 71px;
}

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

a {
    color: var(--sky);
    text-decoration-thickness: 1px;
    text-underline-offset: 0.18em;
}

a:hover {
    color: #b8ecff;
}

button,
input,
select {
    font: inherit;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

:focus-visible {
    outline: 3px solid var(--sky);
    outline-offset: 4px;
}

.skip-link {
    position: fixed;
    top: 12px;
    left: 12px;
    z-index: 9999;
    padding: 10px 16px;
    border-radius: 999px;
    color: var(--night);
    background: var(--ink);
    transform: translateY(-180%);
}

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

.container {
    width: min(calc(100% - 40px), var(--max));
    margin-inline: auto;
}

.narrow {
    width: min(calc(100% - 40px), 820px);
    margin-inline: auto;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid transparent;
    background: rgba(7, 17, 30, 0.75);
    -webkit-backdrop-filter: blur(22px) saturate(145%);
    backdrop-filter: blur(22px) saturate(145%);
    transition: border-color 180ms ease, background 180ms ease;
}

.site-header.is-scrolled {
    border-color: var(--line);
    background: rgba(7, 17, 30, 0.92);
}

.site-nav {
    display: flex;
    min-height: 72px;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: var(--ink);
    text-decoration: none;
    font-weight: 720;
    letter-spacing: -0.02em;
}

.brand img {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    object-fit: contain;
    filter: drop-shadow(0 5px 14px rgba(0, 0, 0, 0.28));
}

.brand span span {
    color: var(--gold);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.nav-links a {
    display: inline-flex;
    min-height: 42px;
    align-items: center;
    padding: 8px 13px;
    border-radius: 999px;
    color: var(--ink-muted);
    text-decoration: none;
    font-size: 0.92rem;
    font-weight: 600;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
    color: var(--ink);
    background: var(--surface-light);
}

.nav-toggle {
    display: none;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--line);
    border-radius: 50%;
    color: var(--ink);
    background: var(--surface-light);
    cursor: pointer;
}

.nav-toggle svg {
    width: 21px;
    height: 21px;
}

.announcement {
    border-bottom: 1px solid rgba(241, 196, 95, 0.22);
    color: #ffe5a7;
    background: linear-gradient(90deg, rgba(98, 66, 17, 0.9), rgba(55, 45, 24, 0.82));
    text-align: center;
    font-size: 0.88rem;
}

.announcement p {
    margin: 0;
    padding: 8px 16px;
}

.announcement a {
    color: #fff1cb;
    font-weight: 700;
}

.hero {
    position: relative;
    overflow: hidden;
    padding: clamp(64px, 10vw, 132px) 0 72px;
}

.hero::after {
    position: absolute;
    top: -20%;
    right: -15%;
    width: min(62vw, 760px);
    aspect-ratio: 1;
    border: 1px solid rgba(116, 215, 255, 0.1);
    border-radius: 50%;
    content: "";
    box-shadow:
        0 0 0 80px rgba(116, 215, 255, 0.025),
        0 0 0 170px rgba(116, 215, 255, 0.018);
}

.hero-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(390px, 0.95fr);
    align-items: center;
    gap: clamp(36px, 7vw, 88px);
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 18px;
    color: var(--sky);
    font-size: 0.76rem;
    font-weight: 780;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}

.eyebrow::before {
    width: 28px;
    height: 1px;
    content: "";
    background: currentColor;
}

.display-title {
    max-width: 760px;
    margin: 0;
    font-size: clamp(3.2rem, 8vw, 6.8rem);
    font-weight: 760;
    letter-spacing: -0.065em;
    line-height: 0.93;
}

.display-title em {
    display: block;
    color: var(--gold);
    font-style: normal;
}

.hero-copy {
    max-width: 680px;
    margin: 28px 0 0;
    color: var(--ink-muted);
    font-size: clamp(1.05rem, 1.8vw, 1.28rem);
}

.hero-actions,
.product-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 30px;
}

.button {
    display: inline-flex;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 11px 19px;
    border: 1px solid transparent;
    border-radius: 999px;
    color: #07111e;
    background: var(--sky);
    box-shadow: 0 10px 28px rgba(34, 185, 243, 0.2);
    text-decoration: none;
    font-size: 0.94rem;
    font-weight: 720;
    transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
}

.button:hover {
    color: #07111e;
    background: #b9edff;
    transform: translateY(-2px);
}

.button.secondary {
    color: var(--ink);
    border-color: var(--line-strong);
    background: rgba(255, 255, 255, 0.05);
    box-shadow: none;
}

.button.secondary:hover {
    color: var(--ink);
    border-color: var(--sky);
    background: rgba(116, 215, 255, 0.09);
}

.button.gold {
    background: var(--gold);
    box-shadow: 0 10px 28px rgba(241, 196, 95, 0.18);
}

.button.small {
    min-height: 40px;
    padding: 8px 14px;
    font-size: 0.86rem;
}

.button[aria-disabled="true"],
.button.disabled {
    color: var(--ink-faint);
    border-color: var(--line);
    background: rgba(255, 255, 255, 0.04);
    box-shadow: none;
    cursor: not-allowed;
    pointer-events: none;
}

.launch-stack {
    position: relative;
    min-height: 490px;
}

.launch-icon {
    position: absolute;
    width: clamp(120px, 14vw, 185px);
    height: clamp(120px, 14vw, 185px);
    aspect-ratio: 1;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 24%;
    object-fit: cover;
    box-shadow: var(--shadow);
    transform: translateY(var(--floatY, 0px)) rotate(var(--tilt));
    transition: transform 260ms ease;
}

.launch-icon:hover {
    z-index: 10;
    transform: rotate(0) translateY(-10px) scale(1.04);
}

.launch-stack > a:nth-child(1) .launch-icon { top: 15%; left: 5%; --tilt: -9deg; }
.launch-stack > a:nth-child(2) .launch-icon { top: 2%; left: 36%; --tilt: 5deg; }
.launch-stack > a:nth-child(3) .launch-icon { top: 18%; right: 0; --tilt: 9deg; }
.launch-stack > a:nth-child(4) .launch-icon { bottom: 2%; left: 18%; --tilt: 7deg; }
.launch-stack > a:nth-child(5) .launch-icon { right: 12%; bottom: 6%; --tilt: -6deg; }

/* ------------------------------------------------------------------ *
 *  Hero refresh (homepage only) — a restrained entrance and a slow,
 *  out-of-phase float on the app icons. Calm by design: the global
 *  prefers-reduced-motion rule above disables all of it for anyone who
 *  asks their system to reduce motion.
 * ------------------------------------------------------------------ */

/* Registered so the float can be animated (and interpolated) as a length
 * without ever touching the icon's tilt or hover-lift transform. */
@property --floatY {
    syntax: "<length>";
    inherits: false;
    initial-value: 0px;
}

@keyframes heroRise {
    from { opacity: 0; transform: translateY(18px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes heroFloat {
    0%, 100% { --floatY: 0px; }
    50%      { --floatY: -8px; }
}

.hero .eyebrow,
.hero .display-title,
.hero .hero-copy,
.hero .hero-actions,
.hero .launch-stack {
    opacity: 0;
    animation: heroRise 760ms cubic-bezier(0.22, 0.61, 0.36, 1) both;
}

.hero .eyebrow       { animation-delay: 60ms; }
.hero .display-title { animation-delay: 160ms; }
.hero .hero-copy     { animation-delay: 300ms; }
.hero .hero-actions  { animation-delay: 420ms; }
.hero .launch-stack  { animation-delay: 280ms; }

.launch-icon {
    animation: heroFloat 7.2s ease-in-out infinite;
}

.launch-stack > a:nth-child(2) .launch-icon { animation-delay: -1.6s; animation-duration: 7.9s; }
.launch-stack > a:nth-child(3) .launch-icon { animation-delay: -3.2s; animation-duration: 8.5s; }
.launch-stack > a:nth-child(4) .launch-icon { animation-delay: -0.8s; animation-duration: 7.5s; }
.launch-stack > a:nth-child(5) .launch-icon { animation-delay: -2.4s; animation-duration: 8.9s; }

/* A whisper of warmth in the accent words — brighter at the top, settling
 * into the brand gold. Falls back to flat gold where text clipping is not
 * supported. */
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
    .display-title em {
        background: linear-gradient(178deg, #ffd97e 4%, var(--gold) 68%);
        -webkit-background-clip: text;
        background-clip: text;
        color: transparent;
    }
}

/* Slightly calmer line rhythm and a tighter reading measure for the lede. */
.hero-copy {
    max-width: 620px;
    line-height: 1.55;
}

.section {
    padding: clamp(70px, 9vw, 118px) 0;
}

.section.compact {
    padding-block: 56px;
}

.section.tinted {
    border-block: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.025);
}

.section-header {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 28px;
    margin-bottom: 34px;
}

.section-header > div {
    max-width: 760px;
}

.section-title,
.page-title {
    margin: 0;
    font-size: clamp(2.2rem, 5vw, 4.4rem);
    font-weight: 730;
    letter-spacing: -0.05em;
    line-height: 1.02;
}

.section-intro,
.page-intro {
    max-width: 780px;
    margin: 15px 0 0;
    color: var(--ink-muted);
    font-size: 1.08rem;
}

.app-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.app-card {
    position: relative;
    display: flex;
    min-height: 100%;
    flex-direction: column;
    padding: 20px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.018)),
        var(--surface);
    box-shadow: var(--shadow-soft);
    transition: transform 180ms ease, border-color 180ms ease;
}

.app-card:hover {
    border-color: rgba(116, 215, 255, 0.4);
    transform: translateY(-5px);
}

.app-card-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.app-card-icon {
    width: 88px;
    height: 88px;
    flex: 0 0 auto;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 23%;
    object-fit: cover;
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.3);
}

.app-card-link {
    display: flex;
    flex: 1;
    flex-direction: column;
    color: inherit;
    text-decoration: none;
}

.app-card-link:focus-visible {
    outline: 2px solid var(--sky);
    outline-offset: 4px;
    border-radius: var(--radius-sm);
}

.status-pill {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 5px 10px;
    border: 1px solid rgba(115, 216, 162, 0.3);
    border-radius: 999px;
    color: #b7f4d1;
    background: rgba(30, 117, 76, 0.22);
    font-size: 0.72rem;
    font-weight: 750;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.status-pill::before {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    content: "";
    background: currentColor;
    box-shadow: 0 0 0 4px rgba(115, 216, 162, 0.09);
}

.status-pill.soon {
    color: #ffe0a0;
    border-color: rgba(241, 196, 95, 0.3);
    background: rgba(111, 80, 18, 0.23);
}

.status-pill.deferred {
    color: #c8ced7;
    border-color: var(--line);
    background: rgba(255, 255, 255, 0.05);
}

.app-card h3 {
    margin: 22px 0 4px;
    font-size: 1.45rem;
    letter-spacing: -0.025em;
}

.app-card .card-kicker {
    margin: 0 0 13px;
    color: var(--sky);
    font-size: 0.78rem;
    font-weight: 720;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.app-card .card-summary {
    flex: 1;
    margin: 0 0 18px;
    color: var(--ink-muted);
    font-size: 0.94rem;
}

.card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 18px;
}

.tag {
    display: inline-flex;
    padding: 5px 9px;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--ink-muted);
    background: rgba(255, 255, 255, 0.035);
    font-size: 0.75rem;
    font-weight: 600;
}

.card-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding-top: 16px;
    border-top: 1px solid var(--line);
}

.price {
    color: var(--ink);
    font-size: 1.02rem;
    font-weight: 740;
}

.price small {
    display: block;
    color: var(--ink-faint);
    font-size: 0.69rem;
    font-weight: 550;
}

.text-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: var(--sky);
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 720;
}

.text-link::after {
    content: "→";
    transition: transform 150ms ease;
}

.text-link:hover::after {
    transform: translateX(3px);
}

.promise-grid,
.feature-grid,
.stat-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.promise,
.feature-panel,
.stat-card {
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.035);
}

.promise-number {
    display: block;
    margin-bottom: 24px;
    color: var(--gold);
    font-size: 0.75rem;
    font-weight: 780;
    letter-spacing: 0.1em;
}

.promise h3,
.feature-panel h3 {
    margin: 0 0 9px;
    font-size: 1.16rem;
}

.promise p,
.feature-panel p {
    margin: 0;
    color: var(--ink-muted);
    font-size: 0.92rem;
}

.timeline {
    position: relative;
    display: grid;
    gap: 14px;
}

.timeline::before {
    position: absolute;
    top: 28px;
    bottom: 28px;
    left: 133px;
    width: 1px;
    content: "";
    background: linear-gradient(var(--sky), rgba(116, 215, 255, 0.08));
}

.timeline-row {
    display: grid;
    grid-template-columns: 116px minmax(0, 1fr);
    gap: 34px;
    align-items: start;
}

.timeline-date {
    position: relative;
    padding-top: 20px;
    color: var(--sky);
    font-size: 0.82rem;
    font-weight: 760;
    letter-spacing: 0.06em;
    text-align: right;
    text-transform: uppercase;
}

.timeline-date::after {
    position: absolute;
    top: 25px;
    right: -24px;
    width: 9px;
    height: 9px;
    border: 3px solid var(--night);
    border-radius: 50%;
    content: "";
    background: var(--sky);
    box-shadow: 0 0 0 2px rgba(116, 215, 255, 0.26);
}

.timeline-content {
    padding: 20px 22px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.035);
}

.timeline-content h3 {
    margin: 0 0 5px;
    font-size: 1.12rem;
}

.timeline-content p {
    margin: 0;
    color: var(--ink-muted);
    font-size: 0.92rem;
}

.timeline-apps {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 13px;
}

.platform-strip {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    align-items: center;
    gap: 48px;
    padding: clamp(28px, 5vw, 58px);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background:
        radial-gradient(circle at 90% 20%, rgba(116, 215, 255, 0.14), transparent 45%),
        rgba(255, 255, 255, 0.045);
    box-shadow: var(--shadow-soft);
}

.platform-strip h2 {
    margin: 0;
    font-size: clamp(2rem, 4vw, 3.6rem);
    letter-spacing: -0.045em;
    line-height: 1.04;
}

.platform-strip p {
    margin: 18px 0 0;
    color: var(--ink-muted);
}

.platform-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 11px;
}

.platform-list span {
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    color: var(--ink);
    background: rgba(0, 0, 0, 0.15);
    text-align: center;
    font-weight: 680;
}

.page-hero {
    padding: clamp(58px, 9vw, 108px) 0 52px;
}

.page-hero .page-title {
    max-width: 920px;
}

.page-hero .page-intro {
    font-size: clamp(1.02rem, 2vw, 1.25rem);
}

.filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 28px;
}

.filter-button {
    min-height: 40px;
    padding: 7px 13px;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--ink-muted);
    background: rgba(255, 255, 255, 0.035);
    cursor: pointer;
}

.filter-button:hover,
.filter-button.is-active {
    color: var(--night);
    border-color: var(--sky);
    background: var(--sky);
}

.catalog-group + .catalog-group {
    margin-top: 64px;
}

.catalog-group-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 20px;
}

.catalog-group-header h2 {
    margin: 0;
    font-size: clamp(1.65rem, 3vw, 2.4rem);
    letter-spacing: -0.035em;
}

.catalog-group-header p {
    margin: 0;
    color: var(--ink-faint);
    font-size: 0.88rem;
}

.product-hero {
    padding: clamp(56px, 8vw, 100px) 0 70px;
}

/* The learn block sits directly under the hero; one shared breath, not two. */
.product-hero + .learn-section {
    padding-top: clamp(40px, 4.5vw, 60px);
}

.product-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(390px, 1.05fr);
    align-items: center;
    gap: clamp(44px, 8vw, 100px);
}

.product-identity {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 22px;
}

.product-icon {
    width: 74px;
    height: 74px;
    border: 1px solid var(--line-strong);
    border-radius: 23%;
    box-shadow: var(--shadow-soft);
}

.product-identity p {
    margin: 0;
    color: var(--ink-muted);
    font-size: 0.84rem;
}

.product-identity strong {
    display: block;
    color: var(--ink);
    font-size: 1.12rem;
}

.product-title {
    margin: 0;
    font-size: clamp(3rem, 7vw, 6.4rem);
    font-weight: 760;
    letter-spacing: -0.065em;
    line-height: 0.94;
}

.product-tagline {
    max-width: 660px;
    margin: 24px 0 0;
    color: var(--ink-muted);
    font-size: clamp(1.05rem, 2vw, 1.3rem);
}

.product-summary {
    max-width: 620px;
    margin: 14px 0 0;
    color: var(--ink-faint);
    font-size: 0.98rem;
    line-height: 1.66;
}

.product-facts {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-top: 24px;
}

/* Learn — the illustrated guide + "for your mind" entry points. The block
   itself is injected by Tools/guide-strings/deploy_site_guides.py from the
   guide folders that exist on disk. */
.learn-section {
    position: relative;
    padding-block: clamp(52px, 6vw, 84px);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    background:
        radial-gradient(circle at 8% 0%, rgba(116, 215, 255, 0.11), transparent 30rem),
        rgba(255, 255, 255, 0.022);
}

/* One notch below the product title: the guide supports the game, it is not
   the page's headline. */
.learn-section .section-title {
    font-size: clamp(1.9rem, 3.2vw, 2.9rem);
}

.learn-section .section-header {
    margin-bottom: 26px;
}

.learn-lead {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 4px;
}

.learn-subtitle {
    margin: 40px 0 16px;
    color: var(--ink-muted);
    font-size: 0.82rem;
    font-weight: 640;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.learn-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
    gap: 14px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.learn-card {
    display: flex;
    flex-direction: column;
    gap: 14px;
    justify-content: space-between;
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.035);
    transition: border-color 0.2s ease, transform 0.2s ease;
}

.learn-card:hover {
    border-color: var(--line-strong);
    transform: translateY(-2px);
}

.learn-card h4 {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 660;
    letter-spacing: -0.01em;
}

.learn-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

/* Inside a variant card the guide is the lead action, but a row of saturated
   pills would shout. Gold outline reads as primary while staying calm; the
   page keeps exactly one filled gold button (the game's own guide). */
.learn-card .button.small:not(.secondary) {
    border-color: rgba(241, 196, 95, 0.5);
    background: rgba(241, 196, 95, 0.09);
    box-shadow: none;
    color: var(--gold);
}

.learn-card .button.small:not(.secondary):hover {
    border-color: var(--gold);
    background: rgba(241, 196, 95, 0.16);
    color: var(--gold);
}

.product-artboard {
    position: relative;
    display: grid;
    min-height: 520px;
    place-items: center;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 12% 35% 12% 35%;
    background:
        radial-gradient(circle at 50% 40%, rgba(255, 255, 255, 0.2), transparent 42%),
        linear-gradient(145deg, var(--family-light, #417da0), var(--family-dark, #0c2b43));
    box-shadow: var(--shadow);
}

.product-artboard::before {
    position: absolute;
    inset: 7%;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: inherit;
    content: "";
}

.product-artboard img {
    position: relative;
    z-index: 1;
    width: min(90%, 570px);
    max-height: 500px;
    object-fit: contain;
    filter: drop-shadow(0 30px 38px rgba(0, 0, 0, 0.32));
}

.family-italian { --family-light: #527e55; --family-dark: #7d3830; }
.family-international { --family-light: #376b4a; --family-dark: #112e25; }
.family-board { --family-light: #876d4e; --family-dark: #3b2b21; }
.family-skill { --family-light: #3d89b2; --family-dark: #14334e; }
.family-wallet { --family-light: #3d7775; --family-dark: #102e36; }

.content-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.18fr) minmax(280px, 0.82fr);
    gap: 50px;
}

.prose h2 {
    margin: 0 0 18px;
    font-size: clamp(2rem, 4vw, 3.1rem);
    letter-spacing: -0.04em;
}

.prose h3 {
    margin: 36px 0 12px;
    font-size: 1.3rem;
}

.prose p,
.prose li {
    color: var(--ink-muted);
}

.prose ul,
.rule-list {
    margin: 0;
    padding-left: 1.2rem;
}

.prose li + li,
.rule-list li + li {
    margin-top: 10px;
}

.info-panel {
    align-self: start;
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.04);
}

.info-panel h3 {
    margin: 0 0 16px;
    font-size: 1.08rem;
}

.info-list {
    display: grid;
    gap: 0;
    margin: 0;
}

.info-list div {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 16px;
    padding: 12px 0;
    border-top: 1px solid var(--line);
}

.info-list dt {
    color: var(--ink-faint);
}

.info-list dd {
    min-width: 0;
    margin: 0;
    color: var(--ink);
    font-weight: 650;
    overflow-wrap: anywhere;
    text-align: right;
}

.variant-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.variant-card {
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.035);
}

.variant-card h3 {
    margin: 0 0 8px;
    font-size: 1.2rem;
}

.variant-card > p {
    margin: 0 0 16px;
    color: var(--ink-muted);
    font-size: 0.92rem;
}

.rule-list {
    color: var(--ink-muted);
    font-size: 0.87rem;
}

.visual-story {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 18px;
}

.visual-panel {
    position: relative;
    min-height: 380px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: linear-gradient(145deg, rgba(116, 215, 255, 0.1), rgba(255, 255, 255, 0.025));
}

.visual-panel img {
    width: 100%;
    height: 100%;
    max-height: 520px;
    padding: 24px;
    object-fit: contain;
    filter: drop-shadow(0 28px 32px rgba(0, 0, 0, 0.32));
}

.visual-caption {
    position: absolute;
    right: 14px;
    bottom: 14px;
    left: 14px;
    padding: 13px 15px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    color: var(--ink-muted);
    background: rgba(7, 17, 30, 0.82);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    font-size: 0.84rem;
}

.visual-caption strong {
    display: block;
    color: var(--ink);
    font-size: 0.95rem;
}

.device-visual {
    display: grid;
    min-height: 100%;
    place-items: center;
    padding: 26px;
}

.device-frame {
    width: min(100%, 330px);
    padding: 10px;
    border: 1px solid rgba(255, 255, 255, 0.34);
    border-radius: 30px;
    background: #09121d;
    box-shadow: var(--shadow);
    transform: rotate(3deg);
}

.device-screen {
    display: grid;
    aspect-ratio: 0.75;
    place-items: center;
    overflow: hidden;
    border-radius: 22px;
    background: radial-gradient(circle, var(--family-light, #3d89b2), var(--family-dark, #14334e));
}

.device-screen img {
    height: auto;
    padding: 20px;
}

.disclosure {
    padding: 18px 20px;
    border: 1px solid rgba(241, 196, 95, 0.26);
    border-radius: var(--radius-sm);
    color: #e9d9b3;
    background: rgba(98, 68, 15, 0.18);
    font-size: 0.9rem;
}

.disclosure strong {
    color: #ffe3a2;
}

.community-status {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 24px;
    padding: 15px 18px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    color: var(--ink-muted);
    background: rgba(255, 255, 255, 0.035);
    font-size: 0.9rem;
}

.connection-state {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--green);
    font-weight: 700;
}

.connection-state::before {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    content: "";
    background: currentColor;
}

.connection-state.loading { color: var(--gold); }
.connection-state.error { color: var(--coral); }

.stat-card {
    min-height: 150px;
}

.stat-value {
    display: block;
    color: var(--ink);
    font-size: clamp(2rem, 5vw, 3.4rem);
    font-weight: 730;
    letter-spacing: -0.05em;
    line-height: 1;
}

.stat-label {
    display: block;
    margin-top: 14px;
    color: var(--ink-muted);
    font-size: 0.88rem;
}

.live-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
    gap: 22px;
}

.live-panel {
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.035);
}

.live-panel h2 {
    margin: 0;
    font-size: 1.45rem;
    letter-spacing: -0.025em;
}

.panel-subtitle {
    margin: 6px 0 20px;
    color: var(--ink-faint);
    font-size: 0.86rem;
}

.data-list {
    display: grid;
    gap: 10px;
}

.data-row {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 16px;
    padding: 15px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: rgba(0, 0, 0, 0.12);
}

.data-row > * {
    min-width: 0;
}

.data-row h3 {
    margin: 0 0 4px;
    font-size: 0.98rem;
}

.data-row p {
    margin: 0;
    color: var(--ink-faint);
    font-size: 0.8rem;
    overflow-wrap: anywhere;
}

.data-row-value {
    color: var(--gold);
    font-weight: 720;
    text-align: right;
}

.empty-state {
    display: grid;
    min-height: 190px;
    place-items: center;
    padding: 28px;
    border: 1px dashed var(--line-strong);
    border-radius: var(--radius-sm);
    color: var(--ink-muted);
    background: rgba(0, 0, 0, 0.1);
    text-align: center;
}

.empty-state strong {
    display: block;
    margin-bottom: 5px;
    color: var(--ink);
    font-size: 1rem;
}

.empty-state p {
    max-width: 440px;
    margin: 0;
    font-size: 0.86rem;
}

.principle-list {
    display: grid;
    gap: 12px;
    margin: 0;
    padding: 0;
    list-style: none;
    counter-reset: principles;
}

.principle-list li {
    display: grid;
    grid-template-columns: 44px 1fr;
    gap: 16px;
    align-items: start;
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    color: var(--ink-muted);
    background: rgba(255, 255, 255, 0.03);
    counter-increment: principles;
}

.principle-list li::before {
    display: grid;
    width: 44px;
    height: 44px;
    place-items: center;
    border-radius: 50%;
    color: var(--night);
    content: counter(principles, decimal-leading-zero);
    background: var(--gold);
    font-size: 0.75rem;
    font-weight: 780;
}

.principle-list strong {
    display: block;
    margin-bottom: 4px;
    color: var(--ink);
}

.support-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.support-card {
    padding: 26px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.035);
}

.support-card h2 {
    margin: 0 0 10px;
    font-size: 1.3rem;
}

.support-card p {
    margin: 0 0 18px;
    color: var(--ink-muted);
}

.legal-copy h2 {
    margin: 42px 0 12px;
    font-size: 1.6rem;
}

.legal-copy h2:first-child {
    margin-top: 0;
}

.legal-copy p,
.legal-copy li {
    color: var(--ink-muted);
}

.legal-copy li + li {
    margin-top: 8px;
}

.site-footer {
    margin-top: 70px;
    border-top: 1px solid var(--line);
    background: rgba(0, 0, 0, 0.16);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.3fr repeat(3, 0.7fr);
    gap: 42px;
    padding: 56px 0 38px;
}

.footer-brand p {
    max-width: 360px;
    margin: 16px 0 0;
    color: var(--ink-faint);
    font-size: 0.9rem;
}

.footer-motto {
    max-width: 360px;
    margin: 16px 0 0;
    min-height: 1.3em;
    color: var(--gold);
    font-size: 0.95rem;
    font-style: italic;
    transition: opacity 0.5s ease-in-out;
}

.variant-note {
    margin: 24px 0 0;
    color: var(--ink-muted);
    font-size: 0.95rem;
}

.variant-note strong {
    color: var(--ink);
}

.game-pager {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-top: 40px;
}

.pager-link {
    display: flex;
    flex: 1 1 240px;
    align-items: center;
    gap: 13px;
    max-width: 340px;
    padding: 14px 16px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
    color: var(--ink);
    text-decoration: none;
    transition: border-color 180ms ease, transform 180ms ease;
}

.pager-link:hover {
    border-color: rgba(116, 215, 255, 0.4);
    transform: translateY(-3px);
}

.pager-link.next {
    justify-content: flex-end;
    text-align: right;
}

.pager-link img {
    width: 52px;
    height: 52px;
    flex: 0 0 auto;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 23%;
    object-fit: cover;
}

.pager-link span {
    display: flex;
    flex-direction: column;
    font-weight: 650;
}

.pager-link small {
    color: var(--ink-faint);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.pager-all {
    flex: 0 0 auto;
    padding: 11px 18px;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--ink-muted);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 650;
}

.pager-all:hover {
    color: var(--ink);
    border-color: var(--line-strong);
}

.footer-column h2 {
    margin: 0 0 13px;
    color: var(--ink);
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.footer-column ul {
    display: grid;
    gap: 7px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.footer-column a {
    color: var(--ink-muted);
    text-decoration: none;
    font-size: 0.88rem;
}

.footer-column a:hover {
    color: var(--ink);
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 20px 0 28px;
    border-top: 1px solid var(--line);
    color: var(--ink-faint);
    font-size: 0.78rem;
}

.footer-bottom p {
    margin: 0;
}

.error-page {
    display: grid;
    min-height: 70vh;
    place-items: center;
    text-align: center;
}

.error-code {
    margin: 0;
    color: var(--gold);
    font-size: clamp(5rem, 18vw, 12rem);
    font-weight: 780;
    letter-spacing: -0.08em;
    line-height: 0.8;
}

.sr-only {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

@media (max-width: 980px) {
    .hero-grid,
    .product-grid,
    .content-grid,
    .platform-strip,
    .live-layout {
        grid-template-columns: 1fr;
    }

    .launch-stack {
        min-height: 430px;
    }

    .app-grid,
    .promise-grid,
    .feature-grid,
    .stat-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .product-artboard {
        min-height: 440px;
    }

    .footer-grid {
        grid-template-columns: 1.4fr repeat(2, 0.8fr);
    }

    .footer-column:last-child {
        grid-column: 2;
    }
}

@media (max-width: 760px) {
    .container,
    .narrow {
        width: min(calc(100% - 28px), var(--max));
    }

    .nav-toggle {
        display: inline-flex;
    }

    .nav-links {
        position: absolute;
        top: 64px;
        right: 14px;
        left: 14px;
        display: none;
        align-items: stretch;
        padding: 12px;
        border: 1px solid var(--line);
        border-radius: var(--radius);
        background: rgba(10, 24, 39, 0.98);
        box-shadow: var(--shadow);
    }

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

    .nav-links a {
        width: 100%;
        border-radius: var(--radius-sm);
    }

    .display-title {
        font-size: clamp(3.1rem, 17vw, 5.3rem);
    }

    .launch-stack {
        min-height: 370px;
    }

    .launch-icon {
        width: clamp(104px, 31vw, 150px);
        height: clamp(104px, 31vw, 150px);
    }

    .section-header,
    .footer-bottom,
    .community-status {
        align-items: flex-start;
        flex-direction: column;
    }

    .app-grid,
    .promise-grid,
    .feature-grid,
    .stat-grid,
    .variant-grid,
    .support-grid,
    .visual-story,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .footer-column:last-child {
        grid-column: auto;
    }

    .timeline::before {
        left: 7px;
    }

    .timeline-row {
        grid-template-columns: 1fr;
        gap: 7px;
        padding-left: 28px;
    }

    .timeline-date {
        padding-top: 0;
        text-align: left;
    }

    .timeline-date::after {
        top: 6px;
        right: auto;
        left: -25px;
    }

    .platform-list {
        grid-template-columns: 1fr;
    }

    .product-title {
        font-size: clamp(3rem, 16vw, 5.3rem);
    }

    .product-artboard {
        min-height: 360px;
        border-radius: var(--radius-lg);
    }
}

@media (max-width: 470px) {
    .app-grid,
    .promise-grid,
    .feature-grid,
    .stat-grid {
        grid-template-columns: 1fr;
    }

    .launch-stack {
        min-height: 330px;
    }

    .launch-stack > a:nth-child(1) .launch-icon { left: 0; }
    .launch-stack > a:nth-child(2) .launch-icon { left: 34%; }
    .launch-stack > a:nth-child(3) .launch-icon { right: -4%; }
    .launch-stack > a:nth-child(4) .launch-icon { left: 10%; }
    .launch-stack > a:nth-child(5) .launch-icon { right: 6%; }

    .hero-actions .button,
    .product-actions .button {
        width: 100%;
    }

    .product-artboard {
        min-height: 310px;
    }
}

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

@media print {
    .site-header,
    .announcement,
    .site-footer,
    .hero-actions,
    .product-actions,
    .filter-bar {
        display: none !important;
    }

    body {
        color: #111;
        background: #fff;
    }

    .app-card,
    .variant-card,
    .live-panel,
    .stat-card {
        color: #111;
        border-color: #bbb;
        background: #fff;
        box-shadow: none;
        break-inside: avoid;
    }
}

/* ---- Brand marks (three-brand band, page-hero mark, section mark) ---- */

.brand-band {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: clamp(16px, 3vw, 32px);
}

.brand-pillar {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 14px;
    padding: clamp(22px, 3vw, 34px) 20px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface-light);
    color: var(--ink);
    text-decoration: none;
    transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.brand-pillar:hover,
.brand-pillar:focus-visible {
    transform: translateY(-4px);
    border-color: var(--line-strong);
    background: rgba(255, 255, 255, 0.1);
}

.brand-pillar img {
    width: clamp(84px, 12vw, 116px);
    height: auto;
    filter: drop-shadow(0 14px 30px rgba(0, 0, 0, 0.38));
}

.brand-pillar h3 {
    margin: 0;
    font-size: clamp(1.15rem, 2.2vw, 1.45rem);
    letter-spacing: -0.02em;
}

.brand-pillar p {
    margin: 0;
    color: var(--ink-muted);
    font-size: 0.98rem;
    line-height: 1.5;
}

@media (max-width: 760px) {
    .brand-band {
        grid-template-columns: 1fr;
    }
}

/* Large mascot/logo mark centred inside a page hero */
.page-hero.brand-hero {
    text-align: center;
}

.page-hero.brand-hero .page-title,
.page-hero.brand-hero .page-intro {
    margin-left: auto;
    margin-right: auto;
}

.hero-mark {
    display: block;
    width: clamp(140px, 22vw, 220px);
    height: auto;
    margin: 0 auto 26px;
    filter: drop-shadow(0 22px 46px rgba(0, 0, 0, 0.42));
}

/* Small brand mark that leads a prose block (e.g. the Game Coins section) */
.section-mark {
    width: clamp(84px, 10vw, 112px);
    height: auto;
    margin-bottom: 18px;
    filter: drop-shadow(0 14px 30px rgba(0, 0, 0, 0.38));
}
