:root {
  /* === Neo-Noir Palette === */
  --bg-deep: #000000;
  --bg-surface: #0a0a0a;
  --bg-card: rgba(15, 15, 18, 0.7);
  --bg-card-hover: rgba(20, 20, 25, 0.85);

  /* Neon Accents - Enhanced */
  --neon-amber: #ffaa00;
  --neon-amber-bright: #ffcc33;
  --neon-amber-glow: rgba(255, 170, 0, 0.6);
  --neon-green: #00ff9d;
  --neon-green-glow: rgba(0, 255, 157, 0.5);
  --neon-red: #ff0055;
  --neon-blue: #00ddff;
  --neon-purple: #bb00ff;

  /* Text */
  --text-main: #ffffff;
  --text-muted: #a0a0a8;
  --text-dark: #606068;

  /* Borders & Glass */
  --glass-border: 1px solid rgba(255, 255, 255, 0.06);
  --glass-border-light: 1px solid rgba(255, 255, 255, 0.15);
  --glass-border-neon: 1px solid rgba(255, 170, 0, 0.3);
  --glass-blur: blur(16px);

  /* Fonts */
  --font-display: "Bebas Neue", sans-serif;
  --font-body: "DM Sans", sans-serif;
  --font-mono: "JetBrains Mono", monospace;

  /* Spacing */
  --nav-height: 80px;
  --ticker-height: 0px;
  --container-width: 1200px;
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
}

/* === RESET & BASE === */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  width: 100%;
}

body {
  background-color: var(--bg-deep);
  color: var(--text-main);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  position: relative;
  width: 100%;
  max-width: 100vw;
}

/* === CRITICAL MOBILE FIXES === */
/* Fix horizontal scroll and viewport constraints */
*,
*::before,
*::after {
  box-sizing: border-box;
}

/* Film Grain Overlay */
body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="300" height="300"><filter id="noise"><feTurbulence type="fractalNoise" baseFrequency="0.9" numOctaves="4" stitchTiles="stitch"/></filter><rect width="100%" height="100%" filter="url(%23noise)" opacity="0.05"/></svg>');
  pointer-events: none;
  z-index: 9999;
  opacity: 0.4;
  animation: grain 0.5s steps(10) infinite;
}

@keyframes grain {
  0%,
  100% {
    transform: translate(0, 0);
  }
  10% {
    transform: translate(-5%, -10%);
  }
  20% {
    transform: translate(-15%, 5%);
  }
  30% {
    transform: translate(7%, -25%);
  }
  40% {
    transform: translate(-5%, 25%);
  }
  50% {
    transform: translate(-15%, 10%);
  }
  60% {
    transform: translate(15%, 0%);
  }
  70% {
    transform: translate(0%, 15%);
  }
  80% {
    transform: translate(3%, 35%);
  }
  90% {
    transform: translate(-10%, 10%);
  }
}

/* === TYPOGRAPHY === */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  line-height: 0.95;
  color: #fff;
  font-weight: 400;
}

h1 {
  font-size: clamp(3rem, 7vw, 6rem);
  letter-spacing: -0.01em;
  margin-bottom: 2rem;
  text-shadow: 0 0 40px rgba(0, 0, 0, 0.8), 0 0 80px rgba(255, 170, 0, 0.3);
  position: relative;
  display: block;
  line-height: 1.1;
}

h1 span {
  color: var(--neon-amber);
  text-shadow: 0 0 30px var(--neon-amber-glow), 0 0 60px var(--neon-amber-glow),
    0 0 100px rgba(255, 170, 0, 0.2);
  display: block;
  animation: neonFlicker 3s infinite alternate;
  font-size: 0.9em;
}

@keyframes neonFlicker {
  0%,
  19%,
  21%,
  23%,
  25%,
  54%,
  56%,
  100% {
    text-shadow: 0 0 30px var(--neon-amber-glow),
      0 0 60px var(--neon-amber-glow), 0 0 100px rgba(255, 170, 0, 0.2);
  }
  20%,
  24%,
  55% {
    text-shadow: 0 0 10px var(--neon-amber-glow),
      0 0 20px var(--neon-amber-glow);
  }
}

h2 {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  margin-bottom: 2rem;
  position: relative;
  display: inline-block;
  letter-spacing: 0.02em;
}

h2::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--neon-amber), transparent);
  box-shadow: 0 0 15px var(--neon-amber-glow);
}

