/* ===================================================
   SKY ROMS — REDESIGNED v2.0
   TZ Labs | Space Grotesk + JetBrains Mono
   =================================================== */

/* ---- TOKENS ---- */
:root {
  --bg: #05080f;
  --bg2: #080d16;
  --surface: #0d131d;
  --surface2: #131c2a;
  --border: rgba(56, 189, 248, 0.1);
  --border2: rgba(56, 189, 248, 0.2);
  --text: #edf5fc;
  --text2: #8aa6c4;
  --primary: #38bdf8;
  --primary2: #60a5fa;
  --hot: #ff6b47;
  --warn: #ffd166;
  --purple: #b07aff;
  --glow-p: rgba(56, 189, 248, 0.15);
  --glow-b: rgba(96, 165, 250, 0.12);
  --radius: 12px;
  --radius2: 20px;
  --shadow: 0 32px 80px rgba(0, 0, 0, 0.6);
  --font: 'Space Grotesk', system-ui, sans-serif;
  --mono: 'JetBrains Mono', monospace;
  color-scheme: dark;
}

/* light mode */
body.light {
  --bg: #f1f6fc;
  --bg2: #e4eef9;
  --surface: #ffffff;
  --surface2: #f4f8fe;
  --border: rgba(2, 132, 199, 0.12);
  --border2: rgba(2, 132, 199, 0.22);
  --text: #091320;
  --text2: #425c7a;
  --primary: #0284c7;
  --primary2: #1d4ed8;
  --hot: #c03a20;
  --glow-p: rgba(2, 132, 199, 0.1);
  --shadow: 0 20px 60px rgba(7, 25, 56, 0.14);
  color-scheme: light;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  overflow-x: clip;
  line-height: 1.6;
}

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

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

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

/* ---- SCROLLBAR ---- */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: var(--bg);
}

::-webkit-scrollbar-thumb {
  background: var(--border2);
  border-radius: 4px;
}

/* ---- BG CANVAS ---- */
#bgCanvas {
  position: fixed;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0.85;
}

body.light #bgCanvas {
  opacity: 0.72;
}

/* ---- CURSOR GLOW ---- */
.cursor-glow {
  position: fixed;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--glow-p) 0%, transparent 70%);
  pointer-events: none;
  z-index: 1;
  transform: translate(-50%, -50%);
  transition: opacity 0.3s;
}

/* ---- LOADER ---- */
.loader {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loader.hidden {
  opacity: 0;
  visibility: hidden;
}

.loader-inner {
  text-align: center;
}

.loader-logo {
  font-family: var(--mono);
  font-size: clamp(28px, 5vw, 48px);
  font-weight: 700;
  color: var(--primary);
  letter-spacing: 4px;
  margin-bottom: 32px;
}

.loader-logo span {
  color: var(--text2);
  font-size: 0.6em;
}

.loader-bar {
  width: min(300px, 70vw);
  height: 3px;
  background: var(--surface2);
  border-radius: 2px;
  overflow: hidden;
  margin: 0 auto 16px;
}

.loader-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--primary), var(--primary2));
  transition: width 0.1s ease;
}

.loader-text {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text2);
  letter-spacing: 1px;
}

/* ---- MONO UTILITY ---- */
.mono {
  font-family: var(--mono);
}

/* ---- HEADER ---- */
header {
  position: fixed;
  top: 0;
  inset-inline: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 0 max(clamp(16px, 4vw, 48px), calc((100% - 1440px) / 2));
  height: 64px;
  border-bottom: 1px solid var(--border);
  background: rgba(5, 7, 9, 0.72);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  transition: background 0.3s;
}

@media (min-width: 1800px) {
  header {
    padding: 0 max(clamp(16px, 4vw, 48px), calc((100% - 1600px) / 2));
  }
}

body.light header {
  background: rgba(241, 246, 252, 0.84);
}

header.scrolled {
  background: rgba(5, 7, 9, 0.9);
}

body.light header.scrolled {
  background: rgba(241, 246, 252, 0.94);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 17px;
  flex-shrink: 0;
  white-space: nowrap;
}

.brand em {
  color: var(--primary);
  font-style: normal;
}

.brand-icon {
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  background: url("assets/sky-logo.png") center / contain no-repeat;
}

nav {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
  justify-content: center;
}

.nav-link {
  padding: 6px 14px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text2);
  transition: color 0.2s, background 0.2s;
}

.nav-link:hover,
.nav-link.active {
  color: var(--text);
  background: var(--surface);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

/* ---- BUTTONS ---- */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 10px 20px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--primary), var(--primary2));
  color: #04111d;
  font-weight: 700;
  font-size: 14px;
  transition: transform 0.2s, box-shadow 0.2s, opacity 0.2s;
  white-space: nowrap;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px var(--glow-p);
  opacity: 0.92;
}

.btn-primary.btn-lg {
  padding: 14px 28px;
  font-size: 16px;
  border-radius: 12px;
}

.btn-primary.btn-sm {
  padding: 8px 16px;
  font-size: 13px;
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 10px 20px;
  border-radius: 10px;
  border: 1px solid var(--border2);
  color: var(--text);
  font-weight: 600;
  font-size: 14px;
  background: var(--surface);
  transition: transform 0.2s, border-color 0.2s, background 0.2s;
  white-space: nowrap;
}

.btn-ghost:hover {
  transform: translateY(-2px);
  border-color: var(--primary);
  background: var(--surface2);
}

.btn-ghost.btn-lg {
  padding: 14px 28px;
  font-size: 16px;
  border-radius: 12px;
}

.btn-ghost.btn-sm {
  padding: 8px 16px;
  font-size: 13px;
}

.theme-toggle {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.2s, transform 0.2s;
}

.theme-toggle:hover {
  border-color: var(--primary);
  transform: rotate(20deg);
}

body:not(.light) .sun {
  display: none;
}

body.light .moon {
  display: none;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 38px;
  height: 38px;
  padding: 9px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--surface);
}

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

/* ---- MOBILE MENU ---- */
.mobile-menu {
  position: fixed;
  top: 64px;
  inset-inline: 0;
  z-index: 999;
  background: rgba(5, 7, 9, 0.95);
  backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--border);
  padding: 20px clamp(16px, 4vw, 52px);
  display: flex;
  flex-direction: column;
  gap: 4px;
  transform: translateY(-100%);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.mobile-menu.open {
  transform: none;
  opacity: 1;
  pointer-events: auto;
}

