/* ============================================================
   FLW — Original Orderflow Site | Aesthetics 2.0
   ============================================================ */

/* --- Tokens --- */
:root {
  --bg-deep: #050507;
  --bg-surface: #0a0a0f;
  --bg-glass: rgba(10, 10, 15, 0.4);
  --border-light: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(255, 255, 255, 0.15);
  
  --text-main: #ffffff;
  --text-muted: rgba(255, 255, 255, 0.55);
  --text-dark: rgba(255, 255, 255, 0.25);
  
  --blue-primary: #8B5CF6;
  --blue-glow: rgba(139, 92, 246, 0.3);
  --red-primary: #F72585;
  --red-glow: rgba(247, 37, 133, 0.3);
  --green-primary: #8B5CF6;
  
  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
  --font-display: 'Inter', system-ui, sans-serif; /* We'll use tight tracking for display */
  
  --ease-spring: cubic-bezier(0.175, 0.885, 0.32, 1.1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* Hide scrollbar for Chrome, Safari and Opera */
::-webkit-scrollbar {
  display: none;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  scrollbar-width: none; /* Hide scrollbar for Firefox */
  -ms-overflow-style: none; /* Hide scrollbar for IE and Edge */
}
body {
  font-family: var(--font-sans);
  background-color: var(--bg-deep);
  color: var(--text-main);
  line-height: 1.5;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* --- Global Noise Texture --- */
.noise-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

/* --- Container --- */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 5vw;
}

/* ============================================================
   FLOATING NAVIGATION
   ============================================================ */
.nav-wrapper {
  position: fixed;
  top: 32px;
  left: 0;
  width: 100%;
  z-index: 100;
  display: flex;
  justify-content: center;
  pointer-events: none;
}
.nav-pill {
  pointer-events: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(180deg, rgba(255,255,255,0.06) 0%, rgba(255,255,255,0.01) 100%);
  backdrop-filter: blur(48px) saturate(200%);
  -webkit-backdrop-filter: blur(48px) saturate(200%);
  border: 1px solid rgba(255,255,255,0.1);
  border-top: 1px solid rgba(255,255,255,0.2);
  border-radius: 999px;
  padding: 8px 12px 8px 24px;
  width: 90%;
  max-width: 900px;
  box-shadow: 
    inset 0 1px 0 rgba(255,255,255,0.15),
    inset 0 -1px 0 rgba(0,0,0,0.5),
    0 24px 48px -12px rgba(0,0,0,0.8);
  transition: border-color 0.3s;
}
.nav-pill:hover { border-color: var(--border-hover); }

.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.nav-logo-img {
  height: 32px;
  width: auto;
  transform: scale(2.5);
  transform-origin: center;
  margin: 0 12px; /* Add some margin to account for visual scale */
}
.nav-brand-text {
  font-weight: 800;
  font-size: 1.1rem;
  letter-spacing: -0.03em;
  color: var(--text-main);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}
.nav-link {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: 99px;
  transition: all 0.2s var(--ease-out);
}
.nav-link:hover {
  color: var(--text-main);
  background: rgba(255,255,255,0.05);
}

.nav-btn-wrap {
  position: relative;
  border-radius: 100px;
  background: #0a0a0f;
  box-shadow: 
    0 4px 20px rgba(0,0,0,0.5),
    0 0 0 1px rgba(0,0,0,0.8);
  transform-style: preserve-3d;
  perspective: 500px;
}
.nav-btn-wrap::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 100px;
  background: linear-gradient(135deg, rgba(255,255,255,0.4) 0%, transparent 40%, transparent 60%, rgba(255,255,255,0.15) 100%);
  z-index: -1;
  pointer-events: none;
  filter: blur(1px);
}
.btn-premium {
  display: block;
  position: relative;
  background: linear-gradient(180deg, rgba(255,255,255,0.1) 0%, rgba(0,0,0,0.4) 100%);
  border: none;
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 12px 28px;
  border-radius: 100px;
  text-decoration: none;
  overflow: hidden;
  z-index: 40;
  transform: translateZ(10px);
  box-shadow: inset 0 1px 1px rgba(255,255,255,0.3);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.btn-premium::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at top, rgba(255,255,255,0.2) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.3s;
}
.btn-premium:hover {
  transform: translateZ(15px);
  text-shadow: 0 0 8px rgba(255,255,255,0.5);
  box-shadow: inset 0 1px 1px rgba(255,255,255,0.5), 0 8px 16px rgba(139,92,246,0.3);
}
.btn-premium:hover::after {
  opacity: 1;
}

/* ============================================================
   HERO ASYMMETRIQUE
   ============================================================ */
.hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  padding-top: 100px; /* Space for nav */
  position: relative;
}

.hero-glow-bg {
  position: absolute;
  top: 20%;
  left: -10%;
  width: 60vw;
  height: 60vw;
  background: radial-gradient(circle, var(--blue-glow) 0%, transparent 60%);
  filter: blur(120px);
  z-index: -1;
  opacity: 0.5;
  animation: pulseGlow 8s infinite alternate;
}

@keyframes pulseGlow {
  0% { opacity: 0.3; transform: scale(0.9); }
  100% { opacity: 0.6; transform: scale(1.1); }
}

.hero-content {
  padding-right: 4vw;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-light);
  font-size: 0.75rem;
  font-family: var(--font-mono);
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 24px;
  letter-spacing: 0.05em;
}
.hero-badge-dot {
  display: none; /* Removing the dot for the new design */
}

.hero-title {
  font-family: var(--font-display);
  font-size: 5.5rem;
  font-weight: 800;
  line-height: 1.05;
  margin-bottom: 24px;
  letter-spacing: -0.04em;
  color: #ffffff;
}
.text-glow-gradient {
  background: linear-gradient(135deg, var(--blue-primary), var(--red-primary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
  filter: drop-shadow(0 0 24px rgba(139, 92, 246, 0.4));
}
.hero-desc {
  font-size: 1.125rem;
  color: var(--text-muted);
  max-width: 480px;
  margin-bottom: 40px;
  line-height: 1.6;
}

.hero-visual {
  position: relative;
  height: 70vh;
  min-height: 500px;
  perspective: 1000px;
}
.hero-canvas-wrap {
  width: 100%;
  height: 100%;
  background: linear-gradient(145deg, rgba(255,255,255,0.03), rgba(0,0,0,0.5));
  border: 1px solid var(--border-light);
  border-radius: 32px;
  transform: rotateY(-15deg) rotateX(5deg) translateZ(0);
  box-shadow: -30px 40px 100px rgba(0,0,0,0.8), inset 0 0 0 1px rgba(255,255,255,0.05);
  overflow: hidden;
  transition: transform 0.5s var(--ease-out);
}
.hero-canvas-wrap:hover {
  transform: rotateY(-5deg) rotateX(2deg) translateZ(20px);
}
#heroCanvas {
  width: 100%;
  height: 100%;
}

/* ============================================================
   SECTIONS & TYPOGRAPHY
   ============================================================ */
.section {
  padding: 120px 0;
  position: relative;
}
.section-header {
  margin-bottom: 80px;
}
.section-subtitle {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--red-primary);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 16px;
  display: block;
}
.section-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  max-width: 800px;
}

/* ============================================================
   PROXIMITY GLOW CARDS
   ============================================================ */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }

