/* ═══════════════════════════════════════════════════
   Footprint v2 — Supabase-inspired dark theme
   Fonts: Geist (UI) + JetBrains Mono (code)
   ═══════════════════════════════════════════════════ */

:root {
  --bg:        #0a0a0a;
  --bg-raised: #111111;
  --bg-card:   #161616;
  --surface:   #1c1c1c;
  --border:    rgba(255,255,255,0.08);
  --border-strong: rgba(255,255,255,0.14);
  --ink:       #ededed;
  --muted:     #888888;
  --brand:     #3ecf8e;
  --brand-dim: rgba(62,207,142,0.15);
  --brand-strong: #2bb573;
  --accent:    #3ecf8e;
  --danger:    #f87171;
  --shadow:    0 8px 30px rgba(0,0,0,0.45);
  --radius-xl: 20px;
  --radius-lg: 14px;
  --radius-md: 10px;
  --radius-sm: 6px;
  --content:   1120px;
  --font-sans: 'Geist', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', 'Consolas', monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  background: var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
img { display: block; max-width: 100%; }
code { font-family: var(--font-mono); font-size: 0.9em; }

/* ─── SHELL ─── */
.shell { width: min(calc(100% - 40px), var(--content)); margin: 0 auto; }

/* ─── GLOW EFFECTS ─── */
.glow {
  position: absolute; border-radius: 50%; pointer-events: none;
  filter: blur(120px); opacity: 0.25; z-index: 0;
}
.glow-hero {
  width: 600px; height: 600px; top: -200px; left: 50%;
  transform: translateX(-50%);
  background: radial-gradient(circle, var(--brand) 0%, transparent 70%);
}
.glow-mid {
  width: 500px; height: 500px; top: 50%; right: -150px;
  background: radial-gradient(circle, var(--brand) 0%, transparent 70%);
  opacity: 0.12;
}
.glow-bottom {
  width: 500px; height: 500px; bottom: -100px; left: -100px;
  background: radial-gradient(circle, var(--brand) 0%, transparent 70%);
  opacity: 0.12;
}

/* ─── HEADER ─── */
.site-header {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(16px);
  background: rgba(10,10,10,0.82);
  border-bottom: 1px solid var(--border);
}
.header-row {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; min-height: 64px;
}
.brand {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none; color: var(--ink);
  font-weight: 600; font-size: 1.05rem; letter-spacing: -0.01em;
}
.brand-icon { border-radius: 8px; }
.header-links { display: flex; gap: 6px; }
.header-links a {
  padding: 6px 14px; border-radius: 999px; color: var(--muted);
  font-size: 0.9rem; font-weight: 500; text-decoration: none;
  transition: color 0.15s, background 0.15s;
}
.header-links a:hover { color: var(--ink); background: rgba(255,255,255,0.06); }
.header-right { display: flex; align-items: center; gap: 10px; }
.language-switch { display: flex; gap: 4px; }
.chip {
  padding: 5px 10px; border-radius: 999px; font-size: 0.82rem;
  font-weight: 500; color: var(--muted); background: transparent;
  border: 1px solid var(--border); text-decoration: none;
  transition: all 0.15s;
}
.chip:hover { color: var(--ink); border-color: var(--border-strong); text-decoration: none; }
.chip.active { color: var(--bg); background: var(--brand); border-color: var(--brand); }
.gh-link {
  color: var(--muted); display: flex; align-items: center;
  transition: color 0.15s;
}
.gh-link:hover { color: var(--ink); }

/* ─── HERO ─── */
.hero {
  position: relative; padding: 80px 0 40px; text-align: center;
}
.badge {
  display: inline-block; padding: 6px 16px; border-radius: 999px;
  background: var(--brand-dim); color: var(--brand);
  font-size: 0.85rem; font-weight: 600; letter-spacing: 0.02em;
}
.hero h1 {
  margin: 24px auto 20px; max-width: 800px;
  font-size: clamp(2.6rem, 5.5vw, 4.2rem);
  font-weight: 700; line-height: 1.05; letter-spacing: -0.04em;
}
.hero-sub {
  margin: 0 auto 32px; max-width: 600px;
  color: var(--muted); font-size: 1.1rem; line-height: 1.7;
}
.hero-actions {
  display: flex; justify-content: center; flex-wrap: wrap; gap: 12px;
  margin-bottom: 48px;
}

/* ─── BUTTONS ─── */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 12px 22px; border-radius: 999px; font-weight: 600;
  font-size: 0.95rem; text-decoration: none;
  transition: transform 0.15s, box-shadow 0.15s, background 0.15s;
}
.btn:hover { transform: translateY(-1px); text-decoration: none; }
.btn-primary {
  background: var(--brand); color: #0a0a0a;
  box-shadow: 0 0 20px rgba(62,207,142,0.25);
}
.btn-primary:hover { background: var(--brand-strong); box-shadow: 0 0 30px rgba(62,207,142,0.35); }
.btn-ghost {
  color: var(--ink); border: 1px solid var(--border-strong);
  background: rgba(255,255,255,0.04);
}
.btn-ghost:hover { background: rgba(255,255,255,0.08); }

