/**
 * MilestoneLoom — Commercial Landing Page Stylesheet
 * Brand System v2.0.0 (High-Craft Silicon Valley Edition)
 * milestoneloom.com
 */

/* ==========================================================================
   1. DESIGN TOKENS & SYSTEM VARIABLES
   ========================================================================== */
:root {
  /* Obsidian Loom (Dark Mode - Default) */
  --loom-bg: #06070b;
  --loom-bg-radial: radial-gradient(ellipse 80% 60% at 50% -15%, rgba(99, 102, 241, 0.18), transparent 75%);
  --loom-surface-1: #0d0f17;
  --loom-surface-2: #141724;
  --loom-surface-3: #1c2136;
  --loom-surface-glass: rgba(13, 15, 23, 0.72);

  --loom-border-subtle: rgba(255, 255, 255, 0.08);
  --loom-border-strong: rgba(255, 255, 255, 0.16);
  --loom-border-highlight: rgba(255, 255, 255, 0.24);
  --loom-border-accent: rgba(99, 102, 241, 0.45);

  --loom-text-primary: #f8fafc;
  --loom-text-secondary: #94a3b8;
  --loom-text-muted: #64748b;

  --loom-indigo: #6366f1;
  --loom-indigo-glow: rgba(99, 102, 241, 0.35);
  --loom-cyan: #06b6d4;
  --loom-cyan-glow: rgba(6, 182, 212, 0.35);
  --loom-emerald: #10b981;
  --loom-emerald-glow: rgba(16, 185, 129, 0.35);
  --loom-amber: #f59e0b;
  --loom-ruby: #ef4444;
  --loom-ruby-glow: rgba(239, 68, 68, 0.25);

  /* Gradients */
  --loom-gradient-primary: linear-gradient(135deg, #6366f1 0%, #06b6d4 50%, #10b981 100%);
  --loom-gradient-indigo-cyan: linear-gradient(135deg, #6366f1 0%, #06b6d4 100%);
  --loom-gradient-shimmer: linear-gradient(90deg, #f8fafc 0%, #6366f1 25%, #06b6d4 50%, #10b981 75%, #f8fafc 100%);
  --loom-gradient-subtle: linear-gradient(180deg, rgba(99, 102, 241, 0.08) 0%, rgba(6, 182, 212, 0.02) 100%);
  --loom-gradient-border: linear-gradient(135deg, rgba(99, 102, 241, 0.6) 0%, rgba(6, 182, 212, 0.4) 50%, rgba(16, 185, 129, 0.6) 100%);
  --loom-gradient-surface: linear-gradient(180deg, #10131f 0%, #0b0c13 100%);
  --loom-gradient-glow: radial-gradient(circle, rgba(99, 102, 241, 0.22) 0%, transparent 70%);

  /* Shadows & Volumetric Glows */
  --loom-shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.6);
  --loom-shadow-md: 0 4px 18px rgba(0, 0, 0, 0.8), 0 0 1px rgba(255, 255, 255, 0.12);
  --loom-shadow-lg: 0 16px 40px -10px rgba(0, 0, 0, 0.9), 0 0 30px rgba(99, 102, 241, 0.15);
  --loom-shadow-glass: 0 20px 48px -12px rgba(0, 0, 0, 0.85), inset 0 1px 0 rgba(255, 255, 255, 0.12);
  --loom-shadow-glow: 0 0 45px -5px var(--loom-indigo-glow);
  --loom-shadow-milestone: 0 0 35px -5px var(--loom-emerald-glow);

  /* Typography */
  --font-display: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;

  /* Transitions */
  --loom-ease-spring: cubic-bezier(0.16, 1, 0.3, 1);
  --loom-ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);
  --loom-duration-fast: 150ms;
  --loom-duration-base: 250ms;
  --loom-duration-slow: 450ms;

  /* Layout */
  --header-height: 72px;
  --container-max: 1260px;
}

/* Architectural Blueprint (Light Mode) */
[data-theme='light'] {
  --loom-bg: #f8fafc;
  --loom-bg-radial: radial-gradient(ellipse 80% 60% at 50% -15%, rgba(79, 70, 229, 0.12), transparent 75%);
  --loom-surface-1: #ffffff;
  --loom-surface-2: #f1f5f9;
  --loom-surface-3: #e2e8f0;
  --loom-surface-glass: rgba(255, 255, 255, 0.85);

  --loom-border-subtle: rgba(15, 23, 42, 0.08);
  --loom-border-strong: rgba(15, 23, 42, 0.16);
  --loom-border-highlight: rgba(15, 23, 42, 0.28);
  --loom-border-accent: rgba(79, 70, 229, 0.45);

  --loom-text-primary: #0f172a;
  --loom-text-secondary: #334155;
  --loom-text-muted: #64748b;

  --loom-indigo: #4f46e5;
  --loom-indigo-glow: rgba(79, 70, 229, 0.2);
  --loom-cyan: #0891b2;
  --loom-cyan-glow: rgba(8, 145, 178, 0.2);
  --loom-emerald: #059669;
  --loom-emerald-glow: rgba(5, 150, 105, 0.2);
  --loom-amber: #d97706;
  --loom-ruby: #dc2626;
  --loom-ruby-glow: rgba(220, 38, 38, 0.16);

  --loom-gradient-primary: linear-gradient(135deg, #4f46e5 0%, #0891b2 50%, #059669 100%);
  --loom-gradient-indigo-cyan: linear-gradient(135deg, #4f46e5 0%, #0891b2 100%);
  --loom-gradient-shimmer: linear-gradient(90deg, #0f172a 0%, #4f46e5 25%, #0891b2 50%, #059669 75%, #0f172a 100%);
  --loom-gradient-subtle: linear-gradient(180deg, rgba(79, 70, 229, 0.05) 0%, rgba(8, 145, 178, 0.02) 100%);
  --loom-gradient-border: linear-gradient(135deg, rgba(79, 70, 229, 0.4) 0%, rgba(8, 145, 178, 0.3) 50%, rgba(5, 150, 105, 0.4) 100%);
  --loom-gradient-surface: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  --loom-gradient-glow: radial-gradient(circle, rgba(79, 70, 229, 0.14) 0%, transparent 70%);

  --loom-shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.06);
  --loom-shadow-md: 0 4px 18px rgba(15, 23, 42, 0.08), 0 0 1px rgba(15, 23, 42, 0.12);
  --loom-shadow-lg: 0 16px 40px -10px rgba(15, 23, 42, 0.12), 0 0 25px rgba(79, 70, 229, 0.08);
  --loom-shadow-glass: 0 20px 48px -12px rgba(15, 23, 42, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.9);
  --loom-shadow-glow: 0 0 35px -4px var(--loom-indigo-glow);
  --loom-shadow-milestone: 0 0 30px -4px var(--loom-emerald-glow);
}

/* ==========================================================================
   2. RESET & BASE ELEMENTS
   ========================================================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  accent-color: var(--loom-indigo);
}

body {
  background-color: var(--loom-bg);
  background-image: 
    radial-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(99, 102, 241, 0.04), transparent 800px);
  background-size: 32px 32px, 100% 100%;
  background-position: 0 0, 0 0;
  color: var(--loom-text-primary);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
  transition: background-color var(--loom-duration-slow) ease, color var(--loom-duration-slow) ease;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  position: relative;
}

[data-theme='light'] body {
  background-image: 
    radial-gradient(rgba(15, 23, 42, 0.06) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(79, 70, 229, 0.03), transparent 800px);
}

/* Global Ambient Mesh Glow Cones */
body::before {
  content: '';
  position: fixed;
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
  width: 1100px;
  height: 600px;
  background: radial-gradient(ellipse at center, rgba(99, 102, 241, 0.16) 0%, rgba(6, 182, 212, 0.08) 45%, transparent 70%);
  filter: blur(100px);
  pointer-events: none;
  z-index: 0;
}
[data-theme='light'] body::before {
  background: radial-gradient(ellipse at center, rgba(79, 70, 229, 0.12) 0%, rgba(8, 145, 178, 0.06) 45%, transparent 70%);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--loom-bg);
}
::-webkit-scrollbar-thumb {
  background: var(--loom-surface-3);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--loom-indigo);
}

::selection {
  background: var(--loom-indigo);
  color: #ffffff;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

input, select {
  font-family: inherit;
  color: inherit;
}

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

/* ==========================================================================
   3. TYPOGRAPHY & UTILITY CLASSES
   ========================================================================== */
.font-display { font-family: var(--font-display); }
.font-mono { font-family: var(--font-mono); font-feature-settings: 'tnum' on, 'zero' on; }
.font-body { font-family: var(--font-body); }

.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.text-gradient {
  background: var(--loom-gradient-primary);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: text-shine 8s linear infinite;
}

.text-gradient-cyan {
  background: linear-gradient(135deg, var(--loom-cyan) 0%, var(--loom-emerald) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

@keyframes text-shine {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-mono);
  font-size: 0.785rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--loom-cyan);
  padding: 0.4rem 0.95rem;
  border-radius: 9999px;
  background: rgba(6, 182, 212, 0.08);
  border: 1px solid rgba(6, 182, 212, 0.28);
  box-shadow: 0 0 16px rgba(6, 182, 212, 0.12);
  margin-bottom: 1.25rem;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2.15rem, 4.2vw, 3.25rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.035em;
  color: var(--loom-text-primary);
  margin-bottom: 1rem;
}

.section-subtitle {
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
  color: var(--loom-text-secondary);
  max-width: 65ch;
  line-height: 1.65;
}

.text-center { text-align: center; }
.mx-auto { margin-left: auto; margin-right: auto; }

/* Status Beacon */
.status-beacon {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--loom-emerald);
  position: relative;
  box-shadow: 0 0 8px var(--loom-emerald);
}
.status-beacon::after {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  background-color: var(--loom-emerald);
  opacity: 0.6;
  animation: beacon-pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}
@keyframes beacon-pulse {
  0% { transform: scale(0.9); opacity: 0.8; }
  50% { transform: scale(1.8); opacity: 0.1; }
  100% { transform: scale(0.9); opacity: 0.8; }
}

/* ==========================================================================
   4. BUTTONS & INTERACTIVE ELEMENTS
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  padding: 0.85rem 1.6rem;
  border-radius: 12px;
  font-family: var(--font-display);
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  transition: all var(--loom-duration-base) var(--loom-ease-spring);
  text-decoration: none;
  position: relative;
  overflow: hidden;
  white-space: nowrap;
  user-select: none;
}

.btn-primary {
  background: var(--loom-gradient-primary);
  background-size: 180% auto;
  color: #ffffff;
  box-shadow: 0 4px 20px rgba(99, 102, 241, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.15);
}
.btn-primary:hover {
  transform: translateY(-2px);
  background-position: right center;
  box-shadow: 0 8px 30px rgba(99, 102, 241, 0.55), 0 0 20px rgba(6, 182, 212, 0.35);
}
.btn-primary:active {
  transform: translateY(0);
}

.btn-secondary {
  background: var(--loom-surface-glass);
  color: var(--loom-text-primary);
  border: 1px solid var(--loom-border-strong);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--loom-shadow-sm), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}
.btn-secondary:hover {
  background: var(--loom-surface-3);
  border-color: var(--loom-border-accent);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35), 0 0 15px rgba(99, 102, 241, 0.2);
}

.btn-subtle {
  background: transparent;
  color: var(--loom-text-secondary);
  border: 1px solid var(--loom-border-subtle);
}
.btn-subtle:hover {
  color: var(--loom-text-primary);
  background: var(--loom-surface-2);
  border-color: var(--loom-border-strong);
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.8125rem;
  border-radius: 9px;
}

.btn-lg {
  padding: 1.05rem 2rem;
  font-size: 1.05rem;
  border-radius: 14px;
}

/* Border Beam Effect */
.border-beam-container {
  position: relative;
  border-radius: 18px;
  background: var(--loom-surface-1);
  overflow: hidden;
  border: 1px solid var(--loom-border-subtle);
  transition: transform var(--loom-duration-base) var(--loom-ease-spring),
              box-shadow var(--loom-duration-base) var(--loom-ease-spring);
}
.border-beam-container::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: conic-gradient(
    transparent 0deg,
    transparent 270deg,
    var(--loom-indigo) 310deg,
    var(--loom-cyan) 345deg,
    var(--loom-emerald) 360deg
  );
  animation: loom-spin-beam 5s linear infinite;
  z-index: 0;
  pointer-events: none;
}
.border-beam-container::after {
  content: '';
  position: absolute;
  inset: 1px;
  background: var(--loom-surface-1);
  border-radius: 17px;
  z-index: 1;
}
.border-beam-container > * {
  position: relative;
  z-index: 2;
}
@keyframes loom-spin-beam {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* Spotlight Card Effect */
.loom-spotlight-card {
  position: relative;
  background-color: var(--loom-surface-glass);
  border-radius: 18px;
  border: 1px solid var(--loom-border-subtle);
  box-shadow: var(--loom-shadow-glass);
  overflow: hidden;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: border-color var(--loom-duration-base) ease,
              transform var(--loom-duration-base) var(--loom-ease-spring),
              box-shadow var(--loom-duration-base) ease;
}
.loom-spotlight-card:hover {
  border-color: var(--loom-border-accent);
  box-shadow: var(--loom-shadow-lg), 0 0 25px rgba(99, 102, 241, 0.14);
}
.loom-spotlight-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(
    650px circle at var(--mouse-x, -1000px) var(--mouse-y, -1000px),
    rgba(99, 102, 241, 0.14),
    transparent 45%
  );
  z-index: 1;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.loom-spotlight-card:hover::before {
  opacity: 1;
}
.loom-spotlight-card > * {
  position: relative;
  z-index: 2;
}

/* ==========================================================================
   5. NAVIGATION BAR
   ========================================================================== */
.header-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 0.85rem 1.5rem;
  background: rgba(6, 7, 11, 0.75);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border-bottom: 1px solid var(--loom-border-subtle);
  transition: background-color var(--loom-duration-base) ease, padding var(--loom-duration-base) ease, box-shadow var(--loom-duration-base) ease;
}
[data-theme='light'] .header-nav {
  background: rgba(248, 250, 252, 0.82);
}
.header-nav.scrolled {
  background: rgba(6, 7, 11, 0.94);
  padding: 0.65rem 1.5rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
}
[data-theme='light'] .header-nav.scrolled {
  background: rgba(248, 250, 252, 0.94);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
}

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

/* Brand Logo */
.brand-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  text-decoration: none;
  user-select: none;
  transition: transform var(--loom-duration-fast) ease;
}
.brand-logo:hover {
  transform: scale(1.02);
}
.brand-logo-icon {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  filter: drop-shadow(0 0 10px rgba(99, 102, 241, 0.4));
}
.brand-logo-text {
  display: flex;
  flex-direction: column;
}
.brand-logo-name {
  font-family: var(--font-display);
  font-size: 1.4rem;
  letter-spacing: -0.035em;
  line-height: 1.1;
  display: flex;
  align-items: baseline;
}
.brand-logo-name .word-milestone {
  font-weight: 600;
  color: var(--loom-text-primary);
}
.brand-logo-name .word-loom {
  font-weight: 800;
  background: var(--loom-gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-left: 2px;
}
.brand-logo-sub {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--loom-text-muted);
  margin-top: 1px;
}

