/* ============================================================
   Design Tokens
   ============================================================ */
:root {
  --bg-main: #000000;
  --bg-card: #121212;
  --bg-card-hover: #1a1a1a;
  --text-primary: #f5f5f7;
  --text-secondary: #a1a1a6;
  --accent-red: #e31828;
  --accent-red-hover: #f92939;
  --accent-red-glow: rgba(227, 24, 40, 0.2);
  --accent-gold: #fcd116;
  --accent-gold-light: rgba(252, 209, 22, 0.12);
  --border-color: rgba(255, 255, 255, 0.1);
  --border-hover: rgba(255, 255, 255, 0.2);
  --glass-bg: rgba(0, 0, 0, 0.72);
  --shadow-sm: 0 4px 16px rgba(0, 0, 0, 0.6);
  --shadow-md: 0 12px 40px rgba(0, 0, 0, 0.8);
  --shadow-lg: 0 24px 64px rgba(0, 0, 0, 0.9);
  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-lg: 32px;
  --font-sans: -apple-system, BlinkMacSystemFont, "Inter", "SF Pro Display", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --ease-spring: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ============================================================
   Keyframes
   ============================================================ */

/* Hero radial orb breathes */
@keyframes orb-pulse {
  0%, 100% { transform: translateX(-50%) scale(1);   opacity: 0.8; }
  50%       { transform: translateX(-50%) scale(1.2); opacity: 1;   }
}

/* Gradient text shimmer */
@keyframes gradient-shift {
  0%   { background-position: 0% center; }
  100% { background-position: 200% center; }
}

/* Hero badge border glow */
@keyframes badge-glow {
  0%, 100% { border-color: rgba(252, 209, 22, 0.2); box-shadow: none; }
  50%       { border-color: rgba(252, 209, 22, 0.55); box-shadow: 0 0 14px rgba(252, 209, 22, 0.12); }
}

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

/* Scroll indicator pulse */
@keyframes scroll-line-anim {
  0%, 100% { opacity: 0.15; transform: scaleY(0.6); }
  50%       { opacity: 0.7;  transform: scaleY(1); }
}

/* Scroll hint fade-in on load */
@keyframes hint-appear {
  from { opacity: 0; transform: translateX(-50%) translateY(8px); }
  to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}

/* SVG checkmark draw */
@keyframes draw-check {
  from { stroke-dashoffset: 30; }
  to   { stroke-dashoffset: 0; }
}

/* Button ripple expand */
@keyframes ripple-out {
  from { transform: scale(0); opacity: 1; }
  to   { transform: scale(1); opacity: 0; }
}

/* Soft float for stat numbers post-count */
@keyframes stat-pop {
  0%   { transform: scale(1); }
  40%  { transform: scale(1.06); }
  100% { transform: scale(1); }
}

/* 3D perspective grid scrolls toward viewer */
@keyframes grid-move {
  from { background-position: 0 0; }
  to   { background-position: 0 64px; }
}

/* Ambient orbs drift slowly */
@keyframes orb-float-a {
  0%, 100% { transform: translate(-50%, 0)   scale(1);    opacity: 0.7; }
  33%       { transform: translate(-54%, -3%) scale(1.05); opacity: 1;   }
  66%       { transform: translate(-46%, 2%)  scale(0.97); opacity: 0.8; }
}
@keyframes orb-float-b {
  0%, 100% { opacity: 0.5; transform: scale(1); }
  50%       { opacity: 0.9; transform: scale(1.15); }
}
@keyframes orb-float-c {
  0%, 100% { opacity: 0.4; transform: scale(1); }
  50%       { opacity: 0.75; transform: scale(1.1); }
}

/* Floating rings */
@keyframes ring-float-a {
  0%, 100% { transform: translateY(0px)   rotate(0deg);   opacity: 0.55; }
  33%       { transform: translateY(-22px) rotate(8deg);   opacity: 0.9;  }
  66%       { transform: translateY(12px)  rotate(-5deg);  opacity: 0.7;  }
}
@keyframes ring-float-b {
  0%, 100% { transform: translateY(0px)  rotate(0deg);    opacity: 0.4;  }
  50%       { transform: translateY(26px) rotate(-12deg);  opacity: 0.8;  }
}
@keyframes ring-float-c {
  0%, 100% { transform: translateY(0px)   rotate(0deg);   opacity: 0.65; }
  50%       { transform: translateY(-16px) rotate(22deg);  opacity: 1;    }
}

/* Orbital rings — faked 3D via perspective() in transform */
@keyframes orbit-a {
  from { transform: perspective(220px) rotateX(68deg) rotateZ(0deg); }
  to   { transform: perspective(220px) rotateX(68deg) rotateZ(360deg); }
}
@keyframes orbit-b {
  from { transform: perspective(220px) rotateX(58deg) rotateZ(0deg); }
  to   { transform: perspective(220px) rotateX(58deg) rotateZ(360deg); }
}

/* Glow nodes breathe */
@keyframes dots-pulse {
  0%, 100% { opacity: 0.4; }
  50%       { opacity: 1;   }
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  background-color: var(--bg-main);
  color: var(--text-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  line-height: 1.5;
}

/* ============================================================
   Scroll Progress Bar
   ============================================================ */
#scrollProgress {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--accent-red), var(--accent-gold));
  transform: scaleX(0);
  transform-origin: left;
  z-index: 200;
  will-change: transform;
}

/* ============================================================
   Cursor Glow (desktop only — JS guards on touch)
   ============================================================ */
#cursorGlow {
  position: fixed;
  top: 0;
  left: 0;
  width: 700px;
  height: 700px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(227, 24, 40, 0.045) 0%, transparent 65%);
  pointer-events: none;
  z-index: 0;
  will-change: transform;
}

