/* ===================================================
   TOP JUMP — Brand Design System
   =================================================== */

:root {
    --brand-orange:   #fa9b55;
    --brand-orange-d: #e8873f;
    --brand-orange-g: rgba(250, 155, 85, 0.14);
    --brand-slate:    #3d4052;
    --brand-slate-d:  #2a2c36;
    --brand-slate-dd: #1e1f27;

    --bg-base:        #14151a;
    --bg-surface:     #1c1d24;
    --bg-card:        #24262f;
    --bg-elevated:    #2c2e38;

    --border:         rgba(255, 255, 255, 0.07);
    --border-strong:  rgba(250, 155, 85, 0.28);

    --text-primary:   #f2ede6;
    --text-secondary: #b8b2aa;
    --text-muted:     #7a756e;

    --font-display:   'Lilita One', Georgia, serif;
    --font-body:      'Inter', system-ui, -apple-system, sans-serif;

    --nav-height:     64px;
    --page-gutter:    clamp(1.25rem, 4vw, 3rem);
    --section-gap:    clamp(4rem, 10vw, 7rem);
    --content-max:    1200px;
    --safe-bottom:    env(safe-area-inset-bottom, 0px);

    --radius-sm:  8px;
    --radius-md:  14px;
    --radius-lg:  20px;

    --ease-out:    cubic-bezier(0.22, 1, 0.36, 1);
    --ease-spring: cubic-bezier(0.34, 1.2, 0.64, 1);
    --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);

    --store-btn-w: 168px;
    --store-btn-h: 50px;
    --store-btn-r: 8px;

    --scroll-track-right: 14px;
    --scroll-track-w: 8px;

    --btn-depth: 4px;
}

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

html {
    -webkit-text-size-adjust: 100%;
    scrollbar-width: none;
    overflow-y: scroll;
}

html::-webkit-scrollbar { display: none; }

body {
    font-family: var(--font-body);
    background: var(--bg-base);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    padding-right: calc(var(--scroll-track-right) + var(--scroll-track-w) + 14px);
}


/* Custom detached scrollbar */
.scroll-track {
    position: fixed;
    top: calc(var(--nav-height) + 20px + env(safe-area-inset-top, 0px));
    right: var(--scroll-track-right);
    bottom: 24px;
    width: var(--scroll-track-w);
    background: rgba(255, 255, 255, 0.04);
    border-radius: 99px;
    z-index: 900;
    opacity: 0;
    transition: opacity 0.3s var(--ease-out);
    pointer-events: none;
}

.scroll-track.visible {
    opacity: 1;
    pointer-events: auto;
}

.scroll-track.visible .scroll-thumb {
    pointer-events: auto;
}

.scroll-thumb {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    min-height: 40px;
    background: linear-gradient(180deg, #ffb06a, var(--brand-orange));
    border-radius: 99px;
    box-shadow: 0 0 12px rgba(250, 155, 85, 0.35);
    will-change: transform, height;
    cursor: grab;
}

.scroll-thumb.is-dragging {
    cursor: grabbing;
    box-shadow: 0 0 18px rgba(250, 155, 85, 0.55);
}

@media (max-width: 768px) {
    body { padding-right: 0; }
    .scroll-track { display: none; }
}

/* Ambient background */
.ambient-bg {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.ambient-bg::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 65% 45% at 20% 0%, rgba(250, 155, 85, 0.08) 0%, transparent 55%),
        radial-gradient(ellipse 50% 40% at 90% 80%, rgba(61, 64, 82, 0.35) 0%, transparent 60%);
    transition: transform 0.6s var(--ease-out);
}

.ambient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    pointer-events: none;
    transition: transform 0.8s var(--ease-out), opacity 0.8s var(--ease-out);
}

.ambient-orb--1 {
    width: 280px;
    height: 280px;
    background: rgba(250, 155, 85, 0.07);
    top: 12%;
    left: 8%;
}

.ambient-orb--2 {
    width: 220px;
    height: 220px;
    background: rgba(61, 64, 82, 0.25);
    bottom: 18%;
    right: 10%;
}

.ambient-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    opacity: 0.025;
    background-image:
        linear-gradient(rgba(255,255,255,0.5) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.5) 1px, transparent 1px);
    background-size: 52px 52px;
    mask-image: radial-gradient(ellipse 75% 65% at 50% 35%, black 15%, transparent 70%);
}

a {
    color: var(--brand-orange);
    text-decoration: none;
    transition: color 0.2s var(--ease-out);
}