/* Nav Menu Links */
.nav-menu {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 1.5rem;
}
.nav-link {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--loom-text-secondary);
  transition: color var(--loom-duration-fast) ease;
  position: relative;
  padding: 0.25rem 0;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--loom-gradient-indigo-cyan);
  transition: width var(--loom-duration-base) ease;
  border-radius: 2px;
}
.nav-link:hover {
  color: var(--loom-text-primary);
}
.nav-link:hover::after {
  width: 100%;
}

/* Slot Badge */
.slot-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--loom-emerald);
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.3);
  box-shadow: 0 0 12px rgba(16, 185, 129, 0.15);
  padding: 0.35rem 0.75rem;
  border-radius: 9999px;
  white-space: nowrap;
}

/* Controls */
.nav-controls {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* Lang Switcher */
.lang-switcher {
  display: inline-flex;
  background: var(--loom-surface-2);
  border: 1px solid var(--loom-border-strong);
  border-radius: 9px;
  padding: 3px;
}
.lang-btn {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.6rem;
  border-radius: 6px;
  color: var(--loom-text-muted);
  transition: all var(--loom-duration-fast) ease;
}
.lang-btn:hover {
  color: var(--loom-text-primary);
}
.lang-btn.active {
  background: var(--loom-indigo);
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(99, 102, 241, 0.4);
}

/* Theme Toggle */
.theme-toggle-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 9px;
  background: var(--loom-surface-2);
  border: 1px solid var(--loom-border-strong);
  color: var(--loom-text-primary);
  font-size: 1.05rem;
  transition: all var(--loom-duration-fast) ease;
}
.theme-toggle-btn:hover {
  background: var(--loom-surface-3);
  border-color: var(--loom-border-highlight);
  transform: rotate(15deg);
}