/* ============================================================
   Utilities
   ============================================================ */
.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 2rem;
}

.text-gradient {
  background: linear-gradient(135deg, var(--accent-red), var(--accent-gold), var(--accent-red));
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
  animation: gradient-shift 4s linear infinite;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ============================================================
   Entrance Animations
   ============================================================ */

/* Shared base: all variants are hidden until .visible is added by JS */
.fade-up,
.fade-left,
.fade-right,
.scale-in {
  transition: opacity 0.8s var(--ease-spring), transform 0.8s var(--ease-spring);
}

.fade-up   { opacity: 0; transform: translateY(32px); }
.fade-left  { opacity: 0; transform: translateX(-32px); }
.fade-right { opacity: 0; transform: translateX(32px); }
.scale-in   { opacity: 0; transform: scale(0.93); }

.fade-up.visible,
.fade-left.visible,
.fade-right.visible,
.scale-in.visible {
  opacity: 1;
  transform: none;
}

/* ============================================================
   Navigation
   ============================================================ */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: var(--glass-bg);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid transparent;
  padding: 1rem 0;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

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

.nav-logo {
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--text-primary);
  text-decoration: none;
  letter-spacing: -0.02em;
  transition: transform 0.2s var(--ease-spring);
}
.nav-logo:hover { transform: scale(1.04); }
.nav-logo span  { color: var(--accent-red); }

.nav-btn {
  background: var(--accent-red);
  color: #ffffff;
  padding: 0.6rem 1.25rem;
  border-radius: 980px;
  font-size: 0.85rem;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.2s, transform 0.2s var(--ease-spring), box-shadow 0.2s;
  position: relative;
  overflow: hidden;
}
.nav-btn:hover {
  background: var(--accent-red-hover);
  box-shadow: 0 4px 16px var(--accent-red-glow);
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 0.875rem;
}

.lang-switcher {
  display: flex;
  align-items: center;
  gap: 0.15rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  border-radius: 980px;
  padding: 0.2rem;
}

.lang-opt {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
  padding: 0.28rem 0.65rem;
  border-radius: 980px;
  transition: color 0.2s ease, background 0.2s ease;
  letter-spacing: 0.05em;
  line-height: 1;
}
.lang-opt:hover { color: var(--text-primary); }
.lang-opt.active {
  background: var(--accent-red);
  color: #ffffff;
}

/* ============================================================
   Hero Section
   ============================================================ */
.hero {
  padding: 14rem 0 10rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  background: #000;
}

/* Ambient radial glows — top-centre red, corner accents */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 120% 55% at 50% -6%,  rgba(227, 24, 40, 0.24) 0%, transparent 62%),
    radial-gradient(circle   380px at 90% 64%,     rgba(252, 209, 22, 0.055) 0%, transparent 100%),
    radial-gradient(circle   440px at 10% 70%,     rgba(227, 24, 40, 0.07)  0%, transparent 100%),
    linear-gradient(to bottom, rgba(0,0,0,0.1) 0%, transparent 40%, rgba(0,0,0,0.92) 100%);
  z-index: 0;
  pointer-events: none;
}

