/* ==========================================================================
   WAYORA — The Highway Intelligence & Expedition Safety Platform
   Aesthetic Architecture Inspired by Velmax (velmax.llc):
   - Luxury Dark Monochrome / Near-Black Palette
   - Instrument Serif + Inter Tight + JetBrains Mono Typography
   - Dynamic WebGL/Canvas Particle Dot Matrix Radar Field
   - Live Classifier Cursor with Telemetry Badge & Magnetic Physics
   - Conic-Gradient Rotating Glow Buttons & Sweeping Light Sheens
   - Spotlight Mouse Glow Cards with Responsive Bento Architecture
   ========================================================================== */

@property --ang {
  syntax: '<angle>';
  inherits: false;
  initial-value: 0deg;
}

@property --p {
  syntax: '<number>';
  inherits: false;
  initial-value: 0;
}

:root {
  --ink: #05070b;
  --ink-2: #090d14;
  --ink-3: #0e131c;
  --ink-4: #151c28;
  --line: rgba(170, 195, 235, 0.12);
  --line-2: rgba(170, 195, 235, 0.22);
  --line-glow: rgba(0, 170, 255, 0.4);
  
  --text: #e8edf5;
  --soft: #b4bfcf;
  --muted: #8591a6;
  --faint: #566175;

  --signal: #00aaff;
  --signal-deep: #0a4ea3;
  --signal-hi: #2de2ff;
  --on-signal: #00131f;
  
  --warn: #ffb46b;
  --danger: #ef4444;
  --emerald: #10b981;

  --f-serif: 'Instrument Serif', Georgia, serif;
  --f-sans: 'Inter Tight', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --f-mono: 'JetBrains Mono', SFMono-Regular, Menlo, Monaco, Consolas, monospace;

  --gutter: clamp(16px, 3.2vw, 44px);
  --maxw: 1360px;
  --r: 6px;
  --r-lg: 16px;
  --r-xl: 24px;
  --r-full: 9999px;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-io: cubic-bezier(0.65, 0, 0.35, 1);

  color-scheme: dark;
}

/* Light Mode Overrides (Pure White Background & Deep Black Text) */
[data-theme="light"] {
  --ink: #ffffff;
  --ink-2: #f8fafc;
  --ink-3: #f1f5f9;
  --ink-4: #e2e8f0;
  --line: rgba(0, 0, 0, 0.08);
  --line-2: rgba(0, 0, 0, 0.15);
  --line-glow: rgba(0, 119, 204, 0.25);

  --text: #05070b;
  --soft: #1e293b;
  --muted: #475569;
  --faint: #64748b;

  --signal: #0066cc;
  --signal-deep: #004499;
  --signal-hi: #0088ff;
  --on-signal: #ffffff;

  color-scheme: light;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

body {
  background: var(--ink);
  color: var(--text);
  font-family: var(--f-sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
  text-rendering: optimizeLegibility;
  position: relative;
  transition: background-color 0.4s var(--ease-out), color 0.4s var(--ease-out);
}

/* Static Film Grain Overlay */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 90;
  pointer-events: none;
  opacity: 0.045;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Typography Utilities */
.mono {
  font-family: var(--f-mono);
  font-feature-settings: "zero" 0;
}

.wrap {
  width: min(100% - 2 * var(--gutter), var(--maxw));
  margin-inline: auto;
}

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

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

::selection {
  background: var(--signal);
  color: var(--on-signal);
}

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

/* ==========================================================================
   INTERACTIVE VIDEO BACKGROUND (REPLACES CANVAS DOT MATRIX)
   ========================================================================== */
.video-bg-container {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  background: #05070b;
}

.video-bg-player {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  transform: translate(-50%, -50%) scale(1.05);
  object-fit: cover;
  opacity: 0.95;
  filter: contrast(1.12) brightness(1.1) saturate(1.2);
  transition: opacity 0.6s var(--ease-out), filter 0.6s;
  will-change: transform, filter;
}

/* Interactive Hover Aperture: Follows cursor with glowing radial illumination */
.video-hover-aperture {
  position: absolute;
  inset: 0;
  background: radial-gradient(
    600px circle at var(--vx, 50%) var(--vy, 45%),
    rgba(45, 226, 255, 0.28) 0%,
    rgba(0, 170, 255, 0.1) 40%,
    transparent 70%
  );
  pointer-events: none;
  mix-blend-mode: screen;
  transition: opacity 0.3s var(--ease-out);
  will-change: background;
}

/* Gentle Luxury Vignette: Edge falloff only, keeping video center and India fully vivid */
.video-bg-vignette {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 50% 50%, transparent 35%, rgba(5, 7, 11, 0.42) 80%, var(--ink) 100%),
    linear-gradient(to bottom, transparent 65%, var(--ink) 100%);
  pointer-events: none;
}

/* Tactical Coordinates Grid Overlay */
.video-bg-grid {
  position: absolute;
  inset: 0;
  background-size: 52px 52px;
  background-image:
    linear-gradient(to right, rgba(170, 195, 235, 0.025) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(170, 195, 235, 0.025) 1px, transparent 1px);
  pointer-events: none;
  opacity: 0.75;
}

/* Light Mode Video Tuning */
[data-theme="light"] .video-bg-player {
  opacity: 0.32;
  filter: contrast(1.1) brightness(1.15) invert(0.08);
}

[data-theme="light"] .video-bg-vignette {
  background:
    radial-gradient(ellipse at center, rgba(245, 247, 251, 0.3) 0%, rgba(245, 247, 251, 0.88) 75%, var(--ink) 100%),
    linear-gradient(to bottom, rgba(245, 247, 251, 0.72) 0%, rgba(245, 247, 251, 0.35) 40%, rgba(245, 247, 251, 0.92) 80%, var(--ink) 100%);
}


/* ==========================================================================
   LIVE RADAR CLASSIFIER CURSOR
   ========================================================================== */
.cursor {
  position: fixed;
  inset: 0;
  z-index: 99999;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s;
}

.has-cursor .cursor.on {
  opacity: 1;
}

.cursor > * {
  position: absolute;
  left: 0;
  top: 0;
  will-change: transform;
}

.cursor-dot::before {
  content: "";
  position: absolute;
  left: -3px;
  top: -3px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--signal-hi);
  box-shadow: 0 0 10px rgba(45, 226, 255, 0.9);
}

