/* ==========================================================================
   MOYA ACADEMY GATEWAY — PRECISION RETINA DESIGN SYSTEM
   Enlarged Founder Anchor • Glitch Text • Hyperiux ArrowFillButtons • 52px Motion
   ========================================================================== */

:root {
  /* Core Color Palette */
  --bg-black: #000000;
  --bg-card: rgba(14, 14, 18, 0.76);
  --bg-card-hover: rgba(22, 22, 30, 0.94);
  
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(255, 255, 255, 0.28);
  
  --text-primary: #f2f1e8;
  --text-secondary: rgba(222, 219, 200, 0.75);
  --text-muted: #84847e;
  
  /* Brand Accents - Strict 2-Tone System: White & Violet */
  --accent-violet: #9d65ff;
  --accent-violet-glow: rgba(157, 101, 255, 0.42);
  --accent-violet-bg: rgba(157, 101, 255, 0.1);
  --accent-gold: #9d65ff;
  --accent-gold-glow: rgba(157, 101, 255, 0.42);
  --accent-gold-bg: rgba(157, 101, 255, 0.1);
  --accent-cyan: #9d65ff;
  --accent-cyan-glow: rgba(157, 101, 255, 0.42);
  --accent-green: #9d65ff;
  --accent-green-glow: rgba(157, 101, 255, 0.42);
  --accent-silver: #ffffff;

  /* Typography */
  --font-display: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-serif: 'Instrument Serif', Georgia, serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Easing curves */
  --ease-snappy: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-hyper: cubic-bezier(0.785, 0.135, 0.15, 0.86);
}

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

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

html {
  font-size: 16px;
  background-color: var(--bg-black);
  color: var(--text-primary);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
  scrollbar-gutter: stable;
  width: 100%;
  max-width: 100vw;
}

body {
  min-height: 100vh;
  min-height: 100dvh;
  background-color: var(--bg-black);
  color: var(--text-primary);
  overflow-x: clip;
  width: 100%;
  max-width: 100vw;
  position: relative;
}

/* ==========================================================================
   1. FULL BLEED ROOT & ATMOSPHERIC CANVAS
   ========================================================================== */

.gateway-root {
  position: relative;
  width: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background-color: var(--bg-black);
  overflow: hidden;
}

.ambient-glow-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}

.ambient-glow-mesh {
  position: absolute;
  inset: -20%;
  background: 
    radial-gradient(50% 45% at 50% 28%, rgba(157, 101, 255, 0.24) 0%, transparent 68%),
    radial-gradient(40% 40% at 78% 45%, rgba(157, 101, 255, 0.1) 0%, transparent 65%),
    radial-gradient(35% 35% at 22% 65%, rgba(255, 255, 255, 0.05) 0%, transparent 60%);
  filter: blur(75px);
  will-change: transform;
}

.vignette-radial {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 90% 85% at 50% 50%, transparent 40%, rgba(0, 0, 0, 0.85) 100%);
}

.subtle-grid-lines {
  position: absolute;
  inset: 0;
  background-size: 55px 55px;
  background-image: 
    linear-gradient(to right, rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  opacity: 0.65;
  mask-image: radial-gradient(ellipse 80% 65% at 50% 45%, black 20%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 80% 65% at 50% 45%, black 20%, transparent 80%);
}

.film-grain-overlay {
  position: absolute;
  inset: 0;
  opacity: 0.22;
  mix-blend-mode: overlay;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.5 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.depth-lighting {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.45) 0%, transparent 16%, transparent 70%, rgba(0, 0, 0, 0.95) 100%);
}

/* ==========================================================================
   2. TOP NAVIGATION BAR (Clean & Decluttered: Logo Left, Socials Right)
   ========================================================================== */

.top-nav-bar {
  position: relative;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  flex-shrink: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

@media (min-width: 1024px) {
  .top-nav-bar {
    padding: 1.15rem 3.5rem;
  }
}

.brand-logo-link {
  display: flex;
  align-items: center;
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.brand-logo-link:hover {
  opacity: 0.85;
}

.brand-logo-img {
  height: 28px;
  width: auto;
  display: block;
}

@media (min-width: 768px) {
  .brand-logo-img {
    height: 32px;
  }
}

/* Right Social Media Channels */
.nav-social-group {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.social-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-secondary);
  text-decoration: none;
  transition: all 0.25s ease;
}

.social-icon-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(255, 255, 255, 0.15);
}