h3 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin-bottom: 1rem;
  color: var(--text-main);
  letter-spacing: 0.05em;
}

p {
  margin-bottom: 1.5rem;
  color: var(--text-muted);
  font-size: 1.1rem;
  line-height: 1.8;
  max-width: 70ch;
}

a {
  color: var(--text-main);
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

strong {
  color: white;
  font-weight: 600;
}

/* === LAYOUT === */
.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 2rem;
  position: relative;
  z-index: 10;
  width: 100%;
  overflow-x: hidden;
}

.container--narrow {
  max-width: 900px;
  width: 100%;
}

.section {
  padding: 8rem 0;
  position: relative;
}

.section--hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  padding-top: var(--nav-height);
}

/* Sub-page hero modifier - taller on desktop, compact on mobile */
.section--hero.section--subpage {
  min-height: 70vh;
  max-height: 80vh;
  padding-top: calc(var(--nav-height) + 3rem); /* Extra spacing on desktop */
}

.section--hero p {
  color: #ffffff !important;
  opacity: 1 !important;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
  font-weight: 400;
}

/* === COMPONENTS: BUTTONS === */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 1.4rem;
  padding: 1.2rem 3rem;
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
  letter-spacing: 0.08em;
  position: relative;
  text-transform: uppercase;
  font-weight: 400;
}

.btn--primary {
  background: var(--neon-amber);
  color: #000;
  font-weight: 700;
  box-shadow: 0 4px 30px var(--neon-amber-glow),
    0 0 0 1px var(--neon-amber) inset;
  position: relative;
  z-index: 1;
}

.btn--primary:hover {
  background: var(--neon-amber-bright);
}

.btn--secondary {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: white;
  backdrop-filter: blur(10px);
}

.btn--secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.4);
}

.btn--block {
  width: 100%;
}

/* === COMPONENTS: CARDS === */
.card {
  background: var(--bg-card);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: var(--glass-border);
  border-radius: var(--radius-md);
  padding: 2.5rem;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 170, 0, 0.05),
    transparent
  );
  transition: left 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.card:hover::before {
  left: 100%;
}

.card::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--neon-amber),
    transparent
  );
  opacity: 0;
  transition: opacity 0.5s ease;
}

.card:hover {
  background: var(--bg-card-hover);
  border-color: var(--glass-border-neon);
  transform: translateY(-8px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6), 0 0 40px rgba(255, 170, 0, 0.1);
}

.card:hover::after {
  opacity: 1;
}

/* === NAVIGATION === */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: var(--glass-border);
  padding: 1rem 0;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav__inner {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  transition: all 0.3s ease;
}

.nav__logo:hover {
  transform: translateX(5px);
}

.nav__logo-img {
  width: 40px;
  height: auto;
  filter: drop-shadow(0 0 10px rgba(255, 170, 0, 0.5));
}

.nav__logo-text {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: white;
  letter-spacing: 0.1em;
}

.nav__links {
  display: flex;
  gap: 3rem;
  align-items: center;
  list-style: none;
}

.nav__link {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 500;
  position: relative;
  transform: none;
  display: inline-block;
}

.nav__link::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--neon-amber);
  transition: width 0.3s ease;
  box-shadow: 0 0 10px var(--neon-amber-glow);
}

.nav__link:hover::after,
.nav__link--active::after {
  width: 100%;
}

.nav__link:hover,
.nav__link--active {
  color: var(--neon-amber);
  transform: none;
}

.nav__cta {
  display: inline-block;
  background: transparent;
  border: 2px solid var(--neon-amber);
  color: var(--neon-amber);
  padding: 0.6rem 1.5rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-display);
  font-size: 1rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  letter-spacing: 0.08em;
  position: relative;
  overflow: hidden;
}

.nav__cta::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: var(--neon-amber);
  transition: left 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: -1;
}

.nav__cta:hover::before {
  left: 0;
}

.nav__cta:hover {
  color: #000;
  box-shadow: 0 0 20px var(--neon-amber-glow);
  /* transform: translateY(-2px); */
}

.nav__toggle {
  display: none;
  background: none;
  border: none;
  color: white;
  font-size: 1.8rem;
  cursor: pointer;
  padding: 0.5rem;
}