/* Central pulsing orb */
.hero::after {
  content: '';
  position: absolute;
  top: -6%;
  left: 50%;
  transform: translateX(-50%);
  width: 960px;
  height: 960px;
  border-radius: 50%;
  background: radial-gradient(circle,
    rgba(227, 24, 40, 0.22) 0%,
    rgba(252, 209, 22, 0.07) 42%,
    transparent 70%);
  pointer-events: none;
  z-index: 0;
  animation: orb-pulse 6s ease-in-out infinite;
}

.hero .container {
  position: relative;
  z-index: 1;
  transition: transform 0.15s ease-out;
}

/* ============================================================
   Hero — 3D Perspective Grid Floor
   ============================================================ */
.hero-grid {
  position: absolute;
  bottom: 0;
  left: -70%;
  right: -70%;
  height: 66%;
  z-index: 0;
  pointer-events: none;
}

/* Main grid lines: horizontal + vertical */
.hero-grid::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to bottom, rgba(227, 24, 40, 0.17) 1px, transparent 1px),
    linear-gradient(to right,  rgba(227, 24, 40, 0.10) 1px, transparent 1px);
  background-size: 64px 64px;
  transform: perspective(700px) rotateX(73deg);
  transform-origin: 50% 100%;
  animation: grid-move 7s linear infinite;
  mask-image: linear-gradient(to top,
    rgba(0,0,0,0.9) 0%,
    rgba(0,0,0,0.5) 38%,
    transparent     70%);
  -webkit-mask-image: linear-gradient(to top,
    rgba(0,0,0,0.9) 0%,
    rgba(0,0,0,0.5) 38%,
    transparent     70%);
  will-change: background-position;
}

/* Accent: every 4th horizontal line is brighter (depth bands) */
.hero-grid::after {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    to bottom,
    transparent            0,
    transparent            255px,
    rgba(227, 24, 40, 0.32) 255px,
    rgba(227, 24, 40, 0.32) 256px
  );
  transform: perspective(700px) rotateX(73deg);
  transform-origin: 50% 100%;
  animation: grid-move 7s linear infinite;
  mask-image: linear-gradient(to top, rgba(0,0,0,0.75) 0%, transparent 60%);
  -webkit-mask-image: linear-gradient(to top, rgba(0,0,0,0.75) 0%, transparent 60%);
  will-change: background-position;
}

/* ============================================================
   Hero — Floating Decorative Elements (pure CSS, GPU only)
   ============================================================ */

/* Orbital pair — perspective() fakes 3D without preserve-3d */
.hf-orbit {
  position: absolute;
  width: 160px;
  height: 160px;
  top: 10%;
  left: 7%;
  z-index: 0;
  pointer-events: none;
  will-change: transform;
}
.hf-orbit::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid rgba(227, 24, 40, 0.24);
  animation: orbit-a 14s linear infinite;
}
.hf-orbit::after {
  content: '';
  position: absolute;
  inset: 16px;
  border-radius: 50%;
  border: 1px solid rgba(252, 209, 22, 0.14);
  animation: orbit-b 10s linear infinite reverse;
}

/* Floating circle outlines */
.hf-ring {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}
.hf-ring--lg {
  width: 340px;
  height: 340px;
  border: 1px solid rgba(227, 24, 40, 0.11);
  box-shadow: inset 0 0 70px rgba(227, 24, 40, 0.04);
  top: 3%;
  right: 1%;
  animation: ring-float-a 17s ease-in-out infinite;
}
.hf-ring--md {
  width: 200px;
  height: 200px;
  border: 1px solid rgba(252, 209, 22, 0.1);
  top: 33%;
  left: 3%;
  animation: ring-float-b 12s ease-in-out infinite;
}
.hf-ring--sm {
  width: 88px;
  height: 88px;
  border: 1px solid rgba(227, 24, 40, 0.22);
  bottom: 22%;
  right: 17%;
  animation: ring-float-c 8s ease-in-out infinite;
}

