/* ═══════════════════════════════════════════════════════════════
   folera.ai — landing page styles
   ═══════════════════════════════════════════════════════════════ */

/* ─── Reset ─────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; scroll-behavior: smooth; }

/* ─── Design tokens ─────────────────────────────────────────── */
:root {
  --navy:          #324158;
  --navy-deep:     #1e2a3a;
  --accent:        #4458D6;
  --accent-hover:  #3647C2;
  --accent-soft:   #EAECFB;
  --ink:           #324158;
  --ink-soft:      #5E6E84;
  --ink-muted:     #8A9BB0;
  --surface:       #FFFFFF;
  --canvas:        #F6F7FA;
  --border:        #E2E6ED;
  --border-soft:   #EDF0F4;
  --font-display:  'Space Grotesk', sans-serif;
  --font-body:     'DM Sans', sans-serif;
  --font-mono:     'JetBrains Mono', monospace;
  --radius-sm:     6px;
  --radius-md:     10px;
  --radius-lg:     14px;
  --radius-xl:     18px;
  --shadow-sm:     0 1px 3px rgba(50,65,88,0.07), 0 1px 2px rgba(50,65,88,0.04);
  --shadow-md:     0 4px 16px rgba(50,65,88,0.10), 0 1px 4px rgba(50,65,88,0.06);
  --shadow-hover:  0 8px 32px rgba(68,88,214,0.14), 0 2px 8px rgba(68,88,214,0.08);
}

/* ─── Base ───────────────────────────────────────────────────── */
body {
  font-family: var(--font-body);
  background: var(--canvas);
  color: var(--ink);
  line-height: 1.6;
}

.mono { font-family: var(--font-mono); }
.accent { color: var(--accent); }
.code-inline {
  font-family: var(--font-mono);
  font-size: 0.88em;
  background: var(--accent-soft);
  color: var(--accent);
  padding: 1px 6px;
  border-radius: 4px;
}

/* ─── Nav ────────────────────────────────────────────────────── */
.nav {
  position: sticky;
  top: 0;
  z-index: 200;
  background: rgba(246,247,250,0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 32px;
  height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 17px;
  color: var(--navy);
  letter-spacing: -0.3px;
}
.logo-dot { color: var(--accent); }
.logo-sm  { font-size: 15px; }
.nav-right { display: flex; align-items: center; gap: 4px; }
.nav-link {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--ink-soft);
  transition: color 0.15s, background 0.15s;
}
.nav-link:hover { color: var(--navy); background: var(--surface); }

/* ═══════════════════════════════════════════════════════════════
   HERO
   ═══════════════════════════════════════════════════════════════ */
.hero {
  position: relative;
  background: var(--navy-deep);
  overflow: hidden;
  padding: 100px 32px 88px;
}

/* Noise/grain texture via SVG filter */
.hero-noise {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 200px 200px;
}

/* Subtle radial glow */
.hero::before {
  content: '';
  position: absolute;
  top: -160px;
  left: 50%;
  transform: translateX(-50%);
  width: 700px;
  height: 500px;
  background: radial-gradient(ellipse at center, rgba(68,88,214,0.22) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

/* ─── Badge ──────────────────────────────────────────────────── */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 14px 5px 8px;
  background: rgba(68,88,214,0.18);
  border: 1px solid rgba(68,88,214,0.35);
  border-radius: 100px;
  font-size: 11.5px;
  color: rgba(255,255,255,0.75);
  font-weight: 500;
  letter-spacing: 0.06em;
  margin-bottom: 28px;
}
.badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #5b7cfa;
  box-shadow: 0 0 0 0 rgba(91,124,250,0.5);
  animation: badgePulse 2s ease-in-out infinite;
}
@keyframes badgePulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(91,124,250,0.5); }
  50%       { box-shadow: 0 0 0 5px rgba(91,124,250,0); }
}

/* ─── Headline ───────────────────────────────────────────────── */
.hero-headline {
  font-family: var(--font-display);
  font-size: clamp(48px, 4.2vw, 68px);
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: -2px;
  color: #ffffff;
  margin-bottom: 22px;
}
.hero-free {
  color: #5b7cfa;
  position: relative;
}
.hero-free::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #4458D6, #7b93ff);
  border-radius: 2px;
  opacity: 0.6;
}

