/* ============================================================
   AI Builder Central — landing page
   Palette: dark navy base, dark teal accents
   ============================================================ */

:root {
  --navy-950: #060d1a;
  --navy-900: #081120;
  --navy-800: #0c1a2e;
  --navy-700: #12233c;
  --navy-600: #1b3252;

  --teal-300: #2fd4c0;
  --teal-400: #1fb8a6;
  --teal-500: #14a08f;
  --teal-700: #0e5f57;
  --teal-900: #0a3a36;

  --text: #e8eef6;
  --text-muted: #9fb0c4;
  --text-faint: #6b7f96;

  --steel: #7c9cbf;

  --radius: 12px;
  --max-width: 1080px;
}

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

html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

body {
  background: var(--navy-900);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  background: var(--navy-700);
  border: 1px solid var(--navy-600);
  border-radius: 6px;
  padding: 0.1em 0.4em;
  font-size: 0.9em;
  color: var(--teal-300);
}

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ---------- Logo ---------- */

.logo {
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
  text-decoration: none;
  white-space: nowrap;
}
.logo-ai      { color: var(--teal-300); }
.logo-builder { color: var(--text); }
.logo-central { color: var(--steel); }
.logo-small   { font-size: 1rem; }

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 1.5rem;
  background: color-mix(in srgb, var(--navy-950) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--navy-700);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.site-nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.15s ease;
}
.site-nav a:hover { color: var(--text); }

.site-nav .nav-cta {
  color: var(--navy-950);
  background: var(--teal-400);
  padding: 0.45rem 1rem;
  border-radius: 999px;
  font-weight: 600;
  transition: background 0.15s ease;
}
.site-nav .nav-cta:hover { background: var(--teal-300); color: var(--navy-950); }

/* ---------- Buttons ---------- */

.btn {
  display: inline-block;
  padding: 0.8rem 1.7rem;
  border-radius: 999px;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.1s ease;
}
.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--teal-500);
  color: #fff;
}
.btn-primary:hover { background: var(--teal-400); }
.btn-primary:disabled { background: var(--teal-900); color: var(--text-faint); cursor: wait; }

.btn-ghost {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--navy-600);
}
.btn-ghost:hover { color: var(--text); border-color: var(--steel); }

/* ---------- Sections ---------- */

.section-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 5.5rem 1.5rem;
}
.section-inner.narrow { max-width: 760px; }

.kicker {
  color: var(--teal-300);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

h2 {
  font-size: clamp(1.7rem, 4vw, 2.4rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 1.4rem;
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(1200px 600px at 75% -10%, color-mix(in srgb, var(--teal-700) 26%, transparent), transparent 65%),
    var(--navy-950);
  border-bottom: 1px solid var(--navy-700);
}

.hero-graph {
  position: absolute;
  right: -6%;
  top: 50%;
  transform: translateY(-50%);
  width: min(58vw, 720px);
  opacity: 0.35;
  pointer-events: none;
}
.graph-lines path {
  stroke: var(--teal-700);
  stroke-width: 1.5;
  fill: none;
}
.graph-nodes circle {
  fill: var(--navy-800);
  stroke: var(--teal-500);
  stroke-width: 1.5;
}

.hero-inner {
  position: relative;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 7rem 1.5rem 6rem;
}

.hero h1 {
  font-size: clamp(2.1rem, 5.5vw, 3.6rem);
  line-height: 1.12;
  letter-spacing: -0.025em;
  max-width: 18em;
}

.hero-question { color: var(--teal-300); }

.hero-sub {
  margin-top: 1.6rem;
  max-width: 34em;
  font-size: clamp(1.05rem, 2vw, 1.2rem);
  color: var(--text-muted);
}

.hero-actions {
  margin-top: 2.4rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
}

.hero-note {
  margin-top: 1.6rem;
  font-size: 0.9rem;
  color: var(--text-faint);
  max-width: 36em;
}

/* ---------- Problem ---------- */

.problem { background: var(--navy-900); }

.problem p {
  color: var(--text-muted);
  font-size: 1.08rem;
  margin-bottom: 1.3rem;
}
.problem em { color: var(--text); font-style: italic; }

.problem-punch {
  border-left: 3px solid var(--teal-500);
  padding-left: 1.2rem;
  font-size: 1.15rem !important;
  color: var(--text) !important;
}
.problem-punch strong { color: var(--teal-300); }

/* ---------- Journey ---------- */

.journey {
  background: var(--navy-950);
  border-top: 1px solid var(--navy-700);
  border-bottom: 1px solid var(--navy-700);
}

.arc {
  list-style: none;
  margin-top: 2.5rem;
  position: relative;
  padding-left: 2.2rem;
}
.arc::before {
  content: "";
  position: absolute;
  left: 10px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: linear-gradient(to bottom, var(--navy-600), var(--teal-700) 45%, var(--teal-400));
}

.arc-stage {
  position: relative;
  padding-bottom: 2.6rem;
}
.arc-stage:last-child { padding-bottom: 0; }

.arc-marker {
  position: absolute;
  left: -2.2rem;
  top: 6px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--navy-800);
  border: 2px solid var(--navy-600);
}
.arc-marker-product {
  border-color: var(--teal-400);
  background: var(--teal-900);
}
.arc-marker-end {
  border-color: var(--teal-300);
  background: var(--teal-500);
}

.arc-feeling {
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.arc-copy {
  color: var(--text-muted);
  max-width: 44em;
  margin-top: 0.3rem;
}

/* Product cards inside the arc */

.product-card {
  background: var(--navy-800);
  border: 1px solid var(--navy-600);
  border-radius: var(--radius);
  padding: 1.8rem 2rem;
  max-width: 46em;
}

.product-tag {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--steel);
  margin-bottom: 0.6rem;
}

.product-card h3 {
  font-size: 1.35rem;
  line-height: 1.3;
  letter-spacing: -0.015em;
  margin-bottom: 0.9rem;
}
.product-name { color: var(--teal-300); }

.product-card > p { color: var(--text-muted); }

.product-points {
  margin-top: 1.1rem;
  list-style: none;
}
.product-points li {
  position: relative;
  padding-left: 1.4rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}
.product-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--teal-500);
}

