/* AG Associates Landing Page Styles
 * Domain: advadiityagade.com
 * Brand Colors: Gold (#EAB308) & Emerald (#10B981) on Deep Charcoal base
 * Typography: Space Grotesk (display) + Instrument Serif (editorial) — premium Google Fonts
 * Design Level: Targeting 10/10 — Award-winning craft per top-design principles
 */

:root {
  /* Core Brand Colors */
  --gold-primary: #EAB308;
  --gold-light: #FDE047;
  --gold-dark: #CA8A04;
  --gold-gradient: linear-gradient(135deg, #EAB308 0%, #FDE047 50%, #EAB308 100%);
  --emerald-primary: #10B981;
  --emerald-light: #34D399;
  --emerald-dark: #059669;
  --emerald-gradient: linear-gradient(135deg, #10B981 0%, #34D399 50%, #10B981 100%);

  /* Background & Surface Colors — warm variants, never pure black/white */
  --bg-deep: #090D16;
  --bg-deep-warm: #0B1018;
  --bg-card: rgba(15, 23, 42, 0.88);
  --bg-card-hover: rgba(20, 30, 50, 0.94);
  --bg-glass: rgba(255, 255, 255, 0.04);
  --bg-glass-strong: rgba(255, 255, 255, 0.08);
  --bg-accent: rgba(234, 179, 8, 0.06);

  /* Text Colors — functional hierarchy */
  --text-primary: #F8FAFC;
  --text-secondary: #CBD5E1;
  --text-tertiary: #94A3B8;
  --text-muted: #64748B;
  --text-dim: #475569;

  /* Border & Glass Effects */
  --border-glass: rgba(255, 255, 255, 0.08);
  --border-glass-strong: rgba(255, 255, 255, 0.15);
  --border-gold: rgba(234, 179, 8, 0.3);
  --border-emerald: rgba(16, 185, 129, 0.3);

  /* Shadows — layered depth */
  --shadow-soft: 0 2px 16px rgba(0, 0, 0, 0.25);
  --shadow-medium: 0 8px 32px rgba(0, 0, 0, 0.35);
  --shadow-strong: 0 16px 48px rgba(0, 0, 0, 0.45);
  --shadow-gold: 0 0 40px rgba(234, 179, 8, 0.2);
  --shadow-emerald: 0 0 40px rgba(16, 185, 129, 0.2);
  --shadow-inner: inset 0 1px 0 rgba(255, 255, 255, 0.05);

  /* Typography — Premium pairing: Space Grotesk (display) + Instrument Serif (editorial) */
  --font-display: 'Space Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-editorial: 'Instrument Serif', Georgia, serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
  --font-ui: var(--font-display);

  /* Fluid Type Scale — dramatic contrast (10:1+ ratio) using clamp() */
  --text-xs: clamp(0.65rem, 0.6rem + 0.25vw, 0.75rem);
  --text-sm: clamp(0.8rem, 0.75rem + 0.25vw, 0.875rem);
  --text-base: clamp(0.95rem, 0.9rem + 0.3vw, 1.05rem);
  --text-lg: clamp(1.125rem, 1.05rem + 0.4vw, 1.25rem);
  --text-xl: clamp(1.375rem, 1.25rem + 0.6vw, 1.625rem);
  --text-2xl: clamp(1.75rem, 1.5rem + 1.2vw, 2.25rem);
  --text-3xl: clamp(2.5rem, 2rem + 2.5vw, 3.5rem);
  --text-4xl: clamp(3.5rem, 2.5rem + 5vw, 5.5rem);
  --text-5xl: clamp(5rem, 3rem + 10vw, 8rem);

  /* Tracking ladder — negative for display, generous for body */
  --tracking-tight: -0.03em;
  --tracking-tighter: -0.05em;
  --tracking-normal: 0;
  --tracking-wide: 0.02em;
  --tracking-wider: 0.08em;
  --tracking-widest: 0.12em;

  /* Line heights */
  --leading-tight: 1.05;
  --leading-normal: 1.2;
  --leading-relaxed: 1.5;
  --leading-loose: 1.7;

  /* Spacing — modular scale */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  --space-32: 8rem;

  /* Border Radius */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  /* Transitions — custom cubic-bezier, never ease/linear */
  --ease-expo-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-quart-out: cubic-bezier(0.25, 1, 0.5, 1);
  --ease-expo-in-out: cubic-bezier(0.87, 0, 0.13, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --transition-fast: 150ms var(--ease-quart-out);
  --transition-base: 250ms var(--ease-expo-out);
  --transition-slow: 400ms var(--ease-expo-out);
  --transition-spring: 500ms var(--ease-spring);

  /* Z-Index Scale */
  --z-dropdown: 100;
  --z-sticky: 200;
  --z-fixed: 300;
  --z-modal-backdrop: 400;
  --z-modal: 500;
  --z-popover: 600;
  --z-tooltip: 700;

  /* Layout — max content width */
  --max-width: 1280px;
  --max-width-narrow: 900px;
  --max-width-reading: 720px;
}

/* ========================================
   GLOBAL RESET & BASE
   ======================================== */

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  font-family: var(--font-ui);
  background: var(--bg-deep);
  color: var(--text-primary);
  line-height: var(--leading-relaxed);
  overflow-x: hidden;
  font-weight: 400;
}

/* Selection — branded, works on all backgrounds */
::selection {
  background: var(--gold-primary);
  color: var(--bg-deep);
}

/* Focus visible — beautiful AND accessible */
:focus-visible {
  outline: 2px solid var(--gold-primary);
  outline-offset: 3px;
  border-radius: 2px;
}

/* Reduced motion — respect user preference */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .parallax { transform: none !important; }
}

/* ========================================
   TYPOGRAPHY UTILITIES
   ======================================== */

/* Display fonts — Space Grotesk with negative tracking */
.font-display { font-family: var(--font-display); }
.font-editorial { font-family: var(--font-editorial); }
.font-mono { font-family: var(--font-mono); }

.tracking-tight { letter-spacing: var(--tracking-tight); }
.tracking-tighter { letter-spacing: var(--tracking-tighter); }
.tracking-wide { letter-spacing: var(--tracking-wide); }
.tracking-wider { letter-spacing: var(--tracking-wider); }
.tracking-widest { letter-spacing: var(--tracking-widest); }

.leading-tight { line-height: var(--leading-tight); }
.leading-normal { line-height: var(--leading-normal); }
.leading-relaxed { line-height: var(--leading-relaxed); }
.leading-loose { line-height: var(--leading-loose); }

/* Gradient text utilities */
.gold-gradient-text {
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.emerald-gradient-text {
  background: var(--emerald-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Text color utilities */
.text-primary { color: var(--text-primary); }
.text-secondary { color: var(--text-secondary); }
.text-tertiary { color: var(--text-tertiary); }
.text-muted { color: var(--text-muted); }
.text-dim { color: var(--text-dim); }
.text-gold { color: var(--gold-primary); }
.text-emerald { color: var(--emerald-primary); }

/* Public voice assistant enhancement.
 * Uses the existing glass-panel language and brand tokens; the particle layer
 * is decorative and collapses cleanly for reduced-motion and small screens.
 */
.voice-section {
  position: relative;
  padding-top: var(--space-16);
}

.voice-shell {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.1fr);
  gap: var(--space-12);
  align-items: center;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: clamp(var(--space-8), 6vw, var(--space-16));
  overflow: hidden;
}

.voice-copy {
  position: relative;
  z-index: 2;
}

.voice-copy h2 {
  margin: var(--space-3) 0 var(--space-5);
  font-family: var(--font-editorial);
  font-size: var(--text-4xl);
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-tight);
}

.voice-copy h2 em {
  color: var(--gold-light);
  font-weight: 400;
}

.voice-copy p {
  max-width: 38rem;
  color: var(--text-secondary);
}

.eyebrow,
.voice-disclosure {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  color: var(--text-tertiary);
}

.voice-disclosure {
  margin-top: var(--space-5);
  color: var(--emerald-light);
}

.voice-card {
  position: relative;
  display: flex;
  min-height: 420px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-4);
  padding: var(--space-8);
  overflow: hidden;
  border: 1px solid var(--border-glass-strong);
  border-radius: var(--radius-xl);
  background:
    radial-gradient(circle at 50% 35%, rgba(234, 179, 8, 0.12), transparent 38%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02));
  box-shadow: var(--shadow-medium), var(--shadow-inner);
}