.cursor-ring::before {
  content: "";
  position: absolute;
  left: -17px;
  top: -17px;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(170, 195, 235, 0.55);
  border-radius: 50%;
  transition: transform 0.4s var(--ease-out), background-color 0.3s, border-color 0.3s;
}

.cursor-ring::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  transform: translate(-50%, -50%);
  font-family: var(--f-mono);
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--on-signal);
  opacity: 0;
  transition: opacity 0.25s;
}

.cursor-tag {
  position: absolute;
  left: 0;
  top: 0;
  pointer-events: none;
  border: 1px dashed rgba(170, 195, 235, 0.45);
  border-radius: 6px;
  background: rgba(5, 7, 11, 0.82);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 6px 14px;
  white-space: nowrap;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.55);
  will-change: transform;
  transition: opacity 0.25s, border-color 0.25s;
  z-index: 2;
}

.cursor-tag-id {
  font-family: var(--f-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--signal-hi);
  text-transform: uppercase;
  line-height: 1.25;
  margin-bottom: 3px;
}

.cursor-tag-coord {
  font-family: var(--f-mono);
  font-size: 12px;
  color: #e2e8f0;
  line-height: 1.25;
  letter-spacing: 0.04em;
  font-feature-settings: "tnum" 1;
}

.cursor.m-link .cursor-tag {
  border-color: rgba(0, 170, 255, 0.65);
  background: rgba(5, 7, 11, 0.92);
}

.cursor.m-sos .cursor-tag {
  border-color: rgba(239, 68, 68, 0.7);
  background: rgba(20, 5, 5, 0.92);
}

.cursor.m-sos .cursor-tag-id {
  color: #ef4444;
}

[data-theme="light"] .cursor-tag {
  background: rgba(255, 255, 255, 0.92);
  border-color: rgba(15, 23, 42, 0.35);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

[data-theme="light"] .cursor-tag-id {
  color: #0284c7;
}

[data-theme="light"] .cursor-tag-coord {
  color: #0f172a;
}

/* Cursor Interactive Modes */
.cursor.m-link .cursor-ring::before {
  transform: scale(1.4);
  border-color: var(--signal);
  background: rgba(0, 170, 255, 0.12);
}

.cursor.m-close .cursor-ring::before {
  transform: scale(1.35);
  border-color: var(--danger);
  background: rgba(239, 68, 68, 0.18);
}

.cursor.m-close .cursor-tag {
  border-color: rgba(239, 68, 68, 0.65);
  background: rgba(20, 6, 6, 0.92);
}

.cursor.m-close .cursor-tag-id {
  color: #ef4444;
}

.cursor.m-sos .cursor-ring::before {
  transform: scale(2.2);
  border-color: var(--danger);
  background: rgba(239, 68, 68, 0.25);
  animation: radar-ping 1s infinite;
}

.cursor.m-sos .cursor-ring::after {
  content: "SOS";
  opacity: 1;
  color: #fff;
}

.cursor.m-sos .cursor-dot {
  opacity: 0;
}

.cursor.down .cursor-ring::before {
  transform: scale(0.85);
}


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

.has-cursor,
.has-cursor * {
  cursor: none !important;
}

.has-cursor input,
.has-cursor textarea {
  cursor: text !important;
}

/* ==========================================================================
   BUTTONS (VELMAX LUXURY AESTHETIC)
   ========================================================================== */
.btn {
  --bh: 50px;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  height: var(--bh);
  padding: 0 22px;
  border-radius: var(--r);
  border: 1px solid transparent;
  font-size: 14.5px;
  font-weight: 500;
  letter-spacing: -0.01em;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.3s, color 0.3s, border-color 0.3s, transform 0.3s var(--ease-out);
}

.btn-arrow {
  display: inline-block;
  transition: transform 0.4s var(--ease-out);
}

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

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  background: var(--signal);
  color: var(--on-signal);
  overflow: hidden;
  isolation: isolate;
  font-weight: 600;
}

/* Sweeping Light Across Button */
.btn-primary::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(105deg, transparent 30%, rgba(255, 255, 255, 0.6) 50%, transparent 70%);
  transform: translateX(-120%);
  transition: transform 0.8s var(--ease-out);
}

.btn-primary:hover::before {
  transform: translateX(120%);
}

.btn-primary:hover {
  background: #33bbff;
}

.btn-ghost {
  border-color: var(--line-2);
  color: var(--text);
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(10px);
}

.btn-ghost:hover {
  border-color: var(--signal);
  background: rgba(0, 170, 255, 0.09);
  color: #fff;
}

.btn-sm {
  --bh: 38px;
  padding: 0 16px;
  font-size: 13.5px;
}

/* Rotating Conic Gradient Button */
.btn-glow {
  background:
    linear-gradient(var(--ink-3), var(--ink-3)) padding-box,
    conic-gradient(from var(--ang), rgba(170, 195, 235, 0.25) 0 55%, var(--signal) 78%, var(--signal-hi) 86%, rgba(170, 195, 235, 0.25) 94%) border-box;
  color: var(--text);
  border: 1px solid transparent;
  animation: ang 4.5s linear infinite;
  backdrop-filter: blur(12px);
}

