/* ================================================
   OMERO – Indie Games Studio
   Full Animation Website
   ================================================ */

:root {
  /* ── Dark Theme (default) ── */
  --bg:           #07070d;
  --bg2:          #0d0d18;
  --bg3:          #121220;
  --accent:       #00a8ff;
  --accent2:      #7b2dff;
  --accent-glow:  rgba(0, 168, 255, 0.35);
  --accent2-glow: rgba(123, 45, 255, 0.3);
  --text:         #f0f0f8;
  --text-muted:   #6e6e88;
  --border:       rgba(255, 255, 255, 0.06);
  --border-accent: rgba(0, 168, 255, 0.25);
  --card-shadow:  0 4px 24px rgba(0,0,0,0.35);
  --font-display: 'Orbitron', sans-serif;
  --font-body:    'Rajdhani', sans-serif;
  --font-mono:    'Share Tech Mono', monospace;
  --ease:         cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-out:     cubic-bezier(0.16, 1, 0.3, 1);
  color-scheme: dark;
}

/* ══ LIGHT THEME — Arctic Frost Glass ══ */
html.light-theme {
  --bg:           #e8f3fb;
  --bg2:          rgba(255, 255, 255, 0.72);
  --bg3:          rgba(225, 238, 250, 0.85);
  --accent:       #2f9bff;
  --accent2:      #5eb6ff;
  --accent-glow:  rgba(47, 155, 255, 0.28);
  --accent2-glow: rgba(94, 182, 255, 0.2);
  --text:         #0c1a2e;
  --text-muted:   #5a6f88;
  --border:       rgba(255, 255, 255, 0.55);
  --border-accent: rgba(47, 155, 255, 0.35);
  --card-shadow:  0 8px 32px rgba(28, 70, 120, 0.1);
  --glass:        rgba(255, 255, 255, 0.55);
  --glass-strong: rgba(255, 255, 255, 0.78);
  --glass-border: rgba(255, 255, 255, 0.7);
  color-scheme: light;
}

/* ── Theme toggle button ── */
.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  cursor: pointer;
  color: var(--text-muted);
  flex-shrink: 0;
  transition: background 0.25s, color 0.25s, border-color 0.25s, transform 0.25s;
  position: relative;
}
.theme-toggle:hover {
  background: rgba(79,142,247,0.12);
  border-color: var(--accent);
  color: var(--accent);
  transform: rotate(20deg);
}
.theme-toggle svg { pointer-events: none; }
html:not(.light-theme) .icon-sun  { display: none; }
html.light-theme      .icon-moon  { display: none; }

/* ── Light theme — element overrides ── */

/* body */
html.light-theme body { background: var(--bg); color: var(--text); }

/* Header — floating glass bar (home light) */
html.light-theme .header {
  top: 14px;
  left: 50%;
  right: auto;
  width: min(1600px, calc(100% - 48px));
  transform: translateX(-50%);
  padding: 12px 0;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.55) !important;
  backdrop-filter: blur(22px) saturate(170%);
  -webkit-backdrop-filter: blur(22px) saturate(170%);
  border: 1px solid rgba(255, 255, 255, 0.72) !important;
  border-bottom-color: rgba(255, 255, 255, 0.72) !important;
  box-shadow:
    0 10px 40px rgba(40, 90, 150, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.9) !important;
}

/* Header — floating dark glass bar (all pages) */
html:not(.light-theme) .header,
html:not(.light-theme) .header.scrolled {
  top: 14px;
  left: 50%;
  right: auto;
  width: min(1600px, calc(100% - 48px));
  transform: translateX(-50%);
  padding: 12px 0;
  border-radius: 18px;
  background: rgba(12, 14, 28, 0.78) !important;
  backdrop-filter: blur(22px) saturate(170%);
  -webkit-backdrop-filter: blur(22px) saturate(170%);
  border: 1px solid rgba(0, 200, 255, 0.22) !important;
  border-bottom-color: rgba(0, 200, 255, 0.22) !important;
  box-shadow:
    0 12px 48px rgba(0, 0, 0, 0.45),
    0 0 0 1px rgba(0, 168, 255, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.08) !important;
}
html:not(.light-theme) .header::before { display: none; }

/* Match home Contact CTA pill */
html:not(.light-theme) .nav-link.nav-cta {
  border-radius: 999px;
}
html.light-theme .header.scrolled {
  background: rgba(255, 255, 255, 0.78) !important;
  border-color: rgba(47, 155, 255, 0.22) !important;
  border-bottom-color: rgba(47, 155, 255, 0.22) !important;
  box-shadow:
    0 12px 44px rgba(40, 90, 150, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.95) !important;
}
html.light-theme .header::before { display: none; }

/* Subpages sit over dark banners — keep the bar solid white (not frosted gray) */
html.light-theme body.subpage .header,
html.light-theme body.subpage .header.scrolled {
  background: #ffffff !important;
  border: 1px solid rgba(47, 155, 255, 0.14) !important;
  border-bottom-color: rgba(47, 155, 255, 0.14) !important;
  box-shadow:
    0 10px 36px rgba(40, 90, 150, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 1) !important;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

/* Nav links */
html.light-theme .nav-link { color: var(--text-muted); }
html.light-theme .nav-link:hover { color: var(--text); }
html.light-theme .nav-link:hover::before {
  background: rgba(0,0,0,0.04);
  border-color: rgba(0,0,0,0.07);
}
html.light-theme .nav-link.active-page::before {
  background: rgba(79,142,247,0.08) !important;
  border-color: rgba(79,142,247,0.2) !important;
  box-shadow: 0 0 12px rgba(79,142,247,0.1) !important;
}
html.light-theme .nav-link.nav-cta {
  background: var(--accent);
  color: #ffffff;
  border-color: transparent;
  box-shadow: 0 6px 20px rgba(47, 155, 255, 0.35);
  border-radius: 999px;
}
html.light-theme .nav-link.nav-cta:hover {
  background: #1f8af0;
  color: #ffffff;
  box-shadow: 0 8px 28px rgba(47, 155, 255, 0.45);
}
html.light-theme .hamburger span { background: var(--text); }
html.light-theme .theme-toggle {
  background: rgba(0,0,0,0.04);
  border-color: rgba(0,0,0,0.1);
}

/* Loader — solid cover (no see-through to the page behind) */
html.light-theme .loader {
  background: #e8f3fb;
  opacity: 1;
}
html.light-theme .loader-scanlines {
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(47, 155, 255, 0.06) 2px,
    rgba(47, 155, 255, 0.06) 4px
  );
}
html.light-theme .loader-bar-wrap {
  background: rgba(12, 26, 46, 0.12);
}

/* Noise overlay — hidden in light */
html.light-theme .noise-overlay { opacity: 0; }

/* Hero — frost atmosphere */
html.light-theme .hero-section { background: transparent; }
html.light-theme .hero { background: transparent; }
html.light-theme .hero-title   { color: var(--text); }
html.light-theme .hero-subtitle { color: var(--text-muted); }
html.light-theme .hero-badge   {
  background: rgba(255, 255, 255, 0.5);
  border-color: rgba(47, 155, 255, 0.28);
  color: var(--accent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 4px 20px rgba(40, 90, 150, 0.08);
}
html.light-theme .stat-val     { color: var(--accent); }
html.light-theme .stat-label   { color: var(--text-muted); }
html.light-theme .stat-divider { background: rgba(47, 155, 255, 0.2); }
html.light-theme .hero-scroll-indicator { color: var(--text-muted); }
html.light-theme #particles-canvas { opacity: 0.2; filter: invert(0.1) hue-rotate(180deg); }
html.light-theme .glitch-line { text-shadow: none; }
html.light-theme .glitch-line.accent {
  color: var(--accent);
  text-shadow: 0 0 40px rgba(47, 155, 255, 0.35);
}
html.light-theme .hero-noise { opacity: 0.015; }

/* Tapes — frosted glass strips */
html.light-theme .marquee-wrap   {
  background: rgba(255, 255, 255, 0.45);
  border-color: rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(14px) saturate(150%);
  -webkit-backdrop-filter: blur(14px) saturate(150%);
}
html.light-theme .tech-tape-wrap {
  background: rgba(255, 255, 255, 0.55);
  border-color: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(14px) saturate(150%);
  -webkit-backdrop-filter: blur(14px) saturate(150%);
}
html.light-theme .marquee-track  { color: var(--text-muted); }
html.light-theme .tech-item      { border-right-color: rgba(47, 155, 255, 0.12); }
html.light-theme .tech-item span { color: var(--text-muted); }
html.light-theme .tech-item:hover{ background: rgba(47, 155, 255, 0.08); }

/* Section headings */
html.light-theme .s-tag    { color: var(--accent); }
html.light-theme .s-title  { color: var(--text); }
html.light-theme .s-desc   { color: var(--text-muted); }

/* Services / games section */
html.light-theme .games-section  { background: var(--bg); }
html.light-theme .game-card      { background: var(--bg2); box-shadow: var(--card-shadow); }
html.light-theme .game-genre     { color: var(--accent); }
html.light-theme .game-name      { color: #ffffff; }
html.light-theme .game-title     { color: #ffffff; }
html.light-theme .game-info p    { color: rgba(240, 240, 248, 0.88); }

/* About section */
html.light-theme .about-section  { background: var(--bg); }
html.light-theme .about-badge-card,
html.light-theme .au-badge-card  { background: var(--bg2); box-shadow: 0 8px 28px rgba(0,0,0,0.1); }
html.light-theme .ab-feat-icon   { background: rgba(79,142,247,0.08); border-color: rgba(79,142,247,0.15); }
html.light-theme .au-mission-quote { background: rgba(79,142,247,0.05); color: var(--text-muted); }
html.light-theme .au-orb-1, html.light-theme .au-orb-2 { opacity: 0.5; }
html.light-theme .au-tl-card    { background: var(--bg2); box-shadow: var(--card-shadow); }
html.light-theme .au-feat-card  { background: var(--bg2); box-shadow: var(--card-shadow); }
html.light-theme .au-culture-card { background: var(--bg2); box-shadow: var(--card-shadow); }
html.light-theme .au-team-section { background: var(--bg3); }
html.light-theme .au-values,
html.light-theme .au-story       { background: var(--bg); }
html.light-theme .au-timeline-section { background: var(--bg2); }
html.light-theme .au-culture     { background: var(--bg3); }

/* Team */
html.light-theme .team-section { background: var(--bg2); }
html.light-theme .team-card    { background: var(--bg); box-shadow: var(--card-shadow); }

/* Stats */
html.light-theme .pp-stats-bar,
html.light-theme .au-stats-bar  { background: var(--bg2); border-color: var(--border); }
html.light-theme .pp-stat-sep,
html.light-theme .au-stat-sep   { background: var(--border); }

/* Countdown */
html.light-theme .countdown-overlay { opacity: 0.82; background: linear-gradient(to bottom, #0d0e1c, rgba(13,14,28,0.85)); }

/* News / Blog */
html.light-theme .news-section   { background: var(--bg); }
html.light-theme .news-card      { background: var(--bg2); box-shadow: var(--card-shadow); }
html.light-theme .news-body      { background: var(--bg2); }
html.light-theme .bp-card        { background: var(--bg2); box-shadow: var(--card-shadow); }
html.light-theme .bp-featured-card { background: var(--bg2); border-color: var(--border); }
html.light-theme .bp-feat-body   { background: var(--bg2); }
html.light-theme .bp-newsletter-section { background: var(--bg3); }
html.light-theme .bp-nl-input-wrap input { background: var(--bg2); color: var(--text); border-color: var(--border); }
html.light-theme .bp-filter-bar  { background: var(--bg2); border-color: var(--border); }
html.light-theme .bp-banner-stats { background: rgba(0,0,0,0.04); border-color: rgba(0,0,0,0.07); }

/* Projects */
html.light-theme .projects-section  { background: var(--bg); }
html.light-theme .project-card      { background: var(--bg2); box-shadow: var(--card-shadow); }
html.light-theme .pp-main           { background: var(--bg); }
html.light-theme .pp-skeleton       { background: linear-gradient(90deg, var(--bg3) 25%, var(--bg2) 50%, var(--bg3) 75%); }
html.light-theme .pp-filter-pill    { background: var(--bg2); border-color: var(--border); color: var(--text-muted); }
html.light-theme .pp-filter-pill.active,
html.light-theme .pp-filter-pill:hover { background: rgba(79,142,247,0.08); }

/* Contact */
html.light-theme .contact-section   { background: var(--bg2); }
html.light-theme .contact-inner     { background: transparent; }
html.light-theme .nl-input-wrap input { background: var(--bg3); color: var(--text); border-color: var(--border); }
html.light-theme .contact-field input,
html.light-theme .contact-field textarea,
html.light-theme .contact-field select {
  background: #ffffff;
  color: var(--text);
  border-color: rgba(0, 0, 0, 0.12);
}
html.light-theme .contact-field label { color: #5a5b78; }
html.light-theme .field-error { color: #c6284a; }
html.light-theme .contact-form-status.is-success {
  background: rgba(26, 122, 80, 0.1);
  border-color: rgba(26, 122, 80, 0.35);
  color: #146c45;
}
html.light-theme .contact-form-status.is-error {
  background: rgba(198, 40, 74, 0.08);
  border-color: rgba(198, 40, 74, 0.3);
  color: #a01e3a;
}

/* Page banners */
html.light-theme .page-banner       { background: var(--bg2); }
html.light-theme .page-banner--space { background: #0a0c14 !important; }
html.light-theme .page-banner-title { color: var(--text); }
html.light-theme .page-banner--space .page-banner-title { color: #f0f0f8; }
html.light-theme .page-banner--space .page-banner-sub { color: rgba(240, 240, 248, 0.72); }
html.light-theme .page-banner--space .breadcrumb { color: rgba(240, 240, 248, 0.65); }
html.light-theme .page-banner--space .breadcrumb a { color: var(--accent); }
html.light-theme .page-banner-sub   { color: var(--text-muted); }
html.light-theme .page-banner--space .banner-fx-canvas { opacity: 0.9; }
html.light-theme .breadcrumb,
html.light-theme .breadcrumb a      { color: var(--text-muted); }

/* Canvas for particle network — light theme unchanged, dark theme full opacity */
html.light-theme .hero-3d-canvas   { opacity: 0.9; }
html.light-theme .banner-3d-canvas { opacity: 0.85; }
html.light-theme .pp-status         { background: rgba(0,0,0,0.04); border-color: rgba(0,0,0,0.08); }

/* Services page */
html.light-theme .sp-grid           { background: var(--bg); }
html.light-theme .sp-card           { background: var(--bg2); box-shadow: var(--card-shadow); }
html.light-theme .process-section   { background: var(--bg3); }
html.light-theme .process-step      { background: var(--bg2); box-shadow: var(--card-shadow); }
html.light-theme .techstack-section { background: var(--bg2); }
html.light-theme .tech-pill         { background: var(--bg3); border-color: var(--border); color: var(--text-muted); }

/* Footer */
html.light-theme .footer            { background: var(--bg2); border-top: 1px solid var(--border); }
html.light-theme .footer-top-line   { background: linear-gradient(to right, transparent, var(--accent), transparent); opacity: 0.3; }
html.light-theme .footer-bottom     { color: var(--text-muted); border-top-color: var(--border); }
html.light-theme .footer-links h4   { color: var(--text); }
html.light-theme .footer-links a    { color: var(--text-muted); }
html.light-theme .footer-links a:hover { color: var(--accent); }

/* View-all button in light mode */
html.light-theme .btn-ghost {
  border-color: var(--border-accent);
  color: var(--accent);
}
html.light-theme .btn-ghost:hover { background: var(--accent); color: #fff; }
html.light-theme .btn-outline {
  border-color: rgba(47, 155, 255, 0.35);
  color: var(--accent);
  background: rgba(255, 255, 255, 0.45);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 999px;
  box-shadow: 0 4px 18px rgba(40, 90, 150, 0.08);
}
html.light-theme .btn-outline:hover {
  border-color: var(--accent);
  color: #fff;
  background: var(--accent);
}

/* Service cards keep white outline buttons on dark image overlays */
html.light-theme .game-card-overlay .btn-outline,
html.light-theme .game-card-overlay .btn-outline .btn-text {
  color: #ffffff !important;
  border-color: rgba(255, 255, 255, 0.55);
}
html.light-theme .game-card-overlay .game-platforms span {
  color: rgba(240, 240, 248, 0.85);
  border-color: rgba(255, 255, 255, 0.25);
}
html.light-theme .game-card-overlay {
  background: linear-gradient(to top, rgba(7, 7, 13, 0.96) 0%, rgba(7, 7, 13, 0.72) 48%, rgba(7, 7, 13, 0.25) 100%);
}
html.light-theme .game-card-overlay .game-info p {
  color: rgba(240, 240, 248, 0.88);
}

/* Social icons that use currentColor (GitHub / X) */
html.light-theme .channel-icon-svg {
  color: #0d0e1c;
  background: rgba(0, 0, 0, 0.06);
}
html.light-theme .channel-item:hover .channel-icon-svg {
  background: rgba(0, 0, 0, 0.1);
}

/* Connect / Social cards — light mode outline + soft depth */
html.light-theme .channel-item {
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 12px;
  padding: 18px 20px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
  transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s;
}
html.light-theme .channel-item:hover {
  border-color: rgba(47, 155, 255, 0.35);
  box-shadow: 0 4px 12px rgba(28, 70, 120, 0.08);
}

/* Mobile nav close control (panel background is scoped under ≤768px) */
html.light-theme .nav-close { color: var(--text); }

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px; /* offset for fixed header */
}

/* Anchor targets clear the fixed navbar (≈ header height + breathing room) */
#home,
#services,
#reviews,
#about,
#team,
#news,
#projects,
#contact {
  scroll-margin-top: 96px;
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  cursor: none;
}

a { text-decoration: none; color: inherit; }
img { display: block; width: 100%; height: 100%; object-fit: cover; }

/* Logos must not inherit the global stretch rule */
.logo-mark-img,
.qe-logo-img,
.logo-img-el {
  width: auto;
  height: auto;
  max-width: none;
  object-fit: contain;
  image-rendering: auto;
}
ul { list-style: none; }

.container {
  max-width: 1600px;
  margin: 0 auto;
  padding: 0 40px;
}

@media (min-width: 1280px) {
  .container {
    padding: 0 56px;
  }
}

@media (min-width: 1600px) {
  .container {
    padding: 0 80px;
  }
}

.accent { color: var(--accent); }
.section-pad { padding: 120px 0; }

/* ─── Cursor — positioned by GSAP quickTo ─── */
.cursor { position: fixed; top: 0; left: 0; pointer-events: none; z-index: 9999; }

.cursor-inner {
  position: fixed;
  width: 8px; height: 8px;
  background: var(--accent);
  border-radius: 50%;
  pointer-events: none;
}

.cursor-outer {
  position: fixed;
  width: 40px; height: 40px;
body.cursor-hover .cursor-inner { width: 16px; height: 16px; }
body.cursor-hover .cursor-outer { width: 60px; height: 60px; opacity: 0.3; }
body.cursor-click .cursor-inner { transform: translate(-50%, -50%) scale(0.5); }

  border: 1px solid var(--accent);
  border-radius: 50%;
  pointer-events: none;
  opacity: 0.6;
}

/* ─── Loader ─── */
.loader {
  position: fixed;
  inset: 0;
  z-index: 9998;
  background: #07070d;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  transition: opacity 0.8s var(--ease), visibility 0.8s;
  isolation: isolate;
}

.loader.hidden { opacity: 0; visibility: hidden; pointer-events: none; }

.loader-content { text-align: center; position: relative; z-index: 2; }

.loader-logo {
  margin-bottom: 40px;
}

.loader-text {
  font-family: var(--font-display);
  font-size: clamp(3rem, 8vw, 6rem);
  font-weight: 900;
  letter-spacing: 0.3em;
  color: var(--text);
  position: relative;
  display: inline-block;
}

.loader-text::before {
  content: attr(data-text);
  position: absolute;
  left: 2px;
  text-shadow: -2px 0 var(--accent);
  color: var(--text);
  clip: rect(0, 900px, 0, 0);
  animation: glitch-loader 2s infinite linear;
}

.loader-bar-wrap {
  width: 300px;
  height: 2px;
  background: rgba(255,255,255,0.1);
  margin: 0 auto 16px;
  overflow: hidden;
}

.loader-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--accent2), var(--accent));
  width: 0%;
  transition: width 0.05s linear;
  box-shadow: 0 0 20px var(--accent-glow);
}

.loader-percent {
  font-family: var(--font-mono);
  color: var(--accent);
  font-size: 0.9rem;
}

.loader-scanlines {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(0,0,0,0.1) 2px, rgba(0,0,0,0.1) 4px);
  pointer-events: none;
  animation: scanlines 8s linear infinite;
}

@keyframes scanlines {
  0% { background-position: 0 0; }
  100% { background-position: 0 100px; }
}

@keyframes glitch-loader {
  0% { clip: rect(42px, 9999px, 44px, 0); }
  10% { clip: rect(12px, 9999px, 24px, 0); }
  20% { clip: rect(70px, 9999px, 90px, 0); }
  30% { clip: rect(0px, 9999px, 5px, 0); }
  40% { clip: rect(50px, 9999px, 60px, 0); }
  50% { clip: rect(25px, 9999px, 35px, 0); }
  60% { clip: rect(80px, 9999px, 100px, 0); }
  70% { clip: rect(15px, 9999px, 30px, 0); }
  80% { clip: rect(60px, 9999px, 70px, 0); }
  90% { clip: rect(5px, 9999px, 20px, 0); }
  100% { clip: rect(42px, 9999px, 44px, 0); }
}

/* ─── Header (Crystal Glass) ─── */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 18px 0;
  background: rgba(5, 5, 20, 0.5);
  backdrop-filter: blur(22px) saturate(160%);
  -webkit-backdrop-filter: blur(22px) saturate(160%);
  border-bottom: 1px solid rgba(255,255,255,0.07);
  box-shadow:
    0 4px 32px rgba(0,0,0,0.28),
    inset 0 1px 0 rgba(255,255,255,0.06),
    inset 0 -1px 0 rgba(79,142,247,0.05);
  transition: background 0.4s, padding 0.4s, border-color 0.4s, box-shadow 0.4s;
}

/* subtle crystal shimmer overlay */
.header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    transparent 30%,
    rgba(79,142,247,0.025) 50%,
    transparent 70%
  );
  pointer-events: none;
}

.header.scrolled {
  background: rgba(5, 5, 20, 0.82);
  backdrop-filter: blur(36px) saturate(200%);
  -webkit-backdrop-filter: blur(36px) saturate(200%);
  padding: 13px 0;
  border-bottom: 1px solid rgba(79,142,247,0.2);
  box-shadow:
    0 8px 48px rgba(0,0,0,0.45),
    0 0 0 0.5px rgba(79,142,247,0.12),
    inset 0 1px 0 rgba(255,255,255,0.07),
    inset 0 -1px 0 rgba(79,142,247,0.12);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Logo */
.logo { display: flex; align-items: center; gap: 14px; }

.logo-mark {
  width: 44px; height: 44px;
  background: var(--accent);
  color: var(--bg);
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 0.95rem;
  letter-spacing: -0.04em;
  display: flex;
  align-items: center;
  justify-content: center;
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  transition: clip-path 0.3s var(--ease);
}

.logo-mark-img {
  width: 44px;
  height: 48px;
  object-fit: contain;
  flex-shrink: 0;
  display: block;
  filter: drop-shadow(0 0 8px rgba(0, 220, 255, 0.35));
}

a.logo > .logo-mark { display: none; }
html.light-theme .logo-mark-img {
  filter: drop-shadow(0 2px 6px rgba(20, 70, 130, 0.2)) drop-shadow(0 0 8px rgba(0, 220, 255, 0.4));
}

.logo:hover .logo-mark { clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%); }

.logo-accent { color: var(--accent) !important; }

/* Logo image (set via admin panel) */
.logo-img-el {
  height: 44px;
  width: auto;
  max-width: 160px;
  object-fit: contain;
  flex-shrink: 0;
}

.logo-title {
  display: block;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.2rem;
  letter-spacing: 0.2em;
  line-height: 1;
}

.logo-sub {
  display: block;
  font-size: 0.55rem;
  letter-spacing: 0.25em;
  color: var(--accent);
  line-height: 1;
  margin-top: 3px;
}

/* Nav */
.nav-list {
  display: flex;
  gap: 36px;
  align-items: center;
}

.nav-link {
  position: relative;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  padding: 4px 0;
  transition: color 0.3s;
}

/* glowing underline — expands from centre */
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  border-radius: 99px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  box-shadow: 0 0 8px var(--accent), 0 0 18px rgba(79,142,247,0.5);
  transition: width 0.35s var(--ease);
}