.mobile-menu a {
  padding: 12px 16px;
  border-radius: 8px;
  font-weight: 600;
  color: var(--text2);
  transition: color 0.2s, background 0.2s;
}

.mobile-menu a:hover {
  color: var(--text);
  background: var(--surface);
}

.mobile-menu .btn-primary {
  margin-top: 8px;
  justify-content: center;
}

/* ---- CONTAINER ---- */
.container {
  width: min(1440px, calc(100% - clamp(32px, 8vw, 96px)));
  margin: 0 auto;
}

@media (min-width: 1800px) {
  .container {
    width: min(1600px, calc(100% - clamp(32px, 8vw, 96px)));
  }
}

/* ---- SECTION BASE ---- */
.section {
  padding: clamp(60px, 8vw, 100px) 0;
  position: relative;
}

.section>.container,
.footer>.container {
  position: relative;
  z-index: 2;
}

.section-label {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 12px;
}

.section-title {
  font-size: clamp(26px, 4vw, 44px);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 16px;
}

.section-title em {
  color: var(--primary);
  font-style: normal;
}

.section-desc {
  font-size: 16px;
  color: var(--text2);
  max-width: 520px;
  margin-bottom: 48px;
  line-height: 1.7;
}

/* ---- REVEAL ANIMATIONS ---- */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

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

/* ---- HERO ---- */
.hero {
  min-height: max(580px, 100svh);
  padding-top: clamp(18px, 2.8vh, 48px);
  padding-bottom: clamp(72px, 9vh, 102px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(20px, 3vw, 48px);
  padding-inline: max(clamp(16px, 4vw, 48px), calc((100% - 1440px) / 2));
  position: relative;
  overflow: hidden;
  background: radial-gradient(ellipse 72% 78% at 72% 52%, rgba(28, 38, 78, 0.24), transparent 74%);
}

body.light .hero {
  background: radial-gradient(ellipse 72% 78% at 72% 52%, rgba(14, 165, 233, 0.06), transparent 74%);
}

@media (min-width: 1800px) {
  .hero {
    padding-inline: max(clamp(16px, 4vw, 48px), calc((100% - 1600px) / 2));
  }
}

/* ---- HERO BG IMAGE ---- */
.hero::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: auto;
  width: min(100%, 152svh);
  background: url('assets/sky-hero-bg-074c70f4e6.jpg') right center / cover no-repeat;
  opacity: 0.94;
  -webkit-mask-image:
    linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, 0.42) 22%, #000 40%),
    linear-gradient(180deg, #000 0%, #000 94%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image:
    linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, 0.42) 22%, #000 40%),
    linear-gradient(180deg, #000 0%, #000 94%, transparent 100%);
  mask-composite: intersect;
  pointer-events: none;
  z-index: 0;
}

/* Overlay so text stays readable over bg image while seamlessly fading into page */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom,
      rgba(5, 7, 9, 0) 93%,
      var(--bg) 100%),
    linear-gradient(90deg,
      rgba(5, 7, 9, 0.92) 0%,
      rgba(5, 7, 9, 0.62) 40%,
      rgba(5, 7, 9, 0.06) 66%,
      rgba(5, 7, 9, 0) 100%);
  pointer-events: none;
  z-index: 0;
}

body.light .hero::before {
  opacity: 0.96;
  filter: contrast(1.08) brightness(1.03) saturate(1.1);
  -webkit-mask-image:
    linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, 0.24) 24%, rgba(0, 0, 0, 0.88) 40%, #000 54%),
    linear-gradient(180deg, #000 0%, #000 93%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image:
    linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, 0.24) 24%, rgba(0, 0, 0, 0.88) 40%, #000 54%),
    linear-gradient(180deg, #000 0%, #000 93%, transparent 100%);
  mask-composite: intersect;
}

body.light .hero::after {
  background:
    linear-gradient(to bottom,
      rgba(241, 246, 252, 0) 93%,
      var(--bg) 100%),
    linear-gradient(90deg,
      rgba(241, 246, 252, 0.98) 0%,
      rgba(241, 246, 252, 0.92) 34%,
      rgba(241, 246, 252, 0.5) 50%,
      rgba(241, 246, 252, 0) 68%);
}

@media (max-width: 960px) {
  .hero {
    min-height: clamp(580px, 94svh, 860px);
    padding-top: 76px;
    padding-bottom: clamp(128px, 16vh, 148px);
  }

  .hero::before {
    left: 0;
    width: 100%;
    background: url('assets/sky-hero-bg-074c70f4e6.jpg') 74% 54% / cover no-repeat;
    -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 90%, transparent 100%);
    mask-image: linear-gradient(180deg, #000 0%, #000 90%, transparent 100%);
  }

  .hero::after {
    background:
      linear-gradient(to bottom,
        rgba(5, 7, 9, 0) 90%,
        var(--bg) 100%),
      linear-gradient(90deg,
        rgba(5, 7, 9, 0.9) 0%,
        rgba(5, 7, 9, 0.68) 48%,
        rgba(5, 7, 9, 0.16) 84%,
        rgba(5, 7, 9, 0) 100%);
  }

  body.light .hero::before {
    opacity: 0.62;
  }

  body.light .hero::after {
    background:
      linear-gradient(to bottom,
        rgba(241, 246, 252, 0.72) 0%,
        rgba(241, 246, 252, 0.52) 55%,
        rgba(241, 246, 252, 0.68) 90%,
        var(--bg) 100%);
  }
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 680px;
  width: 100%;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px;
  border: 1px solid var(--border2);
  border-radius: 999px;
  background: var(--surface);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 1px;
  color: var(--text2);
  margin-bottom: 24px;
}

.eyebrow-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 8px var(--primary);
  animation: pulse 2s infinite;
}

.eyebrow-tag {
  background: var(--primary);
  color: #04111d;
  font-weight: 700;
  font-size: 9px;
  padding: 2px 7px;
  border-radius: 4px;
  letter-spacing: 2px;
}

.hero-title {
  font-size: clamp(32px, min(5.2vw, 7.6vh), 68px);
  font-weight: 800;
  line-height: 1.08;
  margin-bottom: clamp(12px, 2vh, 22px);
  letter-spacing: -0.02em;
}