/* ==========================================================================
   3. MAIN GATEWAY CONTAINER (Strict Padding & Rhythm Audit)
   ========================================================================== */

.gateway-container {
  position: relative;
  z-index: 20;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 0.5rem 1.25rem 1rem 1.25rem;
  max-width: 1440px;
  margin: 0 auto;
  width: 100%;
  flex: 1;
}

@media (min-width: 1024px) {
  .gateway-container {
    padding: 0.75rem 3.5rem 1rem 3.5rem;
  }
}

/* ==========================================================================
   4. UPPER SECTION: FOUNDER PROOF STAGE (Savan Matariya)
   Enlarged Portrait + Baseline Anchor (Zero Void Gap)
   ========================================================================== */

.founder-proof-stage {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  margin-bottom: 0;
}

/* Massive Backdrop Name Behind Portrait */
.founder-backdrop-wrap {
  position: absolute;
  top: 45%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  text-align: center;
  pointer-events: none;
  z-index: 1;
  user-select: none;
}

.founder-backdrop-text {
  font-family: var(--font-display);
  font-size: clamp(3.4rem, 10.5vw, 9.8rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  color: rgba(255, 255, 255, 0.14);
  text-transform: uppercase;
  white-space: nowrap;
  display: inline-block;
  line-height: 0.85;
  text-shadow: 0 0 50px rgba(98, 48, 190, 0.35);
  will-change: transform, opacity;
}

/* Orbit Container holding portrait & 4 floating badges */
.founder-orbit-container {
  position: relative;
  width: 100%;
  max-width: 1020px;
  min-height: 290px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  z-index: 5;
}

@media (min-width: 768px) {
  .founder-orbit-container {
    min-height: 330px;
  }
}

@media (min-width: 1200px) {
  .founder-orbit-container {
    min-height: 380px;
  }
}

/* Enlarged Portrait Frame: Anchored right to baseline, layered in front of floating badges */
.founder-portrait-frame {
  position: relative;
  z-index: 10;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  height: 275px;
  width: auto;
  max-width: 100%;
  margin-bottom: 0;
}

@media (min-width: 768px) {
  .founder-portrait-frame {
    height: 335px;
  }
}

@media (min-width: 1200px) {
  .founder-portrait-frame {
    height: 395px;
  }
}

/* Direct Non-Destructive CSS Alpha Mask on Image (No rectangular box!) */
.founder-picture {
  display: contents;
}

.founder-img {
  height: 100%;
  width: auto;
  max-height: 100%;
  object-fit: contain;
  object-position: bottom center;
  display: block;
  filter: drop-shadow(0 18px 40px rgba(0, 0, 0, 0.95));
  mask-image: linear-gradient(to bottom, black 72%, transparent 99%);
  -webkit-mask-image: linear-gradient(to bottom, black 72%, transparent 99%);
}

.portrait-ambient-glow {
  position: absolute;
  width: 140%;
  height: 120%;
  left: -20%;
  bottom: -5%;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 60%, rgba(157, 101, 255, 0.32) 0%, rgba(98, 48, 190, 0.14) 50%, transparent 75%);
  filter: blur(45px);
  z-index: -1;
  pointer-events: none;
}

/* 4 Floating Orbiting Achievement Badges: Layered behind portrait (z-index 4) for 3D depth */
.floating-metric-badge {
  position: absolute;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.5rem 0.85rem;
  background: rgba(18, 18, 24, 0.84);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6);
  white-space: nowrap;
  pointer-events: auto;
  transition: transform 0.25s ease, border-color 0.25s ease;
  will-change: transform;
}

.floating-metric-badge:hover {
  transform: scale(1.05);
  border-color: rgba(255, 255, 255, 0.3);
}

.badge-icon {
  font-size: 0.95rem;
}

.badge-icon--violet { color: var(--accent-violet); }
.badge-icon--amber { color: var(--accent-gold); }
.badge-icon--cyan { color: var(--accent-cyan); }
.badge-icon--green { color: var(--accent-green); }

.badge-text-wrap {
  display: flex;
  flex-direction: column;
}

.badge-value {
  font-family: var(--font-display);
  font-size: 0.84rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.01em;
  line-height: 1.15;
}

.badge-label {
  font-family: var(--font-sans);
  font-size: 0.6rem;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}

