/* ============================================================
   Triangle — GitHub Pages Stylesheet
   Light/Dark mode via [data-theme] on <html>
   ============================================================ */

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* ── Dark theme (default) ── */
:root,
[data-theme="dark"] {
    --bg: #0a0b0f;
    --bg-card: #111318;
    --bg-card2: #161920;
    --bg-code: #0d0f17;
    --border: rgba(255, 255, 255, 0.07);
    --border-hi: rgba(255, 255, 255, 0.14);
    --text: #e8eaf0;
    --text-muted: #7a7f94;
    --text-code: #c9d1d9;
    --accent: #7c6ff7;
    --accent2: #00c9a7;
    --accent-glow: rgba(124, 111, 247, 0.35);
    --nav-bg: rgba(10, 11, 15, 0.75);
    --nav-bg-solid: rgba(10, 11, 15, 0.95);
    --shadow: rgba(0, 0, 0, 0.5);
    --code-cm: #6e7681;
    --code-ck: #79c0ff;
    --code-cs: #a5d6ff;
    --code-cn: #f78166;
}

/* ── Light theme ── */
[data-theme="light"] {
    --bg: #f6f7fb;
    --bg-card: #ffffff;
    --bg-card2: #eef0f7;
    --bg-code: #f0f2f8;
    --border: rgba(0, 0, 0, 0.08);
    --border-hi: rgba(0, 0, 0, 0.15);
    --text: #111318;
    --text-muted: #5a6075;
    --text-code: #24292f;
    --accent: #5b50d6;
    --accent2: #00956f;
    --accent-glow: rgba(91, 80, 214, 0.2);
    --nav-bg: rgba(246, 247, 251, 0.8);
    --nav-bg-solid: rgba(246, 247, 251, 0.98);
    --shadow: rgba(0, 0, 0, 0.08);
    --code-cm: #6e7781;
    --code-ck: #0550ae;
    --code-cs: #0a3069;
    --code-cn: #953800;
}

:root {
    --radius: 14px;
    --radius-sm: 8px;
    --font: 'Inter', system-ui, sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
    --nav-h: 64px;
}

html {
    scroll-behavior: smooth;
}

body {
    background: var(--bg);
    color: var(--text);
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    transition: background 0.3s, color 0.3s;
}

::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: var(--bg);
}

::-webkit-scrollbar-thumb {
    background: rgba(124, 111, 247, 0.3);
    border-radius: 3px;
}

.container {
    max-width: 1360px;
    margin: 0 auto;
    padding: 0 48px;
}

.gradient-text {
    background: linear-gradient(135deg, #a78bfa 0%, #7c6ff7 40%, #00c9a7 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

[data-theme="light"] .gradient-text {
    background: linear-gradient(135deg, #7c3aed 0%, #5b50d6 40%, #00956f 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ============================================================
   NAV
   ============================================================ */
#navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    height: var(--nav-h);
    background: var(--nav-bg);
    backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid var(--border);
    transition: background 0.3s;
}

.nav-inner {
    max-width: 1360px;
    margin: 0 auto;
    padding: 0 48px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--text);
}

.logo-icon {
    font-size: 22px;
    color: var(--accent);
    filter: drop-shadow(0 0 8px var(--accent));
}

.logo-text {
    font-size: 18px;
    font-weight: 700;
    letter-spacing: -0.3px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 4px;
    list-style: none;
}

.nav-links a {
    padding: 6px 14px;
    border-radius: 99px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s, background 0.2s;
}

.nav-links a:hover {
    color: var(--text);
    background: var(--border);
}

.nav-links a.nav-cta {
    background: var(--accent);
    color: #fff;
    padding: 7px 18px;
    box-shadow: 0 0 20px var(--accent-glow);
    transition: transform 0.2s, box-shadow 0.2s;
}

.nav-links a.nav-cta:hover {
    transform: translateY(-1px);
    box-shadow: 0 0 30px var(--accent-glow);
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* ── Theme toggle ── */
.theme-btn {
    width: 36px;
    height: 36px;
    border-radius: 99px;
    border: 1px solid var(--border);
    background: transparent;
    color: var(--text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: border-color 0.2s, color 0.2s, background 0.2s;
}

.theme-btn:hover {
    border-color: var(--border-hi);
    color: var(--text);
    background: var(--border);
}

.theme-btn .icon-sun {
    display: none;
}

.theme-btn .icon-moon {
    display: block;
}

[data-theme="light"] .theme-btn .icon-sun {
    display: block;
}

[data-theme="light"] .theme-btn .icon-moon {
    display: none;
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.hamburger span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: 0.3s;
}

/* ============================================================
   HERO
   ============================================================ */
#hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: stretch;
    overflow: hidden;
    width: 100%;
}

/* Inner wrapper — centers the two columns within the full-bleed hero */
.hero-inner {
    display: flex;
    align-items: center;
    flex-direction: row;
    gap: 60px;
    width: 100%;
    max-width: 1360px;
    margin: 0 auto;
    padding: calc(var(--nav-h) + 60px) 48px 80px;
    position: relative;
    z-index: 1;
}

.hero-bg {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}

[data-theme="light"] .hero-bg {
    display: none;
}

.hero-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(124, 111, 247, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(124, 111, 247, 0.05) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, black 0%, transparent 70%);
}

.hero-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.55;
    pointer-events: none;
}

.glow-1 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, #7c6ff7, transparent 70%);
    top: -200px;
    left: -100px;
    animation: pulse 8s ease-in-out infinite alternate;
}

