/* ==========================================================================
   GekkoTrix Design System
   Canonical GekkoTech / GekkoFlow visual grammar
   Font: Nunito (display + body) · JetBrains Mono (code)
   Accent: #00ff41 electric green · #ffff00 yellow spark
   ========================================================================== */

/* ── Design Tokens ─────────────────────────────────────────────────────── */
:root {
  /* Surfaces */
  --bg: #000000;
  --surface-1: #0a0a0a;
  --surface-2: #141414;
  --surface-3: #1e1e24;
  --surface-hover: #22222a;

  /* Brand */
  --gekko-green: #00ff41;
  --gekko-green-dim: #00cc33;
  --gekko-green-glow: rgba(0, 255, 65, 0.12);
  --gekko-green-border: rgba(0, 255, 65, 0.35);
  --gekko-yellow: #ffff00;
  --gekko-yellow-glow: rgba(255, 255, 0, 0.10);

  /* Text */
  --text-primary: #ffffff;
  --text-secondary: #9ca3af;
  --text-muted: #6b7280;

  /* Borders */
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.18);

  /* Typography */
  --font-sans: 'Nunito', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Geometry */
  --radius-pill: 9999px;
  --radius-card: 16px;
  --radius-inner: 10px;

  /* Elevation */
  --shadow-card: 0 24px 80px rgba(0, 0, 0, 0.50);
  --shadow-glow: 0 0 60px rgba(0, 255, 65, 0.12);

  /* Motion */
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --dur: 180ms;
}

/* ── Reset ─────────────────────────────────────────────────────────────── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main { flex: 1 0 auto; }

::selection { background: var(--gekko-green); color: #000; }

a { color: var(--gekko-green); text-decoration: none; }
a:hover { text-decoration: underline; }

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

/* ── Layout primitives ─────────────────────────────────────────────────── */
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.section { padding: 88px 0; border-top: 1px solid var(--border-subtle); }
.section--tight { padding: 56px 0; }

/* ── Typography ────────────────────────────────────────────────────────── */
h1, h2, h3, h4 {
  font-family: var(--font-sans);
  color: var(--text-primary);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.5px;
}

h1 { font-size: clamp(2.25rem, 5vw, 3.75rem); font-weight: 900; }
h2 { font-size: clamp(1.75rem, 3.5vw, 2.5rem); }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.05rem; }

.lead {
  color: var(--text-secondary);
  font-size: 1.1rem;
  max-width: 680px;
  line-height: 1.7;
}

.text-green { color: var(--gekko-green); }
.text-yellow { color: var(--gekko-yellow); }
.text-muted { color: var(--text-muted); }
.mono { font-family: var(--font-mono); }

/* Color-split headline (signature GekkoTech treatment) */
.split-headline .punch { color: var(--gekko-green); }

/* ── Eyebrow badge ─────────────────────────────────────────────────────── */
.gekko-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 15px;
  border-radius: var(--radius-pill);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gekko-green);
  background: var(--gekko-green-glow);
  border: 1px solid var(--gekko-green-border);
}
.gekko-eyebrow .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--gekko-green);
  box-shadow: 0 0 8px var(--gekko-green);
}