.gradient-text {
  background: linear-gradient(135deg, var(--primary), var(--primary2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-desc {
  font-size: clamp(15px, 1.8vw, 18px);
  color: var(--text2);
  max-width: 460px;
  line-height: 1.65;
  margin-bottom: clamp(16px, 2.8vh, 34px);
}

.hero-cta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: clamp(20px, 3.6vh, 46px);
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 24px;
}

.stat-item {
  text-align: center;
}

.stat-num {
  font-size: clamp(26px, 3vw, 36px);
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.stat-num[data-count-big] {
  min-width: 9.2ch;
}

.stat-num small {
  font-size: 0.55em;
  font-weight: 600;
}

.stat-label {
  font-size: 11px;
  color: var(--text2);
  margin-top: 4px;
  letter-spacing: 0.5px;
}

.stat-divider {
  width: 1px;
  height: 40px;
  background: var(--border);
}

/* ---- HERO VISUAL / 3D PHONE ---- */
.hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
}

.phone-wrapper {
  position: relative;
  width: min(300px, 80vw);
}

#phoneCanvas {
  position: absolute;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
  pointer-events: none;
}

/* CSS fallback phone */
.phone-css {
  position: relative;
  width: 100%;
  padding-top: 210%;
}

.phone-frame {
  position: absolute;
  inset: 0;
  border-radius: 36px;
  border: 2px solid var(--border2);
  background: var(--surface);
  box-shadow: 0 60px 120px rgba(0, 0, 0, 0.8), inset 0 0 0 1px rgba(255, 255, 255, 0.04);
  overflow: hidden;
  animation: phoneFloat 5s ease-in-out infinite;
  transform-style: preserve-3d;
}

.phone-punch {
  position: absolute;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #000;
  border: 1.5px solid rgba(255, 255, 255, 0.1);
  z-index: 5;
}

.phone-screen-inner {
  position: absolute;
  inset: 8px;
  border-radius: 30px;
  background: linear-gradient(160deg, #060c18, #0a1220);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 36px 14px 18px;
}

.screen-status {
  width: 100%;
  display: flex;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 9px;
  color: var(--primary);
  opacity: 0.7;
}

.screen-orbit {
  position: relative;
  width: 110px;
  height: 110px;
  flex-shrink: 0;
}

.orbit-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px dashed rgba(56, 189, 248, 0.25);
  animation: spinOrbit 10s linear infinite;
}

.orbit-label {
  position: absolute;
  font-size: 8px;
  font-family: var(--mono);
  color: var(--primary);
  background: var(--surface);
  padding: 2px 5px;
  border-radius: 3px;
  white-space: nowrap;
  transform: translate(-50%, -50%);
}

.orbit-label[style*="--i:0"] {
  top: 0;
  left: 50%;
}

.orbit-label[style*="--i:1"] {
  top: 50%;
  left: 100%;
}

.orbit-label[style*="--i:2"] {
  top: 100%;
  left: 50%;
}

.orbit-label[style*="--i:3"] {
  top: 50%;
  left: 0%;
}

.screen-core {
  text-align: center;
}

.core-chip {
  font-family: var(--mono);
  font-size: 9px;
  color: var(--primary2);
  letter-spacing: 2px;
  margin-bottom: 4px;
}

.core-text {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
}

.core-sub {
  font-size: 10px;
  color: var(--text2);
}

.screen-bars {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.bar-row {
  display: flex;
  align-items: center;
  gap: 6px;
}

.bar-row span {
  font-size: 8px;
  font-family: var(--mono);
  color: var(--text2);
  width: 24px;
}

.bar {
  flex: 1;
  height: 3px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 2px;
  overflow: hidden;
}

.bar div {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--primary2));
  border-radius: 2px;
}

.phone-btn-r {
  position: absolute;
  right: -3px;
  top: 30%;
  height: 60px;
  width: 3px;
  background: var(--surface2);
  border-radius: 2px 0 0 2px;
}

.phone-btn-l1 {
  position: absolute;
  left: -3px;
  top: 22%;
  height: 40px;
  width: 3px;
  background: var(--surface2);
  border-radius: 0 2px 2px 0;
}

.phone-btn-l2 {
  position: absolute;
  left: -3px;
  top: 37%;
  height: 60px;
  width: 3px;
  background: var(--surface2);
  border-radius: 0 2px 2px 0;
}

.phone-glow {
  position: absolute;
  inset: -20%;
  border-radius: 50%;
  background: radial-gradient(circle, var(--glow-p) 0%, transparent 60%);
  pointer-events: none;
  animation: phoneGlow 4s ease-in-out infinite;
}

.phone-shadow {
  position: absolute;
  bottom: -8%;
  left: 50%;
  transform: translateX(-50%);
  width: 70%;
  height: 20px;
  background: rgba(0, 0, 0, 0.6);
  filter: blur(16px);
  border-radius: 50%;
}

/* floating badges */
.hero-visual {
  min-width: 0;
  position: relative;
  flex: 1 1 320px;
  min-height: clamp(380px, 56vh, 520px);
  padding-inline: clamp(12px, 2vw, 32px);
}

.float-badge {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(14, 18, 24, 0.85);
  backdrop-filter: blur(16px);
  white-space: nowrap;
  pointer-events: none;
}

body.light .float-badge {
  background: rgba(255, 255, 255, 0.88);
  border-color: rgba(2, 132, 199, 0.25);
  box-shadow: 0 8px 24px rgba(7, 30, 62, 0.12);
}

.badge-icon {
  font-size: 20px;
}

.badge-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
}

.badge-sub {
  font-size: 10px;
  color: var(--text2);
}

.badge-1 {
  top: 8%;
  right: 2%;
  animation: floatY 4s ease-in-out infinite;
}

.badge-2 {
  top: 44%;
  right: 0;
  animation: floatY 5s ease-in-out infinite 1s;
}

.badge-3 {
  bottom: 8%;
  right: 4%;
  animation: floatY 4.5s ease-in-out infinite 0.5s;
}

.scroll-hint {
  position: absolute;
  bottom: clamp(16px, 2.6vh, 28px);
  left: 50%;
  transform: translateX(-50%);
  z-index: 4;
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  gap: 11px;
  padding: 10px 22px;
  border-radius: 999px;
  background: rgba(6, 15, 13, 0.72);
  border: 1px solid rgba(56, 189, 248, 0.42);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.48);
  color: #f0f9ff;
  font-size: clamp(14px, 1.12vw, 16px);
  font-weight: 600;
  letter-spacing: 0.04em;
  white-space: nowrap;
  pointer-events: none;
}

body.light .scroll-hint {
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(2, 132, 199, 0.36);
  box-shadow: 0 8px 24px rgba(7, 25, 52, 0.14);
  color: #091d36;
}

