/* Changelog Agents — landing page styles
   Dark theme matching the widget palette (#0d1117 bg, #58a6ff accent).
   Self-contained, no external deps. */

:root {
  --bg: #0d1117;
  --bg-panel: #161b22;
  --bg-panel-2: #1c2128;
  --border: #2d333b;
  --text: #e6edf3;
  --text-muted: #8b949e;
  --accent: #58a6ff;
  --accent-soft: rgba(88, 166, 255, 0.12);
  --green: #3fb950;
  --red: #f85149;
  --purple: #bc8cff;
  --radius: 10px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
  --maxw: 1080px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ---------- Nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(13, 17, 23, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -0.01em;
  color: var(--text);
}
.brand:hover { text-decoration: none; }
.brand .logo {
  width: 26px; height: 26px;
  border-radius: 6px;
  background: linear-gradient(135deg, var(--accent), var(--purple));
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #0d1117;
  flex-shrink: 0;
}
.brand .logo svg { width: 15px; height: 15px; }
.nav-links { display: flex; align-items: center; gap: 24px; }
.nav-links a { color: var(--text-muted); font-size: 14.5px; font-weight: 500; }
.nav-links a:hover { color: var(--text); text-decoration: none; }
.nav-cta {
  background: var(--accent);
  color: #0d1117 !important;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 8px;
  transition: background 0.15s ease;
}
.nav-cta:hover { background: #79b8ff; text-decoration: none; }

/* ---------- Hero ---------- */
.hero {
  padding: 88px 0 64px;
  text-align: center;
  position: relative;
  overflow: hidden;
  background-image: url(../img/race.png);
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(13, 17, 23, 0.70);
  pointer-events: none;
}
.hero-inner { position: relative; z-index: 1; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid rgba(88, 166, 255, 0.25);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 24px;
}
.eyebrow .pulse {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 10px var(--green);
}
.hero h1 {
  font-size: clamp(34px, 5.5vw, 60px);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
  max-width: 820px;
  margin: 0 auto 20px;
}
.hero h1 .accent { color: var(--accent); }
.hero .subhead {
  font-size: clamp(17px, 2.4vw, 21px);
  color: #8b949e;
  max-width: 680px;
  margin: 0 auto 36px;
}
.hero-ctas {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  font-weight: 600;
  padding: 13px 26px;
  border-radius: 10px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.15s ease;
}
.btn-primary {
  background: var(--accent);
  color: #0d1117;
}
.btn-primary:hover { background: #79b8ff; text-decoration: none; }
.btn-secondary {
  background: var(--bg-panel);
  color: var(--text);
  border-color: var(--border);
}
.btn-secondary:hover { border-color: var(--accent); text-decoration: none; }

/* ---------- Demo ---------- */
.demo {
  padding: 40px 0 72px;
}
.demo-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 28px;
}
.demo-head h2 {
  font-size: clamp(26px, 3.5vw, 36px);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}
.demo-head p { color: var(--text-muted); font-size: 16px; }
.demo-frame-wrap {
  max-width: 820px;
  margin: 0 auto;
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  background: var(--bg);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}
.demo-frame-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: var(--bg-panel);
  border-bottom: 1px solid var(--border);
}
.demo-frame-bar .dot {
  width: 11px; height: 11px; border-radius: 50%;
}
.demo-frame-bar .dot.r { background: #ff5f57; }
.demo-frame-bar .dot.y { background: #febc2e; }
.demo-frame-bar .dot.g { background: #28c840; }
.demo-frame-bar .url {
  margin-left: 10px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text-muted);
  background: var(--bg-panel-2);
  padding: 3px 10px;
  border-radius: 6px;
  flex: 1;
  text-align: center;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.demo-frame {
  width: 100%;
  border: 0;
  display: block;
  min-height: 560px;
  background: var(--bg);
}
.demo-caption {
  text-align: center;
  color: var(--text-muted);
  font-size: 13.5px;
  margin-top: 16px;
}
.demo-caption strong { color: var(--text); }

/* ---------- How it works ---------- */
.how {
  padding: 72px 0;
  border-top: 1px solid var(--border);
  background-image: url(../img/how-it-works.png);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
}
.how::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(13, 17, 23, 0.70);
  pointer-events: none;
}
.how .container { position: relative; z-index: 1; }
.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 48px;
}
.section-head h2 {
  font-size: clamp(26px, 3.5vw, 36px);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}
.section-head p { color: var(--text-muted); font-size: 16px; }
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.step {
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  position: relative;
}
.step-num {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid rgba(88, 166, 255, 0.25);
  width: 30px; height: 30px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}
.step h3 { font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.step p { color: var(--text-muted); font-size: 14.5px; }
.step code {
  font-family: var(--mono);
  font-size: 12.5px;
  background: var(--bg-panel-2);
  border: 1px solid var(--border);
  padding: 2px 7px;
  border-radius: 5px;
  color: var(--accent);
  word-break: break-all;
}

/* ---------- Privacy moat ---------- */
.privacy {
  padding: 72px 0;
  border-top: 1px solid var(--border);
  background: linear-gradient(180deg, transparent, rgba(88, 166, 255, 0.04), transparent);
}
.privacy-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 48px;
  align-items: center;
}
.privacy h2 {
  font-size: clamp(26px, 3.5vw, 36px);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}
.privacy .lead { color: var(--text-muted); font-size: 17px; margin-bottom: 24px; }
.privacy-bullets { list-style: none; }
.privacy-bullets li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  font-size: 15.5px;
  color: var(--text);
}
.privacy-bullets .check {
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--accent-soft);
  border: 1px solid rgba(88, 166, 255, 0.3);
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 12px;
  font-weight: 700;
}
.privacy-card {
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 28px;
}
.privacy-card .shield {
  width: 48px; height: 48px;
  border-radius: 12px;
  background: var(--accent-soft);
  border: 1px solid rgba(88, 166, 255, 0.3);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}