/* ─── TERMINAL ─── */
.terminal {
  max-width: 680px; margin: 0 auto; border-radius: var(--radius-lg);
  background: #0d0d0d; border: 1px solid var(--border-strong);
  box-shadow: var(--shadow); overflow: hidden; text-align: left;
}
.terminal-bar {
  display: flex; align-items: center; gap: 8px;
  padding: 12px 16px; background: #161616; border-bottom: 1px solid var(--border);
}
.terminal-dot { width: 12px; height: 12px; border-radius: 50%; }
.terminal-title {
  flex: 1; text-align: center; color: var(--muted);
  font-size: 0.8rem; font-weight: 500; margin-right: 44px;
}
.terminal-body {
  padding: 20px; font-family: var(--font-mono); font-size: 14px;
  line-height: 1.8; min-height: 220px;
}
.term-line { white-space: nowrap; }
.term-prompt { color: var(--brand); font-weight: 500; }
.term-output { color: var(--muted); }
.term-success { color: var(--brand); }
.term-info { color: #f0c040; }
.term-highlight { color: var(--brand); font-weight: 500; }
.term-cursor {
  display: inline-block; animation: blink 1s step-end infinite;
  color: var(--brand);
}
@keyframes blink { 50% { opacity: 0; } }

/* ─── SECTIONS ─── */
.section { position: relative; padding: 64px 0; }
.section-heading { margin-bottom: 32px; }
.section-heading h2 {
  margin: 0 0 10px; font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 700; letter-spacing: -0.03em;
}
.section-heading p { margin: 0; color: var(--muted); max-width: 600px; line-height: 1.7; }

/* ─── GRIDS ─── */
.grid-2, .grid-3, .grid-4, .ps-grid { display: grid; gap: 16px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.ps-grid { grid-template-columns: repeat(2, 1fr); }

/* ─── PROBLEM / SOLUTION ─── */
.ps-card {
  padding: 28px; border-radius: var(--radius-xl);
  border: 1px solid var(--border);
}
.ps-card h3 { margin: 12px 0 8px; font-size: 1.25rem; font-weight: 600; letter-spacing: -0.02em; }
.ps-card p { margin: 0; color: var(--muted); line-height: 1.7; }
.ps-label {
  font-size: 0.78rem; font-weight: 600; letter-spacing: 0.06em;
  text-transform: uppercase;
}
.ps-problem { background: rgba(248,113,113,0.06); border-color: rgba(248,113,113,0.15); }
.ps-problem .ps-label { color: var(--danger); }
.ps-solution { background: var(--brand-dim); border-color: rgba(62,207,142,0.2); }
.ps-solution .ps-label { color: var(--brand); }

/* ─── SCREENSHOT CARDS ─── */
.screenshot-card {
  border-radius: var(--radius-lg); overflow: hidden;
  background: var(--bg-card); border: 1px solid var(--border);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.screenshot-card:hover {
  border-color: var(--border-strong);
  box-shadow: 0 8px 40px rgba(0,0,0,0.35);
}
.screenshot-card img { width: 100%; border-bottom: 1px solid var(--border); }
.screenshot-card.small img { aspect-ratio: 16/10; object-fit: cover; }
.sc-copy { padding: 18px; }
.sc-copy h3 { margin: 0 0 6px; font-size: 1rem; font-weight: 600; }
.sc-copy p { margin: 0; color: var(--muted); font-size: 0.9rem; line-height: 1.6; }

/* ─── FEATURE CARDS ─── */
.feature-card {
  padding: 24px; border-radius: var(--radius-lg);
  background: var(--bg-card); border: 1px solid var(--border);
  transition: border-color 0.2s;
}
.feature-card:hover { border-color: var(--border-strong); }
.fc-icon {
  width: 44px; height: 44px; border-radius: var(--radius-md);
  background: var(--brand-dim); color: var(--brand);
  display: grid; place-items: center; margin-bottom: 14px;
}
.feature-card h3 { margin: 0 0 8px; font-size: 1.05rem; font-weight: 600; letter-spacing: -0.01em; }
.feature-card p { margin: 0; color: var(--muted); line-height: 1.65; font-size: 0.92rem; }
.feature-card code {
  padding: 2px 6px; border-radius: 4px;
  background: rgba(255,255,255,0.06); font-size: 0.85em;
}

/* ─── CODE BLOCK ─── */
.code-block-wrap {
  position: relative; border-radius: var(--radius-lg);
  background: #0d0d0d; border: 1px solid var(--border-strong);
  overflow: hidden;
}
.copy-btn {
  position: absolute; top: 12px; right: 12px;
  padding: 5px 14px; border-radius: 999px;
  background: rgba(255,255,255,0.08); border: 1px solid var(--border);
  color: var(--muted); font-size: 0.8rem; font-weight: 500;
  cursor: pointer; transition: all 0.15s;
}
.copy-btn:hover { background: rgba(255,255,255,0.14); color: var(--ink); }
.code-block {
  margin: 0; padding: 24px; font-family: var(--font-mono);
  font-size: 14px; line-height: 1.8; overflow-x: auto; color: var(--ink);
}
.code-comment { color: #555; }

/* ─── STEPS ─── */
.steps { display: grid; gap: 12px; margin-top: 24px; }
.step {
  display: flex; align-items: flex-start; gap: 16px;
  padding: 18px; border-radius: var(--radius-lg);
  background: var(--bg-card); border: 1px solid var(--border);
}
.step-num {
  flex-shrink: 0; width: 32px; height: 32px; border-radius: 50%;
  background: var(--brand-dim); color: var(--brand);
  display: grid; place-items: center; font-weight: 700; font-size: 0.9rem;
}
.step strong { display: block; margin-bottom: 4px; }
.step p { margin: 0; color: var(--muted); line-height: 1.6; font-size: 0.92rem; }
.step code {
  padding: 1px 5px; border-radius: 4px;
  background: rgba(255,255,255,0.06); font-size: 0.85em;
}

/* ─── PATH CARDS ─── */
.path-card {
  padding: 22px; border-radius: var(--radius-lg);
  background: var(--bg-card); border: 1px solid var(--border);
}
.path-card h3 { margin: 0 0 12px; font-size: 1rem; font-weight: 600; }
.path-card ul { margin: 0; padding: 0; list-style: none; }
.path-card li { padding: 6px 0; }
.path-card a { color: var(--brand); font-size: 0.9rem; font-weight: 500; }

/* ─── BLOG PLACEHOLDER ─── */
.blog-card.placeholder {
  border-radius: var(--radius-lg);
  border: 1px dashed var(--border-strong);
  background: transparent;
}
.blog-placeholder-inner {
  display: grid; place-items: center; min-height: 160px;
  color: var(--muted); font-size: 0.9rem; font-weight: 500;
}

/* ─── FOOTER ─── */
.site-footer { padding: 64px 0 32px; border-top: 1px solid var(--border); }
.footer-grid { display: flex; justify-content: space-between; gap: 48px; }
.footer-brand {
  display: flex; flex-direction: column; gap: 6px;
  font-weight: 600; font-size: 1rem;
}
.footer-brand .brand-icon { margin-bottom: 4px; border-radius: 8px; }
.footer-tagline { color: var(--muted); font-weight: 400; font-size: 0.88rem; line-height: 1.5; margin: 6px 0 0; }
.footer-links { display: flex; gap: 56px; }
.footer-links div { display: flex; flex-direction: column; gap: 8px; }
.footer-links h4 { margin: 0 0 4px; font-size: 0.85rem; font-weight: 600; color: var(--ink); }
.footer-links a { color: var(--muted); font-size: 0.88rem; text-decoration: none; transition: color 0.15s; }
.footer-links a:hover { color: var(--ink); }
.footer-bottom {
  margin-top: 40px; padding-top: 20px;
  border-top: 1px solid var(--border);
  color: var(--muted); font-size: 0.82rem;
}

/* ─── RESPONSIVE ─── */
@media (max-width: 980px) {
  .grid-3, .grid-4, .ps-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { flex-direction: column; gap: 32px; }
  .footer-links { gap: 32px; flex-wrap: wrap; }
}

@media (max-width: 700px) {
  .grid-2, .grid-3, .grid-4, .ps-grid { grid-template-columns: 1fr; }
  .header-row { flex-wrap: wrap; min-height: auto; padding: 12px 0; }
  .header-links { display: none; }
  .hero { padding-top: 48px; }
  .hero h1 { font-size: clamp(2rem, 10vw, 2.8rem); }
  .hero-actions { flex-direction: column; align-items: center; }
  .btn { width: 100%; max-width: 320px; }
  .terminal { margin: 0 -4px; }
  .footer-links { gap: 24px; }
}
