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

:root {
  --bg:          #0d0d0d;
  --bg-card:     #141414;
  --bg-dark:     #080808;
  --green:       #2ddc74;
  --green-dim:   #1a9e50;
  --green-glow:  rgba(45, 220, 116, 0.12);
  --text:        #e8e8e8;
  --text-dim:    #888;
  --text-muted:  #555;
  --border:      #222;
  --border-dim:  #1a1a1a;
  --radius:      10px;
  --radius-lg:   16px;
  --transition:  0.2s ease;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--green); text-decoration: none; transition: opacity var(--transition); }
a:hover { opacity: 0.8; }
code {
  font-family: 'SF Mono', 'Fira Code', 'Cascadia Code', monospace;
  font-size: 0.875em;
  background: #1a1a1a;
  padding: 0.15em 0.4em;
  border-radius: 4px;
  color: var(--green);
}

.accent { color: var(--green); }

/* ─── LAYOUT HELPERS ────────────────────────────────────────────────────── */
.section {
  padding: 96px 24px;
}
.section-dark {
  background: var(--bg-dark);
}
.section-inner {
  max-width: 1080px;
  margin: 0 auto;
}
.section-inner-narrow {
  max-width: 680px;
}
.section-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 0.75rem;
}
.section-heading {
  font-size: clamp(1.75rem, 3.5vw, 2.75rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 2.5rem;
}

/* ─── NAV ───────────────────────────────────────────────────────────────── */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(13, 13, 13, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 600;
  font-size: 1rem;
}
.nav-logo {
  width: 30px;
  height: 30px;
  border-radius: 6px;
  object-fit: cover;
}
.nav-name { color: var(--text); }
.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  font-size: 0.9rem;
  color: var(--text-dim);
}
.nav-links a { color: var(--text-dim); }
.nav-links a:hover { color: var(--text); opacity: 1; }
.nav-hamburger {
  display: none;
  background: none;
  border: none;
  color: var(--text);
  font-size: 1.3rem;
  cursor: pointer;
}
.nav-mobile {
  display: none;
  flex-direction: column;
  padding: 12px 24px 16px;
  gap: 12px;
  border-top: 1px solid var(--border);
}
.nav-mobile a { color: var(--text-dim); font-size: 0.95rem; }
.nav-mobile.open { display: flex; }

/* ─── BUTTONS ───────────────────────────────────────────────────────────── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  background: var(--green);
  color: #000;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.65em 1.4em;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  transition: background var(--transition), transform var(--transition);
  white-space: nowrap;
}
.btn-primary:hover { background: #38f07f; opacity: 1; transform: translateY(-1px); }
.btn-ghost {
  display: inline-flex;
  align-items: center;
  color: var(--text-dim);
  border: 1px solid var(--border);
  font-size: 0.95rem;
  padding: 0.65em 1.4em;
  border-radius: var(--radius);
  transition: border-color var(--transition), color var(--transition);
}
.btn-ghost:hover { border-color: var(--text-dim); color: var(--text); opacity: 1; }
.btn-nav {
  background: var(--green);
  color: #000 !important;
  font-weight: 700;
  padding: 0.4em 1em;
  border-radius: var(--radius);
}
.btn-nav:hover { background: #38f07f; opacity: 1 !important; }

/* ─── HERO ───────────────────────────────────────────────────────────────── */
.hero {
  padding: 100px 24px 80px;
  text-align: center;
  background:
    radial-gradient(ellipse 70% 50% at 50% -10%, rgba(45, 220, 116, 0.08) 0%, transparent 60%),
    var(--bg);
}
.hero-inner { max-width: 860px; margin: 0 auto; }
.hero-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--green);
  border: 1px solid var(--green-dim);
  padding: 0.3em 0.9em;
  border-radius: 999px;
  margin-bottom: 1.5rem;
  background: var(--green-glow);
}
.hero-headline {
  font-size: clamp(2.2rem, 5.5vw, 4rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 1.25rem;
}
.hero-sub {
  font-size: 1.15rem;
  color: var(--text-dim);
  max-width: 600px;
  margin: 0 auto 2.5rem;
  line-height: 1.7;
}
.hero-cta {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 3.5rem;
}
.hero-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  flex-wrap: wrap;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem 2rem;
  background: var(--bg-card);
  gap: 0;
}
.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 2.5rem;
}
.stat-num {
  font-size: 2rem;
  font-weight: 800;
  color: var(--green);
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 0.3rem;
}
.stat-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-align: center;
}
.stat-divider {
  width: 1px;
  height: 48px;
  background: var(--border);
}