/* === AMBIENT LIGHTING === */
.ambient-light {
  position: fixed;
  width: 800px;
  height: 800px;
  background: radial-gradient(
    circle,
    rgba(255, 170, 0, 0.12) 0%,
    rgba(255, 170, 0, 0.05) 40%,
    transparent 70%
  );
  top: -300px;
  right: -200px;
  z-index: 0;
  pointer-events: none;
  filter: blur(80px);
  animation: ambientFloat 20s ease-in-out infinite;
}

@keyframes ambientFloat {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }
  50% {
    transform: translate(-100px, 100px) scale(1.1);
  }
}

.ambient-light--green {
  background: radial-gradient(
    circle,
    rgba(0, 255, 157, 0.08) 0%,
    rgba(0, 255, 157, 0.03) 40%,
    transparent 70%
  );
  top: auto;
  bottom: -300px;
  left: -200px;
  right: auto;
  animation: ambientFloat 25s ease-in-out infinite reverse;
}

/* === BACKGROUNDS & OVERLAYS === */
.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: -2;
  overflow: hidden;
  width: 100%;
  max-width: 100vw;
}

.hero-bg::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: repeating-linear-gradient(
    0deg,
    rgba(0, 0, 0, 0.1) 0px,
    transparent 1px,
    transparent 2px,
    rgba(0, 0, 0, 0.1) 3px
  );
  pointer-events: none;
  opacity: 0.3;
  animation: scanlines 10s linear infinite;
}

@keyframes scanlines {
  0% {
    transform: translateY(0);
  }
  100% {
    transform: translateY(20px);
  }
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.35;
  filter: grayscale(20%) contrast(1.1);
  max-width: none;
  min-width: 100%;
  object-position: center;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
      135deg,
      rgba(0, 0, 0, 0.7) 0%,
      rgba(0, 0, 0, 0.5) 50%,
      var(--bg-deep) 100%
    ),
    radial-gradient(
      ellipse at top right,
      rgba(255, 170, 0, 0.08) 0%,
      transparent 50%
    );
  z-index: -1;
  /* Prevent layout shifts/repaints */
  will-change: auto;
  contain: layout style;
}

/* === UTILITIES & ANIMATIONS === */
.text-center {
  text-align: center;
  margin-left: auto !important;
  margin-right: auto !important;
}

/* Ensure centered paragraphs sit in the middle (fixes max-width issues) */
.text-center p,
p.text-center {
  margin-left: auto !important;
  margin-right: auto !important;
}

.text-muted {
  color: var(--text-muted);
}

.text-amber {
  color: var(--neon-amber);
}

.text-green {
  color: var(--neon-green);
}

.mt-1 {
  margin-top: 0.5rem;
}
.mt-2 {
  margin-top: 1rem;
}
.mt-3 {
  margin-top: 1.5rem;
}
.mt-4 {
  margin-top: 2rem;
}
.mb-2 {
  margin-bottom: 1rem;
}
.mb-4 {
  margin-bottom: 2rem;
}

/* === FLEX UTILITIES === */
.flex {
  display: flex;
}

.flex-center {
  display: flex;
  align-items: center;
}

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

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

.gap-1 {
  gap: 1rem;
}

.gap-2 {
  gap: 2rem;
}

.gap-3 {
  gap: 3rem;
}

/* === COMPONENT UTILITIES === */
.feature-header {
  display: flex;
  gap: 1rem;
  align-items: center;
  margin-bottom: 1rem;
}

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

