:root {
  color-scheme: dark;
  --bg: #060714;
  --bg-soft: #0b1024;
  --glass-bg: rgba(13, 18, 42, 0.65);
  --glass-bg-hover: rgba(20, 28, 62, 0.8);
  --glass-border: rgba(255, 255, 255, 0.12);
  --glass-border-glow: rgba(140, 97, 255, 0.45);
  --backdrop-blur: blur(20px) saturate(180%);
  
  --ink: #f7fbff;
  --ink-soft: #9dabcf;
  --ink-muted: #6b7b9f;

  --accent-primary: #8c61ff;    /* Neon Violet */
  --accent-secondary: #45f3b1;  /* Neon Cyan / Aqua */
  --accent-tertiary: #ff63d1;   /* Hot Magenta */
  --accent-warm: #ffd76d;       /* Arcade Gold */
  --accent-danger: #ff4d6d;

  --gradient-brand: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
  --gradient-gold: linear-gradient(135deg, var(--accent-warm), var(--accent-tertiary));
  --gradient-glass: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02));

  --shadow-xl: 0 24px 90px rgba(0, 0, 0, 0.55);
  --shadow-glow: 0 0 35px rgba(140, 97, 255, 0.25);
  --shadow-cyan: 0 0 35px rgba(69, 243, 177, 0.25);

  --radius-xl: 2rem;
  --radius-lg: 1.4rem;
  --radius-md: 1rem;
  --radius-sm: 0.6rem;

  --site-width: min(1240px, calc(100vw - 2.5rem));
  --section-gap: clamp(4rem, 8vw, 7.5rem);

  --title-font: "Audiowide", cursive, sans-serif;
  --body-font: "Chakra Petch", sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  position: relative;
  font-family: var(--body-font);
  color: var(--ink);
  line-height: 1.65;
  background:
    radial-gradient(circle at 15% 15%, rgba(140, 97, 255, 0.18), transparent 30rem),
    radial-gradient(circle at 85% 25%, rgba(69, 243, 177, 0.14), transparent 28rem),
    radial-gradient(circle at 50% 80%, rgba(255, 99, 209, 0.12), transparent 35rem),
    linear-gradient(180deg, #040510 0%, #080c1f 45%, #050612 100%);
}

/* CRT Scanline & Retro Micro-Grid Background Overlay */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.05;
  background: repeating-linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.7) 0 1px,
    transparent 1px 4px
  );
  z-index: 100;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.12;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.07) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.5), transparent 90%);
}

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

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

button, input, textarea, select {
  font: inherit;
}

/* Floating Ambient Glass Orbs */
.bg-shape {
  position: fixed;
  border-radius: 50%;
  filter: blur(140px);
  pointer-events: none;
  z-index: -2;
  opacity: 0.38;
  animation: drift 22s infinite alternate ease-in-out;
}

.shape-1 {
  width: 32rem; height: 32rem;
  left: -10rem; top: -10rem;
  background: rgba(140, 97, 255, 0.55);
}

.shape-2 {
  width: 36rem; height: 36rem;
  right: -12rem; top: 20%;
  background: rgba(69, 243, 177, 0.3);
  animation-delay: -6s;
}

.shape-3 {
  width: 28rem; height: 28rem;
  left: 25%; bottom: -8rem;
  background: rgba(255, 99, 209, 0.25);
  animation-delay: -12s;
}

.shape-4 {
  width: 25rem; height: 25rem;
  right: 20%; top: 60%;
  background: rgba(255, 215, 109, 0.2);
  animation-delay: -18s;
}

@keyframes drift {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(3.5rem, 2.5rem) scale(1.1); }
}

.site-shell {
  position: relative;
  isolation: isolate;
}

.section,
.site-footer {
  width: var(--site-width);
  margin: 0 auto;
}

.section {
  padding-top: var(--section-gap);
}

/* Glass Card Utility System */
.glass-card {
  background: var(--glass-bg);
  backdrop-filter: var(--backdrop-blur);
  -webkit-backdrop-filter: var(--backdrop-blur);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.glass-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--gradient-glass);
  pointer-events: none;
  opacity: 0.6;
}

.glass-card:hover {
  border-color: var(--glass-border-glow);
  box-shadow: var(--shadow-xl), var(--shadow-glow);
}

/* Typography Utilities */
.gradient-text {
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.eyebrow {
  display: inline-block;
  font-family: var(--title-font);
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent-secondary);
  margin-bottom: 0.5rem;
}

.section-heading {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 3.5rem;
}

.section-heading h2 {
  font-family: var(--title-font);
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  line-height: 1.2;
  margin: 0.4rem 0 1rem;
}

.section-heading p {
  color: var(--ink-soft);
  font-size: 1.1rem;
}

/* Buttons */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.75rem 1.5rem;
  font-family: var(--body-font);
  font-weight: 700;
  font-size: 0.9rem;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  border: none;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  text-decoration: none;
  white-space: nowrap;
}

.button-primary,
a.button-primary,
button.button-primary,
.site-nav a.button-primary,
.site-header a.button-primary {
  background: var(--gradient-brand);
  color: #040510 !important;
  font-weight: 700;
  box-shadow: 0 6px 25px rgba(69, 243, 177, 0.35);
  border: none;
}

.button-primary:hover,
a.button-primary:hover,
button.button-primary:hover,
.site-nav a.button-primary:hover,
.site-header a.button-primary:hover,
.button-primary:focus,
a.button-primary:focus,
.button-primary:active,
a.button-primary:active {
  color: #040510 !important;
  transform: translateY(-2px);
  box-shadow: 0 10px 35px rgba(69, 243, 177, 0.55);
}

.button-secondary,
a.button-secondary,
button.button-secondary {
  background: rgba(255, 255, 255, 0.06);
  color: #ffffff !important;
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(10px);
  font-weight: 700;
  text-decoration: none;
}

.button-secondary:hover,
a.button-secondary:hover,
button.button-secondary:hover,
.button-secondary:focus,
a.button-secondary:focus,
.button-secondary:active,
a.button-secondary:active {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--accent-primary);
  color: #ffffff !important;
  transform: translateY(-2px);
  box-shadow: 0 0 20px rgba(140, 97, 255, 0.3);
}

.button-sm {
  padding: 0.75rem 1.5rem;
  font-size: 0.9rem;
}

/* Badges */
.badge-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 1.2rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.85rem;
  border-radius: 2rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.badge-glow {
  background: rgba(140, 97, 255, 0.2);
  color: var(--accent-primary);
  border: 1px solid rgba(140, 97, 255, 0.4);
  box-shadow: 0 0 15px rgba(140, 97, 255, 0.3);
}

.badge-glass {
  background: rgba(255, 255, 255, 0.06);
  color: var(--accent-secondary);
  border: 1px solid var(--glass-border);
}

/* Header & Solid Full-Width Navigation Bar */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.4rem clamp(1.5rem, 5vw, 4rem);
  min-height: 84px;
  box-sizing: border-box;
  border-radius: 0;
  background: #060714;
  backdrop-filter: blur(28px) saturate(200%);
  -webkit-backdrop-filter: blur(28px) saturate(200%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.95), 0 0 20px rgba(140, 97, 255, 0.2);
  margin: 0;
}

main#top {
  padding-top: 5.6rem;
  padding-bottom: 6rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
}

.brand-mark {
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 0.8rem;
  background: var(--gradient-brand);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-cyan);
}

.brand-core {
  width: 1.1rem;
  height: 1.1rem;
  border-radius: 0.3rem;
  background: #040510;
  transform: rotate(45deg);
}

.brand-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.15;
}

.brand-copy strong {
  font-family: var(--title-font);
  font-size: 1.15rem;
  letter-spacing: 0.05em;
}

.brand-sub {
  display: block;
  font-size: 0.75rem;
  color: var(--ink-soft);
  margin-top: 0.15rem;
  font-weight: 500;
}

/* Interactive Header Navigation Bar & Moving Active Button Surround */
.site-nav {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.55rem;
  background: rgba(12, 14, 33, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 3rem;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.site-nav .nav-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.65rem 1.35rem;
  font-family: var(--body-font);
  font-weight: 700;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ink-soft);
  border-radius: 2rem;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  border: 1px solid transparent;
  text-decoration: none;
  position: relative;
  cursor: pointer;
  white-space: nowrap;
}

.site-nav .nav-link .nav-icon {
  font-size: 1.05rem;
  transition: transform 0.3s ease;
  display: inline-block;
}