.btn-glow:hover {
  background:
    linear-gradient(#0f1c2c, #0f1c2c) padding-box,
    conic-gradient(from var(--ang), var(--signal), var(--signal-hi), var(--signal)) border-box;
  color: #fff;
}

@keyframes ang {
  to { --ang: 360deg; }
}

/* Store Badge Buttons */
.store-btn-group {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.store-badge-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  height: 52px;
  padding: 0 18px;
  border-radius: var(--r);
  background: var(--ink-2);
  border: 1px solid var(--line-2);
  color: var(--text);
  transition: all 0.3s var(--ease-out);
}

.store-badge-btn:hover {
  border-color: var(--signal);
  background: var(--ink-3);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 170, 255, 0.15);
}

.store-badge-btn svg {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

.store-badge-text {
  display: flex;
  flex-direction: column;
  text-align: left;
  line-height: 1.15;
}

.store-badge-sub {
  font-size: 9.5px;
  letter-spacing: 0.1em;
  color: var(--muted);
  text-transform: uppercase;
}

.store-badge-title {
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text);
}

/* ==========================================================================
   HEADER (GLASS DOCK WITH PROGRESS & CLOCK)
   ========================================================================== */
.hdr {
  position: fixed;
  z-index: 50;
  top: 14px;
  left: var(--gutter);
  right: var(--gutter);
  height: 60px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0 12px 0 20px;
  border-radius: 10px;
  border: 1px solid transparent;
  transition: background-color 0.4s, border-color 0.4s, transform 0.6s var(--ease-out), backdrop-filter 0.4s;
}

.hdr.scrolled {
  background: rgba(9, 13, 20, 0.72);
  border-color: var(--line);
  backdrop-filter: blur(18px) saturate(140%);
}

.hdr.away {
  transform: translateY(calc(-100% - 24px));
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  justify-self: start;
}

.brand-icon {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  object-fit: cover;
}

.brand-word {
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.22em;
  color: var(--text);
}

.brand-badge {
  font-size: 9.5px;
  padding: 2px 6px;
  border-radius: 3px;
  background: rgba(0, 170, 255, 0.16);
  border: 1px solid var(--signal);
  color: var(--signal-hi);
  font-weight: 600;
  letter-spacing: 0.08em;
}

.nav {
  display: flex;
  gap: 2px;
}

.nav a {
  position: relative;
  padding: 8px 14px;
  border-radius: 6px;
  color: var(--soft);
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: -0.01em;
  transition: color 0.25s, background-color 0.25s;
  white-space: nowrap;
}

.nav a:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
}

.hdr-right {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 16px;
}

.clock {
  font-size: 11.5px;
  letter-spacing: 0.08em;
  color: var(--muted);
  text-transform: uppercase;
  white-space: nowrap;
}

.clock b {
  color: var(--soft);
  font-weight: 500;
}

.clock i {
  font-style: normal;
  animation: blink 1s steps(1) infinite;
}

@keyframes blink {
  50% { opacity: 0.2; }
}

/* Theme Switcher Button */
.theme-btn {
  width: 36px;
  height: 36px;
  border-radius: var(--r);
  border: 1px solid var(--line-2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--soft);
  transition: all 0.25s;
}

.theme-btn:hover {
  border-color: var(--signal);
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
}

/* Ambient Sound Button & Equalizer */
.sound-btn {
  height: 36px;
  padding: 0 12px;
  border-radius: var(--r);
  border: 1px solid var(--line-2);
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--soft);
  background: transparent;
  transition: all 0.25s;
  cursor: pointer;
}

.sound-btn:hover {
  border-color: var(--signal);
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
}

.sound-btn.playing {
  border-color: rgba(0, 170, 255, 0.5);
  background: rgba(0, 170, 255, 0.08);
  color: var(--signal-hi);
}

.sound-bars {
  display: inline-flex;
  align-items: flex-end;
  gap: 2.5px;
  height: 14px;
}

.sound-bars i {
  width: 2.5px;
  height: 4px;
  background: currentColor;
  border-radius: 1px;
  transition: height 0.2s;
}

.sound-btn.playing .sound-bars i:nth-child(1) {
  animation: eqBar 1.2s ease-in-out infinite alternate;
}
.sound-btn.playing .sound-bars i:nth-child(2) {
  animation: eqBar 0.8s ease-in-out infinite alternate 0.2s;
}
.sound-btn.playing .sound-bars i:nth-child(3) {
  animation: eqBar 1.4s ease-in-out infinite alternate 0.4s;
}
.sound-btn.playing .sound-bars i:nth-child(4) {
  animation: eqBar 1.0s ease-in-out infinite alternate 0.1s;
}

@keyframes eqBar {
  0% { height: 3px; }
  100% { height: 14px; }
}

.sound-label {
  font-size: 11px;
  letter-spacing: 0.06em;
  font-weight: 600;
}

.progress {
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: -1px;
  height: 1px;
  background: linear-gradient(90deg, var(--signal-deep), var(--signal), var(--signal-hi));
  transform-origin: left;
  transform: scaleX(var(--p, 0));
  opacity: 0;
  transition: opacity 0.4s;
}

.hdr.scrolled .progress {
  opacity: 1;
}

/* ==========================================================================
   HERO SECTION (EDITORIAL TYPOGRAPHY + SHADES + HUD)
   ========================================================================== */
.hero {
  position: relative;
  min-height: max(720px, 100svh);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  isolation: isolate;
  padding-bottom: 72px;
}

.hero-shade {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(to right, rgba(5, 7, 11, 0.6) 0%, rgba(5, 7, 11, 0.2) 48%, transparent 75%),
    linear-gradient(to top, var(--ink) 0%, transparent 40%);
}

.hero-inner {
  position: relative;
  padding-top: 170px;
  padding-bottom: 50px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #fff;
  padding: 7px 16px;
  background: rgba(5, 7, 11, 0.72);
  border: 1px solid rgba(170, 195, 235, 0.28);
  border-radius: var(--r-full);
  margin-bottom: 24px;
  backdrop-filter: blur(12px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--signal);
  box-shadow: 0 0 0 0 rgba(0, 170, 255, 0.6);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  70% { box-shadow: 0 0 0 10px rgba(0, 170, 255, 0); }
  100% { box-shadow: 0 0 0 0 rgba(0, 170, 255, 0); }
}