.voice-card::before,
.voice-card::after {
  position: absolute;
  width: 18rem;
  height: 18rem;
  border: 1px solid rgba(16, 185, 129, 0.16);
  border-radius: 50%;
  content: "";
  pointer-events: none;
  transform: rotateX(62deg) rotateZ(18deg);
}

.voice-card::after {
  width: 27rem;
  height: 27rem;
  border-color: rgba(234, 179, 8, 0.12);
  transform: rotateX(62deg) rotateZ(-24deg);
}

.voice-particles {
  position: absolute;
  inset: 8%;
  opacity: 0.65;
  background-image:
    radial-gradient(circle, var(--gold-light) 0 1px, transparent 1.5px),
    radial-gradient(circle, var(--emerald-light) 0 1px, transparent 1.5px);
  background-position: 12% 20%, 78% 68%;
  background-size: 86px 74px, 112px 96px;
  animation: voice-particle-drift 14s ease-in-out infinite alternate;
  pointer-events: none;
}

.voice-orb {
  position: relative;
  z-index: 1;
  display: grid;
  width: 150px;
  height: 150px;
  place-items: center;
  border: 1px solid rgba(234, 179, 8, 0.55);
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, var(--gold-light), var(--gold-primary) 28%, rgba(16, 185, 129, 0.42) 58%, transparent 70%);
  box-shadow: 0 0 50px rgba(234, 179, 8, 0.22), inset 0 0 35px rgba(255, 255, 255, 0.24);
  transform: perspective(600px) rotateX(16deg);
  transition: var(--transition-base);
}

