/* ==========================================================================
   HACKATEER — PREMIUM DARK DESIGN SYSTEM
   ========================================================================== */

/* ──────────────────────────────────────────────
   CSS VARIABLES
   ────────────────────────────────────────────── */
:root {
  /* Dark palette */
  --bg-base:        #080b12;
  --bg-surface:     #0d1117;
  --bg-raised:      #111827;
  --bg-overlay:     rgba(13, 17, 23, 0.85);

  /* Accent colours */
  --accent-indigo:  #6366f1;
  --accent-purple:  #a855f7;
  --accent-cyan:    #22d3ee;
  --accent-pink:    #ec4899;
  --accent-green:   #22c55e;

  /* Gradient */
  --grad-primary:   linear-gradient(135deg, #6366f1 0%, #a855f7 100%);
  --grad-glow:      linear-gradient(135deg, #6366f180 0%, #a855f780 100%);
  --grad-text:      linear-gradient(135deg, #818cf8 0%, #c084fc 60%, #f472b6 100%);

  /* Glass */
  --glass-bg:       rgba(255, 255, 255, 0.04);
  --glass-border:   rgba(255, 255, 255, 0.08);
  --glass-shadow:   0 8px 40px rgba(0, 0, 0, 0.4);
  --glass-hover-border: rgba(99, 102, 241, 0.4);

  /* Text */
  --text-primary:   #f1f5f9;
  --text-secondary: #94a3b8;
  --text-tertiary:  #475569;

  /* Typography */
  --font-sans:  'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono:  'JetBrains Mono', 'Fira Code', monospace;
  --font-head:  'Space Grotesk', var(--font-sans);

  /* Spacing */
  --section-py: clamp(80px, 10vw, 140px);
  --container:  1200px;
  --radius-sm:  8px;
  --radius-md:  16px;
  --radius-lg:  24px;
  --radius-xl:  32px;

  /* Timing */
  --ease-out:   cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ──────────────────────────────────────────────
   RESET & GLOBALS
   ────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background: var(--bg-base);
  color: var(--text-primary);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
}

body { overflow-x: hidden; position: relative; }

a { text-decoration: none; color: inherit; }
button { background: none; border: none; font-family: inherit; cursor: pointer; outline: none; }
img { display: block; max-width: 100%; }
ul { list-style: none; }

/* Scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-base); }
::-webkit-scrollbar-thumb { background: var(--bg-raised); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent-indigo); }

::selection { background: var(--accent-indigo); color: #fff; }

/* ──────────────────────────────────────────────
   PARTICLE CANVAS
   ────────────────────────────────────────────── */
#particles-canvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.6s ease;
}

#particles-canvas.active {
  opacity: 0.4;
}

/* ──────────────────────────────────────────────
   CUSTOM CURSOR
   ────────────────────────────────────────────── */
.cursor-dot {
  position: fixed;
  width: 8px;
  height: 8px;
  background: var(--accent-indigo);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: opacity 0.2s, transform 0.15s var(--ease-out);
}

.cursor-ring {
  position: fixed;
  width: 32px;
  height: 32px;
  border: 1.5px solid rgba(99, 102, 241, 0.6);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
  transition: width 0.3s var(--ease-out), height 0.3s var(--ease-out), opacity 0.3s, border-color 0.2s;
}

.cursor-ring.hovered {
  width: 48px;
  height: 48px;
  border-color: var(--accent-purple);
  background: rgba(99, 102, 241, 0.06);
}

@media (hover: none) {
  .cursor-dot, .cursor-ring { display: none; }
}

/* ──────────────────────────────────────────────
   LAYOUT UTILITIES
   ────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 60px);
  position: relative;
  z-index: 1;
}

.container-narrow {
  max-width: 820px;
}

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

/* Glass panel */
.glass-panel {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: var(--glass-shadow);
  transition: border-color 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out), transform 0.3s var(--ease-out);
}

.glass-panel:hover {
  border-color: var(--glass-hover-border);
  box-shadow: 0 16px 60px rgba(0, 0, 0, 0.5), 0 0 40px rgba(99, 102, 241, 0.08);
}

/* ──────────────────────────────────────────────
   BUTTONS
   ────────────────────────────────────────────── */
.btn-glow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: var(--grad-primary);
  border-radius: 100px;
  font-weight: 600;
  font-size: 0.9rem;
  color: #fff;
  letter-spacing: 0.01em;
  position: relative;
  overflow: hidden;
  transition: transform 0.2s var(--ease-out), box-shadow 0.2s var(--ease-out);
  box-shadow: 0 0 0 0 rgba(99, 102, 241, 0);
}

.btn-glow::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.15) 0%, transparent 60%);
  pointer-events: none;
}

.btn-glow:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 8px 32px rgba(99, 102, 241, 0.5);
}

.btn-glow.btn-large {
  padding: 16px 32px;
  font-size: 1rem;
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border: 1px solid var(--glass-border);
  border-radius: 100px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}

.btn-ghost:hover {
  border-color: var(--accent-indigo);
  color: var(--text-primary);
  background: rgba(99, 102, 241, 0.08);
}

.btn-outline-white {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 16px 32px;
  border: 1px solid var(--glass-border);
  border-radius: 100px;
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}

.btn-outline-white:hover {
  border-color: rgba(255,255,255,0.3);
  color: var(--text-primary);
  background: rgba(255,255,255,0.05);
}

/* ──────────────────────────────────────────────
   SECTION TYPOGRAPHY
   ────────────────────────────────────────────── */
.section-eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent-indigo);
  background: rgba(99, 102, 241, 0.12);
  border: 1px solid rgba(99, 102, 241, 0.25);
  padding: 5px 14px;
  border-radius: 100px;
  margin-bottom: 20px;
}