/* Mobile Hamburger */
.mobile-menu-toggle {
  display: none;
  width: 38px;
  height: 38px;
  border-radius: 9px;
  background: var(--loom-surface-2);
  border: 1px solid var(--loom-border-strong);
  color: var(--loom-text-primary);
  align-items: center;
  justify-content: center;
}

/* ==========================================================================
   6. HERO SECTION & CANVAS
   ========================================================================== */
.hero-section {
  position: relative;
  min-height: 100vh;
  padding-top: calc(var(--header-height) + 4rem);
  padding-bottom: 6rem;
  display: flex;
  align-items: center;
  overflow: hidden;
}

/* The Neural Loom Canvas Background */
.canvas-wrapper {
  position: absolute;
  inset: 0;
  pointer-events: auto;
  z-index: 0;
  overflow: hidden;
}
#neural-loom-canvas {
  width: 100%;
  height: 100%;
  display: block;
}

.hero-content {
  position: relative;
  z-index: 10;
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 3.5rem;
  align-items: center;
  width: 100%;
}

.hero-text {
  max-width: 650px;
}

/* Hero Badge with Border Beam */
.hero-border-beam-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.45rem 1.15rem;
  margin-bottom: 1.75rem;
  font-family: var(--font-mono);
  font-size: 0.785rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--loom-text-primary);
  box-shadow: 0 0 20px rgba(99, 102, 241, 0.2);
}
.hero-border-beam-badge .badge-icon {
  color: var(--loom-cyan);
  animation: pulse-spin 4s linear infinite;
}
@keyframes pulse-spin {
  0% { transform: scale(1); }
  50% { transform: scale(1.25) rotate(180deg); }
  100% { transform: scale(1) rotate(360deg); }
}