/* ─── Cycling subheadline ────────────────────────────────────── */
.hero-sub-wrap {
  min-height: 28px;
  margin-bottom: 20px;
}
.hero-cycling-sub {
  font-family: var(--font-mono);
  font-size: 14.5px;
  color: rgba(255,255,255,0.55);
  letter-spacing: 0.01em;
  transition: opacity 0.35s ease, transform 0.35s ease;
}
.hero-cycling-sub.fade-out {
  opacity: 0;
  transform: translateY(-6px);
}
.hero-cycling-sub.fade-in {
  animation: fadeUp 0.4s ease forwards;
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ─── Body copy ──────────────────────────────────────────────── */
.hero-body {
  font-size: 16.5px;
  color: rgba(255,255,255,0.58);
  line-height: 1.7;
  max-width: 480px;
  margin-bottom: 40px;
}

/* ─── Form ───────────────────────────────────────────────────── */
.hero-form { margin-bottom: 48px; }
.form-row  { display: flex; gap: 8px; max-width: 560px; flex-wrap: wrap; }

.input {
  flex: 1;
  min-width: 140px;
  height: 46px;
  padding: 0 16px;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 14.5px;
  color: var(--ink);
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.input::placeholder { color: var(--ink-muted); }
.input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(68,88,214,0.12); }
.input-email { flex: 2; min-width: 200px; }

/* Dark variant for hero */
.input-dark {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.14);
  color: #fff;
  backdrop-filter: blur(8px);
}
.input-dark::placeholder { color: rgba(255,255,255,0.38); }
.input-dark:focus {
  border-color: rgba(91,124,250,0.7);
  background: rgba(255,255,255,0.12);
  box-shadow: 0 0 0 3px rgba(68,88,214,0.25);
}

.btn-primary {
  height: 46px;
  padding: 0 22px;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 14.5px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s, transform 0.1s, box-shadow 0.15s;
  box-shadow: 0 2px 10px rgba(68,88,214,0.35);
}
.btn-primary:hover  { background: var(--accent-hover); box-shadow: 0 4px 18px rgba(68,88,214,0.45); }
.btn-primary:active { transform: scale(0.98); }
.btn-primary:disabled { opacity: 0.6; cursor: not-allowed; }

.form-note { margin-top: 10px; font-size: 11.5px; color: rgba(255,255,255,0.3); font-family: var(--font-mono); }
.form-success {
  display: none;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 500;
  color: #7d9cff;
  margin-top: 4px;
}