.site-nav .nav-link:hover {
  color: #ffffff !important;
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(69, 243, 177, 0.35);
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 4px 15px rgba(69, 243, 177, 0.2);
}

.site-nav .nav-link:hover .nav-icon {
  transform: scale(1.25) rotate(-6deg);
}

/* Active Page Button Surrounding Highlight */
.site-nav .nav-link.active,
.site-nav a.nav-link.active {
  background: var(--gradient-brand) !important;
  color: #040510 !important;
  font-weight: 800;
  border: none !important;
  box-shadow: 0 4px 22px rgba(69, 243, 177, 0.5), 0 0 16px rgba(140, 97, 255, 0.4) !important;
  transform: translateY(-1px) scale(1.05);
  animation: active-nav-pulse 3s infinite alternate ease-in-out;
}

.site-nav .nav-link.active .nav-icon {
  transform: scale(1.15);
}

@keyframes active-nav-pulse {
  0% {
    box-shadow: 0 4px 22px rgba(69, 243, 177, 0.5), 0 0 16px rgba(140, 97, 255, 0.4);
  }
  100% {
    box-shadow: 0 6px 28px rgba(69, 243, 177, 0.75), 0 0 25px rgba(140, 97, 255, 0.6);
  }
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

/* Hero Section - Perfectly Centered Above-The-Fold Layout */
.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  align-items: stretch;
  height: calc(100vh - 7rem);
  min-height: 520px;
  max-height: 680px;
  margin-top: calc(0.4rem - 0.875in);
  margin-bottom: 1rem;
}

.hero-copy {
  padding: 1.6rem 1.8rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  box-sizing: border-box;
}

.hero-title {
  margin: 0 0 0.6rem;
  line-height: 1.15;
}

.hero-eyebrow {
  display: block;
  font-family: var(--body-font);
  font-size: clamp(1.05rem, 1.6vw, 1.3rem);
  color: var(--ink-soft);
  font-weight: 500;
}

.hero-title span.gradient-text {
  font-family: var(--title-font);
  font-size: clamp(1.65rem, 2.8vw, 2.35rem);
  display: block;
}

.hero-lead {
  font-size: 0.98rem;
  color: var(--ink-soft);
  margin-bottom: 0.9rem;
  line-height: 1.5;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-bottom: 1rem;
}

/* Stat Signals Bar */
.hero-signals {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.6rem;
  padding: 0.85rem 1rem;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--glass-border);
}

.signal-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.signal-value {
  font-family: var(--title-font);
  font-size: 1.28rem;
  font-weight: 700;
  color: var(--accent-secondary);
}

.signal-label {
  font-size: 0.72rem;
  color: var(--ink-soft);
  line-height: 1.2;
}

/* Hero Interactive Dock & Video Container */
.hero-interactive-dock {
  display: flex;
  flex-direction: column;
  gap: 1.8rem;
  height: 100%;
}

.gate-panel {
  padding: 1.8rem;
}

.panel-heading h2 {
  font-family: var(--title-font);
  font-size: 1.3rem;
  margin: 0.2rem 0;
}

.panel-sub {
  font-size: 0.9rem;
  color: var(--ink-soft);
  margin: 0 0 1.2rem;
}

.gate-viewer {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 1.5rem;
  align-items: center;
  margin-bottom: 1.2rem;
}

.gate-stage {
  position: relative;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: rgba(4, 6, 18, 0.9);
  border: 2px solid rgba(140, 97, 255, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: inset 0 0 30px rgba(0, 0, 0, 0.8), var(--shadow-glow);
}

.gate-stage-glow {
  position: absolute;
  inset: 10px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(69, 243, 177, 0.15), transparent 70%);
}

.gate-svg {
  width: 180px;
  height: 180px;
  position: relative;
  z-index: 2;
}

.gate-grid-line {
  fill: none;
  stroke: rgba(255, 255, 255, 0.1);
  stroke-width: 1.5;
  stroke-dasharray: 4 4;
}

.gate-shape-base {
  fill: rgba(140, 97, 255, 0.18);
  stroke: var(--accent-secondary);
  stroke-width: 4;
  filter: drop-shadow(0 0 10px rgba(69, 243, 177, 0.6));
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.stick-core {
  fill: var(--accent-warm);
  filter: drop-shadow(0 0 12px rgba(255, 215, 109, 0.8));
}

.telemetry-pill {
  position: absolute;
  bottom: -10px;
  background: rgba(6, 8, 24, 0.9);
  border: 1px solid var(--accent-secondary);
  border-radius: 1rem;
  padding: 0.2rem 0.7rem;
  font-size: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  white-space: nowrap;
}

.telemetry-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-secondary);
  box-shadow: 0 0 8px var(--accent-secondary);
  animation: pulse 1.5s infinite;
}

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

.gate-details {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.demo-game-name {
  font-family: var(--title-font);
  font-size: 1.3rem;
  color: var(--accent-warm);
  margin: 0;
}

.demo-game-note {
  font-size: 0.88rem;
  color: var(--ink-soft);
  margin: 0;
}

.gate-badge h3 {
  font-family: var(--title-font);
  font-size: 1.2rem;
  margin: 0;
}

.gate-summary {
  font-size: 0.9rem;
  color: var(--ink);
  margin: 0;
}

.gate-meta {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.3rem;
  font-size: 0.82rem;
  margin: 0;
}

.gate-meta div {
  display: flex;
  justify-content: space-between;
  border-bottom: 1px stroke rgba(255, 255, 255, 0.08);
}

.gate-meta dt {
  color: var(--ink-soft);
}

.gate-meta dd {
  margin: 0;
  font-weight: 600;
  color: var(--accent-secondary);
}

.gate-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.gate-pill {
  padding: 0.35rem 0.75rem;
  border-radius: 1rem;
  font-size: 0.8rem;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--glass-border);
  color: var(--ink-soft);
  cursor: pointer;
  transition: all 0.2s ease;
}

.gate-pill:hover,
.gate-pill.is-active {
  background: rgba(140, 97, 255, 0.25);
  border-color: var(--accent-primary);
  color: #fff;
  box-shadow: 0 0 12px rgba(140, 97, 255, 0.3);
}

/* Video Dock & Drop Zone */
.video-dock {
  padding: 1.25rem 1.6rem;
  height: 100%;
  min-height: auto;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.video-dock-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 0.6rem;
}

.video-dock-header h3 {
  font-family: var(--title-font);
  font-size: 1.2rem;
  margin: 0.1rem 0;
  color: #ffffff;
  font-weight: 800;
}

.video-dock-desc {
  font-size: 0.86rem;
  color: var(--ink-soft);
  font-weight: 500;
  line-height: 1.4;
  margin: 0;
}

.video-status {
  font-size: 0.8rem;
  padding: 0.35rem 0.8rem;
  border-radius: 1rem;
  background: rgba(69, 243, 177, 0.25);
  color: #45f3b1;
  border: 1px solid #45f3b1;
  font-weight: 700;
  letter-spacing: 0.03em;
  box-shadow: 0 0 12px rgba(69, 243, 177, 0.3);
  white-space: nowrap;
}