.nav-link:hover { color: var(--text); }
.nav-link:hover::after { width: 90%; }

/* glass pill highlight on hover */
.nav-link::before {
  content: '';
  position: absolute;
  inset: -7px -13px;
  border-radius: 10px;
  background: transparent;
  border: 1px solid transparent;
  transition: background 0.3s, border-color 0.3s;
  pointer-events: none;
}
.nav-link:hover::before {
  background: rgba(255,255,255,0.04);
  border-color: rgba(255,255,255,0.07);
}

.nav-link.nav-cta {
  color: var(--accent);
  border: 1px solid rgba(79,142,247,0.5);
  padding: 8px 20px;
  border-radius: 8px;
  background: rgba(79,142,247,0.08);
  backdrop-filter: blur(8px);
  box-shadow: 0 0 16px rgba(79,142,247,0.1), inset 0 1px 0 rgba(255,255,255,0.08);
  transition: background 0.3s, color 0.3s, box-shadow 0.3s, border-color 0.3s;
}

.nav-link.nav-cta:hover {
  background: var(--accent);
  color: var(--bg);
  box-shadow: 0 0 24px rgba(79,142,247,0.5), 0 4px 20px rgba(79,142,247,0.3);
  border-color: var(--accent);
}
.nav-link.nav-cta::after  { display: none; }
.nav-link.nav-cta::before { display: none; }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: none;
  padding: 8px;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  transition: transform 0.3s, opacity 0.3s;
}

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

.nav-close { display: none; }

/* ─── Buttons ─── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 32px;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-radius: 4px;
  border: none;
  cursor: none;
  position: relative;
  overflow: hidden;
  transition: color 0.3s, transform 0.2s;
}

.btn.sm { padding: 10px 22px; font-size: 0.7rem; }

.btn-primary {
  background: var(--accent);
  color: var(--bg);
}

.btn-primary .btn-glow {
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.2);
  transform: translateX(-100%) skewX(-20deg);
  transition: transform 0.5s var(--ease);
}

.btn-primary:hover .btn-glow { transform: translateX(200%) skewX(-20deg); }
.btn-primary:hover { box-shadow: 0 0 30px var(--accent-glow), 0 0 60px var(--accent-glow); }

.btn-outline {
  background: transparent;
  color: #ffffff;
  border: 1px solid rgba(255,255,255,0.45);
}

.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
  box-shadow: 0 0 20px var(--accent-glow) inset, 0 0 20px var(--accent-glow);
}

.btn-ghost {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border);
  padding: 14px 32px;
}

.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

/* ─── Section Headers ─── */
.section-head { text-align: center; margin-bottom: 64px; }

.s-tag {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--accent);
  letter-spacing: 0.2em;
  margin-bottom: 16px;
}

.s-title {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 16px;
}

.s-desc {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 500px;
  margin: 0 auto;
}

/* ─── Reveal classes: GSAP sets from/to — no CSS needed here ─── */
.reveal-up, .reveal-fade { will-change: transform, opacity; }

/* ─── SHOOTING STAR ─── */
.shooting-star {
  position: absolute;
  top: 0;
  left: 0;
  height: 2px;
  /* bright head on the left (direction of travel), fading tail on the right */
  background: linear-gradient(
    to right,
    rgba(255, 255, 255, 1)   0%,
    rgba(200, 225, 255, 0.6) 30%,
    rgba(79,  142, 247, 0.2) 65%,
    transparent              100%
  );
  border-radius: 1px;
  pointer-events: none;
  z-index: 3;
  transform-origin: left center;
  will-change: transform, opacity;
}

/* glowing head dot */
.shooting-star::before {
  content: '';
  position: absolute;
  left: -3px;
  top: 50%;
  transform: translateY(-50%);
  width: 5px;
  height: 5px;
  background: #ffffff;
  border-radius: 50%;
  box-shadow:
    0 0  4px  2px rgba(255, 255, 255, 0.9),
    0 0 10px  4px rgba(160, 210, 255, 0.7),
    0 0 20px  8px rgba(79,  142, 247, 0.4);
}

/* ─── HOME LANDING (hero + tapes in first viewport) ─── */
.home-landing {
  display: flex;
  flex-direction: column;
  height: 100vh;
  height: 100svh;
  min-height: 100vh;
  min-height: 100svh;
  overflow: hidden;
}

.home-landing .marquee-wrap,
.home-landing .tech-tape-wrap {
  flex-shrink: 0;
  position: relative;
  z-index: 3;
}

/* ─── HERO ─── */
.hero {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  height: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  padding: 88px 0 56px;
}

.hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

/* ── Three.js 3-D background canvas (hero) ── */
.hero-3d-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  display: block;
}

/* ── Three.js 3-D canvas for page banners (subpages) ── */
.banner-3d-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  display: block;
}

.hero-noise {
  position: absolute;
  inset: 0;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-size: 256px 256px;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1000px;
  padding: 0 24px;
  margin: 0 auto;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 20px;
  border: 1px solid var(--border-accent);
  border-radius: 50px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  color: var(--accent);
  margin-bottom: 32px;
  background: rgba(0, 255, 204, 0.05);
}

.badge-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulseDot 2s ease-in-out infinite;
}

@keyframes pulseDot {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 var(--accent-glow); }
  50% { opacity: 0.7; box-shadow: 0 0 0 6px transparent; }
}

/* Glitch Title */
.hero-title {
  margin-bottom: 28px;
}

.glitch-line {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(3rem, 9vw, 7rem);
  font-weight: 900;
  letter-spacing: 0.05em;
  line-height: 1.05;
  position: relative;
  color: var(--text);
}

.glitch-line.accent { color: var(--accent); text-shadow: 0 0 60px var(--accent-glow); }

.glitch-line::before,
.glitch-line::after {
  content: attr(data-text);
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  opacity: 0;
  pointer-events: none;
}

.glitch-line:hover::before {
  opacity: 1;
  color: var(--accent);
  left: 2px;
  clip: rect(0, 9999px, 30px, 0);
  animation: glitchTop 0.3s linear;
}

.glitch-line:hover::after {
  opacity: 1;
  color: var(--accent2);
  left: -2px;
  clip: rect(60px, 9999px, 9999px, 0);
  animation: glitchBot 0.3s linear;
}

@keyframes glitchTop {
  0% { clip: rect(0, 9999px, 5px, 0); transform: translateX(2px); }
  25% { clip: rect(20px, 9999px, 30px, 0); transform: translateX(-2px); }
  50% { clip: rect(10px, 9999px, 20px, 0); transform: translateX(3px); }
  75% { clip: rect(0px, 9999px, 10px, 0); transform: translateX(-3px); }
  100% { clip: rect(15px, 9999px, 25px, 0); transform: translateX(0); }
}