.hero-headline {
  font-family: var(--font-display);
  font-size: clamp(2.65rem, 5.2vw, 4.45rem);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -0.04em;
  margin-bottom: 1.5rem;
  text-shadow: 0 4px 30px rgba(0, 0, 0, 0.4);
}

.hero-description {
  font-size: clamp(1.05rem, 1.8vw, 1.25rem);
  color: var(--loom-text-secondary);
  line-height: 1.65;
  margin-bottom: 2.25rem;
  max-width: 55ch;
}

.hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.15rem;
  margin-bottom: 2.5rem;
}

/* Telemetry Mini Bar */
.hero-telemetry-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.25rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--loom-border-subtle);
  font-family: var(--font-mono);
  font-size: 0.8125rem;
}
.telemetry-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--loom-surface-glass);
  padding: 0.35rem 0.75rem;
  border-radius: 8px;
  border: 1px solid var(--loom-border-subtle);
  backdrop-filter: blur(8px);
}
.telemetry-item strong {
  color: var(--loom-text-primary);
  font-weight: 700;
}

/* ==========================================================================
   7. LIVE MILESTONE LOOM SIMULATOR (IN HERO)
   ========================================================================== */
.hero-simulator-wrapper {
  position: relative;
  z-index: 10;
}

.simulator-card {
  background: var(--loom-surface-glass);
  border: 1px solid var(--loom-border-highlight);
  border-radius: 22px;
  padding: 1.85rem;
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.95), 0 0 35px rgba(99, 102, 241, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  position: relative;
  overflow: hidden;
}
.simulator-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--loom-gradient-primary);
  box-shadow: 0 0 15px var(--loom-cyan);
}

