/* ===== Tokens ===== */
:root {
  --bg: oklch(0.15 0.004 260);
  --bg-raised: oklch(0.19 0.005 260);
  --bg-raised-2: oklch(0.22 0.006 260);
  --border: oklch(0.30 0.007 260);
  --border-soft: oklch(0.26 0.006 260);
  --text: oklch(0.95 0.003 260);
  --text-dim: oklch(0.68 0.008 260);
  --text-faint: oklch(0.50 0.008 260);
  --accent: oklch(0.75 0.19 150);
  --accent-dim: oklch(0.75 0.19 150 / 0.14);
  --accent-text-on-dark: oklch(0.30 0.09 150);
  --font-sans: -apple-system, 'SF Pro Text', 'Inter', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', 'SFMono-Regular', monospace;
  --radius: 6px;
  --container-w: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, p, ul { margin: 0; }
ul { padding: 0; list-style: none; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--text); }
img { max-width: 100%; display: block; }
::selection { background: var(--accent-dim); color: var(--text); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

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

.section-kicker {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--accent);
  margin-bottom: 12px;
  letter-spacing: 0.02em;
}
.section-title {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 48px;
  max-width: 640px;
  text-wrap: pretty;
}
.problem-sub {
  color: var(--text-dim);
  font-size: 17px;
  max-width: 620px;
  margin-top: -28px;
  margin-bottom: 44px;
  text-wrap: pretty;
}

/* ===== Nav ===== */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: oklch(0.15 0.004 260 / 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-soft);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.nav-brand {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 18px;
  color: var(--text);
}
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-link {
  font-size: 14px;
  color: var(--text-dim);
  font-weight: 500;
}
.nav-link:hover { color: var(--text); }
.nav-cta {
  font-family: var(--font-mono);
  color: var(--accent);
  border: 1px solid var(--accent);
  padding: 8px 14px;
  border-radius: var(--radius);
}
.nav-cta:hover { background: var(--accent-dim); color: var(--accent); }
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 8px;
  cursor: pointer;
}
.nav-toggle span { width: 22px; height: 2px; background: var(--text); }

/* ===== Buttons ===== */
.btn-tech {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 600;
  padding: 14px 24px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.btn-primary-tech { background: var(--accent); color: oklch(0.16 0.01 150); }
.btn-primary-tech:hover { background: oklch(0.80 0.19 150); color: oklch(0.16 0.01 150); }
.btn-ghost-tech { background: transparent; color: var(--text-dim); border-color: var(--border); }
.btn-ghost-tech:hover { color: var(--text); border-color: var(--text-dim); }
.btn-outline-tech { background: transparent; color: var(--accent); border-color: var(--accent); }
.btn-outline-tech:hover { background: var(--accent-dim); color: var(--accent); }
.btn-block-tech { width: 100%; }

/* ===== Hero ===== */
.hero { padding: 120px 0 100px; }
.hero-inner {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 64px;
  align-items: center;
}
.eyebrow {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--accent);
  margin-bottom: 20px;
}
.hero-copy h1 {
  font-size: clamp(48px, 7vw, 72px);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1;
}
.hero-title {
  font-family: var(--font-mono);
  font-size: 18px;
  color: var(--text-dim);
  margin-top: 10px;
}
.hero-value {
  font-size: 19px;
  color: var(--text-dim);
  max-width: 480px;
  margin-top: 22px;
  text-wrap: pretty;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }

.diagram-card {
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}
.diagram-label {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-faint);
  margin-bottom: 18px;
}
.diagram-row { display: flex; align-items: center; gap: 6px; flex-wrap: nowrap; }
.diagram-box {
  flex: 1;
  min-width: 0;
  background: var(--bg-raised-2);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: 12px 8px;
}
.diagram-box p { font-size: 12px; color: var(--text-dim); margin-top: 8px; line-height: 1.35; }
.diagram-box-core { border-color: var(--accent); background: var(--accent-dim); }
.diagram-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  color: var(--accent);
}
.diagram-arrow { flex: none; color: var(--text-faint); font-size: 16px; }

/* ===== Problem ===== */
.problem { padding: 90px 0; border-top: 1px solid var(--border-soft); }
.problem-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.problem-item {
  background: var(--bg-raised);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: 24px 20px;
}
.problem-index {
  display: block;
  font-family: var(--font-mono);
  color: var(--accent);
  font-size: 13px;
  margin-bottom: 14px;
}
.problem-item p { font-size: 16px; color: var(--text-dim); line-height: 1.5; }

/* ===== Offer ===== */
.offer { padding: 90px 0; border-top: 1px solid var(--border-soft); }
.pricing-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}
.price-card {
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px;
  display: flex;
  flex-direction: column;
}
.price-card-featured { border-color: var(--accent); }
.price-card-head { margin-bottom: 28px; }
.price-name { font-family: var(--font-mono); font-size: 14px; color: var(--text-dim); margin-bottom: 10px; }
.price-amount { font-size: 40px; font-weight: 800; letter-spacing: -0.01em; }
.price-sub { font-size: 14px; color: var(--text-faint); margin-top: 4px; }
.price-list { margin: 0 0 32px; flex-grow: 1; }
.price-list li {
  padding: 12px 0;
  border-top: 1px solid var(--border-soft);
  font-size: 15px;
  color: var(--text-dim);
  padding-left: 22px;
  position: relative;
}
.price-list li:first-child { border-top: none; }
.price-list li::before {
  content: '›';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-family: var(--font-mono);
}