.glow-card {
  position: relative;
  background: var(--bg-surface);
  border-radius: 24px;
  padding: 40px;
  overflow: hidden;
  border: 1px solid var(--border-light);
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Border Glow Mask */
.glow-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px; /* border width */
  background: radial-gradient(
    600px circle at var(--mouse-x, 0) var(--mouse-y, 0),
    rgba(139, 92, 246, 0.8),
    transparent 40%
  );
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s;
}

/* Inner Background Glow */
.glow-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(
    800px circle at var(--mouse-x, 0) var(--mouse-y, 0),
    rgba(139, 92, 246, 0.05),
    transparent 40%
  );
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s;
  z-index: 0;
}

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

.glow-card > * {
  position: relative;
  z-index: 10; /* Keep content above the background glow */
}

/* Base static border as fallback */
.glow-card {
  box-shadow: 0 0 0 1px rgba(255,255,255,0.05) inset;
}
.glow-card:hover::after { opacity: 1; }

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

.card-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-main);
}
.card-icon.blue { color: var(--blue-primary); border-color: rgba(58,139,255,0.2); background: rgba(58,139,255,0.05); }
.card-icon.red { color: var(--red-primary); border-color: rgba(255,74,74,0.2); background: rgba(255,74,74,0.05); }

.card-title {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.card-desc {
  color: var(--text-muted);
  line-height: 1.6;
}

/* ============================================================
   STAT STRIP
   ============================================================ */
.stat-strip {
  display: flex;
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
  margin-top: 80px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.02) 50%, transparent);
}
.stat-item {
  flex: 1;
  padding: 40px 0;
  text-align: center;
  border-right: 1px solid var(--border-light);
}
.stat-item:last-child { border-right: none; }
.stat-val {
  font-size: 3rem;
  font-weight: 900;
  letter-spacing: -0.05em;
  font-family: var(--font-mono);
  color: var(--text-main);
}
.stat-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 8px;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  border-top: 1px solid var(--border-light);
  padding: 80px 0 40px;
  margin-top: 100px;
  background: #000;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 80px;
}
.footer-brand .nav-logo-img { filter: grayscale(1); opacity: 0.5; transition: 0.3s; }
.footer-brand:hover .nav-logo-img { filter: grayscale(0); opacity: 1; }
.footer-desc {
  color: var(--text-muted);
  margin-top: 24px;
  max-width: 300px;
}
.footer-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 24px;
}
.footer-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--text-main); }
.footer-bottom {
  border-top: 1px solid var(--border-light);
  padding-top: 32px;
  display: flex;
  justify-content: space-between;
  color: var(--text-dark);
  font-size: 0.8rem;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .hero { grid-template-columns: 1fr; text-align: center; padding-top: 160px; }
  .hero-content { padding-right: 0; display: flex; flex-direction: column; align-items: center; }
  .hero-desc { margin: 0 auto 48px; }
  .hero-visual { height: 50vh; transform: none !important; perspective: none; }
  .hero-canvas-wrap { transform: none; }
  .grid-3 { grid-template-columns: 1fr; }
  .nav-links { display: none; }
}

/* ============================================================
   PRICING
   ============================================================ */
.pricing-toggle-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 48px;
}
.pricing-toggle {
  position: relative;
  display: inline-flex;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 100px;
  padding: 4px;
}
.toggle-btn {
  position: relative;
  z-index: 2;
  background: none;
  border: none;
  color: var(--text-muted);
  padding: 10px 24px;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  border-radius: 100px;
  transition: color 0.3s;
  display: flex;
  align-items: center;
  gap: 8px;
}
.toggle-btn.active { color: var(--text-main); }
.toggle-pill {
  position: absolute;
  top: 4px; left: 4px;
  height: calc(100% - 8px);
  width: 100px; /* Updated by JS */
  background: rgba(255, 255, 255, 0.1);
  border-radius: 100px;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 1;
  box-shadow: inset 0 1px 1px rgba(255,255,255,0.1);
}
.badge {
  background: var(--blue-glow);
  color: var(--blue-primary);
  font-size: 0.65rem;
  padding: 2px 6px;
  border-radius: 4px;
  border: 1px solid rgba(139, 92, 246, 0.3);
}

.pricing-grid { max-width: 900px; margin: 0 auto; }
.pricing-card { display: flex; flex-direction: column; padding: 40px; }
.featured-pricing { border-top: 2px solid var(--blue-primary); }
.price-wrap { margin-bottom: 16px; display: flex; align-items: baseline; gap: 8px; }
.price-val { font-size: 3rem; font-weight: 800; font-family: var(--font-mono); }
.price-period { color: var(--text-muted); font-size: 0.85rem; }
.feature-list { list-style: none; padding: 0; margin: 24px 0 0; flex-grow: 1; }
.feature-list li { display: flex; gap: 12px; margin-bottom: 12px; font-size: 0.9rem; color: var(--text-main); }
.feature-list .check { color: var(--blue-primary); font-weight: 800; }

/* ============================================================
   FAQ
   ============================================================ */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.faq-item {
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.faq-trigger {
  width: 100%;
  background: none;
  border: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 0;
  cursor: pointer;
  color: var(--text-main);
  text-align: left;
}
.faq-q {
  font-size: 1.1rem;
  font-weight: 600;
  transition: color 0.3s;
}
.faq-trigger:hover .faq-q { color: var(--blue-primary); }
.faq-icon {
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  font-size: 0.8rem;
  color: var(--text-muted);
}
.faq-item.active .faq-icon { transform: rotate(180deg); }
.faq-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.faq-content p {
  padding-bottom: 24px;
  color: var(--text-muted);
  line-height: 1.6;
}

@media (max-width: 768px) {
  .grid-2 { grid-template-columns: 1fr; }
  .stat-strip { flex-direction: column; }
  .stat-item { border-right: none; border-bottom: 1px solid var(--border-light); }
  .footer-grid { grid-template-columns: 1fr; }
}



/* ============================================================
   GLITCH & CYBER EFFECTS
   ============================================================ */
.glitch {
  position: relative;
  display: inline-block;
  color: var(--blue-primary);
}
.glitch::before, .glitch::after {
  content: attr(data-text);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--bg-deep);
}
.glitch::before {
  left: 2px;
  text-shadow: -2px 0 var(--red-primary);
  clip: rect(24px, 550px, 90px, 0);
  animation: glitch-anim-2 3s infinite linear alternate-reverse;
}
.glitch::after {
  left: -2px;
  text-shadow: -2px 0 var(--blue-primary);
  clip: rect(85px, 550px, 140px, 0);
  animation: glitch-anim 2.5s infinite linear alternate-reverse;
}
@keyframes glitch-anim {
  0% { clip: rect(72px, 9999px, 86px, 0); }
  20% { clip: rect(21px, 9999px, 86px, 0); }
  40% { clip: rect(65px, 9999px, 90px, 0); }
  60% { clip: rect(96px, 9999px, 5px, 0); }
  80% { clip: rect(54px, 9999px, 16px, 0); }
  100% { clip: rect(2px, 9999px, 89px, 0); }
}
@keyframes glitch-anim-2 {
  0% { clip: rect(65px, 9999px, 100px, 0); }
  20% { clip: rect(3px, 9999px, 54px, 0); }
  40% { clip: rect(26px, 9999px, 49px, 0); }
  60% { clip: rect(81px, 9999px, 88px, 0); }
  80% { clip: rect(10px, 9999px, 7px, 0); }
  100% { clip: rect(12px, 9999px, 12px, 0); }
}

/* ============================================================
   SCANLINE & CANVAS
   ============================================================ */
