/* ══════════════════════════════════════════
   UNDER THE HOOD v2 — Free API Edition
   ══════════════════════════════════════════ */
:root {
  --bg:      #0a0b0f;
  --surface: #111318;
  --card:    #161820;
  --border:  rgba(255,255,255,0.06);
  --border2: rgba(255,255,255,0.12);
  --accent:  #e8ff57;      /* sharp yellow-green — unexpected, memorable */
  --cyan:    #22d3ee;
  --purple:  #a78bfa;
  --green:   #4ade80;
  --red:     #f87171;
  --amber:   #fbbf24;
  --text:    #f0f2f8;
  --muted:   #6b7280;
  --dim:     #374151;

  --font-display: 'Bebas Neue', sans-serif;
  --font-body:    'Outfit', sans-serif;
  --font-mono:    'JetBrains Mono', monospace;
  --r: 12px;
  --ease: cubic-bezier(0.4,0,0.2,1);
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font-body); background: var(--bg); color: var(--text);
       -webkit-font-smoothing: antialiased; line-height: 1.6; }

/* ── NAV ─────────────────────────────────── */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 100;
  background: rgba(10,11,15,0.88); backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border); height: 60px;
}
.nav-inner {
  max-width: 1200px; margin: 0 auto; height: 100%;
  display: flex; align-items: center; justify-content: space-between; padding: 0 24px;
}
.logo {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none; color: var(--text);
  font-family: var(--font-display); font-size: 18px; letter-spacing: 1px;
}
.logo-sm { font-size: 15px; }
.logo-gear {
  font-size: 20px; color: var(--accent);
  display: inline-block; animation: spin 14s linear infinite;
}
.logo-accent { color: var(--accent); }
@keyframes spin { to { transform: rotate(360deg); } }
.nav-right { display: flex; align-items: center; gap: 24px; }
.nav-link { color: var(--muted); text-decoration: none; font-size: 14px;
            transition: color 0.2s; }
.nav-link:hover { color: var(--text); }
.btn-ghost {
  border: 1px solid var(--border2); border-radius: 8px;
  padding: 7px 18px; color: var(--text); text-decoration: none;
  font-size: 14px; font-weight: 500;
  transition: border-color 0.2s, background 0.2s;
}
.btn-ghost:hover { border-color: var(--accent); background: rgba(232,255,87,0.06); }

/* ── HERO ────────────────────────────────── */
.hero {
  min-height: 100vh; display: grid;
  grid-template-columns: 1fr 420px; gap: 60px;
  align-items: center; max-width: 1200px; margin: 0 auto;
  padding: 80px 24px 60px; position: relative; overflow: hidden;
}
.hero-noise {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E");
  background-size: 200px; opacity: 0.4;
}
.hero-glow {
  position: absolute; border-radius: 50%; filter: blur(120px); pointer-events: none; z-index: 0;
}
.hero-glow-1 { width: 600px; height: 400px; background: rgba(232,255,87,0.04); top: -100px; left: -200px; }
.hero-glow-2 { width: 400px; height: 400px; background: rgba(34,211,238,0.04); bottom: 0; right: 0; }

.hero-content { position: relative; z-index: 1; }
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  background: rgba(232,255,87,0.07); border: 1px solid rgba(232,255,87,0.18);
  color: var(--accent); font-size: 12px; font-family: var(--font-mono);
  padding: 6px 14px; border-radius: 100px; margin-bottom: 28px; letter-spacing: 0.04em;
  animation: fadeup 0.6s ease both;
}
.pulse-dot {
  width: 7px; height: 7px; border-radius: 50%; background: var(--accent);
  box-shadow: 0 0 10px var(--accent);
  animation: pulse 1.8s ease-in-out infinite;
}
@keyframes pulse { 0%,100%{opacity:1;} 50%{opacity:.2;} }

.hero-h1 {
  font-family: var(--font-display); font-size: clamp(52px, 6vw, 88px);
  line-height: 0.95; letter-spacing: 1px; margin-bottom: 20px;
  animation: fadeup 0.6s 0.1s ease both;
}
.hero-stroke {
  -webkit-text-stroke: 2px var(--accent); color: transparent;
}
.hero-p {
  color: var(--muted); font-size: 17px; max-width: 520px; margin-bottom: 36px;
  font-weight: 300; animation: fadeup 0.6s 0.2s ease both;
}

.search-wrap { animation: fadeup 0.6s 0.3s ease both; }
.search-field {
  display: flex; align-items: center;
  background: var(--card); border: 1px solid var(--border2);
  border-radius: 12px; padding: 6px 6px 6px 18px;
  transition: border-color 0.2s, box-shadow 0.2s;
  max-width: 560px;
}
.search-field:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(232,255,87,0.08);
}
.search-ico { width: 18px; height: 18px; color: var(--dim); flex-shrink: 0; }
.search-inp {
  flex: 1; background: none; border: none; outline: none;
  color: var(--text); font-family: var(--font-body); font-size: 15px;
  padding: 8px 12px;
}
.search-inp::placeholder { color: var(--dim); }
.search-cta {
  background: var(--accent); color: #0a0b0f;
  border: none; border-radius: 8px; padding: 10px 22px;
  font-family: var(--font-body); font-weight: 700; font-size: 14px;
  cursor: pointer; white-space: nowrap;
  transition: opacity 0.2s, transform 0.2s;
}
.search-cta:hover { opacity: 0.9; transform: translateX(2px); }
.search-pills { display: flex; gap: 8px; margin-top: 14px; flex-wrap: wrap; }
.pill {
  background: none; border: 1px solid var(--border);
  color: var(--muted); font-size: 12px; font-family: var(--font-mono);
  padding: 5px 12px; border-radius: 100px; cursor: pointer;
  transition: all 0.2s;
}
.pill:hover { border-color: var(--accent); color: var(--accent); }