/* Badge Desktop & Tablet Positioning (Layered behind portrait with depth effect) */
@media (min-width: 900px) {
  .badge--top-left { top: 20%; left: 4%; }
  .badge--bottom-left { bottom: 15%; left: 8%; }
  .badge--top-right { top: 20%; right: 4%; }
  .badge--bottom-right { bottom: 15%; right: 8%; }
}

@media (min-width: 641px) and (max-width: 899px) {
  .badge--top-left { top: 10%; left: 2%; }
  .badge--bottom-left { bottom: 14%; left: 3%; }
  .badge--top-right { top: 10%; right: 2%; }
  .badge--bottom-right { bottom: 14%; right: 3%; }
}

/* Clean Designation Strip: Elevated with comfortable breathing room */
.founder-designation-strip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.625rem;
  letter-spacing: 0.14em;
  color: var(--text-muted);
  margin: 0.65rem auto 0.55rem auto;
  position: relative;
  z-index: 12;
}

.founder-name-label {
  color: var(--text-primary);
  font-weight: 700;
}

.founder-sep {
  color: var(--accent-violet);
  opacity: 0.8;
}

/* ==========================================================================
   5. CRISP ARCHITECTURAL SECTION DIVIDER (Generous Vertical Rhythm)
   ========================================================================== */

.architectural-divider {
  position: relative;
  width: 100%;
  max-width: 1280px;
  margin: 1.15rem auto 1.65rem auto;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 15;
}

.divider-line {
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, 
    transparent 0%, 
    rgba(255, 255, 255, 0.08) 25%, 
    rgba(255, 255, 255, 0.2) 50%, 
    rgba(255, 255, 255, 0.08) 75%, 
    transparent 100%
  );
}

.divider-center-node {
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-violet);
  box-shadow: 0 0 10px var(--accent-violet-glow);
}

/* ==========================================================================
   6. LOWER SECTION: CHOOSE YOUR GOAL INTENT MATRIX
   ========================================================================== */

.intent-selection-section {
  width: 100%;
}

.intent-header-wrap {
  text-align: center;
  margin-bottom: 1.75rem;
  padding: 0 0.5rem;
}

.intent-main-title {
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 2.7vw, 2.25rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #ffffff;
  display: inline-flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: center;
  gap: 0.45rem;
}

/* Glitch Alternating Word Effect - Electric Violet Highlight with auto-adjusting natural space */
.glitch-word {
  position: relative;
  display: inline-block;
  width: auto;
  min-width: 0;
  text-align: left;
  color: var(--accent-violet);
  text-shadow: 0 0 24px var(--accent-violet-glow), 0 0 45px rgba(157, 101, 255, 0.35);
  font-weight: 900;
  transition: color 0.15s ease;
}

.glitch-word.is-glitching {
  animation: cyberGlitch 0.28s steps(2, start) infinite;
  color: #ffffff;
  text-shadow: -2px 0 rgba(255, 255, 255, 0.85), 2px 0 var(--accent-violet), 0 0 24px var(--accent-violet-glow);
}

@keyframes cyberGlitch {
  0% { transform: translate(0); clip-path: inset(0 0 0 0); }
  20% { transform: translate(-3px, 1px); clip-path: inset(18% 0 32% 0); }
  40% { transform: translate(3px, -1px); clip-path: inset(52% 0 8% 0); }
  60% { transform: translate(-2px, -2px); clip-path: inset(12% 0 58% 0); }
  80% { transform: translate(2px, 2px); clip-path: inset(68% 0 6% 0); }
  100% { transform: translate(0); clip-path: inset(0 0 0 0); }
}

.title-sub {
  width: 100%;
  display: block;
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 400;
  color: var(--text-muted);
  letter-spacing: 0.01em;
  margin-top: 0.35rem;
}

/* 5 Intent Pathways Grid (21st.dev Bento Aesthetic) */
.intent-cards-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.95rem;
  width: 100%;
  min-width: 0;
  perspective: 1200px;
}