.scanline {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100px;
  background: linear-gradient(to bottom, transparent, rgba(139, 92, 246, 0.2), transparent);
  animation: scan 4s linear infinite;
  pointer-events: none;
  opacity: 0.5;
}
@keyframes scan {
  0% { transform: translateY(-100px); }
  100% { transform: translateY(1000px); }
}

/* Make canvas wrapper overflow hidden for scanline */
.hero-canvas-wrap {
  position: relative;
  overflow: hidden;
}


/* ============================================================
   PROPFIRM PAGE (ÉPURÉ / SOBER / MINIMALIST)
   ============================================================ */
.propfirm-container {
  max-width: 960px;
  margin: 0 auto;
  padding: 140px 24px 100px 24px;
  position: relative;
}

.propfirm-hero-glow {
  position: absolute;
  top: 40px;
  left: 50%;
  transform: translateX(-50%);
  width: 500px;
  height: 300px;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.12) 0%, rgba(139, 92, 246, 0.02) 50%, transparent 70%);
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
}

.propfirm-header {
  text-align: center;
  margin-bottom: 56px;
  position: relative;
  z-index: 1;
}

.badge--violet {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(139, 92, 246, 0.08);
  border: 1px solid rgba(139, 92, 246, 0.25);
  color: #C4B5FD;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.badge-dot--violet {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #8B5CF6;
  box-shadow: 0 0 8px #8B5CF6;
}

.propfirm-title {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 5vw, 4rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: #ffffff;
  margin-bottom: 16px;
}

.propfirm-title .text-violet {
  background: linear-gradient(135deg, #C4B5FD 0%, #8B5CF6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.propfirm-subtitle {
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--text-muted);
  max-width: 580px;
  margin: 0 auto;
}

/* Minimalist Prop Firm Grid */
.propfirm-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  position: relative;
  z-index: 1;
}

@media (max-width: 720px) {
  .propfirm-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

.propfirm-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  background: rgba(14, 15, 22, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: 40px 32px 28px 32px;
  text-decoration: none;
  color: inherit;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  position: relative;
  overflow: hidden;
  min-height: 220px;
}

.propfirm-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(400px circle at center, rgba(139, 92, 246, 0.08), transparent 70%);
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
}

.propfirm-card:hover {
  border-color: rgba(139, 92, 246, 0.45);
  transform: translateY(-4px);
  box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.7), 0 0 30px rgba(139, 92, 246, 0.15);
}

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

.propfirm-logo-wrap {
  width: 100%;
  height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
}

.propfirm-logo-wrap img {
  max-width: 220px;
  max-height: 60px;
  width: auto;
  height: auto;
  object-fit: contain;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.3));
}

.propfirm-card:hover .propfirm-logo-wrap img {
  transform: scale(1.05);
}

.propfirm-link-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.propfirm-link-text {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 600;
  color: #94A3B8;
  letter-spacing: 0.02em;
  transition: color 0.25s ease;
}

.propfirm-link-arrow {
  color: #64748B;
  transition: transform 0.25s ease, color 0.25s ease;
}

.propfirm-card:hover .propfirm-link-text {
  color: #C4B5FD;
}

.propfirm-card:hover .propfirm-link-arrow {
  color: #A78BFA;
  transform: translate(2px, -2px);
}


/* ============================================================
   SOBER & AUTHENTIC HOMEPAGE COMPONENTS (Anti-AI Aesthetics)
   ============================================================ */
.market-terminal-widget {
  background: rgba(10, 10, 14, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  overflow: hidden;
  font-family: var(--font-mono);
  backdrop-filter: blur(24px);
}

.terminal-header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 18px;
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.72rem;
  color: var(--text-muted);
}

.terminal-header-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.terminal-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10B981;
  box-shadow: 0 0 10px #10B981;
  animation: liveDotPulse 2s infinite;
}

@keyframes liveDotPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.85); }
}

.terminal-metrics-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: rgba(255, 255, 255, 0.06);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.terminal-metric {
  background: rgba(10, 10, 14, 0.95);
  padding: 14px 16px;
}

.terminal-metric-label {
  font-size: 0.65rem;
  color: var(--text-dark);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 4px;
}

.terminal-metric-val {
  font-size: 1.05rem;
  font-weight: 700;
  color: #ffffff;
}

.terminal-canvas-view {
  padding: 20px;
  position: relative;
}

.terminal-footprint-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.75rem;
}

.terminal-footprint-table th {
  padding: 8px 10px;
  color: var(--text-dark);
  font-weight: 600;
  text-transform: uppercase;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  text-align: right;
}

.terminal-footprint-table th:first-child {
  text-align: left;
}

.terminal-footprint-table td {
  padding: 6px 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
  text-align: right;
  color: var(--text-muted);
}

.terminal-footprint-table td:first-child {
  text-align: left;
  font-weight: 700;
  color: #fff;
}

.terminal-poc-row {
  background: rgba(139, 92, 246, 0.12);
}

.terminal-poc-row td {
  color: #ffffff;
}

.terminal-poc-tag {
  display: inline-block;
  font-size: 0.62rem;
  padding: 1px 6px;
  border-radius: 4px;
  background: #8B5CF6;
  color: #ffffff;
  font-weight: 700;
  margin-left: 6px;
}

.imb-ask {
  color: #10B981;
  font-weight: 700;
  background: rgba(16, 185, 129, 0.12);
  padding: 2px 5px;
  border-radius: 4px;
}

.imb-bid {
  color: #EF4444;
  font-weight: 700;
  background: rgba(239, 68, 68, 0.12);
  padding: 2px 5px;
  border-radius: 4px;
}

/* Comparison Table (Retail vs AMT) */
.compare-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 36px;
}

@media (max-width: 860px) {
  .compare-container {
    grid-template-columns: 1fr;
  }
}

.compare-card {
  border-radius: 20px;
  padding: 32px;
  border: 1px solid var(--border-light);
}

.compare-card.retail {
  background: rgba(239, 68, 68, 0.02);
  border-color: rgba(239, 68, 68, 0.2);
}

.compare-card.orderflow {
  background: rgba(16, 185, 129, 0.02);
  border-color: rgba(16, 185, 129, 0.25);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.4);
}

.compare-card-badge {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 12px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.compare-card.retail .compare-card-badge {
  color: #F87171;
}

.compare-card.orderflow .compare-card-badge {
  color: #34D399;
}

.compare-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 20px;
}

.compare-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.compare-item {
  display: flex;
  gap: 14px;
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text-muted);
}

.compare-icon {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 800;
  margin-top: 2px;
}

.compare-card.retail .compare-icon {
  background: rgba(239, 68, 68, 0.15);
  color: #EF4444;
}

.compare-card.orderflow .compare-icon {
  background: rgba(16, 185, 129, 0.15);
  color: #10B981;
}

/* Manifesto Box (Zero Sales) */
.manifesto-box {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03) 0%, rgba(255, 255, 255, 0.01) 100%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 24px;
  padding: 48px;
  position: relative;
  overflow: hidden;
  margin-top: 60px;
}

.manifesto-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--blue-primary), transparent);
}

.manifesto-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

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

/* ============================================================
   CINEMATIC SCROLLING SITE (Inspired by Andy Hardy Portfolio)
   ============================================================ */