/* ─── ABOUT ──────────────────────────────────────────────────────────────── */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}
.about-text p {
  color: var(--text-dim);
  margin-bottom: 1rem;
}
.about-roadmap {
  color: var(--text-muted) !important;
  font-size: 0.9rem;
  border-left: 2px solid var(--green-dim);
  padding-left: 0.75rem;
  margin-top: 1.5rem !important;
}
.about-pillars {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.pillar {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}
.pillar-icon {
  font-size: 1rem;
  color: var(--green);
  width: 2rem;
  flex-shrink: 0;
  margin-top: 0.1rem;
}
.pillar-title {
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 0.25rem;
}
.pillar-desc { font-size: 0.88rem; color: var(--text-dim); }

/* ─── PROBLEM ────────────────────────────────────────────────────────────── */
.problem-flow {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}
.flow-step {
  flex: 1;
  min-width: 180px;
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 1.5rem;
  border: 1px solid var(--border);
}
.flow-bad { border-color: #2a1a1a; }
.flow-good { border-color: #0f2a1a; background: #0a1a10; }
.flow-icon { font-size: 1.5rem; margin-bottom: 0.5rem; }
.flow-title { font-weight: 600; font-size: 0.95rem; margin-bottom: 0.5rem; }
.flow-desc { font-size: 0.85rem; color: var(--text-dim); }
.flow-arrow {
  font-size: 1.5rem;
  color: var(--text-muted);
  align-self: center;
  flex-shrink: 0;
}
.accent-arrow { color: var(--green); }
.problem-vs { margin-top: 1rem; }
.vs-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 1rem;
}

/* ─── HOW IT WORKS ───────────────────────────────────────────────────────── */
.how-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  margin-bottom: 3.5rem;
}
.how-step {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  position: relative;
}
.how-num {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--border);
  line-height: 1;
  margin-bottom: 0.75rem;
  letter-spacing: -0.04em;
}
.how-step h3 { font-size: 1rem; font-weight: 600; margin-bottom: 0.5rem; }
.how-step p { font-size: 0.88rem; color: var(--text-dim); }
.route-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.route-card {
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  border: 1px solid var(--border);
}
.route-recall  { background: #0a1a10; border-color: #0f3020; }
.route-graph   { background: #0a1210; border-color: #0f2a1a; }
.route-handoff { background: #141414; border-color: var(--border); }
.route-tag {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--green);
  margin-bottom: 0.5rem;
}
.route-handoff .route-tag { color: var(--text-dim); }
.route-desc { font-size: 0.85rem; color: var(--text-dim); }

/* ─── PROOF ──────────────────────────────────────────────────────────────── */
.proof-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}
.proof-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
}
.proof-num {
  font-size: 2rem;
  font-weight: 800;
  color: var(--green);
  letter-spacing: -0.03em;
  margin-bottom: 0.25rem;
}
.proof-claim {
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 0.75rem;
}
.proof-detail {
  font-size: 0.85rem;
  color: var(--text-dim);
  margin-bottom: 1rem;
  line-height: 1.55;
}
.proof-basis {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--green-dim);
  font-weight: 600;
}
.proof-compound {
  background: var(--green-glow);
  border: 1px solid var(--green-dim);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  font-size: 0.9rem;
  color: var(--text-dim);
  line-height: 1.6;
}
.proof-compound strong { color: var(--green); }

