/* =========================================================
   Annoying Spider — main stylesheet
   Sections:
     1. Reset & base
     2. Variables / theme
     3. Layout & utilities
     4. Background layers
     5. Header & navigation
     6. Hero
     7. Sections (about, features, screenshots, trailer, languages, cta)
     8. Buttons
     9. Footer
    10. Reveal animations
    11. Responsive
   ========================================================= */


/* =========================================================
   1. Reset & base
   ========================================================= */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
    position: relative;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

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

ul {
    list-style: none;
}

button {
    font-family: inherit;
    border: none;
    background: none;
    cursor: pointer;
    color: inherit;
}

h1, h2, h3 {
    font-family: 'Orbitron', 'Inter', sans-serif;
    line-height: 1.15;
    letter-spacing: 0.01em;
    color: var(--text-bright);
}


/* =========================================================
   2. Variables / theme
   ========================================================= */
:root {
    --bg:           #06070d;
    --bg-2:         #0a0d1a;
    --panel:        rgba(16, 20, 36, 0.55);
    --panel-edge:   rgba(124, 255, 178, 0.12);
    --text:         #b9c2d8;
    --text-bright:  #f4f7ff;
    --muted:        #6f7894;

    --neon-green:   #7CFFB2;
    --neon-cyan:    #4cd2ff;
    --neon-violet:  #a070ff;
    --neon-red:     #ff3d6e;
    --neon-blue:    #4f7cff;

    --radius:       14px;
    --radius-lg:    22px;

    --shadow-glow:  0 0 30px rgba(124, 255, 178, 0.25),
                    0 0 80px rgba(80, 60, 200, 0.12);

    --maxw:         1180px;
    --header-h:     72px;

    --ease:         cubic-bezier(.2, .7, .2, 1);
}


/* =========================================================
   3. Layout & utilities
   ========================================================= */
.container {
    width: 100%;
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 0 24px;
}

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

.section-head {
    text-align: center;
    margin: 0 auto 60px;
    max-width: 720px;
}

.section-head h2 {
    font-size: clamp(1.8rem, 3.4vw, 2.6rem);
    font-weight: 700;
}

.kicker {
    display: inline-block;
    font-family: 'Orbitron', sans-serif;
    font-size: 0.7rem;
    letter-spacing: 0.35em;
    text-transform: uppercase;
    color: var(--neon-green);
    margin-bottom: 14px;
    padding: 6px 14px;
    border: 1px solid rgba(124, 255, 178, 0.3);
    border-radius: 999px;
    background: rgba(124, 255, 178, 0.05);
}


/* =========================================================
   4. Background layers
   ========================================================= */
.bg-layer {
    position: fixed;
    inset: 0;
    z-index: -1;
    overflow: hidden;
    background:
        radial-gradient(1200px 700px at 50% -10%, rgba(80, 60, 200, 0.25), transparent 60%),
        radial-gradient(900px 600px at 100% 100%, rgba(255, 61, 110, 0.10), transparent 60%),
        radial-gradient(800px 500px at 0% 80%, rgba(76, 210, 255, 0.10), transparent 60%),
        linear-gradient(180deg, #06070d 0%, #0a0d1a 100%);
}

.bg-grid {
    position: absolute;
    inset: -2px;
    background-image:
        linear-gradient(rgba(124, 255, 178, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(124, 255, 178, 0.05) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse 70% 50% at 50% 30%, #000 40%, transparent 80%);
    opacity: 0.6;
}

.bg-glow {
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    filter: blur(110px);
    opacity: 0.45;
    animation: float 18s ease-in-out infinite;
}

.bg-glow--purple {
    background: var(--neon-violet);
    top: -120px;
    left: -120px;
}

.bg-glow--green {
    background: var(--neon-green);
    bottom: -200px;
    right: -150px;
    animation-delay: -6s;
    opacity: 0.25;
}

.bg-glow--red {
    background: var(--neon-red);
    top: 50%;
    left: 60%;
    width: 400px;
    height: 400px;
    opacity: 0.18;
    animation-delay: -12s;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50%      { transform: translate(40px, -30px) scale(1.08); }
}

.bg-web {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0.55;
    animation: webPulse 8s ease-in-out infinite;
}

@keyframes webPulse {
    0%, 100% { opacity: 0.4; }
    50%      { opacity: 0.7; }
}


/* =========================================================
   5. Header & navigation
   ========================================================= */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    height: var(--header-h);
    transition: background-color 0.3s var(--ease), backdrop-filter 0.3s var(--ease), border-color 0.3s var(--ease);
    border-bottom: 1px solid transparent;
}

.site-header.scrolled {
    background: rgba(6, 7, 13, 0.72);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(124, 255, 178, 0.08);
}

.nav-bar {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--neon-green);
    transition: filter 0.3s var(--ease);
}

.logo:hover { filter: drop-shadow(0 0 8px rgba(124, 255, 178, 0.5)); }

.logo-mark svg { display: block; }

.logo-text {
    font-family: 'Orbitron', sans-serif;
    font-weight: 700;
    color: var(--text-bright);
    font-size: 1.05rem;
    letter-spacing: 0.08em;
}

.logo-accent {
    color: var(--neon-green);
    margin-left: 2px;
}

.nav ul {
    display: flex;
    align-items: center;
    gap: 6px;
}

.nav a {
    display: inline-block;
    padding: 8px 14px;
    font-size: 0.92rem;
    color: var(--text);
    border-radius: 8px;
    transition: color 0.2s var(--ease), background-color 0.2s var(--ease);
}

.nav a:hover { color: var(--text-bright); background: rgba(255,255,255,0.04); }

.nav .nav-cta {
    border: 1px solid rgba(124, 255, 178, 0.35);
    color: var(--neon-green);
    margin-left: 8px;
}

.nav .nav-cta:hover {
    background: rgba(124, 255, 178, 0.1);
    color: #fff;
}

.hamburger {
    display: none;
    width: 40px;
    height: 40px;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 6px;
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.08);
}

.hamburger span {
    width: 22px;
    height: 2px;
    background: var(--text-bright);
    border-radius: 2px;
    transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}

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


/* =========================================================
   6. Hero
   ========================================================= */
.hero {
    min-height: 100vh;
    padding-top: calc(var(--header-h) + 40px);
    padding-bottom: 80px;
    display: flex;
    align-items: center;
    position: relative;
}

.hero-inner {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 60px;
    align-items: center;
}

.eyebrow {
    display: inline-block;
    font-family: 'Orbitron', sans-serif;
    font-size: 0.72rem;
    letter-spacing: 0.35em;
    text-transform: uppercase;
    color: var(--neon-cyan);
    margin-bottom: 22px;
    padding: 8px 16px;
    border: 1px solid rgba(76, 210, 255, 0.25);
    border-radius: 999px;
    background: rgba(76, 210, 255, 0.05);
}

.hero-title {
    font-size: clamp(2.8rem, 7vw, 5.4rem);
    font-weight: 900;
    margin-bottom: 18px;
    letter-spacing: -0.01em;
    text-shadow: 0 0 30px rgba(124, 255, 178, 0.2);
}

.title-accent {
    background: linear-gradient(120deg, var(--neon-green), var(--neon-cyan) 60%, var(--neon-violet));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    filter: drop-shadow(0 0 24px rgba(124, 255, 178, 0.25));
}

.hero-tagline {
    font-size: clamp(1.05rem, 1.6vw, 1.35rem);
    color: var(--text-bright);
    margin-bottom: 12px;
    font-weight: 500;
}

.hero-sub {
    color: var(--muted);
    margin-bottom: 36px;
    max-width: 520px;
    font-size: 1rem;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 50px;
}

.hero-meta {
    display: flex;
    gap: 36px;
    padding-top: 28px;
    border-top: 1px solid rgba(255,255,255,0.06);
    max-width: 480px;
}

.meta-num {
    display: block;
    font-family: 'Orbitron', sans-serif;
    font-weight: 700;
    font-size: 1.6rem;
    color: var(--text-bright);
}