.video-stage {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: #03040c;
  border: 2px dashed rgba(255, 255, 255, 0.18);
  min-height: 200px;
  max-height: 240px;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.video-stage.is-dragging {
  border-color: var(--accent-secondary);
  background: rgba(69, 243, 177, 0.08);
}

.video-stage.is-loaded {
  border-style: solid;
  border-color: var(--glass-border);
}

.video-input {
  display: none;
}

.video-dropzone {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

/* Automatic Video Compression Spinner & Loading Overlay */
.video-compress-overlay {
  position: absolute;
  inset: 0;
  background: rgba(4, 6, 18, 0.92);
  backdrop-filter: blur(14px);
  z-index: 20;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  gap: 0.8rem;
  text-align: center;
}

.compress-spinner {
  width: 42px;
  height: 42px;
  border: 3px solid rgba(255, 255, 255, 0.1);
  border-top-color: var(--accent-secondary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

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

.compress-bar-bg {
  width: 80%;
  max-width: 240px;
  height: 6px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
  overflow: hidden;
}

.compress-bar-fill {
  width: 0%;
  height: 100%;
  background: var(--gradient-brand);
  transition: width 0.3s ease;
}

.video-preview {
  width: 100%;
  height: 100%;
  max-height: 520px;
  object-fit: contain;
  display: none;
  border-radius: var(--radius-md);
}

.video-stage.is-loaded .video-preview {
  display: block;
}

.video-stage.is-loaded .video-empty {
  display: none;
}

.video-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 2rem 1.5rem;
  gap: 0.6rem;
}

.upload-icon-wrapper {
  width: 3.2rem;
  height: 3.2rem;
  border-radius: 50%;
  background: rgba(140, 97, 255, 0.15);
  color: var(--accent-primary);
  display: flex;
  align-items: center;
  justify-content: center;
}

.video-empty strong {
  font-size: 1.15rem;
  color: #000000;
  font-weight: 800;
}

.video-empty span {
  font-size: 0.9rem;
  color: #000000;
  font-weight: 700;
  max-width: 360px;
  line-height: 1.45;
}

.video-drop-actions {
  display: flex;
  gap: 0.8rem;
  margin-top: 0.5rem;
}

/* Video HUD Overlay */
.video-hud {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(4, 6, 18, 0.92);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: var(--radius-md);
  padding: 0.55rem 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  pointer-events: none;
  z-index: 10;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.6);
}

.video-hud-copy {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.video-hud-copy span {
  font-size: 0.72rem;
  color: #000000;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.video-hud-copy strong {
  font-family: var(--title-font);
  font-size: 0.98rem;
  color: #45f3b1;
  font-weight: 800;
  text-shadow: 0 0 10px rgba(69, 243, 177, 0.5);
}

.video-mini-gate {
  width: 34px;
  height: 34px;
}

.video-mini-ring {
  fill: none;
  stroke: rgba(255, 255, 255, 0.2);
  stroke-width: 2;
}

.video-mini-core {
  fill: var(--accent-secondary);
}

.video-clear {
  position: absolute;
  bottom: 12px;
  left: 12px;
  background: rgba(255, 77, 109, 0.8);
  color: #fff;
  border: none;
  padding: 0.35rem 0.8rem;
  border-radius: 0.5rem;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  z-index: 10;
}

/* 5-in-1 Restrictor Showcase Grid */
.gate-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.8rem;
}

.gate-showcase-card {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.gate-card-header {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  margin-bottom: 1rem;
}

.gate-icon-box {
  width: 3.6rem;
  height: 3.6rem;
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--glass-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-secondary);
}

.accent-plus .gate-icon-box { color: var(--accent-secondary); border-color: rgba(69, 243, 177, 0.4); }
.accent-square .gate-icon-box { color: var(--accent-primary); border-color: rgba(140, 97, 255, 0.4); }
.accent-vertical .gate-icon-box { color: var(--accent-tertiary); border-color: rgba(255, 99, 209, 0.4); }
.accent-horizontal .gate-icon-box { color: var(--accent-warm); border-color: rgba(255, 215, 109, 0.4); }
.accent-circle .gate-icon-box { color: #40c4ff; border-color: rgba(64, 196, 255, 0.4); }
.accent-octagonal .gate-icon-box { color: #e040fb; border-color: rgba(224, 64, 251, 0.4); }

.gate-tag {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-soft);
}

.gate-showcase-card h3 {
  font-family: var(--title-font);
  font-size: 1.35rem;
  margin: 0.1rem 0 0;
}

.gate-card-desc {
  color: var(--ink-soft);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
}

.gate-card-footer {
  font-size: 0.85rem;
  padding: 0.6rem 0.9rem;
  border-radius: 0.6rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.gate-card-footer strong {
  color: var(--accent-secondary);
}

/* DUI Desktop Simulator */
.dui-simulator {
  padding: 0;
  border-radius: var(--radius-lg);
}

.dui-window-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.8rem 1.2rem;
  background: rgba(4, 5, 16, 0.9);
  border-bottom: 1px solid var(--glass-border);
}

.dui-window-buttons {
  display: flex;
  gap: 0.4rem;
}

.dui-window-buttons span {
  width: 10px; height: 10px;
  border-radius: 50%;
}
.btn-close { background: #ff5f56; }
.btn-min { background: #ffbd2e; }
.btn-max { background: #27c93f; }

.dui-window-title {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink-soft);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.dui-window-status {
  font-size: 0.78rem;
  color: var(--accent-secondary);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.status-indicator {
  width: 8px; height: 8px;
  border-radius: 50%;
}
.status-indicator.online {
  background: var(--accent-secondary);
  box-shadow: 0 0 8px var(--accent-secondary);
}

.dui-tabs {
  display: flex;
  background: rgba(10, 14, 34, 0.8);
  border-bottom: 1px solid var(--glass-border);
  overflow-x: auto;
}

.dui-tab {
  padding: 0.9rem 1.4rem;
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  color: var(--ink-soft);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.dui-tab:hover {
  color: var(--ink);
}

.dui-tab.is-active {
  color: var(--accent-secondary);
  border-bottom-color: var(--accent-secondary);
  background: rgba(69, 243, 177, 0.05);
}

.dui-tab-panels {
  padding: 2rem;
}

.dui-panel {
  display: none;
}

.dui-panel.is-active {
  display: block;
}

.dui-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
}

.dui-screenshot-wrapper img {
  border-radius: var(--radius-md);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-xl);
}

.dui-panel-copy h3 {
  font-family: var(--title-font);
  font-size: 1.4rem;
  margin: 0 0 0.8rem;
}

.dui-feature-list {
  list-style: none;
  padding: 0;
  margin: 1.2rem 0 0;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.dui-feature-list li {
  padding-left: 1.6rem;
  position: relative;
}

.dui-feature-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--accent-secondary);
  font-weight: 700;
}

/* Servo Calibrator Simulator Pane */
.calib-header h4 {
  font-family: var(--title-font);
  font-size: 1.2rem;
  margin: 0 0 0.4rem;
}

.calib-sliders-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin: 1.5rem 0;
}

.calib-control {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  background: rgba(255, 255, 255, 0.03);
  padding: 1rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--glass-border);
}

.calib-control label {
  font-size: 0.88rem;
  display: flex;
  justify-content: space-between;
}

.calib-control label span {
  color: var(--accent-secondary);
  font-weight: 700;
}

.calib-range {
  accent-color: var(--accent-secondary);
}

.calib-actions {
  display: flex;
  gap: 1rem;
}

.dui-code-preview pre {
  background: #03040b;
  padding: 1.2rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--glass-border);
  color: var(--accent-secondary);
  font-family: monospace;
  font-size: 0.88rem;
  overflow-x: auto;
}

.safety-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.2rem;
  margin-top: 1.2rem;
}

.safety-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  padding: 1.2rem;
}

.safety-icon {
  font-size: 1.8rem;
  display: block;
  margin-bottom: 0.5rem;
}

/* Product Pricing & System Packages */
.pricing-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.pricing-card {
  padding: 2.5rem 2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
}

.pricing-card.featured {
  border-color: var(--accent-secondary);
  box-shadow: var(--shadow-xl), var(--shadow-cyan);
}

.featured-ribbon {
  position: absolute;
  top: 18px;
  right: -32px;
  background: var(--gradient-brand);
  color: #040510;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.3rem 2.5rem;
  transform: rotate(45deg);
  box-shadow: 0 4px 15px rgba(69, 243, 177, 0.4);
}

.pricing-header h3 {
  font-family: var(--title-font);
  font-size: 1.6rem;
  margin: 0.6rem 0 1rem;
}

.pricing-badge {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--accent-secondary);
}

.pricing-cost {
  display: flex;
  align-items: baseline;
  gap: 0.2rem;
  margin-bottom: 1.2rem;
}

.pricing-cost .currency {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--ink-soft);
}

.pricing-cost .amount {
  font-family: var(--title-font);
  font-size: 3.2rem;
  font-weight: 700;
  line-height: 1;
}

.pricing-cost .period {
  font-size: 0.82rem;
  color: var(--ink-soft);
  margin-left: 0.5rem;
}

.pricing-desc {
  color: var(--ink-soft);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
}

.pricing-features {
  list-style: none;
  padding: 0;
  margin: 0 0 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  font-size: 0.92rem;
}

.pricing-features li {
  padding-left: 1.5rem;
  position: relative;
  color: var(--ink-soft);
}

.pricing-features li strong {
  color: var(--ink);
}

.pricing-features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--accent-secondary);
  font-weight: 700;
}

/* Replacement Parts Sub-Section */
.replacement-parts-container {
  padding: 2.2rem;
}

.replacement-header h3 {
  font-family: var(--title-font);
  font-size: 1.3rem;
  margin: 0.3rem 0 0.6rem;
}