@keyframes glitchBot {
  0% { clip: rect(70px, 9999px, 100px, 0); transform: translateX(-2px); }
  25% { clip: rect(80px, 9999px, 110px, 0); transform: translateX(2px); }
  50% { clip: rect(60px, 9999px, 90px, 0); transform: translateX(-3px); }
  75% { clip: rect(90px, 9999px, 120px, 0); transform: translateX(3px); }
  100% { clip: rect(75px, 9999px, 105px, 0); transform: translateX(0); }
}

.hero-sub {
  font-size: 1.2rem;
  color: var(--text-muted);
  margin-bottom: 40px;
  line-height: 1.7;
}

.hero-cta {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 0;
}

/* Scroll indicator */
.hero-scroll-indicator {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  z-index: 2;
  pointer-events: none;
}

.scroll-mouse {
  width: 22px; height: 38px;
  border: 2px solid rgba(255,255,255,0.3);
  border-radius: 12px;
  position: relative;
}

.scroll-wheel {
  width: 2px; height: 8px;
  background: var(--accent);
  border-radius: 2px;
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  animation: scrollWheel 2s ease-in-out infinite;
}

@keyframes scrollWheel {
  0% { opacity: 1; transform: translateX(-50%) translateY(0); }
  100% { opacity: 0; transform: translateX(-50%) translateY(16px); }
}

/* Mobile phone scroll cue — hidden on desktop */
.scroll-phone { display: none; }

.scroll-phone-body {
  position: relative;
  width: 24px;
  height: 40px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.04);
}

.scroll-phone-notch {
  position: absolute;
  top: 4px;
  left: 50%;
  transform: translateX(-50%);
  width: 10px;
  height: 2px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.28);
}

.scroll-phone-finger {
  position: absolute;
  left: 50%;
  top: 14px;
  width: 6px;
  height: 6px;
  margin-left: -3px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent-glow);
  animation: phoneSwipe 1.8s ease-in-out infinite;
}

@keyframes phoneSwipe {
  0%   { opacity: 0.2; transform: translateY(14px); }
  25%  { opacity: 1; }
  70%  { opacity: 1; transform: translateY(0); }
  100% { opacity: 0; transform: translateY(-2px); }
}

.hero-scroll-indicator > span {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  color: var(--text-muted);
}

.scroll-label-mobile { display: none; }

html.light-theme .scroll-mouse {
  border-color: rgba(13, 14, 28, 0.28);
}
html.light-theme .scroll-phone-body {
  border-color: rgba(13, 14, 28, 0.28);
  background: rgba(13, 14, 28, 0.04);
}
html.light-theme .scroll-phone-notch {
  background: rgba(13, 14, 28, 0.25);
}

/* Floating elements */
.hero-floats { position: absolute; inset: 0; pointer-events: none; z-index: 1; }

.float-item {
  position: absolute;
  border: 1px solid var(--border-accent);
  opacity: 0.5;
}

.float-1 {
  width: 200px; height: 200px;
  top: 15%; right: 8%;
  clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
  animation: floatRotate 12s linear infinite;
}

.float-2 {
  width: 80px; height: 80px;
  bottom: 20%; left: 5%;
  animation: floatRotate 8s linear infinite reverse;
}

.float-3 {
  width: 120px; height: 120px;
  top: 30%; left: 10%;
  border-radius: 50%;
  animation: floatDrift 6s ease-in-out infinite;
}

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

@keyframes floatDrift {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-20px); }
}

/* ─── Tape 1 — Services (left scroll) ─── */
.marquee-wrap {
  overflow: hidden;
  background: var(--bg3);
  border-top: 1px solid var(--border);
  padding: 14px 0;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 6%, #000 94%, transparent 100%);
  mask-image: linear-gradient(to right, transparent 0%, #000 6%, #000 94%, transparent 100%);
}

.marquee-wrap:hover .marquee-track { animation-play-state: paused; }

.marquee-track {
  display: flex;
  align-items: center;
  gap: 40px;
  width: max-content;
  animation: marquee-left 35s linear infinite;
  font-family: var(--font-display);
  font-size: 0.73rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--text-muted);
}

.marquee-track .dot { color: var(--accent); font-size: 0.45rem; flex-shrink: 0; }

@keyframes marquee-left {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ─── Tech Tape ─── */
.tech-tape-wrap {
  overflow: hidden;
  background: var(--bg2);
  border-bottom: 1px solid var(--border);
  padding: 14px 0;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 6%, #000 94%, transparent 100%);
  mask-image: linear-gradient(to right, transparent 0%, #000 6%, #000 94%, transparent 100%);
}

.tech-tape-wrap:hover .tech-tape-track {
  animation-play-state: paused;
}

.tech-tape-track {
  display: flex;
  align-items: center;
  width: max-content;
  animation: tape-right 55s linear infinite;
}

.tech-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 4px 28px;
  border-right: 1px solid var(--border);
  white-space: nowrap;
  cursor: default;
  transition: background 0.2s;
}

.tech-item:hover { background: rgba(79,142,247,0.06); }

.tech-item img {
  width: 26px;
  height: 26px;
  object-fit: contain;
  filter: drop-shadow(0 0 5px rgba(255,255,255,0.15));
  flex-shrink: 0;
  transition: transform 0.25s;
}

.tech-item:hover img { transform: scale(1.25) rotate(-5deg); }

.tech-item span {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  transition: color 0.2s;
}

.tech-item:hover span { color: var(--text); }

@keyframes tape-right {
  from { transform: translateX(-50%); }
  to   { transform: translateX(0); }
}

/* ─── GAMES ─── */
.games-section { background: var(--bg); }

.games-layout {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 24px;
}

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

.games-side { display: flex; flex-direction: column; gap: 24px; }

.games-layout.services-grid .game-card.small .game-info p,
.games-layout.services-grid .game-card.small .game-platforms {
  display: flex;
}

.games-layout.services-grid .game-card.small .game-info p {
  display: block;
}

.games-layout.services-grid .game-card.small .game-card-media {
  height: 220px;
}

.games-layout.services-grid .game-name {
  font-size: clamp(1rem, 1.6vw, 1.25rem);
}

/* Game Cards */
.game-card {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--border);
  transition: border-color 0.3s;
}

.game-card:hover { border-color: var(--border-accent); }

.game-card-media {
  position: relative;
  overflow: hidden;
}

.game-card.big .game-card-media { height: 540px; }
.game-card.small .game-card-media { height: 240px; }

.game-card-media img { transition: transform 0.7s var(--ease); }
.game-card:hover .game-card-media img { transform: scale(1.08); }

.card-lines {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    90deg,
    transparent,
    transparent 40px,
    rgba(0,255,204,0.02) 40px,
    rgba(0,255,204,0.02) 41px
  );
  pointer-events: none;
}

.game-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(7, 7, 13, 0.98) 0%, rgba(7, 7, 13, 0.5) 50%, transparent 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 32px;
}

.game-badge {
  display: none;
}

.blink { animation: blink 2s step-end infinite; }

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.game-info { }

.game-genre {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--accent);
  letter-spacing: 0.15em;
  display: block;
  margin-bottom: 8px;
  white-space: normal;
  line-height: 1.45;
  word-break: break-word;
}

.game-name {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  font-weight: 900;
  margin-bottom: 12px;
  letter-spacing: 0.05em;
  color: #ffffff;
}

.game-info p {
  font-size: 0.95rem;
  color: rgba(240,240,248,0.7);
  margin-bottom: 16px;
  line-height: 1.6;
}

.game-platforms {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.game-platforms span {
  padding: 4px 12px;
  border: 1px solid var(--border);
  border-radius: 3px;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  color: var(--text-muted);
}

.game-trailer-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0);
  width: 80px; height: 80px;
  background: rgba(0, 255, 204, 0.15);
  backdrop-filter: blur(10px);
  border: 1px solid var(--accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--accent);
  cursor: none;
  transition: transform 0.4s var(--ease-out), opacity 0.3s;
  opacity: 0;
  z-index: 3;
}

.trailer-ring {
  position: absolute;
  inset: -8px;
  border: 1px solid rgba(0, 255, 204, 0.3);
  border-radius: 50%;
  animation: trailRing 2s ease-in-out infinite;
}

@keyframes trailRing {
  0%, 100% { transform: scale(1); opacity: 0.5; }
  50% { transform: scale(1.2); opacity: 0; }
}

.game-card.big:hover .game-trailer-btn {
  transform: translate(-50%, -50%) scale(1);
  opacity: 1;
}

/* Small card simplified info */
.game-card.small .game-info p,
.game-card.small .game-platforms { display: none; }

.game-card.small:hover .game-info p,
.game-card.small:hover .game-platforms { display: block; display: flex; }

.view-all-wrap { text-align: center; margin-top: 48px; }

/* 3D Tilt Card */
.tilt-card { transform-style: preserve-3d; }
.tilt-card .game-card-overlay,
.tilt-card .game-name,
.tilt-card .game-info { transform: translateZ(10px); }

/* ─── COUNTDOWN ─── */
.countdown-section {
  position: relative;
  padding: 120px 0;
  overflow: hidden;
}

.countdown-bg-img {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.countdown-bg-img img { object-position: center 30%; }

/* Reviews Earth: frame the lit planet, not empty black sky */
.reviews-section .countdown-bg-img img {
  object-fit: cover;
  object-position: center 72%;
  transform: scale(1.08);
}

.countdown-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, var(--bg) 0%, rgba(7, 7, 13, 0.7) 50%, var(--bg) 100%);
}

/* Reviews: tighter vertical padding so content sits closer to the section top */
.reviews-section.countdown-section {
  padding: 72px 0 88px;
  background: transparent !important;
}

.countdown-inner {
  position: relative;
  z-index: 2;
  text-align: center;
}

.countdown-game-name {
  font-family: var(--font-display);
  font-size: clamp(3rem, 7vw, 6rem);
  font-weight: 900;
  letter-spacing: 0.2em;
  color: var(--text);
  text-shadow: 0 0 80px rgba(0, 255, 204, 0.3);
  margin-bottom: 8px;
}

.countdown-sub {
  color: var(--text-muted);
  font-size: 1rem;
  margin-bottom: 48px;
}

.countdown-timer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin-bottom: 48px;
  flex-wrap: wrap;
}

.c-unit { display: flex; flex-direction: column; align-items: center; gap: 12px; }

.c-box {
  width: 120px;
  height: 120px;
  background: rgba(0, 255, 204, 0.05);
  border: 1px solid var(--border-accent);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.c-box::before {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(0, 255, 204, 0.05), transparent);
  animation: shimmer 3s infinite;
}

@keyframes shimmer {
  from { left: -100%; }
  to { left: 200%; }
}

.c-box span {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 900;
  color: var(--accent);
  text-shadow: 0 0 30px var(--accent-glow);
}

.c-sep {
  font-family: var(--font-display);
  font-size: 3rem;
  color: var(--accent);
  padding: 0 12px;
  padding-bottom: 40px;
  opacity: 0.5;
  animation: blink 1s step-end infinite;
}

.c-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-muted);
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.countdown-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ─── GOOGLE REVIEWS ─── */
.reviews-inner { max-width: 1400px; margin: 0 auto; }

/* Keep Earth visible while text stays readable on solid cards */
.reviews-section .countdown-overlay {
  background: linear-gradient(
    180deg,
    rgba(7, 7, 13, 0.55) 0%,
    rgba(7, 7, 13, 0.42) 40%,
    rgba(7, 7, 13, 0.62) 100%
  );
}

.reviews-section .countdown-game-name {
  color: #f0f0f8;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.55);
}

.reviews-section .countdown-sub {
  color: rgba(240, 240, 248, 0.72);
  margin-bottom: 28px;
}

.reviews-summary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-bottom: 32px;
  padding: 20px 28px;
  background: rgba(18, 18, 32, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
}

.reviews-google-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  background: #fff;
  border-radius: 50%;
  flex-shrink: 0;
}

.reviews-rating { text-align: left; }

.reviews-rating-top {
  display: flex;
  align-items: center;
  gap: 12px;
}

.reviews-score {
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 900;
  color: #f0f0f8;
  line-height: 1;
}

.reviews-stars {
  display: inline-block;
  color: #fbbc04;
  font-size: 1.1rem;
  letter-spacing: 2px;
  vertical-align: middle;
}

.reviews-count {
  display: block;
  font-size: 0.85rem;
  color: rgba(240, 240, 248, 0.65);
  margin-top: 4px;
}

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 36px;
  text-align: left;
}

.review-card {
  background: rgba(16, 16, 28, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 24px;
  transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.review-card:hover {
  border-color: var(--border-accent);
  transform: translateY(-4px);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.5);
}

.review-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.review-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.review-name {
  display: block;
  font-size: 0.95rem;
  font-weight: 700;
  color: #f0f0f8;
}

.review-date {
  display: block;
  font-size: 0.75rem;
  color: rgba(240, 240, 248, 0.55);
  margin-top: 2px;
}

.review-card-stars {
  margin-left: auto;
  color: #fbbc04;
  font-size: 0.85rem;
  letter-spacing: 1px;
  flex-shrink: 0;
}

.review-text {
  font-size: 0.95rem;
  line-height: 1.65;
  color: rgba(240, 240, 248, 0.88);
  margin-bottom: 14px;
}

.review-source {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  color: rgba(240, 240, 248, 0.5);
  letter-spacing: 0.05em;
}

.reviews-actions { margin-top: 8px; }

/* Leave a Review — always readable on the dark Earth wash */
.reviews-actions .btn-outline {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.55);
}

.reviews-actions .btn-outline .btn-text {
  color: inherit;
}

.reviews-actions .btn-outline:hover {
  background: rgba(0, 168, 255, 0.12);
  border-color: var(--accent);
  color: var(--accent);
}

/* ── Light theme reviews ── */
html.light-theme .reviews-section.countdown-section {
  background: transparent !important;
}

html.light-theme .reviews-section .countdown-bg-img {
  opacity: 1;
}

html.light-theme .reviews-section .countdown-overlay {
  opacity: 1;
  background: linear-gradient(
    180deg,
    rgba(240, 242, 249, 0.55) 0%,
    rgba(240, 242, 249, 0.42) 40%,
    rgba(240, 242, 249, 0.62) 100%
  );
}

html.light-theme .reviews-section .countdown-game-name {
  color: #0d0e1c;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.75), 0 2px 18px rgba(255, 255, 255, 0.55);
}

html.light-theme .reviews-section .countdown-sub {
  color: #2a2b3d;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.65);
}

html.light-theme .reviews-section .s-tag {
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.5);
}