.glow-2 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, #00c9a7, transparent 70%);
    top: 0;
    right: -100px;
    animation: pulse 10s ease-in-out infinite alternate-reverse;
}

@keyframes pulse {
    from {
        opacity: 0.35;
        transform: scale(1)
    }

    to {
        opacity: 0.6;
        transform: scale(1.1)
    }
}

#hero>.hero-bg {
    position: relative;
    z-index: 0;
}

.hero-content {
    flex: 1;
    max-width: 560px;
    padding: 0 24px;
    display: flex;
    flex-direction: column;
    gap: 24px;
    justify-content: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border-radius: 99px;
    border: 1px solid rgba(124, 111, 247, 0.4);
    background: rgba(124, 111, 247, 0.1);
    font-size: 12px;
    font-weight: 500;
    color: #a78bfa;
    width: fit-content;
}

[data-theme="light"] .hero-badge {
    color: #5b50d6;
    border-color: rgba(91, 80, 214, 0.4);
    background: rgba(91, 80, 214, 0.08);
}

.badge-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--accent2);
    box-shadow: 0 0 6px var(--accent2);
    animation: blink 2s ease-in-out infinite;
}

@keyframes blink {

    0%,
    100% {
        opacity: 1
    }

    50% {
        opacity: 0.4
    }
}

.hero-title {
    font-size: clamp(36px, 5vw, 56px);
    font-weight: 900;
    letter-spacing: -2px;
    line-height: 1.08;
}

.hero-sub {
    font-size: 17px;
    color: var(--text-muted);
    max-width: 460px;
}

.hero-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 13px 24px;
    border-radius: 99px;
    background: linear-gradient(135deg, var(--accent) 0%, #5b50d6 100%);
    color: #fff;
    font-weight: 600;
    font-size: 15px;
    text-decoration: none;
    box-shadow: 0 4px 24px var(--accent-glow);
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 32px var(--accent-glow);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 13px 24px;
    border-radius: 99px;
    border: 1px solid var(--border-hi);
    background: var(--border);
    color: var(--text);
    font-weight: 600;
    font-size: 15px;
    text-decoration: none;
    transition: border-color 0.2s, background 0.2s, transform 0.2s;
}

.btn-secondary:hover {
    border-color: var(--border-hi);
    background: var(--bg-card);
    transform: translateY(-2px);
}

.hero-stats {
    display: flex;
    align-items: center;
    gap: 28px;
}

.stat {
    display: flex;
    flex-direction: column;
}