.feature-icon-lg {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.feature-title {
  margin: 0;
  color: var(--neon-amber);
}

.max-w-600 {
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.font-lg {
  font-size: 1.25rem;
}

.font-mono {
  font-family: var(--font-mono);
}

.font-xs {
  font-size: 0.75rem !important;
}

.m-0 {
  margin: 0 !important;
}

.p-2 {
  padding: 0.5rem !important;
}

.p-4 {
  padding: 1rem !important;
}

.opacity-70 {
  opacity: 0.7;
}

.italic {
  font-style: italic;
}

.img-fluid {
  width: 100%;
  height: auto;
  border-radius: var(--radius-sm);
}

.align-start {
  align-items: start;
}

.d-flex {
  display: flex !important;
}

.flex-wrap {
  flex-wrap: wrap !important;
}

.justify-center {
  justify-content: center !important;
}

.gap-1 {
  gap: 1rem !important;
}

.gap-2 {
  gap: 2rem !important;
}

.list-unstyled {
  list-style: none;
  padding: 0;
  margin: 0;
}

.alert {
  padding: 1.5rem;
  border-radius: var(--radius-sm);
  margin: 1.5rem 0;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.02);
}

.alert--danger {
  background: rgba(255, 60, 60, 0.05);
  border: 1px solid rgba(255, 60, 60, 0.2);
  color: #ff8888;
}

.alert--warning {
  background: rgba(255, 170, 0, 0.05);
  border: 1px solid var(--neon-amber);
}

.alert--success {
  background: rgba(0, 255, 136, 0.05);
  border: 1px solid var(--neon-green);
}

.list-item {
  display: flex;
  gap: 1rem;
  padding: 0.25rem 0;
  align-items: flex-start;
  color: var(--text-main);
}

.text-danger {
  color: #ff8888;
}
.text-warning {
  color: var(--neon-amber);
}
.text-success {
  color: var(--neon-green);
}

.section--gradient {
  background: linear-gradient(to bottom, rgba(255, 170, 0, 0.02), transparent);
}

.border-top {
  border-top: var(--glass-border);
}

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

.grid {
  display: grid;
  gap: 2rem;
  width: 100%;
  max-width: 100%;
}

.grid--2 {
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  width: 100%;
  max-width: 100%;
}

.grid--3 {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  width: 100%;
  max-width: 100%;
}

.grid--4 {
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  width: 100%;
  max-width: 100%;
}

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

@media (max-width: 640px) {
  .grid--4 {
    grid-template-columns: 1fr;
  }
}

/* Enhanced Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.animate-fade {
  animation: fadeIn 1s cubic-bezier(0.4, 0, 0.2, 1) forwards;
  opacity: 0;
}

.animate-fade-left {
  animation: fadeInLeft 1s cubic-bezier(0.4, 0, 0.2, 1) forwards;
  opacity: 0;
}

.animate-fade-right {
  animation: fadeInRight 1s cubic-bezier(0.4, 0, 0.2, 1) forwards;
  opacity: 0;
}

.animate-scale {
  animation: scaleIn 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
  opacity: 0;
}

.delay-100 {
  animation-delay: 0.1s;
}
.delay-200 {
  animation-delay: 0.2s;
}
.delay-300 {
  animation-delay: 0.3s;
}
.delay-400 {
  animation-delay: 0.4s;
}
.delay-500 {
  animation-delay: 0.5s;
}
.delay-600 {
  animation-delay: 0.6s;
}

/* === FOOTER === */
.footer {
  border-top: var(--glass-border);
  background: linear-gradient(
    to bottom,
    rgba(10, 10, 10, 0.5) 0%,
    rgba(0, 0, 0, 0.9) 100%
  );
  backdrop-filter: blur(10px);
  padding: 5rem 0 3rem;
  margin-top: 6rem;
  text-align: center;
  position: relative;
}

.footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 300px;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--neon-amber),
    transparent
  );
  box-shadow: 0 0 20px var(--neon-amber-glow);
}

.footer__links {
  display: flex;
  justify-content: center;
  gap: 2.5rem;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}

.footer__link {
  color: var(--text-muted);
  font-size: 0.9rem;
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  transition: all 0.3s ease;
  position: relative;
}

.footer__link::after {
  content: "";
  position: absolute;
  bottom: -3px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 1px;
  background: var(--neon-amber);
  transition: width 0.3s ease;
  box-shadow: 0 0 8px var(--neon-amber-glow);
}

.footer__link:hover {
  color: var(--neon-amber);
}

.footer__link:hover::after {
  width: 100%;
}

.footer__legal {
  font-size: 0.8rem;
  color: var(--text-dark);
  margin-top: 1.5rem;
  line-height: 1.6;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* === SPECIAL EFFECTS === */
.badge {
  display: inline-block;
  padding: 0.6rem 1.2rem;
  border: 2px solid var(--neon-amber);
  color: var(--neon-amber);
  border-radius: 50px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  background: rgba(255, 170, 0, 0.05);
  box-shadow: 0 0 20px rgba(255, 170, 0, 0.2),
    inset 0 0 20px rgba(255, 170, 0, 0.05);
  animation: badgePulse 2s ease-in-out infinite;
}

@keyframes badgePulse {
  0%,
  100% {
    box-shadow: 0 0 20px rgba(255, 170, 0, 0.2),
      inset 0 0 20px rgba(255, 170, 0, 0.05);
  }
  50% {
    box-shadow: 0 0 30px rgba(255, 170, 0, 0.4),
      inset 0 0 30px rgba(255, 170, 0, 0.1);
  }
}

.trust-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.95rem;
  color: var(--text-muted);
  transition: all 0.3s ease;
}

