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

:root {
  --black: #111110;
  --off-white: #F7F6F3;
  --warm-gray: #6E6C64;
  --mid-gray: #D4D2CC;
  --accent: #2D4A3E;
  --accent-light: #3D6B5A;
  --rule: #E8E6E0;
  --soft-bg: #F2F0EA;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  background: var(--off-white);
  color: var(--black);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* NAV */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 20px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(247, 246, 243, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--rule);
}

.nav-logo {
  font-family: 'Fraunces', serif;
  font-weight: 400;
  font-size: 18px;
  letter-spacing: -0.01em;
  color: var(--black);
  text-decoration: none;
}

.nav-logo span {
  color: var(--accent);
}

.nav-links {
  display: flex;
  gap: 32px;
  align-items: center;
}

.nav-links a:not(.cta-nav) {
  font-size: 14px;
  font-weight: 400;
  color: var(--black);
  text-decoration: none;
  letter-spacing: 0.01em;
  transition: color 0.2s;
}

.nav-links a:not(.cta-nav):hover { color: var(--accent); }

.nav-links a.active { color: var(--accent); }

nav a.cta-nav {
  font-size: 14px;
  font-weight: 500;
  color: var(--off-white);
  background: var(--black);
  padding: 10px 22px;
  border-radius: 6px;
  text-decoration: none;
  letter-spacing: 0.01em;
  transition: background 0.2s;
}

nav a.cta-nav:hover { background: var(--accent); }

/* MODAL */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(17,17,16,0.6);
  backdrop-filter: blur(6px);
  z-index: 999;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.modal-overlay.open { display: flex; }

.modal {
  background: var(--off-white);
  border-radius: 12px;
  padding: 52px 48px;
  max-width: 560px;
  width: 100%;
  position: relative;
  max-height: 90vh;
  overflow-y: auto;
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 24px;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--warm-gray);
  font-size: 22px;
  line-height: 1;
  padding: 4px;
  transition: color 0.2s;
}

.modal-close:hover { color: var(--black); }

.modal h3 {
  font-family: 'Fraunces', serif;
  font-weight: 300;
  font-size: 28px;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
  color: var(--black);
}

.modal .modal-sub {
  font-size: 15px;
  color: var(--warm-gray);
  margin-bottom: 36px;
  line-height: 1.55;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--warm-gray);
  margin-bottom: 8px;
}

.form-group input:not([type="checkbox"]),
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--rule);
  border-radius: 6px;
  background: white;
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  color: var(--black);
  transition: border-color 0.2s;
  outline: none;
  appearance: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--accent);
}

.form-group textarea {
  resize: vertical;
  min-height: 90px;
}

.form-group select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%238A8880' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}

.checkbox-group {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 4px;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--black);
  cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--accent);
  flex-shrink: 0;
}

.form-submit {
  width: 100%;
  background: var(--black);
  color: var(--off-white);
  border: none;
  padding: 15px 28px;
  border-radius: 8px;
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s;
  margin-top: 8px;
}

.form-submit:hover { background: var(--accent); }

.form-success {
  display: none;
  text-align: center;
  padding: 40px 0;
}

.form-success h4 {
  font-family: 'Fraunces', serif;
  font-weight: 300;
  font-size: 26px;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.form-success p {
  font-size: 15px;
  color: var(--warm-gray);
  line-height: 1.6;
}

@media (max-width: 600px) {
  .modal { padding: 40px 24px; }
  .form-row { grid-template-columns: 1fr; }
  .checkbox-group { grid-template-columns: 1fr; }
}

/* SECTIONS */
section { padding: 100px 48px; }

.container { max-width: 780px; margin: 0 auto; }
.container-wide { max-width: 1080px; margin: 0 auto; }

/* HERO */
#hero {
  padding-top: 160px;
  padding-bottom: 120px;
  border-bottom: 1px solid var(--rule);
}

.eyebrow {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 28px;
}

h1 {
  font-family: 'Fraunces', serif;
  font-weight: 300;
  font-size: clamp(40px, 6vw, 68px);
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--black);
  margin-bottom: 28px;
}

h1 em {
  font-style: italic;
  color: var(--accent);
}

.hero-sub {
  font-size: 19px;
  color: var(--warm-gray);
  line-height: 1.65;
  max-width: 560px;
  margin-bottom: 44px;
}

.hero-sub p {
  margin-bottom: 18px;
}

.hero-sub p:last-child {
  margin-bottom: 0;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--black);
  color: var(--off-white);
  padding: 14px 28px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.2s;
}

.hero-cta:hover { background: var(--accent); }

.hero-cta svg { width: 16px; height: 16px; }

.hero-secondary {
  font-size: 15px;
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
}

.hero-secondary:hover { color: var(--accent-light); }

/* PROBLEM */
#problem {
  background: var(--black);
  color: var(--off-white);
}

#problem h2 {
  font-family: 'Fraunces', serif;
  font-weight: 300;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 40px;
  color: var(--off-white);
}

#problem h2 em {
  font-style: italic;
  color: #7BA898;
}