.meta-label {
    font-size: 0.78rem;
    color: var(--muted);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

/* Hero visual / orb */
.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.orb {
    position: relative;
    width: 380px;
    height: 380px;
    max-width: 100%;
    aspect-ratio: 1 / 1;
}

.orb-ring {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 1px solid rgba(124, 255, 178, 0.25);
}

.orb-ring-1 {
    inset: 0;
    animation: spin 22s linear infinite;
    border-style: dashed;
}

.orb-ring-2 {
    inset: 30px;
    border-color: rgba(160, 112, 255, 0.25);
    animation: spin 16s linear infinite reverse;
}

.orb-ring-3 {
    inset: 60px;
    border-color: rgba(255, 61, 110, 0.25);
    animation: spin 12s linear infinite;
}

.orb-core {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    filter: drop-shadow(0 0 26px rgba(124, 255, 178, 0.35));
    animation: bob 4s ease-in-out infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes bob  { 0%,100% { transform: translateY(-6px); } 50% { transform: translateY(6px); } }

/* Scroll hint */
.scroll-hint {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    width: 22px;
    height: 36px;
    border: 1.5px solid rgba(255,255,255,0.25);
    border-radius: 12px;
    display: flex;
    justify-content: center;
    padding-top: 6px;
}

.scroll-hint span {
    width: 3px;
    height: 8px;
    background: var(--neon-green);
    border-radius: 3px;
    animation: scrollDown 1.8s ease-in-out infinite;
}

@keyframes scrollDown {
    0%   { transform: translateY(0);   opacity: 1; }
    80%  { transform: translateY(14px); opacity: 0; }
    100% { transform: translateY(0);   opacity: 0; }
}


/* =========================================================
   7. Sections
   ========================================================= */

/* --- About --- */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    max-width: 980px;
    margin: 0 auto;
}

.about-text {
    font-size: 1.05rem;
    color: var(--text);
    line-height: 1.8;
}

/* --- Features --- */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.feature-card {
    position: relative;
    padding: 30px 26px;
    background: var(--panel);
    border: 1px solid var(--panel-edge);
    border-radius: var(--radius);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: transform 0.4s var(--ease), border-color 0.4s var(--ease), box-shadow 0.4s var(--ease);
    overflow: hidden;
}

.feature-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(124, 255, 178, 0.08), transparent 50%);
    opacity: 0;
    transition: opacity 0.4s var(--ease);
    pointer-events: none;
}

.feature-card:hover {
    transform: translateY(-4px);
    border-color: rgba(124, 255, 178, 0.4);
    box-shadow: var(--shadow-glow);
}

.feature-card:hover::before { opacity: 1; }

.feature-icon {
    width: 48px;
    height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: rgba(124, 255, 178, 0.08);
    color: var(--neon-green);
    margin-bottom: 18px;
    border: 1px solid rgba(124, 255, 178, 0.2);
}

.feature-card h3 {
    font-family: 'Inter', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-bright);
}

.feature-card p {
    color: var(--muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* --- Screenshots --- */
.shots-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.shot-frame {
    position: relative;
    aspect-ratio: 9 / 16;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: linear-gradient(160deg, #11162a, #0a0d1a);
    border: 1px solid rgba(124, 255, 178, 0.15);
    box-shadow: 0 18px 40px rgba(0,0,0,0.5);
    transition: transform 0.4s var(--ease), border-color 0.4s var(--ease), box-shadow 0.4s var(--ease);
}

.shot-frame::before {
    /* phone notch hint */
    content: "";
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 6px;
    background: rgba(0,0,0,0.6);
    border-radius: 999px;
    z-index: 2;
}

.shot:hover .shot-frame {
    transform: translateY(-6px);
    border-color: rgba(124, 255, 178, 0.35);
    box-shadow: 0 24px 60px rgba(124, 255, 178, 0.12), 0 0 40px rgba(160, 112, 255, 0.15);
}

.shot-placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background:
        radial-gradient(ellipse at 50% 30%, rgba(124, 255, 178, 0.15), transparent 60%),
        repeating-linear-gradient(45deg, rgba(255,255,255,0.02) 0 2px, transparent 2px 14px);
}

.shot-placeholder::after {
    /* web overlay inside frame */
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 50% 50%, transparent 30%, rgba(124, 255, 178, 0.06) 31%, transparent 32%),
        radial-gradient(circle at 50% 50%, transparent 45%, rgba(124, 255, 178, 0.05) 46%, transparent 47%),
        radial-gradient(circle at 50% 50%, transparent 60%, rgba(124, 255, 178, 0.04) 61%, transparent 62%);
    pointer-events: none;
}

.shot-label {
    font-family: 'Orbitron', sans-serif;
    font-weight: 700;
    color: var(--text-bright);
    letter-spacing: 0.1em;
    font-size: 1.1rem;
    z-index: 1;
}

.shot-sub {
    color: var(--muted);
    font-size: 0.85rem;
    z-index: 1;
}

/* --- Trailer --- */
.trailer-frame {
    position: relative;
    max-width: 960px;
    margin: 0 auto;
    aspect-ratio: 16 / 9;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid rgba(124, 255, 178, 0.18);
    box-shadow: 0 30px 80px rgba(0,0,0,0.55), 0 0 60px rgba(124, 255, 178, 0.08);
    background: #0a0d1a;
}

.trailer-frame video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.trailer-placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 18px;
    background:
        radial-gradient(ellipse at center, rgba(124, 255, 178, 0.12), transparent 70%),
        linear-gradient(160deg, #11162a, #0a0d1a);
}

.play-btn {
    width: 84px;
    height: 84px;
    border-radius: 50%;
    background: rgba(124, 255, 178, 0.1);
    border: 1.5px solid rgba(124, 255, 178, 0.5);
    color: var(--neon-green);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s var(--ease), background-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
    backdrop-filter: blur(6px);
}

.play-btn::before {
    content: "";
    position: absolute;
    width: 84px;
    height: 84px;
    border-radius: 50%;
    border: 1.5px solid rgba(124, 255, 178, 0.4);
    animation: ping 2.2s ease-out infinite;
}

@keyframes ping {
    0%   { transform: scale(1);   opacity: 0.8; }
    100% { transform: scale(1.6); opacity: 0;   }
}

.play-btn:hover {
    background: rgba(124, 255, 178, 0.2);
    transform: scale(1.06);
    box-shadow: 0 0 30px rgba(124, 255, 178, 0.4);
}

.trailer-text {
    color: var(--text);
    font-family: 'Orbitron', sans-serif;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    font-size: 0.85rem;
}

/* --- Languages --- */
.lang-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    max-width: 820px;
    margin: 0 auto;
}

.lang-chip {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px 22px;
    background: var(--panel);
    border: 1px solid var(--panel-edge);
    border-radius: var(--radius);
    color: var(--text-bright);
    font-weight: 500;
    transition: border-color 0.3s var(--ease), transform 0.3s var(--ease);
    backdrop-filter: blur(10px);
}

.lang-chip:hover {
    border-color: rgba(124, 255, 178, 0.4);
    transform: translateY(-2px);
}

.lang-flag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: linear-gradient(135deg, rgba(124, 255, 178, 0.18), rgba(160, 112, 255, 0.18));
    color: var(--neon-green);
    font-family: 'Orbitron', sans-serif;
    font-weight: 700;
    font-size: 0.78rem;
    letter-spacing: 0.05em;
    border: 1px solid rgba(124, 255, 178, 0.2);
}

/* --- CTA --- */
.cta {
    padding: 130px 0;
    text-align: center;
}

.cta-inner {
    max-width: 720px;
    padding: 60px 32px;
    border-radius: var(--radius-lg);
    background:
        radial-gradient(ellipse at center, rgba(160, 112, 255, 0.15), transparent 70%),
        var(--panel);
    border: 1px solid rgba(124, 255, 178, 0.2);
    backdrop-filter: blur(12px);
    box-shadow: var(--shadow-glow);
}

.cta-inner h2 {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    margin-bottom: 14px;
}

.cta-inner p {
    color: var(--muted);
    margin-bottom: 32px;
    font-size: 1.05rem;
}


/* =========================================================
   8. Buttons
   ========================================================= */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 26px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 0.02em;
    transition: transform 0.2s var(--ease), box-shadow 0.3s var(--ease), background-color 0.3s var(--ease), color 0.3s var(--ease);
    cursor: pointer;
    user-select: none;
    will-change: transform;
}

.btn-icon { display: inline-flex; }

.btn-primary {
    background: linear-gradient(120deg, var(--neon-green), #38e0ff);
    color: #06070d;
    box-shadow: 0 10px 28px rgba(124, 255, 178, 0.28), 0 0 0 1px rgba(124, 255, 178, 0.4) inset;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 40px rgba(124, 255, 178, 0.45), 0 0 0 1px rgba(124, 255, 178, 0.6) inset;
}

.btn-primary:active {
    transform: translateY(0);
    box-shadow: 0 6px 16px rgba(124, 255, 178, 0.3);
}

.btn-ghost {
    background: rgba(255,255,255,0.04);
    color: var(--text-bright);
    border: 1px solid rgba(255,255,255,0.12);
}

.btn-ghost:hover {
    background: rgba(255,255,255,0.08);
    border-color: rgba(124, 255, 178, 0.4);
    transform: translateY(-2px);
}

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

.btn-lg {
    padding: 18px 36px;
    font-size: 1rem;
}


/* =========================================================
   9. Footer
   ========================================================= */
.site-footer {
    padding: 40px 0;
    border-top: 1px solid rgba(255,255,255,0.06);
    background: rgba(6, 7, 13, 0.6);
    backdrop-filter: blur(8px);
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
}

.footer-brand p {
    color: var(--muted);
    font-size: 0.85rem;
    margin-top: 4px;
}

.footer-links {
    display: flex;
    gap: 22px;
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--text);
    font-size: 0.9rem;
    transition: color 0.2s var(--ease);
}