.trust-badge:hover {
  color: var(--neon-green);
  transform: translateX(5px);
}

.checkmark {
  color: var(--neon-green);
  font-size: 1.2rem;
  filter: drop-shadow(0 0 8px var(--neon-green-glow));
}

/* Glitch Effect */
.glitch {
  position: relative;
}

.glitch::before,
.glitch::after {
  content: attr(data-text);
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
}

.glitch:hover::before {
  animation: glitch-1 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94) both infinite;
  color: var(--neon-blue);
  z-index: -1;
}

.glitch:hover::after {
  animation: glitch-2 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94) reverse both
    infinite;
  color: var(--neon-red);
  z-index: -2;
}

@keyframes glitch-1 {
  0% {
    transform: translate(0);
    opacity: 1;
  }
  20% {
    transform: translate(-2px, 2px);
    opacity: 1;
  }
  40% {
    transform: translate(-2px, -2px);
    opacity: 1;
  }
  60% {
    transform: translate(2px, 2px);
    opacity: 1;
  }
  80% {
    transform: translate(2px, -2px);
    opacity: 1;
  }
  100% {
    transform: translate(0);
    opacity: 1;
  }
}

@keyframes glitch-2 {
  0% {
    transform: translate(0);
    opacity: 1;
  }
  20% {
    transform: translate(2px, -2px);
    opacity: 1;
  }
  40% {
    transform: translate(2px, 2px);
    opacity: 1;
  }
  60% {
    transform: translate(-2px, -2px);
    opacity: 1;
  }
  80% {
    transform: translate(-2px, 2px);
    opacity: 1;
  }
  100% {
    transform: translate(0);
    opacity: 1;
  }
}

/* === RESPONSIVE === */
/* Mobile and Tablet - covers all devices up to 1024px */
@media (max-width: 1024px) {
  /* Mobile Navigation */
  .nav {
    padding: 0.75rem 0;
  }

  .nav__inner {
    padding: 0 1.5rem;
  }

  .nav__links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.98);
    backdrop-filter: blur(20px);
    flex-direction: column;
    padding: 2rem;
    border-bottom: var(--glass-border);
    gap: 1.5rem;
    z-index: 999;
  }

  .nav__links.active {
    display: flex;
  }

  .nav__toggle {
    display: block;
  }

  /* Tap target improvements - ensure 44px minimum */
  .nav__link {
    padding: 1rem 0.5rem;
    min-height: 44px;
    display: flex;
    align-items: center;
  }

  .nav__cta {
    padding: 0.75rem 1.75rem;
    min-height: 44px;
  }

  .footer__link {
    font-size: 0.85rem;
    padding: 0.5rem;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
  }

  .accordion__header {
    min-height: 60px;
  }

  /* Fix hero section spacing on mobile to prevent badge overlap */
  /* Ticker removed */
  .section--hero {
    padding-top: calc(var(--nav-height) + 3rem);
    min-height: 100vh;
  }

  /* Reduce sub-page hero height on mobile/tablet */
  .section--hero.section--subpage {
    min-height: 50vh;
    max-height: 60vh;
    padding-top: calc(var(--nav-height) + 2rem);
  }

  .section--hero .container {
    padding-top: 2rem;
  }

  .section--hero .badge {
    margin-top: 0;
    margin-bottom: 1.5rem;
  }

  /* Typography adjustments */
  h1 {
    font-size: clamp(2rem, 8vw, 3.5rem);
    line-height: 1.1;
    margin-bottom: 1.5rem;
  }

  h2 {
    font-size: clamp(2rem, 7vw, 3rem);
  }

  h3 {
    font-size: clamp(1.3rem, 4vw, 1.8rem);
  }

  p {
    font-size: 1rem;
    line-height: 1.7;
  }

  /* Layout adjustments */
  .section {
    padding: 4rem 0;
  }

  .container {
    padding: 0 1.5rem;
  }

  /* Buttons - full width on mobile */
  .btn {
    width: 100%;
    margin-bottom: 1rem;
    font-size: 1.2rem;
    padding: 1rem 2rem;
  }

  /* Grid layouts */
  .grid--2,
  .grid--3 {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  /* Cards */
  .card {
    padding: 2rem 1.5rem;
  }

  /* Footer */
  .footer {
    padding: 4rem 0 2rem;
  }

  .footer__links {
    gap: 1.5rem;
    flex-direction: column;
  }

  /* Ambient lighting - reduce size on mobile */
  .ambient-light {
    width: 400px;
    height: 400px;
  }

  /* Badge sizing */
  .badge {
    font-size: 0.7rem;
    padding: 0.5rem 1rem;
  }

  /* Accordion mobile adjustments */
  .accordion__header {
    padding: 1.5rem 1.5rem;
    font-size: 1rem;
    gap: 1rem;
  }

  .accordion__header:hover {
    padding-left: 1.5rem;
  }

  .accordion__content {
    padding: 0 1.5rem;
  }

  .accordion.active .accordion__content {
    padding: 1.5rem;
  }

  .accordion__icon {
    font-size: 1.5rem;
  }
}

