:root {
  --navy: #1b3a6b;
  --navy-deep: #12264a;
  --accent: #2f6fed;
  --ink: #1c2330;
  --muted: #5b6472;
  --line: #e2e6ec;
  --bg: #ffffff;
  --bg-alt: #f5f7fa;
  --bg-cta: #12264a;
  --radius: 10px;
  --maxw: 1080px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3 { line-height: 1.25; color: var(--ink); }
h1 { font-size: clamp(2rem, 4.5vw, 3rem); margin: 0 0 16px; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); margin: 0 0 12px; letter-spacing: -0.01em; }
h3 { font-size: 1.05rem; margin: 0 0 6px; }
p { margin: 0 0 14px; }

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

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 62px; }
.brand { display: flex; align-items: center; gap: 9px; font-weight: 700; color: var(--ink); font-size: 1.05rem; }
.brand:hover { text-decoration: none; }
.brand-mark {
  display: inline-grid; place-items: center;
  width: 28px; height: 28px; border-radius: 7px;
  background: var(--navy); color: #fff; flex: 0 0 auto;
}
.brand-name { letter-spacing: -0.01em; }
.nav-links { display: flex; align-items: center; gap: 22px; font-size: 0.92rem; }
.nav-links a { color: var(--muted); }
.nav-links a:hover { color: var(--ink); text-decoration: none; }