.hero-title {
  margin: 10px 0 34px;
  font-size: clamp(3.2rem, 8.4vw, 8.8rem);
  line-height: 0.95;
  letter-spacing: -0.05em;
  font-weight: 500;
  filter: drop-shadow(0 4px 24px rgba(0, 0, 0, 0.85));
}

.hero-title .line {
  display: block;
  overflow: hidden;
  padding-bottom: 0.16em;
  margin-bottom: -0.16em;
}

.hero-title .line > span {
  display: inline-block;
  background: linear-gradient(180deg, #ffffff 40%, #c4d2e8 90%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  transition: transform 1.1s var(--ease-out);
}

.hero-title em {
  font-family: var(--f-serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.02em;
  color: var(--signal-hi);
  background: none;
  -webkit-background-clip: initial;
  text-shadow: 0 0 30px rgba(45, 226, 255, 0.4);
}

.hero-foot {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 32px 48px;
  flex-wrap: wrap;
}

.hero-lede {
  max-width: 50ch;
  margin: 0;
  font-size: clamp(1.05rem, 1.25vw, 1.22rem);
  line-height: 1.6;
  color: #d1dceb;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.9);
}

.hero-ctas {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

/* ==========================================================================
   HEADS-UP DISPLAY (HUD)
   ========================================================================== */
.hud {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 14px var(--gutter);
  border-top: 1px solid var(--line);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  background: rgba(5, 7, 11, 0.6);
  backdrop-filter: blur(10px);
  white-space: nowrap;
  overflow-x: auto;
}

.hud b {
  color: var(--text);
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}

.hud .hud-highlight {
  color: var(--signal);
}

.hud-hint {
  color: var(--soft);
}

.hud-scroll {
  margin-left: auto;
}

/* ==========================================================================
   TICKER (INFINITE CORRIDOR MARQUEE)
   ========================================================================== */
.ticker {
  overflow: hidden;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
  background: rgba(5, 7, 11, 0.4);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}

.ticker-track {
  display: flex;
  width: max-content;
  animation: tick 48s linear infinite;
}

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

.ticker ul {
  display: flex;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ticker li {
  display: flex;
  align-items: center;
  gap: 28px;
  padding-right: 28px;
  font-size: clamp(1.05rem, 1.5vw, 1.35rem);
  letter-spacing: -0.02em;
  color: var(--soft);
}

.ticker li::after {
  content: "✦";
  font-size: 9px;
  color: var(--signal);
}

.ticker-tag {
  font-size: 10px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 3px;
  letter-spacing: 0.08em;
}

.tag-red { background: rgba(239, 68, 68, 0.18); color: #ef4444; border: 1px solid rgba(239, 68, 68, 0.4); }
.tag-amber { background: rgba(245, 158, 11, 0.18); color: #f59e0b; border: 1px solid rgba(245, 158, 11, 0.4); }
.tag-cyan { background: rgba(6, 182, 212, 0.18); color: #06b6d4; border: 1px solid rgba(6, 182, 212, 0.4); }
.tag-emerald { background: rgba(16, 185, 129, 0.18); color: #10b981; border: 1px solid rgba(16, 185, 129, 0.4); }

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

/* ==========================================================================
   BENTO GRID FEATURES & SPOTLIGHT MOUSE CARDS
   ========================================================================== */
.features-section {
  padding: 48px 0 20px;
  position: relative;
  z-index: 10;
}

.sec-head {
  margin-bottom: 28px;
}

.sec-tag {
  font-size: 11.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--signal);
  margin-bottom: 12px;
  display: block;
}

.sec-title {
  font-size: clamp(2.4rem, 5vw, 4.2rem);
  letter-spacing: -0.04em;
  line-height: 1.05;
  margin-bottom: 18px;
  color: var(--text);
}

.sec-title em {
  font-family: var(--f-serif);
  font-style: italic;
  font-weight: 400;
  color: var(--signal-hi);
}

.sec-desc {
  max-width: 58ch;
  color: var(--soft);
  font-size: 1.12rem;
  line-height: 1.6;
}

.bento-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 20px;
}

/* Spotlight Card Architecture */
.spot-card {
  position: relative;
  background: var(--ink-2);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 36px 32px;
  overflow: hidden;
  transition: transform 0.35s var(--ease-out), border-color 0.35s;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.spot-card:hover {
  border-color: var(--line-2);
  transform: translateY(-3px);
}

/* Radial Spotlight Glow on Mouse Movement */
.spot-card::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background: radial-gradient(450px circle at var(--mx, -500px) var(--my, -500px), var(--line-glow), transparent 60%);
  opacity: 0;
  transition: opacity 0.4s var(--ease-out);
  pointer-events: none;
  z-index: 1;
}

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

.spot-card > * {
  position: relative;
  z-index: 2;
}

.col-8 { grid-column: span 8; }
.col-4 { grid-column: span 4; }
.col-6 { grid-column: span 6; }
.col-12 { grid-column: span 12; }

@media (max-width: 960px) {
  .col-8, .col-4, .col-6 { grid-column: span 12; }
}

.card-num {
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--signal);
  margin-bottom: 20px;
  display: block;
}

.card-title {
  font-size: clamp(1.45rem, 2vw, 1.85rem);
  letter-spacing: -0.025em;
  margin-bottom: 12px;
  font-weight: 600;
  color: var(--text);
}

.card-desc {
  color: var(--soft);
  font-size: 0.98rem;
  line-height: 1.6;
  margin-bottom: 28px;
}

.card-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.badge {
  font-size: 11px;
  letter-spacing: 0.04em;
  padding: 5px 10px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  color: var(--soft);
}

/* In-Card Interactive Previews */
.card-preview-box {
  background: var(--ink-3);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 20px;
  margin-top: 20px;
}

.preview-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  margin-bottom: 10px;
}

/* ==========================================================================
   INTERACTIVE RADAR SIMULATOR SECTION
   ========================================================================== */
.simulator-section {
  position: relative;
  z-index: 10;
  padding: 44px 0 36px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--ink-2);
  color: var(--text);
  backdrop-filter: blur(20px);
}

.sim-tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.sim-tab-btn {
  padding: 10px 18px;
  border-radius: var(--r);
  border: 1px solid var(--line);
  background: var(--ink-3);
  color: var(--soft);
  font-size: 13.5px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s;
}

.sim-tab-btn:hover {
  border-color: var(--line-2);
  color: var(--text);
}

.sim-tab-btn.active {
  background: var(--signal);
  border-color: var(--signal);
  color: var(--on-signal);
  font-weight: 600;
  box-shadow: 0 4px 18px rgba(0, 170, 255, 0.25);
}

.sim-display-card {
  background: var(--ink);
  border: 1px solid var(--line-2);
  border-radius: var(--r-xl);
  padding: 28px 32px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: center;
  color: var(--text);
}

@media (max-width: 860px) {
  .sim-display-card {
    grid-template-columns: 1fr;
    padding: 22px;
  }
}

/* ==========================================================================
   FAQ SECTION
   ========================================================================== */
.faq-section {
  position: relative;
  z-index: 10;
  padding: 44px 0 36px;
  border-top: 1px solid var(--line);
  background: var(--ink-2);
  color: var(--text);
  backdrop-filter: blur(20px);
}

.faq-list {
  max-width: 840px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.faq-item {
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--ink-2);
  overflow: hidden;
  transition: border-color 0.3s;
}

.faq-item:hover {
  border-color: var(--line-2);
}

.faq-question {
  padding: 16px 22px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: -0.015em;
}

.faq-icon {
  font-size: 18px;
  color: var(--signal);
  transition: transform 0.3s var(--ease-out);
}

.faq-item.active .faq-icon {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 22px;
  color: var(--soft);
  font-size: 0.95rem;
  line-height: 1.6;
  transition: max-height 0.4s var(--ease-out), padding 0.3s;
}

.faq-item.active .faq-answer {
  max-height: 240px;
  padding-bottom: 18px;
}

/* ==========================================================================
   DOWNLOAD CTA SECTION (LUXURY BANNER)
   ========================================================================== */
.download-section {
  position: relative;
  z-index: 10;
  padding: 24px 0 16px;
}

.cta-banner {
  position: relative;
  background:
    linear-gradient(var(--ink-2), var(--ink-2)) padding-box,
    conic-gradient(from var(--ang), rgba(170, 195, 235, 0.2) 0 40%, var(--signal) 65%, var(--signal-hi) 80%, rgba(170, 195, 235, 0.2) 95%) border-box;
  border: 1px solid transparent;
  border-radius: var(--r-xl);
  padding: 44px 32px;
  animation: ang 6s linear infinite;
  text-align: center;
  overflow: hidden;
  margin-bottom: 0;
}

.cta-title {
  font-size: clamp(2.2rem, 4.5vw, 4rem);
  letter-spacing: -0.04em;
  margin-bottom: 14px;
}

.cta-title em {
  font-family: var(--f-serif);
  font-style: italic;
  font-weight: 400;
  color: var(--signal-hi);
}

.cta-desc {
  max-width: 52ch;
  margin: 0 auto 24px;
  color: var(--soft);
  font-size: 1.08rem;
}

.cta-buttons {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* ==========================================================================
   MODAL (QR CODE POPUP)
   ========================================================================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 500;
  background: rgba(5, 7, 11, 0.88);
  backdrop-filter: blur(16px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s var(--ease-out);
}

.modal-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.modal-card {
  background: var(--ink-2);
  border: 1px solid var(--line-2);
  border-radius: var(--r-xl);
  padding: 44px 36px;
  max-width: 440px;
  width: 90%;
  text-align: center;
  position: relative;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.8);
}

.modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--line);
  color: var(--soft);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  cursor: pointer;
  transition: all 0.2s;
}

.modal-close:hover {
  border-color: var(--signal);
  color: #fff;
}

.qr-box {
  background: #fff;
  padding: 20px;
  border-radius: 14px;
  width: 200px;
  height: 200px;
  margin: 28px auto;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
}

.qr-box svg {
  width: 100%;
  height: 100%;
}

/* ==========================================================================
   FOOTER (PROMINENT & HIGH-CONTRAST)
   ========================================================================== */
.footer {
  position: relative;
  z-index: 20;
  border-top: 1px solid var(--line-2);
  padding: 24px 0 18px;
  background: var(--ink-2);
  color: var(--soft);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2.2fr 1fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 20px;
}

@media (max-width: 860px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }
}