.scroll-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  flex-shrink: 0;
  background: var(--primary);
  box-shadow: 0 0 12px var(--primary);
  animation: scrollBounceDot 1.5s ease-in-out infinite;
}

@keyframes scrollBounceDot {

  0%,
  100% {
    transform: translateY(-2.5px);
  }

  50% {
    transform: translateY(2.5px);
  }
}

/* ---- SPECS ---- */
.spec-section {
  background: transparent;
  padding-bottom: clamp(28px, 3.6vw, 44px);
}

body.light .spec-section {
  background: transparent;
}

.spec-grid,
.spec-strip {
  display: grid;
  grid-template-columns: minmax(200px, 1.35fr) repeat(5, minmax(0, 1fr));
  gap: 0;
  margin-bottom: clamp(18px, 2.4vw, 28px);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius2);
  overflow: hidden;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.34);
}

body.light .spec-grid,
body.light .spec-strip {
  box-shadow: 0 10px 26px rgba(7, 28, 56, 0.08);
}

@media (min-width: 640px) and (max-width: 1119px) {

  .spec-grid,
  .spec-strip {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 639px) {

  .spec-grid,
  .spec-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.spec-item {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: clamp(16px, 2vw, 22px) clamp(14px, 1.8vw, 20px);
  box-shadow: inset -1px 0 0 var(--border), inset 0 -1px 0 var(--border);
  transition: background-color 0.2s ease;
  min-width: 0;
}

.spec-item:hover {
  background: rgba(56, 189, 248, 0.04);
}

body.light .spec-item:hover {
  background: rgba(2, 132, 199, 0.04);
}

.spec-item-head {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 10px;
}

.spec-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  color: var(--primary);
  flex-shrink: 0;
}

.spec-icon svg {
  width: 17px;
  height: 17px;
}

.spec-label {
  font-size: 10.5px;
  font-family: var(--mono);
  color: var(--text2);
  letter-spacing: 0.09em;
  text-transform: uppercase;
  font-weight: 600;
}

.spec-value {
  font-size: clamp(14.5px, 1.25vw, 17px);
  font-weight: 700;
  line-height: 1.25;
  color: var(--text);
  margin-bottom: 4px;
  overflow-wrap: break-word;
}

.spec-sub {
  font-size: 12px;
  color: var(--text2);
  line-height: 1.35;
}

.antutu-block {
  text-align: center;
  padding: clamp(20px, 2.8vw, 34px) clamp(20px, 3.2vw, 40px);
  background: radial-gradient(ellipse 68% 72% at 50% 48%, rgba(56, 189, 248, 0.09), transparent 72%), var(--surface);
  border-radius: var(--radius2);
  border: 1px solid var(--border);
}

body.light .antutu-block {
  background: radial-gradient(ellipse 68% 72% at 50% 48%, rgba(2, 132, 199, 0.07), transparent 72%), var(--surface);
}

.antutu-label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 3px;
  color: var(--text2);
  margin-bottom: 10px;
}

.antutu-num {
  display: inline-flex;
  align-items: baseline;
  justify-content: center;
  flex-wrap: nowrap;
  gap: clamp(8px, 1.8vw, 22px);
  max-width: 100%;
  font-size: clamp(21px, 4.4vw, 66px);
  font-weight: 800;
  color: var(--primary);
  text-shadow: 0 0 28px rgba(56, 189, 248, 0.2);
  font-variant-numeric: tabular-nums;
  line-height: 1.05;
}

body.light .antutu-num {
  text-shadow: 0 2px 18px rgba(2, 132, 199, 0.14);
}

.antutu-val {
  display: inline-block;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.antutu-val-in {
  min-width: 8.6ch;
  text-align: right;
}

.antutu-val-m {
  min-width: 11.4ch;
  text-align: left;
}

@media (max-width: 440px) {
  .antutu-num {
    font-size: clamp(18px, 5vw, 24px);
    gap: 8px;
  }

  .antutu-val-in {
    min-width: 8ch;
  }

  .antutu-val-m {
    min-width: 10.6ch;
  }
}

.antutu-or {
  display: inline-flex;
  align-items: center;
  align-self: center;
  font-family: var(--font);
  font-weight: 500;
  font-size: 0.42em;
  letter-spacing: 0.08em;
  color: var(--text2);
  line-height: 1;
  padding-inline: clamp(2px, 0.5vw, 6px);
  transform: translateY(-0.04em);
  flex-shrink: 0;
}

.antutu-sub {
  font-size: 13.5px;
  color: var(--text);
  opacity: 0.78;
  margin-top: 10px;
}

/* ---- AI RECOMMENDER ---- */
.ai-section {
  background: transparent;
  padding: clamp(14px, 2vw, 26px) 0;
  text-align: center;
}

.ai-section .section-title {
  text-align: center;
  font-size: clamp(32px, 4.2vw, 52px);
  margin-bottom: 12px;
}

.ai-section .section-desc {
  text-align: center;
  max-width: min(640px, 100%);
  margin-inline: auto;
  margin-bottom: clamp(18px, 2.4vw, 28px);
  color: var(--text2);
  font-size: clamp(15px, 1.35vw, 17px);
  line-height: 1.65;
  text-wrap: balance;
  overflow-wrap: break-word;
}

.ai-panel .ai-options {
  padding: 0;
  justify-content: center;
  gap: clamp(10px, 1.3vw, 16px);
}

#videos.section {
  padding-top: clamp(32px, 4vw, 48px);
}

.ai-panel {
  background: transparent;
  border: none;
  border-radius: 0;
  overflow: visible;
}

.ai-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 24px;
  border-bottom: 1px solid var(--border);
  background: var(--surface2);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 1px;
  color: var(--text2);
}

.ai-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 8px var(--primary);
  animation: pulse 2s infinite;
}

.ai-questions {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.ai-question {
  display: none;
}

.ai-question.active {
  display: block;
}

.q-label {
  font-weight: 600;
  font-size: 15px;
  margin-bottom: 14px;
}

.ai-options {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.ai-opt {
  padding: 10px 18px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface2);
  color: var(--text2);
  font-size: 14px;
  font-weight: 600;
  transition: transform 0.2s, border-color 0.2s, color 0.2s, background 0.2s;
}

.ai-opt:hover {
  transform: translateY(-2px);
  border-color: var(--primary);
  color: var(--primary);
}

.ai-opt.selected {
  border-color: var(--primary);
  background: rgba(56, 189, 248, 0.1);
  color: var(--primary);
}

.ai-result-box {
  padding: 24px;
  border-top: 1px solid var(--border);
  display: none;
}

.ai-result-box.show {
  display: block;
}

.ai-thinking {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text2);
  font-size: 14px;
}