html.light-theme .reviews-summary {
  background: rgba(255, 255, 255, 0.92);
  border-color: rgba(0, 0, 0, 0.08);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

html.light-theme .reviews-score {
  color: #0d0e1c;
}

html.light-theme .reviews-count {
  color: #5a5b78;
}

html.light-theme .review-card {
  background: rgba(255, 255, 255, 0.94);
  border-color: rgba(0, 0, 0, 0.08);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

html.light-theme .review-name {
  color: #0d0e1c;
}

html.light-theme .review-date {
  color: #5a5b78;
}

html.light-theme .review-text {
  color: #2a2b3d;
}

html.light-theme .review-source {
  color: #5a5b78;
}

html.light-theme .reviews-actions .btn-outline {
  background: rgba(255, 255, 255, 0.95);
  color: #0d0e1c;
  border: 1.5px solid rgba(13, 14, 28, 0.28);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

html.light-theme .reviews-actions .btn-outline:hover {
  background: #ffffff;
  border-color: var(--accent);
  color: var(--accent);
  box-shadow: 0 4px 16px rgba(79, 142, 247, 0.18);
}

/* ─── ABOUT ─── */
.about-section { background: var(--bg2); }

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.about-img-wrap {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  aspect-ratio: 4/5;
}

.about-img-wrap img { transition: transform 0.7s var(--ease); }
.about-img-wrap:hover img { transform: scale(1.05); }

.img-corner {
  position: absolute;
  width: 40px; height: 40px;
  pointer-events: none;
}

.img-corner-tl {
  top: -2px; left: -2px;
  border-top: 2px solid var(--accent);
  border-left: 2px solid var(--accent);
}

.img-corner-br {
  bottom: -2px; right: -2px;
  border-bottom: 2px solid var(--accent);
  border-right: 2px solid var(--accent);
}

.img-scan {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  animation: scan 4s ease-in-out infinite;
  opacity: 0.4;
}

@keyframes scan {
  0%, 100% { top: 0; opacity: 0; }
  10% { opacity: 0.4; }
  90% { opacity: 0.4; }
  100% { top: 100%; }
}

.about-badge-card {
  position: absolute;
  bottom: -24px;
  right: -24px;
  background: var(--bg3);
  border: 1px solid var(--border-accent);
  border-radius: 8px;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  gap: 16px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.badge-icon { font-size: 2rem; }

.about-badge-card strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--text);
}

.about-badge-card span {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.about-text .s-title { text-align: left; margin-bottom: 20px; }

.about-text p {
  color: var(--text-muted);
  margin-bottom: 20px;
  line-height: 1.8;
  font-size: 1.05rem;
}

.about-features {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 32px 0;
}

.ab-feat {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 8px;
  transition: border-color 0.3s, transform 0.3s;
}

.ab-feat:hover { border-color: var(--border-accent); transform: translateX(8px); }

.ab-feat-icon {
  width: 44px; height: 44px;
  background: rgba(0, 255, 204, 0.1);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}

.ab-feat strong { display: block; font-weight: 600; margin-bottom: 2px; }
.ab-feat span { font-size: 0.85rem; color: var(--text-muted); }

/* ─── TEAM ─── */
.team-section {
  background: var(--bg);
  position: relative;
}

.noise-overlay {
  position: absolute;
  inset: 0;
  opacity: 0.02;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 200px;
  pointer-events: none;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
}

.team-card {
  position: relative;
  cursor: none;
}

.team-img {
  position: relative;
  aspect-ratio: 1;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 20px;
  border: 1px solid var(--border);
}

.team-img img { transition: transform 0.5s var(--ease); }
.team-card:hover .team-img img { transform: scale(1.08); }

.team-social {
  position: absolute;
  inset: 0;
  background: rgba(7, 7, 13, 0.85);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  opacity: 0;
  transition: opacity 0.3s;
}

.team-card:hover .team-social { opacity: 1; }

.team-social a {
  width: 40px; height: 40px;
  border: 1px solid var(--border-accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  color: var(--accent);
  transition: background 0.3s, transform 0.3s;
}

.team-social a:hover { background: var(--accent); color: var(--bg); transform: scale(1.1); }

.team-card h3 {
  font-family: var(--font-display);
  font-size: 1rem;
  margin-bottom: 4px;
}

.team-role {
  font-size: 0.8rem;
  color: var(--accent);
  font-family: var(--font-mono);
  display: block;
  margin-bottom: 6px;
}

.team-bio {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin-top: 6px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ─── NEWS ─── */
.news-section { background: var(--bg2); }

.news-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 24px;
}

.news-smalls { display: flex; flex-direction: column; gap: 24px; }

.news-card {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  transition: border-color 0.3s, transform 0.3s;
}

.news-card:hover { border-color: var(--border-accent); transform: translateY(-4px); }

.news-img {
  position: relative;
  overflow: hidden;
}

.news-card.big .news-img { height: 280px; }
.news-card.small .news-img { height: 160px; }

.news-img img { transition: transform 0.5s var(--ease); }
.news-card:hover .news-img img { transform: scale(1.05); }

.news-date-badge {
  position: absolute;
  top: 16px; right: 16px;
  background: var(--bg);
  border: 1px solid var(--border-accent);
  border-radius: 6px;
  padding: 8px 14px;
  text-align: center;
}

.n-day {
  display: block;
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 900;
  color: var(--accent);
  line-height: 1;
}

.n-month {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--text-muted);
  letter-spacing: 0.1em;
}

.news-body { padding: 24px; }

.news-cat {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--accent);
  letter-spacing: 0.15em;
  display: block;
  margin-bottom: 12px;
}

.news-body h3 {
  font-family: var(--font-display);
  font-size: 1rem;
  line-height: 1.4;
  margin-bottom: 12px;
}

.news-card.big .news-body h3 { font-size: 1.3rem; }

.news-body h3 a { color: var(--text); transition: color 0.3s; }
.news-body h3 a:hover { color: var(--accent); }

.news-body p { font-size: 0.95rem; color: var(--text-muted); margin-bottom: 16px; }

.news-more {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--accent);
  transition: letter-spacing 0.3s;
}

.news-more:hover { letter-spacing: 0.1em; }

/* ─── CONTACT ─── */
.contact-section {
  background: var(--bg);
  position: relative;
  overflow: hidden;
}

.contact-particles {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 50% at 50% 50%, rgba(123, 45, 255, 0.08), transparent 70%);
}

.contact-inner {
  position: relative;
  z-index: 2;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 64px;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1.45fr 0.9fr;
  gap: 56px;
  align-items: start;
}

.contact-text .s-title { text-align: left; margin-bottom: 16px; }
.contact-text p { color: var(--text-muted); margin-bottom: 28px; }

.contact-form { margin-top: 4px; }

.contact-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 16px;
  margin-bottom: 20px;
}

.contact-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-align: left;
}

.contact-field label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.contact-field .req {
  color: var(--accent);
  margin-left: 2px;
}

.contact-field .opt {
  text-transform: none;
  letter-spacing: 0;
  font-family: var(--font-body);
  font-size: 0.78rem;
  color: var(--text-muted);
  opacity: 0.75;
}

.contact-field input,
.contact-field textarea,
.contact-field select {
  width: 100%;
  padding: 12px 14px;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.98rem;
  outline: none;
  transition: border-color 0.3s, box-shadow 0.3s;
  resize: vertical;
}

.contact-field select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%236e6e88' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
  cursor: pointer;
}

.contact-field select option {
  background: var(--bg2);
  color: var(--text);
}

.contact-field input:focus,
.contact-field textarea:focus,
.contact-field select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

.contact-field input::placeholder,
.contact-field textarea::placeholder {
  color: var(--text-muted);
  opacity: 0.75;
}

.contact-field.is-invalid input,
.contact-field.is-invalid textarea,
.contact-field.is-invalid select {
  border-color: #ff5c7a;
  box-shadow: 0 0 0 3px rgba(255, 92, 122, 0.18);
}

.field-error {
  min-height: 1em;
  font-size: 0.78rem;
  color: #ff7a90;
  line-height: 1.3;
}

.contact-field--full { grid-column: 1 / -1; }

.contact-other-wrap {
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  margin: 0;
  transition: max-height 0.35s ease, opacity 0.25s ease, margin 0.25s ease;
}

.contact-other-wrap.is-open {
  max-height: 120px;
  opacity: 1;
  margin: 0;
}

.contact-other-wrap[hidden] {
  display: block !important;
  max-height: 0;
  opacity: 0;
  pointer-events: none;
  margin: 0;
  visibility: hidden;
}

.contact-other-wrap.is-open[hidden] {
  visibility: visible;
  pointer-events: auto;
}

.contact-submit {
  margin-top: 4px;
  position: relative;
  min-width: 160px;
}

.contact-submit.is-loading {
  pointer-events: none;
  opacity: 0.85;
}

.contact-submit .btn-spinner {
  display: none;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #fff;
  border-radius: 50%;
  margin-right: 8px;
  animation: contact-spin 0.7s linear infinite;
}

.contact-submit.is-loading .btn-spinner {
  display: inline-block;
}

@keyframes contact-spin {
  to { transform: rotate(360deg); }
}

.contact-form .nl-note {
  display: block;
  margin-top: 12px;
}

.contact-form-status {
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 8px;
  font-size: 0.92rem;
  line-height: 1.45;
}

.contact-form-status.is-success {
  background: rgba(26, 122, 80, 0.18);
  border: 1px solid rgba(60, 180, 120, 0.45);
  color: #9dffc8;
}

.contact-form-status.is-error {
  background: rgba(255, 92, 122, 0.12);
  border: 1px solid rgba(255, 92, 122, 0.4);
  color: #ffb3c0;
}

.nl-input-wrap {
  display: flex;
  gap: 12px;
  margin-bottom: 12px;
}

.nl-input-wrap input {
  flex: 1;
  padding: 16px 20px;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 4px;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  outline: none;
  transition: border-color 0.3s;
}

.nl-input-wrap input:focus { border-color: var(--accent); }
.nl-input-wrap input::placeholder { color: var(--text-muted); }

.nl-note {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.contact-channels h3 {
  font-family: var(--font-display);
  font-size: 1rem;
  margin-bottom: 20px;
  color: var(--text-muted);
  letter-spacing: 0.1em;
}

.contact-channels-social-title {
  margin-top: 36px;
}

.channel-list { display: flex; flex-direction: column; gap: 12px; }

.channel-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 8px;
  transition: border-color 0.3s, transform 0.3s;
  cursor: none;
}

.channel-item:hover { border-color: var(--border-accent); transform: translateX(8px); }

.channel-icon {
  font-size: 1.4rem;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  flex-shrink: 0;
}

/* SVG brand logo icons */
.channel-icon-svg {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.05);
  border-radius: 10px;
  padding: 8px;
  flex-shrink: 0;
  color: #f0f0f8;
  transition: background 0.2s, transform 0.2s;
}

.channel-icon-svg svg {
  width: 22px;
  height: 22px;
  display: block;
}

.channel-item:hover .channel-icon-svg {
  background: rgba(255,255,255,0.1);
  transform: scale(1.1);
}

.channel-item strong { display: block; font-weight: 600; font-size: 0.95rem; }
.channel-item span { font-size: 0.8rem; color: var(--text-muted); }

.channel-arrow { margin-left: auto; color: var(--accent); font-size: 1.1rem; }

/* ─── PROJECTS SECTION ─── */
.projects-section { position: relative; }

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
  margin-top: 48px;
}

.project-card {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s var(--ease), border-color 0.3s, box-shadow 0.3s;
  position: relative;
}

.project-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-accent);
  box-shadow: 0 12px 40px var(--accent-glow);
}

.project-lang-bar {
  height: 3px;
  width: 100%;
  flex-shrink: 0;
}

.project-card-img-wrap { overflow: hidden; height: 160px; }
.project-card-img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s var(--ease); }
.project-card:hover .project-card-img { transform: scale(1.05); }

.project-card-body {
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

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

.project-name {
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1.3;
}

.project-counts {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}

.project-count {
  font-size: 0.78rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 3px;
  font-family: var(--font-mono);
}

.project-desc {
  font-size: 0.87rem;
  color: var(--text-muted);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.proj-lang-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
  display: inline-block;
}

.proj-tag {
  font-size: 0.7rem;
  padding: 3px 9px;
  background: rgba(79, 142, 247, 0.08);
  border: 1px solid rgba(79, 142, 247, 0.18);
  border-radius: 50px;
  color: var(--accent);
  letter-spacing: 0.04em;
  font-family: var(--font-mono);
}

.project-links {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: auto;
  padding-top: 4px;
}

@media (max-width: 768px) {
  .projects-grid { grid-template-columns: 1fr; gap: 16px; }
}

/* ══════════════════════════════════════
   PROJECTS PAGE (projects.html)
   ══════════════════════════════════════ */

/* live status indicator */
.pp-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 20px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-muted);
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  padding: 6px 14px;
  border-radius: 50px;
}

.pp-status-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--text-muted);
  flex-shrink: 0;
}
.pp-status-dot.pp-status-loading { background: #f7c948; animation: pulse 1s infinite; }
.pp-status-dot.pp-status-ok      { background: #22c77a; }
.pp-status-dot.pp-status-error   { background: var(--danger, #ff4466); }
.pp-status-dot.pp-status-idle    { background: var(--text-muted); }

@keyframes pulse { 0%,100%{ opacity:1 } 50%{ opacity:0.3 } }

/* stats bar */
.pp-stats-bar {
  background: var(--bg2);
  border-bottom: 1px solid var(--border);
  padding: 16px 0;
}

.pp-stats-inner {
  display: flex;
  align-items: center;
  gap: 0;
  flex-wrap: wrap;
}

.pp-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 32px;
  gap: 2px;
}

.pp-stat-val {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--accent);
  line-height: 1;
}

.pp-stat-lbl {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  text-transform: uppercase;
}

.pp-stat-sep {
  width: 1px;
  height: 36px;
  background: var(--border);
  flex-shrink: 0;
}

.pp-github-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  padding: 8px 20px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 50px;
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-decoration: none;
  transition: border-color 0.2s, color 0.2s;
}
.pp-github-btn:hover { border-color: var(--accent); color: var(--accent); }

/* filter pills */
.pp-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 36px;
}

.pp-filter-pill {
  display: inline-flex;
  align-items: center;
  padding: 7px 18px;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 50px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s;
}

.pp-filter-pill:hover,
.pp-filter-pill.active {
  background: rgba(79,142,247,0.12);
  border-color: var(--accent);
  color: var(--accent);
}

/* projects grid */
.pp-main { background: var(--bg); }

.pp-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}

.pp-card { cursor: none; }

/* skeleton loaders */
.pp-skeleton {
  height: 280px;
  border-radius: 12px;
  background: linear-gradient(90deg, var(--bg3) 25%, var(--bg2) 50%, var(--bg3) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.4s infinite;
  border: 1px solid var(--border);
}

@keyframes shimmer {
  0%  { background-position: 200% 0; }
  100%{ background-position: -200% 0; }
}

/* empty state */
.pp-empty {
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  text-align: center;
  padding: 80px 24px;
  color: var(--text-muted);
}

.pp-empty h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--text);
}

.pp-empty p { font-size: 0.95rem; }
.pp-empty a { color: var(--accent); }

/* responsive */
@media (max-width: 768px) {
  .pp-grid { grid-template-columns: 1fr; }
  .pp-stat { padding: 0 16px; }
  .pp-stat-val { font-size: 1.1rem; }
  .hide-mobile { display: none !important; }
  .pp-stats-inner { justify-content: center; }
}

/* ══════════════════════════════════════
   ABOUT PAGE (about.html)
   ══════════════════════════════════════ */

/* stats bar */
.au-stats-bar {
  background: var(--bg2);
  border-bottom: 1px solid var(--border);
  padding: 20px 0;
}
.au-stats-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
}
.au-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 36px;
  gap: 2px;
}
.au-stat-val {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 900;
  color: var(--accent);
  line-height: 1;
}
.au-stat-suf {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--accent);
  vertical-align: top;
  line-height: 1.4;
}
.au-stat-lbl {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-top: 4px;
}
.au-stat-sep {
  width: 1px;
  height: 44px;
  background: var(--border);
  flex-shrink: 0;
}

/* story section */
.au-story { background: var(--bg); }
.au-story-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.au-story-visual { position: relative; }
.au-img-wrap { border-radius: 16px; }
.au-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  pointer-events: none;
  z-index: 0;
}
.au-orb-1 {
  width: 220px; height: 220px;
  background: rgba(79,142,247,0.12);
  top: -40px; left: -40px;
}
.au-orb-2 {
  width: 180px; height: 180px;
  background: rgba(79,142,247,0.08);
  bottom: 20px; right: -30px;
}
.au-badge-card {
  position: absolute;
  bottom: -24px;
  right: -20px;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  gap: 14px;
  backdrop-filter: blur(12px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.3);
  z-index: 2;
}
.au-story-text { display: flex; flex-direction: column; gap: 16px; }
.au-para { color: var(--text-muted); line-height: 1.75; font-size: 1rem; }
.au-mission-quote {
  margin: 8px 0 0;
  padding: 18px 24px;
  border-left: 3px solid var(--accent);
  background: rgba(79,142,247,0.06);
  border-radius: 0 10px 10px 0;
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-style: italic;
  color: var(--text-muted);
  line-height: 1.6;
  box-shadow: inset 0 0 0 1px rgba(79,142,247,0.08);
}