.footer-links a:hover { color: var(--neon-green); }


/* =========================================================
   10. Reveal animations (driven by JS IntersectionObserver)
   ========================================================= */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
    will-change: opacity, transform;
}

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

@media (prefers-reduced-motion: reduce) {
    .reveal { opacity: 1; transform: none; transition: none; }
    *, *::before, *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
    }
}


/* =========================================================
   11. Responsive
   ========================================================= */
@media (max-width: 960px) {
    .hero-inner {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }

    .hero-content { display: flex; flex-direction: column; align-items: center; }
    .hero-sub { margin-left: auto; margin-right: auto; }
    .hero-actions { justify-content: center; }
    .hero-meta { margin: 0 auto; justify-content: center; }
    .hero-visual { order: -1; }

    .orb { width: 280px; }

    .about-grid { grid-template-columns: 1fr; gap: 24px; }
    .feature-grid { grid-template-columns: repeat(2, 1fr); }
    .shots-grid { grid-template-columns: repeat(2, 1fr); }
    .lang-grid { grid-template-columns: repeat(2, 1fr); }

    /* Mobile nav */
    .hamburger { display: inline-flex; }
    .nav {
        position: fixed;
        top: var(--header-h);
        left: 0;
        right: 0;
        background: rgba(6, 7, 13, 0.96);
        backdrop-filter: blur(18px);
        border-bottom: 1px solid rgba(124, 255, 178, 0.1);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.4s var(--ease);
    }
    .nav.open { max-height: 80vh; }
    .nav ul {
        flex-direction: column;
        align-items: stretch;
        padding: 16px 24px 24px;
        gap: 4px;
    }
    .nav a { padding: 14px 16px; font-size: 1rem; }
    .nav .nav-cta { margin: 8px 0 0; text-align: center; }
}

@media (max-width: 600px) {
    .section { padding: 80px 0; }
    .section-head { margin-bottom: 40px; }

    .feature-grid,
    .shots-grid,
    .lang-grid { grid-template-columns: 1fr; }

    .shot-frame { aspect-ratio: 9 / 16; max-width: 320px; margin: 0 auto; }

    .hero-meta {
        gap: 22px;
        flex-wrap: wrap;
        justify-content: center;
    }

    .meta-num { font-size: 1.3rem; }

    .btn { padding: 12px 22px; font-size: 0.9rem; }
    .btn-lg { padding: 16px 28px; }

    .cta-inner { padding: 44px 22px; }

    .footer-inner { flex-direction: column; text-align: center; }

    .legal-container { padding-top: 20px; }
    .legal-title { font-size: 2rem; }
    .legal-content { padding: 24px 20px; }
    .legal-content h2 { font-size: 1.1rem; }
}


/* =========================================================
   12. Legal pages (Privacy Policy, etc.)
   ========================================================= */
.section.legal {
    padding-top: 140px;
    padding-bottom: 80px;
}

.legal-container {
    max-width: 880px;
}

.legal-title {
    font-size: clamp(2rem, 4vw, 2.8rem);
    margin-top: 8px;
}

.legal-updated {
    margin-top: 10px;
    color: var(--muted);
    font-size: 0.9rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.legal-content {
    margin-top: 40px;
    padding: 40px;
    background: var(--panel);
    border: 1px solid var(--panel-edge);
    border-radius: var(--radius-lg);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-glow);
}

.legal-lead {
    font-size: 1.05rem;
    color: var(--text-bright);
    margin-bottom: 12px;
}

.legal-content h2 {
    font-family: 'Orbitron', 'Inter', sans-serif;
    font-size: 1.25rem;
    color: var(--neon-green);
    margin-top: 36px;
    margin-bottom: 12px;
    letter-spacing: 0.02em;
}

.legal-content h2:first-of-type {
    margin-top: 28px;
}

.legal-content p {
    margin-bottom: 14px;
    color: var(--text);
}

.legal-content p strong {
    color: var(--text-bright);
}

.legal-list {
    margin: 4px 0 18px 0;
    padding-left: 0;
}

.legal-list li {
    position: relative;
    padding: 6px 0 6px 22px;
    color: var(--text);
}

.legal-list li::before {
    content: "";
    position: absolute;
    left: 4px;
    top: 14px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--neon-green);
    box-shadow: 0 0 8px rgba(124, 255, 178, 0.6);
}

.legal-contact {
    padding: 16px 20px;
    border-left: 3px solid var(--neon-green);
    background: rgba(124, 255, 178, 0.05);
    border-radius: 0 8px 8px 0;
    margin: 8px 0 14px 0;
}

.legal-contact a {
    color: var(--neon-green);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.legal-contact a:hover {
    color: var(--text-bright);
}

.legal-footnote {
    margin-top: 28px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    color: var(--muted);
    font-size: 0.92rem;
    font-style: italic;
}

.legal-back {
    margin-top: 32px;
    text-align: center;
}


/* =========================================================
   13. Brand additions — hero phone, gallery, trailer stage,
       spotlight tiles, cross-platform showcase
   ========================================================= */

/* Section subtitle (under .section-head h2) */
.section-sub {
    margin-top: 14px;
    color: var(--muted);
    font-size: 1.02rem;
    line-height: 1.55;
}

/* --- Hero phone mockup (replaces .orb in new layout) --- */
.phone-frame {
    position: relative;
    width: 320px;
    max-width: 100%;
    aspect-ratio: 9 / 19;
    border-radius: 44px;
    padding: 14px;
    background:
        linear-gradient(160deg, #1c2238 0%, #0a0d1a 60%, #0a0d1a 100%);
    border: 1px solid rgba(124, 255, 178, 0.25);
    box-shadow:
        0 40px 80px rgba(0, 0, 0, 0.6),
        0 0 60px rgba(124, 255, 178, 0.15),
        0 0 1px rgba(255, 255, 255, 0.4) inset;
    animation: phoneBob 6s ease-in-out infinite;
    z-index: 1;
}

@keyframes phoneBob {
    0%, 100% { transform: translateY(0) rotate(-1.5deg); }
    50%      { transform: translateY(-10px) rotate(1.5deg); }
}

.phone-notch {
    position: absolute;
    top: 22px;
    left: 50%;
    transform: translateX(-50%);
    width: 90px;
    height: 22px;
    background: #06070d;
    border-radius: 999px;
    z-index: 3;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.05) inset;
}

.phone-screen {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 32px;
    overflow: hidden;
    background: #06070d;
    z-index: 1;
}

.phone-screen img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.phone-shine {
    position: absolute;
    inset: 14px;
    border-radius: 32px;
    background: linear-gradient(125deg,
        rgba(255, 255, 255, 0.12) 0%,
        rgba(255, 255, 255, 0) 30%,
        rgba(255, 255, 255, 0) 70%,
        rgba(124, 255, 178, 0.08) 100%);
    pointer-events: none;
    z-index: 2;
    mix-blend-mode: screen;
}

.phone-glow {
    position: absolute;
    inset: -40px;
    border-radius: 50%;
    background: radial-gradient(circle at 50% 50%,
        rgba(124, 255, 178, 0.25),
        rgba(160, 112, 255, 0.15) 40%,
        transparent 70%);
    filter: blur(40px);
    z-index: 0;
    animation: phoneGlow 6s ease-in-out infinite;
}

@keyframes phoneGlow {
    0%, 100% { opacity: 0.6; transform: scale(1); }
    50%      { opacity: 0.9; transform: scale(1.06); }
}

/* The new hero visual is the phone — keep it centered */
.hero-visual { position: relative; }

/* --- About split (image + copy) --- */
.about-split {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 48px;
    align-items: center;
    max-width: 1080px;
    margin: 0 auto;
}

.about-art {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    aspect-ratio: 9 / 16;
    max-width: 360px;
    margin: 0 auto;
    border: 1px solid var(--panel-edge);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5), 0 0 40px rgba(160, 112, 255, 0.15);
    transform: rotate(-2deg);
    transition: transform 0.6s var(--ease), box-shadow 0.6s var(--ease);
}

.about-art:hover {
    transform: rotate(0deg) translateY(-6px);
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.6), 0 0 60px rgba(124, 255, 178, 0.25);
}