/* Individual Intent Card (21st.dev Selectable Architectural Card) */
.intent-card {
  position: relative;
  z-index: 5;
  background: linear-gradient(180deg, rgba(16, 14, 25, 0.84) 0%, rgba(10, 9, 15, 0.95) 100%);
  border: 1px solid rgba(157, 101, 255, 0.18);
  border-radius: 18px;
  padding: 1.15rem 1.1rem;
  color: var(--text-primary);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 165px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.07);
  cursor: pointer;
  user-select: none;
  transition: border-color 0.3s cubic-bezier(0.16, 1, 0.3, 1), 
              box-shadow 0.3s cubic-bezier(0.16, 1, 0.3, 1), 
              background 0.3s cubic-bezier(0.16, 1, 0.3, 1), 
              transform 0.3s cubic-bezier(0.16, 1, 0.3, 1),
              z-index 0.15s ease;
  will-change: transform, opacity;
  transform-style: preserve-3d;
}

/* Card Hover Elevation & Subtle Glow */
.intent-card:hover {
  z-index: 20;
  border-color: rgba(157, 101, 255, 0.6);
  background: linear-gradient(180deg, rgba(25, 20, 40, 0.9) 0%, rgba(13, 10, 22, 0.97) 100%);
  box-shadow: 0 16px 36px -8px rgba(157, 101, 255, 0.3), 0 0 16px rgba(157, 101, 255, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.14);
  transform: translateY(-2px);
}

/* Card 1 & All Pathways: Unified Violet & White Design Language */
.intent-card--featured {
  border-color: rgba(157, 101, 255, 0.22);
  background: linear-gradient(180deg, rgba(16, 14, 25, 0.84) 0%, rgba(10, 9, 15, 0.95) 100%);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.07);
}

.intent-card--featured:hover {
  z-index: 20;
  border-color: rgba(157, 101, 255, 0.65);
  background: linear-gradient(180deg, rgba(25, 20, 40, 0.9) 0%, rgba(13, 10, 22, 0.97) 100%);
  box-shadow: 0 16px 36px -8px rgba(157, 101, 255, 0.3), 0 0 16px rgba(157, 101, 255, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.14);
  transform: translateY(-2px);
}

/* ACTIVE / SELECTED CARD STATES - Universal Violet Highlighting */
.intent-card.is-selected {
  z-index: 20 !important;
  border-color: var(--accent-violet) !important;
  background: linear-gradient(180deg, rgba(36, 26, 62, 0.95) 0%, rgba(18, 14, 30, 0.98) 100%) !important;
  box-shadow: 0 0 30px rgba(157, 101, 255, 0.45), 0 16px 32px rgba(0, 0, 0, 0.7), inset 0 0 18px rgba(157, 101, 255, 0.2) !important;
  transform: translateY(-4px) !important;
}

.intent-card.is-selected .card-bracket {
  opacity: 1 !important;
  border-color: var(--accent-violet) !important;
  box-shadow: 0 0 8px var(--accent-violet-glow) !important;
}

/* Top Subtle Beam Highlight (21st.dev border-beam effect) */
.card-beam-glow {
  position: absolute;
  top: 0;
  left: 20%;
  right: 20%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(157, 101, 255, 0.7), transparent);
  pointer-events: none;
  opacity: 0.6;
  transition: opacity 0.35s ease, left 0.4s ease, right 0.4s ease;
}

.intent-card:hover .card-beam-glow {
  left: 4%;
  right: 4%;
  opacity: 1;
}

.intent-card--featured .card-beam-glow {
  background: linear-gradient(90deg, transparent, rgba(157, 101, 255, 0.85), transparent);
}

/* 21st.dev Technical Corner Framing Brackets */
.card-bracket {
  position: absolute;
  width: 7px;
  height: 7px;
  pointer-events: none;
  opacity: 0.3;
  transition: opacity 0.3s ease, border-color 0.3s ease;
}

.intent-card:hover .card-bracket {
  opacity: 0.9;
}

.bracket-tl {
  top: 8px;
  left: 8px;
  border-top: 1.5px solid var(--accent-violet);
  border-left: 1.5px solid var(--accent-violet);
}

.bracket-tr {
  top: 8px;
  right: 8px;
  border-top: 1.5px solid var(--accent-violet);
  border-right: 1.5px solid var(--accent-violet);
}

.bracket-bl {
  bottom: 8px;
  left: 8px;
  border-bottom: 1.5px solid var(--accent-violet);
  border-left: 1.5px solid var(--accent-violet);
}

.bracket-br {
  bottom: 8px;
  right: 8px;
  border-bottom: 1.5px solid var(--accent-violet);
  border-right: 1.5px solid var(--accent-violet);
}