.stat-val {
    font-size: 26px;
    font-weight: 800;
    letter-spacing: -1px;
    background: linear-gradient(135deg, #a78bfa, #00c9a7);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

[data-theme="light"] .stat-val {
    background: linear-gradient(135deg, #5b50d6, #00956f);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 500;
}

.stat-divider {
    width: 1px;
    height: 40px;
    background: var(--border);
}

/* Console mockup */
.hero-visual {
    flex: 1;
    max-width: 520px;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.console-mockup {
    width: 100%;
}

.console-screen {
    background: var(--bg-code);
    border: 1px solid rgba(124, 111, 247, 0.25);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 80px var(--shadow), 0 0 0 1px var(--border), inset 0 1px 0 var(--border-hi);
    animation: float 6s ease-in-out infinite;
}

[data-theme="light"] .console-screen {
    border-color: rgba(91, 80, 214, 0.2);
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0)
    }

    50% {
        transform: translateY(-10px)
    }
}

.screen-header {
    background: var(--bg-card2);
    border-bottom: 1px solid var(--border);
    padding: 10px 16px;
}

.screen-tabs {
    display: flex;
    gap: 4px;
}

.tab {
    padding: 5px 14px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
    color: var(--text-muted);
}

.tab.active {
    background: rgba(124, 111, 247, 0.2);
    color: #a78bfa;
}

[data-theme="light"] .tab.active {
    background: rgba(91, 80, 214, 0.12);
    color: #5b50d6;
}

.screen-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 6px;
    padding: 12px;
}

.game-tile {
    aspect-ratio: 3/4;
    border-radius: 6px;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #1e2030, #252840);
    border: 1px solid var(--border);
    animation: tileIn 0.5s ease both;
    animation-delay: var(--delay);
    transition: transform 0.2s, border-color 0.2s;
}

[data-theme="light"] .game-tile {
    background: linear-gradient(135deg, #e8eaf6, #dde0f0);
}

.game-tile:hover {
    transform: scale(1.05);
    border-color: rgba(124, 111, 247, 0.5);
}

@keyframes tileIn {
    from {
        opacity: 0;
        transform: scale(0.85)
    }

    to {
        opacity: 1;
        transform: scale(1)
    }
}

.tile-shine {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0%, transparent 50%);
}

.tile-label {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: rgba(255, 255, 255, 0.9);
    font-size: 7px;
    font-weight: 600;
    padding: 6px 4px 3px;
    text-align: center;
}

.screen-bar {
    background: var(--bg-card2);
    border-top: 1px solid var(--border);
    padding: 8px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.bar-info {
    font-size: 10px;
    color: var(--text-muted);
    white-space: nowrap;
}

.bar-info strong {
    color: var(--text);
}

.bar-track {
    flex: 1;
    height: 4px;
    background: var(--border);
    border-radius: 2px;
    overflow: hidden;
}

.bar-fill {
    height: 100%;
    width: 0;
    border-radius: 2px;
    background: linear-gradient(90deg, var(--accent), var(--accent2));
    animation: fillBar 3s ease-in-out infinite alternate;
}

@keyframes fillBar {
    from {
        width: 5%
    }

    to {
        width: 85%
    }
}

.bar-speed {
    font-size: 10px;
    color: var(--accent2);
    font-weight: 600;
    white-space: nowrap;
}

/* ============================================================
   SHARED SECTION STYLES
   ============================================================ */
section {
    padding: 100px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-tag {
    display: inline-block;
    padding: 4px 14px;
    border-radius: 99px;
    border: 1px solid rgba(124, 111, 247, 0.4);
    background: rgba(124, 111, 247, 0.1);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 16px;
}

[data-theme="light"] .section-tag {
    border-color: rgba(91, 80, 214, 0.3);
    background: rgba(91, 80, 214, 0.07);
}

.section-header h2 {
    font-size: clamp(28px, 4vw, 42px);
    font-weight: 800;
    letter-spacing: -1px;
    margin-bottom: 16px;
    line-height: 1.15;
}

.section-header p {
    font-size: 17px;
    color: var(--text-muted);
    max-width: 540px;
    margin: 0 auto;
}

/* ============================================================
   FEATURES
   ============================================================ */
#features {
    background: radial-gradient(ellipse 60% 40% at 50% 0%, rgba(124, 111, 247, 0.05) 0%, transparent 70%);
}

[data-theme="light"] #features {
    background: radial-gradient(ellipse 60% 40% at 50% 0%, rgba(91, 80, 214, 0.04) 0%, transparent 70%);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    align-items: stretch;
}

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px;
    transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 30% 0%, rgba(124, 111, 247, 0.05) 0%, transparent 60%);
    pointer-events: none;
}

.feature-card:hover {
    border-color: var(--border-hi);
    transform: translateY(-3px);
    box-shadow: 0 12px 40px var(--shadow);
}

/* .feature-large removed — all cards are equal size */

.feature-icon-wrap {
    width: 52px;
    height: 52px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
    background: rgba(124, 111, 247, 0.1);
    border: 1px solid rgba(124, 111, 247, 0.2);
}

/* each card sets color via inline style; use currentColor on icons */
.feature-icon-wrap svg {
    width: 28px;
    height: 28px;
}

.feature-card h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 10px;
    letter-spacing: -0.3px;
}

.feature-card p {
    color: var(--text-muted);
    font-size: 14.5px;
    line-height: 1.6;
}