.andy-body {
  background-color: #050507;
  color: #ffffff;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

.andy-frame {
  padding: 24px;
  box-sizing: border-box;
  min-height: 100vh;
}

@media (max-width: 768px) {
  .andy-frame {
    padding: 0;
  }
}

.andy-viewport {
  background: #09090d;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  overflow: hidden;
  position: relative;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
}

@media (max-width: 768px) {
  .andy-viewport {
    border-radius: 0;
    border: none;
  }
}

/* --- FIXED HUD CORNERS --- */
.hud-layer {
  position: fixed;
  inset: 24px;
  pointer-events: none;
  z-index: 200;
}

@media (max-width: 768px) {
  .hud-layer {
    inset: 12px;
  }
}

.hud-top-left {
  position: absolute;
  top: 16px;
  left: 20px;
  pointer-events: auto;
}

.hud-menu-btn {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: #ffffff;
  color: #000000;
  border: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.hud-menu-btn:hover {
  transform: scale(1.08);
  background: #f0f0f0;
}

.hud-menu-btn span {
  display: block;
  width: 18px;
  height: 2px;
  background: #000000;
  border-radius: 2px;
  transition: all 0.2s;
}

.hud-top-center {
  position: absolute;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  pointer-events: auto;
  text-align: center;
}

.hud-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  transition: all 0.25s ease;
}

.hud-logo-icon {
  width: 26px;
  height: 26px;
  object-fit: contain;
  filter: drop-shadow(0 0 8px rgba(139, 92, 246, 0.5));
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), filter 0.3s;
}

.hud-logo-text {
  font-family: var(--font-sans);
  font-size: 1.15rem;
  font-weight: 900;
  letter-spacing: 0.15em;
  color: #ffffff;
  text-transform: uppercase;
}

.hud-logo:hover .hud-logo-icon {
  transform: rotate(45deg) scale(1.15);
  filter: drop-shadow(0 0 16px rgba(167, 139, 250, 0.9));
}

.hud-logo:hover .hud-logo-text {
  color: #e0d4fc;
}

.hud-top-right {
  display: none !important;
}

.hud-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 24px;
  border-radius: 999px;
  background: #ffffff;
  color: #000000;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 700;
  text-decoration: none;
  letter-spacing: 0.04em;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.hud-cta-btn:hover {
  transform: translateY(-2px);
  background: #f0f0f0;
  box-shadow: 0 8px 25px rgba(255, 255, 255, 0.2);
}

.hud-right-rail {
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: center;
  pointer-events: auto;
}

.hud-lang-toggle {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  background: rgba(10, 10, 15, 0.7);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 8px 6px;
  border-radius: 999px;
}

.hud-lang-btn {
  color: var(--text-muted);
  text-decoration: none;
  padding: 4px 6px;
  border-radius: 50%;
  text-align: center;
  transition: color 0.2s;
}

.hud-lang-btn:hover, .hud-lang-btn.active {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.15);
}

.hud-discord-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(10, 10, 15, 0.7);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-muted);
  text-decoration: none;
  transition: all 0.25s ease;
}

.hud-discord-btn:hover {
  color: #ffffff;
  background: #5865F2;
  border-color: #5865F2;
  box-shadow: 0 0 16px rgba(88, 101, 242, 0.5);
  transform: scale(1.08);
}

.hud-cta-discord {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(88, 101, 242, 0.12);
  border: 1px solid rgba(88, 101, 242, 0.35);
  color: #c4b5fd;
  text-decoration: none;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-weight: 700;
  letter-spacing: 0.05em;
  transition: all 0.25s ease;
}

.hud-cta-discord:hover {
  background: #5865F2;
  color: #ffffff;
  border-color: #5865F2;
  box-shadow: 0 0 20px rgba(88, 101, 242, 0.4);
  transform: translateY(-2px);
}

.hud-bottom-left,
.hud-bottom-right {
  display: none !important;
}

@media (max-width: 900px) {
  .hud-bottom-left, .hud-bottom-right, .hud-right-rail {
    display: none;
  }
}

/* --- LENIS SMOOTH SCROLL STYLES --- */
html.lenis, html.lenis body {
  height: auto;
}

.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}

.lenis.lenis-smooth [data-lenis-prevent] {
  overscroll-behavior: contain;
}

.lenis.lenis-stopped {
  overflow: hidden;
}

.lenis.lenis-scrolling iframe {
  pointer-events: none;
}

/* --- CINEMATIC HERO SECTION --- */
.cinematic-hero {
  min-height: 94vh;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 24px;
  overflow: hidden;
}

.cinematic-hero-bg-layer {
  position: absolute;
  inset: -15% 0;
  background-image: url('../images/hero_bg.jpg');
  background-size: cover;
  background-position: center;
  transform: translate3d(0, 0, 0);
  will-change: transform;
  filter: brightness(0.55) contrast(1.15);
  opacity: 0.28;
  pointer-events: none;
}

.cinematic-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(6, 5, 12, 0.45) 0%, rgba(15, 9, 28, 0.25) 45%, rgba(6, 6, 9, 0.96) 100%);
  pointer-events: none;
}

.cinematic-hero-content {
  position: relative;
  z-index: 10;
  max-width: 960px;
  width: 100%;
  will-change: transform, opacity;
}

/* --- HERO FLYING LOGO INTRO & REVEALED CARD --- */
.hero-intro-stage {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: clamp(200px, 30vw, 280px);
  height: clamp(200px, 30vw, 280px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 20;
  pointer-events: none;
}

.hero-flying-emblem {
  position: relative;
  width: clamp(150px, 22vw, 210px);
  height: clamp(150px, 22vw, 210px);
  display: flex;
  align-items: center;
  justify-content: center;
  will-change: transform, opacity, filter;
}

.hero-emblem-star {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 16px 36px rgba(139, 92, 246, 0.6)) drop-shadow(0 0 24px rgba(217, 70, 239, 0.35));
  animation: emblemFloat 4.5s ease-in-out infinite;
}

@keyframes emblemFloat {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-8px) rotate(1.2deg); }
}

/* Permanent Atmospheric Violet Ambient Aura */
.hero-ambient-glow {
  position: absolute;
  top: 48%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: clamp(380px, 58vw, 680px);
  height: clamp(320px, 46vw, 540px);
  background: radial-gradient(ellipse at center, rgba(147, 51, 234, 0.45) 0%, rgba(124, 58, 237, 0.25) 38%, rgba(109, 40, 217, 0.08) 60%, transparent 75%);
  filter: blur(65px);
  border-radius: 50%;
  pointer-events: none;
  z-index: 2;
  animation: glowPulse 5.5s ease-in-out infinite;
}

@keyframes glowPulse {
  0%, 100% { transform: translate(-50%, -50%) scale(0.94); opacity: 0.8; }
  50% { transform: translate(-50%, -50%) scale(1.08); opacity: 1; filter: blur(75px); }
}

/* Cosmic Orbital Rings */
.hero-orbit-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  border-radius: 50%;
  pointer-events: none;
  z-index: 2;
  box-sizing: border-box;
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.hero-orbit-ring.ring-outer {
  width: clamp(280px, 40vw, 400px);
  height: clamp(280px, 40vw, 400px);
  border: 1px dashed rgba(167, 139, 250, 0.25);
  transform: translate(-50%, -50%);
  animation: orbitRotate 45s linear infinite;
}

.hero-orbit-ring.ring-inner {
  width: clamp(210px, 30vw, 300px);
  height: clamp(210px, 30vw, 300px);
  border: 1px solid rgba(139, 92, 246, 0.2);
  transform: translate(-50%, -50%);
  animation: orbitRotateRev 32s linear infinite;
}

@keyframes orbitRotate {
  from { transform: translate(-50%, -50%) rotate(0deg); }
  to { transform: translate(-50%, -50%) rotate(360deg); }
}