/* Dynamic Cursor Spotlight Layer */
.card-spotlight-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(
    280px circle at var(--mouse-x, -999px) var(--mouse-y, -999px),
    rgba(157, 101, 255, 0.16),
    transparent 65%
  );
  opacity: 0;
  transition: opacity 0.35s ease;
}

.intent-card:hover .card-spotlight-layer {
  opacity: 1;
}

/* 21st.dev Card Meta Header (Clean Monospace + Status Pill) */
.card-meta-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.15rem;
  z-index: 2;
}

.card-index-wrap {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.card-index-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent-violet);
  box-shadow: 0 0 8px var(--accent-violet-glow);
}

.card-index-text {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  font-weight: 600;
  transition: color 0.3s ease;
}

.intent-card:hover .card-index-text {
  color: #ffffff;
}

/* Card Selection Indicator (Radio / Checkmark Pill) */
.card-select-indicator {
  position: relative;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.05);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.indicator-check {
  opacity: 0;
  transform: scale(0.3);
  transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
  color: #ffffff;
}

.intent-card:hover .card-select-indicator {
  border-color: rgba(157, 101, 255, 0.65);
  background: rgba(157, 101, 255, 0.12);
}

/* Card Selected -> Indicator Lights Up in Electric Violet */
.intent-card.is-selected .card-select-indicator {
  background: var(--accent-violet);
  border-color: var(--accent-violet);
  box-shadow: 0 0 14px var(--accent-violet-glow);
}

.intent-card.is-selected .indicator-check {
  opacity: 1;
  transform: scale(1);
  color: #ffffff;
}

/* Future Image Slot (Clean & Ready for assets) */
.card-visual-slot:empty {
  display: none;
}

.card-visual-slot:not(:empty) {
  display: block;
  width: 100%;
  height: 110px;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 0.85rem;
  border: 1px solid rgba(157, 101, 255, 0.2);
}

.card-visual-slot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Card Content */
.card-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  margin-bottom: 1.25rem;
  z-index: 2;
}

.card-intent-heading {
  font-family: var(--font-display);
  font-size: 1.08rem;
  font-weight: 700;
  line-height: 1.25;
  color: #ffffff;
  letter-spacing: -0.015em;
  margin-bottom: 0.45rem;
  transition: color 0.25s ease;
}

.card-supporting-line {
  font-family: var(--font-sans);
  font-size: 0.775rem;
  line-height: 1.48;
  color: var(--text-muted);
  font-weight: 400;
  min-height: 40px;
  transition: color 0.25s ease;
}

.intent-card:hover .card-supporting-line {
  color: rgba(255, 255, 255, 0.84);
}

/* ==========================================================================
   7. HYPERIUX VAULT "ArrowFillButton" RECREATION
   Circle fill sweep on hover + dual sliding arrows
   ========================================================================== */

.arrow-fill-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
  height: 42px;
  padding: 0 1.15rem;
  padding-right: 48px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--btn-border, rgba(255, 255, 255, 0.14));
  color: #ffffff;
  text-decoration: none;
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  overflow: hidden;
  cursor: pointer;
  white-space: nowrap;
  text-align: left;
  transition: border-color 0.45s var(--ease-hyper), box-shadow 0.45s var(--ease-hyper);
}

/* Button variant colors - Unified White & Violet System */
.btn-gold,
.btn-violet,
.btn-silver,
.btn-cyan,
.btn-green {
  --btn-fill: #ffffff;
  --btn-border: rgba(157, 101, 255, 0.4);
}

.intent-card:hover .btn-gold,
.intent-card:hover .btn-violet,
.intent-card:hover .btn-silver,
.intent-card:hover .btn-cyan,
.intent-card:hover .btn-green {
  border-color: rgba(157, 101, 255, 0.75);
  box-shadow: 0 0 16px rgba(157, 101, 255, 0.32);
}