.ai-spinner {
  width: 20px;
  height: 20px;
  border: 2px solid var(--border);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

.ai-result {
  display: none;
}

.ai-result.show {
  display: block;
}

.ai-result-name {
  font-size: 22px;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 8px;
}

.ai-result-why {
  font-size: 14px;
  color: var(--text2);
  line-height: 1.7;
  margin-bottom: 16px;
}

.ai-result-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.ai-result-tag {
  padding: 4px 12px;
  border-radius: 6px;
  border: 1px solid var(--border2);
  font-size: 12px;
  font-family: var(--mono);
  color: var(--text);
}

/* ---- VIDEOS ---- */
.video-section {
  background: rgba(12, 18, 22, 0.56);
}

body.light .video-section {
  background: rgba(220, 234, 227, 0.58);
}

.video-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.video-side {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.video-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius2);
  overflow: hidden;
  transition: transform 0.25s, border-color 0.25s;
}

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

.video-wrap {
  position: relative;
  padding-top: 56.25%;
}

.video-wrap iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.video-info {
  padding: 14px 18px;
}

.video-tag {
  display: inline-block;
  padding: 3px 9px;
  border-radius: 5px;
  background: rgba(56, 189, 248, 0.1);
  border: 1px solid var(--border2);
  color: var(--primary);
  font-size: 11px;
  font-family: var(--mono);
  margin-bottom: 6px;
}

.video-info h3 {
  font-size: 14px;
  font-weight: 600;
}

/* ---- GALLERY ---- */
.gallery-section {
  background: transparent;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 32px;
}

@media (max-width: 1199px) {
  .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.gallery-card {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: var(--radius2);
  border: 1px solid var(--border);
  aspect-ratio: 16/10;
  background: var(--surface);
}

.gallery-card.tall {
  grid-row: span 2;
  aspect-ratio: auto;
}

.gallery-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease, opacity 0.4s ease;
  opacity: 0;
}

.gallery-card img.loaded {
  opacity: 1;
}

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

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(5, 7, 9, 0.9) 0%, transparent 55%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 16px;
  opacity: 0;
  transition: opacity 0.3s;
}

.gallery-card:hover .gallery-overlay {
  opacity: 1;
}

.gallery-tag {
  font-size: 10px;
  font-family: var(--mono);
  color: var(--primary);
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.gallery-name {
  font-size: 15px;
  font-weight: 700;
}

.gallery-arrow {
  position: absolute;
  top: 12px;
  right: 12px;
  font-size: 20px;
}

.gallery-cta {
  text-align: center;
}

/* ---- COMPARE ---- */
.compare-section {
  background: transparent;
}

body.light .compare-section {
  background: transparent;
}

.compare-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
  align-items: stretch;
}

.compare-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  height: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius2);
  padding: 24px 26px 26px;
  transition: transform 0.25s, border-color 0.25s;
}

.compare-accent {
  position: absolute;
  top: 1.5px;
  left: 16px;
  right: 16px;
  height: 3px;
  border-radius: 0 0 4px 4px;
  background: linear-gradient(90deg, var(--primary), var(--primary2));
  opacity: 0.92;
  pointer-events: none;
}

.compare-voltage .compare-accent {
  background: linear-gradient(90deg, #8b5cf6, #3b82f6);
}

.compare-crdroid .compare-accent {
  background: linear-gradient(90deg, #3b82f6, #38bdf8);
}

.compare-infinityx .compare-accent {
  background: linear-gradient(90deg, #6366f1, #22d3ee);
}

.compare-card:hover {
  transform: translateY(-4px);
}

.compare-card.winner {
  border-color: var(--primary);
  background: linear-gradient(160deg, rgba(56, 189, 248, 0.06), var(--surface));
}

.compare-badge {
  display: inline-block;
  padding: 5px 12px;
  border-radius: 7px;
  background: rgba(56, 189, 248, 0.1);
  border: 1px solid var(--border2);
  font-size: 11px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 14px;
}

.compare-badge.alt {
  background: rgba(255, 107, 71, 0.1);
  border-color: rgba(255, 107, 71, 0.3);
  color: var(--hot);
}

.compare-name {
  font-size: clamp(20px, 2vw, 23px);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 6px;
}

.compare-base {
  font-size: 12px;
  color: var(--primary);
  font-family: var(--mono);
  font-weight: 600;
  margin-bottom: 14px;
}

.compare-detail {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text2);
  margin-bottom: 20px;
  flex: 1 1 auto;
}

.compare-card .glass-btn {
  margin-top: auto;
}

.compare-meters {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 24px;
}

.meter-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
}

.meter-row span {
  width: 80px;
  color: var(--text2);
  flex-shrink: 0;
}

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

.meter div {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--primary2));
  border-radius: 2px;
}

.meter-row b {
  width: 28px;
  text-align: right;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--primary);
}

/* ---- FEATURED ROM ---- */
.featured-section {
  background: transparent;
}

.featured-rom {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: clamp(22px, 3.2vw, 44px);
  align-items: center;
  background: radial-gradient(ellipse 68% 82% at 78% 50%, rgba(124, 58, 237, 0.14), rgba(59, 130, 246, 0.07) 52%, transparent 80%), var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius2);
  padding: clamp(22px, 3.2vw, 38px);
  position: relative;
  overflow: hidden;
}

body.light .featured-rom {
  background: radial-gradient(ellipse 68% 82% at 78% 50%, rgba(124, 58, 237, 0.09), rgba(59, 130, 246, 0.05) 52%, transparent 80%), var(--surface);
}

.featured-rom::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.04), transparent 48%, rgba(124, 58, 237, 0.05));
  pointer-events: none;
}

.featured-label {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--primary);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.featured-name {
  font-size: clamp(26px, 3.3vw, 42px);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 12px;
}

.featured-desc {
  font-size: 14.5px;
  color: var(--text2);
  line-height: 1.65;
  margin-bottom: 20px;
  max-width: 440px;
}

.featured-stats {
  display: flex;
  gap: 28px;
  margin-bottom: 24px;
}

.feat-stat {}

.feat-num {
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 800;
  color: var(--primary);
  font-variant-numeric: tabular-nums;
}