@keyframes orbitRotateRev {
  from { transform: translate(-50%, -50%) rotate(360deg); }
  to { transform: translate(-50%, -50%) rotate(0deg); }
}

/* Top Navbar Logo arrival animation */
.hud-logo-icon.is-hidden-initially {
  opacity: 0;
  transform: scale(0.4);
  transition: opacity 0.35s ease, transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.hud-logo-icon.is-arrived {
  opacity: 1;
  transform: scale(1);
  animation: logoDockPulse 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes logoDockPulse {
  0% { transform: scale(0.6); filter: drop-shadow(0 0 16px rgba(168, 85, 247, 1)); }
  50% { transform: scale(1.25); filter: drop-shadow(0 0 24px rgba(217, 70, 239, 1)); }
  100% { transform: scale(1); filter: drop-shadow(0 0 8px rgba(139, 92, 246, 0.5)); }
}

/* B. Revealed Hero Card (Image 2 style) */
.hero-revealed-card {
  width: 100%;
  max-width: 920px;
  margin: 0 auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  opacity: 0;
  transform: translateY(30px);
  pointer-events: none;
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-revealed-card.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* Monumental Title: Read the / auction. */
.hero-big-title {
  margin: -48px 0 clamp(54px, 7.5vh, 78px) 0;
  font-family: var(--font-sans);
  line-height: 1.05;
  letter-spacing: -0.03em;
  user-select: none;
  text-align: center;
}

.title-row-light {
  display: block;
  font-size: clamp(2.2rem, 5.4vw, 4.2rem);
  font-weight: 400;
  color: #94a3b8;
  letter-spacing: -0.025em;
  line-height: 1.12;
  text-align: center;
}

.title-row-bold {
  display: block;
  font-size: clamp(2.8rem, 7.6vw, 5.6rem);
  font-weight: 900;
  color: #ffffff;
  letter-spacing: -0.04em;
  line-height: 1.04;
  text-align: center;
}

.hero-dot {
  color: #a855f7;
  display: inline-block;
  text-shadow: 0 0 20px rgba(168, 85, 247, 0.95), 0 0 35px rgba(139, 92, 246, 0.7);
}

/* Lead Subtitle */
.hero-desc-lead {
  font-size: clamp(1.05rem, 1.4vw, 1.25rem);
  color: #94a3b8;
  line-height: 1.6;
  max-width: 580px;
  margin: 0 auto 30px auto;
  font-weight: 400;
  text-align: center;
}

/* Badges Row */
.hero-badges-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
  text-align: center;
  margin-top: 18px;
}

.hero-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-sans);
  font-size: 0.88rem;
  color: #94a3b8;
}

.badge-french {
  color: #f1f5f9;
  font-weight: 500;
}

.badge-free {
  color: #c4b5fd;
  font-weight: 600;
}

.badge-discord {
  color: #cbd5e1;
  text-decoration: none;
  background: rgba(88, 101, 242, 0.12);
  border: 1px solid rgba(88, 101, 242, 0.35);
  padding: 5px 14px;
  border-radius: 9999px;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.badge-discord:hover {
  color: #ffffff;
  background: #5865F2;
  border-color: #5865F2;
  box-shadow: 0 0 16px rgba(88, 101, 242, 0.55);
  transform: translateY(-1px);
}

.discord-svg-icon {
  display: inline-block;
  vertical-align: -2px;
  color: #818cf8;
  transition: color 0.2s ease;
}

.badge-discord:hover .discord-svg-icon {
  color: #ffffff;
}

.badge-dot-live {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 10px #22c55e;
  display: inline-block;
  animation: pulseDotLive 2s infinite ease-in-out;
}

@keyframes pulseDotLive {
  0%, 100% { opacity: 0.7; transform: scale(0.9); }
  50% { opacity: 1; transform: scale(1.3); }
}

.flag-fr-svg {
  display: inline-block;
  vertical-align: -1px;
  border-radius: 2px;
  box-shadow: 0 0 3px rgba(0, 0, 0, 0.6);
}

@media (max-width: 768px) {
  .hero-badges-row {
    gap: 14px;
  }
}

.hero-sub-meta::before, .hero-sub-meta::after {
  content: '';
  display: inline-block;
  width: 24px;
  height: 1px;
  background: rgba(255, 255, 255, 0.3);
}

.hero-scroll-cue {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: rgba(255, 255, 255, 0.5);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  animation: bounceCue 2.2s infinite;
}

@keyframes bounceCue {
  0%, 100% { transform: translate(-50%, 0); }
  50% { transform: translate(-50%, 8px); }
}

/* --- HORIZONTAL CAROUSEL SECTION (The 4 Phases) --- */
.carousel-section {
  padding: 80px 0 100px 0;
  background: #09090d;
  position: relative;
}

.carousel-header-wrap {
  padding: 0 48px 32px 48px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 16px;
}

.carousel-category-tag {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--blue-primary);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.carousel-main-title {
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #ffffff;
  margin: 0;
}

.carousel-arrows {
  display: flex;
  gap: 10px;
}

.carousel-arrow-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
}

.carousel-arrow-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.3);
}

.carousel-track-wrapper {
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  display: flex;
  gap: 24px;
  padding: 10px 48px 40px 48px;
  scrollbar-width: none;
}

.carousel-track-wrapper::-webkit-scrollbar {
  display: none;
}

.carousel-card {
  min-width: 320px;
  max-width: 360px;
  height: 460px;
  flex-shrink: 0;
  scroll-snap-align: start;
  border-radius: 18px;
  overflow: hidden;
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.08);
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 28px;
  background-color: #121218;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s;
}

.carousel-card:hover {
  transform: translateY(-8px);
  border-color: rgba(255, 255, 255, 0.25);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.7);
}

.card-bg-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  filter: brightness(0.65) contrast(1.1);
}

.carousel-card:hover .card-bg-img {
  transform: scale(1.08);
  filter: brightness(0.8) contrast(1.15);
}

.card-gradient-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 20%, rgba(0,0,0,0.85) 80%, rgba(0,0,0,0.98) 100%);
  pointer-events: none;
}

.card-content {
  position: relative;
  z-index: 10;
}

.card-phase-tag {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 6px;
  display: block;
}

.card-title-text {
  font-size: 1.45rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}

.card-sub-labels {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.5;
  margin-bottom: 18px;
}

.card-action-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 700;
  color: #ffffff;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.card-action-link svg {
  transition: transform 0.2s;
}

.carousel-card:hover .card-action-link svg {
  transform: translateX(4px);
}

/* --- EDITORIAL SECTION WITH ROTATING BADGE --- */
.editorial-story-section {
  padding: 100px 48px;
  background: #060608;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  position: relative;
}

.editorial-inner-grid {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 64px;
  align-items: center;
}