/* Scattered glow nodes — multiple dots from a single element via box-shadow */
.hf-dots {
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: rgba(227, 24, 40, 0.85);
  z-index: 0;
  pointer-events: none;
  box-shadow:
     148px  96px  0 2px rgba(227, 24, 40,  0.65),
     415px 152px  0 1px rgba(252, 209, 22, 0.55),
     668px 218px  0 2px rgba(227, 24, 40,  0.45),
     950px  72px  0 1px rgba(252, 209, 22, 0.42),
    1125px 295px  0 2px rgba(227, 24, 40,  0.42),
     278px 375px  0 1px rgba(252, 209, 22, 0.38),
     795px 440px  0 2px rgba(227, 24, 40,  0.35),
    1065px 170px  0 1px rgba(227, 24, 40,  0.52);
  animation: dots-pulse 6s ease-in-out infinite;
}

.hero-badge {
  display: inline-block;
  padding: 0.45rem 1.1rem;
  border-radius: 980px;
  background: var(--accent-gold-light);
  color: var(--accent-gold);
  border: 1px solid rgba(252, 209, 22, 0.2);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1.5rem;
  animation: badge-glow 3s ease-in-out infinite;
}

.hero h1 {
  font-size: clamp(3rem, 6vw, 5.5rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.05;
  max-width: 900px;
  margin: 0 auto 1.5rem;
}

.hero p {
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  color: var(--text-secondary);
  max-width: 650px;
  margin: 0 auto 2.5rem;
  line-height: 1.6;
  font-weight: 400;
}

.btn-primary {
  display: inline-block;
  background: var(--accent-red);
  color: #ffffff;
  padding: 1.1rem 2.8rem;
  border-radius: 980px;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.3s var(--ease-spring), transform 0.3s var(--ease-spring), box-shadow 0.3s;
  box-shadow: 0 8px 24px var(--accent-red-glow);
  border: 1px solid rgba(255,255,255,0.1);
  position: relative;
  overflow: hidden;
}
.btn-primary:hover {
  background: var(--accent-red-hover);
  box-shadow: 0 12px 32px rgba(227, 24, 40, 0.38);
}

.hero-note { font-size: 0.85rem; color: var(--text-secondary); margin-top: 1.2rem; }
.hero-note strong { color: var(--text-primary); font-weight: 500; }

/* Scroll Indicator */
.scroll-hint {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  opacity: 0;
  animation: hint-appear 0.6s var(--ease-spring) 1.4s forwards;
}

.scroll-line {
  width: 1px;
  height: 52px;
  background: linear-gradient(to bottom, rgba(252, 209, 22, 0.7), transparent);
  transform-origin: top;
  animation: scroll-line-anim 2s ease-in-out infinite;
}

/* ============================================================
   Stats Ribbon
   ============================================================ */
.stats {
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  background: var(--bg-card);
  padding: 4.5rem 0;
}

.stats-grid {
  display: flex;
  justify-content: center;
  gap: 6rem;
  flex-wrap: wrap;
  text-align: center;
}

.stat-item h3 {
  font-size: 3.8rem;
  font-weight: 700;
  color: var(--accent-red);
  line-height: 1;
  margin-bottom: 0.5rem;
  letter-spacing: -0.04em;
  display: inline-block;
}

/* Class added by JS after counter finishes */
.stat-item h3.popped {
  animation: stat-pop 0.4s var(--ease-spring) forwards;
}

.stat-item p {
  font-size: 0.82rem;
  color: var(--text-secondary);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-top: 0.25rem;
}

/* ============================================================
   Sections
   ============================================================ */
.section { padding: 8rem 0; }

.section-header {
  text-align: center;
  max-width: 650px;
  margin: 0 auto 5rem;
}

.section-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--accent-gold);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 1rem;
}

.section-title {
  font-size: clamp(2.5rem, 4vw, 3.5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 1.25rem;
}

.section-desc {
  font-size: 1.15rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ============================================================
   Cards & Grids
   ============================================================ */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem; }

.card {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  padding: 2.5rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
  transition: transform 0.4s var(--ease-spring), background 0.4s, box-shadow 0.4s, border-color 0.4s;
  position: relative;
  overflow: hidden;
}

/* Mouse-following spotlight glow inside card */
.card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at var(--glow-x, 50%) var(--glow-y, 50%),
    rgba(227, 24, 40, 0.09),
    transparent 62%
  );
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
  z-index: 0;
}
.card:hover::before { opacity: 1; }

/* All direct children above the spotlight layer */
.card > * { position: relative; z-index: 1; }