/* Expanding circle that sweeps across on hover */
.arrow-fill-btn::before {
  content: '';
  position: absolute;
  right: 5px;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  border-radius: 9999px;
  background: var(--btn-fill, #ffffff);
  transition: all 0.45s var(--ease-hyper);
  z-index: 1;
}

.arrow-fill-btn:hover::before,
.intent-card:hover .arrow-fill-btn::before {
  right: 0;
  top: 0;
  transform: none;
  width: 100%;
  height: 100%;
  border-radius: 9999px;
}

/* Button Text Layer (Left-aligned, ellipsis-safe, clean arrow clearance) */
.arrow-fill-btn .btn-label {
  position: relative;
  z-index: 2;
  text-align: left;
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: calc(100% - 4px);
  transition: color 0.45s var(--ease-hyper);
}

.arrow-fill-btn:hover .btn-label,
.intent-card:hover .arrow-fill-btn .btn-label {
  color: #000000;
}

/* Right Arrow Circle */
.arrow-fill-btn .btn-arrow-circle {
  position: absolute;
  right: 5px;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  z-index: 3;
  color: #000000;
}

/* Dual Sliding Arrows (Hyperiux Mechanism) */
.arrow-fill-btn .arrow-icon-1 {
  position: absolute;
  transition: transform 0.45s var(--ease-hyper), opacity 0.45s ease;
  transform: translateX(0) scale(1);
}

.arrow-fill-btn .arrow-icon-2 {
  position: absolute;
  transition: transform 0.45s var(--ease-hyper), opacity 0.45s ease;
  transform: translateX(-160%) scale(0);
}

.arrow-fill-btn:hover .arrow-icon-1,
.intent-card:hover .arrow-fill-btn .arrow-icon-1 {
  transform: translateX(160%) scale(0);
}

.arrow-fill-btn:hover .arrow-icon-2,
.intent-card:hover .arrow-fill-btn .arrow-icon-2 {
  transform: translateX(0) scale(1);
}

/* ==========================================================================
   7B. DYNAMIC SELECTION CTA PORTAL STAGE
   Reveals smoothly below the cards as soon as a card is selected
   ========================================================================== */

.dynamic-cta-stage {
  position: relative;
  z-index: 30;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 52px;
  margin-top: 0.75rem;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(8px) scale(0.98);
  transition: opacity 0.28s cubic-bezier(0.16, 1, 0.3, 1), 
              transform 0.28s cubic-bezier(0.16, 1, 0.3, 1), 
              visibility 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

.dynamic-cta-stage.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.dynamic-action-btn:disabled { opacity: 0.55; cursor: default; }

.dynamic-action-btn {
  width: 100%;
  max-width: 320px;
  height: 44px;
  font-size: 0.82rem;
  letter-spacing: 0.02em;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6);
}

.dynamic-cta-stage.is-visible .dynamic-action-btn.btn-gold,
.dynamic-cta-stage.is-visible .dynamic-action-btn.btn-violet {
  box-shadow: 0 0 28px rgba(157, 101, 255, 0.35), 0 8px 24px rgba(0, 0, 0, 0.6);
}

/* Mobile Carousel Navigation Controls (Hidden on Desktop & Tablet) */
.carousel-nav-control,
.cards-carousel-dots {
  display: none;
}

/* ==========================================================================
   8. RESPONSIVE VIEWPORT SYSTEM (Tablets & Mobile View)
   ========================================================================== */

/* Tablet & Intermediate Screens (641px - 1024px) */
@media (min-width: 641px) and (max-width: 1024px) {
  .gateway-container {
    padding: 0.75rem 1.5rem 1.5rem 1.5rem;
  }

  .founder-orbit-container {
    min-height: 290px;
  }

  .founder-portrait-frame {
    height: 290px;
  }

  .intent-cards-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
  }

  #cardLive {
    grid-column: span 2;
  }

  .intent-card {
    min-height: 140px;
    padding: 1rem 0.9rem;
  }
}