/* ─── Stats row ──────────────────────────────────────────────── */
.hero-stats { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }
.stat { display: flex; flex-direction: column; gap: 3px; }
.stat-num {
  font-size: 22px;
  font-weight: 500;
  color: #fff;
  letter-spacing: -0.5px;
}
.stat-num.accent { color: #7d9cff; }
.stat-label { font-size: 12px; color: rgba(255,255,255,0.38); letter-spacing: 0.01em; }
.stat-divider { width: 1px; height: 34px; background: rgba(255,255,255,0.12); }

/* ─── Terminal ───────────────────────────────────────────────── */
.hero-terminal-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
}
.terminal {
  width: 100%;
  max-width: 420px;
  background: #0d1117;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 24px 80px rgba(0,0,0,0.5), 0 0 0 1px rgba(255,255,255,0.04);
  overflow: hidden;
}
.terminal-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 11px 16px;
  background: #161b22;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.terminal-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
}
.terminal-dot.red    { background: #ff5f57; }
.terminal-dot.yellow { background: #febc2e; }
.terminal-dot.green  { background: #28c840; }
.terminal-title {
  margin-left: 6px;
  font-size: 11px;
  color: rgba(255,255,255,0.3);
  letter-spacing: 0.03em;
}
.terminal-body {
  padding: 20px 20px 24px;
  min-height: 160px;
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.term-line { font-size: 13px; line-height: 1.5; }
.term-cmd   { color: rgba(255,255,255,0.9); }
.term-ok    { color: #3fb950; }
.term-arrow { color: #79c0ff; }
.term-done  { color: #f0e040; font-weight: 500; }

/* Blinking cursor */
.term-cursor {
  display: inline-block;
  width: 8px;
  height: 14px;
  background: rgba(255,255,255,0.75);
  margin-left: 3px;
  vertical-align: text-bottom;
  border-radius: 1px;
  animation: blink 1.1s step-end infinite;
}
@keyframes blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0; }
}

/* ═══════════════════════════════════════════════════════════════
   MARQUEE BAR
   ═══════════════════════════════════════════════════════════════ */
.marquee-section {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 14px 0;
  overflow: hidden;
}
.marquee-track { overflow: hidden; }
.marquee-inner {
  display: flex;
  align-items: center;
  gap: 0;
  width: max-content;
  animation: marquee 28s linear infinite;
}
.marquee-inner:hover { animation-play-state: paused; }

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

.marquee-item {
  font-size: 11.5px;
  font-weight: 500;
  color: var(--ink-muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0 18px;
  white-space: nowrap;
  transition: color 0.2s;
}
.marquee-item:hover { color: var(--accent); }
.marquee-sep {
  color: var(--border);
  font-size: 16px;
  line-height: 1;
  flex-shrink: 0;
}

/* ═══════════════════════════════════════════════════════════════
   SHARED SECTION STYLES
   ═══════════════════════════════════════════════════════════════ */
.section-label-wrap { margin-bottom: 10px; }
.section-label {
  font-size: 10.5px;
  font-weight: 500;
  color: var(--ink-muted);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.section-headline {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.5vw, 42px);
  font-weight: 700;
  color: var(--navy);
  letter-spacing: -1.2px;
  line-height: 1.1;
  margin-bottom: 48px;
}

/* Scroll reveal base state */
.reveal-section,
.who-card,
.how-card,
.tool-card {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.55s cubic-bezier(0.22,1,0.36,1), transform 0.55s cubic-bezier(0.22,1,0.36,1);
}
.reveal-section.revealed,
.who-card.revealed,
.how-card.revealed,
.tool-card.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered children in grids */
.who-grid .who-card:nth-child(1)  { transition-delay: 0ms; }
.who-grid .who-card:nth-child(2)  { transition-delay: 80ms; }
.who-grid .who-card:nth-child(3)  { transition-delay: 160ms; }
.how-grid .how-card:nth-child(1)  { transition-delay: 0ms; }
.how-grid .how-card:nth-child(2)  { transition-delay: 80ms; }
.how-grid .how-card:nth-child(3)  { transition-delay: 160ms; }
#toolsGrid .tool-card:nth-child(1) { transition-delay: 0ms; }
#toolsGrid .tool-card:nth-child(2) { transition-delay: 80ms; }
#toolsGrid .tool-card:nth-child(3) { transition-delay: 160ms; }
#toolsGrid .tool-card:nth-child(4) { transition-delay: 240ms; }

/* ═══════════════════════════════════════════════════════════════
   WHO IT'S FOR
   ═══════════════════════════════════════════════════════════════ */
.who-section { padding: 88px 32px; }
.who-inner   { max-width: 1100px; margin: 0 auto; }
.who-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.who-card {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 28px 26px;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s,
              opacity 0.55s cubic-bezier(0.22,1,0.36,1),
              transform 0.55s cubic-bezier(0.22,1,0.36,1);
}
.who-card:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-hover);
  transform: translateY(-3px);
}
.who-card.revealed:hover { transform: translateY(-3px); }

.who-icon {
  width: 44px;
  height: 44px;
  background: var(--accent-soft);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  margin-bottom: 18px;
}
.who-title {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 10px;
  letter-spacing: -0.3px;
}
.who-desc { font-size: 14px; color: var(--ink-soft); line-height: 1.65; }

/* ═══════════════════════════════════════════════════════════════
   HOW IT WORKS
   ═══════════════════════════════════════════════════════════════ */
.how-section {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 88px 32px;
}
.how-inner { max-width: 1100px; margin: 0 auto; }
.how-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.how-card {
  background: var(--canvas);
  border: 1.5px solid var(--border-soft);
  border-radius: var(--radius-xl);
  padding: 28px 26px;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s,
              opacity 0.55s cubic-bezier(0.22,1,0.36,1),
              transform 0.55s cubic-bezier(0.22,1,0.36,1);
}
.how-card:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-hover);
  transform: translateY(-3px);
}
.how-card.revealed:hover { transform: translateY(-3px); }

.how-icon-wrap {
  width: 44px;
  height: 44px;
  background: var(--accent-soft);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  margin-bottom: 18px;
}
.how-title {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 10px;
  letter-spacing: -0.3px;
}
.how-desc { font-size: 14px; color: var(--ink-soft); line-height: 1.65; }

/* ═══════════════════════════════════════════════════════════════
   TOOLS
   ═══════════════════════════════════════════════════════════════ */
.tools-section { padding: 88px 32px; }
.tools-inner   { max-width: 1100px; margin: 0 auto; }

.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 28px;
}
.view-all {
  font-size: 13px;
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
  margin-bottom: 4px;
  transition: opacity 0.15s;
}
.view-all:hover { opacity: 0.7; }

.filters {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}
.filter {
  padding: 6px 16px;
  border-radius: 100px;
  border: 1.5px solid var(--border);
  background: transparent;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-soft);
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s, background 0.15s;
  letter-spacing: 0.03em;
}
.filter:hover { border-color: var(--accent); color: var(--accent); }
.filter.active { background: var(--accent); border-color: var(--accent); color: #fff; }

.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 18px;
}