.feature-list {
    margin-top: 16px;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.feature-list li {
    font-size: 13.5px;
    color: var(--text-muted);
    padding-left: 18px;
    position: relative;
    line-height: 1.5;
}

.feature-list li::before {
    content: '✓';
    color: var(--accent2);
    font-weight: 700;
    position: absolute;
    left: 0;
    top: 0;
}

/* ============================================================
   SOURCES SECTION
   ============================================================ */
#sources {
    background: var(--bg-card2);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.sources-layout {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

/* pipeline (reused) */
.pipeline-flow {
    display: flex;
    align-items: stretch;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.pipeline-step {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px 24px;
    flex: 1;
    min-width: 180px;
    max-width: 220px;
    text-align: center;
    transition: border-color 0.3s, transform 0.3s;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.pipeline-step:hover {
    border-color: rgba(124, 111, 247, 0.4);
    transform: translateY(-4px);
}

.pstep-num {
    font-size: 11px;
    font-weight: 700;
    color: var(--accent);
    letter-spacing: 2px;
    margin-bottom: 12px;
}

.pstep-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: rgba(124, 111, 247, 0.1);
    border: 1px solid rgba(124, 111, 247, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    margin: 0 auto 14px;
}

.pipeline-step h4 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 8px;
}

.pipeline-step p {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.55;
}

.pipeline-step code {
    font-family: var(--font-mono);
    font-size: 12px;
    background: var(--border);
    padding: 1px 5px;
    border-radius: 4px;
}

.pipeline-arrow {
    font-size: 24px;
    color: var(--text-muted);
    opacity: 0.5;
    user-select: none;
    align-self: center;
}

.sources-note {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-left: 3px solid var(--accent);
    border-radius: var(--radius);
    padding: 20px 24px;
}

.note-icon {
    color: var(--accent);
    flex-shrink: 0;
    margin-top: 2px;
}

.sources-note strong {
    display: block;
    margin-bottom: 6px;
    font-size: 15px;
}

.sources-note p {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.6;
}

/* ============================================================
   GALLERY
   ============================================================ */
#gallery {
    background: radial-gradient(ellipse 50% 40% at 50% 100%, rgba(0, 201, 167, 0.05) 0%, transparent 70%);
}

/* ── Gallery video centrepiece ── */
.gallery-video-wrap {
    margin-bottom: 24px;
}

.gallery-video-box {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
    background: #050610;
    box-shadow: 0 0 0 1px rgba(124, 111, 247, 0.15), 0 20px 60px rgba(0, 0, 0, 0.5);
}

.gallery-video-box iframe,
.gallery-video-box video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.gv-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: radial-gradient(ellipse 60% 60% at 50% 50%, rgba(124, 111, 247, 0.08) 0%, transparent 70%);
    cursor: pointer;
}

.gv-play {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: rgba(124, 111, 247, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    padding-left: 4px;
    box-shadow: 0 0 40px rgba(124, 111, 247, 0.5), 0 0 80px rgba(124, 111, 247, 0.2);
    transition: transform 0.25s, background 0.25s;
}

.gv-overlay:hover .gv-play {
    transform: scale(1.1);
    background: var(--accent);
}

.gv-label {
    font-size: 18px;
    font-weight: 700;
    color: var(--text);
    letter-spacing: -0.3px;
}

.gv-sub {
    font-size: 13px;
    color: var(--text-muted);
}

/* Screenshot row below the video — equal 3 columns */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    align-items: stretch;
}

/* all gallery screenshots are now equal-width columns */

.gallery-item {
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
    transition: border-color 0.3s, transform 0.3s;
    display: flex;
    flex-direction: column;
}

.gallery-item:hover {
    border-color: var(--border-hi);
    transform: translateY(-3px);
}

.gallery-screen {
    background: var(--bg-code);
    padding: 12px;
    min-height: 260px;
}

.gallery-screen.dark-theme {
    background: #08090e;
}

[data-theme="light"] .gallery-screen.dark-theme {
    background: #1a1d2e;
}

.gallery-caption {
    background: var(--bg-card);
    padding: 10px 16px;
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 500;
    border-top: 1px solid var(--border);
}

.gs-header {
    border-bottom: 1px solid var(--border);
    margin-bottom: 10px;
    padding-bottom: 8px;
}

.gs-tabs {
    display: flex;
    gap: 4px;
}

.gs-tab {
    padding: 4px 10px;
    border-radius: 5px;
    font-size: 10px;
    font-weight: 600;
    color: var(--text-muted);
}

.gs-tab.active {
    background: rgba(124, 111, 247, 0.2);
    color: var(--accent);
}

.gs-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 5px;
}

.gs-tile {
    aspect-ratio: 3/4;
    border-radius: 5px;
    position: relative;
    overflow: hidden;
    border: 1px solid var(--border);
}

.gs-tile span {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.85));
    font-size: 6.5px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.85);
    padding: 5px 2px 2px;
    text-align: center;
}

.gs-shine {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
}