.footer-col h4 {
  color: #fff;
  font-size: 13.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 20px;
  font-weight: 700;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links a {
  font-size: 14.5px;
  color: var(--soft);
  transition: color 0.25s, transform 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.footer-links a:hover {
  color: var(--signal);
  transform: translateX(2px);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--line);
  padding-top: 32px;
  font-size: 13.5px;
  color: var(--muted);
  flex-wrap: wrap;
  gap: 16px;
}

/* ==========================================================================
   LEGAL & CONTENT PAGES (PRIVACY, TERMS, ABOUT, SUPPORT)
   ========================================================================== */
.legal-section {
  position: relative;
  z-index: 10;
  min-height: 80vh;
  padding: 130px 0 90px;
}

.legal-card {
  background: var(--ink-2);
  border: 1px solid var(--line-2);
  border-radius: var(--r-xl);
  padding: clamp(32px, 5vw, 64px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(16px);
}

.legal-header {
  margin-bottom: 40px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--line);
}

.legal-title {
  font-size: clamp(2.2rem, 4.5vw, 3.8rem);
  letter-spacing: -0.035em;
  line-height: 1.1;
  margin-bottom: 12px;
  font-weight: 600;
}

.legal-title em {
  font-family: var(--f-serif);
  font-style: italic;
  color: var(--signal-hi);
  font-weight: 400;
}

.legal-meta {
  font-size: 12.5px;
  color: var(--muted);
  letter-spacing: 0.05em;
}

.legal-content h2 {
  font-size: 1.55rem;
  letter-spacing: -0.02em;
  margin: 36px 0 16px;
  color: var(--text);
  font-weight: 600;
}

.legal-content h3 {
  font-size: 1.25rem;
  letter-spacing: -0.015em;
  margin: 24px 0 12px;
  color: var(--text);
  font-weight: 600;
}

.legal-content p {
  color: var(--soft);
  font-size: 1.05rem;
  line-height: 1.75;
  margin-bottom: 20px;
}

.legal-content ul, .legal-content ol {
  margin: 0 0 24px 24px;
  color: var(--soft);
  line-height: 1.75;
}

.legal-content li {
  margin-bottom: 10px;
  font-size: 1.02rem;
}

.callout-box {
  background: rgba(0, 170, 255, 0.06);
  border: 1px solid var(--line-glow);
  border-radius: var(--r);
  padding: 24px 28px;
  margin: 28px 0;
}

.callout-box.warn {
  background: rgba(245, 158, 11, 0.07);
  border-color: rgba(245, 158, 11, 0.35);
}

.callout-box.danger {
  background: rgba(239, 68, 68, 0.07);
  border-color: rgba(239, 68, 68, 0.35);
}

.contact-highlight-card {
  background: var(--ink-3);
  border: 1px solid var(--line-2);
  border-radius: var(--r-lg);
  padding: 32px;
  margin-top: 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

/* ==========================================================================
   PURE WHITE & BLACK LIGHT-MODE RULES
   ========================================================================== */
[data-theme="light"] body {
  background-color: #ffffff;
  color: #05070b;
}

[data-theme="light"] .video-bg-container {
  background: #ffffff;
}

[data-theme="light"] .video-bg-player {
  opacity: 0.14;
  filter: contrast(1.1) brightness(1.2) grayscale(0.6);
}

[data-theme="light"] .video-bg-vignette {
  background: radial-gradient(ellipse at center, rgba(255, 255, 255, 0.5) 0%, rgba(255, 255, 255, 0.9) 70%, #ffffff 100%);
}

[data-theme="light"] .hdr.scrolled {
  background: rgba(255, 255, 255, 0.92);
  border-color: rgba(0, 0, 0, 0.08);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .brand-word,
[data-theme="light"] .nav a,
[data-theme="light"] .clock b {
  color: #05070b;
}

[data-theme="light"] .nav a:hover {
  background: rgba(0, 0, 0, 0.05);
}

[data-theme="light"] .hero-title .line > span {
  background: linear-gradient(180deg, #05070b 35%, #334155 85%);
  -webkit-background-clip: text;
  color: transparent;
}

[data-theme="light"] .hero-lede {
  color: #1e293b;
  text-shadow: none;
}

[data-theme="light"] .eyebrow {
  background: #ffffff;
  border-color: rgba(0, 0, 0, 0.12);
  color: #05070b;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

[data-theme="light"] .spot-card {
  background: #ffffff;
  border-color: rgba(0, 0, 0, 0.1);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

[data-theme="light"] .card-title {
  color: #05070b;
}

[data-theme="light"] .card-desc {
  color: #334155;
}

[data-theme="light"] .card-preview-box {
  background: #f8fafc;
  border-color: rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .badge {
  background: rgba(0, 0, 0, 0.04);
  border-color: rgba(0, 0, 0, 0.08);
  color: #1e293b;
}

[data-theme="light"] .hud {
  background: rgba(255, 255, 255, 0.92);
  border-top-color: rgba(0, 0, 0, 0.1);
  color: #475569;
}

[data-theme="light"] .hud b {
  color: #05070b;
}

[data-theme="light"] .simulator-section {
  background: #f8fafc;
  border-color: rgba(0, 0, 0, 0.08);
  color: #05070b;
}

[data-theme="light"] .sim-tab-btn {
  background: #ffffff;
  color: #1e293b;
  border-color: rgba(0, 0, 0, 0.12);
}

[data-theme="light"] .sim-tab-btn:hover {
  border-color: var(--signal);
  color: var(--signal);
}

[data-theme="light"] .sim-tab-btn.active {
  background: var(--signal);
  border-color: var(--signal);
  color: #ffffff;
}

[data-theme="light"] .sim-display-card {
  background: #ffffff;
  border-color: rgba(0, 0, 0, 0.12);
  box-shadow: 0 6px 30px rgba(0, 0, 0, 0.05);
  color: #05070b;
}

[data-theme="light"] .faq-section {
  background: #f8fafc;
  border-color: rgba(0, 0, 0, 0.08);
  color: #05070b;
}

[data-theme="light"] .faq-item {
  background: #ffffff;
  border-color: rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .faq-question {
  color: #05070b;
}

[data-theme="light"] .faq-answer {
  color: #334155;
}

[data-theme="light"] .cta-banner {
  background: #ffffff;
  border-color: rgba(0, 0, 0, 0.12);
  color: #05070b;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .footer {
  background: #f8fafc;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
  color: #334155;
}

[data-theme="light"] .footer-col h4 {
  color: #05070b;
}

[data-theme="light"] .footer-links a {
  color: #334155;
}

[data-theme="light"] .footer-links a:hover {
  color: var(--signal);
}

[data-theme="light"] .legal-card {
  background: #ffffff;
  border-color: rgba(0, 0, 0, 0.1);
  color: #05070b;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.05);
}

[data-theme="light"] .legal-content h2,
[data-theme="light"] .legal-content h3 {
  color: #05070b;
}

[data-theme="light"] .legal-content p,
[data-theme="light"] .legal-content li {
  color: #334155;
}

[data-theme="light"] .contact-highlight-card {
  background: #f8fafc;
  border-color: rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .modal-card {
  background: #ffffff;
  color: #05070b;
  border-color: rgba(0, 0, 0, 0.15);
}

/* ==========================================================================
   DEVELOPER PORTAL & ACCESS CONTROL STYLES
   ========================================================================== */
.badge-lock {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-family: var(--f-mono);
  font-size: 10.5px;
  font-weight: 500;
  padding: 2px 8px;
  border-radius: var(--r-full);
  background: rgba(255, 180, 107, 0.14);
  color: #ffb46b;
  border: 1px solid rgba(255, 180, 107, 0.28);
  margin-left: 6px;
  vertical-align: middle;
}

.badge-live {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-family: var(--f-mono);
  font-size: 10.5px;
  font-weight: 500;
  padding: 2px 8px;
  border-radius: var(--r-full);
  background: rgba(16, 185, 129, 0.14);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.28);
  margin-left: 6px;
  vertical-align: middle;
}

.badge-restricted {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--f-mono);
  font-size: 11.5px;
  letter-spacing: 0.04em;
  padding: 5px 12px;
  border-radius: var(--r-full);
  background: rgba(239, 68, 68, 0.12);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.26);
  margin-bottom: 14px;
}

.dev-notice-banner {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.08) 0%, rgba(255, 180, 107, 0.06) 100%);
  border: 1px solid rgba(255, 180, 107, 0.24);
  border-radius: var(--r-lg);
  padding: 20px 24px;
  margin: 28px 0;
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.dev-notice-icon {
  font-size: 24px;
  line-height: 1;
  flex-shrink: 0;
}

.dev-notice-body h4 {
  font-size: 15px;
  font-weight: 600;
  color: #ffb46b;
  margin-bottom: 6px;
}

.dev-notice-body p {
  font-size: 13.5px;
  color: var(--soft);
  line-height: 1.55;
  margin: 0;
}

.dev-spec-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin: 32px 0;
}

.dev-spec-card {
  background: var(--ink-3);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 24px;
  transition: all 0.25s var(--ease-out);
}

.dev-spec-card:hover {
  border-color: var(--line-glow);
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
}

.dev-spec-card .spec-badge {
  font-family: var(--f-mono);
  font-size: 11px;
  color: var(--signal);
  letter-spacing: 0.05em;
  margin-bottom: 10px;
  display: block;
}

.dev-spec-card h3 {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text);
}

.dev-spec-card p {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
  margin-bottom: 16px;
}

.code-preview-box {
  background: #020408;
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 14px 16px;
  font-family: var(--f-mono);
  font-size: 12px;
  color: #7dd3fc;
  overflow-x: auto;
  line-height: 1.5;
  margin: 12px 0 0;
}

/* Developer Access Form */
.dev-form {
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  text-align: left;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-label {
  font-family: var(--f-mono);
  font-size: 11.5px;
  letter-spacing: 0.04em;
  color: var(--soft);
  text-transform: uppercase;
}

.form-input,
.form-select,
.form-textarea {
  background: var(--ink-3);
  border: 1px solid var(--line);
  color: var(--text);
  border-radius: var(--r);
  padding: 11px 14px;
  font-family: var(--f-sans);
  font-size: 14px;
  transition: all 0.2s;
  width: 100%;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--signal);
  outline: none;
  box-shadow: 0 0 0 3px rgba(0, 170, 255, 0.18);
  background: var(--ink-4);
}

.form-textarea {
  resize: vertical;
  min-height: 80px;
}

.email-pill-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--ink-3);
  border: 1px solid var(--line-2);
  border-radius: var(--r);
  padding: 10px 14px;
  margin: 16px 0;
  gap: 12px;
}

.email-pill-box .email-text {
  font-family: var(--f-mono);
  font-size: 13.5px;
  color: var(--signal-hi);
  word-break: break-all;
}

.btn-copy {
  background: rgba(170, 195, 235, 0.1);
  border: 1px solid var(--line);
  color: var(--text);
  padding: 6px 12px;
  border-radius: var(--r);
  font-family: var(--f-mono);
  font-size: 11px;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s;
}

.btn-copy:hover {
  background: var(--signal);
  color: var(--on-signal);
  border-color: var(--signal);
}

.btn-copy.copied {
  background: #10b981;
  color: #ffffff;
  border-color: #10b981;
}

/* Light Theme Overrides */
[data-theme="light"] .badge-lock {
  background: rgba(217, 119, 6, 0.14);
  color: #b45309;
  border-color: rgba(217, 119, 6, 0.3);
}

[data-theme="light"] .dev-notice-banner {
  background: #fffbeb;
  border-color: #fde68a;
}

[data-theme="light"] .dev-notice-body h4 {
  color: #b45309;
}

[data-theme="light"] .dev-notice-body p {
  color: #4b5563;
}

[data-theme="light"] .dev-spec-card {
  background: #f8fafc;
  border-color: rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .dev-spec-card h3 {
  color: #0f172a;
}

[data-theme="light"] .dev-spec-card p {
  color: #64748b;
}

[data-theme="light"] .code-preview-box {
  background: #0f172a;
  color: #38bdf8;
}

[data-theme="light"] .form-input,
[data-theme="light"] .form-select,
[data-theme="light"] .form-textarea {
  background: #f8fafc;
  border-color: #cbd5e1;
  color: #0f172a;
}

[data-theme="light"] .email-pill-box {
  background: #f1f5f9;
  border-color: #cbd5e1;
}

[data-theme="light"] .email-pill-box .email-text {
  color: #0284c7;
}

[data-theme="light"] .btn-copy {
  background: #e2e8f0;
  border-color: #cbd5e1;
  color: #0f172a;
}

/* ==========================================================================
   DEVICE SHOWCASE SECTION (IOS & ANDROID AUTO-PLAY SLIDESHOW)
   ========================================================================== */
.device-showcase-section {
  position: relative;
  z-index: 10;
  padding: clamp(70px, 9vw, 130px) 0;
  overflow: hidden;
  scroll-margin-top: 100px;
}

.device-showcase-bg-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 800px;
  height: 500px;
  background: radial-gradient(ellipse, rgba(0, 170, 255, 0.12) 0%, rgba(16, 185, 129, 0.06) 45%, transparent 70%);
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
}

.device-stage {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(24px, 5vw, 64px);
  margin: 44px 0 28px;
}

.device-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}

.device-os-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  padding: 5px 14px;
  border-radius: var(--r-full);
  margin-bottom: 18px;
  text-transform: uppercase;
}