/* ── Buttons ───────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: var(--radius-pill);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 800;
  border: none;
  cursor: pointer;
  transition: transform var(--dur) var(--ease-out),
              box-shadow var(--dur) var(--ease-out),
              background var(--dur) var(--ease-out),
              border-color var(--dur) var(--ease-out);
}
.btn:hover { transform: translateY(-2px); text-decoration: none; }
.btn .arrow { transition: transform var(--dur) var(--ease-out); }
.btn:hover .arrow { transform: translateX(3px); }

.btn-primary { background: var(--gekko-green); color: #000; }
.btn-primary:hover {
  background: var(--gekko-green-dim);
  box-shadow: 0 0 0 1px rgba(0,255,65,0.35), 0 12px 36px rgba(0,255,65,0.22);
}
.btn-secondary { background: var(--surface-1); color: var(--text-primary); border: 1px solid var(--border-strong); }
.btn-secondary:hover { background: var(--surface-2); border-color: rgba(255,255,255,0.45); }

/* ── Header / Nav ──────────────────────────────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(0,0,0,0.82);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-subtle);
}
.site-header .nav-row {
  display: flex; align-items: center; justify-content: space-between;
  height: 68px;
}
.brand {
  display: inline-flex; align-items: center; gap: 12px;
  font-weight: 900; font-size: 1.25rem; color: var(--text-primary);
}
.brand:hover { text-decoration: none; }
.brand-bug {
  width: 34px; height: 34px; border-radius: 9px;
  background: var(--surface-2);
  border: 1px solid var(--gekko-green-border);
  display: flex; align-items: center; justify-content: center;
  color: var(--gekko-green); font-weight: 900; font-size: 1.1rem;
  box-shadow: var(--shadow-glow);
}
.brand small {
  color: var(--gekko-green); font-weight: 700; font-size: 0.68rem;
  letter-spacing: 0.08em; text-transform: uppercase; margin-left: 2px;
}

.nav-links { display: flex; align-items: center; gap: 26px; list-style: none; }
.nav-links a {
  color: var(--text-secondary); font-weight: 700; font-size: 0.92rem;
  transition: color var(--dur) var(--ease-out);
}
.nav-links a:hover { color: var(--gekko-green); text-decoration: none; }
.nav-links a.active { color: var(--gekko-green); }

.nav-cta {
  padding: 8px 18px; font-size: 0.82rem;
  border-radius: var(--radius-pill);
  background: var(--gekko-green); color: #000; font-weight: 800;
}
.nav-cta:hover { text-decoration: none; background: var(--gekko-green-dim); }

.nav-toggle {
  display: none; background: none; border: 1px solid var(--border-strong);
  color: var(--text-primary); border-radius: 8px; padding: 8px 12px;
  font-size: 1.2rem; cursor: pointer;
}

/* ── Hero ──────────────────────────────────────────────────────────────── */
.hero {
  position: relative;
  padding: 96px 0 72px;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 70% 20%, rgba(0,255,65,0.10), transparent 55%),
    radial-gradient(circle at 25% 80%, rgba(255,255,0,0.04), transparent 40%);
  pointer-events: none;
}
.hero-inner {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px;
  align-items: center;
}
.hero-copy h1 { margin: 20px 0 18px; }
.hero-copy .lead { margin-bottom: 32px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }

/* Metric stack (signature right-rail treatment) */
.metric-stack { display: flex; flex-direction: column; gap: 28px; }
.metric { border-left: 2px solid var(--gekko-green-border); padding-left: 20px; }
.metric .num {
  font-family: var(--font-sans); font-size: 2.75rem; font-weight: 900;
  line-height: 1; color: var(--text-primary);
}
.metric .label {
  font-size: 0.72rem; font-weight: 800; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--gekko-green); margin-top: 6px;
}

/* ── Cards ─────────────────────────────────────────────────────────────── */
.grid { display: grid; gap: 20px; }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }

.card {
  background: var(--surface-1);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-card);
  padding: 28px;
  transition: transform var(--dur) var(--ease-out),
              border-color var(--dur) var(--ease-out),
              box-shadow var(--dur) var(--ease-out);
}
.card:hover {
  transform: translateY(-3px);
  border-color: var(--gekko-green-border);
  box-shadow: var(--shadow-card);
}
.card .card-tag {
  font-family: var(--font-mono); font-size: 0.72rem; font-weight: 600;
  letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--gekko-green); margin-bottom: 12px;
}
.card h3 { margin-bottom: 10px; }
.card p { color: var(--text-secondary); font-size: 0.94rem; }

/* Build series card */
.build-card { display: flex; flex-direction: column; }
.build-card .meta { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 8px; }
.build-card .status {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 12px; border-radius: var(--radius-pill);
  font-size: 0.72rem; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase;
}
.status--live { color: var(--gekko-green); background: var(--gekko-green-glow); border: 1px solid var(--gekko-green-border); }
.status--recording { color: var(--gekko-yellow); background: var(--gekko-yellow-glow); border: 1px solid rgba(255,255,0,0.3); }
.status--planned { color: var(--text-secondary); background: var(--surface-2); border: 1px solid var(--border-subtle); }

.tool-chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 13px; border-radius: var(--radius-pill);
  background: var(--surface-2); border: 1px solid var(--border-subtle);
  font-family: var(--font-mono); font-size: 0.75rem; color: var(--text-secondary);
}