.voice-orb::before,
.voice-orb::after,
.voice-orb span {
  position: absolute;
  inset: 12%;
  border: 1px solid rgba(255, 255, 255, 0.46);
  border-radius: 50%;
  content: "";
}

.voice-orb::after {
  inset: 24%;
  border-color: rgba(16, 185, 129, 0.68);
}

.voice-orb span {
  inset: 42%;
  border: 0;
  background: var(--text-primary);
  box-shadow: 0 0 18px var(--text-primary);
}

.voice-orb[data-state="listening"],
.voice-orb[data-state="speaking"] {
  animation: voice-orb-pulse 1.2s ease-in-out infinite;
  box-shadow: 0 0 70px rgba(16, 185, 129, 0.45), inset 0 0 35px rgba(255, 255, 255, 0.3);
}

.voice-orb[data-state="thinking"] {
  animation: voice-orb-spin 2.4s linear infinite;
}

.voice-button,
.voice-handsfree {
  position: relative;
  z-index: 2;
  cursor: pointer;
  font-family: var(--font-ui);
}

.voice-button {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-5);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-full);
  background: var(--gold-gradient);
  color: var(--bg-deep);
  font-weight: 700;
  transition: var(--transition-base);
}

.voice-button:hover {
  box-shadow: var(--shadow-gold);
  transform: translateY(-2px);
}

.voice-button[aria-pressed="true"] {
  background: var(--emerald-gradient);
  box-shadow: var(--shadow-emerald);
}

.voice-button-icon {
  font-size: 1.25rem;
}

.voice-handsfree {
  border: 0;
  background: transparent;
  color: var(--text-tertiary);
  font-size: var(--text-xs);
  letter-spacing: var(--tracking-wide);
}

.voice-handsfree:hover,
.voice-handsfree[aria-pressed="true"] {
  color: var(--emerald-light);
}

.voice-status,
.voice-transcript,
.voice-error {
  position: relative;
  z-index: 2;
  max-width: 34rem;
  text-align: center;
}

.voice-status {
  color: var(--text-secondary);
  font-family: var(--font-editorial);
  font-size: var(--text-lg);
}

.voice-transcript {
  min-height: 1.5rem;
  color: var(--gold-light);
  font-style: italic;
}

.voice-error {
  color: #FCA5A5;
  font-size: var(--text-sm);
}

.voice-fallback {
  position: relative;
  z-index: 2;
  width: min(100%, 34rem);
  margin-top: var(--space-3);
}

.voice-fallback label {
  display: block;
  margin-bottom: var(--space-2);
  color: var(--text-muted);
  font-size: var(--text-xs);
}

.voice-text-row {
  display: flex;
  gap: var(--space-2);
}

.voice-text-row input {
  min-width: 0;
  flex: 1;
  border: 1px solid var(--border-glass-strong);
  border-radius: var(--radius-sm);
  background: rgba(0, 0, 0, 0.2);
  color: var(--text-primary);
  padding: var(--space-3);
}

@keyframes voice-particle-drift {
  from { transform: translate3d(-8px, 4px, 0) rotate(0deg); }
  to { transform: translate3d(10px, -8px, 0) rotate(4deg); }
}

@keyframes voice-orb-pulse {
  50% { transform: perspective(600px) rotateX(16deg) scale(1.06); }
}

@keyframes voice-orb-spin {
  to { transform: perspective(600px) rotateX(16deg) rotateZ(360deg); }
}

@media (max-width: 800px) {
  .voice-shell { grid-template-columns: 1fr; gap: var(--space-8); }
  .voice-card { min-height: 390px; }
}

@media (prefers-reduced-motion: reduce) {
  .voice-particles,
  .voice-orb[data-state="listening"],
  .voice-orb[data-state="speaking"],
  .voice-orb[data-state="thinking"] {
    animation: none;
  }
}

/* ========================================
   LAYOUT UTILITIES
   ======================================== */

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-6);
}

.container-narrow {
  max-width: var(--max-width-narrow);
}

.container-reading {
  max-width: var(--max-width-reading);
}