.card:hover {
  transform: translateY(-8px);
  background: var(--bg-card-hover);
  box-shadow: var(--shadow-md);
  border-color: var(--border-hover);
}

/* ============================================================
   How It Works Steps
   ============================================================ */
.step-num {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--accent-red);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 1.5rem;
  display: inline-block;
  padding: 0.3rem 0.8rem;
  border: 1px solid rgba(227, 24, 40, 0.3);
  border-radius: 980px;
  background: rgba(227, 24, 40, 0.06);
  transition: background 0.3s, border-color 0.3s;
}
.card:hover .step-num {
  background: rgba(227, 24, 40, 0.12);
  border-color: rgba(227, 24, 40, 0.5);
}

.step-title {
  font-size: 1.35rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

.step-desc {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ============================================================
   Problem Cards
   ============================================================ */
.problem-card { display: flex; flex-direction: column; height: 100%; }

.problem-icon {
  font-size: 2.4rem;
  margin-bottom: 1.5rem;
  transition: transform 0.3s var(--ease-spring);
}
.card:hover .problem-icon { transform: scale(1.15) rotate(-4deg); }

.problem-stat {
  margin-top: auto;
  padding-top: 1.5rem;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--accent-red);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  position: relative;
}
.problem-stat::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, var(--accent-red), transparent);
  opacity: 0.35;
}

/* ============================================================
   Social Proof
   ============================================================ */
.proof-section {
  background: var(--bg-card);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

/* Scrolling clients strip */
.clients-track {
  overflow: hidden;
  margin-bottom: 5rem;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 12%, #000 88%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0%, #000 12%, #000 88%, transparent 100%);
}
.clients-track:hover .clients-inner { animation-play-state: paused; }

.clients-inner {
  display: flex;
  width: max-content;
  gap: 5rem;
  align-items: center;
  animation: marquee 24s linear infinite;
  opacity: 0.45;
}

.client-logo {
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text-primary);
  white-space: nowrap;
  flex-shrink: 0;
}

/* Testimonial */
.testimonial { max-width: 720px; margin: 0 auto; text-align: center; }

.testimonial blockquote {
  position: relative;
}
.testimonial blockquote::before {
  content: '\201C';
  font-size: 8rem;
  line-height: 0;
  position: absolute;
  top: 1.8rem;
  left: -1.5rem;
  color: var(--accent-red);
  opacity: 0.12;
  font-family: Georgia, serif;
  pointer-events: none;
}

.testimonial blockquote p {
  font-size: 1.5rem;
  font-weight: 400;
  line-height: 1.55;
  margin-bottom: 2rem;
  letter-spacing: -0.01em;
  font-style: italic;
  color: #e5e5ea;
}

.test-author {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

.test-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--bg-main);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  color: var(--accent-red);
  border: 1px solid var(--border-color);
  flex-shrink: 0;
  transition: border-color 0.3s, transform 0.3s var(--ease-spring);
}
.testimonial:hover .test-avatar {
  border-color: var(--accent-red);
  transform: scale(1.08);
}

.test-info { text-align: left; }
.test-name  { font-weight: 600; font-size: 1rem; }
.test-role  { font-size: 0.85rem; color: var(--text-secondary); }

/* ============================================================
   Form
   ============================================================ */
.form-section { background: var(--bg-main); }

.form-wrapper {
  max-width: 600px;
  margin: 0 auto;
  background: var(--bg-card);
  padding: 3.5rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-color);
  transition: border-color 0.4s;
}
.form-wrapper:focus-within {
  border-color: rgba(227, 24, 40, 0.25);
}

.form-group { margin-bottom: 1.5rem; text-align: left; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 0.6rem;
  transition: color 0.2s;
}
.form-group:focus-within label { color: var(--text-primary); }

.form-control {
  width: 100%;
  padding: 1rem 1.25rem;
  font-size: 1rem;
  font-family: inherit;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  background: #000000;
  color: var(--text-primary);
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}
.form-control::placeholder { color: #555555; }
.form-control:focus {
  outline: none;
  border-color: var(--accent-red);
  background: #0a0a0a;
  box-shadow: 0 0 0 4px var(--accent-red-glow);
}

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

select.form-control {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%23a1a1a6' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1.25rem center;
}

.btn-submit {
  width: 100%;
  background: var(--accent-red);
  color: #ffffff;
  padding: 1.25rem;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-sm);
  font-size: 1.05rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s, box-shadow 0.3s, transform 0.3s var(--ease-spring);
  margin-top: 1rem;
  position: relative;
  overflow: hidden;
}
.btn-submit:hover:not(:disabled) {
  background: var(--accent-red-hover);
  box-shadow: 0 8px 24px var(--accent-red-glow);
}
.btn-submit:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