.feat-label {
  font-size: 12px;
  color: var(--text2);
  margin-top: 4px;
}

.featured-right {
  position: relative;
}

.featured-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.tag {
  padding: 5px 12px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--surface2);
  font-size: 12px;
  font-weight: 600;
  color: var(--text2);
}

.tag.hot {
  border-color: rgba(255, 107, 71, 0.4);
  color: var(--hot);
  background: rgba(255, 107, 71, 0.1);
}

.tag.new {
  border-color: var(--border2);
  color: var(--primary);
  background: rgba(56, 189, 248, 0.1);
}

.featured-img-wrap {
  border-radius: var(--radius2);
  overflow: hidden;
  background: radial-gradient(ellipse at center, rgba(124, 58, 237, 0.16), rgba(9, 13, 22, 0.94) 76%);
  border: 1px solid rgba(139, 92, 246, 0.24);
  box-shadow: 0 12px 32px rgba(17, 12, 34, 0.45);
}

body.light .featured-img-wrap {
  background: radial-gradient(ellipse at center, rgba(124, 58, 237, 0.08), rgba(241, 246, 252, 0.96) 76%);
  border-color: rgba(109, 40, 217, 0.2);
  box-shadow: 0 10px 26px rgba(45, 25, 90, 0.1);
}

.featured-img-wrap img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: contain;
}

/* ---- GUIDES ---- */
.guides-section {
  background: transparent;
}

body.light .guides-section {
  background: transparent;
}

.guides-section .section-desc {
  margin-bottom: clamp(22px, 2.8vw, 32px);
}

.guides-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}

.guide-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius2);
  padding: 22px 24px;
  position: relative;
  transition: transform 0.25s, border-color 0.25s;
}

.guide-card:hover {
  transform: translateY(-6px);
  border-color: var(--border2);
}

.guide-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.guide-num {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text2);
  letter-spacing: 0.08em;
}

.guide-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 11px;
  background: rgba(56, 189, 248, 0.09);
  border: 1px solid rgba(56, 189, 248, 0.22);
  color: var(--primary);
}

body.light .guide-icon {
  background: rgba(2, 132, 199, 0.08);
  border-color: rgba(2, 132, 199, 0.22);
}

.guide-icon svg {
  width: 20px;
  height: 20px;
}

.guide-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
}

.guide-desc {
  font-size: 13.5px;
  color: var(--text2);
  line-height: 1.6;
  flex: 1;
  margin-bottom: 16px;
}

.guide-arrow {
  font-size: 20px;
  color: var(--primary);
  transition: transform 0.2s;
}

.guide-card:hover .guide-arrow {
  transform: translateX(4px);
}

/* ---- TZ LABS ---- */
.tzlabs-section {
  background: transparent;
  padding: clamp(22px, 3vw, 38px) 0;
}

.tzlabs-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(20px, 3vw, 40px);
  background: linear-gradient(120deg, rgba(7, 89, 133, 0.56) 0%, rgba(2, 132, 199, 0.34) 55%, rgba(3, 105, 161, 0.46) 100%);
  border: 1px solid rgba(56, 189, 248, 0.32);
  border-radius: var(--radius2);
  padding: clamp(26px, 3.2vw, 38px) clamp(24px, 3.8vw, 44px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 14px 36px rgba(0, 0, 0, 0.4);
}

body.light .tzlabs-card {
  background: linear-gradient(120deg, rgba(14, 165, 233, 0.16) 0%, rgba(14, 165, 233, 0.22) 60%, rgba(2, 132, 199, 0.12) 100%);
  border-color: rgba(2, 132, 199, 0.28);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72), 0 10px 28px rgba(7, 30, 62, 0.08);
}

.tzlabs-left {
  flex: 1 1 auto;
  min-width: 0;
}

.tzlabs-card h2 {
  font-size: clamp(21px, 2.5vw, 30px);
  line-height: 1.2;
  margin-bottom: 8px;
}

.tzlabs-card p {
  font-size: 15px;
  color: var(--text);
  opacity: 0.9;
  line-height: 1.65;
  margin-bottom: 0;
  max-width: 66ch;
  overflow-wrap: break-word;
}

.tzlabs-inline-link {
  color: var(--primary);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1.5px;
  overflow-wrap: anywhere;
  transition: color 0.2s ease;
}

.tzlabs-inline-link:hover,
.tzlabs-inline-link:focus-visible {
  color: var(--primary2);
}

.tzlabs-right {
  flex-shrink: 0;
  display: flex;
  align-items: center;
}

@media (max-width: 768px) {
  .tzlabs-card {
    flex-direction: column;
    align-items: stretch;
    gap: 20px;
    padding: 24px 20px;
  }

  .tzlabs-right {
    width: 100%;
  }

  .tzlabs-right .glass-btn {
    width: 100%;
    justify-content: center;
  }
}

.tzlabs-devices {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.tz-device {
  padding: 10px 20px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--surface);
  font-size: 13px;
  font-family: var(--mono);
  color: var(--text2);
  white-space: nowrap;
}

/* ---- CONTACT ---- */
.contact-section {
  background: rgba(12, 18, 22, 0.56);
}

body.light .contact-section {
  background: rgba(220, 234, 227, 0.58);
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.contact-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 20px 22px;
  border-radius: var(--radius2);
  border: 1px solid var(--border);
  background: var(--surface);
  transition: transform 0.25s, border-color 0.25s, box-shadow 0.25s;
}

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

.contact-card.telegram:hover {
  border-color: rgba(39, 174, 246, 0.5);
  box-shadow: 0 12px 36px rgba(39, 174, 246, 0.1);
}

.contact-card.insta:hover {
  border-color: rgba(240, 71, 109, 0.5);
  box-shadow: 0 12px 36px rgba(240, 71, 109, 0.1);
}

.contact-card.fb:hover {
  border-color: rgba(66, 103, 178, 0.5);
  box-shadow: 0 12px 36px rgba(66, 103, 178, 0.1);
}

.contact-icon {
  font-size: 22px;
  flex-shrink: 0;
}

.contact-info {
  flex: 1;
}

.contact-name {
  font-size: 14px;
  font-weight: 700;
}

.contact-handle {
  font-size: 11px;
  color: var(--text2);
  font-family: var(--mono);
}

.contact-arrow {
  font-size: 18px;
  color: var(--text2);
}