.tag-ios {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #f1f5f9;
}

.tag-android {
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: #34d399;
}

/* Phone Mockup Hardware Frames */
.phone-mockup {
  position: relative;
  width: 310px;
  height: 542px;
  background: #090d16;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.85);
  transition: transform 0.4s var(--ease-out), box-shadow 0.4s;
}

.phone-mockup:hover {
  transform: translateY(-6px);
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.95), 0 0 40px rgba(0, 170, 255, 0.2);
}

/* iPhone Frame */
.phone-ios {
  border-radius: 46px;
  border: 8px solid #222630;
  box-shadow: 
    0 25px 80px rgba(0, 0, 0, 0.85),
    0 0 0 1px rgba(255, 255, 255, 0.18) inset,
    0 0 30px rgba(0, 170, 255, 0.12);
}

/* Android Frame */
.phone-android {
  border-radius: 36px;
  border: 7px solid #1a2230;
  box-shadow: 
    0 25px 80px rgba(0, 0, 0, 0.85),
    0 0 0 1px rgba(255, 255, 255, 0.14) inset,
    0 0 30px rgba(16, 185, 129, 0.12);
}

.phone-screen {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: #090d16;
}

.phone-ios .phone-screen {
  border-radius: 38px;
}

.phone-android .phone-screen {
  border-radius: 29px;
}