/* values / features */
.au-values { background: var(--bg2); }
.au-features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 16px;
}
.au-feat-card {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 32px 28px;
  text-align: center;
  transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
}
.au-feat-card:hover {
  transform: translateY(-6px);
  border-color: var(--accent);
  box-shadow: 0 12px 40px rgba(79,142,247,0.15);
}
.au-feat-icon-wrap {
  font-size: 2.4rem;
  margin-bottom: 14px;
  display: block;
  filter: drop-shadow(0 0 8px rgba(79,142,247,0.3));
}
.au-feat-title {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text);
}
.au-feat-sub { font-size: 0.85rem; color: var(--text-muted); line-height: 1.6; }

/* timeline */
.au-timeline-section { background: var(--bg); overflow: hidden; }
.au-timeline {
  position: relative;
  margin-top: 48px;
  padding: 0 0 16px;
}
/* vertical centre line */
.au-timeline::before {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  background: linear-gradient(to bottom, transparent, var(--accent), transparent);
  opacity: 0.3;
}
.au-tl-item {
  position: relative;
  width: 46%;
  margin-bottom: 40px;
}
.au-tl-left  { margin-left: 0;   margin-right: auto; text-align: right; padding-right: 48px; }
.au-tl-right { margin-left: auto; margin-right: 0;   text-align: left;  padding-left: 48px;  }

/* dot on the line */
.au-tl-dot {
  position: absolute;
  top: 16px;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(79,142,247,0.2), 0 0 16px rgba(79,142,247,0.5);
  z-index: 1;
}
.au-tl-left  .au-tl-dot { right: -55px; }
.au-tl-right .au-tl-dot { left:  -55px; }

.au-tl-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px 24px;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.au-tl-card:hover {
  border-color: var(--accent);
  box-shadow: 0 6px 28px rgba(79,142,247,0.12);
}
.au-tl-year {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  color: var(--accent);
  background: rgba(79,142,247,0.1);
  border: 1px solid rgba(79,142,247,0.2);
  padding: 3px 10px;
  border-radius: 50px;
  margin-bottom: 8px;
}
.au-tl-title {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 6px;
}
.au-tl-desc { font-size: 0.85rem; color: var(--text-muted); line-height: 1.6; }

/* team section */
.au-team-section { background: var(--bg2); position: relative; overflow: hidden; }

/* culture section */
.au-culture { background: var(--bg); }
.au-culture-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 16px;
  width: 100%;
  align-items: stretch;
}
.au-culture-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 28px 24px;
  text-align: center;
  height: 100%;
  transition: transform 0.3s, border-color 0.3s;
}
.au-culture-card:hover {
  transform: translateY(-5px);
  border-color: var(--accent);
}
.au-culture-icon {
  font-size: 2rem;
  margin-bottom: 12px;
  display: block;
  line-height: 1;
}
.au-culture-card h4 {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
}
.au-culture-card p { font-size: 0.85rem; color: var(--text-muted); line-height: 1.6; }

/* responsive */
@media (max-width: 900px) {
  .au-story-grid { grid-template-columns: 1fr; gap: 48px; }
  .au-badge-card  { right: 0; bottom: -20px; }
  .au-timeline::before { left: 20px; }
  .au-tl-item { width: 100%; margin-left: 0 !important; text-align: left !important; padding-left: 52px !important; padding-right: 0 !important; }
  .au-tl-left .au-tl-dot, .au-tl-right .au-tl-dot { left: -40px; right: auto; }
}
@media (max-width: 1024px) {
  .au-features-grid { grid-template-columns: repeat(2, 1fr); }
  .au-culture-grid  { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .au-stat { padding: 0 16px; }
  .au-stat-val { font-size: 1.5rem; }
  .au-features-grid { grid-template-columns: 1fr; }
  .au-culture-grid  { grid-template-columns: 1fr; }
}

/* ══════════════════════════════════════
   BLOG PAGE (blog.html)
   ══════════════════════════════════════ */

/* banner stats */
.bp-banner-stats {
  display: flex;
  align-items: center;
  gap: 0;
  margin-top: 22px;
  width: fit-content;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: 50px;
  overflow: hidden;
}
.bp-bstat {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 24px;
}
.bp-bstat-val {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 900;
  color: var(--accent);
  line-height: 1;
}
.bp-bstat-lbl {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  text-transform: uppercase;
}
.bp-bstat-sep {
  width: 1px;
  height: 36px;
  background: var(--border);
  flex-shrink: 0;
}

/* filter bar */
.bp-filter-bar {
  background: var(--bg2);
  border-bottom: 1px solid var(--border);
  padding: 14px 0;
}

/* featured article */
.bp-featured-section { padding: 56px 0 0; }

.bp-featured-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg2);
  transition: border-color 0.3s;
}
.bp-featured-card:hover { border-color: var(--accent); }

.bp-feat-img-wrap { position: relative; overflow: hidden; min-height: 360px; }
.bp-feat-img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.bp-featured-card:hover .bp-feat-img { transform: scale(1.04); }
.bp-feat-img-placeholder {
  width: 100%; height: 100%; min-height: 360px;
  background: linear-gradient(135deg, var(--bg3), var(--bg));
}
.bp-feat-badge {
  position: absolute;
  top: 16px; left: 16px;
  background: var(--accent);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  padding: 4px 12px;
  border-radius: 50px;
}

.bp-feat-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 48px 44px;
  gap: 16px;
}
.bp-feat-title {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2vw, 1.7rem);
  font-weight: 700;
  line-height: 1.3;
  color: var(--text);
}
.bp-feat-excerpt { color: var(--text-muted); line-height: 1.6; font-size: 0.95rem; }
.bp-feat-meta { display: flex; align-items: center; gap: 20px; margin-top: 8px; }

/* standalone date badge */
.news-date-badge.standalone {
  position: static;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  border-radius: 8px;
}
.news-date-badge.standalone.sm .nd-day  { font-size: 1.1rem; }
.news-date-badge.standalone.sm .nd-month{ font-size: 0.55rem; }

/* articles grid */
.bp-main { background: var(--bg); }

.bp-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 28px;
}

.bp-card {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg2);
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, border-color 0.3s, box-shadow 0.3s;
}
.bp-card:hover {
  transform: translateY(-6px);
  border-color: var(--accent);
  box-shadow: 0 16px 40px rgba(0,0,0,0.3);
}

.bp-card-img-wrap {
  position: relative;
  overflow: hidden;
  height: 200px;
}
.bp-card-img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.bp-card:hover .bp-card-img { transform: scale(1.05); }
.bp-card-img-placeholder {
  width: 100%; height: 100%;
  background: linear-gradient(135deg, var(--bg3), var(--bg));
}
.bp-card-cat {
  position: absolute;
  bottom: 12px; left: 12px;
}

.bp-card-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 20px;
  flex: 1;
}
.bp-card-title {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.4;
  color: var(--text);
}
.bp-card-excerpt {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.55;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* skeleton */
.bp-skeleton {
  height: 320px;
  border-radius: 12px;
  background: linear-gradient(90deg, var(--bg3) 25%, var(--bg2) 50%, var(--bg3) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.4s infinite;
  border: 1px solid var(--border);
}

/* newsletter */
.bp-newsletter-section { background: var(--bg2); border-top: 1px solid var(--border); }
.bp-newsletter-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.bp-nl-text h2 { font-size: clamp(1.4rem, 2.5vw, 2rem); }
.bp-nl-text p  { color: var(--text-muted); margin-top: 10px; }
.bp-nl-input-wrap {
  display: flex;
  gap: 12px;
  margin-top: 18px;
}
.bp-nl-input-wrap input {
  flex: 1;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 50px;
  padding: 12px 20px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--text);
  outline: none;
  transition: border-color 0.2s;
}
.bp-nl-input-wrap input:focus { border-color: var(--accent); }
.bp-nl-note { font-size: 0.75rem; color: var(--text-muted); margin-top: 8px; }

/* responsive */
@media (max-width: 960px) {
  .bp-featured-card { grid-template-columns: 1fr; }
  .bp-feat-img-wrap { min-height: 260px; }
  .bp-feat-body     { padding: 30px 28px; }
  .bp-newsletter-inner { grid-template-columns: 1fr; gap: 32px; }
}
@media (max-width: 768px) {
  .bp-grid { grid-template-columns: 1fr; }
  .bp-banner-stats { flex-direction: row; }
  .bp-bstat { padding: 8px 16px; }
  .bp-nl-input-wrap { flex-direction: column; }
  .bp-nl-input-wrap input { border-radius: 8px; }
}

/* ══════════════════════════════════════
   SERVICES PAGE (services.html)
   ══════════════════════════════════════ */

/* ── Active page indicator ── */
.nav-link.active-page {
  color: var(--accent) !important;
  text-shadow: 0 0 12px rgba(79,142,247,0.6);
}

/* glowing glass pill behind the active link */
.nav-link.active-page::before {
  background: rgba(79,142,247,0.1) !important;
  border-color: rgba(79,142,247,0.28) !important;
  box-shadow:
    0 0 14px rgba(79,142,247,0.15),
    inset 0 1px 0 rgba(255,255,255,0.1),
    inset 0 -1px 0 rgba(79,142,247,0.15);
}

/* glowing bottom underline */
.nav-link.active-page::after {
  width: 90% !important;
  background: linear-gradient(90deg, transparent, var(--accent), transparent) !important;
  box-shadow:
    0 0 10px var(--accent),
    0 0 22px rgba(79,142,247,0.55),
    0 0 40px rgba(79,142,247,0.25) !important;
}

/* ── Page Banner ── */
.page-banner {
  position: relative;
  padding: 160px 0 80px;
  overflow: hidden;
  background: var(--bg2);
}

.page-banner--space {
  background: #07070d !important;
  min-height: 360px;
}

.banner-fx-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  display: block;
  opacity: 1;
}

.page-banner--space .hero-noise {
  z-index: 1;
  pointer-events: none;
}

.page-banner-inner { position: relative; z-index: 2; }

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.breadcrumb a { color: var(--accent); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
.bc-sep { opacity: 0.4; }

.page-banner-title {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 7vw, 5.5rem);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}

.page-banner-sub {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--text-muted);
  max-width: 540px;
}

.page-banner-line {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0.3;
}

/* ── Services Grid ── */
.sp-section { background: var(--bg); }

.sp-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 32px;
}

.sp-card {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color 0.3s, box-shadow 0.3s, transform 0.3s var(--ease);
  position: relative;
}

.sp-card:hover {
  border-color: var(--border-accent);
  box-shadow: 0 16px 48px var(--accent-glow);
  transform: translateY(-6px);
}

.sp-card-img-wrap {
  position: relative;
  height: 220px;
  overflow: hidden;
}

.sp-card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease);
}

.sp-card:hover .sp-card-img-wrap img { transform: scale(1.06); }

.sp-card-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(7,7,13,0.85) 0%, rgba(7,7,13,0.2) 60%, transparent 100%);
}

.sp-card-num {
  position: absolute;
  top: 16px;
  left: 20px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: rgba(255,255,255,0.4);
  letter-spacing: 0.15em;
}

.sp-badge {
  display: none;
}

.sp-card-content {
  padding: 28px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.sp-genre {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--accent);
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.sp-title {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2.5vw, 1.6rem);
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1.1;
}

.sp-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.7;
  flex: 1;
}

.sp-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.sp-tech span {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  padding: 4px 12px;
  background: rgba(79,142,247,0.08);
  border: 1px solid rgba(79,142,247,0.2);
  border-radius: 50px;
  color: var(--accent);
  letter-spacing: 0.06em;
}

/* ── Process Section ── */
.process-section { background: var(--bg2); position: relative; overflow: hidden; }

.process-steps {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin-top: 60px;
  flex-wrap: wrap;
  gap: 24px;
}

.process-step {
  flex: 1;
  min-width: 180px;
  max-width: 220px;
  text-align: center;
  padding: 32px 20px;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 16px;
  position: relative;
  transition: border-color 0.3s, transform 0.3s;
}

.process-step:hover {
  border-color: var(--border-accent);
  transform: translateY(-4px);
}

.process-step-num {
  font-family: var(--font-display);
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  color: var(--accent);
  margin-bottom: 12px;
  opacity: 0.7;
}

.process-step-icon { font-size: 2rem; margin-bottom: 12px; }

.process-step h3 {
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.process-step p { font-size: 0.85rem; color: var(--text-muted); line-height: 1.6; }

.process-connector {
  width: 48px;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), rgba(79,142,247,0.3));
  flex-shrink: 0;
  transform-origin: left center;
}

/* ── Tech Pills ── */
.techstack-section { background: var(--bg); }

.tech-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-top: 48px;
}

.tech-pills span {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  padding: 8px 20px;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 50px;
  color: var(--text-muted);
  letter-spacing: 0.06em;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}

.tech-pills span:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(79,142,247,0.06);
}

/* ── CTA Banner ── */
.sp-cta-section {
  position: relative;
  padding: 100px 0;
  overflow: hidden;
}

.sp-cta-inner {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 640px;
  margin: 0 auto;
}

.s-cta-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 900;
  letter-spacing: 0.02em;
  margin-bottom: 16px;
  line-height: 1.1;
}

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

.sp-cta-btns { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ── Responsive ── */
@media (max-width: 768px) {
  .sp-grid { grid-template-columns: 1fr; gap: 20px; }
  .process-steps { flex-direction: column; align-items: center; }
  .process-connector { width: 2px; height: 36px; background: linear-gradient(180deg, var(--accent), transparent); transform-origin: top center; }
  .page-banner { padding: 130px 0 60px; }
}

/* ─── FOOTER ─── */
.footer {
  background: var(--bg2);
  padding: 80px 0 32px;
}

.footer-top-line {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  margin-bottom: 80px;
  opacity: 0.4;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 64px;
}

.footer-brand p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
  margin-top: 20px;
}