/* ---------- Trust ---------- */

.trust { background: var(--navy-900); }

.trust-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.2rem;
  margin-top: 2rem;
}

.trust-card {
  background: var(--navy-800);
  border: 1px solid var(--navy-600);
  border-top: 3px solid var(--teal-500);
  border-radius: var(--radius);
  padding: 1.6rem 1.7rem;
}
.trust-card h3 {
  font-size: 1.1rem;
  line-height: 1.35;
  margin-bottom: 0.7rem;
  letter-spacing: -0.01em;
}
.trust-card p {
  color: var(--text-muted);
  font-size: 0.97rem;
}

/* ---------- Waitlist ---------- */

.waitlist {
  background:
    radial-gradient(900px 420px at 50% 115%, color-mix(in srgb, var(--teal-700) 30%, transparent), transparent 70%),
    var(--navy-950);
  border-top: 1px solid var(--navy-700);
  text-align: center;
}

.waitlist-sub {
  color: var(--text-muted);
  max-width: 38em;
  margin: 0 auto 2.2rem;
}

#waitlist-form { max-width: 34rem; margin: 0 auto; }

.field-row {
  display: flex;
  gap: 0.7rem;
  flex-wrap: wrap;
  justify-content: center;
}

.field-row input[type="email"] {
  flex: 1 1 260px;
  padding: 0.8rem 1.1rem;
  font-size: 1rem;
  color: var(--text);
  background: var(--navy-800);
  border: 1px solid var(--navy-600);
  border-radius: 999px;
  outline: none;
  transition: border-color 0.15s ease;
}
.field-row input[type="email"]::placeholder { color: var(--text-faint); }
.field-row input[type="email"]:focus { border-color: var(--teal-400); }

.cf-turnstile {
  display: flex;
  justify-content: center;
  margin-top: 1.1rem;
  min-height: 65px;
}

.form-status {
  margin-top: 0.9rem;
  min-height: 1.4em;
  font-size: 0.95rem;
}
.form-status.error   { color: #f0a5a5; }
.form-status.pending { color: var(--text-muted); }

.form-privacy {
  margin-top: 0.6rem;
  font-size: 0.85rem;
  color: var(--text-faint);
}

.waitlist-success {
  max-width: 34rem;
  margin: 0 auto;
  background: var(--navy-800);
  border: 1px solid var(--teal-700);
  border-radius: var(--radius);
  padding: 2rem;
}
.waitlist-success h3 { color: var(--teal-300); margin-bottom: 0.5rem; }
.waitlist-success p  { color: var(--text-muted); }

/* ---------- Footer ---------- */

.site-footer {
  background: var(--navy-950);
  border-top: 1px solid var(--navy-700);
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-inner a {
  color: var(--text-muted);
  text-decoration: none;
}
.footer-inner a:hover { color: var(--teal-300); }

.footer-copy { color: var(--text-faint); font-size: 0.9rem; }

/* ---------- Small screens ---------- */

@media (max-width: 640px) {
  .site-nav a:not(.nav-cta) { display: none; }
  .hero-inner { padding: 4.5rem 1.5rem 4rem; }
  .hero-graph { display: none; }
  .section-inner { padding: 3.5rem 1.25rem; }
  .product-card { padding: 1.4rem 1.3rem; }
}