.replacement-header p {
  color: var(--ink-soft);
  margin: 0 0 1.8rem;
  font-size: 0.95rem;
}

.parts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.2rem;
}

.part-item {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  padding: 1.2rem;
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
}

.part-icon {
  font-size: 1.8rem;
}

.part-item h4 {
  margin: 0 0 0.2rem;
  font-size: 0.98rem;
}

.part-item p {
  margin: 0;
  font-size: 0.84rem;
  color: var(--ink-soft);
}

/* Searchable MAME Database Matrix */
.mame-search-bar {
  padding: 1.5rem;
  margin-bottom: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.search-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.search-input-wrapper svg {
  position: absolute;
  left: 1.2rem;
  color: var(--ink-soft);
}

.search-input-wrapper input {
  width: 100%;
  padding: 0.9rem 1rem 0.9rem 3.2rem;
  border-radius: var(--radius-md);
  background: rgba(4, 6, 18, 0.8);
  border: 1px solid var(--glass-border);
  color: #fff;
  font-size: 1rem;
}

.search-input-wrapper input:focus {
  outline: none;
  border-color: var(--accent-secondary);
  box-shadow: 0 0 15px rgba(69, 243, 177, 0.3);
}

.mame-filter-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.mame-filter-pill {
  padding: 0.4rem 0.9rem;
  border-radius: 1rem;
  font-size: 0.82rem;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--glass-border);
  color: var(--ink-soft);
  cursor: pointer;
  transition: all 0.2s ease;
}

.mame-filter-pill:hover,
.mame-filter-pill.is-active {
  background: var(--gradient-brand);
  color: #040510;
  border-color: transparent;
  box-shadow: 0 0 12px rgba(69, 243, 177, 0.4);
}

.mame-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.2rem;
}

.mame-card {
  padding: 1.2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.mame-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 0.6rem;
}

.mame-title {
  font-family: var(--title-font);
  font-size: 1.1rem;
  margin: 0;
}

.mame-badge {
  font-size: 0.7rem;
  padding: 0.2rem 0.5rem;
  border-radius: 0.4rem;
  font-weight: 700;
  text-transform: uppercase;
}

.badge-plus { background: rgba(69, 243, 177, 0.2); color: var(--accent-secondary); }
.badge-square { background: rgba(140, 97, 255, 0.2); color: var(--accent-primary); }
.badge-vertical { background: rgba(255, 99, 209, 0.2); color: var(--accent-tertiary); }
.badge-horizontal { background: rgba(255, 215, 109, 0.2); color: var(--accent-warm); }
.badge-circle { background: rgba(64, 196, 255, 0.2); color: #40c4ff; }

.mame-desc {
  font-size: 0.85rem;
  color: var(--ink-soft);
  margin: 0;
}

/* Hardware BOM Table */
.hardware-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 2rem;
}

.bom-table-card {
  padding: 2rem;
}

.bom-table-card h3 {
  font-family: var(--title-font);
  font-size: 1.3rem;
  margin: 0 0 1.2rem;
}

.bom-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.bom-table th, .bom-table td {
  padding: 0.8rem 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.92rem;
}

.bom-table th {
  color: var(--ink-soft);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.78rem;
}

.bom-table tfoot td {
  border-bottom: none;
  font-size: 1.1rem;
  padding-top: 1.2rem;
}

.hardware-features-card {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.hardware-features-card h3 {
  font-family: var(--title-font);
  font-size: 1.2rem;
  margin: 0;
}

.hw-feature {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.hw-icon {
  font-size: 1.8rem;
}

.hw-feature h4 {
  margin: 0 0 0.2rem;
  font-size: 1.05rem;
}

.hw-feature p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--ink-soft);
}

/* Workflow Steps */
.workflow-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}

.workflow-step {
  padding: 2rem 1.5rem;
  position: relative;
}

.step-num {
  font-family: var(--title-font);
  font-size: 2.2rem;
  color: var(--accent-secondary);
  opacity: 0.7;
  display: block;
  margin-bottom: 0.5rem;
}

.workflow-step h3 {
  font-family: var(--title-font);
  font-size: 1.15rem;
  margin: 0 0 0.6rem;
}

.workflow-step p {
  font-size: 0.9rem;
  color: var(--ink-soft);
  margin: 0;
}

/* Final CTA Section */
.cta-card {
  padding: 3.5rem 2.5rem;
  text-align: center;
  background: radial-gradient(circle at center, rgba(140, 97, 255, 0.25), rgba(13, 18, 42, 0.8));
}

.cta-copy h2 {
  font-family: var(--title-font);
  font-size: 2.4rem;
  margin: 0.4rem 0 1rem;
}

.cta-copy p {
  font-size: 1.15rem;
  color: var(--ink-soft);
  max-width: 650px;
  margin: 0 auto 2.2rem;
}

.cta-actions {
  display: flex;
  justify-content: center;
  gap: 1.2rem;
  flex-wrap: wrap;
}

/* ═══════ Site Footer Bar (Matching Header Twin) ═══════ */
.site-footer {
  width: 100% !important;
  max-width: 100% !important;
  margin-top: 5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 0.85rem clamp(1.5rem, 5vw, 4rem);
  background: #060714;
  backdrop-filter: blur(28px) saturate(200%);
  -webkit-backdrop-filter: blur(28px) saturate(200%);
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 -4px 30px rgba(0, 0, 0, 0.95), 0 0 20px rgba(140, 97, 255, 0.2);
  box-sizing: border-box;
  flex-wrap: wrap;
}

@media (max-width: 768px) {
  .site-footer {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
    padding: 1.25rem 1rem;
  }
}

/* Responsive Breakpoints */
@media (max-width: 1024px) {
  .hero {
    grid-template-columns: 1fr;
  }
  .hardware-grid {
    grid-template-columns: 1fr;
  }
  .dui-two-col {
    grid-template-columns: 1fr;
  }
  .gate-viewer {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }
}

@media (max-width: 768px) {
  .site-header {
    flex-direction: column;
    align-items: flex-start;
  }
  .site-nav {
    flex-wrap: wrap;
    gap: 1rem;
  }
  .hero-title span.gradient-text {
    font-size: 2.2rem;
  }
  .calib-sliders-grid {
    grid-template-columns: 1fr;
  }
}

/* Clean Gate Selector & Game Tag Pills */
.gate-selector-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.gate-tab {
  padding: 0.5rem 1rem;
  border-radius: var(--radius-md);
  font-size: 0.85rem;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--glass-border);
  color: var(--ink-soft);
  cursor: pointer;
  transition: all 0.25s ease;
}

.gate-tab:hover,
.gate-tab.is-active {
  background: var(--gradient-brand);
  color: #040510;
  border-color: transparent;
  box-shadow: 0 0 15px rgba(69, 243, 177, 0.4);
}

.gate-games-box {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.gate-details {
  min-height: 185px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.gate-summary {
  min-height: 48px;
}

.gate-games-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.4rem;
  min-height: 38px;
  align-items: center;
}

.game-tag-pill {
  padding: 0.3rem 0.75rem;
  border-radius: 0.6rem;
  font-size: 0.82rem;
  font-weight: 600;
  background: rgba(140, 97, 255, 0.15);
  color: var(--accent-secondary);
  border: 1px solid rgba(140, 97, 255, 0.3);
}

/* Category Showcase Grid in Database Section */
.db-category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.db-category-card {
  padding: 1.6rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid var(--glass-border);
  transition: all 0.3s ease;
}

.db-category-card:hover {
  border-color: var(--accent-secondary);
  box-shadow: 0 10px 30px rgba(69, 243, 177, 0.15);
}

.db-category-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.8rem;
}

.db-category-title {
  font-family: var(--title-font);
  font-size: 1.1rem;
  margin: 0;
}

.db-category-count {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.65rem;
  border-radius: 1rem;
  background: rgba(69, 243, 177, 0.15);
  color: var(--accent-secondary);
  border: 1px solid rgba(69, 243, 177, 0.3);
}

.db-category-desc {
  font-size: 0.88rem;
  color: var(--ink-soft);
  margin-bottom: 1.2rem;
  line-height: 1.5;
}

.db-chips-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1.2rem;
}

.db-game-chip {
  font-size: 0.85rem;
  padding: 0;
  border-radius: 0;
  background: none;
  border: none;
  color: var(--ink-soft);
  line-height: 1.6;
}