/* ---- FOOTER ---- */
.footer {
  padding: 60px 0 32px;
  border-top: 1px solid var(--border);
  background: var(--bg);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand .brand {
  margin-bottom: 14px;
}

.footer-brand p {
  font-size: 13px;
  color: var(--text2);
  line-height: 1.65;
  max-width: 260px;
  margin-bottom: 8px;
}

.footer-copy {
  font-size: 11px;
  color: var(--text2);
  margin-top: 16px;
}

.footer-col-title {
  font-size: 11px;
  font-family: var(--mono);
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text2);
  margin-bottom: 14px;
}

.footer-links-col {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-links-col a {
  font-size: 13px;
  color: var(--text2);
  transition: color 0.2s;
}

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

/* ---- FAB ---- */
.fab-donate {
  position: fixed;
  right: 20px;
  bottom: 70px;
  z-index: 999;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 16px;
  border-radius: 12px;
  background: var(--hot);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  box-shadow: 0 8px 24px rgba(255, 107, 71, 0.4);
  transition: transform 0.2s, box-shadow 0.2s;
}

.fab-donate:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 36px rgba(255, 107, 71, 0.5);
}

.back-top {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 999;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s, transform 0.2s;
}

.back-top.visible {
  opacity: 1;
  pointer-events: auto;
}

.back-top:hover {
  transform: translateY(-3px);
  border-color: var(--primary);
}

/* ---- KEYFRAMES ---- */
@keyframes phoneFloat {

  0%,
  100% {
    transform: perspective(900px) rotateX(5deg) rotateY(-15deg) rotateZ(2deg) translateY(0);
  }

  50% {
    transform: perspective(900px) rotateX(9deg) rotateY(-8deg) rotateZ(-1deg) translateY(-14px);
  }
}

@keyframes phoneGlow {

  0%,
  100% {
    opacity: 0.5;
  }

  50% {
    opacity: 1;
  }
}

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

@keyframes floatY {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-10px);
  }
}

@keyframes scrollBounce {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(8px);
  }
}

@keyframes pulse {

  0%,
  100% {
    box-shadow: 0 0 8px var(--primary);
  }

  50% {
    box-shadow: 0 0 18px var(--primary);
  }
}

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

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

/* ---- RESPONSIVE ---- */
@media (max-width: 1024px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .gallery-card.tall {
    grid-row: span 1;
    aspect-ratio: 16/10;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 30px;
  }

  .featured-rom {
    grid-template-columns: 1fr;
  }

  .tzlabs-devices {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .badge-1,
  .badge-2,
  .badge-3 {
    display: none;
  }
}

@media (max-width: 820px) {
  header>nav {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .hero {
    min-height: auto;
    padding-top: 84px;
    padding-bottom: clamp(128px, 16vh, 148px);
  }

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

  .video-side {
    gap: 16px;
  }

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

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

@media (max-width: 600px) {
  .antutu-num {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    font-size: clamp(28px, 9.2vw, 44px);
  }

  .antutu-val-in,
  .antutu-val-m {
    min-width: 0;
    text-align: center;
  }

  .antutu-or {
    font-size: 0.44em;
    padding-inline: 0;
    padding-block: 2px;
    transform: none;
  }
}

@media (max-width: 560px) {
  .hero-title {
    font-size: clamp(28px, 8vw, 42px);
  }

  .hero-cta {
    flex-direction: column;
    align-items: flex-start;
  }

  .btn-primary.btn-lg,
  .btn-ghost.btn-lg {
    width: 100%;
    justify-content: center;
  }

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

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

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

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

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

  .hero-stats {
    gap: 14px;
  }

  .stat-num[data-count-big] {
    min-width: 0;
  }
}

@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
  }
}

/* Review art scales with its column while preserving the full thumbnail. */
.review-hero {
  width: min(1440px, calc(100% - clamp(24px, 4vw, 80px)));
  margin-inline: auto;
  min-height: 0;
  padding: clamp(100px, 10vw, 148px) 0 clamp(28px, 5vw, 72px);
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
}

.review-hero::before,
.review-hero::after {
  content: none;
}

.home-feature,
.home-review {
  min-width: 0;
  color: var(--text);
}

.home-feature img,
.home-review img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 14px;
}

.home-feature span,
.home-review span {
  display: block;
  padding-block: 10px;
  font-weight: 700;
}

.home-reviews {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: clamp(14px, 2vw, 24px);
}

.compare-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.compare-card>p:last-of-type {
  margin-bottom: 16px;
}

.compare-card>.btn-ghost {
  margin-top: auto;
}

.contact-info,
.rom-layout>*,
.rom-hero-inner>*,
.rph-inner>*,
.footer-grid>* {
  min-width: 0;
  overflow-wrap: break-word;
}

.rom-layout img,
.rom-hero-inner img,
.rph-inner img {
  max-width: 100%;
}

.rph-inner .rph-img img,
.home-feature img,
.home-review img,
.rom-hero-inner img,
.screenshot-item img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: contain;
}

html {
  scroll-padding-top: 76px;
}

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

.mobile-menu:not(.open) {
  visibility: hidden;
}

.mobile-menu {
  max-height: calc(100dvh - 64px);
  overflow-y: auto;
}

body.light .mobile-menu {
  background: var(--bg);
}

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

.tzlabs-section .tzlabs-card {
  grid-template-columns: 1fr;
}

@media (min-width: 821px) {
  #mobileMenu {
    display: none;
  }
}

@media (max-width: 980px) {
  #header {
    gap: 10px;
  }

  .nav-link {
    padding: 6px 10px;
    font-size: 13px;
    white-space: nowrap;
  }
}

@media (max-width: 820px) {
  #header {
    gap: 8px;
    justify-content: space-between;
    padding-inline: clamp(16px, 4vw, 48px);
  }

  #header .header-actions {
    gap: 4px;
  }

  #header .hamburger,
  #header .theme-toggle {
    min-width: 44px;
    min-height: 44px;
  }

  .review-hero {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .hero-cta {
    flex-wrap: wrap;
  }

  .mobile-menu a {
    min-height: 44px;
  }
}

@media (max-width: 480px) {
  #header .header-actions>.btn-primary {
    display: none;
  }

  .home-reviews {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .spec-card {
    min-width: 0;
    padding: 14px;
  }

  .guide-card,
  .contact-card {
    padding: 16px;
  }

  .contact-handle {
    overflow-wrap: anywhere;
  }

  .btn-primary,
  .btn-ghost {
    white-space: normal;
    text-align: center;
  }
}