.tool-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 22px 22px 20px;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s,
              opacity 0.55s cubic-bezier(0.22,1,0.36,1),
              transform 0.55s cubic-bezier(0.22,1,0.36,1);
}
.tool-card:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-hover);
  transform: translateY(-3px);
}
.tool-card.revealed:hover { transform: translateY(-3px); }

.tool-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}
.tool-meta { display: flex; align-items: center; gap: 8px; }

/* Category color dots */
.category-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}
.dot-scraper    { background: #f97316; }
.dot-automation { background: var(--accent); }
.dot-agent      { background: #10b981; }
.dot-tool       { background: #a855f7; }

.tag-category { font-size: 10.5px; color: var(--ink-muted); letter-spacing: 0.06em; text-transform: uppercase; }
.tool-github  { color: var(--ink-muted); transition: color 0.15s; }
.tool-github:hover { color: var(--navy); }

.tool-name {
  font-family: var(--font-display);
  font-size: 16.5px;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 8px;
  line-height: 1.35;
  letter-spacing: -0.2px;
}
.tool-desc {
  font-size: 13.5px;
  color: var(--ink-soft);
  line-height: 1.65;
  flex: 1;
  margin-bottom: 14px;
}
.tool-verified {
  font-size: 10.5px;
  color: var(--ink-muted);
  letter-spacing: 0.03em;
  margin-bottom: 18px;
}
.tool-actions { display: flex; gap: 8px; }
.btn-get {
  height: 36px;
  padding: 0 18px;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  font-family: var(--font-body);
  display: flex;
  align-items: center;
  cursor: pointer;
  transition: background 0.15s, box-shadow 0.15s;
  box-shadow: 0 2px 8px rgba(68,88,214,0.28);
}
.btn-get:hover { background: var(--accent-hover); box-shadow: 0 4px 14px rgba(68,88,214,0.4); }
.btn-docs {
  height: 36px;
  padding: 0 18px;
  background: transparent;
  color: var(--ink-soft);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  display: flex;
  align-items: center;
  transition: border-color 0.15s, color 0.15s;
}
.btn-docs:hover { border-color: var(--navy); color: var(--navy); }

/* ═══════════════════════════════════════════════════════════════
   MISSION SECTION
   ═══════════════════════════════════════════════════════════════ */
.mission-section {
  position: relative;
  background: var(--navy-deep);
  padding: 100px 32px;
  overflow: hidden;
}
.mission-noise {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 200px 200px;
}
.mission-section::before {
  content: '';
  position: absolute;
  bottom: -200px;
  right: -100px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(68,88,214,0.18) 0%, transparent 65%);
  pointer-events: none;
}
.mission-inner {
  position: relative;
  z-index: 1;
  max-width: 680px;
  margin: 0 auto;
  text-align: center;
}
.mission-headline {
  font-family: var(--font-display);
  font-size: clamp(34px, 4.5vw, 56px);
  font-weight: 700;
  color: #fff;
  letter-spacing: -2px;
  line-height: 1.08;
  margin: 14px 0 36px;
}
.mission-body {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-bottom: 48px;
}
.mission-body p {
  font-size: 16.5px;
  color: rgba(255,255,255,0.58);
  line-height: 1.75;
  max-width: 600px;
  margin: 0 auto;
}
.btn-ghost {
  display: inline-flex;
  align-items: center;
  height: 48px;
  padding: 0 28px;
  background: transparent;
  color: #fff;
  border: 1.5px solid rgba(255,255,255,0.25);
  border-radius: var(--radius-md);
  text-decoration: none;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  transition: border-color 0.2s, background 0.2s;
}
.btn-ghost:hover {
  border-color: rgba(255,255,255,0.55);
  background: rgba(255,255,255,0.06);
}

/* ═══════════════════════════════════════════════════════════════
   BOTTOM CTA
   ═══════════════════════════════════════════════════════════════ */
.cta-section {
  padding: 96px 32px;
  text-align: center;
}
.cta-inner { max-width: 520px; margin: 0 auto; }
.cta-headline {
  font-family: var(--font-display);
  font-size: clamp(30px, 3.8vw, 44px);
  font-weight: 700;
  color: var(--navy);
  letter-spacing: -1.5px;
  line-height: 1.1;
  margin: 12px 0 12px;
}
.cta-sub {
  font-size: 14px;
  color: var(--ink-muted);
  margin-bottom: 32px;
}
.cta-form { width: 100%; }
.cta-form-row {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
}
.cta-form .input { flex: 1; min-width: 220px; max-width: 300px; }

/* ═══════════════════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════════════════ */
.footer {
  border-top: 1px solid var(--border);
  padding: 30px 32px;
  background: var(--surface);
}
.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-links { display: flex; gap: 4px; flex-wrap: wrap; }
.footer-link {
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  color: var(--ink-soft);
  text-decoration: none;
  transition: color 0.15s;
}
.footer-link:hover { color: var(--navy); }
.footer-copy { font-size: 11.5px; color: var(--ink-muted); font-family: var(--font-mono); }

/* ═══════════════════════════════════════════════════════════════
   QUALIFY PAGE (preserved)
   ═══════════════════════════════════════════════════════════════ */
.qualify-section { min-height: calc(100vh - 58px); display: flex; align-items: center; padding: 64px 24px; }
.qualify-inner { max-width: 560px; margin: 0 auto; width: 100%; }
.qualify-headline { font-family: var(--font-display); font-size: clamp(32px, 5vw, 46px); font-weight: 700; color: var(--navy); letter-spacing: -1.5px; line-height: 1.1; margin-bottom: 12px; }
.qualify-sub { font-size: 15px; color: var(--ink-soft); line-height: 1.6; margin-bottom: 36px; }
.qualify-form { background: var(--surface); border: 1.5px solid var(--border); border-radius: var(--radius-xl); padding: 32px; }
.field { margin-bottom: 20px; }
.field label { display: block; font-size: 13.5px; font-weight: 500; color: var(--navy); margin-bottom: 7px; }
.field .input, .field .textarea, .field .select { width: 100%; }
.textarea { width: 100%; min-height: 100px; padding: 12px 14px; background: var(--canvas); border: 1.5px solid var(--border); border-radius: var(--radius-md); font-family: var(--font-body); font-size: 14px; color: var(--ink); outline: none; resize: vertical; transition: border-color 0.15s, box-shadow 0.15s; line-height: 1.6; }
.textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(68,88,214,0.1); }
.select { height: 44px; padding: 0 14px; background: var(--canvas); border: 1.5px solid var(--border); border-radius: var(--radius-md); font-family: var(--font-body); font-size: 14.5px; color: var(--ink); outline: none; cursor: pointer; appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%235E6E84' d='M6 8L1 3h10z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; transition: border-color 0.15s; }
.select:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(68,88,214,0.1); }
.fields-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.btn-submit { width: 100%; height: 48px; background: var(--accent); color: #fff; border: none; border-radius: var(--radius-md); font-family: var(--font-body); font-size: 15px; font-weight: 600; cursor: pointer; margin-top: 8px; transition: background 0.15s, transform 0.1s; }
.btn-submit:hover { background: var(--accent-hover); }
.btn-submit:active { transform: scale(0.99); }
.qualify-note { margin-top: 16px; font-size: 12px; color: var(--ink-muted); text-align: center; }
.qualify-success { display: none; text-align: center; padding: 40px 20px; }
.qualify-success h3 { font-family: var(--font-display); font-size: 24px; font-weight: 700; color: var(--navy); margin-bottom: 10px; }
.qualify-success p { color: var(--ink-soft); font-size: 15px; }

/* ═══════════════════════════════════════════════════════════════
   TOOL TAGS
   ═══════════════════════════════════════════════════════════════ */
.tool-tags {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}
.tag {
  display: inline-flex;
  align-items: center;
  height: 20px;
  padding: 0 7px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.tag-free     { background: #dcfce7; color: #15803d; }
.tag-new      { background: #dcfce7; color: #15803d; }
.tag-hot      { background: #fef3c7; color: #b45309; }
.tag-featured { background: var(--accent-soft); color: var(--accent); }

/* ═══════════════════════════════════════════════════════════════
   MODAL / REPO DRAWER
   ═══════════════════════════════════════════════════════════════ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(30,42,58,0.6);
  backdrop-filter: blur(4px);
  z-index: 400;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s;
}
.modal-overlay.active { opacity: 1; pointer-events: all; }

.modal {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%) translateY(100%);
  width: 100%;
  max-width: 480px;
  background: var(--surface);
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  padding: 32px 28px 40px;
  z-index: 500;
  transition: transform 0.35s cubic-bezier(0.34,1.56,0.64,1);
  box-shadow: 0 -8px 40px rgba(30,42,58,0.18);
}
.modal.active { transform: translateX(-50%) translateY(0); }

.modal-close {
  position: absolute;
  top: 16px;
  right: 20px;
  background: none;
  border: none;
  font-size: 22px;
  color: var(--ink-muted);
  cursor: pointer;
  line-height: 1;
  padding: 4px;
  border-radius: var(--radius-sm);
  transition: color 0.15s, background 0.15s;
}
.modal-close:hover { color: var(--navy); background: var(--canvas); }

.modal-icon {
  width: 52px;
  height: 52px;
  background: var(--accent-soft);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.modal-title {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 8px;
  letter-spacing: -0.4px;
  line-height: 1.2;
}
.modal-sub {
  font-size: 14px;
  color: var(--ink-soft);
  margin-bottom: 24px;
}
.modal-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.modal-btn { width: 100%; height: 48px; }
.modal-note {
  margin-top: 12px;
  font-size: 11.5px;
  color: var(--ink-muted);
  text-align: center;
}

@media (min-width: 600px) {
  .modal {
    border-radius: var(--radius-xl);
    top: 50%;
    bottom: auto;
    transform: translateX(-50%) translateY(-50%) scale(0.95);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.3s cubic-bezier(0.34,1.4,0.64,1), opacity 0.25s ease;
  }
  .modal.active {
    transform: translateX(-50%) translateY(-50%) scale(1);
    opacity: 1;
    pointer-events: all;
  }
}

/* ═══════════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════════ */
@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .hero-terminal-wrap {
    justify-content: flex-start;
  }
  .terminal { max-width: 100%; }
  .who-grid { grid-template-columns: 1fr 1fr; }
  .how-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .nav-inner { padding: 0 20px; }
  .hero { padding: 72px 20px 64px; }
  .hero-headline { letter-spacing: -1.8px; }
  .who-section, .how-section, .tools-section, .mission-section, .cta-section { padding: 64px 20px; }
  .who-grid  { grid-template-columns: 1fr; }
  .how-grid  { grid-template-columns: 1fr; }
  .section-headline { margin-bottom: 32px; }
  .section-header { flex-direction: column; align-items: flex-start; gap: 8px; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
  .footer { padding: 24px 20px; }
  .mission-headline { letter-spacing: -1.5px; }
  .fields-row { grid-template-columns: 1fr; }
  .qualify-form { padding: 24px 20px; }
}

@media (max-width: 480px) {
  .hero { padding: 56px 16px 52px; }
  .form-row { flex-direction: column; }
  .input-dark, .btn-primary { width: 100%; }
  .cta-form-row { flex-direction: column; align-items: stretch; }
  .cta-form .input { max-width: 100%; }
  .hero-stats { gap: 16px; }
  .who-section, .how-section, .tools-section, .cta-section { padding: 48px 16px; }
  .mission-section { padding: 72px 16px; }
}