.about-art img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.about-art figcaption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 24px 22px 20px;
    background: linear-gradient(to top, rgba(6, 7, 13, 0.95), transparent);
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.art-tag {
    display: inline-block;
    align-self: flex-start;
    font-family: 'Orbitron', sans-serif;
    font-size: 0.68rem;
    letter-spacing: 0.25em;
    color: var(--neon-green);
    padding: 4px 10px;
    border: 1px solid rgba(124, 255, 178, 0.4);
    border-radius: 999px;
    margin-bottom: 8px;
    text-transform: uppercase;
}

.art-title {
    font-family: 'Orbitron', sans-serif;
    font-weight: 700;
    font-size: 1.15rem;
    color: var(--text-bright);
}

.art-sub {
    font-size: 0.88rem;
    color: var(--text);
    line-height: 1.45;
}

.about-copy { display: flex; flex-direction: column; gap: 18px; }
.about-copy .about-text { margin: 0; }

.about-stats {
    margin-top: 14px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    padding-top: 22px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.about-stats li {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 0.82rem;
    color: var(--muted);
    letter-spacing: 0.04em;
}

.about-stats li span {
    font-family: 'Orbitron', sans-serif;
    font-weight: 700;
    font-size: 1.8rem;
    color: var(--text-bright);
    background: linear-gradient(120deg, var(--neon-green), var(--neon-cyan));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* --- Trailer stage (cinematic) --- */
.trailer-stage {
    position: relative;
}

.trailer-stage .trailer-frame {
    aspect-ratio: 16 / 9;
    border-radius: 24px;
    border: 1px solid rgba(124, 255, 178, 0.25);
    box-shadow:
        0 40px 100px rgba(0, 0, 0, 0.6),
        0 0 80px rgba(124, 255, 178, 0.15),
        0 0 0 6px rgba(124, 255, 178, 0.04);
    background: #06070d;
    overflow: hidden;
    max-width: 1080px;
}

.trailer-placeholder {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.trailer-overlay {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at center, rgba(6, 7, 13, 0.25) 0%, rgba(6, 7, 13, 0.85) 75%),
        linear-gradient(to top, rgba(6, 7, 13, 0.95), transparent 60%);
    z-index: 1;
}

.trailer-cta {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.play-btn {
    position: relative;
    overflow: visible;
}

.play-ring {
    position: absolute;
    inset: -10px;
    border-radius: 50%;
    border: 1px solid rgba(124, 255, 178, 0.35);
    animation: ping 2.4s ease-out infinite;
    pointer-events: none;
}

.trailer-text {
    font-family: 'Orbitron', sans-serif;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    font-size: 0.85rem;
    color: var(--text-bright);
    margin-top: 6px;
}

.trailer-sub {
    font-size: 0.75rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--muted);
}

/* Marquee under trailer */
.trailer-ticker {
    margin-top: 22px;
    display: flex;
    overflow: hidden;
    gap: 0;
    border-top: 1px solid rgba(124, 255, 178, 0.12);
    border-bottom: 1px solid rgba(124, 255, 178, 0.12);
    padding: 14px 0;
    max-width: 1080px;
    margin-left: auto;
    margin-right: auto;
    mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.trailer-ticker span {
    flex: 0 0 auto;
    white-space: nowrap;
    font-family: 'Orbitron', sans-serif;
    letter-spacing: 0.35em;
    font-size: 0.78rem;
    color: var(--neon-green);
    animation: tickerScroll 28s linear infinite;
    padding-right: 40px;
}

@keyframes tickerScroll {
    from { transform: translateX(0); }
    to   { transform: translateX(-100%); }
}

/* --- Screenshots gallery (image-driven) --- */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.gallery-item {
    position: relative;
    aspect-ratio: 3 / 4;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: linear-gradient(160deg, #11162a, #0a0d1a);
    border: 1px solid var(--panel-edge);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.5);
    transition: transform 0.45s var(--ease), border-color 0.45s var(--ease), box-shadow 0.45s var(--ease);
}

/* Legacy modifiers — kept inert for backwards compatibility */
.gallery-item--tall,
.gallery-item--wide { aspect-ratio: 3 / 4; }

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;   /* keep the TOP of the artwork visible */
    transition: transform 0.7s var(--ease);
    display: block;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: high-quality;
}

.gallery-item:hover {
    transform: translateY(-6px);
    border-color: rgba(124, 255, 178, 0.4);
    box-shadow: 0 28px 60px rgba(0, 0, 0, 0.6), 0 0 50px rgba(160, 112, 255, 0.18);
}

.gallery-item:hover img { transform: scale(1.05); }

.gallery-item figcaption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 18px 18px 14px;
    background: linear-gradient(to top, rgba(6, 7, 13, 0.92), transparent);
    display: flex;
    flex-direction: column;
    gap: 4px;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.35s var(--ease), transform 0.35s var(--ease);
}

.gallery-item:hover figcaption {
    opacity: 1;
    transform: translateY(0);
}

.cap-tag {
    align-self: flex-start;
    font-family: 'Orbitron', sans-serif;
    font-size: 0.62rem;
    letter-spacing: 0.25em;
    color: var(--neon-green);
    padding: 3px 9px;
    border: 1px solid rgba(124, 255, 178, 0.4);
    border-radius: 999px;
    margin-bottom: 4px;
    text-transform: uppercase;
}

.cap-text {
    color: var(--text-bright);
    font-size: 0.92rem;
    line-height: 1.35;
}

/* --- Customize spotlight (three tiles) --- */
.spotlight-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.spotlight {
    display: flex;
    flex-direction: column;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--panel);
    border: 1px solid var(--panel-edge);
    backdrop-filter: blur(10px);
    transition: transform 0.4s var(--ease), border-color 0.4s var(--ease), box-shadow 0.4s var(--ease);
}

.spotlight:hover {
    transform: translateY(-6px);
    border-color: rgba(124, 255, 178, 0.4);
    box-shadow: 0 24px 50px rgba(0, 0, 0, 0.5), 0 0 40px rgba(124, 255, 178, 0.12);
}

.spotlight-img {
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: #06070d;
    border-bottom: 1px solid var(--panel-edge);
}

.spotlight-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s var(--ease);
}

.spotlight:hover .spotlight-img img { transform: scale(1.04); }

.spotlight-body {
    padding: 24px 22px 26px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.spotlight-tag {
    align-self: flex-start;
    font-family: 'Orbitron', sans-serif;
    font-size: 0.65rem;
    letter-spacing: 0.28em;
    color: var(--neon-cyan);
    padding: 4px 10px;
    border: 1px solid rgba(76, 210, 255, 0.3);
    border-radius: 999px;
    text-transform: uppercase;
    margin-bottom: 4px;
}

.spotlight-body h3 {
    font-family: 'Orbitron', 'Inter', sans-serif;
    font-size: 1.1rem;
    color: var(--text-bright);
    margin-bottom: 2px;
}

.spotlight-body p {
    color: var(--muted);
    font-size: 0.94rem;
    line-height: 1.55;
}

/* --- Cross-platform showcase (laptop + copy) --- */
.showcase {
    position: relative;
}

.showcase-inner {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 60px;
    align-items: center;
}

.showcase-copy { display: flex; flex-direction: column; gap: 20px; align-items: flex-start; }
.showcase-copy .kicker { margin-bottom: 4px; }

.showcase-copy h2 {
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    line-height: 1.2;
}

.showcase-copy p {
    color: var(--text);
    max-width: 440px;
}

.showcase-art {
    position: relative;
    display: flex;
    justify-content: center;
}

.showcase-laptop {
    position: relative;
    width: 100%;
    max-width: 560px;
}

.showcase-bezel {
    position: relative;
    aspect-ratio: 16 / 10;
    border-radius: 14px;
    padding: 10px;
    background: linear-gradient(160deg, #1c2238, #0a0d1a);
    border: 1px solid rgba(124, 255, 178, 0.25);
    box-shadow:
        0 30px 80px rgba(0, 0, 0, 0.6),
        0 0 60px rgba(160, 112, 255, 0.15),
        0 0 1px rgba(255, 255, 255, 0.3) inset;
    overflow: hidden;
}

.showcase-bezel img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 6px;
    display: block;
}

.showcase-bezel::after {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 6px;
    background: rgba(0, 0, 0, 0.6);
    border-radius: 0 0 8px 8px;
    z-index: 2;
}

.showcase-stand {
    width: 60%;
    height: 14px;
    margin: 0 auto;
    border-radius: 0 0 18px 18px;
    background: linear-gradient(180deg, #1c2238, #0a0d1a 60%, transparent);
    transform: perspective(400px) rotateX(35deg);
    transform-origin: top center;
    opacity: 0.75;
}

/* --- CTA fineprint --- */
.cta-fineprint {
    margin-top: 22px !important;
    font-size: 0.82rem !important;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted) !important;
}

.cta-fineprint strong {
    color: var(--neon-green);
    font-weight: 700;
}

/* --- Responsive overrides for new components --- */
@media (max-width: 960px) {
    .phone-frame { width: 260px; }

    .about-split { grid-template-columns: 1fr; gap: 36px; }
    .about-art { transform: rotate(0deg); max-width: 320px; }

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

    .spotlight-grid { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto; }

    .showcase-inner { grid-template-columns: 1fr; gap: 40px; text-align: center; }
    .showcase-copy { align-items: center; }
    .showcase-copy p { margin-left: auto; margin-right: auto; }
}

@media (max-width: 600px) {
    .phone-frame { width: 220px; border-radius: 36px; padding: 10px; }
    .phone-notch { width: 70px; height: 18px; top: 18px; }
    .phone-screen, .phone-shine { border-radius: 26px; }

    .gallery-grid { grid-template-columns: 1fr; }

    .trailer-stage .trailer-frame { border-radius: 16px; }
    .trailer-ticker span { font-size: 0.68rem; letter-spacing: 0.2em; padding-right: 24px; }

    .about-stats { grid-template-columns: repeat(3, 1fr); gap: 8px; }
    .about-stats li span { font-size: 1.3rem; }

    .showcase-laptop { max-width: 100%; }

    .section-sub { font-size: 0.92rem; }
}


/* =========================================================
   14. Cinematic trailer — video + theme.mp3 soundtrack
   ========================================================= */
.trailer-reel {
    position: relative;
    aspect-ratio: 16 / 9;
    border-radius: 24px;
    overflow: hidden;
    background: #000;
    border: 1px solid rgba(124, 255, 178, 0.25);
    box-shadow:
        0 40px 100px rgba(0, 0, 0, 0.6),
        0 0 80px rgba(124, 255, 178, 0.15),
        0 0 0 6px rgba(124, 255, 178, 0.04);
    max-width: 1080px;
    margin: 0 auto;
}

/* Foreground video — CONTAIN so portrait recordings stay fully visible */
.reel-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    background: transparent;
    z-index: 2;
    cursor: pointer;
}