.section-title {
  font-family: var(--font-head);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  line-height: 1.15;
  color: var(--text-primary);
  margin-bottom: 16px;
}

.section-desc {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--text-secondary);
  max-width: 560px;
  margin-bottom: 56px;
}

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

/* ──────────────────────────────────────────────
   ANIMATION CLASSES
   ────────────────────────────────────────────── */
.reveal-fade {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
  transition-delay: var(--delay, 0s);
}

.reveal-fade.visible { opacity: 1; transform: none; }

.reveal-up {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
  transition-delay: var(--delay, 0s);
}

.reveal-up.visible { opacity: 1; transform: none; }

.reveal-slide-right {
  opacity: 0;
  transform: translateX(32px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
  transition-delay: var(--delay, 0s);
}

.reveal-slide-right.visible { opacity: 1; transform: none; }

@keyframes navbarEntrance {
  from {
    opacity: 0;
    transform: translate(-50%, -24px);
  }
  to {
    opacity: 1;
    transform: translate(-50%, 0);
  }
}

/* ──────────────────────────────────────────────
   NAVIGATION
   ────────────────────────────────────────────── */
.site-header {
  position: fixed;
  top: 24px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 48px);
  max-width: 1000px;
  background: rgba(255, 255, 255, 0.45);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.45);
  box-shadow: 0 8px 32px 0 rgba(26, 22, 43, 0.05);
  border-radius: 50px;
  padding: 10px 32px;
  z-index: 1000;
  transition: all 0.3s var(--ease-out);
  animation: navbarEntrance 1.2s var(--ease-out) 0.1s both;
}

.site-header.scrolled {
  top: 12px;
  background: rgba(255, 255, 255, 0.65);
  border-color: rgba(255, 255, 255, 0.55);
  box-shadow: 0 12px 40px rgba(26, 22, 43, 0.08), 0 4px 12px rgba(26, 22, 43, 0.02);
}

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

.nav-brand {
  font-family: var(--font-head);
  font-size: 1.5rem;
  font-weight: 800;
  color: #1a162b;
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav-link {
  font-size: 0.875rem;
  font-weight: 600;
  color: #4b485c;
  padding: 6px 12px;
  border-radius: 20px;
  transition: all 0.2s var(--ease-out);
}

.nav-link:hover {
  color: #1a162b;
  background: rgba(0, 0, 0, 0.04);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.btn-apply-now {
  font-size: 0.875rem;
  font-weight: 700;
  color: #1a162b;
  border: 1.5px solid #1a162b;
  border-radius: 50px;
  padding: 8px 22px;
  background: transparent;
  transition: all 0.25s var(--ease-out);
}

.btn-apply-now:hover {
  background: #1a162b;
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(26, 22, 43, 0.15);
}

.btn-portal-login {
  font-size: 0.875rem;
  font-weight: 600;
  color: #4b485c;
  padding: 6px 12px;
  transition: color 0.2s var(--ease-out);
}

.btn-portal-login:hover {
  color: #1a162b;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
}

.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: #1a162b;
  border-radius: 2px;
  transition: transform 0.3s var(--ease-out), opacity 0.3s, width 0.3s;
}

.hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.open span:nth-child(2) { opacity: 0; width: 0; }
.hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

.mobile-drawer {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(20px);
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transform: scale(0.98);
  transition: opacity 0.3s var(--ease-out), transform 0.3s var(--ease-out);
}

.mobile-drawer.open {
  opacity: 1;
  pointer-events: all;
  transform: none;
}

.mobile-drawer ul {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  text-align: center;
}

.mobile-drawer ul a {
  font-size: 1.25rem;
  font-weight: 700;
  color: #1a162b;
  padding: 8px 16px;
}

/* ──────────────────────────────────────────────
   HERO SECTION
   ────────────────────────────────────────────── */
/* ──────────────────────────────────────────────
   HACKATEER HERO SECTION
   ────────────────────────────────────────────── */
.hero-hackateer {
  min-height: 100vh;
  background: 
    radial-gradient(ellipse 65% 48% at 50% 0%, rgba(59, 130, 246, 0.20) 0%, transparent 100%), /* Blue ambient shadow */
    radial-gradient(ellipse 45% 28% at 50% 0%, rgba(26, 22, 43, 0.24) 0%, transparent 100%),  /* Black shadow */
    #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 100px 24px 80px;
  position: relative;
  overflow: hidden;
}

.hero-hackateer-inner {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  z-index: 1;
}

@media (min-width: 769px) {
  .hero-hackateer-inner {
    max-width: min(1050px, 120vh);
    aspect-ratio: 4 / 3;
    justify-content: space-between;
    padding: 30px 0;
  }
}

/* Headline */
.hackateer-title {
  position: relative;
  font-family: var(--font-head);
  font-size: clamp(4.5rem, 11vw, 8.2rem);
  font-weight: 400;
  color: #1a162b;
  text-shadow: 0 10px 30px rgba(26, 22, 43, 0.12), 0 2px 4px rgba(26, 22, 43, 0.04);
  text-align: center;
  text-transform: uppercase;
  line-height: 0.95;
  letter-spacing: -0.01em;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 20px;
}

.title-word {
  display: block;
}

.title-hack {
  font-weight: 500;
  letter-spacing: -0.025em;
}

/* Interactive Middle Row */
.hackateer-interactive {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 960px;
  margin: 40px auto;
  gap: 20px;
}

.interactive-column {
  display: flex;
  align-items: center;
  gap: 16px;
}

.left-column {
  width: 32%;
  justify-content: flex-end;
}

.right-column {
  width: 32%;
  justify-content: flex-start;
}

.center-column {
  width: 32%;
  justify-content: center;
  align-items: center;
}

.hackateer-indicator-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  margin-top: 10px;
  margin-bottom: 20px;
  width: 100%;
}