/* Mobile Screens (Phone Viewport: <= 640px) */
@media (max-width: 640px) {
  html, body {
    overflow-x: hidden;
    width: 100%;
  }

  .gateway-root {
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    overflow-x: hidden;
  }

  .gateway-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding: 0.5rem 0.85rem 1.75rem 0.85rem;
    max-width: 100vw;
  }

  /* Top Nav Compact Sizing */
  .top-nav-bar {
    padding: 0.45rem 0.85rem;
    flex-shrink: 0;
  }

  .brand-logo-img {
    width: 105px;
    height: auto;
  }

  .social-icon-btn {
    width: 30px;
    height: 30px;
  }

  /* Founder Proof Stage: Prominent, Commanding & Beautifully Anchored */
  .founder-proof-stage {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    flex-shrink: 0;
  }

  .founder-orbit-container {
    min-height: 240px;
    height: 245px;
    width: 100%;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    position: relative;
    z-index: 5;
  }

  .founder-portrait-frame {
    height: 235px;
    position: relative;
    z-index: 10;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    margin-bottom: 0;
  }

  .founder-img {
    height: 100%;
    width: auto;
    max-height: 100%;
    object-fit: contain;
    object-position: bottom center;
    display: block;
    filter: drop-shadow(0 16px 36px rgba(0, 0, 0, 0.95));
    mask-image: linear-gradient(to bottom, black 75%, transparent 99%);
    -webkit-mask-image: linear-gradient(to bottom, black 75%, transparent 99%);
  }

  .founder-backdrop-wrap {
    top: 45%;
    width: 100%;
    max-width: 100%;
    padding: 0 0.5rem;
    overflow: hidden;
  }

  .founder-backdrop-text {
    font-size: clamp(1.75rem, 8.5vw, 2.65rem) !important;
    line-height: 1;
    letter-spacing: -0.02em;
    max-width: 100%;
    display: block;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  /* 4 Floating Metric Badges: Peeking behind the larger portrait frame (depth effect) */
  .floating-metric-badge {
    padding: 0.32rem 0.52rem;
    border-radius: 9px;
    gap: 0.35rem;
    max-width: 125px;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.7);
    z-index: 4; /* Layered behind portrait frame (z-index 10) for 3D depth */
  }

  .badge-icon { font-size: 0.82rem; }
  .badge-value { font-size: 0.72rem; font-weight: 800; }
  .badge-label { font-size: 0.5rem; }

  .badge--top-left { top: 10%; left: 1%; }
  .badge--bottom-left { bottom: 10%; left: 1%; }
  .badge--top-right { top: 10%; right: 1%; }
  .badge--bottom-right { bottom: 10%; right: 1%; }

  .founder-designation-strip {
    margin: 0.65rem auto 0.75rem auto;
    font-size: 0.58rem;
    letter-spacing: 0.12em;
    padding: 0 0.5rem;
    text-align: center;
    position: relative;
    z-index: 12;
  }

  .architectural-divider {
    margin: 0.95rem auto 1.25rem auto;
    flex-shrink: 0;
  }

  /* Intent Section */
  .intent-selection-section {
    flex-shrink: 0;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 10;
  }

  .intent-header-wrap {
    margin-bottom: 0.85rem;
    padding: 0 0.5rem;
  }

  .intent-main-title {
    font-size: clamp(1.2rem, 5vw, 1.45rem);
    line-height: 1.25;
    gap: 0.25rem;
    flex-direction: column;
    align-items: center;
  }

  .title-sub {
    font-size: 0.76rem;
    line-height: 1.35;
    margin-top: 0.25rem;
    display: block;
    color: var(--text-muted);
  }

  /* Horizontally Scrollable Cards Track (2 Cards Visible Side-by-Side) */
  .intent-cards-grid {
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    overscroll-behavior-x: contain;
    min-width: 0;
    gap: 0.6rem;
    width: 100%;
    padding: 1.15rem 0.5rem 1.65rem 0.5rem; /* Generous breathing room for bottom and top glows */
    margin-top: -0.35rem;
    margin-bottom: -1.0rem; /* Offsets padding so cards connect seamlessly with nav controls */
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    perspective: none;
  }

  .intent-cards-grid::-webkit-scrollbar {
    display: none;
  }

  /* Each card takes ~50% width to display exactly 2 cards side-by-side */
  .intent-card {
    flex: 0 0 calc(50% - 0.3rem);
    min-width: calc(50% - 0.3rem);
    max-width: calc(50% - 0.3rem);
    scroll-snap-align: start;
    min-height: 120px;
    height: auto;
    padding: 0.85rem 0.75rem;
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-sizing: border-box;
    transform: none;
  }

  .intent-card:hover {
    transform: none;
  }

  .intent-card.is-selected {
    transform: none !important;
  }

  .card-meta-bar {
    margin-bottom: 0.45rem;
  }

  .card-index-text {
    font-size: 0.64rem;
  }

  .card-select-indicator {
    width: 18px;
    height: 18px;
  }

  .card-intent-heading {
    font-size: 0.875rem;
    line-height: 1.25;
    margin-bottom: 0.25rem;
    font-weight: 700;
  }

  .card-supporting-line {
    font-size: 0.75rem;
    line-height: 1.45;
    min-height: auto;
    margin-bottom: 0;
    display: block;
  }

  /* Mobile Carousel Navigation Controls (Arrows + Dots) */
  .carousel-nav-control {
    position: relative;
    z-index: 15;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.85rem;
    margin-top: 0.65rem;
    width: 100%;
  }

  .carousel-nav-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.16);
    color: #ffffff;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 0;
  }

  .carousel-nav-btn:hover,
  .carousel-nav-btn:active {
    background: rgba(157, 101, 255, 0.28);
    border-color: var(--accent-violet);
    box-shadow: 0 0 12px var(--accent-violet-glow);
    transform: scale(1.08);
  }

  .carousel-nav-btn:disabled {
    opacity: 0.5;
    cursor: default;
    transform: none;
  }

  .cards-carousel-dots {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    height: 24px;
  }

  .carousel-dot {
    width: 24px;
    height: 24px;
    display: grid;
    place-items: center;
    border-radius: 9999px;
    background: transparent;
    border: none;
    padding: 0;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  }

  .carousel-dot.is-active {
    width: 24px;
  }

  .carousel-dot::after {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.35);
  }

  .carousel-dot.is-active::after {
    width: 16px;
    background: var(--accent-violet);
    box-shadow: 0 0 10px var(--accent-violet-glow);
  }

  /* Dynamic CTA Stage on Mobile */
  .dynamic-cta-stage {
    position: relative;
    z-index: 30;
    margin-top: 0.65rem;
    min-height: 48px;
    width: 100%;
  }

  .dynamic-action-btn {
    height: 44px;
    font-size: 0.8rem;
    width: 100%;
    max-width: 320px;
    padding: 0 1.15rem;
    padding-right: 48px;
  }

  .dynamic-action-btn .btn-label {
    text-align: left;
    max-width: calc(100% - 4px);
  }

  .dynamic-action-btn::before,
  .dynamic-action-btn .btn-arrow-circle {
    width: 32px;
    height: 32px;
  }
}