.section {
  padding: var(--space-20) 0;
  position: relative;
}

.section-sm {
  padding: var(--space-12) 0;
}

.section-lg {
  padding: var(--space-32) 0;
}

.section-title {
  text-align: center;
  margin-bottom: var(--space-12);
}

.section-title h2 {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: 700;
  line-height: var(--leading-tight);
  margin-bottom: var(--space-3);
  letter-spacing: var(--tracking-tight);
}

.section-title p {
  font-family: var(--font-editorial);
  font-style: italic;
  color: var(--text-tertiary);
  font-size: var(--text-lg);
  line-height: var(--leading-relaxed);
  max-width: var(--max-width-reading);
  margin: 0 auto;
}

/* Grid systems */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-6);
}

.grid-auto {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-6);
}

/* Asymmetric grid for visual tension */
.grid-asymmetric {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: var(--space-8);
  align-items: start;
}

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

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

/* ========================================
   GLASS PANEL COMPONENT
   ======================================== */

.glass-panel {
  background: var(--bg-card);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-medium), var(--shadow-inner);
  transition: all var(--transition-base);
  position: relative;
}

.glass-panel::before {
  content: '';
  position: absolute;
  inset: 1px;
  border-radius: calc(var(--radius-lg) - 1px);
  background: linear-gradient(180deg, rgba(255,255,255,0.04) 0%, transparent 50%);
  pointer-events: none;
  opacity: 0;
  transition: opacity var(--transition-base);
}

.glass-panel:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-glass-strong);
  box-shadow: var(--shadow-strong), var(--shadow-inner);
  transform: translateY(-4px);
}

.glass-panel:hover::before {
  opacity: 1;
}

/* ========================================
   BUTTON COMPONENTS — Magnetic interactions
   ======================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-6);
  font-size: var(--text-sm);
  font-weight: 600;
  font-family: var(--font-display);
  letter-spacing: var(--tracking-wide);
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  transition: all var(--transition-fast);
  text-decoration: none;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255,255,255,0.15) 0%, transparent 60%);
  opacity: 0;
  transition: opacity var(--transition-fast);
}

.btn:hover::before {
  opacity: 1;
}

.btn-primary {
  background: var(--gold-gradient);
  color: var(--bg-deep);
  box-shadow: var(--shadow-gold);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(234, 179, 8, 0.35);
}

.btn-primary:active {
  transform: translateY(0) scale(0.98);
  transition-duration: 50ms;
}

.btn-secondary {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-glass);
}

.btn-secondary:hover {
  background: var(--bg-glass);
  border-color: var(--border-glass-strong);
  color: var(--text-primary);
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid transparent;
  padding: var(--space-2) var(--space-4);
}

.btn-ghost:hover {
  color: var(--text-primary);
  background: var(--bg-glass);
}

/* Button sizes */
.btn-sm { padding: var(--space-2) var(--space-4); font-size: var(--text-xs); }
.btn-lg { padding: var(--space-5) var(--space-10); font-size: var(--text-base); }
.btn-xl { padding: var(--space-6) var(--space-12); font-size: var(--text-lg); }

/* ========================================
   HEADER / NAVIGATION
   ======================================== */

.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: var(--z-sticky);
  background: rgba(9, 13, 22, 0.75);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--border-glass);
  padding: var(--space-4) 0;
  transition: background var(--transition-base), border-color var(--transition-base);
}

.header.scrolled {
  background: rgba(9, 13, 22, 0.92);
  border-bottom-color: var(--border-glass-strong);
}

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

.logo {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  text-decoration: none;
  color: inherit;
  transition: opacity var(--transition-fast);
}

.logo:hover {
  opacity: 0.8;
}

.logo-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: var(--gold-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: var(--text-lg);
  color: var(--bg-deep);
  letter-spacing: var(--tracking-tight);
  box-shadow: var(--shadow-gold);
  transition: transform var(--transition-spring);
}

.logo:hover .logo-icon {
  transform: rotate(-3deg) scale(1.05);
}

.logo-text h2 {
  font-family: var(--font-display);
  font-size: var(--text-base);
  font-weight: 800;
  letter-spacing: var(--tracking-tight);
  line-height: 1.1;
}

.logo-text span {
  font-family: var(--font-display);
  font-size: var(--text-xs);
  color: var(--gold-primary);
  font-weight: 600;
  letter-spacing: var(--tracking-widest);
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-8);
  list-style: none;
}

.nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: 500;
  letter-spacing: var(--tracking-wide);
  transition: color var(--transition-fast);
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gold-gradient);
  transition: width var(--transition-base);
}

.nav-links a:hover {
  color: var(--text-primary);
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-links .btn-primary {
  padding: var(--space-2) var(--space-4);
  font-size: var(--text-xs);
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }
}