.hero-side-img {
  max-width: 100%;
  height: auto;
  max-height: 260px;
  object-fit: contain;
  transition: transform 0.4s var(--ease-out);
}

video.hero-side-img {
  opacity: 0.5;
  transition: opacity 0.3s ease, transform 0.4s var(--ease-out);
}

video.hero-side-img:hover {
  opacity: 1;
}

.hero-side-img:hover {
  transform: translateY(-8px) scale(1.02);
}

.isometric-window {
  width: 84px;
  height: 100px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.isometric-window svg {
  width: 100%;
  height: 100%;
}


.nebula-caption {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: #6c697c;
  margin-top: 10px;
  text-transform: uppercase;
}

/* Mouse Scroll indicator */
.mouse-scroll-indicator {
  margin-top: 14px;
  display: flex;
  justify-content: center;
}

.mouse-body {
  width: 14px;
  height: 24px;
  border: 1.5px solid #1a162b;
  border-radius: 10px;
  position: relative;
  display: block;
}

.mouse-wheel {
  width: 2px;
  height: 6px;
  background-color: #1a162b;
  border-radius: 1px;
  position: absolute;
  top: 4px;
  left: 50%;
  transform: translateX(-50%);
  animation: scrollWheel 1.6s ease-in-out infinite;
}

@keyframes scrollWheel {
  0% { opacity: 0; transform: translate(-50%, 0); }
  30% { opacity: 1; }
  100% { opacity: 0; transform: translate(-50%, 8px); }
}

/* Bottom Stats Row */
.hackateer-stats-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: clamp(24px, 6vw, 72px);
  margin-top: 40px;
  width: 100%;
  border-top: 1px dashed rgba(26, 22, 43, 0.12);
  padding-top: 36px;
}

.hackateer-stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hackateer-stat-val {
  font-family: var(--font-head);
  font-size: 2.2rem;
  font-weight: 700;
  color: #1a162b;
  line-height: 1;
}

.hackateer-stat-suffix {
  font-family: var(--font-head);
  font-size: 2.2rem;
  font-weight: 700;
  color: #1a162b;
  line-height: 1;
}

.hackateer-stat-lbl {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  color: #6c697c;
  margin-top: 6px;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

/* ──────────────────────────────────────────────
   MARQUEE
   ────────────────────────────────────────────── */
.marquee-strip {
  padding: 18px 0;
  background: #ffffff;
  border-top: 1px solid var(--glass-border);
  border-bottom: 1px solid var(--glass-border);
  overflow: hidden;
  position: relative;
  z-index: 1;
}

.marquee-track {
  display: flex;
  gap: 24px;
  width: max-content;
  animation: marqueeScroll 35s linear infinite;
  white-space: nowrap;
  font-family: var(--font-head);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--text-tertiary);
}

.marquee-track .mx { color: var(--accent-indigo); }

@keyframes marqueeScroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ──────────────────────────────────────────────
   GRAPH IMAGE SECTION
   ────────────────────────────────────────────── */
.graph-image-section {
  position: relative;
  background: #FEFEFD;
  padding: 56px 0;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

.graph-static-image {
  max-width: min(100%, 1060px);
  height: auto;
  display: block;
  margin: 0 auto;
  clip-path: inset(8% 8% 8% 8%);
  transform: scale(1.18);
}

/* ──────────────────────────────────────────────
   TRACKS SECTION
   ────────────────────────────────────────────── */
.tracks-section {
  position: relative;
  background: #ffffff;
}

.tracks-header {
  text-align: center;
  margin-bottom: 40px;
}

.tracks-header .section-title {
  color: #1a1640;
  margin-bottom: 12px;
}

.tracks-header .section-desc {
  color: #64748b;
  margin: 0 auto;
  max-width: 560px;
}

/* Browser Mock Window Stacked Card Deck wrapper */
.tracks-browser-wrapper {
  position: relative;
  margin-top: 40px;
  width: 100%;
  padding-bottom: 24px; /* Give room at bottom for stacked cards */
}

/* Middle stacked layer */
.tracks-browser-wrapper::before {
  content: '';
  position: absolute;
  bottom: 8px; /* Shifted up slightly */
  left: 14px;
  right: 14px;
  top: 12px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  z-index: 1;
  pointer-events: none;
}

/* Bottom stacked layer */
.tracks-browser-wrapper::after {
  content: '';
  position: absolute;
  bottom: 0px; /* Shifted further up */
  left: 28px;
  right: 28px;
  top: 24px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  z-index: 0;
  pointer-events: none;
}

/* The actual browser container on top */
.tracks-browser {
  position: relative;
  background: #ffffff;
  border-radius: 16px;
  border: 1px solid #e2e8f0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  z-index: 2;
}

.browser-header {
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  user-select: none;
}

.browser-dots {
  display: flex;
  gap: 8px;
}

.b-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  display: inline-block;
}