/* ===== How it works ===== */
.how { padding: 90px 0; border-top: 1px solid var(--border-soft); }
.how-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.how-step { padding-top: 20px; border-top: 2px solid var(--border); }
.how-num { font-family: var(--font-mono); font-size: 14px; color: var(--accent); }
.how-title { font-size: 19px; font-weight: 700; margin-top: 14px; }
.how-desc { font-size: 15px; color: var(--text-dim); margin-top: 10px; line-height: 1.5; }

/* ===== Proof ===== */
.proof { padding: 90px 0; border-top: 1px solid var(--border-soft); }
.proof-sub { color: var(--text-dim); font-size: 17px; max-width: 560px; margin-top: -24px; margin-bottom: 44px; }
.proof-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 28px;
}
.demo-widget {
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.demo-widget-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-soft);
  background: var(--bg-raised-2);
}
.demo-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--border); }
.demo-widget-title {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-faint);
  margin-left: 6px;
}
.demo-widget-body {
  min-height: 260px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: repeating-linear-gradient(135deg, var(--bg-raised) 0px, var(--bg-raised) 10px, var(--bg-raised-2) 10px, var(--bg-raised-2) 20px);
}
.demo-placeholder { font-family: var(--font-mono); font-size: 13px; color: var(--text-faint); }
.case-study {
  background: var(--bg-raised);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: 32px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.case-kicker { font-family: var(--font-mono); font-size: 12px; color: var(--text-faint); margin-bottom: 16px; }
.case-metric { font-size: 30px; font-weight: 800; margin-bottom: 16px; }
.case-desc { color: var(--text-dim); font-size: 15px; line-height: 1.55; }

/* ===== About ===== */
.about { padding: 90px 0; border-top: 1px solid var(--border-soft); }
.about-inner { display: grid; grid-template-columns: 220px 1fr; gap: 48px; align-items: start; }
.photo-placeholder {
  aspect-ratio: 1;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: repeating-linear-gradient(135deg, var(--bg-raised) 0px, var(--bg-raised) 10px, var(--bg-raised-2) 10px, var(--bg-raised-2) 20px);
  display: flex;
  align-items: center;
  justify-content: center;
}
.photo-placeholder p { font-family: var(--font-mono); font-size: 13px; color: var(--text-faint); }
.photo-headshot {
  aspect-ratio: 1;
  width: 100%;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  object-fit: cover;
}
.about-text { color: var(--text-dim); font-size: 17px; line-height: 1.65; margin-top: 18px; max-width: 560px; }

/* ===== FAQ ===== */
.faq { padding: 90px 0; border-top: 1px solid var(--border-soft); }
.faq-list { max-width: 720px; }
.faq-item { border-bottom: 1px solid var(--border-soft); }
.faq-question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: none;
  border: none;
  color: var(--text);
  font-size: 17px;
  font-weight: 600;
  text-align: left;
  padding: 22px 0;
  cursor: pointer;
}
.faq-icon { font-family: var(--font-mono); color: var(--accent); font-size: 20px; transition: transform 0.2s; }
.faq-question[aria-expanded="true"] .faq-icon { transform: rotate(45deg); }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease;
}
.faq-answer p { color: var(--text-dim); font-size: 15px; line-height: 1.6; padding-bottom: 22px; max-width: 620px; }

/* ===== Final CTA ===== */
.final-cta { padding: 100px 0 80px; border-top: 1px solid var(--border-soft); text-align: center; }
.final-cta-inner { max-width: 560px; margin: 0 auto; }
.final-cta h2 { font-size: clamp(28px, 4vw, 38px); font-weight: 800; margin-top: 16px; text-wrap: pretty; }
.final-cta-sub { color: var(--text-dim); font-size: 17px; margin-top: 14px; margin-bottom: 36px; }
.contact-form { display: flex; flex-direction: column; gap: 12px; text-align: left; }
.form-row { display: flex; gap: 12px; }
.contact-form input, .contact-form textarea {
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  padding: 13px 14px;
  font-family: var(--font-sans);
  font-size: 15px;
  width: 100%;
}
.contact-form input::placeholder, .contact-form textarea::placeholder { color: var(--text-faint); }
.contact-form input:focus, .contact-form textarea:focus { outline: none; border-color: var(--accent); }
.contact-form button { margin-top: 6px; }
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}
.form-status {
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.5;
  margin-top: 4px;
  min-height: 1em;
}
.form-status.is-success { color: var(--accent); }
.form-status.is-error { color: oklch(0.70 0.17 25); }
.final-cta-secondary { color: var(--text-dim); font-size: 15px; margin-top: 24px; }

/* ===== Footer ===== */
.site-footer { border-top: 1px solid var(--border-soft); padding: 32px 0; }
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-faint);
}

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; }
  .problem-grid { grid-template-columns: repeat(2, 1fr); }
  .pricing-grid { grid-template-columns: 1fr; }
  .how-steps { grid-template-columns: repeat(2, 1fr); }
  .proof-grid { grid-template-columns: 1fr; }
  .about-inner { grid-template-columns: 1fr; }
  .about-photo { width: 160px; }
}
@media (max-width: 720px) {
  .nav-toggle { display: flex; }
  .nav-links {
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border-soft);
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    padding: 12px 24px 24px;
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-link { width: 100%; padding: 10px 0; }
  .nav-cta { width: 100%; text-align: center; margin-top: 10px; }
  .problem-grid { grid-template-columns: 1fr; }
  .how-steps { grid-template-columns: 1fr; }
  .form-row { flex-direction: column; }
  .footer-inner { flex-direction: column; gap: 8px; text-align: center; }
}