/* Blurred mirror of the same video to fill the 16:9 frame around portrait content */
.reel-video-bg {
    position: absolute;
    inset: -4%;
    width: 108%;
    height: 108%;
    object-fit: cover;
    display: block;
    filter: blur(38px) brightness(0.45) saturate(1.2);
    transform: scale(1.05);
    z-index: 1;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.8s var(--ease);
}

.trailer-reel.is-playing .reel-video-bg { opacity: 1; }

/* Letterbox bars (cinematic 2.4:1 look) */
.reel-bar {
    position: absolute;
    left: 0;
    right: 0;
    height: 36px;
    background: #000;
    z-index: 5;
    pointer-events: none;
    transition: transform 0.7s var(--ease);
}
.reel-bar--top    { top: 0;    transform: translateY(-100%); }
.reel-bar--bottom { bottom: 0; transform: translateY(100%);  }

/* Letterbox slides in when video plays */
.trailer-reel.is-playing .reel-bar--top    { transform: translateY(0); }
.trailer-reel.is-playing .reel-bar--bottom { transform: translateY(0); }

/* Subtle vignette + scanlines for cinematic feel */
.reel-vignette {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center, transparent 50%, rgba(0,0,0,0.55) 100%);
    pointer-events: none;
    z-index: 4;
    opacity: 0;
    transition: opacity 0.6s var(--ease);
}
.trailer-reel.is-playing .reel-vignette { opacity: 1; }

.reel-scanlines {
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(
        to bottom,
        rgba(255, 255, 255, 0.02) 0px,
        rgba(255, 255, 255, 0.02) 1px,
        transparent 1px,
        transparent 3px);
    pointer-events: none;
    z-index: 4;
    opacity: 0;
    mix-blend-mode: overlay;
    transition: opacity 0.6s var(--ease);
}
.trailer-reel.is-playing .reel-scanlines { opacity: 1; }

/* Intro title card */
.reel-intro {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    z-index: 6;
    background:
        radial-gradient(ellipse at center, rgba(6,7,13,0.4) 0%, rgba(6,7,13,0.92) 80%);
    opacity: 0;
    transform: scale(1.02);
    transition: opacity 1s var(--ease), transform 1s var(--ease);
    pointer-events: none;
    padding: 0 24px;
}

.trailer-reel.is-playing .reel-intro {
    opacity: 1;
    transform: scale(1);
    animation: introOut 4s var(--ease) 0.4s forwards;
}

@keyframes introOut {
    0%   { opacity: 0;  transform: scale(1.04); }
    20%  { opacity: 1;  transform: scale(1); }
    75%  { opacity: 1;  transform: scale(1); }
    100% { opacity: 0;  transform: scale(0.98); }
}

.reel-intro-eyebrow {
    font-family: 'Orbitron', sans-serif;
    font-size: 0.7rem;
    letter-spacing: 0.4em;
    color: var(--neon-green);
    text-transform: uppercase;
    margin-bottom: 18px;
    padding: 6px 14px;
    border: 1px solid rgba(124, 255, 178, 0.35);
    border-radius: 999px;
}

.reel-intro-title {
    font-family: 'Orbitron', sans-serif;
    font-weight: 900;
    font-size: clamp(2rem, 6vw, 4rem);
    line-height: 1;
    color: var(--text-bright);
    margin-bottom: 14px;
    letter-spacing: -0.01em;
    text-shadow: 0 0 30px rgba(124, 255, 178, 0.4);
}

.reel-intro-title span {
    background: linear-gradient(120deg, var(--neon-green), var(--neon-cyan) 60%, var(--neon-violet));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.reel-intro-sub {
    color: var(--text);
    font-size: clamp(0.85rem, 1.4vw, 1.05rem);
    letter-spacing: 0.06em;
    max-width: 420px;
}

/* Permanent brand bug — top-right (out of HUD's way) */
.reel-bug {
    position: absolute;
    top: 18px;
    right: 18px;
    z-index: 7;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    background: rgba(6, 7, 13, 0.55);
    border: 1px solid rgba(124, 255, 178, 0.25);
    border-radius: 999px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: var(--neon-green);
    font-family: 'Orbitron', sans-serif;
    font-size: 0.6rem;
    letter-spacing: 0.22em;
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity 0.7s var(--ease) 4.5s, transform 0.7s var(--ease) 4.5s;
}

.trailer-reel.is-playing .reel-bug {
    opacity: 1;
    transform: translateY(0);
}

.reel-bug-mark { display: inline-flex; }
.reel-bug-text { color: var(--text-bright); }

/* End card (fades in when video ends) */
.reel-end {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    z-index: 8;
    background:
        radial-gradient(ellipse at center, rgba(160, 112, 255, 0.18) 0%, rgba(6,7,13,0.95) 70%);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.8s var(--ease);
    padding: 0 24px;
}

.trailer-reel.is-ended .reel-end {
    opacity: 1;
    pointer-events: auto;
}

.reel-end-eyebrow {
    font-family: 'Orbitron', sans-serif;
    font-size: 0.72rem;
    letter-spacing: 0.4em;
    color: var(--neon-cyan);
    text-transform: uppercase;
    margin-bottom: 16px;
}

.reel-end-title {
    font-family: 'Orbitron', sans-serif;
    font-weight: 900;
    font-size: clamp(1.8rem, 5vw, 3.4rem);
    line-height: 1;
    color: var(--text-bright);
    margin-bottom: 22px;
    text-shadow: 0 0 30px rgba(160, 112, 255, 0.5);
}

.reel-end-title span {
    background: linear-gradient(120deg, var(--neon-green), var(--neon-cyan) 60%, var(--neon-violet));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.reel-end-by {
    font-family: 'Orbitron', sans-serif;
    font-size: 0.68rem;
    letter-spacing: 0.35em;
    color: var(--muted);
    margin-bottom: 26px;
}

.reel-end-btn { margin-top: 4px; }

/* Initial poster overlay with the play CTA */
.reel-poster {
    position: absolute;
    inset: 0;
    z-index: 9;
    display: flex;
    align-items: center;
    justify-content: center;
    background-size: cover;
    background-position: center;
    transition: opacity 0.6s var(--ease), visibility 0.6s var(--ease);
}

.trailer-reel.is-playing .reel-poster {
    opacity: 0;
    visibility: hidden;
}

/* Custom HUD (play, progress, time, mute) */
.reel-hud {
    position: absolute;
    left: 0; right: 0; bottom: 0;
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 18px;
    background: linear-gradient(to top, rgba(6,7,13,0.85), transparent);
    transform: translateY(100%);
    opacity: 0;
    transition: opacity 0.4s var(--ease), transform 0.4s var(--ease);
}

.trailer-reel.is-playing:hover .reel-hud,
.trailer-reel.is-playing:focus-within .reel-hud,
.trailer-reel.is-paused .reel-hud {
    transform: translateY(0);
    opacity: 1;
}

.reel-ctrl {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: var(--text-bright);
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    transition: background-color 0.2s var(--ease), color 0.2s var(--ease), transform 0.2s var(--ease);
}

.reel-ctrl:hover {
    background: rgba(124, 255, 178, 0.18);
    color: var(--neon-green);
    transform: scale(1.05);
}

.reel-progress {
    flex: 1;
    height: 4px;
    border-radius: 2px;
    background: rgba(255, 255, 255, 0.12);
    overflow: hidden;
}

.reel-progress-fill {
    display: block;
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--neon-green), var(--neon-cyan));
    border-radius: 2px;
    transition: width 0.15s linear;
}