/* Screen Glass Glare Sheen */
.phone-screen::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.01) 40%, transparent 60%);
  pointer-events: none;
  z-index: 5;
}

/* Dynamic Island (iPhone) - unobtrusive in top sky */
.dynamic-island {
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  width: 72px;
  height: 16px;
  background: #000000;
  border-radius: 12px;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 8px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.9);
  pointer-events: none;
}

.di-camera {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #0a1120;
  border: 1px solid #1e293b;
}

.di-sensor {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 5px #10b981;
}

/* Punch Hole (Android) - subtle sensor dot */
.punch-hole {
  position: absolute;
  top: 7px;
  left: 50%;
  transform: translateX(-50%);
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #000000;
  border: 1.5px solid #1e293b;
  z-index: 10;
  pointer-events: none;
}

/* iOS Home Indicator Bar - subtle bottom bar below icon labels */
.ios-home-bar {
  position: absolute;
  bottom: 4px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background: rgba(255, 255, 255, 0.35);
  border-radius: 2px;
  z-index: 10;
  pointer-events: none;
}

/* Screen Slide Carousel */
.screen-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.5s ease;
  will-change: opacity;
  display: flex;
  align-items: center;
  justify-content: center;
}

.screen-slide.active {
  opacity: 1;
  z-index: 2;
}