/* Extra small devices (<= 380px: iPhone SE, Galaxy Fold) */
@media (max-width: 380px) {
  .founder-orbit-container {
    min-height: 215px;
    height: 220px;
  }

  .founder-portrait-frame {
    height: 210px;
  }

  .founder-backdrop-text {
    font-size: clamp(1.4rem, 7vw, 1.85rem) !important;
    letter-spacing: -0.02em;
  }

  .floating-metric-badge {
    padding: 0.25rem 0.42rem;
    max-width: 105px;
  }

  .badge-value { font-size: 0.65rem; }
  .badge-label { font-size: 0.44rem; }

  .intent-card {
    min-height: 115px;
    padding: 0.75rem 0.65rem;
  }

  .card-intent-heading {
    font-size: 0.76rem;
  }

  .card-supporting-line {
    font-size: 0.6rem;
  }

  .dynamic-action-btn {
    font-size: 0.76rem;
    height: 42px;
    max-width: 290px;
  }
}

/* ==========================================================================
   9. SEAMLESS MINIMAL FOOTER STRIP
   ========================================================================== */

.gateway-footer-strip {
  position: relative;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  font-family: var(--font-mono);
  font-size: 0.625rem;
  letter-spacing: 0.1em;
  color: var(--text-muted);
}

@media (min-width: 1024px) {
  .gateway-footer-strip {
    padding: 0.95rem 3.5rem;
  }
}

.footer-left {
  opacity: 0.75;
}

.footer-nav-links {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
}

.footer-nav-link {
  color: var(--text-muted);
  text-decoration: none;
  font-family: var(--font-mono);
  font-size: 0.625rem;
  letter-spacing: 0.08em;
  transition: color 0.2s ease;
}

.footer-nav-link:hover {
  color: #ffffff;
}

.footer-sep {
  opacity: 0.4;
  color: var(--accent-violet);
}

.footer-tagline {
  letter-spacing: 0.15em;
  opacity: 0.6;
}

@media (max-width: 767px) {
  .gateway-footer-strip {
    flex-direction: column;
    gap: 0.35rem;
    text-align: center;
    padding: 0.75rem 1rem;
  }
}

/* ==========================================================================
   10. ACCESSIBILITY & PREFERS-REDUCED-MOTION
   ========================================================================== */

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

  .floating-metric-badge, .intent-card, .founder-backdrop-text {
    opacity: 1 !important;
    transform: none !important;
  }
}