@media (max-width: 900px) {
  .editorial-inner-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

.editorial-visual-box {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.editorial-visual-box img {
  width: 100%;
  height: auto;
  display: block;
  filter: contrast(1.05);
}

/* Rotating SVG Stamp Badge */
.stamp-badge-wrap {
  position: absolute;
  bottom: -24px;
  right: -24px;
  width: 130px;
  height: 130px;
  background: #000000;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 20;
}

.stamp-badge-svg {
  width: 100%;
  height: 100%;
  animation: rotateStamp 24s linear infinite;
  transform-origin: center;
}

@keyframes rotateStamp {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.stamp-center-icon {
  position: absolute;
  color: #ffffff;
}

.editorial-text-box {
  padding-right: 20px;
}

.editorial-headline {
  font-size: clamp(2rem, 3.2vw, 2.8rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: #ffffff;
  margin-bottom: 24px;
}

.editorial-paragraph {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.editorial-quote-box {
  border-left: 2px solid var(--blue-primary);
  padding-left: 20px;
  margin-top: 32px;
  font-style: italic;
  color: #ffffff;
  font-size: 1.1rem;
  line-height: 1.6;
}

/* --- SCATTERED / FLOATING CONCEPT CARDS COLLAGE --- */
.collage-section {
  padding: 120px 48px;
  background: #09090d;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.collage-title-wrap {
  margin-bottom: 60px;
}

.scatter-cluster {
  position: relative;
  max-width: 900px;
  height: 440px;
  margin: 0 auto 50px auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

@media (max-width: 768px) {
  .scatter-cluster {
    height: auto;
    flex-direction: column;
    gap: 20px;
  }
}

.scatter-card {
  position: absolute;
  width: 224px;
  background: #111116;
  border-radius: 14px;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.7);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.25s;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  will-change: transform;
}

.scatter-card img {
  width: 100%;
  height: 152px;
  object-fit: cover;
  border-radius: 8px;
  display: block;
}

.scatter-card-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  color: #ffffff;
  margin-top: 10px;
  text-align: left;
}

.scatter-card-sub {
  font-size: 0.65rem;
  color: var(--text-muted);
  text-align: left;
  margin-top: 2px;
}

/* Individual organic angles using CSS custom properties */
.scatter-card-1 {
  --base-x: -260px;
  --base-y: -40px;
  --base-rot: -8deg;
  --parallax-speed: 0.08;
  transform: translate3d(var(--base-x), calc(var(--base-y) + var(--card-py, 0px)), 0) rotate(var(--base-rot));
  z-index: 2;
}

.scatter-card-2 {
  --base-x: -125px;
  --base-y: 35px;
  --base-rot: 4deg;
  --parallax-speed: -0.06;
  transform: translate3d(var(--base-x), calc(var(--base-y) + var(--card-py, 0px)), 0) rotate(var(--base-rot));
  z-index: 4;
}

.scatter-card-3 {
  --base-x: 0px;
  --base-y: -45px;
  --base-rot: -2deg;
  --parallax-speed: 0.12;
  transform: translate3d(var(--base-x), calc(var(--base-y) + var(--card-py, 0px)), 0) rotate(var(--base-rot));
  z-index: 6;
}

.scatter-card-4 {
  --base-x: 130px;
  --base-y: 25px;
  --base-rot: 6deg;
  --parallax-speed: -0.08;
  transform: translate3d(var(--base-x), calc(var(--base-y) + var(--card-py, 0px)), 0) rotate(var(--base-rot));
  z-index: 3;
}

.scatter-card-5 {
  --base-x: 265px;
  --base-y: -30px;
  --base-rot: -5deg;
  --parallax-speed: 0.10;
  transform: translate3d(var(--base-x), calc(var(--base-y) + var(--card-py, 0px)), 0) rotate(var(--base-rot));
  z-index: 1;
}

@media (max-width: 768px) {
  .scatter-card {
    position: relative;
    transform: none !important;
    width: 90%;
    max-width: 280px;
  }
}

/* Hover: Keep the SAME X coordinate, only lift Y up smoothly and reset rotation without jumping */
.scatter-card:hover {
  transform: translate3d(var(--base-x), calc(var(--base-y) - 24px), 0) scale(1.12) rotate(0deg) !important;
  z-index: 60 !important;
  border-color: rgba(255, 255, 255, 0.85);
  box-shadow: 0 32px 70px rgba(0, 0, 0, 0.95), 0 0 30px rgba(59, 130, 246, 0.25);
}

/* --- ANIMATED LEARNING ROADMAP SECTION --- */
/* --- CLEAN MINIMALIST ROADMAP SECTION --- */
.nova-roadmap-section {
  padding: 100px 48px;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
}

.roadmap-header-row {
  margin-bottom: 44px;
}

.roadmap-main-title {
  font-family: var(--font-sans);
  font-size: clamp(2.4rem, 4.5vw, 3.6rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #ffffff;
  line-height: 1;
  margin: 0;
}

.roadmap-title-highlight {
  color: #a855f7;
  background: linear-gradient(135deg, #c084fc 0%, #a855f7 50%, #8b5cf6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
  filter: drop-shadow(0 0 25px rgba(168, 85, 247, 0.7));
}

/* Track & Node Circles */
.roadmap-track-container {
  position: relative;
  width: 100%;
}

.roadmap-line-track {
  position: absolute;
  top: 20px;
  left: calc(100% / 6);
  right: calc(100% / 6);
  height: 1px;
  background: rgba(255, 255, 255, 0.12);
  z-index: 1;
}

.roadmap-nodes-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  position: relative;
  z-index: 2;
  margin-bottom: 28px;
}

.roadmap-node-circle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #090a10;
  border: 1px solid rgba(255, 255, 255, 0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.6);
  margin: 0 auto;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.6);
  transition: all 0.3s ease;
}

.roadmap-node-circle.active,
.roadmap-node-circle:hover {
  border-color: #a855f7;
  color: #ffffff;
  background: rgba(168, 85, 247, 0.18);
  box-shadow: 0 0 24px rgba(168, 85, 247, 0.65);
}

/* Clean Cards Grid */
.roadmap-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.roadmap-card {
  background: #0d0f17;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 32px 26px 28px 26px;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.roadmap-card:hover {
  transform: translateY(-4px);
  border-color: rgba(168, 85, 247, 0.45);
  background: #10131e;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6), 0 0 25px rgba(168, 85, 247, 0.2);
}

.roadmap-card-tag {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: #c084fc;
  margin-bottom: 14px;
}

.roadmap-card-tag.purple,
.roadmap-card-tag.cyan {
  color: #c084fc;
}

.roadmap-card-title {
  font-family: var(--font-sans);
  font-size: 1.35rem;
  font-weight: 800;
  color: #ffffff;
  margin: 0 0 12px 0;
  letter-spacing: -0.015em;
  line-height: 1.25;
}

.roadmap-card-desc {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.6;
  margin: 0 0 28px 0;
  flex-grow: 1;
}

.roadmap-card-footer {
  margin-top: auto;
}

.roadmap-card-link {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 700;
  color: #c084fc;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.25s ease;
}

.roadmap-card.card-step-2 .roadmap-card-link,
.roadmap-card[data-step="2"] .roadmap-card-link,
.roadmap-card.card-step-3 .roadmap-card-link,
.roadmap-card[data-step="3"] .roadmap-card-link {
  color: #c084fc;
}

.roadmap-card:hover .roadmap-card-link {
  transform: translateX(4px);
  color: #ffffff;
}

@media (max-width: 860px) {
  .nova-roadmap-section {
    padding: 60px 20px;
  }
  .roadmap-line-track,
  .roadmap-nodes-row {
    display: none;
  }
  .roadmap-cards-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

/* --- MINIMALIST LUXURY EDITORIAL FOOTER (WHERE TO? ARCHITECTURE) --- */
.andy-footer {
  position: relative;
  margin-top: 60px;
  padding: clamp(80px, 12vh, 130px) 48px 48px 48px;
  background: #090a0f;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-minimal-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
}

/* Central Navigation Block */
.footer-nav-center {
  text-align: center;
  margin: 0 auto;
}

.footer-where-label {
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.26em;
  color: #ffffff;
  text-transform: uppercase;
  margin-bottom: 28px;
}

.footer-horizontal-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: clamp(24px, 4vw, 48px);
  flex-wrap: wrap;
}

.footer-nav-btn {
  font-family: var(--font-sans);
  font-size: clamp(1rem, 1.3vw, 1.12rem);
  font-weight: 400;
  color: rgba(255, 255, 255, 0.65);
  text-decoration: none;
  letter-spacing: -0.01em;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  display: inline-block;
}

.footer-nav-btn:hover {
  color: #ffffff;
  transform: translateY(-2px);
  text-shadow: 0 0 16px rgba(139, 92, 246, 0.6);
}

/* Bottom Tripartite Row */
.footer-tripartite-bottom {
  margin-top: clamp(80px, 14vh, 150px);
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 24px;
}

.footer-bottom-left {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.footer-sub-title {
  font-family: var(--font-sans);
  font-size: 0.76rem;
  color: rgba(255, 255, 255, 0.45);
  letter-spacing: 0.02em;
}

.footer-bottom-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  cursor: pointer;
  margin-top: 3px;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.footer-logo-star {
  width: 24px;
  height: 24px;
  object-fit: contain;
  filter: grayscale(100%) brightness(0.65) opacity(0.7);
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.footer-logo-text {
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: #64748b;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.footer-bottom-logo:hover .footer-logo-star {
  filter: grayscale(0%) brightness(1) drop-shadow(0 0 12px rgba(139, 92, 246, 0.95)) drop-shadow(0 0 24px rgba(167, 139, 250, 0.7)) opacity(1);
  transform: scale(1.12) rotate(15deg);
}

.footer-bottom-logo:hover .footer-logo-text {
  color: #a78bfa;
  text-shadow: 0 0 16px rgba(139, 92, 246, 0.85);
}

.footer-bottom-center {
  text-align: center;
}

.footer-backtotop-link {
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.65);
  text-decoration: none;
  letter-spacing: -0.01em;
  transition: all 0.25s ease;
  display: inline-block;
  cursor: pointer;
}

.footer-backtotop-link:hover {
  color: #ffffff;
  transform: translateY(-2px);
  text-shadow: 0 0 12px rgba(139, 92, 246, 0.5);
}

.footer-bottom-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 5px;
  text-align: right;
}

.footer-copy-info {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.55);
}

.footer-cme-note {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.35);
}

@media (max-width: 768px) {
  .andy-footer {
    padding: 60px 24px 40px 24px;
  }
  .footer-horizontal-nav {
    gap: 18px 24px;
  }
  .footer-tripartite-bottom {
    margin-top: 60px;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 20px;
  }
  .footer-bottom-left {
    align-items: center;
  }
  .footer-bottom-right {
    align-items: center;
    text-align: center;
  }
}

/* --- COMPACT LEFT SIDEBAR DRAWER MENU --- */
.fullscreen-menu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.3s ease;
}