a:hover { color: #ffc088; }

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

h1, h2, h3 {
    font-family: var(--font-display);
    font-weight: 400;
    line-height: 1.1;
}

button {
    font-family: var(--font-body);
    border: none;
    cursor: pointer;
}

button,
.hamburger,
.nav-links a,
.logo-container,
.store-btn,
.game-btn,
.footer-links a,
.hero-btn {
    -webkit-user-select: none;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

.reveal {
    opacity: 0;
    transform: translateY(24px) scale(0.985);
    transition:
        opacity 0.75s var(--ease-out),
        transform 0.75s var(--ease-out);
    transition-delay: var(--reveal-delay, 0ms);
}

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

/* Interconnected section flow */
.flow-section {
    position: relative;
}

.flow-section::before {
    content: '';
    position: absolute;
    top: -1px;
    left: 50%;
    width: 1px;
    height: clamp(32px, 6vw, 56px);
    background: linear-gradient(180deg, transparent, rgba(250, 155, 85, 0.35), transparent);
    transform: translateX(-50%) scaleY(var(--flow-scale, 0));
    transform-origin: top;
    transition: transform 0.8s var(--ease-out);
    pointer-events: none;
}

.flow-section.is-linked::before {
    transform: translateX(-50%) scaleY(1);
}

.section-panel {
    transition: transform 0.9s var(--ease-out), opacity 0.9s var(--ease-out);
    transform: translateY(calc(var(--section-shift, 0) * 1px));
}

/* ===================================================
   SITE HEADER & NAV
   =================================================== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: calc(var(--nav-height) + env(safe-area-inset-top, 0px));
    padding:
        env(safe-area-inset-top, 0px)
        var(--page-gutter)
        0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 9002;
    background: rgba(20, 21, 26, 0.97);
    border-bottom: 1px solid var(--border);
    transition: background 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out);
}

.site-header.scrolled {
    box-shadow: 0 4px 28px rgba(0, 0, 0, 0.35);
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-primary);
    z-index: 9004;
}

.logo-icon {
    width: 38px;
    height: 38px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    flex-shrink: 0;
}

.logo-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.logo-text {
    font-family: var(--font-display);
    font-size: 1.25rem;
    color: var(--brand-orange);
}

.nav-links {
    display: flex;
    list-style: none;
    align-items: center;
    gap: clamp(8px, 2vw, 28px);
    margin: 0;
    padding: 0;
}

.nav-links a {
    color: var(--text-secondary);
    font-family: var(--font-body);
    font-size: 0.925rem;
    font-weight: 500;
    padding: 8px 4px;
    border-radius: var(--radius-sm);
    transition: color 0.2s;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--text-primary);
}

@media (min-width: 769px) {
    .nav-links {
        position: fixed;
        top: env(safe-area-inset-top, 0px);
        right: var(--page-gutter);
        height: var(--nav-height);
        z-index: 9003;
    }
}

.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    padding: 10px;
    background: none;
    border: none;
    z-index: 9004;
}

.hamburger span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: transform 0.3s var(--ease-out), opacity 0.2s;
    transform-origin: center;
}

.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    z-index: 9000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.32s var(--ease-out);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
}

.mobile-overlay.open {
    opacity: 1;
    pointer-events: auto;
}

@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-links {
        display: flex;
        position: fixed;
        top: 0;
        right: 0;
        bottom: 0;
        left: auto;
        width: min(300px, 84vw);
        z-index: 9003;
        flex-direction: column;
        justify-content: center;
        align-items: stretch;
        gap: 0.35rem;
        padding:
            calc(env(safe-area-inset-top, 0px) + var(--nav-height) + 1.5rem)
            1.5rem
            calc(var(--safe-bottom) + 1.5rem);
        background: linear-gradient(165deg, var(--bg-surface) 0%, var(--bg-base) 100%);
        border-left: 1px solid var(--border-strong);
        box-shadow: -16px 0 48px rgba(0, 0, 0, 0.5);
        transform: translateX(105%);
        visibility: hidden;
        pointer-events: none;
        transition:
            transform 0.4s var(--ease-spring),
            visibility 0.4s;
    }

    .nav-links.open {
        transform: translateX(0);
        visibility: visible;
        pointer-events: auto;
    }

    .nav-links li {
        opacity: 0;
        transform: translateX(18px);
        transition:
            opacity 0.32s var(--ease-out),
            transform 0.32s var(--ease-out);
    }

    .nav-links.open li {
        opacity: 1;
        transform: translateX(0);
    }

    .nav-links.open li:nth-child(1) { transition-delay: 0.05s; }
    .nav-links.open li:nth-child(2) { transition-delay: 0.11s; }
    .nav-links.open li:nth-child(3) { transition-delay: 0.17s; }

    .nav-links a {
        display: block;
        font-family: var(--font-display);
        font-size: 1.45rem;
        font-weight: 400;
        padding: 14px 14px;
        color: var(--text-primary);
        border-radius: var(--radius-sm);
        border-bottom: none;
        text-align: left;
        transition: color 0.2s, background 0.2s;
    }

    .nav-links a:hover,
    .nav-links a.active {
        color: var(--brand-orange);
        background: rgba(250, 155, 85, 0.1);
    }
}

body.menu-open {
    overflow: hidden;
}

body.menu-open .game-section,
body.menu-open .game-section-backdrop {
    visibility: hidden !important;
    pointer-events: none !important;
}

/* ===================================================
   HERO — centered
   =================================================== */
.hero {
    position: relative;
    z-index: 1;
    padding:
        calc(var(--nav-height) + 3rem + env(safe-area-inset-top, 0px))
        var(--page-gutter)
        2rem;
}

.hero-inner {
    max-width: 680px;
    margin: 0 auto;
    text-align: center;
}

.hero-title {
    font-size: clamp(2.8rem, 7vw, 5rem);
    color: var(--text-primary);
    margin-bottom: 1.25rem;
}

.hero-title .line {
    display: block;
    opacity: 0;
    transform: translateY(20px);
    animation: fade-up 0.7s var(--ease-out) forwards;
}

.hero-title .line:nth-child(1) { animation-delay: 0.1s; }
.hero-title .line:nth-child(2) { animation-delay: 0.22s; }

.hero-title .accent { color: var(--brand-orange); }

.hero-subtitle {
    font-family: var(--font-body);
    font-size: clamp(1rem, 2.2vw, 1.15rem);
    color: var(--text-secondary);
    max-width: 520px;
    margin: 0 auto 2rem;
    line-height: 1.7;
    opacity: 0;
    animation: fade-up 0.7s var(--ease-out) 0.35s forwards;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    opacity: 0;
    animation: fade-up 0.7s var(--ease-out) 0.48s forwards;
}

.hero-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: calc(var(--store-btn-h) + var(--btn-depth));
    padding: 0 28px;
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 600;
    transition: transform 0.15s var(--ease-out), border-bottom-width 0.15s var(--ease-out);
    border: none;
    border-bottom: var(--btn-depth) solid transparent;
}

.hero-btn--primary {
    background: var(--brand-orange);
    color: var(--brand-slate-dd);
    border-bottom-color: var(--brand-orange-d);
    box-shadow: none;
}

.hero-btn--primary:hover {
    color: var(--brand-slate-dd);
    transform: translateY(-1px);
}

.hero-btn--primary:active {
    transform: translateY(2px);
    border-bottom-width: 2px;
}

.hero-btn--ghost {
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-primary);
    border: 1px solid var(--border);
}