/* ========================================
   HERO SECTION — Signature Moment
   ======================================== */

.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: calc(80px + var(--space-20)) 0 var(--space-24);
  position: relative;
  overflow: hidden;
}

/* Atmospheric background — layered radial gradients */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 100% 60% at 10% -10%, rgba(234, 179, 8, 0.12) 0%, transparent 50%),
    radial-gradient(ellipse 80% 50% at 90% 110%, rgba(16, 185, 129, 0.08) 0%, transparent 50%),
    radial-gradient(ellipse 120% 120% at 50% 50%, rgba(255, 255, 255, 0.015) 0%, transparent 60%);
  pointer-events: none;
  z-index: 0;
}

/* Animated grid overlay for depth */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.015) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.015) 1px, transparent 1px);
  background-size: 80px 80px;
  pointer-events: none;
  z-index: 0;
  animation: grid-drift 20s linear infinite;
  opacity: 0.5;
}

@keyframes grid-drift {
  0% { transform: translate(0, 0); }
  100% { transform: translate(80px, 80px); }
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: var(--max-width-narrow);
  margin: 0 auto;
  text-align: center;
  padding: 0 var(--space-6);
}

/* Choreographed entrance animations */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-4);
  background: var(--bg-glass);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-full);
  font-family: var(--font-display);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: var(--tracking-widest);
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: var(--space-8);
  opacity: 0;
  transform: translateY(20px);
  animation: hero-reveal 0.8s var(--ease-expo-out) 0.1s forwards;
}

.pulse {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold-primary);
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes hero-reveal {
  to { opacity: 1; transform: translateY(0); }
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.7); }
}

/* Hero headline — massive scale, negative tracking, viewport-filling */
.hero h1 {
  font-family: var(--font-display);
  font-size: var(--text-5xl);
  font-weight: 700;
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-tighter);
  margin-bottom: var(--space-6);
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  opacity: 0;
  transform: translateY(30px);
  animation: hero-reveal 1s var(--ease-expo-out) 0.2s forwards;
}

.hero h1 br {
  display: block;
}

/* Hero subheadline — editorial serif, italic */
.hero > .hero-content > p {
  font-family: var(--font-editorial);
  font-style: italic;
  font-size: var(--text-xl);
  line-height: var(--leading-loose);
  color: var(--text-secondary);
  margin-bottom: var(--space-10);
  max-width: var(--max-width-reading);
  margin-left: auto;
  margin-right: auto;
  opacity: 0;
  transform: translateY(30px);
  animation: hero-reveal 1s var(--ease-expo-out) 0.4s forwards;
}

.hero-content > p strong {
  color: var(--text-primary);
  font-weight: 600;
  font-style: normal;
  font-family: var(--font-display);
}

/* CTA Group */
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  justify-content: center;
  margin-bottom: var(--space-16);
  opacity: 0;
  transform: translateY(30px);
  animation: hero-reveal 1s var(--ease-expo-out) 0.6s forwards;
}

.hero-actions .btn {
  padding: var(--space-4) var(--space-8);
  font-size: var(--text-base);
}

.hero-actions .btn-secondary {
  padding: var(--space-4) var(--space-8);
  font-size: var(--text-base);
}

/* Stats Bar — with stagger */
.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-10);
  justify-content: center;
  padding-top: var(--space-10);
  border-top: 1px solid var(--border-glass);
  opacity: 0;
  transform: translateY(30px);
  animation: hero-reveal 1s var(--ease-expo-out) 0.8s forwards;
}

.stat-item {
  text-align: center;
  min-width: 140px;
}

.stat-num {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: 700;
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-tight);
  margin-bottom: var(--space-1);
}

.stat-label {
  font-family: var(--font-display);
  font-size: var(--text-sm);
  color: var(--text-muted);
  font-weight: 500;
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
}

/* ========================================
   TRACKER CARD
   ======================================== */

.tracker-card {
  max-width: 560px;
  margin: var(--space-16) auto 0;
  padding: var(--space-6);
}

.tracker-header h3 {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 700;
  letter-spacing: var(--tracking-tight);
  margin-bottom: var(--space-1);
}

.tracker-header p {
  font-family: var(--font-editorial);
  font-style: italic;
  font-size: var(--text-sm);
  color: var(--text-muted);
}

.tracker-form {
  display: flex;
  gap: var(--space-3);
  margin-top: var(--space-5);
}

.tracker-input {
  flex: 1;
  padding: var(--space-3) var(--space-4);
  background: rgba(9, 13, 22, 0.9);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-size: var(--text-base);
  font-family: var(--font-ui);
  transition: all var(--transition-fast);
  font-weight: 500;
  letter-spacing: var(--tracking-wide);
}