/* Buttons */
.btn {
  display: inline-block; border: 1px solid transparent; border-radius: 8px;
  padding: 11px 18px; font-size: 0.95rem; font-weight: 600; cursor: pointer;
  font-family: inherit; transition: background .15s, border-color .15s, color .15s;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: #2a63d6; text-decoration: none; }
.btn-ghost { border-color: var(--line); color: var(--ink) !important; padding: 8px 14px; }
.btn-ghost:hover { border-color: var(--accent); text-decoration: none; }
.btn-block { width: 100%; }

/* Hero */
.hero { padding: 72px 0 60px; background: linear-gradient(180deg, #f7f9fc 0%, #ffffff 100%); border-bottom: 1px solid var(--line); }
.eyebrow { text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.75rem; font-weight: 700; color: var(--accent); margin-bottom: 14px; }
.lede { font-size: 1.14rem; color: var(--muted); max-width: 660px; }
.hero-note { font-size: 0.82rem; color: var(--muted); margin-top: 10px; }

/* Waitlist forms */
.waitlist.inline { display: flex; gap: 10px; margin-top: 26px; max-width: 480px; flex-wrap: wrap; }
.waitlist.inline input { flex: 1 1 220px; }
.waitlist input, .waitlist select, .waitlist textarea {
  width: 100%; padding: 11px 13px; font-size: 0.95rem; font-family: inherit;
  border: 1px solid var(--line); border-radius: 8px; background: #fff; color: var(--ink);
}
.waitlist textarea { resize: vertical; min-height: 96px; }
.waitlist input:focus, .waitlist select:focus, .waitlist textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }
.hp { position: absolute !important; left: -9999px !important; width: 1px !important; height: 1px !important; opacity: 0; }
.waitlist.stacked { margin-top: 22px; text-align: left; }
.waitlist.stacked label { display: block; font-size: 0.85rem; font-weight: 600; margin: 14px 0 6px; }
.waitlist.stacked .optional { color: var(--muted); font-weight: 400; }
.waitlist.stacked button { margin-top: 20px; }
.form-status { min-height: 1.2em; font-size: 0.9rem; margin-top: 12px; }
.form-status.ok { color: #1a7f45; }
.form-status.err { color: #c0392b; }

/* Sections */
.section { padding: 66px 0; }
.section-alt { background: var(--bg-alt); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-lede { max-width: 680px; color: var(--muted); font-size: 1.02rem; }

/* Pillars */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 30px; }
.pillar { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.section-alt .pillar { background: var(--bg-alt); }

/* Feature grid */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 30px; }
.feature {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px; border-top: 3px solid var(--navy);
}
.feature p { margin: 0; color: var(--muted); font-size: 0.92rem; }

/* Timeline */
.timeline { list-style: none; margin: 28px 0 0; padding: 0; }
.timeline li { display: flex; gap: 20px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.timeline li:first-child { border-top: 1px solid var(--line); }
.t-date { flex: 0 0 120px; font-weight: 700; color: var(--navy); }
.t-body { color: var(--muted); }
.disclaimer, .footer-note { font-size: 0.8rem; color: var(--muted); }
.disclaimer { margin-top: 20px; }

/* Lifecycle mapping table */
.table-scroll { margin-top: 30px; overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--line); border-radius: var(--radius); }
.map-table { width: 100%; border-collapse: collapse; font-size: 0.92rem; min-width: 640px; }
.map-table th, .map-table td { text-align: left; padding: 14px 16px; vertical-align: top; border-bottom: 1px solid var(--line); }
.map-table thead th { background: var(--navy); color: #fff; font-weight: 600; border-bottom: none; position: sticky; top: 0; }
.map-table tbody tr:last-child td { border-bottom: none; }
.map-table tbody tr:nth-child(even) { background: var(--bg-alt); }
.map-table td:first-child { white-space: nowrap; color: var(--ink); }
.map-table td { color: var(--muted); }

/* Split cards (MLOps / DevOps) */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-top: 30px; }
.split-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; border-top: 3px solid var(--accent); }
.split-card ul { margin: 12px 0 0; padding-left: 18px; color: var(--muted); font-size: 0.92rem; }
.split-card li { margin-bottom: 8px; }
.split-card p { color: var(--muted); font-size: 0.95rem; }
.lifecycle-note { margin-top: 26px; padding: 16px 18px; background: var(--bg-alt); border-left: 3px solid var(--accent); border-radius: 4px; font-size: 0.95rem; color: var(--ink); }

/* FAQ */
.faq { margin-top: 28px; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer; padding: 18px 30px 18px 0; font-weight: 600; font-size: 1rem;
  list-style: none; position: relative; color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%);
  font-size: 1.3rem; font-weight: 400; color: var(--accent); line-height: 1;
}
.faq details[open] summary::after { content: "\2212"; }
.faq summary:hover { color: var(--accent); }
.faq details p { margin: 0 0 20px; color: var(--muted); font-size: 0.95rem; max-width: 70ch; }

/* Pricing */
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 32px; align-items: stretch; }
.price-card {
  position: relative; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 26px 24px 24px; display: flex; flex-direction: column;
}
.section-alt .price-card { background: var(--bg-alt); }
.price-card.featured { border: 2px solid var(--accent); box-shadow: 0 8px 28px rgba(47, 111, 237, 0.12); padding-top: 32px; }
.price-badge {
  position: absolute; top: -11px; left: 24px; background: var(--accent); color: #fff;
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase;
  padding: 4px 10px; border-radius: 999px;
}
.price-card h3 { font-size: 1.25rem; margin-bottom: 4px; }
.price-tagline { color: var(--muted); font-size: 0.88rem; margin-bottom: 16px; min-height: 2.6em; }
.price { margin: 0 0 2px; display: flex; align-items: baseline; gap: 5px; flex-wrap: wrap; }
.price-amount { font-size: 2rem; font-weight: 700; letter-spacing: -0.02em; color: var(--ink); }
.price-period { color: var(--muted); font-size: 0.9rem; }
.price-billing { font-size: 0.8rem; color: var(--muted); margin-bottom: 20px; }
.price-features { list-style: none; margin: 0 0 24px; padding: 0; font-size: 0.89rem; color: var(--muted); flex: 1; }
.price-features li { position: relative; padding: 0 0 9px 22px; }
.price-features li::before {
  content: "✓"; position: absolute; left: 0; top: 0; color: var(--accent); font-weight: 700; font-size: 0.85rem;
}
.price-features li em { color: var(--ink); font-style: normal; font-weight: 600; }
.price-features li em::before { content: none; }
.price-features li:has(em)::before { content: ""; }
.price-features strong { color: var(--ink); }
.btn-outline { border-color: var(--accent); color: var(--accent); background: transparent; }
.btn-outline:hover { background: var(--accent); color: #fff; text-decoration: none; }

.price-free {
  margin-top: 26px; padding: 22px 24px; border: 1px dashed var(--line); border-radius: var(--radius);
  display: flex; align-items: center; justify-content: space-between; gap: 24px; background: var(--bg-alt);
}
.section-alt .price-free { background: #fff; }
.price-free h3 { margin-bottom: 4px; }
.price-free p { margin: 0; color: var(--muted); font-size: 0.9rem; max-width: 62ch; }
.price-free .btn { white-space: nowrap; }

/* CTA section */
.section-cta { background: var(--bg-cta); color: #dfe7f5; text-align: center; }
.section-cta h2 { color: #fff; }
.section-cta p { color: #b9c6de; }
.section-cta .waitlist input, .section-cta .waitlist select { background: #0d1d3a; border-color: #29406b; color: #fff; }
.section-cta .waitlist.stacked label { color: #dfe7f5; }
.section-cta .form-status.ok { color: #7ee2a8; }
.section-cta .form-status.err { color: #ff9b8f; }

/* Footer */
.site-footer { background: #0b1526; color: #8fa1bd; padding: 30px 0; }
.footer-inner p { margin: 4px 0; font-size: 0.85rem; }

/* Responsive */
@media (max-width: 980px) {
  .pricing-grid { grid-template-columns: 1fr; }
  .price-card.featured { order: -1; }
  .price-tagline { min-height: 0; }
  .price-free { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 860px) {
  .pillars, .feature-grid, .split { grid-template-columns: 1fr; }
  .nav-links a:not(.btn) { display: none; }
}
@media (max-width: 520px) {
  .waitlist.inline { flex-direction: column; }
  .t-date { flex-basis: 90px; }
}