.c1 {
    background: linear-gradient(135deg, #1a2a4a, #2a3d6a)
}

.c2 {
    background: linear-gradient(135deg, #3a1a2a, #6a2a3a)
}

.c3 {
    background: linear-gradient(135deg, #2a1a0a, #5a3a1a)
}

.c4 {
    background: linear-gradient(135deg, #0a2a1a, #1a5a3a)
}

.c5 {
    background: linear-gradient(135deg, #2a0a3a, #5a1a6a)
}

.c6 {
    background: linear-gradient(135deg, #3a2a0a, #6a4a1a)
}

.c7 {
    background: linear-gradient(135deg, #0a3a0a, #1a6a1a)
}

.c8 {
    background: linear-gradient(135deg, #1a0a3a, #3a1a6a)
}

.c9 {
    background: linear-gradient(135deg, #3a0a0a, #6a1a1a)
}

.c10 {
    background: linear-gradient(135deg, #0a1a3a, #1a2a6a)
}

/* ============================================================
   AUTHENTIC XBOX 360 CLIENT UI MOCKUP
   ============================================================ */

/* Outer screen frame — dark purple client theme */
.xui-screen {
    background: #1a1730;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5), 0 0 0 2px rgba(124, 111, 247, 0.2);
    display: flex;
    flex-direction: column;
    font-family: var(--font);
    animation: float 6s ease-in-out infinite;
    border: 2px solid #3d3560;
}

[data-theme="light"] .xui-screen {
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2), 0 0 0 1px rgba(0, 0, 0, 0.1);
}

.xui-gallery-screen {
    animation: none;
    border-radius: 0;
    border: none;
    box-shadow: none;
}

/* Tall solid grey header bar above tabs */
.xui-title {
    background: #1e1e1e;
    height: 18px;
    position: relative;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
}

/* Blinking triangle horizontally centered in the top header */
.xui-title::after {
    content: "";
    position: absolute;
    bottom: 5px; /* Centered vertically within the 18px bar */
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-bottom: 8px solid #7c6ff7; /* Purple up arrow */
    animation: blink 1.5s infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

/* Tab strip */
.xui-tabs {
    display: flex;
    background: #2a2a2a;
    border-bottom: 1px solid #7c6ff7; /* Purple underline under tabs */
    gap: 1px;
}

.xui-tab {
    flex: 1;
    text-align: center;
    font-size: 9px;
    font-weight: 500;
    padding: 5px 4px;
    color: rgba(255,255,255,0.45);
    background: #4a4a4a;
    border-right: 1px solid #333333;
    cursor: default;
    position: relative;
}

.xui-tab:last-child {
    border-right: none;
}

.xui-tab.active {
    background: #7c6ff7;
    color: #fff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

/* Cover art grid */
.xui-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 3px;
    padding: 4px;
    background: #4a4a4a;
    flex: 1;
}

.xui-tile {
    display: flex;
    flex-direction: column;
    border: 2px solid transparent;
    border-radius: 3px;
    overflow: hidden;
    animation: tileIn 0.4s ease both;
    animation-delay: var(--d, 0s);
    position: relative;
}

.xui-tile.selected {
    border-color: #7c6ff7;
    box-shadow: 0 0 0 1px #7c6ff7, 0 0 10px rgba(124, 111, 247, 0.5);
    z-index: 1;
}

/* Badge header — dark purple */
.xui-badge {
    background: linear-gradient(180deg, #2e2950 0%, #221f42 100%);
    border-bottom: 1px solid #3d3560;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 2px 3px;
    min-height: 12px;
}

.xb-logo {
    font-size: 5.5px;
    font-weight: 900;
    color: rgba(255,255,255,0.8);
    letter-spacing: -0.2px;
    text-transform: uppercase;
}

.xb-live {
    font-size: 5px;
    font-weight: 700;
    color: #a78bfa;
    background: rgba(124, 111, 247, 0.15);
    border: 1px solid rgba(124, 111, 247, 0.4);
    padding: 0 2px;
    border-radius: 1px;
}

/* Cover art area */
.xui-cover {
    flex: 1;
    position: relative;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    min-height: 45px;
}

/* each tile uses existing c1-c10 gradient colours */
.xui-tile.c1 .xui-cover {
    background: linear-gradient(160deg, #1a2a4a, #8a3a1a);
}

.xui-tile.c2 .xui-cover {
    background: linear-gradient(160deg, #2a1a3a, #4a1a1a);
}

.xui-tile.c3 .xui-cover {
    background: linear-gradient(160deg, #0e1a10, #1a4a2a);
}

.xui-tile.c4 .xui-cover {
    background: linear-gradient(160deg, #2a1a0a, #6a4a0a);
}

.xui-tile.c5 .xui-cover {
    background: linear-gradient(160deg, #1a0a0a, #3a1a0a);
}

.xui-tile.c6 .xui-cover {
    background: linear-gradient(160deg, #0a0a2a, #1a1a5a);
}

.xui-tile.c7 .xui-cover {
    background: linear-gradient(160deg, #1a1a1a, #3a2a0a);
}

.xui-tile.c8 .xui-cover {
    background: linear-gradient(160deg, #0a1a0a, #1a5a1a);
}

.xui-tile.c9 .xui-cover {
    background: linear-gradient(160deg, #1a0a2a, #4a0a5a);
}

.xui-tile.c10 .xui-cover {
    background: linear-gradient(160deg, #0a0a3a, #0a2a6a);
}

.xui-cname {
    width: 100%;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.85));
    color: rgba(255, 255, 255, 0.95);
    font-size: 6px;
    font-weight: 700;
    text-align: center;
    padding: 8px 2px 2px;
}

/* Controller hint bar */
.xui-hintbar {
    background: #333333;
    border-top: 1px solid #555555;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 4px 8px;
    font-size: 8px;
    color: rgba(255,255,255,0.6);
}

.xui-hint {
    font-size: 8px;
    color: rgba(255,255,255,0.6);
    font-weight: 500;
    margin-right: 4px;
}

.xui-hint-right {
    margin-left: auto;
    font-size: 8px;
    color: rgba(255,255,255,0.4);
    font-weight: 600;
}

/* Colored controller button circles */
.xbtn {
    width: 13px;
    height: 13px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 7px;
    font-weight: 900;
    color: #fff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
    flex-shrink: 0;
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.5);
}

.xbtn-a {
    background: #52b043;
}

.xbtn-b {
    background: #d04040;
}

.xbtn-x {
    background: #4060c0;
}

.xbtn-y {
    background: #c09020;
}

/* Gallery frames for xui-screen don't float or shadow */
.gallery-item .xui-screen {
    border-radius: 0;
    animation: none;
    flex: 1;
}

/* ── Downloads gallery: cover tile + info side by side ── */
.xui-dl-view {
    display: flex;
    gap: 10px;
    padding: 8px;
    flex: 1;
    background: #4a4a4a;
    align-items: flex-start;
}

.xui-dl-tile {
    display: flex;
    flex-direction: column;
    border: 2px solid transparent;
    border-radius: 3px;
    overflow: hidden;
    flex-shrink: 0;
    width: 70px;
}

.xui-dl-tile.selected {
    border-color: #52b043;
    box-shadow: 0 0 0 1px #52b043, 0 0 8px rgba(82, 176, 67, 0.5);
}

.xui-dl-tile .xui-cover {
    min-height: 90px;
}

.xui-dl-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding-top: 2px;
}

.xui-dl-title {
    font-size: 10px;
    font-weight: 700;
    color: #222;
}

.xui-dl-sub {
    font-size: 8px;
    color: #555;
    font-weight: 500;
}

.xui-dl-bar {
    height: 6px;
    background: #b0b5bc;
    border-radius: 3px;
    overflow: hidden;
    border: 1px solid #999;
    margin-top: 4px;
}

.xui-dl-fill {
    height: 100%;
    width: 38%;
    background: linear-gradient(90deg, #3a9a30, #52b043);
    border-radius: 3px;
    animation: fillBar 4s ease-in-out infinite alternate;
}

.xui-dl-status {
    font-size: 8px;
    color: #52b043;
    font-weight: 700;
    margin-top: 2px;
}

/* download queue */
.dl-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.dl-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 8px;
    padding: 10px 12px;
}

.dl-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 6px;
}

.dl-name {
    font-size: 11px;
    font-weight: 600;
    color: #e8eaf0;
}

.dl-size {
    font-size: 10px;
    color: #7a7f94;
}

.dl-track {
    height: 3px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 6px;
}

.dl-fill {
    height: 100%;
    background: linear-gradient(90deg, #7c6ff7, #00c9a7);
    border-radius: 2px;
}

.dl-meta {
    display: flex;
    justify-content: space-between;
}

.dl-speed {
    font-size: 10px;
    color: #00c9a7;
    font-weight: 600;
}

.dl-status {
    font-size: 10px;
    color: #7a7f94;
}

.dl-status.queued {
    color: #ffa94d;
}

.dl-status.done {
    color: #00c9a7;
}

.dl-queued .dl-name,
.dl-queued .dl-size {
    opacity: 0.5;
}

/* settings mock */
.settings-list {
    display: flex;
    flex-direction: column;
    background: #4a4a4a;
    gap: 1px; /* The grey dividers between rows */
}

.setting-row {
    padding: 6px 12px;
    font-size: 11px;
    font-weight: 500;
    color: #e0e0e0;
    background: #3f3f3f;
    cursor: default;
}

.setting-row.selected {
    background: #7c6ff7;
    color: #ffffff;
}

/* ============================================================
   HOST API SECTION
   ============================================================ */
#host-api {
    background: radial-gradient(ellipse 50% 40% at 50% 0%, rgba(124, 111, 247, 0.04) 0%, transparent 70%);
    border-top: 1px solid var(--border);
}

.api-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 16px;
}

.api-overview {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.api-detail {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.api-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 22px;
    transition: border-color 0.3s;
}

.api-card:hover {
    border-color: var(--border-hi);
}

.api-full {
    grid-column: span 2;
}

.api-card h4 {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 14px;
    color: var(--text);
}

.api-card h4 svg {
    color: var(--accent);
    flex-shrink: 0;
}

.api-card h4 code {
    font-family: var(--font-mono);
    font-size: 13px;
    font-weight: 600;
}

/* Code blocks */
.code-block {
    border-radius: var(--radius-sm);
    overflow: hidden;
    border: 1px solid var(--border);
}

.code-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--bg-card2);
    padding: 6px 14px;
    border-bottom: 1px solid var(--border);
}

.code-lang {
    font-size: 11px;
    font-family: var(--font-mono);
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.copy-btn {
    font-size: 11px;
    font-weight: 600;
    color: var(--accent);
    background: none;
    border: none;
    cursor: pointer;
    padding: 2px 6px;
    border-radius: 4px;
    transition: background 0.2s;
}

.copy-btn:hover {
    background: rgba(124, 111, 247, 0.1);
}

.copy-btn.copied {
    color: var(--accent2);
}

.code-block pre {
    background: var(--bg-code);
    padding: 16px;
    font-family: var(--font-mono);
    font-size: 13px;
    line-height: 1.6;
    color: var(--text-code);
    overflow-x: auto;
    white-space: pre;
}

.cm {
    color: var(--code-cm);
}

/* comment */
.ck {
    color: var(--code-ck);
}

/* key     */
.cs {
    color: var(--code-cs);
}

/* string  */
.cn {
    color: var(--code-cn);
}

/* number  */

.api-note {
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 12px;
    line-height: 1.55;
}

.api-note code {
    font-family: var(--font-mono);
    font-size: 12px;
    background: var(--border);
    padding: 1px 5px;
    border-radius: 4px;
}

/* Endpoints list */
.endpoints-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.endpoint {
    display: flex;
    align-items: baseline;
    gap: 10px;
    padding: 8px 10px;
    border-radius: 8px;
    background: var(--bg-code);
    border: 1px solid var(--border);
    font-size: 13px;
    flex-wrap: wrap;
}

.ep-method {
    font-family: var(--font-mono);
    font-size: 10px;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 4px;
    flex-shrink: 0;
}

.ep-method.get {
    background: rgba(0, 201, 167, 0.15);
    color: var(--accent2);
}

.ep-path {
    font-family: var(--font-mono);
    font-size: 12.5px;
    font-weight: 600;
    color: var(--text);
    flex-shrink: 0;
}

.ep-desc {
    font-size: 12px;
    color: var(--text-muted);
}

.ep-desc code {
    font-family: var(--font-mono);
    font-size: 11px;
    background: var(--border);
    padding: 1px 4px;
    border-radius: 3px;
}

/* Tips row */
.api-tip-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-top: 20px;
}

.api-tip {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 14px;
    background: var(--bg-card2);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
}

.tip-icon {
    font-size: 22px;
    flex-shrink: 0;
}

.api-tip strong {
    display: block;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 4px;
}

.api-tip p {
    font-size: 12.5px;
    color: var(--text-muted);
    line-height: 1.55;
}

/* ============================================================
   SPECS
   ============================================================ */
#specs {
    background: var(--bg-card2);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.specs-table-wrap {
    overflow-x: auto;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    margin-bottom: 40px;
}

.specs-table {
    width: 100%;
    border-collapse: collapse;
}

.specs-table th {
    background: var(--border);
    padding: 14px 20px;
    text-align: left;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    border-bottom: 1px solid var(--border);
}

.specs-table td {
    padding: 16px 20px;
    border-bottom: 1px solid var(--border);
    font-size: 14px;
    vertical-align: middle;
}

.specs-table tr:last-child td {
    border-bottom: none;
}

.specs-table tr:hover td {
    background: var(--border);
}

.spec-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    background: rgba(124, 111, 247, 0.1);
    color: var(--c);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

[data-theme="light"] .spec-badge {
    background: rgba(91, 80, 214, 0.08);
    border-color: rgba(0, 0, 0, 0.1);
}

.spec-val {
    font-weight: 700;
    font-size: 18px;
    letter-spacing: -0.5px;
}

.specs-table td:nth-child(3) {
    color: var(--text-muted);
    font-size: 13px;
}

.compat-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.compat-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px;
    text-align: center;
    transition: border-color 0.3s, transform 0.3s;
}

.compat-card:hover {
    border-color: var(--border-hi);
    transform: translateY(-3px);
}

.compat-card svg {
    color: var(--accent);
    margin-bottom: 12px;
}

.compat-card h4 {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 6px;
}

.compat-card p {
    font-size: 13px;
    color: var(--text-muted);
}

/* ============================================================
   DOWNLOAD CTA
   ============================================================ */
#download {
    position: relative;
    padding: 120px 0;
    overflow: hidden;
}

.download-bg {
    position: absolute;
    inset: 0;
}

.dl-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 700px;
    height: 400px;
    background: radial-gradient(ellipse, rgba(124, 111, 247, 0.15) 0%, transparent 70%);
}

.download-card {
    background: var(--bg-card);
    border: 1px solid rgba(124, 111, 247, 0.25);
    border-radius: 20px;
    padding: 60px 40px;
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
    box-shadow: 0 0 60px rgba(124, 111, 247, 0.1);
    position: relative;
    z-index: 1;
}

[data-theme="light"] .download-card {
    border-color: rgba(91, 80, 214, 0.2);
}

.dl-icon {
    font-size: 48px;
    color: var(--accent);
    filter: drop-shadow(0 0 16px var(--accent));
    margin-bottom: 20px;
}

.download-card h2 {
    font-size: 36px;
    font-weight: 800;
    letter-spacing: -1px;
    margin-bottom: 12px;
}

.download-card>p {
    font-size: 16px;
    color: var(--text-muted);
    margin-bottom: 28px;
}

.btn-xl {
    padding: 16px 36px;
    font-size: 17px;
    gap: 10px;
}

.dl-meta-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 18px;
    font-size: 13px;
    color: var(--text-muted);
}

.dl-dot {
    opacity: 0.4;
}

.dl-all-link {
    display: block;
    margin-top: 14px;
    font-size: 13px;
    color: var(--accent);
    text-decoration: none;
    opacity: 0.8;
    transition: opacity 0.2s;
}

.dl-all-link:hover {
    opacity: 1;
}

/* ============================================================
   ROADMAP
   ============================================================ */
.roadmap-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 24px;
}

.rm-item {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    transition: transform 0.2s, border-color 0.2s;
}

.rm-item:hover {
    transform: translateY(-3px);
    border-color: var(--border-hi);
}

.rm-status {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 4px 10px;
    border-radius: 20px;
    margin-bottom: 12px;
}

.rm-status.in-progress {
    background: rgba(124, 111, 247, 0.15);
    color: var(--accent);
}

.rm-status.planned {
    background: rgba(160, 166, 174, 0.1);
    color: var(--text-muted);
}

.rm-item h4 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text);
}

.rm-item p {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.5;
}

/* ============================================================
   FOOTER
   ============================================================ */
footer {
    padding: 40px 0;
    border-top: 1px solid var(--border);
}

.footer-inner {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-tagline {
    font-size: 13px;
    color: var(--text-muted);
}

.footer-links {
    display: flex;
    gap: 16px;
}

.footer-links a {
    font-size: 13px;
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: var(--text);
}

.footer-credit {
    font-size: 12px;
    color: var(--text-muted);
    opacity: 0.5;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1100px) {
    .api-layout {
        grid-template-columns: 1fr;
    }

    .api-full {
        grid-column: span 1;
    }

    .api-tip-row {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 1024px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .roadmap-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .feature-large {
        grid-column: span 2;
    }

    .gallery-grid {
        grid-template-columns: 1fr 1fr;
    }

    .gallery-item.gallery-main {
        grid-column: span 2;
    }

    .hero-inner {
        flex-direction: column;
        text-align: center;
    }

    .hero-content {
        max-width: 100%;
        align-items: center;
    }

    .hero-sub {
        text-align: center;
    }

    .hero-stats {
        justify-content: center;
    }

    .hero-visual {
        max-width: 500px;
        width: 100%;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: fixed;
        top: var(--nav-h);
        left: 0;
        right: 0;
        bottom: 0;
        flex-direction: column;
        padding: 24px;
        background: var(--nav-bg-solid);
        backdrop-filter: blur(20px);
        z-index: 99;
        gap: 4px;
        align-items: flex-start;
    }

    .nav-links.open {
        display: flex;
    }

    .nav-links li {
        width: 100%;
    }

    .nav-links a {
        display: block;
        padding: 12px 16px;
        border-radius: 8px;
        font-size: 16px;
    }

    .hamburger {
        display: flex;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .roadmap-grid {
        grid-template-columns: 1fr;
    }

    .feature-large {
        grid-column: span 1;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .gallery-item.gallery-main {
        grid-column: span 1;
    }

    .compat-row {
        grid-template-columns: 1fr;
    }

    .pipeline-flow {
        flex-direction: column;
    }

    .pipeline-arrow {
        transform: rotate(90deg);
    }

    .pipeline-step {
        max-width: 100%;
        width: 100%;
    }

    .hero-stats {
        gap: 16px;
        flex-wrap: wrap;
    }

    .hero-actions {
        justify-content: center;
    }

    .api-tip-row {
        grid-template-columns: 1fr;
    }

    .container,
    .nav-inner {
        padding: 0 20px;
    }

    .hero-inner {
        padding-left: 20px;
        padding-right: 20px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        letter-spacing: -1.5px;
    }

    .download-card {
        padding: 40px 24px;
    }

    .download-card h2 {
        font-size: 28px;
    }

    .api-card {
        padding: 16px;
    }
}

/* ── Scroll-in animation ── */
.anim {
    opacity: 0;
    transform: translateY(24px);
}

.anim.visible {
    opacity: 1;
    transform: none;
}

/* =========================================
   Video Modal Custom Styling
========================================= */
.custom-modal {
    display: flex;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(10px);
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.custom-modal.show {
    opacity: 1;
    pointer-events: auto;
}

.modal-content {
    background: #1e1e1e;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 40px;
    max-width: 440px;
    width: 90%;
    text-align: center;
    position: relative;
    transform: translateY(20px) scale(0.95);
    transition: transform 0.3s ease;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.6);
}

.custom-modal.show .modal-content {
    transform: translateY(0) scale(1);
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    color: rgba(255, 255, 255, 0.5);
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.2s;
    line-height: 1;
}

.modal-close:hover {
    color: #fff;
}

.modal-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: rgba(124, 111, 247, 0.1);
    color: #7c6ff7;
    margin-bottom: 24px;
}

.modal-content h3 {
    margin-top: 0;
    margin-bottom: 12px;
    font-size: 24px;
    color: #fff;
}

.modal-content p {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
    margin-bottom: 24px;
}