.tracker-input:focus {
  outline: none;
  border-color: var(--gold-primary);
  box-shadow: 0 0 0 3px rgba(234, 179, 8, 0.15);
}

.tracker-input::placeholder {
  color: var(--text-dim);
  font-weight: 400;
  letter-spacing: var(--tracking-normal);
}

/* ========================================
   RESULT CARD (JS-rendered)
   ======================================== */

.result-card {
  margin-top: var(--space-5);
  padding: var(--space-4);
  background: rgba(9, 13, 22, 0.6);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  min-height: 120px;
  display: none;
}

.result-card.active {
  display: block;
  animation: fade-in 0.3s var(--ease-quart-out);
}

@keyframes fade-in {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ========================================
   PRACTICE CARDS
   ======================================== */

.practice-card {
  padding: var(--space-7);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.practice-icon {
  font-size: var(--text-3xl);
  margin-bottom: var(--space-4);
  line-height: 1;
  display: inline-block;
  transition: transform var(--transition-spring);
}

.practice-card:hover .practice-icon {
  transform: scale(1.15) rotate(3deg);
}

.practice-card h3 {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 700;
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-tight);
  margin-bottom: var(--space-3);
}

.practice-card > p {
  font-family: var(--font-editorial);
  font-style: italic;
  color: var(--text-secondary);
  font-size: var(--text-base);
  line-height: var(--leading-relaxed);
  margin-bottom: var(--space-5);
  flex: 1;
}

.practice-card ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.practice-card li {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-editorial);
  font-style: italic;
  font-size: var(--text-sm);
  color: var(--text-muted);
  padding-left: var(--space-2);
  position: relative;
  transition: color var(--transition-fast);
}

.practice-card li::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold-primary);
  flex-shrink: 0;
  opacity: 0.6;
  transition: opacity var(--transition-fast), transform var(--transition-spring);
}

.practice-card:hover li::before {
  opacity: 1;
  transform: scale(1.2);
}

.practice-card:hover li {
  color: var(--text-tertiary);
}

/* ========================================
   AI ADVANTAGE SECTION
   ======================================== */

.ai-advantage-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-10);
  align-items: start;
}

.feature-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}

.feature-item {
  display: flex;
  gap: var(--space-4);
  padding: var(--space-5);
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  transition: all var(--transition-base);
}

.feature-item:hover {
  background: var(--bg-glass-strong);
  border-color: var(--border-glass-strong);
  transform: translateX(8px);
}

.feature-icon-box {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  background: var(--gold-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-xl);
  flex-shrink: 0;
  box-shadow: var(--shadow-gold);
  transition: transform var(--transition-spring);
}

.feature-item:hover .feature-icon-box {
  transform: rotate(6deg) scale(1.05);
}

.feature-text h4 {
  font-family: var(--font-display);
  font-size: var(--text-base);
  font-weight: 700;
  letter-spacing: var(--tracking-tight);
  margin-bottom: var(--space-1);
}

.feature-text p {
  font-family: var(--font-editorial);
  font-style: italic;
  font-size: var(--text-sm);
  color: var(--text-muted);
  line-height: var(--leading-relaxed);
}

.ai-advantage-grid .glass-panel h3 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-tight);
  margin-bottom: var(--space-4);
}

.ai-advantage-grid .glass-panel > p {
  font-family: var(--font-editorial);
  font-style: italic;
  margin-bottom: var(--space-6);
  line-height: var(--leading-loose);
}

/* Feature highlight box */
.ai-advantage-grid .glass-panel > div[style*="monospace"] {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  line-height: var(--leading-loose);
}

/* ========================================
   EMPANELMENT BAR — Credentials
   ======================================== */

.empanelment-bar {
  background: var(--bg-card);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--border-glass);
  padding: var(--space-8);
  border-radius: var(--radius-xl);
}

.empanelment-bar > p {
  font-family: var(--font-display);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: var(--tracking-widest);
  text-transform: uppercase;
  color: var(--gold-primary);
  text-align: center;
  margin-bottom: var(--space-6);
}

.logo-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: var(--space-4);
}

.bank-badge {
  padding: var(--space-4) var(--space-6);
  border-radius: var(--radius-lg);
  border: 1px solid;
  text-align: center;
  min-width: 220px;
  max-width: 280px;
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
}

.bank-badge::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.05) 0%, transparent 50%);
  opacity: 0;
  transition: opacity var(--transition-base);
}

.bank-badge:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-medium);
}

.bank-badge:hover::before {
  opacity: 1;
}

.bank-badge strong {
  display: block;
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: 700;
  margin-bottom: var(--space-1);
  color: var(--text-primary);
  letter-spacing: var(--tracking-tight);
}