.simulator-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.35rem;
  padding-bottom: 1.1rem;
  border-bottom: 1px solid var(--loom-border-subtle);
}
.window-controls {
  display: flex;
  align-items: center;
  gap: 7px;
}
.control-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
  transition: transform 0.2s ease;
}
.control-dot:hover {
  transform: scale(1.2);
}
.dot-red { background: #ef4444; box-shadow: 0 0 8px rgba(239, 68, 68, 0.6); }
.dot-yellow { background: #f59e0b; box-shadow: 0 0 8px rgba(245, 158, 11, 0.6); }
.dot-green { background: #10b981; box-shadow: 0 0 8px rgba(16, 185, 129, 0.6); }
.simulator-title-group {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}
.simulator-live-tag {
  font-family: var(--font-mono);
  font-size: 0.725rem;
  font-weight: 800;
  color: var(--loom-emerald);
  background: rgba(16, 185, 129, 0.14);
  border: 1px solid rgba(16, 185, 129, 0.35);
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.2);
  padding: 0.25rem 0.6rem;
  border-radius: 5px;
  letter-spacing: 0.08em;
}

/* Archetype Selector Tabs */
.archetype-tabs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.5rem;
  margin-bottom: 1.35rem;
  background: var(--loom-surface-2);
  padding: 4px;
  border-radius: 12px;
  border: 1px solid var(--loom-border-subtle);
}
.archetype-btn {
  padding: 0.65rem 0.45rem;
  font-size: 0.785rem;
  font-weight: 700;
  border-radius: 9px;
  background: transparent;
  border: 1px solid transparent;
  color: var(--loom-text-secondary);
  transition: all var(--loom-duration-fast) ease;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.archetype-btn:hover {
  color: var(--loom-text-primary);
  background: rgba(255, 255, 255, 0.04);
}
.archetype-btn.active {
  background: var(--loom-indigo);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: 0 4px 15px rgba(99, 102, 241, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

/* Architecture Flow Preview */
.arch-diagram-flow {
  background: var(--loom-surface-2);
  border: 1px solid var(--loom-border-strong);
  border-radius: 14px;
  padding: 1.15rem;
  margin-bottom: 1.35rem;
  position: relative;
}
.arch-nodes-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.6rem;
  position: relative;
  z-index: 2;
}
.arch-node-box {
  background: var(--loom-surface-1);
  border: 1px solid var(--loom-border-subtle);
  border-radius: 10px;
  padding: 0.75rem 0.5rem;
  text-align: center;
  transition: all 0.3s ease;
  position: relative;
  box-shadow: var(--loom-shadow-sm);
}
.arch-node-box.active {
  border-color: var(--loom-cyan);
  box-shadow: 0 0 16px rgba(6, 182, 212, 0.25), inset 0 1px 0 rgba(6, 182, 212, 0.2);
  transform: translateY(-2px);
}
.arch-node-icon {
  font-size: 1.25rem;
  margin-bottom: 0.35rem;
  filter: drop-shadow(0 0 6px rgba(6, 182, 212, 0.3));
}
.arch-node-name {
  font-family: var(--font-mono);
  font-size: 0.725rem;
  font-weight: 700;
  color: var(--loom-text-primary);
  margin-bottom: 0.2rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.arch-node-tech {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--loom-text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Connecting Light Beams between nodes */
.arch-flow-connector {
  position: absolute;
  top: 50%;
  left: 5%;
  right: 5%;
  height: 2px;
  background: linear-gradient(90deg, var(--loom-indigo), var(--loom-cyan), var(--loom-emerald));
  z-index: 1;
  opacity: 0.6;
  transform: translateY(-50%);
  box-shadow: 0 0 8px var(--loom-cyan);
}

/* Simulator Metrics Bar */
.simulator-metrics-bar {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
  margin-bottom: 1.35rem;
}
.metric-box {
  background: var(--loom-surface-2);
  border: 1px solid var(--loom-border-subtle);
  border-radius: 12px;
  padding: 0.85rem 1.15rem;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}
.metric-label {
  font-family: var(--font-mono);
  font-size: 0.725rem;
  color: var(--loom-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.35rem;
  font-weight: 600;
}
.metric-value {
  font-family: var(--font-display);
  font-size: 1.65rem;
  font-weight: 800;
  color: var(--loom-text-primary);
  letter-spacing: -0.02em;
}
.metric-value.highlight-emerald {
  color: var(--loom-emerald);
  text-shadow: 0 0 20px rgba(16, 185, 129, 0.35);
}

/* 3-Milestone Progress Bar */
.milestone-progress-tracker {
  margin-bottom: 1.35rem;
  background: var(--loom-surface-2);
  border: 1px solid var(--loom-border-subtle);
  border-radius: 14px;
  padding: 1rem;
}
.progress-header {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 0.775rem;
  color: var(--loom-text-secondary);
  margin-bottom: 0.6rem;
  font-weight: 600;
}
.progress-bar-container {
  display: flex;
  height: 10px;
  border-radius: 9999px;
  background: var(--loom-surface-3);
  overflow: hidden;
  gap: 3px;
  margin-bottom: 0.75rem;
  padding: 2px;
}
.progress-segment {
  height: 100%;
  border-radius: 9999px;
  transition: width 0.4s ease;
  position: relative;
}
.progress-segment.m1 { 
  background: var(--loom-indigo); 
  box-shadow: 0 0 10px rgba(99, 102, 241, 0.6);
}
.progress-segment.m2 { 
  background: var(--loom-cyan); 
  box-shadow: 0 0 10px rgba(6, 182, 212, 0.6);
}
.progress-segment.m3 { 
  background: var(--loom-emerald); 
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.6);
}

.milestone-tags-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
}
.milestone-tag {
  background: var(--loom-surface-1);
  border: 1px solid var(--loom-border-subtle);
  border-radius: 8px;
  padding: 0.45rem 0.5rem;
  text-align: center;
  color: var(--loom-text-secondary);
}
.milestone-tag strong {
  color: var(--loom-text-primary);
  display: block;
  font-size: 0.85rem;
  margin-top: 2px;
}

.simulator-footer-cta {
  display: flex;
  gap: 0.85rem;
}
.simulator-footer-cta .btn {
  flex: 1;
}

/* ==========================================================================
   8. THE PROBLEM SECTION & BURN-RATE CALCULATOR
   ========================================================================== */
.problem-section {
  padding: 7rem 0;
  position: relative;
  border-top: 1px solid var(--loom-border-subtle);
  border-bottom: 1px solid var(--loom-border-subtle);
}

.calc-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 2.75rem;
  margin-top: 4rem;
  align-items: stretch;
}

.calc-controls-panel {
  background: var(--loom-surface-glass);
  border: 1px solid var(--loom-border-strong);
  border-radius: 22px;
  padding: 2.25rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  box-shadow: var(--loom-shadow-glass);
}

.slider-group {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.slider-label-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--loom-text-primary);
}
.slider-current-val {
  font-family: var(--font-mono);
  font-weight: 800;
  color: var(--loom-cyan);
  font-size: 1.15rem;
  background: rgba(6, 182, 212, 0.12);
  padding: 0.2rem 0.65rem;
  border-radius: 6px;
  border: 1px solid rgba(6, 182, 212, 0.25);
}

/* Custom Range Slider */
input[type="range"] {
  -webkit-appearance: none;
  width: 100%;
  height: 8px;
  border-radius: 6px;
  background: var(--loom-surface-3);
  outline: none;
  transition: background 0.2s ease;
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--loom-indigo);
  border: 2px solid #ffffff;
  cursor: pointer;
  box-shadow: 0 0 14px rgba(99, 102, 241, 0.8);
  transition: transform 0.15s ease, background 0.15s ease;
}
input[type="range"]::-webkit-slider-thumb:hover {
  transform: scale(1.25);
  background: var(--loom-cyan);
}

/* Comparison Results Panel */
.calc-results-panel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.75rem;
}

.burn-card {
  background: var(--loom-surface-glass);
  border-radius: 22px;
  padding: 2.25rem 2rem;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: all var(--loom-duration-base) ease;
}
.burn-card.traditional {
  border: 1px solid rgba(239, 68, 68, 0.35);
  background: linear-gradient(180deg, rgba(239, 68, 68, 0.08) 0%, var(--loom-surface-1) 100%);
  box-shadow: 0 10px 30px rgba(239, 68, 68, 0.1);
}
.burn-card.milestoneloom {
  border: 1px solid rgba(16, 185, 129, 0.45);
  background: linear-gradient(180deg, rgba(16, 185, 129, 0.08) 0%, var(--loom-surface-1) 100%);
  box-shadow: 0 16px 40px rgba(16, 185, 129, 0.18), inset 0 1px 0 rgba(16, 185, 129, 0.3);
}

.burn-card-tag {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  padding: 0.35rem 0.75rem;
  border-radius: 6px;
  display: inline-block;
  margin-bottom: 1.35rem;
  width: fit-content;
}
.traditional .burn-card-tag {
  background: rgba(239, 68, 68, 0.16);
  color: var(--loom-ruby);
  border: 1px solid rgba(239, 68, 68, 0.3);
}
.milestoneloom .burn-card-tag {
  background: rgba(16, 185, 129, 0.16);
  color: var(--loom-emerald);
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.burn-card-price {
  font-family: var(--font-display);
  font-size: 2.65rem;
  font-weight: 800;
  margin-bottom: 0.4rem;
  letter-spacing: -0.03em;
  line-height: 1;
}
.traditional .burn-card-price { 
  color: var(--loom-ruby); 
  text-shadow: 0 0 20px rgba(239, 68, 68, 0.3);
}
.milestoneloom .burn-card-price { 
  color: var(--loom-emerald); 
  text-shadow: 0 0 20px rgba(16, 185, 129, 0.35);
}

.burn-card-subtitle {
  font-size: 0.875rem;
  color: var(--loom-text-muted);
  margin-bottom: 1.85rem;
  font-weight: 500;
}

.burn-features-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.95rem;
  margin-bottom: 1.75rem;
  flex: 1;
}
.burn-features-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.9rem;
  color: var(--loom-text-secondary);
  line-height: 1.45;
}
.burn-features-list li .icon {
  flex-shrink: 0;
  font-weight: 800;
  font-size: 1rem;
}
.traditional .burn-features-list li .icon { color: var(--loom-ruby); }
.milestoneloom .burn-features-list li .icon { color: var(--loom-emerald); }