/* Small Mobile Devices - phones in portrait */
@media (max-width: 480px) {
  /* Nuclear option: prevent ANY element from causing horizontal scroll */
  *,
  *::before,
  *::after {
    max-width: 100vw;
  }

  /* Force flex wrapping on small screens */
  [style*="display: flex"],
  [style*="display:flex"] {
    flex-wrap: wrap !important;
  }

  /* Constrain images */
  img {
    max-width: 100%;
    height: auto;
  }

  /* Fix video embeds */
  iframe {
    max-width: 100%;
  }

  /* Fix inline flex containers */
  div[style*="gap"] {
    gap: 0.75rem !important;
  }

  /* Additional spacing for very small screens */
  .section--hero {
    padding-top: calc(var(--nav-height) + 2.5rem);
  }

  .section--hero.section--subpage {
    padding-top: calc(var(--nav-height) + 1.5rem);
  }

  .section--hero .container {
    padding-top: 1.5rem;
  }

  .section--hero .badge {
    font-size: 0.65rem;
    padding: 0.4rem 0.8rem;
    margin-bottom: 1rem;
  }

  /* Further reduce typography on tiny screens */
  h1 {
    font-size: clamp(1.8rem, 8vw, 2.2rem);
    margin-bottom: 1rem;
  }

  h2 {
    font-size: clamp(1.5rem, 6vw, 2rem);
  }

  /* Tighter spacing */
  .section {
    padding: 3rem 0;
  }

  .container {
    padding: 0 1rem;
  }

  .btn {
    font-size: 1.1rem;
    padding: 0.9rem 1.5rem;
  }

  .card {
    padding: 1.5rem 1rem;
  }
}