.bank-badge span {
  display: block;
  font-family: var(--font-editorial);
  font-style: italic;
  font-size: var(--text-xs);
  line-height: var(--leading-relaxed);
  color: var(--text-muted);
}

/* ========================================
   EMPANELMENT / CONTACT SECTION
   ======================================== */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-12);
  align-items: start;
}

.contact-info h2 {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: 800;
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-tighter);
  margin-bottom: var(--space-4);
}

.contact-info > p {
  font-family: var(--font-editorial);
  font-style: italic;
  color: var(--text-muted);
  font-size: var(--text-lg);
  line-height: var(--leading-loose);
  margin-bottom: var(--space-10);
}

.info-item {
  display: flex;
  gap: var(--space-4);
  padding: var(--space-5);
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  margin-bottom: var(--space-4);
  transition: all var(--transition-base);
}

.info-item:hover {
  background: var(--bg-glass-strong);
  border-color: var(--border-glass-strong);
  transform: translateX(4px);
}

.info-icon {
  font-size: var(--text-xl);
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-accent);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-gold);
}

.info-item strong {
  display: block;
  font-family: var(--font-display);
  font-size: var(--text-base);
  font-weight: 700;
  letter-spacing: var(--tracking-tight);
  margin-bottom: var(--space-1);
}

.info-item p {
  font-family: var(--font-editorial);
  font-style: italic;
  margin: 0;
  color: var(--text-secondary);
  font-size: var(--text-sm);
  line-height: var(--leading-relaxed);
}

@media (max-width: 1024px) {
  .ai-advantage-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

/* ========================================
   FORM COMPONENTS
   ======================================== */

.form-group {
  margin-bottom: var(--space-5);
}

.form-label {
  display: block;
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: var(--tracking-wide);
  margin-bottom: var(--space-2);
  color: var(--text-secondary);
}

.form-control {
  width: 100%;
  padding: var(--space-3) var(--space-4);
  background: rgba(9, 13, 22, 0.9);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-size: var(--text-base);
  font-family: var(--font-ui);
  font-weight: 500;
  transition: all var(--transition-fast);
}

.form-control:focus {
  outline: none;
  border-color: var(--gold-primary);
  box-shadow: 0 0 0 3px rgba(234, 179, 8, 0.15);
  background: rgba(9, 13, 22, 1);
}

.form-control::placeholder {
  color: var(--text-dim);
  font-weight: 400;
  font-family: var(--font-editorial);
  font-style: italic;
}

select.form-control {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2394A3B8' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right var(--space-3) center;
  padding-right: var(--space-10);
}

/* ========================================
   FOOTER
   ======================================== */

.footer {
  background: var(--bg-deep-warm);
  border-top: 1px solid var(--border-glass);
  padding: var(--space-20) 0 var(--space-10);
  margin-top: var(--space-20);
}

.footer-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-6);
  display: grid;
  grid-template-columns: 2fr repeat(2, 1fr);
  gap: var(--space-10);
  margin-bottom: var(--space-10);
}

.footer-col .logo {
  margin-bottom: var(--space-4);
}

.footer-col p {
  font-family: var(--font-editorial);
  font-style: italic;
  color: var(--text-muted);
  font-size: var(--text-base);
  line-height: var(--leading-loose);
  max-width: 320px;
}

.footer-col h4 {
  font-family: var(--font-display);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: var(--tracking-widest);
  text-transform: uppercase;
  color: var(--gold-primary);
  margin-bottom: var(--space-4);
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.footer-links a {
  font-family: var(--font-editorial);
  font-style: italic;
  color: var(--text-muted);
  text-decoration: none;
  font-size: var(--text-base);
  transition: color var(--transition-fast), transform var(--transition-fast);
  display: inline-block;
}

.footer-links a:hover {
  color: var(--gold-light);
  transform: translateX(4px);
}

.footer-bottom {
  border-top: 1px solid var(--border-glass);
  padding-top: var(--space-6);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-4);
  font-family: var(--font-display);
  font-size: var(--text-xs);
  color: var(--text-dim);
  letter-spacing: var(--tracking-wide);
}

.footer-bottom strong {
  color: var(--gold-primary);
}