.hero-btn--ghost:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

/* ===================================================
   EXPANDABLE GAME WINDOW
   =================================================== */
.game-section {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.65s var(--ease-spring);
    padding: 0 var(--page-gutter);
}

.game-section.is-open {
    grid-template-rows: 1fr;
    padding-bottom: var(--section-gap);
}

.game-section-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0);
    backdrop-filter: blur(0);
    -webkit-backdrop-filter: blur(0);
    pointer-events: none;
    z-index: -1;
    transition:
        background 0.5s var(--ease-out),
        backdrop-filter 0.5s var(--ease-out);
}

.game-section.is-open .game-section-backdrop {
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    pointer-events: auto;
    z-index: 50;
}

.game-section-inner {
    overflow: hidden;
    min-height: 0;
    display: flex;
    justify-content: center;
    position: relative;
    z-index: 51;
}

.game-window {
    width: 100%;
    max-width: min(100%, 420px);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-strong);
    background: var(--brand-slate-dd);
    overflow: hidden;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.55);
    transform: scale(0.88) translateY(24px);
    opacity: 0;
    transition:
        transform 0.65s var(--ease-spring),
        opacity 0.45s var(--ease-out),
        max-width 0.5s var(--ease-out);
}

.game-section.is-open .game-window {
    transform: scale(1) translateY(0);
    opacity: 1;
    max-height: calc(100dvh - var(--nav-height) - 2rem - env(safe-area-inset-top, 0px));
    display: flex;
    flex-direction: column;
}

@media (min-width: 900px) {
    .game-window { max-width: 480px; }
}

@media (min-width: 1200px) {
    .game-window { max-width: 540px; }
}

.game-window-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    background: var(--bg-card);
    border-bottom: 1px solid var(--border);
    gap: 12px;
}