.b-dot--red { background: #ef4444; }
.b-dot--yellow { background: #f59e0b; }
.b-dot--green { background: #10b981; }

.browser-address {
  background: #eef2f6;
  border-radius: 8px;
  padding: 5px 40px;
  font-size: 0.8rem;
  color: #64748b;
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: 320px;
  width: 100%;
  justify-content: center;
}

.browser-address i {
  font-size: 0.75rem;
}

.browser-actions {
  color: #94a3b8;
  font-size: 0.95rem;
  cursor: pointer;
}

.browser-body {
  display: flex;
  background: #ffffff;
  height: 520px;
  overflow: hidden;
}

/* 1. Left Sidebar Navigation styling */
.browser-sidebar {
  width: 60px;
  border-right: 1px solid #e2e8f0;
  background: #ffffff;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  padding: 24px 0;
  flex-shrink: 0;
}

.sidebar-top, .sidebar-bottom {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.sb-item {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  border: none;
  background: transparent;
  color: #64748b;
  font-size: 1.15rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s ease;
}

.sb-item:hover {
  background: #f1f5f9;
  color: #1e3a8a;
}

.sb-item--active {
  background: #eff6ff;
  color: #151F57;
}

/* 2. Left Panel: Parameters & Track List styling */
.browser-left-panel {
  width: 330px;
  border-right: 1px solid #e2e8f0;
  background: #ffffff;
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  overflow-y: auto;
}

.panel-section {
  padding: 24px;
  border-bottom: 1px solid #f1f5f9;
}

.panel-section:last-child {
  border-bottom: none;
}

.panel-title {
  font-family: var(--font-head);
  font-size: 1.05rem;
  font-weight: 700;
  color: #1a1640;
  margin-bottom: 4px;
}

.panel-sub {
  font-size: 0.78rem;
  color: #8a8aaa;
  margin-bottom: 24px;
}

.sliders-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Custom range sliders styling */
.slider-item {
  display: flex;
  flex-direction: column;
}

.slider-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.sl-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: #4a4a68;
}

.sl-val {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  color: #151F57;
  background: #eff6ff;
  padding: 2px 6px;
  border-radius: 4px;
}

.slider-wrap {
  position: relative;
  height: 4px;
  background: #e2e8f0;
  border-radius: 100px;
}

.range-fill {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  background: #151F57;
  border-radius: 100px;
  pointer-events: none;
  transition: width 0.1s ease;
}

.range-slider {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 4px;
  opacity: 1;
  background: transparent;
  -webkit-appearance: none;
  appearance: none;
  outline: none;
  z-index: 2;
}

.range-slider::-webkit-slider-runnable-track {
  background: transparent;
}

.range-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #1e3a8a;
  border: 2px solid #ffffff;
  box-shadow: 0 2px 4px rgba(0,0,0,0.15);
  cursor: pointer;
  margin-top: -4px; /* Center thumb vertically on a 4px track */
}

.range-slider::-moz-range-thumb {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #1e3a8a;
  border: 2px solid #ffffff;
  box-shadow: 0 2px 4px rgba(0,0,0,0.15);
  cursor: pointer;
}

/* Build Tracks List styling */
.list-title {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #8a8aaa;
  margin-bottom: 12px;
}

.tracks-sidebar-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.track-list-card {
  display: flex;
  align-items: center;
  padding: 12px 14px;
  background: #f8fafc;
  border: 1px solid #f1f5f9;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.25s ease;
}

.track-list-card:hover {
  background: #f1f5f9;
  transform: translateY(-1px);
}

.tl-card-icon {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  background: #eff6ff;
  color: #151F57;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  margin-right: 12px;
  flex-shrink: 0;
  transition: all 0.25s ease;
}

.tl-card-content {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.tl-card-title {
  font-size: 0.82rem;
  font-weight: 600;
  color: #1a1640;
  transition: all 0.25s ease;
}

.tl-card-sub {
  font-size: 0.68rem;
  color: #8a8aaa;
  margin-top: 1px;
  transition: all 0.25s ease;
}

.tl-card-chevron {
  font-size: 0.75rem;
  color: #cbd5e1;
  transition: all 0.25s ease;
}

/* Active state for left track cards */
.track-list-card--active {
  background: #151F57 !important;
  border-color: #151F57 !important;
  box-shadow: 0 4px 12px rgba(21, 31, 87, 0.2);
}

.track-list-card--active .tl-card-icon {
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
}

.track-list-card--active .tl-card-title {
  color: #ffffff;
}

.track-list-card--active .tl-card-sub {
  color: rgba(255, 255, 255, 0.78);
}

.track-list-card--active .tl-card-chevron {
  color: #ffffff;
}

/* 3. Workspace (Center / Right) styling */
.browser-workspace {
  flex: 1;
  background: #f8fafc;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.workspace-back-btn {
  position: absolute;
  top: 24px;
  left: 24px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  padding: 6px 14px;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  color: #4a5568;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.02);
  z-index: 5;
  transition: all 0.2s ease;
}

.workspace-back-btn:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
}

.workspace-visual-container {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

#tracks-network-canvas {
  width: 100%;
  height: 100%;
  display: block;
}

/* Recommendation Card Overlay styling */
.track-result-overlay {
  position: absolute;
  right: 28px;
  width: 320px;
  background: #ffffff;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 10px 30px rgba(26, 22, 80, 0.05), 0 4px 8px rgba(26, 22, 80, 0.02);
  padding: 24px;
  z-index: 4;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.tr-overlay-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.tr-tag {
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #151F57;
  background: #eff6ff;
  border: 1px solid rgba(21, 31, 87, 0.15);
  padding: 3px 8px;
  border-radius: 4px;
}

.tr-overlay-badge {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #eff6ff;
  color: #151F57;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
}

.tr-title {
  font-family: var(--font-head);
  font-size: 1.15rem;
  font-weight: 700;
  color: #1a1640;
  line-height: 1.2;
}

.tr-desc {
  font-size: 0.76rem;
  line-height: 1.55;
  color: #64748b;
}

.tr-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tr-tags span {
  font-family: var(--font-mono);
  font-size: 0.64rem;
  font-weight: 550;
  color: #64748b;
  background: #f1f5f9;
  padding: 3px 8px;
  border-radius: 4px;
  border: 1px solid #e2e8f0;
}

.tr-meters {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 6px;
  border-top: 1px solid #f1f5f9;
  padding-top: 14px;
}

.tr-meters .meter-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.tr-meters .meter-row > span {
  font-size: 0.7rem;
  color: #8a8aaa;
  width: 90px;
  flex-shrink: 0;
}

.tr-meters .meter-bar {
  flex: 1;
  height: 5px;
  background: #e2e8f0;
  border-radius: 100px;
  overflow: hidden;
}

.tr-meters .meter-fill {
  height: 100%;
  background: #151F57;
  border-radius: 100px;
  transition: width 0.4s ease;
}

/* Responsive Styles for Tracks Section */
@media (max-width: 992px) {
  .browser-body {
    height: auto;
    flex-direction: column;
  }
  .browser-sidebar {
    width: 100%;
    height: 50px;
    flex-direction: row;
    padding: 0 20px;
    border-right: none;
    border-bottom: 1px solid #e2e8f0;
  }
  .sidebar-top, .sidebar-bottom {
    flex-direction: row;
    gap: 16px;
  }
  .browser-left-panel {
    width: 100%;
    border-right: none;
    border-bottom: 1px solid #e2e8f0;
  }
  .browser-workspace {
    height: auto;
    min-height: 400px;
    padding: 70px 0 30px;
    flex-direction: column;
    justify-content: flex-start;
  }
  .track-result-overlay {
    position: relative;
    right: auto;
    margin: 20px;
    width: calc(100% - 40px);
    box-shadow: none;
    border: 1px solid #e2e8f0;
  }
}

/* ──────────────────────────────────────────────
   BENTO / EXPERIENCE SECTION
   ────────────────────────────────────────────── */
.experience-section {
  position: relative;
  background: #ffffff;
  padding-top: 0;
  padding-bottom: 0;
  /* override .section padding */
}

/* Connector lines top & bottom */
.exp-connector-top,
.exp-connector-bot {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0;
}

.exp-connector-top {
  padding-top: 0;
}

.exp-connector-bot {
  padding-bottom: 40px;
}

.exp-connector-line {
  width: 1px;
  height: 48px;
  background: #c0c8d8;
}

.exp-connector-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #3B82F6;
  margin: 2px 0;
}

/* Section header */
.exp-header {
  text-align: center;
  padding: 56px 0 40px;
}

.exp-title {
  font-family: var(--font-head);
  font-size: clamp(1.9rem, 3.5vw, 2.8rem);
  font-weight: 700;
  color: #1a1a2e;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
  line-height: 1.2;
}

.exp-subtitle {
  font-size: 0.9rem;
  color: #6b7280;
  max-width: 520px;
  margin: 0 auto;
  line-height: 1.6;
}

/* ── Bento Grid ── */
.bento-grid {
  display: grid;
  /* col1: timeline, col2: CLI+GitHub stacked, col3: matcher */
  grid-template-columns: 1.55fr 1fr 1.1fr;
  grid-template-rows: auto auto;
  gap: 20px;
  margin-bottom: 0;
  padding-bottom: 40px;
}

.bento-card {
  background: #ffffff;
  border: 1px solid #e8eaf0;
  border-radius: 18px;
  padding: 28px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,0.04), 0 1px 3px rgba(0,0,0,0.02);
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out);
}