@media (max-width: 768px) {
  .footer-container {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-col p {
    margin: 0 auto;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}

/* ========================================
   UTILITY CLASSES
   ======================================== */

.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;
}

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

.mt-auto { margin-top: auto; }
.mb-auto { margin-bottom: auto; }

.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.gap-2 { gap: var(--space-2); }
.gap-3 { gap: var(--space-3); }
.gap-4 { gap: var(--space-4); }
.gap-6 { gap: var(--space-6); }
.gap-8 { gap: var(--space-8); }

.w-full { width: 100%; }
.max-w-md { max-width: 28rem; }
.max-w-lg { max-width: 32rem; }
.max-w-xl { max-width: 36rem; }
.max-w-2xl { max-width: 42rem; }
.max-w-3xl { max-width: 48rem; }
.max-w-4xl { max-width: 56rem; }

.rounded-md { border-radius: var(--radius-md); }
.rounded-lg { border-radius: var(--radius-lg); }
.rounded-xl { border-radius: var(--radius-xl); }
.rounded-full { border-radius: var(--radius-full); }

.shadow-soft { box-shadow: var(--shadow-soft); }
.shadow-medium { box-shadow: var(--shadow-medium); }
.shadow-strong { box-shadow: var(--shadow-strong); }

/* ========================================
   ANIMATIONS — Scroll-triggered reveals
   ======================================== */

@keyframes fade-in-up {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slide-in-left {
  from { opacity: 0; transform: translateX(-40px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes slide-in-right {
  from { opacity: 0; transform: translateX(40px); }
  to { opacity: 1; transform: translateX(0); }
}

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

.animate-reveal {
  opacity: 0;
  animation: fade-in-up 0.8s var(--ease-expo-out) forwards;
}

.animate-reveal-left {
  opacity: 0;
  animation: slide-in-left 0.8s var(--ease-expo-out) forwards;
}

.animate-reveal-right {
  opacity: 0;
  animation: slide-in-right 0.8s var(--ease-expo-out) forwards;
}

.animate-scale-in {
  opacity: 0;
  animation: scale-in 0.6s var(--ease-spring) forwards;
}

/* Stagger delays */
.delay-1 { animation-delay: 100ms; }
.delay-2 { animation-delay: 200ms; }
.delay-3 { animation-delay: 300ms; }
.delay-4 { animation-delay: 400ms; }
.delay-5 { animation-delay: 500ms; }
.delay-6 { animation-delay: 600ms; }
.delay-7 { animation-delay: 700ms; }
.delay-8 { animation-delay: 800ms; }

/* Parallax helper */
.parallax {
  will-change: transform;
}

/* ========================================
   RESPONSIVE TYPOGRAPHY & SPACING
   ======================================== */

@media (max-width: 1024px) {
  :root {
    --text-5xl: clamp(4rem, 3rem + 5vw, 6rem);
    --text-4xl: clamp(3rem, 2.5rem + 2.5vw, 4rem);
    --text-3xl: clamp(2.25rem, 1.75rem + 2vw, 3rem);
  }
}

@media (max-width: 768px) {
  :root {
    --text-5xl: clamp(3rem, 2.5rem + 2.5vw, 4rem);
    --text-4xl: clamp(2.5rem, 2rem + 2.5vw, 3.5rem);
    --text-3xl: clamp(2rem, 1.5rem + 2.5vw, 2.75rem);
    --text-2xl: clamp(1.5rem, 1.25rem + 1.5vw, 2rem);
    --space-20: 4rem;
    --space-16: 3rem;
    --space-12: 2.5rem;
  }

  .hero {
    padding: calc(80px + var(--space-16)) 0 var(--space-16);
  }

  .hero-actions .btn {
    width: 100%;
    justify-content: center;
  }

  .hero-stats {
    gap: var(--space-6);
  }

  .stat-item {
    min-width: 120px;
  }

  .tracker-form {
    flex-direction: column;
  }

  .Hero h1 br {
    display: none;
  }
}

@media (max-width: 480px) {
  :root {
    --text-5xl: clamp(2.5rem, 2rem + 2.5vw, 3rem);
    --text-4xl: clamp(2rem, 1.75rem + 2.5vw, 2.5rem);
    --text-3xl: clamp(1.75rem, 1.5rem + 2vw, 2rem);
  }

  .nav-container {
    padding: 0 var(--space-4);
  }

  .container {
    padding: 0 var(--space-4);
  }

  .hero-stats {
    flex-direction: column;
    gap: var(--space-4);
  }

  .stat-item {
    min-width: auto;
  }

  .bank-badge {
    min-width: auto;
    width: 100%;
  }

  .Hero h1 br {
    display: none;
  }
}

/* ========================================
   PRINT STYLES
   ======================================== */

@media print {
  .header,
  .hero-actions,
  .tracker-card,
  .footer-bottom,
  .hero::before,
  .hero::after,
  .hero-badge {
    display: none !important;
  }

  body {
    background: white;
    color: black;
  }

  .glass-panel {
    background: white;
    border: 1px solid #e2e8f0;
    box-shadow: none;
  }

  .gold-gradient-text,
  .emerald-gradient-text {
    -webkit-text-fill-color: initial;
    background: none;
    color: #1e293b;
  }

  .hero::before,
  .hero::after {
    display: none !important;
  }
}