/* === ACCORDION (FAQ) === */
.accordion {
  margin-bottom: 1.5rem;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: var(--glass-border);
  background: var(--bg-card);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
/* === JS-DRIVEN ANIMATIONS (Phase 3) === */
.animate-fade,
.animate-fade-left,
.animate-fade-right,
.animate-scale,
.testimonial-card,
.trust-card {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1),
    transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Hero section elements should NOT have initial transform to prevent flash/jump on load */
.section--hero .animate-fade,
.section--hero .animate-scale {
  transform: none;
  animation: fadeInNoTranslate 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

/* Accordion elements should also use fade-only animation to prevent up/down jump on mobile */
.accordion.animate-fade {
  transform: none;
  animation: fadeInNoTranslate 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes fadeInNoTranslate {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.is-visible {
  opacity: 1 !important;
  transform: translate(0, 0) !important;
}

/* Magnetic Button Support */
.btn--primary,
.btn--secondary,
.back-link {
  transition: transform 0.1s ease-out, box-shadow 0.3s ease,
    border-color 0.3s ease, background 0.3s ease !important;
  will-change: transform;
}

/* Scrolled Nav */
.nav--scrolled {
  background: rgba(0, 0, 0, 0.95) !important;
  border-bottom: 1px solid rgba(255, 170, 0, 0.2) !important;
  height: calc(var(--nav-height) - 10px) !important;
}

/* === LEGAL PAGES === */

.legal-header {
  padding-top: calc(var(--nav-height) + 2rem);
  margin-bottom: 2rem;
  display: flex;
  justify-content: flex-start;
}

.back-link {
  color: var(--neon-amber);
  text-decoration: none;
  font-family: var(--font-mono);
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.3s ease;
  padding: 0.5rem 1rem;
  border: 1px solid rgba(255, 170, 0, 0.2);
  border-radius: var(--radius-sm);
  background: rgba(255, 170, 0, 0.05);
}

.back-link:hover {
  background: rgba(255, 170, 0, 0.1);
  border-color: var(--neon-amber);
  box-shadow: 0 0 15px rgba(255, 170, 0, 0.2);
  transform: translateX(-5px);
}

/* === BENTO FLEX GRID === */
.bento-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: auto;
}

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

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

.bento-item {
  position: relative;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.bento-item--span-2 {
  grid-column: span 2;
}

.bento-item--span-3 {
  grid-column: span 3;
}

.bento-item--row-2 {
  grid-row: span 2;
}

@media (max-width: 992px) {
  .bento-item--span-2,
  .bento-item--span-3 {
    grid-column: span 2;
  }
}

@media (max-width: 768px) {
  .bento-item--span-2,
  .bento-item--span-3,
  .bento-item--row-2 {
    grid-column: span 1;
    grid-row: span 1;
  }
}

.glow-card {
  position: relative;
  border-radius: var(--radius-md);
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  padding: 2.5rem;
  height: 100%;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.glow-card:hover {
  transform: translateY(-5px);
  border-color: rgba(255, 170, 0, 0.4);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4), 0 0 20px rgba(255, 170, 0, 0.1);
}

.glow-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(
    135deg,
    rgba(255, 170, 0, 0.2),
    transparent 40%,
    transparent 60%,
    rgba(255, 170, 0, 0.2)
  );
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.4s ease;
}

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

.trust-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 2rem 1.5rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-sm);
  transition: transform 0.3s ease;
}

.trust-card:hover {
  transform: scale(1.02);
  background: rgba(255, 255, 255, 0.05);
}

.policy-content h2 {
  color: var(--neon-amber);
  margin-top: 2.5rem;
  margin-bottom: 1rem;
}

.policy-content p {
  line-height: 1.7;
  margin-bottom: 1.2rem;
  color: rgba(255, 255, 255, 0.85);
}

.accordion:hover {
  border-color: var(--glass-border-neon);
  background: var(--bg-card-hover);
}

.accordion__header {
  width: 100%;
  background: transparent;
  border: none;
  padding: 1.75rem 2rem;
  text-align: left;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-body);
  font-size: 1.1rem;
  font-weight: 600;
  color: white;
  transition: all 0.3s ease;
  gap: 1.5rem;
}

.accordion__header span:first-child {
  flex: 1;
}

.accordion__header:hover {
  background: rgba(255, 170, 0, 0.05);
  padding-left: 2.25rem;
}

.accordion__icon {
  color: var(--neon-amber);
  font-size: 2rem;
  font-weight: 300;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  flex-shrink: 0;
  filter: drop-shadow(0 0 8px var(--neon-amber-glow));
}

.accordion.active .accordion__icon {
  transform: rotate(45deg);
}

.accordion__content {
  padding: 0 2rem;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease;
  background: rgba(0, 0, 0, 0.3);
}

.accordion.active .accordion__content {
  padding: 2rem;
  max-height: 1000px;
}

.accordion__content p {
  color: var(--text-muted);
  margin-bottom: 1rem;
  line-height: 1.7;
}

.accordion__content ul {
  list-style: none;
  padding-left: 0;
  margin: 1rem 0;
}

.accordion__content li {
  padding: 0.5rem 0;
  padding-left: 1.5rem;
  position: relative;
  color: var(--text-muted);
  line-height: 1.6;
}

.accordion__content li::before {
  content: "▸";
  position: absolute;
  left: 0;
  color: var(--neon-amber);
  font-size: 0.9rem;
}

.accordion__content strong {
  color: var(--neon-amber);
  font-weight: 600;
}

/* === THE COMMUNITY WALL (TESTIMONIALS) === */
.testimonial-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
}

.testimonial-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  padding: 2rem;
  border-radius: var(--radius-md);
  position: relative;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}

.testimonial-card:hover {
  border-color: rgba(0, 255, 157, 0.3); /* Neon green for trust */
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.testimonial-card::before {
  content: "“";
  position: absolute;
  top: 1rem;
  left: 1.5rem;
  font-size: 4rem;
  color: var(--neon-amber);
  opacity: 0.1;
  font-family: serif;
}

.testimonial__text {
  font-size: 1rem;
  line-height: 1.7;
  font-style: italic;
  color: rgba(255, 255, 255, 0.9);
  flex-grow: 1;
}

.testimonial__meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 1rem;
}