@media (max-width: 360px) {
  .home-reviews {
    grid-template-columns: 1fr;
  }

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

  .hero-stats {
    flex-wrap: wrap;
    gap: 12px;
  }

  .stat-divider {
    display: none;
  }

  .fab-donate {
    right: 12px;
    bottom: 70px;
    padding: 8px 12px;
    font-size: 12px;
  }
}

@media (max-height: 500px) and (max-width: 960px) {
  body .filter-bar {
    position: static;
  }

  .hero {
    min-height: auto;
    padding-top: calc(64px + 18px);
    padding-bottom: 32px;
  }

  .hero .scroll-hint {
    display: none;
  }

  .hero-title {
    font-size: clamp(24px, 4.2vw, 34px);
    margin-bottom: 10px;
  }

  .hero-desc {
    margin-bottom: 16px;
  }

  .hero-cta {
    margin-bottom: 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}


@media (max-height: 500px) and (max-width: 960px) {
  body .filter-bar {
    position: static;
  }
}

.stock-review-art {
  display: block;
  width: 100%;
}

.card-img-wrap .stock-review-art {
  height: 100%;
}

.review-play {
  position: absolute;
  inset: 0;
  display: block;
  color: #ffffff;
  background: #070b0f;
  text-decoration: none;
  border-radius: inherit;
}

.review-play img {
  position: relative;
  z-index: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.play-video-pill {
  position: absolute;
  right: 14px;
  bottom: 14px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border-radius: 999px;
  background: rgba(6, 11, 14, 0.94);
  color: #ffffff;
  border: 1.5px solid #38bdf8;
  font-weight: 700;
  font-size: 13px;
  line-height: 1.1;
  letter-spacing: 0.2px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.58);
  transition: background 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.play-video-pill svg {
  width: 14px;
  height: 14px;
  fill: #38bdf8;
  flex-shrink: 0;
}

.review-play:hover .play-video-pill,
.review-play:focus-visible .play-video-pill {
  background: #082f49;
  transform: translateY(-1px) scale(1.03);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.65);
}

.review-play:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: -3px;
}

.is-yt-fallback {
  opacity: 0 !important;
  pointer-events: none;
}

.yt-thumb-fallback {
  background: linear-gradient(145deg, #08111e 0%, #0c2238 100%);
  border-color: var(--border2);
}

.review-play.yt-thumb-fallback {
  position: absolute;
  inset: 0;
}

.card-img-wrap,
.featured-img-wrap,
.gallery-card {
  position: relative;
}

body.light .yt-thumb-fallback {
  background: linear-gradient(145deg, #e8f2fc 0%, #d4e6fa 100%);
}

.review-play.yt-thumb-fallback::before {
  content: attr(data-fb-title);
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 18px 24px 54px;
  font-weight: 800;
  font-size: clamp(16px, 2.2vw, 24px);
  line-height: 1.25;
  color: #f0f9ff;
}

body.light .review-play.yt-thumb-fallback::before {
  color: var(--text);
}

.card-img-wrap.yt-thumb-fallback::before,
.rel-video-thumb-wrap.yt-thumb-fallback::before {
  display: none;
}

.card-img-wrap.yt-thumb-fallback::after,
.featured-img-wrap.yt-thumb-fallback::after,
.gallery-card.yt-thumb-fallback::after,
.rel-video-thumb-wrap.yt-thumb-fallback::after {
  content: attr(data-fb-title);
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 12px 14px;
  font-weight: 700;
  font-size: clamp(12px, 1.4vw, 16px);
  line-height: 1.3;
  color: var(--text);
}

.gallery-card.yt-thumb-fallback::after {
  padding-bottom: 42px;
}

.thumb-fb-wrap {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #070a0f;
}

.thumb-fb-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.rel-video-thumb-wrap.yt-thumb-fallback::after,
.home-review-media.yt-thumb-fallback::after,
.thumb-fb-wrap.yt-thumb-fallback::after {
  content: attr(data-fb-title);
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 14px 16px;
  font-weight: 700;
  font-size: clamp(12.5px, 1.35vw, 16px);
  line-height: 1.32;
  color: var(--text);
}

.rel-video-thumb-wrap.yt-thumb-fallback::after {
  font-size: clamp(12px, 1.25vw, 15px);
  padding: 12px 14px;
}

.home-review {
  position: relative;
  display: block;
}

.home-review.yt-thumb-fallback::after {
  content: attr(data-fb-title);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  aspect-ratio: 16 / 9;
  z-index: 2;
  border-radius: 14px;
  background: linear-gradient(145deg, #08111e 0%, #0c2238 100%);
  border: 1px solid var(--border2);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 14px;
  font-weight: 700;
  font-size: clamp(13px, 1.4vw, 16px);
  line-height: 1.3;
  color: var(--text);
  box-sizing: border-box;
}

body.light .home-review.yt-thumb-fallback::after {
  background: linear-gradient(145deg, #e8f2fc 0%, #d4e6fa 100%);
}

.watch-review {
  display: inline-flex;
  margin-top: 14px;
}

body:not(.light) .brand-icon {
  filter: brightness(1.6);
}

/* SKY Reviews Showcase + Full Reviews Cards */
.home-reviews-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  align-items: center;
  margin-bottom: 22px;
}

.rev-stat-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border2);
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text2);
}

.rev-stat-pill strong {
  color: var(--primary);
  font-size: 14px;
}

.home-reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 265px), 1fr));
  gap: 18px;
  align-items: stretch;
}

@media (min-width: 1200px) {
  .home-reviews-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.home-review-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  overflow: hidden;
  color: var(--text);
  text-decoration: none;
  height: 100%;
}

.home-review-media {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #070a0f;
  overflow: hidden;
}

.home-review-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.home-review-body {
  padding: 14px 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1 1 auto;
}

.home-review-tag {
  display: inline-block;
  align-self: flex-start;
  padding: 3px 8px;
  border-radius: 5px;
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid var(--border2);
  color: var(--primary);
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
}

body.light .home-review-tag {
  background: rgba(2, 132, 199, 0.08);
}

.home-review-title {
  font-size: 14.5px;
  font-weight: 700;
  line-height: 1.35;
}

.home-review-meta {
  font-size: 11.5px;
  color: var(--text2);
  font-family: var(--mono);
  margin-top: auto;
  padding-top: 4px;
}

.reviews-archive-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 285px), 1fr));
  gap: 18px;
  align-items: stretch;
}