.screen-slide img,
.screen-slide video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
}

/* Showcase Controls & Progress Timeline */
.showcase-controller {
  max-width: 1040px;
  margin: 36px auto 0;
}

.showcase-steps {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 10px;
}

.showcase-step-btn {
  background: var(--ink-2);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 12px 10px;
  text-align: left;
  cursor: pointer;
  transition: all 0.25s var(--ease-out);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.showcase-step-btn:hover {
  border-color: var(--line-glow);
  background: var(--ink-3);
}

.showcase-step-btn.active {
  border-color: var(--signal);
  background: rgba(0, 170, 255, 0.08);
}

.step-num {
  font-family: var(--f-mono);
  font-size: 10px;
  color: var(--muted);
  letter-spacing: 0.05em;
}

.showcase-step-btn.active .step-num {
  color: var(--signal-hi);
}

.step-title {
  font-family: var(--f-sans);
  font-size: 12px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Animated Progress Fill */
.step-progress-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: rgba(255, 255, 255, 0.08);
}

.step-progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--signal), var(--signal-hi));
  transition: width 0.1s linear;
}

.showcase-step-btn.active .step-progress-fill {
  width: 100%;
  transition: width 3.8s linear;
}

/* Dynamic Active Step Details Card */
.showcase-detail-card {
  margin-top: 24px;
  background: var(--ink-2);
  border: 1px solid var(--line-2);
  border-radius: var(--r-xl);
  padding: 22px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.detail-content h4 {
  font-size: 18px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 4px;
}

.detail-content p {
  font-size: 13.5px;
  color: var(--soft);
  margin: 0;
}

.showcase-controls {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Light Theme Overrides */
[data-theme="light"] .device-showcase-bg-glow {
  background: radial-gradient(ellipse, rgba(0, 170, 255, 0.1) 0%, transparent 70%);
}

[data-theme="light"] .phone-ios {
  border-color: #cbd5e1;
}

[data-theme="light"] .phone-android {
  border-color: #94a3b8;
}

[data-theme="light"] .showcase-step-btn {
  background: #ffffff;
  border-color: rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .showcase-step-btn:hover {
  background: #f8fafc;
}

[data-theme="light"] .showcase-step-btn.active {
  background: #f0f9ff;
  border-color: #0284c7;
}

[data-theme="light"] .step-title {
  color: #0f172a;
}

[data-theme="light"] .showcase-detail-card {
  background: #ffffff;
  border-color: rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .detail-content h4 {
  color: #0f172a;
}

[data-theme="light"] .detail-content p {
  color: #475569;
}

/* Responsive Scaling for Devices */
@media (max-width: 1024px) {
  .showcase-steps {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 860px) {
  .device-stage {
    flex-direction: column;
    gap: 36px;
  }
  .showcase-steps {
    grid-template-columns: repeat(2, 1fr);
  }
}