.problem-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 2px;
  margin-top: 56px;
}

.problem-card {
  background: #1A1A19;
  padding: 36px 32px;
}

.problem-card:first-child { border-radius: 8px 0 0 8px; }
.problem-card:last-child { border-radius: 0 8px 8px 0; }

.problem-card .label {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #555552;
  margin-bottom: 16px;
}

.problem-card p {
  font-size: 15px;
  line-height: 1.6;
  color: #888885;
}

.problem-card strong {
  color: var(--off-white);
  font-weight: 400;
}

/* GENERIC SECTION TYPOGRAPHY */
.section-bordered { border-bottom: 1px solid var(--rule); }

h2 {
  font-family: 'Fraunces', serif;
  font-weight: 300;
  font-size: clamp(26px, 3.5vw, 40px);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}

h2 em {
  font-style: italic;
  color: var(--accent);
}

.section-label {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--warm-gray);
  margin-bottom: 20px;
}

.lead {
  font-size: 19px;
  color: var(--warm-gray);
  line-height: 1.65;
  margin-bottom: 52px;
  max-width: 620px;
}

.body-block {
  font-size: 17px;
  color: var(--warm-gray);
  line-height: 1.7;
  max-width: 680px;
}

.body-block p {
  margin-bottom: 20px;
}

.body-block p:last-child {
  margin-bottom: 0;
}

.body-block strong {
  color: var(--black);
  font-weight: 500;
}

.body-block a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid var(--mid-gray);
  transition: border-color 0.2s;
}

.body-block a:hover {
  border-color: var(--accent);
}

/* DIFFERENTIATORS / FEATURE GRID */
.differentiators {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
  border-radius: 10px;
  overflow: hidden;
}

.diff-item {
  background: var(--off-white);
  padding: 36px 40px;
}

.diff-item h3 {
  font-size: 16px;
  font-weight: 500;
  margin-bottom: 10px;
  color: var(--black);
}

.diff-item p {
  font-size: 15px;
  color: var(--warm-gray);
  line-height: 1.6;
}

.diff-item p strong {
  color: var(--black);
  font-weight: 500;
}

.diff-number {
  font-family: 'Fraunces', serif;
  font-size: 13px;
  color: var(--accent);
  margin-bottom: 14px;
  font-weight: 400;
}

/* HOW IT WORKS / PIPELINE */
.section-soft {
  background: var(--soft-bg);
  border-bottom: 1px solid var(--rule);
}

.pipeline {
  display: flex;
  gap: 0;
  margin-top: 52px;
  border: 1px solid var(--rule);
  border-radius: 10px;
  overflow: hidden;
}

.pipeline-step {
  flex: 1;
  padding: 32px 24px;
  background: var(--off-white);
  border-right: 1px solid var(--rule);
  position: relative;
}

.pipeline-step:last-child { border-right: none; }

.step-num {
  font-family: 'Fraunces', serif;
  font-size: 32px;
  font-weight: 300;
  color: var(--mid-gray);
  line-height: 1;
  margin-bottom: 12px;
}

.step-title {
  font-size: 14px;
  font-weight: 500;
  color: var(--black);
  margin-bottom: 8px;
}

.step-desc {
  font-size: 13px;
  color: var(--warm-gray);
  line-height: 1.55;
}

/* ICP */
.icp-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  margin-top: 52px;
}

.icp-col h3 {
  font-size: 15px;
  font-weight: 500;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--rule);
  color: var(--black);
}

.icp-col h3.good { color: var(--accent); }
.icp-col h3.bad { color: var(--warm-gray); }

.icp-list { list-style: none; }

.icp-list li {
  font-size: 15px;
  color: var(--warm-gray);
  padding: 12px 0;
  border-bottom: 1px solid var(--rule);
  line-height: 1.5;
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.icp-list li::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--mid-gray);
  margin-top: 8px;
  flex-shrink: 0;
}

.icp-list.good li::before { background: var(--accent); }

.icp-list li strong { color: var(--black); font-weight: 500; }

/* POSITIONING (green accent) */
.section-accent {
  background: var(--accent);
  color: var(--off-white);
}

.section-accent h2 {
  font-family: 'Fraunces', serif;
  font-weight: 300;
  font-size: clamp(28px, 4vw, 48px);
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: var(--off-white);
  margin-bottom: 0;
}

.section-accent h2 em {
  font-style: italic;
  color: rgba(255,255,255,0.55);
}

.section-accent .section-label {
  color: rgba(255,255,255,0.55);
}

.pos-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  margin-top: 64px;
}

.pos-item .pos-label {
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  font-weight: 500;
  margin-bottom: 12px;
}

.pos-item p {
  font-size: 16px;
  color: rgba(255,255,255,0.8);
  line-height: 1.6;
}

.pos-item strong {
  color: var(--off-white);
  font-weight: 500;
}

/* LEARNING LOOP */
.loop-list {
  list-style: none;
  margin-top: 36px;
  border-top: 1px solid var(--rule);
}