.privacy-card .shield svg { width: 26px; height: 26px; }
.privacy-card h3 { font-size: 18px; font-weight: 700; margin-bottom: 10px; }
.privacy-card p { color: var(--text-muted); font-size: 14.5px; }
.privacy-card .mono {
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--accent);
  background: var(--bg-panel-2);
  border: 1px solid var(--border);
  padding: 2px 7px;
  border-radius: 5px;
}

/* ---------- Waitlist ---------- */
.waitlist {
  padding: 88px 0 64px;
  text-align: center;
  position: relative;
  overflow: hidden;
  background-image: url(../img/hero.png);
  background-position: bottom;
  background-size: cover;
  background-repeat: no-repeat;
}
.waitlist::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(13, 17, 23, 0.70);
  pointer-events: none;
}
.waitlist .container { position: relative; z-index: 1; }
.waitlist h2 {
  font-size: clamp(26px, 3.5vw, 36px);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}
.waitlist .sub { color: var(--text-muted); font-size: 16px; max-width: 520px; margin: 0 auto 32px; }
.waitlist-form {
  display: flex;
  gap: 10px;
  max-width: 460px;
  margin: 0 auto;
  flex-wrap: wrap;
  justify-content: center;
}
.waitlist-form input[type="email"] {
  flex: 1;
  min-width: 240px;
  background: var(--bg-panel);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 15px;
  font-family: var(--font);
  padding: 13px 16px;
  border-radius: 10px;
  outline: none;
  transition: border-color 0.15s ease;
}
.waitlist-form input[type="email"]:focus { border-color: var(--accent); }
.waitlist-form input[type="email"]::placeholder { color: var(--text-muted); }
.waitlist-note {
  font-size: 12.5px;
  color: var(--text-muted);
  margin-top: 14px;
}
.waitlist-msg {
  max-width: 460px;
  margin: 0 auto;
  padding: 16px 20px;
  border-radius: 10px;
  font-size: 15px;
  display: none;
}
.waitlist-msg.success {
  display: block;
  background: rgba(63, 185, 80, 0.1);
  border: 1px solid rgba(63, 185, 80, 0.4);
  color: #7ee787;
}
.waitlist-msg.error {
  display: block;
  background: rgba(248, 81, 73, 0.08);
  border: 1px solid rgba(248, 81, 73, 0.4);
  color: #ffa198;
}

