/* ============================================================
   OptiStreamAI — Pilot landing page
   Singular conversion goal. Consistent with marketing site.
   ============================================================ */

:root {
  --primary: #3B5BDB;
  --primary-2: #5C7CFA;
  --primary-soft: #EEF2FF;
  --accent: #F59E0B;
  --green: #10B981;
  --green-soft: #ECFDF5;
  --red: #EF4444;
  --red-soft: #FEF2F2;
  --bg: #FFFFFF;
  --bg-alt: #F8FAFC;
  --bg-dark: #0F172A;
  --text: #0F172A;
  --text-muted: #475569;
  --text-faint: #94A3B8;
  --border: #E2E8F0;
  --border-soft: #F1F5F9;
  --shadow-sm: 0 1px 3px rgba(15,23,42,0.05);
  --shadow-md: 0 4px 12px rgba(15,23,42,0.07);
  --shadow-lg: 0 24px 60px rgba(15,23,42,0.08);
}

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

html { scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
a { color: var(--primary); text-decoration: none; transition: opacity 0.15s; }
a:hover { opacity: 0.8; }

.container { max-width: 1100px; margin: 0 auto; padding: 0 24px; }
.container.narrow { max-width: 780px; }

/* ============== BUTTONS ============== */
.btn-primary, .btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 14px;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: all 0.18s;
  text-decoration: none;
  font-family: inherit;
}
.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  color: white;
  box-shadow: 0 2px 6px rgba(59,91,219,0.25);
}
.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(59,91,219,0.4);
  opacity: 1;
}
.btn-secondary {
  background: white;
  color: var(--text);
  border-color: var(--border);
}
.btn-secondary:hover {
  border-color: var(--primary);
  color: var(--primary);
  opacity: 1;
}
.btn-primary.big, .btn-secondary.big {
  padding: 15px 28px;
  font-size: 16px;
}

/* ============== TOP BAR ============== */
.topbar {
  background: white;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: saturate(180%) blur(12px);
  background: rgba(255,255,255,0.88);
}
.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 24px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: -0.3px;
  font-size: 16px;
  color: var(--text);
}
.brand:hover { opacity: 1; }
.brand-mark {
  width: 28px; height: 28px;
  border-radius: 6px;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  position: relative;
}
.brand-mark::after {
  content: "O";
  color: white;
  font-weight: 800;
  font-size: 17px;
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.topbar-nav {
  display: flex;
  gap: 22px;
  align-items: center;
}
.topbar-nav a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
}
.topbar-nav a:hover { color: var(--text); opacity: 1; }
.ghost-link { color: var(--primary) !important; font-weight: 600 !important; }

/* ============== HERO ============== */
.hero {
  padding: 72px 24px 56px;
  text-align: center;
  background:
    radial-gradient(80% 100% at 50% 0%, rgba(59,91,219,0.08) 0%, transparent 60%),
    linear-gradient(180deg, #FFFFFF 0%, #F8FAFC 100%);
}
.pill {
  display: inline-block;
  padding: 6px 14px;
  background: rgba(245,158,11,0.12);
  color: #B45309;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.2px;
  margin-bottom: 24px;
}
.hero h1 {
  font-size: 56px;
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -1.5px;
  margin-bottom: 20px;
  background: linear-gradient(135deg, var(--text) 0%, var(--primary) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.lede {
  font-size: 19px;
  color: var(--text-muted);
  max-width: 720px;
  margin: 0 auto 40px;
  line-height: 1.55;
}
.lede strong { color: var(--text); font-weight: 600; }

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  max-width: 720px;
  margin: 0 auto 36px;
}
.stat {
  background: white;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px 16px;
  text-align: center;
  box-shadow: var(--shadow-sm);
}
.stat strong {
  display: block;
  font-size: 28px;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: -0.5px;
  line-height: 1.1;
}
.stat span {
  display: block;
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 4px;
  font-weight: 500;
}

.hero-ctas {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ============== SECTIONS ============== */
.section { padding: 72px 24px; }
.section-alt { background: var(--bg-alt); }
.section h2 {
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -0.6px;
  margin-bottom: 16px;
  line-height: 1.2;
}
.section .para {
  font-size: 16px;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 16px;
}
.section .para strong { color: var(--text); font-weight: 600; }

/* ============== WHY GRID ============== */
.why-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 32px;
}
.why-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
  transition: transform 0.15s, border-color 0.15s;
}
.why-card:hover {
  transform: translateY(-2px);
  border-color: var(--primary);
}
.why-card h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 8px;
}
.why-card p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.55;
}
.why-card strong { color: var(--text); font-weight: 600; }

/* ============== OFFER TABLE ============== */
.offer-table {
  background: white;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}
.offer-row {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 24px;
  padding: 18px 24px;
  border-bottom: 1px solid var(--border-soft);
}
.offer-row:last-child { border-bottom: none; }
.offer-label {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--primary);
}
.offer-value {
  font-size: 15px;
  color: var(--text);
  line-height: 1.6;
}
.offer-value strong { font-weight: 700; }

/* ============== ASK LIST ============== */
.ask-list {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 24px;
}
.ask-list li {
  background: white;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 16px 20px;
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.6;
  padding-left: 48px;
  position: relative;
}
.ask-list li::before {
  content: "✓";
  position: absolute;
  left: 16px;
  top: 16px;
  width: 22px;
  height: 22px;
  background: var(--green-soft);
  color: var(--green);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 13px;
}
.ask-list strong { color: var(--text); font-weight: 700; }