.savings-banner {
  grid-column: 1 / -1;
  background: var(--loom-surface-glass);
  border: 1px solid rgba(16, 185, 129, 0.4);
  border-radius: 16px;
  padding: 1.35rem 1.85rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  box-shadow: 0 10px 30px rgba(16, 185, 129, 0.15), inset 0 1px 0 rgba(16, 185, 129, 0.2);
}
.savings-info {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.savings-amount {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--loom-emerald);
  text-shadow: 0 0 20px rgba(16, 185, 129, 0.4);
  letter-spacing: -0.02em;
}

/* ==========================================================================
   9. THE 4-PILLAR MOAT (BENTO SPOTLIGHT GRID)
   ========================================================================== */
.moat-section {
  padding: 7rem 0;
  position: relative;
}

.bento-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1.75rem;
  margin-top: 4rem;
}

.bento-card {
  padding: 2.5rem;
  border-radius: 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid var(--loom-border-strong);
  background: var(--loom-surface-glass);
}
.bento-card-8 { grid-column: span 8; }
.bento-card-4 { grid-column: span 4; }
.bento-card-6 { grid-column: span 6; }

.bento-card-header {
  margin-bottom: 1.75rem;
}
.bento-icon-wrapper {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--loom-surface-2);
  border: 1px solid var(--loom-border-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.35rem;
  color: var(--loom-cyan);
  font-size: 1.5rem;
  box-shadow: 0 0 16px rgba(6, 182, 212, 0.2);
}
.bento-card-title {
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 800;
  margin-bottom: 0.65rem;
  color: var(--loom-text-primary);
  letter-spacing: -0.02em;
}
.bento-card-desc {
  font-size: 0.975rem;
  color: var(--loom-text-secondary);
  line-height: 1.65;
}

/* Bento Visual Previews */
.bento-visual-code {
  background: var(--loom-surface-2);
  border: 1px solid var(--loom-border-subtle);
  border-radius: 12px;
  padding: 1.25rem;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: var(--loom-text-muted);
  overflow-x: auto;
  margin-top: 1.75rem;
  line-height: 1.6;
  box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.4);
}
.bento-visual-code .token-kw { color: var(--loom-indigo); font-weight: 700; }
.bento-visual-code .token-fn { color: var(--loom-cyan); font-weight: 600; }
.bento-visual-code .token-str { color: var(--loom-emerald); }

.bento-visual-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 1.75rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--loom-border-subtle);
}
.stat-pill strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--loom-text-primary);
  letter-spacing: -0.02em;
}
.stat-pill span {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--loom-text-muted);
  font-weight: 600;
}

/* ==========================================================================
   10. THE 3-MILESTONE FRAMEWORK (INTERACTIVE STEPPER)
   ========================================================================== */
.framework-section {
  padding: 7rem 0;
  border-top: 1px solid var(--loom-border-subtle);
  border-bottom: 1px solid var(--loom-border-subtle);
}

.framework-stepper {
  margin-top: 4rem;
}

/* Step Tabs */
.stepper-nav {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-bottom: 2.25rem;
}
.step-nav-btn {
  background: var(--loom-surface-glass);
  border: 1px solid var(--loom-border-subtle);
  border-radius: 16px;
  padding: 1.35rem 1.6rem;
  text-align: left;
  transition: all var(--loom-duration-base) var(--loom-ease-spring);
  position: relative;
  overflow: hidden;
  box-shadow: var(--loom-shadow-sm);
}
.step-nav-btn:hover {
  background: var(--loom-surface-3);
  border-color: var(--loom-border-highlight);
  transform: translateY(-2px);
}
.step-nav-btn.active {
  background: var(--loom-surface-2);
  border-color: var(--loom-indigo);
  box-shadow: 0 12px 30px rgba(99, 102, 241, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.15);
}
.step-nav-btn.active::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--loom-gradient-primary);
}

.step-num-badge {
  font-family: var(--font-mono);
  font-size: 0.775rem;
  font-weight: 800;
  color: var(--loom-cyan);
  margin-bottom: 0.4rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.step-nav-title {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--loom-text-primary);
  margin-bottom: 0.35rem;
  letter-spacing: -0.01em;
}
.step-nav-pct {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: var(--loom-emerald);
  font-weight: 700;
}

/* Active Step Details Card */
.step-detail-card {
  background: var(--loom-surface-glass);
  border: 1px solid var(--loom-border-strong);
  border-radius: 22px;
  padding: 2.75rem;
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 2.75rem;
  align-items: center;
  box-shadow: var(--loom-shadow-glass);
}

.step-info-col h3 {
  font-family: var(--font-display);
  font-size: 1.85rem;
  font-weight: 800;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}
.step-info-col p {
  font-size: 1.05rem;
  color: var(--loom-text-secondary);
  line-height: 1.65;
  margin-bottom: 1.75rem;
}

.deliverables-checklist {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.95rem;
}
.deliverables-checklist li {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  font-size: 0.95rem;
  color: var(--loom-text-primary);
}
.deliverables-checklist li svg {
  color: var(--loom-emerald);
  flex-shrink: 0;
  margin-top: 3px;
  filter: drop-shadow(0 0 6px rgba(16, 185, 129, 0.4));
}

/* Sign-off Gate Box */
.step-gate-box {
  background: var(--loom-surface-2);
  border: 1px solid var(--loom-border-strong);
  border-radius: 18px;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.35rem;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}