.form-guarantee {
  text-align: center;
  margin-top: 1.5rem;
  font-size: 0.85rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

/* Ripple element created by JS */
.ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.22);
  transform: scale(0);
  animation: ripple-out 0.65s ease-out forwards;
  pointer-events: none;
}

/* ============================================================
   Success State
   ============================================================ */
.success-message {
  display: none;
  text-align: center;
  padding: 2rem 0;
}

.success-icon {
  width: 64px;
  height: 64px;
  background: var(--accent-gold-light);
  border-radius: 50%;
  border: 1px solid rgba(252, 209, 22, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  color: var(--accent-gold);
  transition: transform 0.4s var(--ease-spring);
}

.success-message.animated .success-icon { transform: scale(1.1); }

.success-icon svg {
  width: 32px;
  height: 32px;
  stroke: currentColor;
  stroke-width: 2.5;
  fill: none;
  overflow: visible;
}

/* Checkmark draws itself when .animated is added by JS */
.success-icon svg polyline {
  stroke-dasharray: 30;
  stroke-dashoffset: 30;
  transition: none;
}
.success-message.animated .success-icon svg polyline {
  animation: draw-check 0.55s var(--ease-spring) 0.15s forwards;
}

/* ============================================================
   Footer
   ============================================================ */
footer {
  padding: 3rem 0;
  text-align: center;
  border-top: 1px solid var(--border-color);
  background: var(--bg-card);
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.footer-logo {
  font-weight: 600;
  color: var(--text-secondary);
  letter-spacing: 0.05em;
}

.footer-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.9rem;
  margin: 0 1rem;
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--text-primary); }

/* ============================================================
   Responsive
   ============================================================ */

/* Tablet — 3-column grid drops to 2 before collapsing fully */
@media (max-width: 900px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .hero {
    padding: 8rem 0 6rem;
  }
  .hero-grid { height: 55%; }
  .hero h1 { font-size: 2.5rem; }
  .stats-grid { gap: 3rem; flex-direction: column; }
  .grid-3, .grid-2, .form-row { grid-template-columns: 1fr; }
  .form-wrapper { padding: 2rem; }
  .footer-links a { margin: 0 1rem; }
  .scroll-hint { display: none; }
  #cursorGlow { display: none; }
  /* Ensure tappable nav button meets 44px touch target */
  .nav-btn { min-height: 44px; display: inline-flex; align-items: center; }
}

/* Small phones */
@media (max-width: 480px) {
  .container { padding: 0 1.25rem; }
  .hero { padding: 7rem 0 5rem; }
  .hero h1 { font-size: 2rem; letter-spacing: -0.03em; }
  .section { padding: 5rem 0; }
  .section-title { font-size: 2rem; }
  .stat-item h3 { font-size: 3rem; }
  .testimonial blockquote p { font-size: 1.2rem; }
  .testimonial blockquote::before { left: 0; font-size: 5rem; opacity: 0.08; }
  .card { padding: 1.75rem; }
  .form-wrapper { padding: 1.5rem; border-radius: var(--radius-md); }
}

/* ============================================================
   Reduced Motion — respects OS accessibility setting
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  .fade-up, .fade-left, .fade-right, .scale-in {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }

  .text-gradient,
  .hero::after,
  .hero-badge,
  .hero-grid::before,
  .hero-grid::after,
  .hf-orbit::before,
  .hf-orbit::after,
  .hf-ring--lg,
  .hf-ring--md,
  .hf-ring--sm,
  .hf-dots,
  .clients-inner,
  .scroll-line,
  .scroll-hint {
    animation: none !important;
  }

  .scroll-hint { opacity: 1; }
  .clients-inner { opacity: 0.45; }

  .success-icon svg polyline {
    stroke-dashoffset: 0 !important;
    animation: none !important;
  }

  .card,
  .btn-primary,
  .btn-submit,
  .nav-btn,
  nav {
    transition: none !important;
  }
}