/* ============== TIMELINE ============== */
.timeline {
  display: flex;
  flex-direction: column;
  gap: 0;
  position: relative;
  margin-top: 32px;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 80px;
  top: 24px;
  bottom: 24px;
  width: 2px;
  background: var(--border);
  z-index: 0;
}
.t-step {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 24px;
  align-items: flex-start;
  position: relative;
  padding: 12px 0;
}
.t-marker {
  font-size: 12px;
  font-weight: 700;
  color: white;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  padding: 8px 12px;
  border-radius: 8px;
  text-align: center;
  position: relative;
  z-index: 1;
  width: 80px;
  letter-spacing: 0.3px;
}
.t-body h4 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 4px;
  letter-spacing: -0.1px;
}
.t-body p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.55;
}

/* ============== FIT GRID ============== */
.fit-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 24px;
}
.fit-col {
  border-radius: 12px;
  padding: 24px;
  border: 1px solid var(--border);
}
.fit-col h3 {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 12px;
  letter-spacing: -0.2px;
}
.fit-col ul {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.fit-col ul li {
  font-size: 14px;
  line-height: 1.55;
  color: var(--text-muted);
  padding-left: 6px;
}
.fit-yes {
  background: var(--green-soft);
  border-color: rgba(16,185,129,0.3);
}
.fit-yes h3 { color: var(--green); }
.fit-no {
  background: var(--red-soft);
  border-color: rgba(239,68,68,0.25);
}
.fit-no h3 { color: var(--red); }

/* ============== APPLY (FORM) ============== */
.section-cta {
  background: linear-gradient(180deg, var(--bg-dark) 0%, #1E293B 100%);
  color: white;
}
.section-cta h2 { color: white; }
.para.light { color: #CBD5E1; }

.apply-form {
  background: white;
  border-radius: 16px;
  padding: 32px;
  margin-top: 28px;
  color: var(--text);
  box-shadow: 0 24px 48px rgba(0,0,0,0.2);
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}
.form-field {
  display: flex;
  flex-direction: column;
}
.form-field label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
}
.form-field .optional {
  font-weight: 400;
  color: var(--text-faint);
  font-size: 12px;
}
.form-field input,
.form-field select,
.form-field textarea {
  padding: 11px 14px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font-size: 14px;
  font-family: inherit;
  color: var(--text);
  background: white;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(59,91,219,0.12);
}
.form-field textarea { resize: vertical; min-height: 100px; line-height: 1.5; }

.form-actions {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-top: 20px;
  flex-wrap: wrap;
}
.form-fineprint {
  font-size: 12px;
  color: var(--text-faint);
  margin-top: 16px;
  line-height: 1.5;
}

.success-card {
  background: white;
  border-radius: 16px;
  padding: 48px 32px;
  margin-top: 28px;
  text-align: center;
  color: var(--text);
  box-shadow: 0 24px 48px rgba(0,0,0,0.2);
}
.success-icon {
  display: inline-flex;
  width: 64px; height: 64px;
  background: var(--green-soft);
  color: var(--green);
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  font-weight: 800;
  margin-bottom: 16px;
}
.success-card h3 {
  font-size: 24px;
  font-weight: 800;
  margin-bottom: 12px;
}
.success-card p {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 16px;
}
.success-card a.btn-primary { display: inline-flex; margin-top: 12px; }

/* ============== FAQ ============== */
.faqs {
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.faqs details {
  background: white;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 16px 20px;
  transition: border-color 0.15s;
}
.faqs details:hover { border-color: var(--primary); }
.faqs summary {
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.faqs summary::-webkit-details-marker { display: none; }
.faqs summary::after {
  content: "+";
  font-size: 22px;
  font-weight: 300;
  color: var(--primary);
  transition: transform 0.2s;
}
.faqs details[open] summary::after { transform: rotate(45deg); }
.faqs p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.65;
  margin-top: 12px;
}

/* ============== CLOSING / SIGNATURE ============== */
.closing { padding: 56px 24px; }
.signature {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 24px;
  align-items: center;
  background: white;
  border-radius: 16px;
  padding: 28px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}
.sig-avatar {
  width: 88px; height: 88px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -1px;
}
.sig-quote {
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  font-style: italic;
  margin-bottom: 12px;
}
.sig-name {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 2px;
}
.sig-role {
  font-size: 13px;
  color: var(--text-muted);
}

/* ============== FOOTER ============== */
.footer {
  background: var(--bg-dark);
  color: #CBD5E1;
  padding: 40px 24px 32px;
}
.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: center;
  text-align: center;
}
.footer-links {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  justify-content: center;
}
.footer-links a {
  color: #CBD5E1;
  font-size: 13px;
  font-weight: 500;
}
.footer-links a:hover { color: white; opacity: 1; }
.footer-meta {
  font-size: 11px;
  color: #64748B;
  padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,0.08);
  width: 100%;
  max-width: 600px;
}

/* ============== RESPONSIVE ============== */
@media (max-width: 720px) {
  .hero h1 { font-size: 38px; }
  .lede { font-size: 17px; }
  .stats { grid-template-columns: 1fr 1fr; gap: 12px; }
  .section { padding: 56px 16px; }
  .section h2 { font-size: 26px; }
  .why-grid, .fit-grid { grid-template-columns: 1fr; }
  .offer-row { grid-template-columns: 1fr; gap: 4px; }
  .form-row { grid-template-columns: 1fr; gap: 14px; }
  .timeline::before { left: 60px; }
  .t-step { grid-template-columns: 60px 1fr; gap: 16px; }
  .t-marker { width: 60px; font-size: 11px; padding: 6px 8px; }
  .signature { grid-template-columns: 1fr; text-align: center; }
  .sig-avatar { margin: 0 auto; }
  .topbar-nav { gap: 12px; }
  .topbar-nav a:not(.ghost-link) { display: none; }
  .hero-ctas { flex-direction: column; align-items: stretch; }
  .hero-ctas .btn-primary, .hero-ctas .btn-secondary { justify-content: center; }
}