.reel-time {
    font-family: 'Orbitron', sans-serif;
    font-size: 0.72rem;
    letter-spacing: 0.1em;
    color: var(--text);
    min-width: 36px;
    text-align: center;
}

/* Responsive trailer */
@media (max-width: 600px) {
    .reel-bar { height: 22px; }
    .reel-bug { top: 12px; right: 12px; font-size: 0.5rem; padding: 4px 8px; }
    .reel-hud { padding: 10px 12px; gap: 8px; }
    .reel-ctrl { width: 30px; height: 30px; }
}


/* =========================================================
   15. AAA polish — scroll progress, film grain, custom cursor,
       animated gradient borders, smooth section anchors,
       refined brand logo glow
   ========================================================= */

/* Page-wide scroll-progress bar (fixed top) */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: transparent;
    z-index: 200;
    pointer-events: none;
}

.scroll-progress span {
    display: block;
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--neon-green), var(--neon-cyan) 60%, var(--neon-violet));
    box-shadow: 0 0 12px rgba(124, 255, 178, 0.55), 0 0 24px rgba(160, 112, 255, 0.35);
    transition: width 0.1s linear;
    will-change: width;
}

/* Fixed cinematic film grain overlay (very subtle) */
.grain {
    position: fixed;
    inset: -10%;
    z-index: 150;
    pointer-events: none;
    opacity: 0.06;
    mix-blend-mode: overlay;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 0.55 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
    animation: grainShift 1.6s steps(6) infinite;
}

@keyframes grainShift {
    0%   { transform: translate(0, 0); }
    20%  { transform: translate(-4%, 2%); }
    40%  { transform: translate(3%, -3%); }
    60%  { transform: translate(-2%, 4%); }
    80%  { transform: translate(4%, -2%); }
    100% { transform: translate(0, 0); }
}

/* Anchor scroll offset so fixed header never covers the section heading */
section[id] {
    scroll-margin-top: 90px;
}

/* Refined logo brand mark — slow rotating shimmer on hover */
.brand-mark {
    transition: transform 0.6s var(--ease), filter 0.6s var(--ease);
    filter: drop-shadow(0 0 8px rgba(124, 255, 178, 0.4));
}

.logo:hover .brand-mark {
    transform: rotate(18deg) scale(1.05);
    filter: drop-shadow(0 0 14px rgba(124, 255, 178, 0.7));
}

/* Slow ambient rotation of the outer web ring */
.brand-mark > g:first-of-type polygon:first-child {
    transform-origin: 50% 50%;
    animation: webSpin 24s linear infinite;
}

@keyframes webSpin {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}

/* Animated conic gradient border for premium cards (feature + spotlight) on hover */
.feature-card,
.spotlight {
    position: relative;
}