.db-game-chip::after {
  content: " · ";
  color: rgba(140, 97, 255, 0.5);
  font-weight: 700;
}

.db-game-chip:last-child::after {
  content: "";
}

.db-game-chip:hover {
  color: var(--accent-secondary);
}

.db-category-action {
  width: 100%;
  margin-top: auto;
}

/* Master Category Scrollable Game List Styling */
.db-category-scroll-box {
  max-height: 240px;
  overflow-y: auto;
  padding-right: 0.5rem;
  margin-top: 0.5rem;
  line-height: 1.8;
}

.db-category-scroll-box::-webkit-scrollbar {
  width: 6px;
}

.db-category-scroll-box::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.04);
  border-radius: 4px;
}

.db-category-scroll-box::-webkit-scrollbar-thumb {
  background: var(--accent-secondary);
  border-radius: 4px;
  box-shadow: 0 0 8px rgba(69, 243, 177, 0.4);
}

.db-tab-btn.is-active {
  background: var(--gradient-brand) !important;
  color: #040510 !important;
  font-weight: 700 !important;
  box-shadow: 0 4px 20px rgba(69, 243, 177, 0.4);
  border-color: transparent !important;
}

/* ═══════ 5-in-1 Restrictor Gate Showcase ═══════ */
.gate-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.8rem;
  max-width: var(--site-width);
  margin: 0 auto;
}

@media (max-width: 900px) {
  .gate-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .gate-grid { grid-template-columns: 1fr; }
}

.gate-showcase-card {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1.8rem;
  border-top: 3px solid rgba(255,255,255,0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.gate-showcase-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.35);
}