.testimonial__author {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  color: var(--neon-amber);
  font-weight: 500;
}

.testimonial__city {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.03);
  padding: 0.2rem 0.6rem;
  border-radius: 100px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.testimonial__verify {
  margin-left: auto;
  color: var(--neon-green);
  font-size: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.3rem;
  font-family: var(--font-mono);
  opacity: 0.8;
}

/* === PRICING & JOIN PAGE (Phase 3) === */
.pricing-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  max-width: 900px;
  margin: 0 auto;
}

.pricing-card {
  position: relative;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  padding: 3rem 2rem;
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.pricing-card:hover {
  border-color: var(--neon-amber);
  transform: scale(1.02);
}

.pricing-card.popular {
  border: 2px solid var(--neon-amber);
  box-shadow: 0 0 30px rgba(255, 170, 0, 0.15);
}

.popular-badge {
  position: absolute;
  top: -15px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--neon-amber);
  color: #000;
  padding: 0.4rem 1.2rem;
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  box-shadow: 0 5px 15px rgba(255, 170, 0, 0.3);
  animation: pulse-amber 2s infinite;
}

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

.pricing-card__title {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  color: var(--text-main);
}

.pricing-card__price {
  font-size: 3.5rem;
  font-weight: 800;
  color: var(--neon-amber);
  margin-bottom: 1.5rem;
}

.pricing-card__price span {
  font-size: 1rem;
  color: var(--text-muted);
  font-weight: 400;
}

.pricing-card__features {
  list-style: none;
  padding: 0;
  margin: 0 0 2rem 0;
  text-align: left;
}

.pricing-card__feature {
  padding: 0.6rem 0;
  color: rgba(255, 255, 255, 0.8);
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.pricing-card__feature::before {
  content: "✓";
  color: var(--neon-green);
  font-weight: 700;
}

.secure-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(0, 255, 157, 0.05);
  border: 1px solid rgba(0, 255, 157, 0.2);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  margin-top: 3rem;
  color: var(--neon-green);
  font-size: 0.9rem;
  font-family: var(--font-mono);
}

/* === LOCKED INTEL TEASERS (Phase 3) === */
.intel-preview {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-md);
  border: 1px solid var(--glass-border);
  background: var(--glass-bg);
  padding: 2rem;
  transition: all 0.3s ease;
}

.intel-preview--locked {
  cursor: pointer;
}

.intel-preview--locked:hover {
  border-color: var(--neon-amber);
}

.intel-preview__blur {
  filter: blur(8px);
  opacity: 0.4;
  user-select: none;
  pointer-events: none;
}

.intel-preview__overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.4);
  z-index: 5;
  text-align: center;
  padding: 1.5rem;
  backdrop-filter: blur(2px);
}

.intel-preview__lock {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: var(--neon-amber);
  animation: pulse-lock 2s infinite;
}

@keyframes pulse-lock {
  0% {
    transform: scale(1);
    opacity: 0.8;
  }
  50% {
    transform: scale(1.1);
    opacity: 1;
  }
  100% {
    transform: scale(1);
    opacity: 0.8;
  }
}

.intel-preview__badge {
  background: var(--neon-amber);
  color: #000;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.intel-preview__cta {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  color: var(--neon-amber);
  text-decoration: underline;
  margin-top: 0.5rem;
}

/* === FOOTER REFINEMENT (Phase 3 Bug-Fix) === */
.footer {
  padding: 4rem 1.5rem 2rem;
  background: #000;
  border-top: 1px solid rgba(255, 170, 0, 0.05);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 100%;
}

.footer .nav__logo {
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  margin: 0 auto 2rem !important;
  width: 100% !important;
}

.footer__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 2rem;
  width: 100%;
}

.footer__link {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.3s ease;
  font-family: var(--font-mono);
  letter-spacing: 0.5px;
}

.footer__link:hover {
  color: var(--neon-amber);
}

@media (max-width: 768px) {
  .footer {
    padding: 3rem 1.5rem;
  }

  .footer__links {
    flex-direction: column;
    gap: 1.25rem;
    align-items: center; /* Forced center for mobile stack */
  }

  .footer__link {
    width: auto;
    padding: 0.5rem 0;
  }
}

/* Ticker removed for compliance */
.nav {
  top: 0 !important;
}