.gate-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.825rem;
  font-weight: 800;
  color: var(--loom-emerald);
  letter-spacing: 0.05em;
}
.gate-desc {
  font-size: 0.925rem;
  color: var(--loom-text-secondary);
  line-height: 1.6;
}
.gate-audit-metric {
  padding: 0.85rem 1.15rem;
  background: var(--loom-surface-1);
  border-radius: 10px;
  border: 1px solid var(--loom-border-subtle);
  font-family: var(--font-mono);
  font-size: 0.785rem;
  color: var(--loom-text-muted);
}
.gate-audit-metric strong {
  color: var(--loom-text-primary);
}

/* ==========================================================================
   11. PRICING TIERS SECTION
   ========================================================================== */
.pricing-section {
  padding: 7rem 0;
  position: relative;
}

.pricing-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 2rem;
  margin-bottom: 4rem;
}

.pricing-toggle-pill {
  display: inline-flex;
  align-items: center;
  background: var(--loom-surface-2);
  border: 1px solid var(--loom-border-strong);
  border-radius: 9999px;
  padding: 5px;
}
.pricing-toggle-btn {
  padding: 0.55rem 1.4rem;
  font-size: 0.875rem;
  font-weight: 700;
  border-radius: 9999px;
  color: var(--loom-text-secondary);
  transition: all var(--loom-duration-fast) ease;
}
.pricing-toggle-btn.active {
  background: var(--loom-indigo);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(99, 102, 241, 0.45);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.25rem;
  align-items: stretch;
}

.pricing-card {
  padding: 2.5rem 2.25rem;
  border-radius: 26px;
  display: flex;
  flex-direction: column;
  position: relative;
  background: var(--loom-surface-glass);
  border: 1px solid var(--loom-border-strong);
  box-shadow: var(--loom-shadow-glass);
}
.pricing-card.popular {
  border-color: var(--loom-indigo);
  box-shadow: 0 20px 50px -10px rgba(99, 102, 241, 0.35), 0 0 30px rgba(6, 182, 212, 0.15);
  transform: translateY(-8px);
}

.pricing-badge-popular {
  position: absolute;
  top: -15px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--loom-gradient-primary);
  color: #ffffff;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  padding: 0.35rem 1rem;
  border-radius: 9999px;
  white-space: nowrap;
  box-shadow: 0 4px 15px rgba(99, 102, 241, 0.5);
}

.pricing-tier-name {
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 800;
  margin-bottom: 0.45rem;
  letter-spacing: -0.02em;
}
.pricing-tier-desc {
  font-size: 0.9rem;
  color: var(--loom-text-secondary);
  margin-bottom: 2rem;
  min-height: 44px;
}

.pricing-price-wrap {
  display: flex;
  align-items: baseline;
  gap: 0.45rem;
  margin-bottom: 0.45rem;
}
.pricing-amount {
  font-family: var(--font-display);
  font-size: 3.25rem;
  font-weight: 800;
  color: var(--loom-text-primary);
  line-height: 1;
  letter-spacing: -0.03em;
}
.pricing-period {
  font-size: 0.875rem;
  color: var(--loom-text-muted);
  font-family: var(--font-mono);
  font-weight: 600;
}

.pricing-timeline-badge {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: var(--loom-cyan);
  margin-bottom: 2rem;
  font-weight: 700;
}

/* Milestone Breakdown Chips in Pricing */
.pricing-milestone-chips {
  background: var(--loom-surface-2);
  border: 1px solid var(--loom-border-subtle);
  border-radius: 14px;
  padding: 1rem;
  margin-bottom: 2rem;
  font-family: var(--font-mono);
  font-size: 0.775rem;
}
.pricing-milestone-chips .chip-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.45rem;
  color: var(--loom-text-secondary);
}
.pricing-milestone-chips .chip-row:last-child {
  margin-bottom: 0;
}
.pricing-milestone-chips .chip-row strong {
  color: var(--loom-text-primary);
  font-weight: 700;
}

.pricing-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.95rem;
  margin-bottom: 2.25rem;
  flex: 1;
}
.pricing-features li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.9rem;
  color: var(--loom-text-secondary);
  line-height: 1.45;
}
.pricing-features li svg {
  color: var(--loom-indigo);
  flex-shrink: 0;
  margin-top: 3px;
}
.pricing-card.popular .pricing-features li svg {
  color: var(--loom-emerald);
}

/* ==========================================================================
   12. TECH STACK & SOCIAL PROOF
   ========================================================================== */
.stack-section {
  padding: 7rem 0;
  border-top: 1px solid var(--loom-border-subtle);
  border-bottom: 1px solid var(--loom-border-subtle);
}

.tech-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.35rem;
  margin-top: 4rem;
  margin-bottom: 4.5rem;
}
.tech-card {
  background: var(--loom-surface-glass);
  border: 1px solid var(--loom-border-subtle);
  border-radius: 16px;
  padding: 1.35rem;
  display: flex;
  align-items: center;
  gap: 1.15rem;
  transition: all var(--loom-duration-base) var(--loom-ease-spring);
  box-shadow: var(--loom-shadow-sm);
}
.tech-card:hover {
  border-color: var(--loom-cyan);
  transform: translateY(-3px);
  background: var(--loom-surface-3);
  box-shadow: 0 10px 25px rgba(6, 182, 212, 0.2);
}
.tech-icon-box {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: var(--loom-surface-2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-weight: 800;
  font-size: 0.95rem;
  color: var(--loom-cyan);
  box-shadow: 0 0 12px rgba(6, 182, 212, 0.15);
}
.tech-info strong {
  display: block;
  font-size: 1rem;
  font-weight: 700;
  color: var(--loom-text-primary);
}
.tech-info span {
  font-size: 0.775rem;
  color: var(--loom-text-muted);
}

/* Testimonials Grid */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
}
.testimonial-card {
  background: var(--loom-surface-glass);
  border: 1px solid var(--loom-border-strong);
  border-radius: 20px;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--loom-shadow-glass);
}
.testimonial-quote {
  font-size: 1rem;
  color: var(--loom-text-secondary);
  line-height: 1.65;
  margin-bottom: 1.75rem;
  font-style: italic;
}
.testimonial-author {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.author-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--loom-gradient-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  color: #ffffff;
  font-size: 0.9rem;
  box-shadow: 0 0 15px rgba(99, 102, 241, 0.4);
}
.author-info strong {
  display: block;
  font-size: 0.95rem;
  color: var(--loom-text-primary);
}
.author-info span {
  font-size: 0.785rem;
  color: var(--loom-text-muted);
}