.footer-links h4 {
  font-family: var(--font-display);
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.footer-links ul { display: flex; flex-direction: column; gap: 12px; }

.footer-links a {
  font-size: 0.95rem;
  color: var(--text-muted);
  transition: color 0.3s, padding-left 0.3s;
}

.footer-links a:hover { color: var(--accent); padding-left: 4px; }

.footer-bottom {
  padding-top: 32px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

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

/* ═══════════════════════════════════════════════
   RESPONSIVE — Tablet → Phone → Small Phone
   ═══════════════════════════════════════════════ */

/* ── Touch devices: restore real cursor ── */
@media (hover: none) and (pointer: coarse) {
  body { cursor: auto; }
  .cursor { display: none; }
  a, button, .magnetic, .channel-item { cursor: pointer; }
  .nav-close { cursor: pointer; }
  .hamburger { cursor: pointer; }
}

/* ── Tablet  ≤ 1024px ── */
@media (max-width: 1024px) {
  .games-layout { grid-template-columns: 1fr; }
  .games-layout.services-grid { grid-template-columns: 1fr 1fr; }
  .games-side { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
  .game-card.big .game-card-media { height: 380px; }

  .about-grid { grid-template-columns: 1fr; gap: 48px; }
  .about-visual { display: none; }
  .about-text { text-align: center; }
  .about-text .s-title { text-align: center; }
  .about-features { align-items: center; }
  .ab-feat { max-width: 420px; }

  .team-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }

  .news-grid { grid-template-columns: 1fr; }
  .news-smalls { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .news-card.big .news-img { height: 240px; }

  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}

/* ── Mobile  ≤ 768px ── */
@media (max-width: 768px) {
  /* Layout */
  .container { padding: 0 18px; }
  .section-pad { padding: 72px 0; }
  body { overflow-x: clip; }

  /* Header — drop backdrop-filter so fixed mobile nav uses the viewport */
  .header,
  .header.scrolled {
    padding: 16px 0;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    transform: none !important;
    filter: none !important;
  }
  html.light-theme .header,
  html.light-theme .header.scrolled {
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    transform: none !important;
    border-radius: 0 !important;
    background: #ffffff !important;
    border: none !important;
    border-bottom: 1px solid rgba(47, 155, 255, 0.12) !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }
  html.light-theme body.subpage .header,
  html.light-theme body.subpage .header.scrolled {
    background: #ffffff !important;
  }
  .header-inner { gap: 10px; }
  .theme-toggle { margin-left: auto; }
  .logo-title { font-size: 1rem; }
  .logo-sub { font-size: 0.48rem; }
  .logo-mark { width: 36px; height: 36px; font-size: 1.1rem; }

  /* Full-screen mobile nav */
  .nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100vw;
    height: 100dvh;
    background: rgba(5, 5, 20, 0.97);
    backdrop-filter: blur(28px) saturate(180%);
    -webkit-backdrop-filter: blur(28px) saturate(180%);
    border-left: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transform: translateX(100%);
    transition: transform 0.4s var(--ease);
    z-index: 1200;
    pointer-events: none;
  }
  html.light-theme .nav {
    background: rgba(240, 242, 249, 0.98) !important;
    border-left-color: rgba(0, 0, 0, 0.07) !important;
  }
  .nav.open {
    transform: translateX(0);
    pointer-events: auto;
  }
  .nav-list { flex-direction: column; gap: 28px; text-align: center; }
  .nav-link { font-size: 1.4rem; color: var(--text); }
  .nav-link.nav-cta { padding: 12px 32px; font-size: 1rem; }
  .nav-close {
    display: flex;
    position: absolute; top: 20px; right: 20px;
    background: none; border: none;
    color: var(--text); font-size: 1.6rem;
    cursor: pointer;
    width: 44px; height: 44px;
    align-items: center; justify-content: center;
    z-index: 2;
  }
  .hamburger { display: flex; z-index: 1210; }

  /* Loader — prevent QUANTUMEXE overflow */
  .loader-text {
    font-size: clamp(1.4rem, 9vw, 2.4rem);
    letter-spacing: 0.12em;
    max-width: 92vw;
    overflow: hidden;
    white-space: nowrap;
  }
  .loader-bar-wrap { width: min(280px, 80vw); }

  /* Hero — auto height on mobile so nothing gets clipped */
  .home-landing {
    height: auto;
    min-height: 100svh;
    overflow: visible;
    overflow-x: clip;
  }
  .hero {
    min-height: 0;
    height: auto;
    overflow: visible;
    align-items: center;
    justify-content: center;
    padding: 68px 0 3rem;
  }
  .hero-content {
    padding: 0 12px;
    max-width: 100%;
    overflow: visible;
    width: 100%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .hero-badge {
    font-size: 0.55rem;
    padding: 6px 10px;
    text-align: center;
    letter-spacing: 0.06em;
    max-width: 100%;
    white-space: normal;
    line-height: 1.4;
    margin-bottom: 16px;
    justify-content: center;
  }
  .hero-title {
    overflow: visible;
    margin-bottom: 14px;
    text-align: center;
    width: 100%;
  }
  .glitch-line {
    font-size: clamp(1.85rem, 9vw, 2.8rem);
    letter-spacing: 0.02em;
    word-break: normal;
    overflow-wrap: normal;
    line-height: 1.08;
  }
  /* Home hero lines are single words — never allow mid-word breaks */
  .home-landing .glitch-line { white-space: nowrap; }
  .hero-sub {
    font-size: 0.95rem;
    padding: 0 4px;
    margin-bottom: 22px;
    line-height: 1.55;
    text-align: center;
    max-width: 36rem;
  }
  .hero-cta {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 0;
    position: relative;
    z-index: 3;
    width: 100%;
  }
  .hero-cta .btn {
    width: 100%;
    max-width: 280px;
    justify-content: center;
    min-height: 48px;
  }
  .hero-cta .btn-outline {
    color: #ffffff !important;
    border-color: rgba(255, 255, 255, 0.65) !important;
    background: rgba(0, 0, 0, 0.35);
  }
  .hero-cta .btn-outline .btn-text { color: inherit; }
  html.light-theme .hero-cta .btn-outline {
    color: var(--text) !important;
    border-color: rgba(13, 14, 28, 0.35) !important;
    background: rgba(255, 255, 255, 0.75);
  }

  .hero-floats { display: none; }
  .hero-scroll-indicator {
    display: flex;
    bottom: 10px;
    gap: 6px;
  }
  .scroll-mouse,
  .scroll-label-desktop { display: none; }
  .scroll-phone,
  .scroll-label-mobile { display: block; }

  /* Tapes — keep compact so both stay in first viewport */
  .marquee-wrap { padding: 10px 0; }
  .tech-tape-wrap { padding: 10px 0; }
  .marquee-track { gap: 24px; font-size: 0.62rem; }
  .tech-item { padding: 4px 18px; }
  .tech-item span { font-size: 0.62rem; }

  /* Services / Games */
  .games-side { grid-template-columns: 1fr; }
  .games-layout.services-grid { grid-template-columns: 1fr; }
  .game-card.big .game-card-media { height: 280px; }
  .game-card.small .game-card-media { height: 200px; }
  .game-card-overlay { padding: 20px; }
  .game-badge { display: none; } /* already hidden globally; keep for clarity */
  .game-genre {
    font-size: 0.62rem;
    letter-spacing: 0.06em;
    white-space: normal;
    line-height: 1.45;
    word-break: break-word;
  }
  .game-name { font-size: 1.25rem; letter-spacing: 0.03em; }
  .game-info p { display: block !important; font-size: 0.85rem; }
  .game-platforms {
    display: flex !important;
    flex-wrap: wrap;
    gap: 6px;
  }
  .game-platforms span {
    font-size: 0.65rem;
    padding: 4px 10px;
  }
  .game-trailer-btn { display: none; }

  /* Countdown / Reviews */
  .countdown-section { padding: 56px 0; }
  .reviews-section.countdown-section { padding: 48px 0 56px; }
  .reviews-section .countdown-bg-img img {
    object-position: center 78%;
    transform: scale(1.2);
  }
  .reviews-section .countdown-overlay {
    background: linear-gradient(
      180deg,
      rgba(7, 7, 13, 0.45) 0%,
      rgba(7, 7, 13, 0.32) 45%,
      rgba(7, 7, 13, 0.55) 100%
    );
  }
  .countdown-game-name {
    font-size: clamp(1.45rem, 6.5vw, 2.2rem);
    letter-spacing: 0.04em;
    line-height: 1.2;
    max-width: 18ch;
    margin-left: auto;
    margin-right: auto;
  }
  .countdown-sub {
    font-size: 0.9rem;
    margin-bottom: 28px;
    padding: 0 12px;
  }
  .countdown-timer { gap: 8px; flex-wrap: nowrap; justify-content: center; }
  .c-box { width: 68px; height: 68px; border-radius: 6px; }
  .c-box span { font-size: 1.8rem; }
  .c-sep { font-size: 1.8rem; padding: 0 4px; padding-bottom: 30px; }
  .c-label { font-size: 0.6rem; }
  .countdown-actions { flex-direction: column; align-items: center; gap: 12px; }
  .countdown-actions .btn { width: 100%; max-width: 260px; justify-content: center; }

  .reviews-inner { padding: 0 4px; }
  .reviews-summary {
    flex-direction: column;
    text-align: center;
    padding: 14px 16px;
    gap: 10px;
    margin-bottom: 24px;
  }
  .reviews-google-badge { width: 40px; height: 40px; }
  .reviews-google-badge svg { width: 22px; height: 22px; }
  .reviews-rating { text-align: center; }
  .reviews-rating-top { justify-content: center; gap: 8px; }
  .reviews-score { font-size: 1.6rem; }
  .reviews-stars { font-size: 0.9rem; letter-spacing: 1px; }
  .reviews-count { font-size: 0.75rem; }
  .reviews-grid { grid-template-columns: 1fr; gap: 12px; margin-bottom: 28px; }
  .review-card { padding: 16px; }
  .review-avatar { width: 36px; height: 36px; }
  .review-name { font-size: 0.88rem; }
  .review-text { font-size: 0.84rem; margin-bottom: 10px; }
  .review-card-header { flex-wrap: wrap; margin-bottom: 10px; }
  .review-card-stars { margin-left: 0; width: 100%; font-size: 0.78rem; }

  /* About */
  .about-text { text-align: center; }
  .about-features { align-items: center; }
  .ab-feat { text-align: left; }
  .about-text .btn { width: 100%; max-width: 260px; justify-content: center; }

  /* Team */
  .team-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .team-img { border-radius: 6px; }
  .team-card h3 { font-size: 0.9rem; }
  .team-role { font-size: 0.72rem; }

  /* News */
  .news-smalls { grid-template-columns: 1fr; }
  .news-card.small .news-img { height: 160px; }

  /* Contact */
  .contact-inner { padding: 28px 20px; border-radius: 10px; }
  .contact-text .s-title { text-align: center; }
  .contact-text p { text-align: center; }
  .contact-form-grid { grid-template-columns: 1fr; }
  .contact-submit { width: 100%; justify-content: center; }
  .nl-input-wrap { flex-direction: column; gap: 10px; }
  .nl-input-wrap input { width: 100%; }
  .nl-input-wrap .btn { width: 100%; justify-content: center; }
  .nl-note { text-align: center; }
  .contact-channels h3 { text-align: center; }

  /* Footer */
  .footer { padding: 56px 0 24px; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-brand { text-align: center; }
  .footer-brand .logo { justify-content: center; }
  .footer-links { text-align: center; }
  .footer-links a:hover { padding-left: 0; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
}

/* ── Small phones  ≤ 480px ── */
@media (max-width: 480px) {
  .container { padding: 0 14px; }
  .section-pad { padding: 56px 0; }

  .s-title { font-size: 1.8rem; }
  .s-desc { font-size: 0.95rem; }

  .loader-text {
    font-size: clamp(1.15rem, 8vw, 1.8rem);
    letter-spacing: 0.08em;
  }
  .hero-badge { font-size: 0.52rem; letter-spacing: 0.06em; padding: 6px 10px; }
  .glitch-line { font-size: clamp(1.7rem, 11vw, 2.6rem); letter-spacing: 0.01em; }
  .hero-sub { font-size: 0.92rem; br { display: none; } }
  .hero-content { padding: 0 12px; }
  .glitch-line { font-size: clamp(1.55rem, 9vw, 2.3rem); }
  .home-landing .hero { padding: 60px 0 44px; }
  .hero-badge { margin-bottom: 12px; }
  .hero-title { margin-bottom: 10px; }
  .hero-sub { margin-bottom: 16px; }
  .marquee-wrap { padding: 8px 0; }
  .tech-tape-wrap { padding: 8px 0; }
  .countdown-game-name {
    font-size: clamp(1.25rem, 6vw, 1.85rem);
    letter-spacing: 0.03em;
  }
  .reviews-score { font-size: 1.4rem; }
  .reviews-summary { padding: 12px 14px; margin-bottom: 18px; }
  .game-name { font-size: 1.1rem; }
  .logo-title { font-size: 0.85rem; letter-spacing: 0.12em; }

  .c-box { width: 58px; height: 58px; }
  .c-box span { font-size: 1.5rem; }
  .c-sep { font-size: 1.4rem; padding: 0 2px; padding-bottom: 26px; }

  .team-grid { grid-template-columns: 1fr 1fr; gap: 12px; }

  .game-card.big .game-card-media { height: 240px; }

  .contact-inner { padding: 24px 16px; }

  .btn { padding: 13px 24px; font-size: 0.73rem; }
  .btn.sm { padding: 10px 18px; }
}

/* ═══════════════════════════════════════════════════════════════
   SCROLL-THROUGH GALAXY  —  3-D background visible between sections
   ═══════════════════════════════════════════════════════════════
   Strategy
     1. The Three.js canvas is position:fixed behind everything.
     2. body background becomes transparent so the canvas shows.
     3. html keeps the base dark/light colour (visible at page edges).
     4. Every section has a semi-transparent background so the galaxy
        glows through while still keeping text fully readable.
     5. A thin transparent spacer (.galaxy-gap) is injected between
        sections via CSS ::before/::after so the galaxy is fully
        visible in the gaps.
═══════════════════════════════════════════════════════════════ */

/* ── 1. Make body transparent so the fixed canvas shows through ── */
body {
  background: transparent !important;
}
html {
  /* base colour visible at the very top/bottom edges of the page */
  background: #07070d;
}
html.light-theme {
  background: #f0f2f9;
}

/* ── 2. Fix the 3D canvas to the full viewport ── */
.hero-3d-canvas {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width:  100vw !important;
  height: 100vh !important;
  z-index: -1 !important;   /* behind ALL document content */
  pointer-events: none;
  display: block;
  /* dark theme: full vibrance; light theme handles its own opacity below */
  filter: none !important;
}

/* light theme: galaxy stays visible but toned down */
html.light-theme .hero-3d-canvas {
  opacity: 0.70 !important;
  filter: brightness(0.65) saturate(0.55) !important;
}

/* ── 3. Section backgrounds: semi-transparent (dark theme) ── */
.games-section,
.countdown-section,
.about-section,
.team-section,
.news-section,
.projects-section,
.contact-section {
  background: rgba(7, 7, 13, 0.80) !important;
}

/* Let the Earth photo show through the reviews section */
.reviews-section.countdown-section {
  background: transparent !important;
}

.marquee-wrap  { background: rgba(4, 4, 10, 0.88) !important; }
.tech-tape-wrap{ background: rgba(7, 7, 13, 0.84) !important; }
.footer        { background: rgba(4, 4, 10, 0.92) !important; }

/* alternate shade for visual rhythm */
.about-section,
.news-section,
.contact-section {
  background: rgba(10, 10, 20, 0.78) !important;
}

/* ── 4. Light theme semi-transparent overrides ── */
html.light-theme .games-section,
html.light-theme .countdown-section,
html.light-theme .team-section,
html.light-theme .projects-section {
  background: rgba(240, 242, 249, 0.84) !important;
}
html.light-theme .about-section,
html.light-theme .news-section,
html.light-theme .contact-section {
  background: rgba(248, 249, 255, 0.82) !important;
}
html.light-theme .marquee-wrap {
  background: rgba(255, 255, 255, 0.52) !important;
  border-top: 1px solid rgba(255, 255, 255, 0.75) !important;
  border-bottom: 1px solid rgba(47, 155, 255, 0.1);
}
html.light-theme .tech-tape-wrap {
  background: rgba(255, 255, 255, 0.62) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.8) !important;
}
html.light-theme .home-landing .home-tape {
  border-radius: 0;
  backdrop-filter: blur(16px) saturate(150%);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
}
html.light-theme .marquee-track .dot {
  color: #2f9bff;
  font-size: 0.35rem;
}
html.light-theme .tech-item img {
  filter: none;
}
html.light-theme .tech-item img[alt="Next.js"] {
  filter: brightness(0.18);
}
html.light-theme .footer        { background: rgba(243, 244, 252, 0.92) !important; }

/* ── 5. Visible galaxy gap between every section pair ── */
/* A thin transparent stripe lets the galaxy fully shine through */
.games-section::before,
.countdown-section::before,
.about-section::before,
.team-section::before,
.news-section::before,
.projects-section::before,
.contact-section::before,
.footer::before {
  content: '';
  display: block;
  height: 3px;
  background: transparent;
}

/* ── 6. Backdrop blur only on desktop (costly on mobile) ── */
@media (min-width: 769px) {
  .games-section,
  .about-section,
  .team-section,
  .news-section,
  .contact-section {
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
  }
}

/* ── 7. Ensure all section content stays above the canvas ── */
.games-section > *,
.countdown-section > *,
.about-section > *,
.team-section > *,
.news-section > *,
.projects-section > *,
.contact-section > *,
.marquee-wrap > *,
.tech-tape-wrap > *,
.footer > * {
  position: relative;
  z-index: 1;
}

/* Keep section background images absolute — the rule above must not pull them into flow */
.countdown-section > .countdown-bg-img,
.sp-cta-section > .countdown-bg-img,
.about-section > .countdown-bg-img {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

/* ═══════════════════════════════════════════════════════════════
   ARCTIC FROST GLASS — Theme B home layout (light theme)
═══════════════════════════════════════════════════════════════ */

.frost-sky { display: none; }
.hero-shell { width: 100%; max-width: 1600px; margin: 0 auto; padding: 0 40px; position: relative; z-index: 2; }

@media (min-width: 1280px) {
  .hero-shell { padding: 0 56px; }
}

@media (min-width: 1600px) {
  .hero-shell { padding: 0 80px; }
}
.hero-split { display: block; }
.hero-visual,
.frost-features,
.frost-stats { display: none; }

html.light-theme .frost-sky {
  display: block;
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background-color: #d9eaf8;
  background-image:
    linear-gradient(180deg, rgba(232, 243, 251, 0.55) 0%, rgba(245, 250, 255, 0.72) 45%, rgba(236, 245, 252, 0.88) 100%),
    url("https://images.unsplash.com/photo-1483728642387-6c3bdddeba57?auto=format&fit=crop&w=2400&q=80");
  background-size: cover;
  background-position: center 30%;
  filter: saturate(1.05) brightness(1.08);
}

html.light-theme {
  background: #e3f0fa !important;
  --font-display: 'Outfit', sans-serif;
  --font-body: 'Outfit', sans-serif;
}

html.light-theme body,
html.light-theme .hero-sub,
html.light-theme .nav-link,
html.light-theme .btn {
  font-family: 'Outfit', sans-serif;
}

html.light-theme .hero-3d-canvas,
html.light-theme .hero-canvas {
  opacity: 0.12 !important;
  filter: brightness(1.4) saturate(0.3) !important;
}

html.light-theme .hero-floats,
html.light-theme .hero-noise,
html.light-theme .hero-scroll-indicator {
  display: none !important;
}

/* Show scrolling tapes under hero (Theme B) */
html.light-theme .home-landing .home-tape {
  display: block !important;
  margin-top: 8px;
}

html.light-theme .home-landing {
  height: auto;
  min-height: 100svh;
  overflow: visible;
  padding: 110px 0 48px;
  display: block;
}

html.light-theme .frost-hero {
  flex: none;
  height: auto;
  min-height: 0;
  align-items: stretch;
  justify-content: flex-start;
  text-align: left;
  padding: 0;
  overflow: visible;
}

html.light-theme .hero-shell {
  padding: 36px 40px;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.38);
  border: 1px solid rgba(255, 255, 255, 0.72);
  box-shadow:
    0 24px 80px rgba(35, 80, 130, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(28px) saturate(165%);
  -webkit-backdrop-filter: blur(28px) saturate(165%);
}

html.light-theme .hero-split {
  display: flex;
  flex-wrap: nowrap;
  justify-content: space-between;
  align-items: center;
  gap: clamp(1.5rem, 3vw, 3rem);
  min-height: min(72vh, 760px);
  width: 100%;
  max-width: none;
  margin: 0;
}

html.light-theme .hero-content {
  flex: 1 1 58%;
  max-width: none;
  width: auto;
  min-width: 0;
  margin: 0;
  padding: 12px 8px 12px 8px;
  border: none;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-radius: 0;
  text-align: left;
}

html.light-theme .hero-badge {
  margin-bottom: 28px;
  background: rgba(255, 255, 255, 0.55);
  border-color: rgba(47, 155, 255, 0.25);
  font-size: 0.85rem;
  padding: 10px 18px;
}

html.light-theme .hero-title { margin-bottom: 28px; }

html.light-theme .glitch-line {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(3.6rem, 8.2vw, 7.4rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 0.96;
  color: #0c1a2e;
  text-shadow: none;
}

html.light-theme .glitch-line::before,
html.light-theme .glitch-line::after { display: none !important; }

html.light-theme .glitch-line.accent {
  color: #2f9bff;
  text-shadow: 0 0 36px rgba(47, 155, 255, 0.32);
}

html.light-theme .hero-sub {
  max-width: 40rem;
  margin: 0 0 40px;
  font-size: clamp(1.2rem, 1.7vw, 1.55rem);
  line-height: 1.55;
  color: #5a6f88;
}

html.light-theme .hero-cta {
  justify-content: flex-start;
  gap: 16px;
  flex-wrap: wrap;
}

html.light-theme .hero-cta .btn {
  border-radius: 999px;
  padding: 18px 36px;
  font-family: 'Outfit', sans-serif;
  letter-spacing: 0.04em;
  font-size: 0.92rem;
  min-height: 56px;
}

html.light-theme .btn-arrow {
  margin-left: 8px;
  font-size: 1.1em;
  line-height: 1;
}

html.light-theme .hero-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  min-height: 520px;
  width: min(560px, 44%);
}

html.light-theme .qe-stage {
  position: relative;
  width: min(560px, 100%);
  aspect-ratio: 1 / 1.1;
  display: grid;
  place-items: center;
  isolate: isolate;
}

html.light-theme .qe-stage::before {
  content: "";
  position: absolute;
  inset: 10% 5% 18%;
  background:
    radial-gradient(circle at 70% 28%, rgba(120, 200, 255, 0.22), transparent 34%),
    radial-gradient(circle at 35% 60%, rgba(180, 220, 255, 0.12), transparent 40%);
  filter: blur(2px);
  z-index: 0;
  pointer-events: none;
}

html.light-theme .qe-ring {
  position: absolute;
  left: 50%;
  bottom: 6%;
  border-radius: 50%;
  border: 1.5px solid rgba(47, 155, 255, 0.28);
  box-shadow:
    0 0 18px rgba(47, 155, 255, 0.16),
    inset 0 0 18px rgba(255, 255, 255, 0.25);
  transform: translateX(-50%) scaleY(0.34);
  transform-origin: center;
  animation: qePulse 6s ease-in-out infinite;
  z-index: 1;
}
html.light-theme .qe-ring-1 { width: 92%; height: 92%; animation-delay: 0s; opacity: 0.55; }
html.light-theme .qe-ring-2 { width: 74%; height: 74%; animation-delay: 0.35s; border-color: rgba(47, 155, 255, 0.34); }
html.light-theme .qe-ring-3 { width: 56%; height: 56%; animation-delay: 0.7s; border-color: rgba(47, 155, 255, 0.4); }
html.light-theme .qe-ring-4 { width: 38%; height: 38%; animation-delay: 1.05s; border-color: rgba(0, 210, 255, 0.5); }

@keyframes qePulse {
  0%, 100% { opacity: 0.65; }
  50% { opacity: 1; }
}

html.light-theme .qe-emblem {
  display: none;
}

html.light-theme .qe-logo-img {
  position: relative;
  z-index: 3;
  width: min(460px, 92%);
  height: auto;
  max-height: 520px;
  display: block;
  margin-bottom: 8%;
  animation: qeFloat 4.5s ease-in-out infinite;
  filter:
    drop-shadow(0 22px 36px rgba(25, 80, 140, 0.28))
    drop-shadow(0 0 22px rgba(0, 230, 255, 0.35));
  object-fit: contain;
  object-position: center;
  background: transparent;
  overflow: visible;
}

html.light-theme .qe-floor-glow {
  position: absolute;
  bottom: 4%;
  left: 50%;
  width: 78%;
  height: 22%;
  transform: translateX(-50%);
  background: radial-gradient(ellipse, rgba(47, 155, 255, 0.55), rgba(0, 210, 255, 0.18) 42%, transparent 72%);
  filter: blur(12px);
  z-index: 1;
  pointer-events: none;
}

@keyframes qeFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

html.light-theme .frost-features {
  display: none !important;
}

html.light-theme .frost-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 18px 16px 20px;
  min-height: 148px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.48);
  border: 1px solid rgba(255, 255, 255, 0.78);
  box-shadow: 0 10px 30px rgba(35, 80, 130, 0.08);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  color: #0c1a2e;
  transition: transform 0.25s var(--ease), box-shadow 0.25s, border-color 0.25s;
}

html.light-theme .frost-card:hover {
  transform: translateY(-4px);
  border-color: rgba(47, 155, 255, 0.45);
  box-shadow: 0 16px 40px rgba(35, 80, 130, 0.14);
}

html.light-theme .frost-card-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(47, 155, 255, 0.12);
  color: #2f9bff;
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 4px;
}

html.light-theme .frost-card strong {
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

html.light-theme .frost-card p {
  font-size: 0.84rem;
  line-height: 1.4;
  color: #5a6f88;
  margin: 0;
}

html.light-theme .frost-card-go {
  position: absolute;
  right: 14px;
  bottom: 14px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid rgba(47, 155, 255, 0.35);
  color: #2f9bff;
  display: grid;
  place-items: center;
  font-size: 0.9rem;
}

html.light-theme .frost-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin-top: 16px;
  padding: 14px 8px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.42);
  border: 1px solid rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

html.light-theme .frost-stat {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 6px 12px;
  color: #0c1a2e;
  font-size: 0.92rem;
  border-right: 1px solid rgba(47, 155, 255, 0.15);
}
html.light-theme .frost-stat:last-child { border-right: none; }
html.light-theme .frost-stat b { color: #2f9bff; font-weight: 700; }
html.light-theme .frost-stat-icon { color: #2f9bff; font-size: 0.7rem; }

/* Rest of page glass surfaces */
html.light-theme .games-section,
html.light-theme .countdown-section,
html.light-theme .team-section,
html.light-theme .projects-section {
  background: rgba(255, 255, 255, 0.42) !important;
  backdrop-filter: blur(16px) saturate(150%);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
}

html.light-theme .about-section,
html.light-theme .news-section,
html.light-theme .contact-section {
  background: rgba(255, 255, 255, 0.52) !important;
  backdrop-filter: blur(18px) saturate(155%);
  -webkit-backdrop-filter: blur(18px) saturate(155%);
}

html.light-theme .footer {
  background: rgba(255, 255, 255, 0.7) !important;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

html.light-theme .team-card,
html.light-theme .news-card,
html.light-theme .project-card,
html.light-theme .about-badge-card {
  background: rgba(255, 255, 255, 0.55) !important;
  border: 1px solid rgba(255, 255, 255, 0.75);
  box-shadow: 0 10px 36px rgba(35, 80, 130, 0.1);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-radius: 18px;
}

html.light-theme .contact-section .contact-grid {
  padding: 28px;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.75);
  border-radius: 20px;
  box-shadow: 0 10px 36px rgba(35, 80, 130, 0.1);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

html.light-theme .btn-primary {
  border-radius: 999px;
  box-shadow: 0 8px 28px rgba(47, 155, 255, 0.35);
}

@media (max-width: 1024px) {
  html.light-theme .hero-split {
    flex-direction: column;
    gap: 18px;
    max-width: none;
  }
  html.light-theme .hero-visual {
    min-height: 240px;
    order: -1;
    width: 100%;
  }
  html.light-theme .frost-features { grid-template-columns: repeat(2, 1fr); }
  html.light-theme .frost-stats { grid-template-columns: repeat(2, 1fr); }
  html.light-theme .frost-stat:nth-child(2) { border-right: none; }
  html.light-theme .frost-stat { border-bottom: 1px solid rgba(47, 155, 255, 0.12); }
  html.light-theme .frost-stat:nth-last-child(-n+2) { border-bottom: none; }
  html.light-theme .hero-content {
    text-align: center;
    padding: 4px 0 0;
    align-items: center;
    max-width: none;
    width: 100%;
  }
  html.light-theme .hero-sub { margin-left: auto; margin-right: auto; }
  html.light-theme .hero-cta { justify-content: center; }
}

@media (max-width: 768px) {
  html.light-theme .home-landing {
    padding: calc(72px + env(safe-area-inset-top, 0px)) 0 calc(20px + env(safe-area-inset-bottom, 0px));
    min-height: 0;
    height: auto;
    overflow-x: clip;
  }
  html.light-theme .hero-shell {
    padding: 16px 12px 28px;
    border-radius: 18px;
    max-width: 100%;
  }
  html.light-theme .frost-hero {
    overflow: visible;
    height: auto;
    min-height: 0;
    padding-bottom: 3rem;
  }
  html.light-theme .hero-split {
    gap: 10px;
    min-height: 0;
  }
  html.light-theme .hero-visual {
    min-height: 200px;
    max-width: 100%;
  }
  html.light-theme .qe-stage {
    width: min(240px, 72vw);
    aspect-ratio: 1 / 1.05;
  }
  html.light-theme .qe-logo-img {
    width: min(200px, 58vw);
    max-height: 220px;
    margin-bottom: 4%;
  }
  html.light-theme .qe-ring {
    border-width: 1px;
  }
  html.light-theme .glitch-line {
    font-size: clamp(1.9rem, 9.2vw, 2.9rem);
    line-height: 1.05;
    white-space: nowrap;
  }
  html.light-theme .hero-sub {
    font-size: 0.95rem;
    max-width: 32rem;
    margin-bottom: 20px;
    padding: 0 4px;
  }
  html.light-theme .hero-cta {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    gap: 10px;
    margin-bottom: 10px;
  }
  html.light-theme .hero-cta .btn {
    width: 100%;
    max-width: none;
    justify-content: center;
    min-height: 48px;
    padding: 14px 20px;
  }
  html.light-theme .frost-features {
    grid-template-columns: 1fr;
    gap: 10px;
    margin-top: 16px;
  }
  html.light-theme .frost-card {
    padding: 16px 16px 14px;
    min-height: 0;
  }
  html.light-theme .frost-card p {
    font-size: 0.88rem;
  }

  /* Tapes — compact, no sideways page scroll */
  html.light-theme .home-landing .home-tape {
    margin-top: 10px;
    width: 100%;
    max-width: 100vw;
    overflow: hidden;
  }
  html.light-theme .marquee-wrap,
  html.light-theme .tech-tape-wrap {
    padding: 10px 0;
    border-radius: 0;
  }
  html.light-theme .marquee-track {
    gap: 22px;
    font-size: 0.58rem;
    letter-spacing: 0.14em;
  }
  html.light-theme .tech-item {
    padding: 2px 14px;
    gap: 8px;
  }
  html.light-theme .tech-item img {
    width: 22px;
    height: 22px;
  }
  html.light-theme .tech-item span {
    font-size: 0.58rem;
  }

  /* Header / logo brand on narrow screens */
  html.light-theme .header,
  html.light-theme .header.scrolled {
    padding-top: calc(12px + env(safe-area-inset-top, 0px));
    padding-bottom: 12px;
  }
  html.light-theme .logo-mark-img {
    width: 36px;
    height: 40px;
  }
  html.light-theme .logo-title {
    font-size: 0.82rem;
    letter-spacing: 0.06em;
  }
  html.light-theme .logo-sub {
    font-size: 0.45rem;
  }
  html.light-theme .logo-text-wrap {
    min-width: 0;
    max-width: min(46vw, 190px);
  }
  html.light-theme .logo-title,
  html.light-theme .logo-sub {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  /* Lighter blur on phones for smoother scroll */
  html.light-theme .hero-shell,
  html.light-theme .frost-card,
  html.light-theme .marquee-wrap,
  html.light-theme .tech-tape-wrap {
    backdrop-filter: blur(12px) saturate(140%);
    -webkit-backdrop-filter: blur(12px) saturate(140%);
  }

  html.light-theme .contact-section .contact-grid {
    padding: 18px 14px;
    border-radius: 16px;
  }
  html.light-theme .footer-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

@media (max-width: 480px) {
  html.light-theme .home-landing {
    padding: calc(64px + env(safe-area-inset-top, 0px)) 0 16px;
  }
  html.light-theme .hero-shell {
    padding: 12px 10px 14px;
    border-radius: 16px;
  }
  html.light-theme .hero-visual { min-height: 170px; }
  html.light-theme .qe-stage { width: min(200px, 68vw); }
  html.light-theme .qe-logo-img {
    width: min(168px, 54vw);
    max-height: 190px;
  }
  html.light-theme .glitch-line {
    font-size: clamp(1.65rem, 9.2vw, 2.5rem);
    white-space: nowrap;
  }
  html.light-theme .hero-badge {
    font-size: 0.58rem;
    letter-spacing: 0.04em;
    padding: 6px 10px;
  }
  html.light-theme .hero-sub {
    font-size: 0.9rem;
    margin-bottom: 16px;
  }
  html.light-theme .frost-card-icon {
    width: 36px;
    height: 36px;
    font-size: 0.95rem;
  }
  html.light-theme .logo-sub { display: none; }
  html.light-theme .logo-text-wrap { max-width: min(42vw, 150px); }
}

/* ═══════════════════════════════════════════════════════════════
   OBSIDIAN CYAN GLASS — Theme B home layout (dark theme)
   Same structure as light Theme B; dark glass + cyan accents
═══════════════════════════════════════════════════════════════ */

html:not(.light-theme) .frost-sky {
  display: block;
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    radial-gradient(ellipse 80% 50% at 70% 20%, rgba(0, 140, 255, 0.16), transparent 55%),
    radial-gradient(ellipse 60% 40% at 20% 80%, rgba(0, 220, 255, 0.08), transparent 50%),
    linear-gradient(180deg, #07070d 0%, #0a0e1a 45%, #07070d 100%);
}

html:not(.light-theme) body {
  --font-display: 'Outfit', sans-serif;
  --font-body: 'Outfit', sans-serif;
  background: #07070d;
  font-family: 'Outfit', sans-serif;
}

html:not(.light-theme) .hero-sub,
html:not(.light-theme) .nav-link,
html:not(.light-theme) .btn {
  font-family: 'Outfit', sans-serif;
}

/* Ghost buttons were nearly invisible on the dark background */
html:not(.light-theme) .btn-ghost {
  color: #cfe8ff;
  border: 1px solid rgba(0, 200, 255, 0.35);
  background: rgba(0, 168, 255, 0.07);
  border-radius: 999px;
}
html:not(.light-theme) .btn-ghost:hover {
  color: #00d4ff;
  border-color: rgba(0, 220, 255, 0.6);
  background: rgba(0, 168, 255, 0.14);
  box-shadow: 0 0 24px rgba(0, 212, 255, 0.25);
}

html:not(.light-theme) .home-landing .hero-3d-canvas,
html:not(.light-theme) .home-landing .hero-canvas {
  opacity: 0.35 !important;
  filter: saturate(0.85) brightness(0.9) !important;
}

html:not(.light-theme) .home-landing .hero-floats,
html:not(.light-theme) .home-landing .hero-noise,
html:not(.light-theme) .home-landing .hero-scroll-indicator {
  display: none !important;
}

html:not(.light-theme) .home-landing .home-tape {
  display: block !important;
  margin-top: 8px;
}

html:not(.light-theme) .home-landing {
  height: auto;
  min-height: 100svh;
  overflow: visible;
  padding: 110px 0 48px;
  display: block;
}

html:not(.light-theme) .frost-hero {
  flex: none;
  height: auto;
  min-height: 0;
  align-items: stretch;
  justify-content: flex-start;
  text-align: left;
  padding: 0;
  overflow: visible;
}

html:not(.light-theme) .hero-shell {
  padding: 36px 40px;
  border-radius: 28px;
  background: rgba(14, 16, 32, 0.72);
  border: 1px solid rgba(0, 200, 255, 0.18);
  box-shadow:
    0 24px 80px rgba(0, 0, 0, 0.45),
    0 0 0 1px rgba(0, 168, 255, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(28px) saturate(160%);
  -webkit-backdrop-filter: blur(28px) saturate(160%);
}

html:not(.light-theme) .hero-split {
  display: flex;
  flex-wrap: nowrap;
  justify-content: space-between;
  align-items: center;
  gap: clamp(1.5rem, 3vw, 3rem);
  min-height: min(72vh, 760px);
  width: 100%;
  max-width: none;
  margin: 0;
}

html:not(.light-theme) .hero-content {
  flex: 1 1 58%;
  max-width: none;
  width: auto;
  min-width: 0;
  margin: 0;
  padding: 12px 8px 12px 8px;
  border: none;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-radius: 0;
  text-align: left;
  align-items: flex-start;
}

html:not(.light-theme) .hero-badge {
  margin-bottom: 28px;
  background: rgba(0, 168, 255, 0.1);
  border-color: rgba(0, 200, 255, 0.28);
  color: #7ddcff;
  font-size: 0.85rem;
  padding: 10px 18px;
}

html:not(.light-theme) .hero-title { margin-bottom: 28px; }

html:not(.light-theme) .home-landing .glitch-line {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(3.6rem, 8.2vw, 7.4rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 0.96;
  color: #f2f6ff;
  text-shadow: none;
}

html:not(.light-theme) .home-landing .glitch-line::before,
html:not(.light-theme) .home-landing .glitch-line::after { display: none !important; }

html:not(.light-theme) .home-landing .glitch-line.accent {
  color: #00d4ff;
  text-shadow: 0 0 40px rgba(0, 212, 255, 0.45);
  background: none;
  -webkit-background-clip: unset;
  background-clip: unset;
  -webkit-text-fill-color: unset;
}

html:not(.light-theme) .hero-sub {
  max-width: 40rem;
  margin: 0 0 40px;
  font-size: clamp(1.2rem, 1.7vw, 1.55rem);
  line-height: 1.55;
  color: #9aa8c0;
}

html:not(.light-theme) .hero-cta {
  justify-content: flex-start;
  gap: 16px;
  flex-wrap: wrap;
}

html:not(.light-theme) .hero-cta .btn {
  border-radius: 999px;
  padding: 18px 36px;
  font-family: 'Outfit', sans-serif;
  letter-spacing: 0.04em;
  font-size: 0.92rem;
  min-height: 56px;
}

html:not(.light-theme) .hero-cta .btn-outline {
  color: #e8f4ff !important;
  border-color: rgba(0, 200, 255, 0.4) !important;
  background: rgba(0, 168, 255, 0.08);
}

html:not(.light-theme) .hero-cta .btn-outline:hover {
  background: rgba(0, 168, 255, 0.16);
  border-color: rgba(0, 220, 255, 0.6) !important;
}

html:not(.light-theme) .btn-arrow {
  margin-left: 6px;
  font-size: 1.05em;
  line-height: 1;
}

html:not(.light-theme) .hero-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  min-height: 520px;
  width: min(560px, 44%);
}

html:not(.light-theme) .qe-stage {
  position: relative;
  width: min(560px, 100%);
  aspect-ratio: 1 / 1.1;
  display: grid;
  place-items: center;
  isolate: isolate;
}

html:not(.light-theme) .qe-stage::before {
  content: "";
  position: absolute;
  inset: 10% 5% 18%;
  background:
    radial-gradient(circle at 70% 28%, rgba(0, 200, 255, 0.2), transparent 34%),
    radial-gradient(circle at 35% 60%, rgba(0, 120, 255, 0.12), transparent 40%);
  filter: blur(2px);
  z-index: 0;
  pointer-events: none;
}

html:not(.light-theme) .qe-ring {
  position: absolute;
  left: 50%;
  bottom: 6%;
  border-radius: 50%;
  border: 1.5px solid rgba(0, 200, 255, 0.3);
  box-shadow:
    0 0 18px rgba(0, 200, 255, 0.2),
    inset 0 0 18px rgba(0, 168, 255, 0.12);
  transform: translateX(-50%) scaleY(0.34);
  transform-origin: center;
  animation: qePulse 6s ease-in-out infinite;
  z-index: 1;
}
html:not(.light-theme) .qe-ring-1 { width: 92%; height: 92%; animation-delay: 0s; opacity: 0.55; }
html:not(.light-theme) .qe-ring-2 { width: 74%; height: 74%; animation-delay: 0.35s; border-color: rgba(0, 200, 255, 0.36); }
html:not(.light-theme) .qe-ring-3 { width: 56%; height: 56%; animation-delay: 0.7s; border-color: rgba(0, 210, 255, 0.42); }
html:not(.light-theme) .qe-ring-4 { width: 38%; height: 38%; animation-delay: 1.05s; border-color: rgba(0, 230, 255, 0.55); }

html:not(.light-theme) .qe-emblem { display: none; }

html:not(.light-theme) .qe-logo-img {
  position: relative;
  z-index: 3;
  width: min(460px, 92%);
  height: auto;
  max-height: 520px;
  display: block;
  margin-bottom: 8%;
  animation: qeFloat 4.5s ease-in-out infinite;
  filter:
    drop-shadow(0 22px 40px rgba(0, 0, 0, 0.5))
    drop-shadow(0 0 28px rgba(0, 230, 255, 0.4));
  object-fit: contain;
  object-position: center;
  background: transparent;
  overflow: visible;
}

html:not(.light-theme) .qe-floor-glow {
  position: absolute;
  bottom: 4%;
  left: 50%;
  width: 78%;
  height: 22%;
  transform: translateX(-50%);
  background: radial-gradient(ellipse, rgba(0, 200, 255, 0.5), rgba(0, 140, 255, 0.15) 42%, transparent 72%);
  filter: blur(12px);
  z-index: 1;
  pointer-events: none;
}

html:not(.light-theme) .frost-features {
  display: none !important;
}

html:not(.light-theme) .frost-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 18px 16px 20px;
  min-height: 148px;
  border-radius: 18px;
  background: rgba(18, 22, 42, 0.72);
  border: 1px solid rgba(0, 200, 255, 0.16);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  color: #eef4ff;
  transition: transform 0.25s var(--ease), box-shadow 0.25s, border-color 0.25s;
}

html:not(.light-theme) .frost-card:hover {
  transform: translateY(-4px);
  border-color: rgba(0, 220, 255, 0.45);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45), 0 0 24px rgba(0, 200, 255, 0.12);
}

html:not(.light-theme) .frost-card-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 168, 255, 0.14);
  color: #00d4ff;
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 4px;
}

html:not(.light-theme) .frost-card strong {
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #f2f6ff;
}

html:not(.light-theme) .frost-card p {
  font-size: 0.84rem;
  line-height: 1.4;
  color: #93a0b8;
  margin: 0;
}

html:not(.light-theme) .frost-card-go {
  position: absolute;
  right: 14px;
  bottom: 14px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid rgba(0, 200, 255, 0.35);
  color: #00d4ff;
  display: grid;
  place-items: center;
  font-size: 0.9rem;
}

html:not(.light-theme) .home-landing .home-tape {
  border-radius: 0;
}

html:not(.light-theme) .marquee-wrap {
  background: rgba(10, 12, 24, 0.72) !important;
  border-top: 1px solid rgba(0, 200, 255, 0.12) !important;
  border-bottom: 1px solid rgba(0, 200, 255, 0.08);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
}

html:not(.light-theme) .tech-tape-wrap {
  background: rgba(12, 14, 28, 0.78) !important;
  border-bottom: 1px solid rgba(0, 200, 255, 0.12) !important;
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
}

html:not(.light-theme) .nav-link.active-page::before {
  background: rgba(0, 168, 255, 0.16);
  border-color: rgba(0, 200, 255, 0.35);
  box-shadow: 0 0 18px rgba(0, 200, 255, 0.2);
}

@media (max-width: 1024px) {
  html:not(.light-theme) .hero-split {
    flex-direction: column;
    gap: 18px;
    max-width: none;
  }
  html:not(.light-theme) .hero-visual {
    min-height: 240px;
    order: -1;
    width: 100%;
  }
  html:not(.light-theme) .frost-features { grid-template-columns: repeat(2, 1fr); }
  html:not(.light-theme) .hero-content {
    text-align: center;
    padding: 4px 0 0;
    align-items: center;
    max-width: none;
    width: 100%;
  }
  html:not(.light-theme) .hero-sub { margin-left: auto; margin-right: auto; }
  html:not(.light-theme) .hero-cta { justify-content: center; }
}

@media (max-width: 768px) {
  html:not(.light-theme) .header,
  html:not(.light-theme) .header.scrolled {
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    transform: none !important;
    border-radius: 0 !important;
    background: rgba(8, 10, 20, 0.94) !important;
    border: none !important;
    border-bottom: 1px solid rgba(0, 200, 255, 0.18) !important;
    padding-top: calc(12px + env(safe-area-inset-top, 0px));
    padding-bottom: 12px;
  }

  html:not(.light-theme) .home-landing {
    padding: calc(72px + env(safe-area-inset-top, 0px)) 0 calc(20px + env(safe-area-inset-bottom, 0px));
    min-height: 0;
    height: auto;
    overflow-x: clip;
  }
  html:not(.light-theme) .frost-hero {
    height: auto;
    min-height: 0;
    overflow: visible;
    padding-bottom: 3rem;
  }
  html:not(.light-theme) .hero-shell {
    padding: 16px 12px 28px;
    border-radius: 18px;
  }
  html:not(.light-theme) .hero-split {
    gap: 10px;
    min-height: 0;
  }
  html:not(.light-theme) .hero-visual { min-height: 200px; }
  html:not(.light-theme) .qe-stage { width: min(240px, 72vw); }
  html:not(.light-theme) .qe-logo-img {
    width: min(200px, 58vw);
    max-height: 220px;
  }
  html:not(.light-theme) .glitch-line,
  html:not(.light-theme) .home-landing .glitch-line {
    font-size: clamp(1.9rem, 9.2vw, 2.9rem);
    line-height: 1.05;
    white-space: nowrap;
  }
  html:not(.light-theme) .hero-sub {
    font-size: 0.95rem;
    margin-bottom: 20px;
  }
  html:not(.light-theme) .hero-cta {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
  }
  html:not(.light-theme) .hero-cta .btn {
    width: 100%;
    max-width: none;
    justify-content: center;
    min-height: 48px;
  }
  html:not(.light-theme) .hero-cta { margin-bottom: 10px; }
  html:not(.light-theme) .frost-features {
    grid-template-columns: 1fr;
    gap: 10px;
    margin-top: 16px;
  }
  html:not(.light-theme) .frost-card {
    min-height: 0;
    padding: 16px;
  }
  html:not(.light-theme) .marquee-track {
    gap: 22px;
    font-size: 0.58rem;
  }
  html:not(.light-theme) .tech-item { padding: 2px 14px; }
  html:not(.light-theme) .tech-item img { width: 22px; height: 22px; }
  html:not(.light-theme) .tech-item span { font-size: 0.58rem; }
  html:not(.light-theme) .logo-mark-img { width: 36px; height: 40px; }
  html:not(.light-theme) .logo-text-wrap { max-width: min(46vw, 190px); }
  html:not(.light-theme) .logo-title,
  html:not(.light-theme) .logo-sub {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
}

@media (max-width: 480px) {
  html:not(.light-theme) .home-landing {
    padding: calc(64px + env(safe-area-inset-top, 0px)) 0 16px;
  }
  html:not(.light-theme) .hero-shell {
    padding: 12px 10px 14px;
    border-radius: 16px;
  }
  html:not(.light-theme) .qe-stage { width: min(200px, 68vw); }
  html:not(.light-theme) .qe-logo-img {
    width: min(168px, 54vw);
    max-height: 190px;
  }
  html:not(.light-theme) .glitch-line,
  html:not(.light-theme) .home-landing .glitch-line {
    font-size: clamp(1.65rem, 9.2vw, 2.5rem);
    white-space: nowrap;
  }
  html:not(.light-theme) .logo-sub { display: none; }
}