/* ─── DEMO ───────────────────────────────────────────────────────────────── */
.demo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-bottom: 3rem;
}
.demo-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-card);
  aspect-ratio: 16/9;
}
.demo-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: #0f0f0f;
  cursor: pointer;
  transition: background var(--transition);
}
.demo-placeholder:hover { background: #141414; }
.demo-play {
  font-size: 2.5rem;
  color: var(--green);
  opacity: 0.7;
  line-height: 1;
}
.demo-label {
  font-weight: 600;
  font-size: 0.9rem;
}
.demo-sublabel {
  font-size: 0.78rem;
  color: var(--text-muted);
  text-align: center;
  padding: 0 1rem;
}
.demo-docker {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  margin-top: 2rem;
}
.demo-docker-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.25rem;
}
.demo-close {
  background: none;
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text-muted);
  font-size: 1.2rem;
  line-height: 1;
  padding: 0.2rem 0.6rem;
  cursor: pointer;
}
.demo-close:hover { color: var(--text); border-color: var(--text-muted); }
.demo-card { cursor: pointer; }
.demo-video {
  width: 100%;
  border-radius: var(--radius);
  border: 1px solid var(--border-dim);
  margin: 1rem 0;
  display: block;
  background: #000;
}
.code-block {
  font-family: 'SF Mono', 'Fira Code', 'Cascadia Code', monospace;
  font-size: 0.85rem;
  background: #0a0a0a;
  border: 1px solid var(--border-dim);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  color: var(--green);
  margin: 1rem 0;
  overflow-x: auto;
  white-space: pre;
  line-height: 1.7;
}
.demo-docker-sub {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 0.5rem;
}

/* ─── WAITLIST ───────────────────────────────────────────────────────────── */
.section-waitlist {
  background:
    radial-gradient(ellipse 60% 80% at 50% 100%, rgba(45, 220, 116, 0.06) 0%, transparent 60%),
    var(--bg-dark);
}
.waitlist-sub {
  color: var(--text-dim);
  font-size: 1.05rem;
  margin-bottom: 2.5rem;
  line-height: 1.7;
}
.waitlist-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.form-row {
  display: flex;
  gap: 0.75rem;
}
.form-email {
  flex: 1;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.65em 1em;
  font-size: 1rem;
  color: var(--text);
  outline: none;
  transition: border-color var(--transition);
}
.form-email:focus { border-color: var(--green-dim); }
.form-email::placeholder { color: var(--text-muted); }
.form-extras { display: flex; flex-direction: column; gap: 0.5rem; }
.form-check {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--text-dim);
  cursor: pointer;
}
.form-check input { margin-top: 3px; accent-color: var(--green); flex-shrink: 0; }
.form-privacy { font-size: 0.78rem; color: var(--text-muted); }
.form-success {
  color: var(--green);
  font-size: 1.1rem;
  font-weight: 600;
  padding: 1.5rem 0;
  text-align: center;
}

/* ─── FOOTER ─────────────────────────────────────────────────────────────── */
.footer {
  background: var(--bg-dark);
  border-top: 1px solid var(--border-dim);
  padding: 2.5rem 24px;
}
.footer-inner {
  max-width: 1080px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text);
}
.footer-logo {
  width: 24px;
  height: 24px;
  border-radius: 4px;
  object-fit: cover;
}
.footer-links {
  display: flex;
  gap: 1.5rem;
  font-size: 0.85rem;
}
.footer-links a { color: var(--text-muted); }
.footer-links a:hover { color: var(--text); opacity: 1; }
.footer-copy { font-size: 0.8rem; color: var(--text-muted); }

/* ─── RESPONSIVE ─────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-hamburger { display: block; }

  .hero { padding: 64px 20px 56px; }
  .section { padding: 64px 20px; }

  .hero-stats { flex-direction: column; gap: 1.25rem; padding: 1.25rem; }
  .stat { padding: 0; }
  .stat-divider { width: 60%; height: 1px; }

  .about-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .problem-flow { flex-direction: column; }
  .flow-arrow { display: none; }
  .route-grid { grid-template-columns: 1fr; }
  .form-row { flex-direction: column; }
  .btn-primary { width: 100%; justify-content: center; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}