/* ==========================================================================
   13. FAQS ACCORDION
   ========================================================================== */
.faq-section {
  padding: 7rem 0;
  position: relative;
}

.faq-accordion-wrap {
  max-width: 860px;
  margin: 4rem auto 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
}

.faq-item {
  background: var(--loom-surface-glass);
  border: 1px solid var(--loom-border-strong);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--loom-shadow-sm);
  transition: border-color var(--loom-duration-fast) ease, box-shadow var(--loom-duration-fast) ease;
}
.faq-item.active {
  border-color: var(--loom-indigo);
  box-shadow: 0 8px 25px rgba(99, 102, 241, 0.2);
}

.faq-trigger {
  width: 100%;
  padding: 1.45rem 1.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-align: left;
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--loom-text-primary);
  transition: color var(--loom-duration-fast) ease;
}
.faq-trigger:hover {
  color: var(--loom-indigo);
}
.faq-icon-arrow {
  width: 22px;
  height: 22px;
  transition: transform var(--loom-duration-base) ease;
  color: var(--loom-cyan);
}
.faq-item.active .faq-icon-arrow {
  transform: rotate(180deg);
}

.faq-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s ease;
  padding: 0 1.75rem;
}
.faq-item.active .faq-content {
  max-height: 380px;
  padding: 0 1.75rem 1.75rem 1.75rem;
}
.faq-body {
  font-size: 0.975rem;
  color: var(--loom-text-secondary);
  line-height: 1.7;
  border-top: 1px solid var(--loom-border-subtle);
  padding-top: 1.15rem;
}

/* ==========================================================================
   14. FINAL CTA BANNER
   ========================================================================== */
.final-cta-section {
  padding: 7rem 0;
}

.cta-banner-box {
  background: var(--loom-surface-glass);
  border-radius: 30px;
  padding: 5rem 3.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: var(--loom-shadow-glass);
}

.cta-banner-content {
  position: relative;
  z-index: 5;
  max-width: 760px;
  margin: 0 auto;
}
.cta-banner-content h2 {
  font-family: var(--font-display);
  font-size: clamp(2.35rem, 4.8vw, 3.5rem);
  font-weight: 800;
  line-height: 1.12;
  margin-bottom: 1.35rem;
  letter-spacing: -0.035em;
}
.cta-banner-content p {
  font-size: 1.2rem;
  color: var(--loom-text-secondary);
  margin-bottom: 2.5rem;
  line-height: 1.6;
}
.cta-btn-group {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.25rem;
}

/* ==========================================================================
   15. FOOTER
   ========================================================================== */
.main-footer {
  background: var(--loom-surface-1);
  border-top: 1px solid var(--loom-border-subtle);
  padding: 5rem 0 2.5rem 0;
  position: relative;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 3.5rem;
  margin-bottom: 4rem;
}

.footer-brand-bio {
  max-width: 360px;
}
.footer-desc {
  font-size: 0.9rem;
  color: var(--loom-text-secondary);
  line-height: 1.65;
  margin-top: 1.35rem;
  margin-bottom: 1.65rem;
}
.footer-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--loom-emerald);
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.25);
  box-shadow: 0 0 12px rgba(16, 185, 129, 0.15);
  padding: 0.4rem 0.85rem;
  border-radius: 9999px;
}

.footer-col-title {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--loom-text-primary);
  margin-bottom: 1.35rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}
.footer-links a {
  font-size: 0.9rem;
  color: var(--loom-text-secondary);
  transition: color var(--loom-duration-fast) ease, transform var(--loom-duration-fast) ease;
  display: inline-block;
}
.footer-links a:hover {
  color: var(--loom-cyan);
  transform: translateX(3px);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 2.25rem;
  border-top: 1px solid var(--loom-border-subtle);
  font-family: var(--font-mono);
  font-size: 0.775rem;
  color: var(--loom-text-muted);
}
.footer-bottom-links {
  display: flex;
  gap: 1.75rem;
}

/* ==========================================================================
   16. RESPONSIVE MEDIA QUERIES
   ========================================================================== */
@media (max-width: 1140px) {
  .slot-badge {
    display: none;
  }
}

@media (max-width: 1024px) {
  .hero-content {
    grid-template-columns: 1fr;
    gap: 4rem;
  }
  .hero-text {
    max-width: 100%;
    text-align: center;
  }
  .hero-cta-group {
    justify-content: center;
  }
  .hero-telemetry-bar {
    justify-content: center;
  }
  .bento-card-8, .bento-card-4, .bento-card-6 {
    grid-column: span 12;
  }
  .calc-grid {
    grid-template-columns: 1fr;
  }
  .step-detail-card {
    grid-template-columns: 1fr;
  }
  .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 520px;
    margin: 0 auto;
  }
  .pricing-card.popular {
    transform: none;
  }
  .tech-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .testimonials-grid {
    grid-template-columns: 1fr;
  }
  .footer-top {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .nav-menu {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: var(--loom-surface-1);
    border-bottom: 1px solid var(--loom-border-strong);
    padding: 1.5rem;
    flex-direction: column;
    align-items: flex-start;
    gap: 1.25rem;
    display: none;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.8);
  }
  .nav-menu.open {
    display: flex;
  }
  .mobile-menu-toggle {
    display: inline-flex;
  }
  .archetype-tabs {
    grid-template-columns: repeat(2, 1fr);
  }
  .stepper-nav {
    grid-template-columns: 1fr;
  }
  .calc-results-panel {
    grid-template-columns: 1fr;
  }
  .footer-top {
    grid-template-columns: 1fr;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
}