.game-window-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.game-window-title img {
    border-radius: 5px;
}

.game-window-actions {
    display: flex;
    gap: 6px;
}

.game-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 7px 11px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-size: 0.78rem;
    font-weight: 600;
    transition: background 0.2s, color 0.2s;
}

.game-btn:hover {
    background: rgba(250, 155, 85, 0.12);
    color: var(--text-primary);
}

.game-btn svg {
    width: 15px;
    height: 15px;
    fill: currentColor;
}

.game-wrapper {
    position: relative;
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    aspect-ratio: 9 / 16;
    background: #000;
    flex: 0 0 auto;
}

.game-wrapper.is-fullscreen-active,
.game-wrapper:fullscreen,
.game-wrapper:-webkit-full-screen {
    position: fixed !important;
    inset: 0 !important;
    width: 100vw !important;
    height: 100dvh !important;
    max-width: none !important;
    max-height: none !important;
    aspect-ratio: unset !important;
    margin: 0 !important;
    padding:
        env(safe-area-inset-top, 0px)
        env(safe-area-inset-right, 0px)
        env(safe-area-inset-bottom, 0px)
        env(safe-area-inset-left, 0px);
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    box-sizing: border-box;
}

.game-wrapper.is-fullscreen-active .game-frame,
.game-wrapper:fullscreen .game-frame,
.game-wrapper:-webkit-full-screen .game-frame {
    position: relative !important;
    inset: auto !important;
    flex: 0 0 auto;
    border: none;
    display: block;
}

.game-frame {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.game-controls-bar {
    display: flex;
    justify-content: center;
    padding: 9px 14px;
    background: var(--bg-card);
    border-top: 1px solid var(--border);
    font-size: 0.78rem;
    color: var(--text-muted);
}

.control-item {
    display: flex;
    align-items: center;
    gap: 5px;
    flex-wrap: wrap;
    justify-content: center;
}

.key-cap {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 24px;
    height: 24px;
    padding: 0 6px;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom-width: 2px;
    border-radius: 5px;
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--text-secondary);
}

@media (max-width: 768px) {
    .game-controls-bar { display: none; }

    .game-btn span { display: none; }
    .game-btn { padding: 9px; min-width: 38px; justify-content: center; }
}

body.game-open {
    overflow: hidden;
}

/* ===================================================
   HOW IT WORKS
   =================================================== */
.how-section {
    position: relative;
    z-index: 1;
    padding: 0 var(--page-gutter) var(--section-gap);
}

.how-inner {
    max-width: var(--content-max);
    margin: 0 auto;
    padding: clamp(2rem, 5vw, 3rem);
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
}

.how-section h2 {
    font-size: clamp(1.6rem, 4vw, 2.2rem);
    text-align: center;
    margin-bottom: 2rem;
}

.how-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
    gap: 1.5rem;
}

.how-step {
    text-align: center;
    padding: 1.25rem;
}

.how-step-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--brand-orange-g);
    border: 2px solid rgba(250, 155, 85, 0.3);
    color: var(--brand-orange);
    font-family: var(--font-display);
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
}

.how-step h3 {
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.4rem;
}

.how-step p {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.55;
}

/* ===================================================
   FEATURES
   =================================================== */
.features-section {
    position: relative;
    z-index: 1;
    padding: 0 var(--page-gutter) var(--section-gap);
    text-align: center;
}

.features-inner {
    max-width: var(--content-max);
    margin: 0 auto;
}

.section-title {
    font-size: clamp(1.8rem, 4.5vw, 2.8rem);
    margin-bottom: 0.5rem;
}

.section-subtitle {
    font-family: var(--font-body);
    font-size: clamp(0.95rem, 2vw, 1.05rem);
    color: var(--text-secondary);
    max-width: 480px;
    margin: 0 auto 2.5rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
    gap: 18px;
}

.feature-card {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 26px 24px;
    text-align: left;
    transition: border-color 0.25s, box-shadow 0.25s;
}

.feature-card:hover {
    border-color: var(--border-strong);
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.25);
}

.feature-card h3 {
    font-family: var(--font-body);
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.feature-card p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ===================================================
   DOWNLOADS
   =================================================== */
.downloads-banner {
    position: relative;
    z-index: 1;
    padding: 0 var(--page-gutter) var(--section-gap);
    text-align: center;
}

.downloads-banner-inner {
    max-width: 800px;
    margin: 0 auto;
    padding: clamp(2rem, 5vw, 3rem) clamp(1.5rem, 4vw, 2.5rem);
    background: var(--bg-card);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-lg);
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.3);
}