.bento-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(0,0,0,0.07), 0 2px 6px rgba(0,0,0,0.03);
}

/* Grid positions */
.b-timeline { grid-column: 1; grid-row: 1 / 3; }
.b-matcher  { grid-column: 3; grid-row: 1 / 3; }
.b-console  { grid-column: 2; grid-row: 1; }
.b-github   { grid-column: 2; grid-row: 2; }

.bc-tag {
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #7c88a8;
  margin-bottom: 6px;
}

.bc-title {
  font-family: var(--font-head);
  font-size: 1.15rem;
  font-weight: 700;
  color: #1a1a2e;
  margin-bottom: 6px;
  line-height: 1.3;
}

.bc-sub {
  font-size: 0.78rem;
  line-height: 1.6;
  color: #6b7280;
  margin-bottom: 18px;
}

/* ── Timeline Tabs (segment control) ── */
.timeline-tabs {
  display: flex;
  background: #f1f5f9;
  border-radius: 10px;
  padding: 4px;
  gap: 3px;
  margin-bottom: 18px;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.timeline-tabs::-webkit-scrollbar {
  display: none;
}

.tt-btn {
  flex: 1 0 auto;
  min-width: 70px;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 8px 4px;
  border-radius: 7px;
  background: transparent;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.tt-btn.active {
  background: #ffffff;
  box-shadow: 0 1px 4px rgba(0,0,0,0.1);
}

.tt-num {
  font-size: 0.65rem;
  font-weight: 700;
  color: #9ca3af;
  line-height: 1;
  margin-bottom: 2px;
  font-family: var(--font-mono);
}

.tt-btn.active .tt-num {
  color: #3B82F6;
}

.tt-text {
  font-size: 0.72rem;
  font-weight: 600;
  color: #6b7280;
  line-height: 1.2;
  text-align: center;
}

.tt-btn.active .tt-text {
  color: #1a1a2e;
}

/* ── Timeline Panels ── */
.timeline-panels { position: relative; }

.tp-panel {
  display: none;
  background: #f8fafc;
  border: 1px solid #e8eaf0;
  border-radius: 12px;
  padding: 20px 22px;
  animation: fadePanel 0.25s var(--ease-out);
}

.tp-panel.active { display: block; }

@keyframes fadePanel {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: none; }
}

.tp-panel h4 {
  font-size: 0.88rem;
  font-weight: 700;
  color: #1a1a2e;
  margin-bottom: 8px;
  line-height: 1.4;
}

.tp-panel p {
  font-size: 0.78rem;
  line-height: 1.65;
  color: #6b7280;
  margin-bottom: 14px;
}

.tp-list {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.tp-list li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.77rem;
  color: #4b5563;
}

.tp-list li i {
  color: #3B82F6;
  font-size: 0.68rem;
  width: 14px;
  flex-shrink: 0;
}

/* ── Team Matcher Card ── */
.matcher-wrap {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 8px;
  width: 100%;
  max-width: 340px;
  margin-left: auto;
  margin-right: auto;
}

.matcher-network-bg {
  position: relative;
  width: 100%;
  height: 160px;
  margin-bottom: 12px;
  overflow: visible;
}

.net-node {
  position: absolute;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid #ffffff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.10);
  background: #e2e8f0;
  z-index: 2;
}

.net-node img {
  width: 100%; height: 100%; object-fit: cover;
}

.node-ghost {
  width: 24px; height: 24px;
  background: #e8eaf0;
  opacity: 0.5;
  z-index: 1;
}

/* Node positions (within 100% width container, ~160px tall) */
.node-1 { top: 4px;  left: 50%; transform: translateX(-50%); }
.node-2 { top: 52px; left: 18%; }
.node-3 { top: 52px; right: 18%; }
.node-4 { top: 108px; left: 28%; }
.node-5 { top: 108px; right: 28%; }
.node-l { top: 72px;  left: -4px; }
.node-r { top: 72px;  right: -4px; }

.net-lines {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: 0;
  pointer-events: none;
}

/* Swipe card */
.matcher-card {
  background: #ffffff;
  border: 1px solid #e8eaf0;
  border-radius: 14px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.08), 0 2px 6px rgba(0,0,0,0.04);
  width: 100%;
  overflow: hidden;
  margin-bottom: 14px;
  z-index: 2;
  transition: transform 0.3s var(--ease-out), opacity 0.3s;
}