.feature-card::after,
.spotlight::after {
    content: "";
    position: absolute;
    inset: -1px;
    border-radius: inherit;
    padding: 1px;
    background: conic-gradient(
        from 0deg,
        rgba(124, 255, 178, 0) 0deg,
        rgba(124, 255, 178, 0.6) 90deg,
        rgba(76, 210, 255, 0.6) 180deg,
        rgba(160, 112, 255, 0.6) 270deg,
        rgba(124, 255, 178, 0) 360deg);
    -webkit-mask:
        linear-gradient(#000 0 0) content-box,
        linear-gradient(#000 0 0);
    mask:
        linear-gradient(#000 0 0) content-box,
        linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.5s var(--ease);
    pointer-events: none;
    animation: borderSpin 6s linear infinite;
    animation-play-state: paused;
}

.feature-card:hover::after,
.spotlight:hover::after {
    opacity: 1;
    animation-play-state: running;
}

@keyframes borderSpin {
    to { transform: rotate(360deg); }
}

/* Custom cursor over the trailer reel (web-cursor) */
.trailer-reel { cursor: none; }
.trailer-cursor {
    position: fixed;
    top: 0;
    left: 0;
    width: 44px;
    height: 44px;
    pointer-events: none;
    z-index: 250;
    opacity: 0;
    transform: translate(-50%, -50%);
    transition: opacity 0.25s var(--ease);
    mix-blend-mode: screen;
}

.trailer-cursor.is-visible { opacity: 1; }

.trailer-cursor::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 1.5px solid rgba(124, 255, 178, 0.8);
    box-shadow: 0 0 18px rgba(124, 255, 178, 0.5), 0 0 0 1px rgba(124, 255, 178, 0.15) inset;
    animation: cursorPing 1.6s ease-out infinite;
}

.trailer-cursor::after {
    content: "▶";
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--neon-green);
    font-size: 14px;
    text-shadow: 0 0 6px rgba(124, 255, 178, 0.9);
    padding-left: 3px;
}

.trailer-reel.is-playing .trailer-cursor::after { content: "❚❚"; padding-left: 0; font-size: 12px; }

@keyframes cursorPing {
    0%   { transform: scale(0.85); opacity: 0.9; }
    100% { transform: scale(1.5);  opacity: 0;   }
}

/* Section sub-text rendering polish */
.section-head h2 {
    text-wrap: balance;
}

/* Slightly tighter, more confident heading rendering */
h1, h2, h3 {
    text-rendering: optimizeLegibility;
}

/* Sticky-er header on scroll — slimmer border, brighter accent */
.site-header.scrolled {
    border-bottom: 1px solid rgba(124, 255, 178, 0.15);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

/* Nav link active state */
.nav a.active {
    color: var(--neon-green);
    background: rgba(124, 255, 178, 0.08);
}

/* Nav CTA refined — gradient fill on hover with subtle glow */
.nav .nav-cta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.nav .nav-cta svg {
    color: var(--neon-green);
    transition: transform 0.4s var(--ease);
}

.nav .nav-cta:hover svg {
    transform: rotate(72deg) scale(1.15);
}

/* Trailer: ensure HUD stays clear of brand bug, and pin it nicely */
.trailer-reel { isolation: isolate; }

.reel-hud {
    background: linear-gradient(to top,
        rgba(0, 0, 0, 0.85) 0%,
        rgba(0, 0, 0, 0.4) 60%,
        transparent 100%);
    padding: 18px 22px 14px;
}

/* Refined HUD progress with hover scale */
.reel-progress {
    height: 3px;
    background: rgba(255, 255, 255, 0.15);
    cursor: pointer;
    transition: height 0.2s var(--ease);
}

.reel-progress:hover { height: 5px; }

.reel-progress-fill {
    background: linear-gradient(90deg, var(--neon-green), var(--neon-cyan), var(--neon-violet));
    box-shadow: 0 0 12px rgba(124, 255, 178, 0.55);
}

/* Pulse the play button on the poster (initial CTA) */
.reel-poster .play-btn {
    animation: playPulse 2.6s ease-in-out infinite;
}

@keyframes playPulse {
    0%, 100% { transform: scale(1); box-shadow: 0 0 0 rgba(124, 255, 178, 0.0); }
    50%      { transform: scale(1.05); box-shadow: 0 0 40px rgba(124, 255, 178, 0.45); }
}

/* Better end-card spacing on small screens */
@media (max-width: 600px) {
    .reel-end-eyebrow { font-size: 0.62rem; }
    .reel-end-title { font-size: 2rem; }
    .reel-end-by { font-size: 0.58rem; }
}

/* Hide custom cursor on touch devices (no hover) */
@media (hover: none) {
    .trailer-reel { cursor: default; }
    .trailer-cursor { display: none !important; }
}


/* =========================================================
   16. GAME-MENU THEME — rainbow web rays, dripping logo,
       phone-shaped trailer, wood-floor accents
   ========================================================= */

/* Kill leftover B-class effects from earlier passes */
.trailer-cursor { display: none !important; }
.grain         { display: none !important; }
.trailer-reel  { cursor: auto !important; }
.trailer-frame { background: transparent !important; }

/* --- New background system (overrides the cyan grid) --- */
.bg-layer {
    background:
        radial-gradient(ellipse 70% 50% at 50% 35%, rgba(20, 24, 48, 0.4) 0%, rgba(6, 7, 13, 0.95) 70%),
        linear-gradient(180deg, #06070d 0%, #08081b 60%, #050610 100%);
}

.bg-grid,
.bg-glow,
.bg-web { display: none !important; }

.bg-quad {
    position: absolute;
    width: 60vw;
    height: 60vw;
    max-width: 800px;
    max-height: 800px;
    filter: blur(80px);
    opacity: 0.55;
    border-radius: 50%;
    animation: quadPulse 8s ease-in-out infinite;
}
.bg-quad--tl { top: -10vw; left: -10vw;  background: radial-gradient(circle, #4f7cff 0%, transparent 70%); }
.bg-quad--tr { top: -10vw; right: -10vw; background: radial-gradient(circle, #ff3d6e 0%, transparent 70%); animation-delay: -2s; }
.bg-quad--bl { bottom: -10vw; left: -10vw; background: radial-gradient(circle, #7CFFB2 0%, transparent 70%); animation-delay: -4s; }
.bg-quad--br { bottom: -10vw; right: -10vw; background: radial-gradient(circle, #ffd34c 0%, transparent 70%); animation-delay: -6s; }

@keyframes quadPulse {
    0%, 100% { opacity: 0.5; transform: scale(1); }
    50%      { opacity: 0.75; transform: scale(1.1); }
}

.bg-rays {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0.4;
}

.bg-rays-spin {
    transform-origin: 800px 500px;
    animation: rayDrift 90s linear infinite;
}

@keyframes rayDrift {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}

/* Wooden chessboard reflection along bottom of viewport */
.bg-floor {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 30vh;
    background:
        linear-gradient(to top, rgba(6,7,13,0) 0%, rgba(6,7,13,0.85) 100%),
        repeating-linear-gradient(90deg, rgba(40, 22, 14, 0.5) 0 70px, rgba(20, 12, 8, 0.5) 70px 140px),
        linear-gradient(180deg, #3a200f 0%, #1a0d08 100%);
    transform: perspective(800px) rotateX(72deg);
    transform-origin: bottom center;
    opacity: 0.35;
    mask-image: linear-gradient(to top, #000 30%, transparent 100%);
    -webkit-mask-image: linear-gradient(to top, #000 30%, transparent 100%);
}

/* --- New hero title: white "Annoying" + red dripping "Spider" --- */
.game-title {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 0.9;
    margin-bottom: 22px;
    user-select: none;
}

.game-title-line {
    display: inline-block;
    font-family: 'Bowlby One SC', 'Orbitron', sans-serif;
    letter-spacing: 0.02em;
    line-height: 1;
}

.game-title-line--top {
    font-size: clamp(3rem, 8.5vw, 6.5rem);
    color: #fff;
    text-shadow:
        0 0 0 #fff,
        3px 3px 0 #06070d,
        -2px -2px 0 #06070d,
        2px -2px 0 #06070d,
        -2px 2px 0 #06070d,
        0 8px 22px rgba(0, 0, 0, 0.7),
        0 0 24px rgba(255, 255, 255, 0.15);
    transform: skewY(-2deg);
}

.game-title-line--bot {
    font-size: clamp(3.6rem, 10vw, 7.6rem);
    background: linear-gradient(180deg, #ff5470 0%, #ff2a4d 45%, #b00d2c 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-stroke: 2px #06070d;
    margin-top: -0.12em;
    margin-left: 0.15em;
    transform: skewY(-2deg);
    filter:
        drop-shadow(0 0 18px rgba(255, 42, 77, 0.45))
        drop-shadow(3px 5px 0 rgba(6, 7, 13, 0.9));
    position: relative;
}

/* Blood drip under SPIDER */
.game-title-line--bot::after {
    content: "";
    position: absolute;
    left: 18%;
    bottom: -8px;
    width: 50%;
    height: 18px;
    background:
        radial-gradient(ellipse at 10% 0%, #ff2a4d 0%, transparent 60%),
        radial-gradient(ellipse at 35% 0%, #b00d2c 0%, transparent 70%),
        radial-gradient(ellipse at 65% 0%, #ff2a4d 0%, transparent 70%),
        radial-gradient(ellipse at 90% 0%, #b00d2c 0%, transparent 60%);
    filter: blur(1px);
    opacity: 0.85;
    border-radius: 0 0 50% 50% / 0 0 100% 100%;
    pointer-events: none;
}

@media (max-width: 960px) {
    .game-title { align-items: center; }
}

/* Hide the old hero visual orb completely so the title stands alone */
.hero-title { display: none; }

/* --- Refined header logo treatment under new theme --- */
.logo-text {
    font-family: 'Bowlby One SC', 'Orbitron', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-size: 1rem;
}
.logo-text .logo-accent { color: #ff3d6e; text-shadow: 0 0 8px rgba(255, 61, 110, 0.5); }

/* --- Game-style buttons: dark rounded, white text, subtle border --- */
.btn-primary {
    background: linear-gradient(180deg, #2a3a82 0%, #18215a 100%);
    color: #fff;
    border: 1px solid rgba(120, 160, 255, 0.5);
    box-shadow:
        0 6px 0 #0a1240,
        0 12px 28px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(255, 255, 255, 0.08) inset;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 700;
    font-size: 0.9rem;
}

.btn-primary:hover {
    background: linear-gradient(180deg, #344aa3 0%, #1c2870 100%);
    box-shadow:
        0 4px 0 #0a1240,
        0 14px 32px rgba(40, 80, 200, 0.4),
        0 0 0 1px rgba(255, 255, 255, 0.12) inset;
    transform: translateY(-2px);
}

.btn-primary:active {
    transform: translateY(2px);
    box-shadow: 0 1px 0 #0a1240, 0 6px 12px rgba(0, 0, 0, 0.4);
}

.btn-ghost {
    background: linear-gradient(180deg, rgba(20, 22, 40, 0.7), rgba(10, 12, 22, 0.7));
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 700;
    font-size: 0.9rem;
    box-shadow: 0 6px 0 rgba(0, 0, 0, 0.5);
}

.btn-ghost:hover {
    border-color: rgba(255, 61, 110, 0.55);
    color: #fff;
    background: linear-gradient(180deg, rgba(40, 22, 30, 0.8), rgba(20, 10, 16, 0.8));
}

/* --- NEW phone-shaped trailer (video shown native, no crop) --- */
.trailer-stage {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 60px;
    align-items: center;
    justify-content: center;
    max-width: 880px;
    margin: 0 auto;
}

.trailer-phone {
    position: relative;
    width: 260px;
    height: min(520px, 70vh);
    padding: 10px;
    border-radius: 36px;
    background:
        linear-gradient(160deg, #2a2f48 0%, #0e1020 60%, #06070d 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow:
        0 30px 60px rgba(0, 0, 0, 0.7),
        0 0 50px rgba(79, 124, 255, 0.18),
        0 0 0 1px rgba(255, 255, 255, 0.04) inset;
    margin: 0 auto;
}

.trailer-phone-notch {
    position: absolute;
    top: 18px;
    left: 50%;
    transform: translateX(-50%);
    width: 70px;
    height: 18px;
    background: #06070d;
    border-radius: 999px;
    z-index: 4;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.06) inset;
}

.trailer-video {
    position: relative;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    border-radius: 26px;
    background: #000;
    z-index: 1;
    display: block;
    /* Promote to its own GPU layer so the surrounding gradients/shadows
       don't repaint over the video on each animation tick. */
    transform: translateZ(0);
    backface-visibility: hidden;
    will-change: transform;
}

.trailer-phone {
    /* Isolate paint so animations elsewhere can't invalidate the phone. */
    contain: paint;
}

/* Tap-to-play overlay (hides on first play) */
.trailer-tap {
    position: absolute;
    inset: 10px;
    z-index: 3;
    border-radius: 26px;
    background:
        radial-gradient(ellipse at center, rgba(255, 61, 110, 0.18) 0%, rgba(6, 7, 13, 0.55) 70%);
    backdrop-filter: blur(2px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    color: #fff;
    transition: opacity 0.5s var(--ease), visibility 0.5s var(--ease);
    border: none;
}

.trailer-phone.is-playing .trailer-tap {
    opacity: 0;
    visibility: hidden;
}

.trailer-tap > svg {
    color: #fff;
    background: linear-gradient(180deg, #ff5470, #b00d2c);
    width: 56px;
    height: 56px;
    border-radius: 50%;
    padding: 14px 10px 14px 18px;
    box-shadow:
        0 10px 20px rgba(176, 13, 44, 0.5),
        0 0 0 5px rgba(255, 84, 112, 0.15);
    transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.trailer-tap:hover > svg {
    transform: scale(1.06);
    box-shadow:
        0 16px 32px rgba(176, 13, 44, 0.65),
        0 0 0 10px rgba(255, 84, 112, 0.18);
}

.trailer-tap-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 64px;
    height: 64px;
    margin-top: -46px;
    margin-left: -32px;
    border-radius: 50%;
    border: 1.5px solid rgba(255, 84, 112, 0.45);
    animation: tapPing 1.9s ease-out infinite;
    pointer-events: none;
}

@keyframes tapPing {
    0%   { transform: scale(0.9); opacity: 0.9; }
    100% { transform: scale(1.7); opacity: 0;   }
}

.trailer-tap-label {
    font-family: 'Bowlby One SC', 'Orbitron', sans-serif;
    font-size: 0.7rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #fff;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
}

/* Side caption next to the phone */
.trailer-side {
    display: flex;
    flex-direction: column;
    gap: 14px;
    align-items: flex-start;
}

.trailer-side h3 {
    font-family: 'Bowlby One SC', 'Orbitron', sans-serif;
    font-size: clamp(1.4rem, 2.6vw, 2rem);
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    line-height: 1.05;
}

.trailer-side p {
    color: var(--text);
    font-size: 1rem;
    max-width: 460px;
}

.trailer-bullets {
    margin-top: 8px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.trailer-bullets li {
    display: flex;
    align-items: baseline;
    gap: 10px;
    color: var(--text);
    font-size: 0.95rem;
}

.trailer-bullets li span {
    color: #ff3d6e;
    font-weight: 700;
}

.kicker--gold {
    color: #ffd34c;
    border-color: rgba(255, 211, 76, 0.35);
    background: rgba(255, 211, 76, 0.08);
}

/* Wider screens: phone + caption side by side. Stack on mobile. */
@media (max-width: 760px) {
    .trailer-stage {
        grid-template-columns: 1fr;
        gap: 28px;
    }
    .trailer-phone {
        margin: 0 auto;
        width: 220px;
        height: min(440px, 65vh);
    }
    .trailer-side  { align-items: center; text-align: center; }
    .trailer-bullets li { justify-content: center; }
}

/* --- Section heading polish for game theme --- */
.section-head h2 {
    font-family: 'Bowlby One SC', 'Orbitron', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.cta-inner h2,
.reel-end-title,
.reel-intro-title {
    font-family: 'Bowlby One SC', 'Orbitron', sans-serif;
}

/* Header logo background trim under the new theme */
.site-header.scrolled {
    background: rgba(6, 7, 13, 0.85);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

/* About-art rotated card border tinted with game red */
.about-art {
    border-color: rgba(255, 61, 110, 0.25);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6), 0 0 50px rgba(255, 61, 110, 0.18);
}

/* Spotlight tag colour: gold to match game accent */
.spotlight-tag {
    color: #ffd34c;
    border-color: rgba(255, 211, 76, 0.35);
}

/* Languages chips: more punchy under new theme */
.lang-chip {
    background: linear-gradient(180deg, rgba(24, 28, 48, 0.7), rgba(10, 12, 22, 0.7));
}

.lang-flag {
    background: linear-gradient(135deg, #ff3d6e, #4f7cff);
    color: #fff;
}


/* =========================================================
   17. Standalone soundtrack player (menu theme)
   ========================================================= */
.soundtrack-strip {
    display: grid;
    grid-template-columns: auto minmax(180px, 260px) 1fr minmax(140px, 220px) auto;
    grid-template-areas: "play meta vis track time";
    gap: 18px;
    align-items: center;
    max-width: 880px;
    margin: 50px auto 0;
    padding: 18px 22px;
    border-radius: var(--radius-lg);
    background:
        linear-gradient(135deg, rgba(40, 22, 60, 0.7), rgba(20, 12, 30, 0.7) 50%, rgba(40, 12, 22, 0.7)),
        rgba(10, 10, 20, 0.6);
    border: 1px solid rgba(255, 84, 112, 0.18);
    box-shadow:
        0 18px 50px rgba(0, 0, 0, 0.5),
        0 0 50px rgba(255, 61, 110, 0.08),
        0 0 0 1px rgba(255, 255, 255, 0.04) inset;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.soundtrack-play {
    grid-area: play;
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: linear-gradient(180deg, #ff5470, #b00d2c);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow:
        0 10px 22px rgba(176, 13, 44, 0.5),
        0 0 0 4px rgba(255, 84, 112, 0.12),
        0 0 0 1px rgba(255, 255, 255, 0.08) inset;
    transition: transform 0.2s var(--ease), box-shadow 0.3s var(--ease);
}

.soundtrack-play:hover {
    transform: scale(1.06);
    box-shadow:
        0 14px 28px rgba(176, 13, 44, 0.65),
        0 0 0 6px rgba(255, 84, 112, 0.18);
}

.soundtrack-play .ic-pause { display: none; padding-right: 0; }
.soundtrack-play .ic-play  { padding-left: 4px; }

.soundtrack-strip.is-playing .soundtrack-play .ic-play  { display: none; }
.soundtrack-strip.is-playing .soundtrack-play .ic-pause { display: inline-block; }

.soundtrack-meta {
    grid-area: meta;
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.soundtrack-tag {
    font-family: 'Orbitron', sans-serif;
    font-size: 0.62rem;
    letter-spacing: 0.28em;
    color: #ffd34c;
    text-transform: uppercase;
}

.soundtrack-title {
    font-family: 'Bowlby One SC', 'Orbitron', sans-serif;
    font-size: 0.95rem;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.soundtrack-artist {
    font-size: 0.78rem;
    color: var(--muted);
}

/* Animated equalizer bars */
.soundtrack-vis {
    grid-area: vis;
    display: flex;
    gap: 3px;
    align-items: flex-end;
    height: 28px;
}

.soundtrack-vis span {
    flex: 1;
    height: 30%;
    background: linear-gradient(180deg, #ff5470 0%, #4f7cff 100%);
    border-radius: 2px;
    opacity: 0.45;
    transform-origin: bottom;
    animation: barIdle 1.6s ease-in-out infinite;
}

@keyframes barIdle {
    0%, 100% { transform: scaleY(0.35); }
    50%      { transform: scaleY(0.55); }
}

.soundtrack-strip.is-playing .soundtrack-vis span {
    opacity: 1;
    animation: barDance 1.1s ease-in-out infinite;
}

@keyframes barDance {
    0%, 100% { transform: scaleY(0.3); }
    25%      { transform: scaleY(1);    }
    50%      { transform: scaleY(0.55); }
    75%      { transform: scaleY(0.85); }
}

/* Stagger each bar for a believable equalizer */
.soundtrack-vis span:nth-child(1)  { animation-delay: -0.10s; }
.soundtrack-vis span:nth-child(2)  { animation-delay: -0.25s; }
.soundtrack-vis span:nth-child(3)  { animation-delay: -0.40s; }
.soundtrack-vis span:nth-child(4)  { animation-delay: -0.55s; }
.soundtrack-vis span:nth-child(5)  { animation-delay: -0.70s; }
.soundtrack-vis span:nth-child(6)  { animation-delay: -0.85s; }
.soundtrack-vis span:nth-child(7)  { animation-delay: -1.00s; }
.soundtrack-vis span:nth-child(8)  { animation-delay: -0.15s; }
.soundtrack-vis span:nth-child(9)  { animation-delay: -0.30s; }
.soundtrack-vis span:nth-child(10) { animation-delay: -0.45s; }
.soundtrack-vis span:nth-child(11) { animation-delay: -0.60s; }
.soundtrack-vis span:nth-child(12) { animation-delay: -0.75s; }
.soundtrack-vis span:nth-child(13) { animation-delay: -0.90s; }
.soundtrack-vis span:nth-child(14) { animation-delay: -1.05s; }
.soundtrack-vis span:nth-child(15) { animation-delay: -1.20s; }

/* Seek track */
.soundtrack-track {
    grid-area: track;
    position: relative;
    height: 6px;
    border-radius: 3px;
    background: rgba(255, 255, 255, 0.1);
    cursor: pointer;
    overflow: hidden;
}

.soundtrack-fill {
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    width: 0%;
    background: linear-gradient(90deg, #ff5470, #ffd34c);
    border-radius: 3px;
    transition: width 0.15s linear;
    box-shadow: 0 0 10px rgba(255, 84, 112, 0.5);
}

.soundtrack-time {
    grid-area: time;
    font-family: 'Orbitron', sans-serif;
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    color: var(--text);
    white-space: nowrap;
}

/* Responsive: stack on small screens */
@media (max-width: 760px) {
    .soundtrack-strip {
        grid-template-columns: auto 1fr auto;
        grid-template-areas:
            "play meta time"
            "track track track"
            "vis  vis  vis";
        gap: 12px 14px;
        padding: 16px 18px;
    }
    .soundtrack-vis { height: 22px; }
    .soundtrack-title { font-size: 0.85rem; }
    .soundtrack-artist { font-size: 0.72rem; }
}