.fullscreen-menu-overlay.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* Floating Left "Mini-Page" Sidebar - Compact, Épuré & Vertically Centered */
.menu-sidebar-panel {
  position: absolute;
  top: 50%;
  left: 24px;
  width: 350px;
  max-width: calc(100vw - 48px);
  height: auto;
  background: rgba(10, 11, 16, 0.95);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 20px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.75), 0 0 25px rgba(168, 85, 247, 0.08);
  display: flex;
  flex-direction: column;
  padding: 22px 20px;
  transform: translateY(-50%) translateX(calc(-100% - 40px));
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
}

.fullscreen-menu-overlay.active .menu-sidebar-panel {
  transform: translateY(-50%) translateX(0);
}

.menu-overlay-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.menu-overlay-header span[data-i18n="menu.title"] {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  color: rgba(255, 255, 255, 0.45);
  text-transform: uppercase;
}

.menu-close-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.menu-close-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  color: #ffffff;
  transform: scale(1.05);
}

.menu-overlay-links {
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 100%;
}

.menu-nav-item {
  font-family: var(--font-sans);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 11px 13px;
  border-radius: 12px;
  background: transparent;
  border: 1px solid transparent;
}

.menu-nav-item span.menu-num {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  color: #a855f7;
  opacity: 0.85;
  width: 22px;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.menu-nav-item > span:not(.menu-num) {
  display: inline-flex;
  align-items: center;
  gap: 0.35em;
  line-height: 1.25;
}

.menu-item-arrow {
  display: inline-block;
  font-size: 0.85em;
  color: rgba(255, 255, 255, 0.4);
  transition: all 0.2s ease;
}

.menu-nav-item:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  transform: translateX(4px);
}

.menu-nav-item:hover span.menu-num {
  color: #c084fc;
  opacity: 1;
}

.menu-nav-item:hover .menu-item-arrow {
  color: #ffffff;
  transform: translate(2px, -2px);
}

.menu-overlay-footer {
  display: none !important;
}

@media (max-width: 600px) {
  .menu-sidebar-panel {
    top: 50%;
    left: 12px;
    width: calc(100vw - 24px);
    border-radius: 16px;
    padding: 18px 16px;
    transform: translateY(-50%) translateX(calc(-100% - 24px));
  }
  .fullscreen-menu-overlay.active .menu-sidebar-panel {
    transform: translateY(-50%) translateX(0);
  }
  .menu-nav-item {
    font-size: 0.98rem;
    padding: 10px 12px;
  }
}

/* ============================================================
   GLOBAL IMAGE LIGHTBOX MODAL (EDUCATION & ARTICLE CHARTS)
   ============================================================ */
.nova-lightbox {
  position: fixed;
  inset: 0;
  z-index: 999999;
  background: rgba(4, 4, 7, 0.94);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.25s ease, visibility 0.25s ease;
  user-select: none;
  cursor: zoom-out;
}

.nova-lightbox.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.nova-lightbox-close {
  position: absolute;
  top: 24px;
  right: 28px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #ffffff;
  font-size: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  z-index: 10;
}

.nova-lightbox-close:hover {
  background: #ffffff;
  color: #000000;
  transform: scale(1.08);
}

.nova-lightbox-content {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 96vw;
  max-height: 92vh;
  cursor: default;
}

.nova-lightbox-img {
  max-width: min(94vw, 1600px);
  max-height: 82vh;
  object-fit: contain;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 32px 90px rgba(0, 0, 0, 0.95), 0 0 50px rgba(139, 92, 246, 0.2);
  transform: scale(0.96);
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: zoom-out;
}

.nova-lightbox.active .nova-lightbox-img {
  transform: scale(1);
}

.nova-lightbox-caption-wrap {
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-align: center;
}

.nova-lightbox-caption {
  font-family: var(--font-mono, monospace);
  font-size: 0.88rem;
  font-weight: 600;
  color: #ffffff;
  max-width: 900px;
  line-height: 1.4;
  letter-spacing: -0.01em;
}

.nova-lightbox-hint {
  font-family: var(--font-mono, monospace);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
}

/* Hover cues for zoomable article images */
.article-content img:not(.hud-logo-icon):not(.footer-logo-star),
.article-container img:not(.hud-logo-icon):not(.footer-logo-star),
.image-wrapper img,
.image-wrapper-wide img,
.image-box img {
  cursor: zoom-in;
  transition: transform 0.25s ease, filter 0.25s ease, box-shadow 0.25s ease;
}

.article-content img:not(.hud-logo-icon):not(.footer-logo-star):hover,
.article-container img:not(.hud-logo-icon):not(.footer-logo-star):hover,
.image-wrapper img:hover,
.image-wrapper-wide img:hover,
.image-box img:hover {
  filter: brightness(1.05);
}