.downloads-banner h2 {
    font-size: clamp(1.6rem, 4vw, 2.2rem);
    margin-bottom: 0.5rem;
}

.downloads-banner p {
    color: var(--text-secondary);
    margin-bottom: 1.75rem;
    font-size: 0.95rem;
}

.download-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    justify-content: center;
    align-items: flex-start;
}

.store-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.store-label {
    font-family: var(--font-body);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--brand-orange);
}

.store-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: var(--store-btn-w);
    height: calc(var(--store-btn-h) + var(--btn-depth));
    box-sizing: border-box;
    border-radius: var(--store-btn-r);
    background: #000;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-bottom: var(--btn-depth) solid rgba(0, 0, 0, 0.6);
    overflow: hidden;
    flex-shrink: 0;
    transition: transform 0.2s var(--ease-out), filter 0.2s, border-color 0.2s;
    padding: 0;
    box-shadow: none;
}

.store-btn:hover {
    transform: translateY(-2px);
    filter: brightness(1.06);
    border-color: rgba(255, 255, 255, 0.2);
}

.store-btn:active { transform: translateY(0); }

.store-btn img {
    width: 100%;
    height: var(--store-btn-h);
    object-fit: contain;
    object-position: center;
    display: block;
}

.store-btn--web {
    gap: 8px;
    padding: 0 16px;
    background: var(--brand-orange);
    color: var(--brand-slate-dd);
    font-family: var(--font-body);
    font-size: 0.875rem;
    font-weight: 700;
    line-height: normal;
    border: none;
    border-bottom: var(--btn-depth) solid var(--brand-orange-d);
    box-shadow: none;
}

.store-btn--web:hover {
    color: var(--brand-slate-dd);
    filter: none;
}

.store-btn--web:active {
    transform: translateY(2px);
    border-bottom-width: 2px;
}

.store-btn--web svg {
    width: 15px;
    height: 15px;
    fill: currentColor;
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .download-grid {
        flex-direction: column;
        align-items: center;
    }
}

/* ===================================================
   CONTENT PAGES
   =================================================== */
.content-container {
    position: relative;
    z-index: 1;
    max-width: 760px;
    margin: 0 auto;
    padding: calc(var(--nav-height) + 2.5rem + env(safe-area-inset-top, 0px)) var(--page-gutter) 4rem;
}

.content-container h1 {
    font-size: clamp(1.8rem, 5vw, 2.6rem);
    margin-bottom: 0.5rem;
    color: var(--brand-orange);
}

.content-container h2 {
    font-family: var(--font-body);
    font-size: 1.2rem;
    font-weight: 700;
    margin-top: 2rem;
    margin-bottom: 0.6rem;
}

.content-container p,
.content-container li {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.75;
    margin-bottom: 0.8rem;
}

.content-container ul {
    padding-left: 1.5rem;
    margin-bottom: 1rem;
}

.content-container strong { color: var(--text-primary); }

.content-container table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0 1.5rem;
    font-size: 0.9rem;
}

.content-container th,
.content-container td {
    text-align: left;
    padding: 10px 14px;
    border-bottom: 1px solid var(--border);
    color: var(--text-secondary);
}

.content-container th {
    color: var(--text-primary);
    font-weight: 600;
    background: var(--bg-card);
}

.contact-card {
    background: var(--bg-card);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-md);
    padding: 24px;
    margin-top: 2rem;
}

.contact-email {
    color: var(--brand-orange) !important;
    font-weight: 700 !important;
    text-decoration: underline;
}

.contact-email:hover {
    color: #ffc088 !important;
}

/* ===================================================
   FOOTER
   =================================================== */
footer {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 2.5rem var(--page-gutter) calc(2rem + var(--safe-bottom));
    border-top: 1px solid var(--border);
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-bottom: 1rem;
}

.footer-links a {
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: 500;
}

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

footer p {
    color: var(--text-muted);
    font-size: 0.78rem;
}

@keyframes fade-up {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}

.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;
}

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

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

/* Mobile: Lilita One on display typography (self-hosted) */
@media (max-width: 768px) {
    .hero-title,
    .hero-title .line,
    .section-title,
    .how-section h2,
    .downloads-banner h2,
    .content-container h1,
    .logo-text,
    .nav-links a,
    h1, h2 {
        font-family: var(--font-display) !important;
        font-weight: 400 !important;
    }

    .hero-subtitle,
    .section-subtitle,
    .feature-card p,
    .how-step p,
    .downloads-banner p,
    .content-container p,
    .content-container li {
        font-family: var(--font-body);
    }
}