/* ── HERO VISUAL ─────────────────────────── */
.hero-visual { position: relative; z-index: 1; }
.mock-card {
  background: var(--card); border: 1px solid var(--border2);
  border-radius: 16px; overflow: hidden;
  box-shadow: 0 40px 80px rgba(0,0,0,0.5);
  animation: fadeup 0.7s 0.4s ease both;
}
.mock-header {
  background: var(--surface); padding: 14px 18px;
  display: flex; align-items: center; gap: 8px;
  border-bottom: 1px solid var(--border);
}
.mock-dot { width: 10px; height: 10px; border-radius: 50%; }
.mock-dot.red    { background: #f87171; }
.mock-dot.yellow { background: #fbbf24; }
.mock-dot.green  { background: #4ade80; }
.mock-url {
  margin-left: 8px; font-family: var(--font-mono); font-size: 12px; color: var(--muted);
}
.mock-rows { padding: 20px; display: flex; flex-direction: column; gap: 10px; }
.mock-row { display: flex; justify-content: space-between; align-items: center; }
.mock-label { font-size: 12px; color: var(--muted); font-family: var(--font-mono); }
.mock-val { font-size: 13px; font-weight: 600; font-family: var(--font-mono); }
.tag-cyan   { color: var(--cyan); }
.tag-purple { color: var(--purple); }
.tag-green  { color: var(--green); }

/* ── SOURCES BAR ─────────────────────────── */
.sources-bar {
  background: var(--surface); border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border); padding: 16px 24px;
  overflow: hidden;
}
.sources-inner {
  max-width: 1200px; margin: 0 auto;
  display: flex; align-items: center; gap: 24px; flex-wrap: wrap;
}
.sources-label { font-family: var(--font-mono); font-size: 11px; color: var(--dim);
                 letter-spacing: 0.1em; text-transform: uppercase; white-space: nowrap; }
.sources-list { display: flex; align-items: center; flex-wrap: wrap; gap: 4px; }
.source-item { font-size: 12px; color: var(--muted); display: flex; align-items: center; gap: 6px; }
.source-sep { color: var(--dim); font-size: 14px; }

/* ── FEATURES ────────────────────────────── */
.features { padding: 100px 24px; }
.section-wrap { max-width: 1200px; margin: 0 auto; }
.section-tag {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.15em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 12px;
}
.section-h2 {
  font-family: var(--font-display); font-size: clamp(32px, 4vw, 52px);
  line-height: 1; letter-spacing: 0.5px; margin-bottom: 52px;
}
.feat-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
}
.feat-wide { grid-column: span 2; }
.feat-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--r); padding: 28px;
  transition: border-color 0.22s, transform 0.22s;
  opacity: 0; transform: translateY(16px);
  transition: opacity 0.5s ease, transform 0.5s ease, border-color 0.22s;
}
.feat-card.visible { opacity: 1; transform: translateY(0); }
.feat-card:hover { border-color: var(--border2); }
.feat-icon { font-size: 28px; margin-bottom: 14px; }
.feat-card h3 { font-family: var(--font-display); font-size: 22px; letter-spacing: 0.5px; margin-bottom: 10px; }
.feat-card p { color: var(--muted); font-size: 14px; line-height: 1.7; }
.feat-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.feat-chips span {
  padding: 4px 12px; border-radius: 100px;
  background: rgba(232,255,87,0.06); border: 1px solid rgba(232,255,87,0.15);
  font-size: 11px; color: var(--accent); font-family: var(--font-mono);
}
.btn-accent {
  display: inline-block; margin-top: 18px;
  background: var(--accent); color: #0a0b0f;
  padding: 11px 22px; border-radius: 8px;
  font-weight: 700; font-size: 14px; text-decoration: none;
  transition: opacity 0.2s;
}
.btn-accent:hover { opacity: 0.85; }

/* ── HOW IT WORKS ────────────────────────── */
.how { padding: 40px 24px 100px; }
.how-steps {
  display: flex; align-items: flex-start; gap: 24px; flex-wrap: wrap;
}
.how-step {
  flex: 1; min-width: 200px;
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--r); padding: 28px;
  opacity: 0; transform: translateY(16px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.how-step.visible { opacity: 1; transform: translateY(0); }
.how-num { font-family: var(--font-mono); font-size: 11px; color: var(--accent); margin-bottom: 14px; letter-spacing: 0.1em; }
.how-step h3 { font-family: var(--font-display); font-size: 20px; letter-spacing: 0.5px; margin-bottom: 10px; }
.how-step p { color: var(--muted); font-size: 14px; line-height: 1.7; }
.how-arrow { font-size: 28px; color: var(--dim); padding-top: 48px; flex-shrink: 0; }

/* ── FOOTER ──────────────────────────────── */
.footer { border-top: 1px solid var(--border); padding: 32px 24px; background: var(--surface); }
.footer-inner { max-width: 1200px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; }
.footer-note { font-size: 12px; color: var(--dim); max-width: 480px; }

/* ── UTILITIES ───────────────────────────── */
@keyframes fadeup { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: translateY(0); } }

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual { display: none; }
  .feat-grid { grid-template-columns: 1fr; }
  .feat-wide { grid-column: span 1; }
  .how-arrow { display: none; }
  .how-steps { flex-direction: column; }
  .nav-right a:not(.btn-ghost) { display: none; }
}