/* Video Modal Safeguard (Hidden by default on all pages) */
.nova-video-modal {
  display: none;
}
.nova-video-modal.active {
  display: flex;
}

/* Hide any Netlify Injected Badges & Drawer Widgets */
[data-netlify-badge],
.netlify-badge,
#netlify-badge,
[class*="netlify-badge"],
[id*="netlify-drawer"],
[class*="netlify-drawer"],
iframe[title*="Netlify"],
div[data-netlify-deploy-id] {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

/* Timeline Curriculum Phase Layout & Mobile Responsiveness */
.timeline-wrap {
  position: relative;
  margin-top: 64px;
}

.timeline-phase {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 64px;
  margin-bottom: 120px;
  scroll-margin-top: calc(50vh - 240px);
}

.timeline-phase-info {
  display: flex;
  flex-direction: column;
}

.timeline-phase-tag {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-muted);
  display: block;
  margin-bottom: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.timeline-phase-tag.text-purple {
  color: #c084fc;
}

.timeline-phase-title {
  font-size: 2.5rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
  line-height: 1.15;
  color: #ffffff;
}

.timeline-phase-title.text-purple {
  color: #c084fc;
}

.timeline-phase-desc {
  color: var(--text-muted);
  line-height: 1.65;
  font-size: 0.95rem;
  margin: 0;
}

.timeline-phase-content {
  position: relative;
}

.timeline-phase .glow-card {
  padding: 32px 28px;
  border-radius: 20px;
  background: #090a11;
  border: 1px solid rgba(255, 255, 255, 0.08);
  gap: 12px;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.timeline-phase .glow-card:hover {
  border-color: rgba(168, 85, 247, 0.4);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.6), 0 0 20px rgba(168, 85, 247, 0.12);
  transform: translateY(-2px);
}

.timeline-phase .card-title {
  font-size: 1.3rem;
  font-weight: 800;
  color: #ffffff;
  margin: 0 0 8px 0;
  letter-spacing: -0.015em;
}

.timeline-phase .card-desc {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.55;
  margin: 0;
}

/* Glassmorphic Locker Overlay */
.edu-locker-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at center, rgba(12, 14, 20, 0.78) 0%, rgba(6, 7, 10, 0.95) 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 32px 24px;
  text-align: center;
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}

.edu-card-link-wide {
  grid-column: span 2;
}

/* Community Discord Banner */
.edu-discord-banner {
  margin-top: 48px;
  background: radial-gradient(circle at top left, rgba(88, 101, 242, 0.16) 0%, rgba(12, 14, 20, 0.8) 100%);
  border: 1px solid rgba(88, 101, 242, 0.3);
  border-radius: 20px;
  padding: 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}

/* --- TABLET ADAPTATION (769px to 960px) --- */
@media (max-width: 960px) and (min-width: 769px) {
  .timeline-wrap {
    margin-top: 40px;
  }

  .timeline-phase {
    display: flex;
    flex-direction: column;
    gap: 32px;
    margin-bottom: 80px;
    scroll-margin-top: 80px;
  }

  .timeline-phase-title {
    font-size: 2.2rem;
  }

  .grid-2 {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .timeline-phase .glow-card {
    padding: 26px 22px;
  }
}

/* --- MOBILE PHONE OPTIMIZATION (<= 768px) --- */
@media (max-width: 768px) {
  /* Frosted Glass Mobile HUD Top Bar Shield */
  .hud-layer {
    inset: 0 !important;
    height: 68px !important;
    pointer-events: none !important;
    z-index: 200 !important;
  }

  .hud-layer::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(7, 8, 14, 0.88);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    z-index: -1;
    pointer-events: none;
  }

  .hud-top-left {
    top: 11px !important;
    left: 16px !important;
  }

  .hud-top-center {
    top: 15px !important;
  }

  /* Spacing for Main Containers */
  .section.container {
    padding-top: 105px !important;
    padding-bottom: 16px !important;
  }

  .hero-title {
    font-size: clamp(2.3rem, 8.5vw, 3rem) !important;
    margin-bottom: 14px !important;
  }

  .hero-desc {
    font-size: 0.92rem !important;
    line-height: 1.6 !important;
  }

  .container {
    padding-left: 20px !important;
    padding-right: 20px !important;
  }

  .timeline-wrap {
    margin-top: 36px !important;
  }

  /* Phase Sections with Generous Spacing */
  .timeline-phase {
    display: flex !important;
    flex-direction: column !important;
    gap: 22px !important;
    margin-bottom: 85px !important;
    scroll-margin-top: 85px !important;
  }

  .timeline-phase-tag {
    font-size: 0.72rem !important;
    margin-bottom: 6px !important;
  }

  .timeline-phase-title {
    font-size: 1.8rem !important;
    letter-spacing: -0.02em !important;
    margin-bottom: 8px !important;
    word-break: break-word;
  }

  .timeline-phase-desc {
    font-size: 0.9rem !important;
    line-height: 1.6 !important;
  }

  /* Strict Single Column on Mobile for Cards */
  .grid-2 {
    display: flex !important;
    flex-direction: column !important;
    gap: 16px !important;
    width: 100% !important;
  }

  .grid-2 > *,
  .edu-card-link-wide {
    width: 100% !important;
    grid-column: span 1 !important;
  }

  .timeline-phase .glow-card {
    padding: 24px 20px !important;
    border-radius: 18px !important;
  }

  .timeline-phase .card-title {
    font-size: 1.25rem !important;
    margin-bottom: 6px !important;
  }

  .timeline-phase .card-desc {
    font-size: 0.88rem !important;
    line-height: 1.55 !important;
  }

  /* Compact & Clean Locked Modules (Phases 3 & 4) */
  .timeline-locked-container {
    position: relative !important;
    border-radius: 18px !important;
    overflow: hidden !important;
  }

  .timeline-locked-container .timeline-teaser-grid {
    display: none !important;
  }

  .timeline-locked-container .edu-locker-overlay {
    position: relative !important;
    inset: auto !important;
    min-height: 230px !important;
    padding: 36px 20px !important;
    border-radius: 18px !important;
    background: radial-gradient(circle at center, rgba(18, 20, 30, 0.95) 0%, rgba(8, 9, 14, 0.98) 100%) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
  }

  .timeline-locked-container .edu-locker-overlay h3 {
    font-size: 1.25rem !important;
    margin-bottom: 8px !important;
  }

  .timeline-locked-container .edu-locker-overlay p {
    font-size: 0.88rem !important;
    line-height: 1.55 !important;
    max-width: 320px !important;
  }

  /* Discord Community Banner Separation */
  #phase4 {
    margin-bottom: 50px !important;
  }

  .edu-discord-banner {
    margin-top: 0 !important;
    margin-bottom: 80px !important;
    padding: 32px 22px !important;
    gap: 22px !important;
    border-radius: 18px !important;
    flex-direction: column !important;
    align-items: flex-start !important;
  }

  .edu-discord-banner > div {
    margin-bottom: 6px !important;
  }

  .edu-discord-banner h3 {
    font-size: 1.45rem !important;
    margin-bottom: 10px !important;
  }

  .edu-discord-banner p {
    font-size: 0.9rem !important;
    line-height: 1.6 !important;
    margin-bottom: 6px !important;
  }

  .edu-discord-banner .hud-cta-discord {
    width: 100% !important;
    text-align: center !important;
    display: block !important;
    padding: 16px 24px !important;
    font-size: 0.88rem !important;
    box-sizing: border-box !important;
  }
}