.loop-list li {
  display: flex;
  gap: 16px;
  padding: 22px 0;
  border-bottom: 1px solid var(--rule);
  font-size: 16px;
  line-height: 1.6;
  color: var(--warm-gray);
}

.loop-list li .arrow {
  color: var(--accent);
  font-weight: 500;
  flex-shrink: 0;
  font-size: 16px;
}

.loop-list li strong { color: var(--black); font-weight: 500; }

.loop-summary {
  margin-top: 44px;
  padding-top: 32px;
  border-top: 1px solid var(--rule);
  max-width: 680px;
}

.loop-summary p {
  font-size: 17px;
  color: var(--warm-gray);
  margin-bottom: 10px;
  line-height: 1.6;
}

.loop-summary p strong {
  color: var(--black);
  font-weight: 500;
}

.loop-summary .closing {
  margin-top: 24px;
  font-size: 16px;
  font-style: italic;
  color: var(--warm-gray);
}

/* ENGINE STACK (roadmap) */
.engine-stack {
  display: grid;
  gap: 20px;
  margin-top: 52px;
}

.engine-card {
  padding: 44px 48px;
  border: 1px solid var(--rule);
  border-radius: 12px;
  background: var(--off-white);
}

.engine-status {
  display: inline-block;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: 99px;
  margin-bottom: 24px;
  border: 1px solid var(--rule);
  color: var(--warm-gray);
  background: var(--off-white);
}

.engine-status.live {
  background: var(--accent);
  color: var(--off-white);
  border-color: var(--accent);
}

.engine-status.beta {
  background: var(--soft-bg);
  color: var(--accent);
  border-color: var(--accent);
}

.engine-card h3 {
  font-family: 'Fraunces', serif;
  font-weight: 300;
  font-size: clamp(24px, 3vw, 32px);
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
  color: var(--black);
}

.engine-tagline {
  color: var(--accent);
  font-size: 16px;
  font-weight: 500;
  margin-bottom: 22px;
  line-height: 1.5;
}

.engine-body {
  font-size: 16px;
  color: var(--warm-gray);
  line-height: 1.7;
  max-width: 680px;
}

.engine-body p {
  margin-bottom: 16px;
}

.engine-body p:last-child {
  margin-bottom: 0;
}

.engine-body strong { color: var(--black); font-weight: 500; }

.engine-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 24px;
  font-size: 14px;
  font-weight: 500;
  color: var(--accent);
  text-decoration: none;
  transition: color 0.2s;
}

.engine-cta:hover { color: var(--accent-light); }

/* CTA SECTION */
#cta, .section-cta {
  text-align: center;
}

#cta h2, .section-cta h2 {
  font-family: 'Fraunces', serif;
  font-weight: 300;
  font-size: clamp(32px, 5vw, 56px);
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}

#cta h2 em, .section-cta h2 em {
  font-style: italic;
  color: var(--accent);
}

#cta p, .section-cta p {
  font-size: 18px;
  color: var(--warm-gray);
  margin-bottom: 44px;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

.cta-primary {
  display: inline-block;
  background: var(--black);
  color: var(--off-white);
  padding: 16px 36px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.2s;
}

.cta-primary:hover { background: var(--accent); }

/* FOOTER */
footer {
  padding: 36px 48px;
  border-top: 1px solid var(--rule);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}

footer .footer-logo {
  font-family: 'Fraunces', serif;
  font-weight: 400;
  font-size: 16px;
  color: var(--black);
  text-decoration: none;
}

footer .footer-logo span { color: var(--accent); }

.footer-links {
  display: flex;
  gap: 28px;
}

.footer-links a {
  font-size: 13px;
  color: var(--warm-gray);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-links a:hover { color: var(--accent); }

footer p {
  font-size: 13px;
  color: var(--warm-gray);
}

/* RESPONSIVE */
@media (max-width: 768px) {
  nav { padding: 16px 24px; }
  .nav-links { gap: 18px; }
  section { padding: 72px 24px; }
  #hero { padding-top: 120px; }
  .problem-grid { grid-template-columns: 1fr; }
  .problem-card:first-child { border-radius: 8px 8px 0 0; }
  .problem-card:last-child { border-radius: 0 0 8px 8px; }
  .differentiators { grid-template-columns: 1fr; }
  .pipeline { flex-direction: column; }
  .pipeline-step { border-right: none; border-bottom: 1px solid var(--rule); }
  .icp-split { grid-template-columns: 1fr; gap: 40px; }
  .pos-grid { grid-template-columns: 1fr; gap: 32px; }
  .engine-card { padding: 32px 28px; }
  footer { flex-direction: column; gap: 16px; text-align: center; }
}

@media (max-width: 600px) {
  nav { padding: 14px 20px; gap: 12px; }
  .nav-links { gap: 14px; }
  .nav-links a:not(.cta-nav) { font-size: 13px; }
  nav a.cta-nav { padding: 9px 14px; font-size: 13px; }
}

@media (max-width: 380px) {
  .nav-links a:not(.cta-nav) { display: none; }
}