/* Accent colors per gate type */
.accent-square    { border-top-color: #ff6b6b; }
.accent-plus      { border-top-color: #45f3b1; }
.accent-circle    { border-top-color: #a78bfa; }
.accent-horizontal{ border-top-color: #38bdf8; }
.accent-vertical  { border-top-color: #fbbf24; }
.accent-octagonal { border-top-color: #f472b6; }

.gate-card-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.95rem 1.2rem;
  border-radius: 0.95rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3), inset 0 1px 1px rgba(255, 255, 255, 0.12);
  transform: translateY(-2px);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.gate-showcase-card:hover .gate-card-header {
  transform: translateY(-4px);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.4), inset 0 1px 1px rgba(255, 255, 255, 0.2);
}

.gate-icon-box {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.7rem;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.accent-square .gate-card-header    { border-color: rgba(255,107,107,0.35); box-shadow: 0 6px 20px rgba(0,0,0,0.3), 0 0 15px rgba(255,107,107,0.12); }
.accent-plus .gate-card-header      { border-color: rgba(69,243,177,0.35); box-shadow: 0 6px 20px rgba(0,0,0,0.3), 0 0 15px rgba(69,243,177,0.12); }
.accent-circle .gate-card-header    { border-color: rgba(167,139,250,0.35); box-shadow: 0 6px 20px rgba(0,0,0,0.3), 0 0 15px rgba(167,139,250,0.12); }
.accent-horizontal .gate-card-header{ border-color: rgba(56,189,248,0.35); box-shadow: 0 6px 20px rgba(0,0,0,0.3), 0 0 15px rgba(56,189,248,0.12); }
.accent-vertical .gate-card-header  { border-color: rgba(251,191,36,0.35); box-shadow: 0 6px 20px rgba(0,0,0,0.3), 0 0 15px rgba(251,191,36,0.12); }
.accent-octagonal .gate-card-header { border-color: rgba(244,114,182,0.35); box-shadow: 0 6px 20px rgba(0,0,0,0.3), 0 0 15px rgba(244,114,182,0.12); }

.accent-square .gate-icon-box    { color: #ff6b6b; border-color: rgba(255,107,107,0.4); }
.accent-plus .gate-icon-box      { color: #45f3b1; border-color: rgba(69,243,177,0.4); }
.accent-circle .gate-icon-box    { color: #a78bfa; border-color: rgba(167,139,250,0.4); }
.accent-horizontal .gate-icon-box{ color: #38bdf8; border-color: rgba(56,189,248,0.4); }
.accent-vertical .gate-icon-box  { color: #fbbf24; border-color: rgba(251,191,36,0.3); }
.accent-octagonal .gate-icon-box { color: #f472b6; border-color: rgba(244,114,182,0.3); }

.gate-tag {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-soft);
  font-weight: 600;
}

.gate-card-header h3 {
  font-family: var(--title-font);
  font-size: 1.25rem;
  margin: 0;
  color: var(--ink);
}

.gate-card-desc {
  font-size: 0.88rem;
  color: var(--ink-soft);
  line-height: 1.55;
  margin: 0;
  flex: 1;
}

.gate-card-footer {
  font-size: 0.82rem;
  color: var(--ink-soft);
  padding-top: 0.75rem;
  border-top: 1px solid rgba(255,255,255,0.06);
}

.gate-card-footer strong {
  color: var(--ink);
}

/* ═══════ Gate Games Box with Custom Glowing Sliders ═══════ */
.gate-game-list {
  height: 165px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--accent-secondary) rgba(255, 255, 255, 0.04);
  padding-right: 0.6rem;
  margin-top: 0.6rem;
  line-height: 1.75;
  font-size: 0.86rem;
  color: var(--ink-soft);
  word-break: break-word;
}

.gate-game-list::-webkit-scrollbar {
  display: block;
  width: 6px;
}

.gate-game-list::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.04);
  border-radius: 6px;
}

.gate-game-list::-webkit-scrollbar-thumb {
  background: var(--accent-secondary);
  border-radius: 6px;
  box-shadow: 0 0 10px rgba(69, 243, 177, 0.5);
}

.gate-game-list::-webkit-scrollbar-thumb:hover {
  background: #6effca;
}

/* ═══════ Uniform 6-Gate Interactive Video Docks ═══════ */
.gate-video-dock {
  margin-top: 0.8rem;
  margin-bottom: 0.8rem;
  border-radius: 0.75rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px dashed rgba(255, 255, 255, 0.15);
  padding: 0.6rem;
  transition: all 0.25s ease;
}

.gate-video-dock:hover, .gate-video-dock.is-dragging {
  border-color: var(--accent-secondary);
  background: rgba(69, 243, 177, 0.04);
}

.gate-video-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 0.5rem;
  overflow: hidden;
  background: rgba(6, 7, 20, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
}

.gate-video-preview {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: none;
}

.gate-video-stage.is-loaded .gate-video-preview {
  display: block;
}

.gate-video-stage.is-loaded .gate-video-empty {
  display: none;
}

.gate-video-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  text-align: center;
  padding: 0.5rem;
}

.gate-video-empty svg {
  color: var(--accent-secondary);
}

.gate-video-empty strong {
  font-size: 0.82rem;
  color: var(--ink);
}

.gate-video-empty span {
  font-size: 0.72rem;
  color: var(--ink-soft);
}

.gate-video-actions {
  display: flex;
  gap: 0.4rem;
  margin-top: 0.35rem;
}

.gate-video-caption-box {
  margin-top: 0.5rem;
}

.gate-video-caption-input {
  width: 100%;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 0.4rem;
  padding: 0.4rem 0.6rem;
  color: var(--ink);
  font-family: inherit;
  font-size: 0.78rem;
  outline: none;
  transition: border-color 0.2s ease;
}

.gate-video-caption-input:focus {
  border-color: var(--accent-secondary);
  box-shadow: 0 0 8px rgba(69, 243, 177, 0.2);
}

/* Video Demo Showcase Page (Larger Docks & Centered Viewport Fit) */
.video-demo-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 5rem 2.2rem;
  margin-top: 0;
  margin-bottom: 5rem;
}

.video-demo-grid .video-dock {
  height: clamp(440px, calc(100vh - 145px), 600px);
  min-height: 440px;
  max-height: 600px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 1.4rem 1.6rem;
  box-sizing: border-box;
}

.video-demo-grid .video-stage {
  flex: 1;
  width: 100%;
  min-height: 280px !important;
  max-height: none !important;
  height: 100% !important;
}

@media (max-width: 992px) {
  .video-demo-grid {
    grid-template-columns: 1fr;
  }
}

/* ═══════ Home Page Hero Video Dock (Tiny Bit Smaller Fit) ═══════ */
.hero-interactive-dock {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.hero-interactive-dock .video-dock {
  padding: 1.6rem 1.8rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  box-sizing: border-box;
}

.hero-interactive-dock .video-stage {
  flex: 1;
  width: 100%;
  min-height: 300px !important;
  max-height: none !important;
  height: 100% !important;
}

/* ═══════ Order Page Proportional Above-The-Fold Layout ($100 & $200 Options Fit) ═══════ */
.page-order main#top {
  padding-top: 7.8rem;
}

.page-order .section-pricing {
  padding-top: 0.5rem;
  margin-top: 0;
}

.page-order .section-heading {
  margin-bottom: 1.2rem;
  text-align: center;
}

.page-order .section-heading .eyebrow {
  font-size: 0.75rem;
  margin-bottom: 0.2rem;
}

.page-order .section-heading h2 {
  font-size: 1.5rem;
  margin: 0 0 0.4rem;
}

.page-order .section-heading p {
  font-size: 0.88rem;
  max-width: 680px;
  margin: 0 auto;
  line-height: 1.35;
}

.page-order .pricing-cards-grid {
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
  margin-bottom: 3.5rem;
}

.page-order .pricing-card {
  padding: 1.25rem 1.5rem;
  min-height: auto;
}

.page-order .pricing-header h3 {
  font-size: 1.3rem;
  margin: 0.2rem 0 0.4rem;
}

.page-order .pricing-cost {
  margin-bottom: 0.6rem;
  gap: 0.2rem;
}

.page-order .pricing-cost .currency {
  font-size: 1.4rem;
}

.page-order .pricing-cost .amount {
  font-size: 2.5rem;
}

.page-order .pricing-cost .period {
  font-size: 0.78rem;
}

.page-order .pricing-desc {
  font-size: 0.85rem;
  margin-bottom: 0.8rem;
  line-height: 1.35;
}

.page-order .pricing-features {
  margin: 0 0 1rem;
  gap: 0.45rem;
  font-size: 0.85rem;
}

.page-order .is-checkout-disabled {
  cursor: not-allowed;
  filter: saturate(0.55);
  opacity: 0.72;
}

.page-order .checkout-status {
  max-width: 760px;
  margin: -2.2rem auto 2.2rem;
  padding: 0.8rem 1rem;
  border-color: rgba(251, 191, 36, 0.42);
  color: #ffe7a3;
  text-align: center;
}

@media (max-width: 768px) {
  .page-order .pricing-cards-grid {
    grid-template-columns: 1fr;
  }
}

/* ═══════ Video Demo Page — explicit clearance & vertical centering ═══════ */
.page-video-demo main#top {
  padding-top: 8.8rem !important;
  padding-bottom: 5rem;
}

.page-video-demo .section {
  padding-top: 0;
}

.page-video-demo .section-heading {
  margin-bottom: 1.2rem;
  text-align: center;
}

.video-demo-card {
  padding: 1.5rem 1.8rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 440px;
  box-sizing: border-box;
}

.video-demo-card .video-stage {
  min-height: 300px !important;
  max-height: 360px !important;
  height: 100%;
  width: 100%;
}


/* ═══════ Standardized Site Footer System (Identical Spacing Across All Pages) ═══════ */
.site-footer {
  width: 100%;
  padding: 3.5rem 0 2.5rem;
  margin-top: 3.5rem;
  border-top: 1px solid var(--glass-border);
  background: rgba(6, 7, 20, 0.75);
}

.footer-inner {
  max-width: var(--site-width);
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.8rem;
  text-align: center;
}

.footer-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2.2rem;
  flex-wrap: wrap;
}

.footer-nav a {
  color: var(--ink-soft);
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-nav a:hover {
  color: var(--accent-secondary);
}

.footer-copyright {
  color: var(--ink-soft);
  font-size: 0.85rem;
  opacity: 0.8;
}

@media (min-width: 768px) {
  .footer-inner {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

/* Permanent optimized video guides */
.featured-video-card,
.guide-video-card {
  overflow: hidden;
}

.featured-video-card {
  height: 100%;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  box-sizing: border-box;
}

.featured-video-header,
.guide-video-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.featured-video-header h2,
.guide-video-header h2 {
  margin: 0.2rem 0 0;
  font-family: var(--title-font);
  color: var(--ink);
  line-height: 1.15;
}

.featured-video-header h2 {
  font-size: clamp(1.3rem, 2.1vw, 1.75rem);
}

.featured-video-description,
.guide-video-description {
  color: var(--ink-soft);
  line-height: 1.55;
  margin: 0;
}

.featured-video-stage,
.guide-video-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 0.9rem;
  overflow: hidden;
  background: #030611;
  border: 1px solid rgba(87, 227, 255, 0.2);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.34);
}

.video-runtime-badge {
  position: absolute;
  top: 0.65rem;
  right: 0.65rem;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  min-height: 1.8rem;
  padding: 0.25rem 0.58rem;
  border: 1px solid rgba(69, 243, 177, 0.42);
  border-radius: 999px;
  background: rgba(3, 6, 17, 0.9);
  color: var(--accent-secondary);
  box-shadow: 0 5px 18px rgba(0, 0, 0, 0.48);
  font-size: 0.75rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
  line-height: 1;
  pointer-events: none;
}

.featured-video-player,
.guide-video-player {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #030611;
}

.featured-video-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  color: var(--ink-soft);
  font-size: 0.86rem;
}

.featured-video-footer a {
  color: var(--accent-secondary);
  font-weight: 700;
  text-decoration: none;
}

.featured-video-footer a:hover,
.featured-video-footer a:focus-visible {
  text-decoration: underline;
}

.guide-duration {
  flex: 0 0 auto;
  padding: 0.35rem 0.65rem;
  border: 1px solid rgba(87, 227, 255, 0.28);
  border-radius: 999px;
  color: var(--accent-secondary);
  background: rgba(10, 25, 48, 0.75);
  font-size: 0.78rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.video-guide-section {
  padding-top: 0;
}

.video-guide-heading {
  max-width: 820px;
  margin-inline: auto;
}

.video-guide-heading h1 {
  margin: 0.3rem 0 0.65rem;
  font-family: var(--title-font);
  font-size: clamp(1.85rem, 4vw, 3rem);
  line-height: 1.1;
}

.video-guide-heading p {
  margin: 0;
  color: var(--ink-soft);
  line-height: 1.6;
}

.video-guide-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.6rem;
  align-items: start;
  margin: 2rem 0 1rem;
}

.guide-video-card {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  scroll-margin-top: 8.5rem;
}

.guide-video-card-featured {
  grid-column: 1 / -1;
  padding: 1.5rem;
}

.guide-video-card-featured .guide-video-stage {
  max-width: 980px;
  margin-inline: auto;
}

.guide-video-header h2 {
  font-size: clamp(1.15rem, 2vw, 1.5rem);
}

.guide-transcript {
  border-top: 1px solid rgba(255, 255, 255, 0.09);
  padding-top: 0.75rem;
  color: var(--ink-soft);
}

.page-order .local-purchase-test {
  min-height: 1.2rem;
  margin: -1.7rem auto 2.2rem;
  text-align: center;
  font-size: 0.8rem;
}

.page-order .local-purchase-test a {
  color: var(--accent-secondary);
  font-weight: 700;
}

.page-order .local-purchase-test a[hidden] {
  display: none;
}

.guide-transcript summary {
  width: fit-content;
  color: var(--accent-secondary);
  font-weight: 700;
  cursor: pointer;
}

.guide-transcript summary:focus-visible {
  outline: 2px solid var(--accent-secondary);
  outline-offset: 4px;
  border-radius: 0.2rem;
}

.guide-transcript p,
.guide-transcript-copy {
  margin: 0.8rem 0 0;
  line-height: 1.65;
}

.guide-transcript-copy p + p {
  margin-top: 0.8rem;
}

@supports (content-visibility: auto) {
  .guide-video-card:not(.guide-video-card-featured) {
    content-visibility: auto;
    contain-intrinsic-size: auto 520px;
  }
}

@media (max-width: 900px) {
  .video-guide-grid {
    grid-template-columns: 1fr;
  }

  .guide-video-card-featured {
    grid-column: auto;
  }
}

@media (max-width: 600px) {
  .featured-video-card,
  .guide-video-card,
  .guide-video-card-featured {
    padding: 1rem;
  }

  .featured-video-footer {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.35rem;
  }

  .video-guide-grid {
    gap: 1rem;
  }
}

/* Keep the featured Video Demo completely inside the first viewport. */
.page-video-demo main#top {
  padding-top: calc(109.5px + clamp(0.5rem, 1.6vh, 1.25rem)) !important;
}

.page-video-demo .video-guide-heading {
  max-width: var(--site-width);
  margin-bottom: clamp(0.5rem, 1.5vh, 1rem);
}

.page-video-demo .video-guide-heading .eyebrow {
  margin-bottom: 0.2rem;
}

.page-video-demo .video-guide-heading h1 {
  margin: 0.1rem 0 0.35rem;
  font-size: clamp(1.6rem, 2.6vw, 2.5rem);
  line-height: 1.05;
}

.page-video-demo .video-guide-heading p {
  font-size: clamp(0.86rem, 1.2vw, 1rem);
  line-height: 1.3;
}

.page-video-demo .video-guide-grid {
  margin-top: 0;
}

.page-video-demo .guide-video-card-featured {
  min-height: calc(100svh - 15rem);
  justify-content: center;
  padding: clamp(0.85rem, 1.5vh, 1.25rem);
  gap: clamp(0.35rem, 0.8vh, 0.65rem);
}

.page-video-demo .guide-video-card-featured .guide-video-description {
  line-height: 1.35;
}

.page-video-demo .guide-video-card-featured .guide-transcript {
  padding-top: 0.5rem;
}

@media (min-width: 769px) {
  .page-video-demo .video-guide-heading h1,
  .page-video-demo .video-guide-heading p {
    white-space: nowrap;
  }
}

@media (max-height: 900px) and (min-width: 769px) {
  .page-video-demo .guide-video-card-featured .guide-video-stage {
    max-width: min(600px, 100%);
  }
}

@media (max-width: 768px) {
  .page-video-demo main#top {
    padding-top: 11.5rem !important;
  }

  .page-video-demo .guide-video-card-featured {
    min-height: calc(100svh - 20rem);
  }
}


/* ---------- Home hero: hook panel (replaced the featured video on 2026-10-15) ---------- */
.hero-hooks {
  height: 100%;
  padding: 1.5rem 1.6rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1rem;
  box-sizing: border-box;
}
.hero-hooks-header h2 {
  margin: 0.25rem 0 0;
  font-family: var(--title-font);
  font-size: clamp(1.7rem, 3vw, 2.5rem);
  line-height: 1.1;
}
.hero-hooks-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.7rem;
}
.hero-hooks-list .hook {
  position: relative;
  padding: 0.55rem 0.9rem 0.55rem 1.1rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.07);
  color: var(--ink);
  font-size: clamp(0.9rem, 1.15vw, 1.02rem);
  line-height: 1.45;
}
.hero-hooks-list .hook::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.6rem;
  bottom: 0.6rem;
  width: 4px;
  border-radius: 4px;
  background: var(--accent-secondary);
}
.hero-hooks-list .hook strong {
  color: #fff;
  font-weight: 700;
}
.hero-hooks-list .hook-plus::before { background: #ff9f43; }
.hero-hooks-list .hook-square::before { background: #a29bfe; }
.hero-hooks-list .hook-circle::before { background: #55efc4; }
.hero-hooks-list .hook-vertical::before { background: #74b9ff; }
.hero-hooks-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}
.hero-hooks-tag {
  font-family: var(--title-font);
  letter-spacing: 0.04em;
  color: var(--accent-secondary);
  font-weight: 600;
}
.hero-hooks-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}
@media (max-width: 900px) {
  .hero-hooks { padding: 1.2rem 1.1rem; }
  .hero-hooks-list .hook { font-size: 0.95rem; }
}


/* ---------- Product sections (2026-10-15): how it works, gate demo, app gallery, needs + FAQ ---------- */
.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.step-card { padding: 1.5rem 1.6rem; display: flex; flex-direction: column; gap: 0.5rem; }
.step-num { font-family: var(--title-font); font-size: 2rem; line-height: 1; background: var(--gradient-brand); -webkit-background-clip: text; background-clip: text; color: transparent; }
.step-card h3 { margin: 0.2rem 0 0; font-family: var(--title-font); font-size: 1.15rem; color: var(--ink); }
.step-card p { margin: 0; color: var(--ink-soft); line-height: 1.5; }

.frontend-strip { margin-top: 1.4rem; padding: 1.3rem 1.6rem; display: grid; grid-template-columns: minmax(240px, 1fr) 2fr; gap: 1.2rem; align-items: center; }
.frontend-strip-copy p { margin: 0.35rem 0 0; color: var(--ink-soft); line-height: 1.5; }
.frontend-pills { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.frontend-pills li { padding: 0.45rem 0.9rem; border-radius: 999px; border: 1px solid var(--glass-border); background: rgba(255,255,255,0.04); color: var(--ink); font-weight: 600; font-size: 0.92rem; }

.gate-demo-grid { display: grid; grid-template-columns: minmax(300px, 1fr) minmax(280px, 1fr); gap: 1.4rem; align-items: stretch; }
.gate-demo { margin: 0; padding: 1.2rem; display: flex; flex-direction: column; align-items: center; gap: 0.8rem; overflow: hidden; }
.gate-demo-svg { width: min(100%, 420px); height: auto; overflow: hidden; border-radius: var(--radius-md); }
.gate-demo-svg .servo rect { fill: #1a2148; }
.gate-demo-svg .plate { transform-box: view-box; will-change: transform; }
.gate-demo-svg .plate-plus { transform-origin: 54px 43px; transform: rotate(-112deg); animation: plate-plus 24s linear infinite; }
.gate-demo-svg .plate-square { transform-origin: 306px 43px; transform: rotate(112deg); animation: plate-square 24s linear infinite; }
.gate-demo-svg .plate-horizontal { transform-origin: 54px 317px; transform: rotate(112deg); animation: plate-horizontal 24s linear infinite; }
.gate-demo-svg .plate-vertical { transform-origin: 306px 317px; transform: rotate(-112deg); animation: plate-vertical 24s linear infinite; }
/* 5 states x 20%: circle 0-20, plus 20-40, square 40-60, horizontal 60-80, vertical 80-100. Swing takes 3%. */
@keyframes plate-plus { 0%,19% { transform: rotate(-112deg); } 22%,38% { transform: rotate(0deg); } 41%,100% { transform: rotate(-112deg); } }
@keyframes plate-square { 0%,41% { transform: rotate(112deg); } 44%,58% { transform: rotate(0deg); } 61%,100% { transform: rotate(112deg); } }
@keyframes plate-horizontal { 0%,61% { transform: rotate(112deg); } 64%,78% { transform: rotate(0deg); } 81%,100% { transform: rotate(112deg); } }
@keyframes plate-vertical { 0%,81% { transform: rotate(-112deg); } 84%,97% { transform: rotate(0deg); } 100% { transform: rotate(-112deg); } }
.gate-demo-svg .ball { animation: ball-wobble 24s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
@keyframes ball-wobble { 0%,100% { transform: translate(0,0); } 10% { transform: translate(6px,-5px); } 30% { transform: translate(0,-7px); } 50% { transform: translate(7px,7px); } 70% { transform: translate(-8px,0); } 90% { transform: translate(0,8px); } }
.gate-demo-caption { position: relative; width: 100%; min-height: 3.2rem; text-align: center; color: var(--ink-soft); font-size: 0.95rem; }
.gate-label { position: absolute; inset: 0; opacity: 0; animation: gate-label 24s linear infinite; }
.gate-label strong { color: var(--ink); font-family: var(--title-font); letter-spacing: 0.04em; margin-right: 0.3rem; }
.gate-label-circle { animation-delay: 0s; }
.gate-label-plus { animation-delay: 4.8s; }
.gate-label-square { animation-delay: 9.6s; }
.gate-label-horizontal { animation-delay: 14.4s; }
.gate-label-vertical { animation-delay: 19.2s; }
@keyframes gate-label { 0% { opacity: 0; } 2%,18% { opacity: 1; } 20%,100% { opacity: 0; } }
.gate-demo-note { font-size: 0.78rem; color: var(--ink-muted); letter-spacing: 0.04em; text-transform: uppercase; }
.gate-demo-copy { padding: 1.5rem 1.6rem; display: flex; flex-direction: column; gap: 1rem; justify-content: space-between; }
.checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.65rem; }
.checklist li { position: relative; padding-left: 1.6rem; color: var(--ink-soft); line-height: 1.5; }
.checklist li::before { content: "\2713"; position: absolute; left: 0; top: 0; color: var(--accent-secondary); font-weight: 700; }
.checklist li strong { color: var(--ink); }
@media (prefers-reduced-motion: reduce) {
  .gate-demo-svg .plate, .gate-demo-svg .ball, .gate-label { animation: none !important; }
  .gate-demo-svg .plate-plus { transform: rotate(0deg); }
  .gate-label-plus { opacity: 1; }
}

.app-gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.app-shot { margin: 0; padding: 0.7rem; display: flex; flex-direction: column; gap: 0.6rem; }
.app-shot a { display: block; border-radius: var(--radius-sm); overflow: hidden; border: 1px solid var(--glass-border); background: #000; }
.app-shot img { display: block; width: 100%; height: auto; transition: transform 0.35s ease; }
.app-shot a:hover img, .app-shot a:focus-visible img { transform: scale(1.03); }
.app-shot figcaption { color: var(--ink-soft); font-size: 0.92rem; line-height: 1.45; padding: 0 0.3rem 0.3rem; }
.app-shot figcaption strong { color: var(--ink); }

.needs-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; margin-bottom: 1.6rem; }
.needs-card { padding: 1.5rem 1.6rem; }
.needs-card h3 { margin: 0 0 0.9rem; font-family: var(--title-font); font-size: 1.15rem; color: var(--ink); }
.needs-card-accent { border-color: var(--glass-border-glow); box-shadow: var(--shadow-glow); }
.faq-list { display: grid; gap: 0.7rem; }
.faq-item { padding: 0; overflow: hidden; }
.faq-item summary { cursor: pointer; list-style: none; padding: 1rem 1.3rem; font-weight: 700; color: var(--ink); display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-family: var(--title-font); color: var(--accent-secondary); font-size: 1.2rem; transition: transform 0.25s ease; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { margin: 0; padding: 0 1.3rem 1.1rem; color: var(--ink-soft); line-height: 1.55; }
.section-cta { display: flex; flex-wrap: wrap; gap: 0.8rem; justify-content: center; margin-top: 1.8rem; }

@media (max-width: 980px) {
  .steps-grid, .app-gallery { grid-template-columns: 1fr 1fr; }
  .gate-demo-grid, .frontend-strip, .needs-grid { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  .steps-grid, .app-gallery { grid-template-columns: 1fr; }
}


/* ---------- Store-grade pass (2026-10-15): video slot, trust strip, specs table, policies ---------- */
.section-video-slot { margin-top: 0; }
.video-slot { padding: 0.9rem; }
.video-slot-placeholder { position: relative; aspect-ratio: 16 / 9; min-height: 42vh; border-radius: var(--radius-md); overflow: hidden; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1rem; text-align: center; padding: 2rem;
  background: radial-gradient(60% 80% at 50% 50%, rgba(140,97,255,0.22), transparent 70%), repeating-linear-gradient(135deg, rgba(255,255,255,0.03) 0 12px, transparent 12px 24px), #070a1c; border: 1px dashed rgba(255,255,255,0.18); }
.video-slot-badge { position: absolute; top: 1rem; left: 1rem; padding: 0.35rem 0.8rem; border-radius: 999px; background: rgba(255,77,109,0.18); border: 1px solid rgba(255,77,109,0.5); color: #ffb3c1; font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 700; }
.video-slot-badge::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--accent-danger); margin-right: 0.5rem; animation: rec-blink 1.4s ease-in-out infinite; }
@keyframes rec-blink { 0%,100% { opacity: 1; } 50% { opacity: 0.25; } }
.video-slot-play { width: 84px; height: 84px; border-radius: 50%; border: 2px solid rgba(255,255,255,0.35); background: rgba(255,255,255,0.06); position: relative; }
.video-slot-play::after { content: ""; position: absolute; left: 34px; top: 26px; border-left: 26px solid var(--ink); border-top: 16px solid transparent; border-bottom: 16px solid transparent; }
.video-slot-text { margin: 0; font-family: var(--title-font); font-size: clamp(1.2rem, 2.4vw, 1.9rem); color: var(--ink); line-height: 1.3; }
.video-slot-text span { display: block; margin-top: 0.6rem; font-family: var(--body-font); font-size: 1rem; color: var(--ink-soft); max-width: 46rem; }
.video-slot-player { display: block; width: 100%; height: auto; border-radius: var(--radius-md); background: #000; }

.trust-strip { list-style: none; margin: 1.6rem 0 0.6rem; padding: 0.9rem 1rem; display: grid; grid-template-columns: repeat(5, 1fr); gap: 0.8rem; }
.trust-strip li { display: flex; flex-direction: column; gap: 0.15rem; padding: 0.4rem 0.6rem; border-left: 3px solid var(--accent-secondary); }
.trust-strip strong { color: var(--ink); font-size: 0.95rem; }
.trust-strip span { color: var(--ink-soft); font-size: 0.82rem; line-height: 1.35; }
.trust-note { text-align: center; color: var(--ink-soft); font-size: 0.92rem; margin: 0 0 1.6rem; }
.trust-note a { color: var(--accent-secondary); }

.specs-block { padding: 1.4rem 1.5rem; margin-bottom: 1.6rem; }
.section-heading-tight { margin-bottom: 1rem; }
.specs-scroll { overflow-x: auto; }
.specs-table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.specs-table th, .specs-table td { padding: 0.7rem 0.8rem; border-top: 1px solid var(--glass-border); text-align: left; vertical-align: top; color: var(--ink-soft); }
.specs-table thead th { border-top: none; color: var(--ink); font-family: var(--title-font); font-size: 0.95rem; }
.specs-table thead th span { display: block; font-family: var(--body-font); color: var(--accent-secondary); font-size: 1.1rem; margin-top: 0.2rem; }
.specs-table tbody th { color: var(--ink); font-weight: 600; width: 28%; }
.specs-table td { color: var(--ink-soft); }
.specs-table tbody tr:nth-child(odd) { background: rgba(255,255,255,0.025); }

.policies .section-heading a { color: var(--accent-secondary); }
.policy-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
.policy-card { padding: 1.5rem 1.6rem; }
.policy-card h2 { margin: 0 0 0.9rem; font-family: var(--title-font); font-size: 1.25rem; color: var(--ink); }
.policy-wide { grid-column: 1 / -1; }
.policy-updated { margin: 1rem 0 0; color: var(--ink-muted); font-size: 0.85rem; }

@media (max-width: 980px) { .trust-strip { grid-template-columns: repeat(2, 1fr); } .policy-grid { grid-template-columns: 1fr; } .video-slot-placeholder { min-height: 34vh; } }
@media (max-width: 620px) { .trust-strip { grid-template-columns: 1fr; } }


/* ---------- Launch pass (2026-10-15): download / thank-you pages, compact mobile nav ---------- */
.download-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; margin-bottom: 1.2rem; }
.download-card, .download-steps, .download-req { padding: 1.5rem 1.6rem; }
.download-card { display: flex; flex-direction: column; gap: 0.9rem; }
.download-meta { display: flex; flex-wrap: wrap; gap: 0.6rem 1.2rem; align-items: baseline; }
.download-version { font-family: var(--title-font); color: var(--accent-secondary); font-size: 1.1rem; }
.download-os { color: var(--ink-soft); font-size: 0.9rem; }
.download-button { font-size: 1.05rem; padding: 0.95rem 1.4rem; text-align: center; }
.download-note { margin: 0; color: var(--ink-soft); font-size: 0.92rem; line-height: 1.5; }
.download-note a { color: var(--accent-secondary); }
.download-warn { padding: 0.8rem 0.9rem; border-radius: var(--radius-sm); background: rgba(255,215,109,0.08); border: 1px solid rgba(255,215,109,0.35); }
.download-warn strong, .download-warn em { color: var(--ink); font-style: normal; }
.download-steps h2, .download-req h2 { margin: 0 0 0.9rem; font-family: var(--title-font); font-size: 1.15rem; color: var(--ink); }
.steps-list { margin: 0 0 1.2rem; padding-left: 1.3rem; display: grid; gap: 0.6rem; color: var(--ink-soft); line-height: 1.5; }
.steps-list strong { color: var(--ink); }
.download-req { margin-bottom: 0.4rem; }
@media (max-width: 900px) { .download-grid { grid-template-columns: 1fr; } }

/* Phones: keep the three nav links on one row so the fixed header never covers the page title */
@media (max-width: 560px) {
  .site-nav .nav-link { padding: 0.5rem 0.7rem; font-size: 0.78rem; letter-spacing: 0.02em; }
  .site-nav .nav-icon { display: none; }
}