/* ---------- Pricing ---------- */
.pricing {
  padding: 72px 0;
  border-top: 1px solid var(--border);
}
.plans {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  align-items: stretch;
}
.plan {
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 30px 26px;
  display: flex;
  flex-direction: column;
}
.plan.featured {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent), 0 20px 50px rgba(88, 166, 255, 0.12);
  position: relative;
}
.plan.featured .plan-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: #0d1117;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 999px;
  white-space: nowrap;
}
.plan-name { font-size: 15px; font-weight: 700; color: var(--text-muted); margin-bottom: 8px; }
.plan-price { font-size: 40px; font-weight: 800; letter-spacing: -0.02em; margin-bottom: 4px; }
.plan-price .per { font-size: 15px; font-weight: 500; color: var(--text-muted); }
.plan-desc { font-size: 13.5px; color: var(--text-muted); margin-bottom: 20px; }
.plan-features { list-style: none; flex: 1; margin-bottom: 24px; }
.plan-features li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 7px 0;
  font-size: 14px;
  color: var(--text);
}
.plan-features .check {
  color: var(--green);
  flex-shrink: 0;
  font-weight: 700;
  line-height: 1.4;
}
.plan-features .no { color: var(--text-muted); opacity: 0.5; }
.plan .btn { justify-content: center; width: 100%; }
.plan .btn-waitlist {
  background: var(--bg-panel-2);
  color: var(--text);
  border-color: var(--border);
}
.plan .btn-waitlist:hover { border-color: var(--accent); color: var(--accent); text-decoration: none; }
.plan.featured .btn-waitlist {
  background: var(--accent);
  color: #0d1117;
  border-color: var(--accent);
}
.plan.featured .btn-waitlist:hover { background: #79b8ff; }
.pricing-note {
  text-align: center;
  color: var(--text-muted);
  font-size: 13.5px;
  margin-top: 24px;
}

/* ---------- Video tease ---------- */
.video-tease {
  max-width: 820px;
  margin: 40px auto 0;
  border: 1px dashed var(--border);
  border-radius: 14px;
  padding: 28px;
  text-align: center;
  background: var(--bg-panel);
}
.video-tease .play {
  width: 52px; height: 52px;
  border-radius: 50%;
  background: var(--accent-soft);
  border: 1px solid rgba(88, 166, 255, 0.3);
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}
.video-tease .play svg { width: 20px; height: 20px; }
.video-tease h3 { font-size: 18px; font-weight: 700; margin-bottom: 6px; }
.video-tease p { color: var(--text-muted); font-size: 14.5px; }

/* ---------- Footer ---------- */
.footer {
  border-top: 1px solid var(--border);
  padding: 40px 0;
}
.footer-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.footer .brand { font-size: 15px; }
.footer-links { display: flex; align-items: center; gap: 20px; }
.footer-links a { color: var(--text-muted); font-size: 13.5px; }
.footer-links a:hover { color: var(--text); }
.footer .domain { font-family: var(--mono); font-size: 12.5px; color: var(--text-muted); }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .steps { grid-template-columns: 1fr; }
  .privacy-grid { grid-template-columns: 1fr; gap: 32px; }
  .plans { grid-template-columns: 1fr; }
  .plan.featured { order: -1; }
}
@media (max-width: 640px) {
  .nav-links { display: none; }
  .hero { padding: 60px 0 48px; }
  .demo-frame { min-height: 480px; }
  .footer-inner { flex-direction: column; text-align: center; }
}