.m-avatar {
  width: 100%;
  height: 160px;
  object-fit: cover;
  object-position: top;
  display: block;
  background: #c7d0e8;
}

.m-info { padding: 12px 14px; }

.m-header-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 4px;
}

.m-header-row strong {
  font-size: 0.9rem;
  font-weight: 700;
  color: #1a1a2e;
}

.m-id {
  font-size: 0.7rem;
  font-weight: 600;
  color: #6366f1;
  font-family: var(--font-mono);
}

.m-role {
  display: block;
  font-size: 0.72rem;
  color: #9ca3af;
  margin-bottom: 6px;
}

.m-bio {
  font-size: 0.72rem;
  line-height: 1.55;
  color: #6b7280;
  font-style: italic;
}

/* Matcher actions */
.matcher-actions {
  display: flex;
  justify-content: center;
  gap: 14px;
  z-index: 2;
}

.ma-btn {
  width: 44px; height: 44px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.95rem;
  border: 1px solid #e8eaf0;
  background: #ffffff;
  box-shadow: 0 3px 10px rgba(0,0,0,0.06);
  transition: transform 0.2s var(--ease-spring), box-shadow 0.2s;
}

.ma-btn.skip { color: #ef4444; }
.ma-btn.skip:hover { transform: scale(1.12); box-shadow: 0 6px 18px rgba(239,68,68,0.18); }
.ma-btn.like { color: #10b981; }
.ma-btn.like:hover { transform: scale(1.12); box-shadow: 0 6px 18px rgba(16,185,129,0.18); }

.match-toast {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%) scale(0.8);
  background: var(--grad-primary);
  color: #fff;
  padding: 10px 22px;
  border-radius: 100px;
  font-weight: 700;
  font-size: 0.88rem;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s var(--ease-spring);
  white-space: nowrap;
  box-shadow: 0 8px 30px rgba(99,102,241,0.35);
  z-index: 10;
}

.match-toast.show {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

/* Swipe animations */
.swipe-right { animation: swipeRight 0.4s var(--ease-out) forwards; }
.swipe-left  { animation: swipeLeft  0.4s var(--ease-out) forwards; }
@keyframes swipeRight { to { transform: translateX(120%) rotate(15deg); opacity: 0; } }
@keyframes swipeLeft  { to { transform: translateX(-120%) rotate(-15deg); opacity: 0; } }

/* ── CLI Window ── */
.cli-window {
  background: #0f172a;
  border-radius: 10px;
  overflow: hidden;
  margin-top: 4px;
  flex: 1;
}

.cli-bar {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 8px 12px;
  background: rgba(255,255,255,0.03);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.cli-dot { width: 10px; height: 10px; border-radius: 50%; }
.cli-dot.r { background: #ff5f57; }
.cli-dot.y { background: #febc2e; }
.cli-dot.g { background: #28c840; }

.cli-filename {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: #64748b;
  margin-left: 4px;
}

.cli-body {
  padding: 12px 14px;
  font-family: var(--font-mono);
  font-size: 0.73rem;
  line-height: 1.65;
  min-height: 80px;
}

.cli-line { display: flex; gap: 8px; }
.cli-prompt { color: #818cf8; font-weight: bold; }

#cli-cmd { color: #e2e8f0; }

.cli-out {
  color: #94a3b8;
  white-space: pre-line;
  margin-top: 5px;
  transition: opacity 0.15s ease;
}

/* ── Git Visual ── */
.git-visual {
  background: #f8fafc;
  border: 1px solid #e8eaf0;
  border-radius: 10px;
  padding: 14px 12px 10px;
  margin-top: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.git-svg {
  width: 100%;
  height: auto;
  display: block;
}

.git-pulse {
  animation: gitPulse 2s ease-in-out infinite;
}

@keyframes gitPulse {
  0%, 100% { r: 5; }
  50% { r: 7; }
}

/* console card inner layout */
.b-console {
  display: flex;
  flex-direction: column;
}

.b-console .cli-window {
  flex: 1;
  min-height: 120px;
}


/* ──────────────────────────────────────────────
   FAQ SECTION
   ────────────────────────────────────────────── */
.faq-section {
  position: relative;
  background: #ffffff;
  border-top: none;
  overflow: hidden;
  padding: var(--section-py) 0;
}

.faq-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 300px;
  background: radial-gradient(ellipse at center, rgba(99, 102, 241, 0.03) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.faq-section::after {
  display: none;
}

.faq-section .container {
  position: relative;
  z-index: 1;
}

.faq-section .section-title {
  color: #0f172a;
  font-family: var(--font-head);
  font-size: clamp(2rem, 3.5vw, 2.5rem);
  font-weight: 700;
  margin-bottom: 12px;
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.faq-section .section-eyebrow {
  display: none;
}

.faq-section .section-desc {
  color: #64748b;
  font-size: 0.95rem;
  max-width: 520px;
  margin-bottom: 48px;
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 40px;
}

.faq-item {
  background: rgba(248, 250, 252, 0.65);
  border: 1px solid rgba(226, 232, 240, 0.8);
  border-radius: 12px;
  padding: 0 24px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.01), inset 0 1px 1px rgba(255, 255, 255, 0.8);
  transition: all 0.3s var(--ease-out);
}

.faq-item:hover {
  background: rgba(248, 250, 252, 0.9);
  border-color: rgba(99, 102, 241, 0.3);
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.04), inset 0 1px 1px rgba(255, 255, 255, 0.9);
}

.faq-item.open {
  border-color: rgba(99, 102, 241, 0.4);
  background: #ffffff;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.04), inset 0 1px 1px rgba(255, 255, 255, 0.9);
}

.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 0;
  font-size: 0.975rem;
  font-weight: 600;
  color: #1e293b;
  text-align: left;
  transition: color 0.2s;
}

.faq-q:hover { color: #3B82F6; }

.faq-icon {
  font-size: 0.9rem;
  color: #94a3b8;
  flex-shrink: 0;
  transition: transform 0.3s var(--ease-out), color 0.2s;
}

.faq-item.open .faq-icon {
  transform: rotate(45deg);
  color: #3B82F6;
}

.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s var(--ease-out);
}

.faq-a p {
  font-size: 0.875rem;
  line-height: 1.7;
  color: #475569;
  padding-bottom: 20px;
}

.faq-item.open .faq-a { max-height: 200px; }

/* ──────────────────────────────────────────────
   CTA SECTION
   ────────────────────────────────────────────── */
.cta-section {
  position: relative;
  background: #ffffff;
  padding: var(--section-py) 0;
  overflow: hidden;
}

.cta-section::before { display: none; }

.cta-card {
  background: #eaecf5;
  border: 1px solid rgba(200, 205, 230, 0.5);
  border-radius: 20px;
  padding: clamp(40px, 5vw, 64px) clamp(36px, 6vw, 72px);
  position: relative;
  overflow: visible;
  box-shadow: 0 4px 24px rgba(99, 102, 241, 0.04), 0 1px 4px rgba(0,0,0,0.03);
}

.cta-content {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
  position: relative;
  z-index: 1;
}

.cta-title {
  font-family: var(--font-head);
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 800;
  line-height: 1.2;
  color: #0f172a;
  margin-bottom: 14px;
  letter-spacing: -0.02em;
}

.cta-sub {
  font-size: 0.9rem;
  line-height: 1.65;
  color: #64748b;
  margin-bottom: 32px;
  max-width: 420px;
}

.cta-form {
  background: #f5f6fb;
  border: 1px solid #dde1ef;
  border-radius: 100px;
  padding: 7px 7px 7px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 440px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
  transition: border-color 0.3s, box-shadow 0.3s;
}

.cta-form:focus-within {
  border-color: rgba(99, 102, 241, 0.35);
  box-shadow: 0 2px 16px rgba(99, 102, 241, 0.08);
}

.cta-input {
  flex: 1;
  background: transparent;
  border: none;
  padding: 10px 0;
  font-size: 0.9rem;
  color: #0f172a;
  outline: none;
  font-family: var(--font-sans);
}

.cta-input::placeholder { color: #94a3b8; }

.cta-success {
  display: none;
  align-items: center;
  gap: 10px;
  padding: 14px 20px;
  background: rgba(34, 197, 94, 0.06);
  border: 1px solid rgba(34, 197, 94, 0.15);
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  font-weight: 600;
  color: #15803d;
  margin-top: 16px;
  max-width: 440px;
}

.cta-success.visible { display: flex; }
.cta-success i { font-size: 1.1rem; }

.cta-form .btn-glow {
  background: #111827;
  color: #ffffff;
  border-radius: 100px;
  padding: 13px 26px;
  font-weight: 600;
  font-size: 0.875rem;
  transition: all 0.2s var(--ease-out);
  box-shadow: none;
  border: none;
  white-space: nowrap;
}

.cta-form .btn-glow:hover {
  background: #1e293b;
  transform: scale(1.02);
}

/* Code Terminal */
.cta-right {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 200px;
}

/* Large purple ambient blob BEHIND the terminal */
.cta-right::before {
  content: '';
  position: absolute;
  width: 340px;
  height: 340px;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.45) 0%, rgba(167, 139, 250, 0.25) 35%, transparent 70%);
  pointer-events: none;
  z-index: 0;
  border-radius: 50%;
  filter: blur(20px);
}

.code-terminal {
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(139, 92, 246, 0.08), 0 2px 8px rgba(0,0,0,0.04);
  width: 300px;
  height: 148px;
  position: relative;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  display: flex;
  flex-direction: column;
  z-index: 1;
}

.ct-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 12px 16px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}

.ct-dot {
  width: 10px; height: 10px; border-radius: 50%;
}
.ct-dot.r { background: #ff5f57; }
.ct-dot.y { background: #febc2e; }
.ct-dot.g { background: #28c840; }

.ct-body {
  flex: 1;
  display: flex;
  align-items: center;
  padding: 0 22px 8px;
  position: relative;
}

.ct-code-line {
  font-family: var(--font-sans);
  font-size: 2rem;
  font-weight: 400;
  color: #1e293b;
  display: flex;
  align-items: center;
  letter-spacing: -0.01em;
}

.ct-cursor-pipe {
  color: #1e293b;
  animation: blink 1.1s step-end infinite;
  margin-left: 1px;
  font-weight: 300;
  font-size: 2rem;
}

.ct-mouse-pointer {
  position: absolute;
  bottom: -14px;
  right: 48px;
  pointer-events: none;
  animation: pointerFloat 3s ease-in-out infinite;
  z-index: 2;
}

.ct-mouse-pointer svg {
  width: 36px;
  height: 36px;
  filter: drop-shadow(2px 3px 4px rgba(0,0,0,0.25));
}

@keyframes pointerFloat {
  0%, 100% { transform: translateY(0) translateX(0); }
  50% { transform: translateY(-5px) translateX(3px); }
}

@keyframes blink {
  from, to { opacity: 1; }
  50% { opacity: 0; }
}

/* ──────────────────────────────────────────────
   FOOTER
   ────────────────────────────────────────────── */
.site-footer {
  padding: 80px 0 32px;
  background: #ffffff;
  border-top: none;
  position: relative;
  z-index: 1;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 64px;
}

.footer-logo {
  height: 40px;
  width: auto;
  object-fit: contain;
  margin-bottom: 16px;
  filter: brightness(0.1);
}

.footer-tagline {
  font-size: 0.85rem;
  line-height: 1.7;
  color: #475569;
  margin-bottom: 20px;
}

.footer-socials {
  display: flex;
  gap: 12px;
}

.footer-socials a {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  color: #475569;
  transition: all 0.2s;
}

.footer-socials a:hover {
  color: #ffffff;
  border-color: #3B82F6;
  background: #3B82F6;
}

.footer-links-col h4 {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #64748b;
  margin-bottom: 18px;
}

.footer-links-col ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links-col ul a {
  font-size: 0.875rem;
  color: #475569;
  transition: color 0.2s;
}

.footer-links-col ul a:hover { color: #3B82F6; }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 28px;
  border-top: 1px solid #e2e8f0;
  flex-wrap: wrap;
}

.footer-bottom p {
  font-size: 0.8rem;
  color: #64748b;
}

.footer-legal {
  display: flex;
  gap: 20px;
}

.footer-legal a {
  font-size: 0.8rem;
  color: #64748b;
  transition: color 0.2s;
}

.footer-legal a:hover { color: #3B82F6; }

/* ──────────────────────────────────────────────
   RESPONSIVE
   ────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .hackateer-interactive { gap: 10px; }
  .left-column, .right-column { gap: 8px; }

  .bento-grid { grid-template-columns: 1.4fr 1fr; }
  .b-timeline { grid-column: 1; grid-row: 1 / 3; }
  .b-matcher  { grid-column: 2; grid-row: 1 / 3; }
  .b-console  { display: none; }
  .b-github   { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}

@media (max-width: 768px) {
  .site-header {
    padding: 8px 16px;
    width: calc(100% - 24px);
    top: 12px;
  }
  
  .nav-brand {
    font-size: 1.25rem;
  }

  .nav-links, .nav-actions { display: none; }
  .hamburger { display: flex; }
  
  /* Make side illustrations (left and right door) visible on mobile */
  .left-column, .right-column { display: flex; width: 32%; }
  .center-column { width: 32%; }
  .hackateer-interactive { gap: 8px; margin: 20px auto; }
  
  .hero-hackateer { padding: 120px 20px 60px; }
  
  .hackateer-stats-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    padding-top: 24px;
  }
  
  .graph-static-image {
    transform: scale(1.08);
    clip-path: inset(4% 4% 4% 4%);
  }
  
  /* Stack all bento cards */
  .bento-grid { grid-template-columns: 1fr; }
  .b-timeline { grid-column: 1; grid-row: auto; }
  .b-matcher  { grid-column: 1; grid-row: auto; }
  .b-console  { grid-column: 1; grid-row: auto; display: flex; }
  .b-github   { grid-column: 1; grid-row: auto; display: block; }
  .cta-content { grid-template-columns: 1fr; }
  .cta-right { display: none; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }

  .cta-card {
    padding: 32px 24px;
  }
  
  .cta-form {
    flex-direction: column;
    align-items: stretch;
    border-radius: 12px;
    padding: 12px;
    gap: 12px;
    background: #f5f6fb;
    width: 100%;
    max-width: 480px;
  }
  
  .cta-input {
    padding: 6px 12px;
    border: 1px solid #dde1ef;
    border-radius: 8px;
    background: #ffffff;
  }
  
  .cta-form .btn-glow {
    width: 100%;
    text-align: center;
    padding: 12px;
  }
}

@media (max-width: 480px) {
  .hackateer-title { font-size: clamp(3rem, 12vw, 4.8rem); }
  .hackateer-stats-row { gap: 16px; }
  .hackateer-stat-val, .hackateer-stat-suffix { font-size: 1.8rem; }
  .hackateer-stat-lbl { font-size: 0.7rem; }
  
  .track-result-overlay {
    padding: 16px;
    margin: 12px;
    width: calc(100% - 24px);
  }
  
  .bento-card {
    padding: 20px 16px;
  }
  
  .cta-card {
    padding: 32px 16px;
  }
}