/* ── Filter bar ────────────────────────────────────────────────────────── */
.filter-bar { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 28px; }
.filter-chip {
  padding: 8px 18px; border-radius: var(--radius-pill);
  background: var(--surface-1); border: 1px solid var(--border-subtle);
  color: var(--text-secondary); font-weight: 700; font-size: 0.85rem;
  cursor: pointer; transition: all var(--dur) var(--ease-out);
}
.filter-chip:hover { border-color: var(--border-strong); }
.filter-chip.active {
  background: var(--gekko-green); color: #000; border-color: var(--gekko-green);
}

/* ── Email capture ─────────────────────────────────────────────────────── */
.email-card {
  background: radial-gradient(circle at top right, rgba(0, 255, 65, 0.06), transparent 50%), var(--surface-1);
  border: 1px solid var(--gekko-green-border);
  border-radius: var(--radius-card);
  padding: 48px 36px;
  text-align: center;
  box-shadow: var(--shadow-glow);
}
.email-card form {
  display: flex; gap: 12px; max-width: 520px; margin: 0 auto;
  flex-wrap: wrap; justify-content: center;
}
.email-card input[type="email"] {
  flex: 1; min-width: 240px;
  padding: 14px 20px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-strong);
  background: var(--surface-2);
  color: var(--text-primary);
  font-family: var(--font-sans); font-size: 0.95rem; font-weight: 500;
  outline: none; transition: border-color var(--dur) var(--ease-out);
}
.email-card input[type="email"]:focus {
  border-color: var(--gekko-green);
  box-shadow: 0 0 0 1px var(--gekko-green);
}
#subscribe-status.ok { color: var(--gekko-green); }
#subscribe-status.err { color: #ef4444; }
@media (max-width: 560px) {
  .email-card input[type="email"] { width: 100%; }
}

/* ── Config list ───────────────────────────────────────────────────────── */
.config-item {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 20px 24px; border: 1px solid var(--border-subtle);
  border-radius: var(--radius-inner); background: var(--surface-1);
  transition: border-color var(--dur) var(--ease-out);
}
.config-item:hover { border-color: var(--gekko-green-border); }
.config-item .path { font-family: var(--font-mono); font-size: 0.88rem; color: var(--text-primary); }
.config-item .desc { color: var(--text-secondary); font-size: 0.86rem; }

/* ── End card (canonical) ──────────────────────────────────────────────── */
.end-card {
  margin-top: 64px; padding: 48px 24px; text-align: center;
  background: #000; border: 1px solid var(--border-subtle);
  border-radius: var(--radius-card);
}
.end-card .lockup { font-weight: 900; font-size: 1.6rem; margin-bottom: 8px; }
.end-card .verbatim { font-weight: 800; font-size: 1rem; margin-bottom: 12px; }
.end-card .cta {
  font-size: 0.8rem; font-weight: 800; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--gekko-green);
}

/* ── Footer ────────────────────────────────────────────────────────────── */
.site-footer {
  border-top: 1px solid var(--border-subtle);
  padding: 36px 0;
  color: var(--text-muted); font-size: 0.85rem;
}
.site-footer .foot-row {
  display: flex; justify-content: space-between; align-items: center;
  gap: 16px; flex-wrap: wrap;
}
.site-footer a { color: var(--gekko-green); font-weight: 600; }

/* ── Animations ────────────────────────────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}
.reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.5s var(--ease-out), transform 0.5s var(--ease-out); }
.reveal.visible { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ── Responsive ────────────────────────────────────────────────────────── */
@media (max-width: 860px) {
  .hero-inner { grid-template-columns: 1fr; gap: 36px; }
  .metric-stack { flex-direction: row; flex-wrap: wrap; gap: 20px; }
  .metric { flex: 1; min-width: 120px; }
}

@media (max-width: 720px) {
  .nav-links {
    position: absolute; top: 68px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--bg); border-bottom: 1px solid var(--border-subtle);
    display: none; padding: 12px 24px;
  }
  .nav-links.open { display: flex; }
  .nav-links li { padding: 12px 0; border-bottom: 1px solid var(--border-subtle); }
  .nav-links li:last-child { border-bottom: none; }
  .nav-toggle { display: block; }
  .section { padding: 60px 0; }
  .hero { padding: 60px 0 48px; }
  .btn { width: 100%; }
}
