/* ============================================================
   OptiStreamAI — Marketing website styles
   Ronex Solutions LLC d/b/a OptiStreamAI · 2026
   ============================================================ */

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

* { 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;
  -moz-osx-font-smoothing: grayscale;
}

a { color: inherit; text-decoration: none; transition: opacity 0.15s; }
a:hover { opacity: 0.8; }
button { font-family: inherit; cursor: pointer; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ============== BUTTONS ============== */
.btn-primary, .btn-secondary, .btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 14px;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: all 0.18s;
  text-decoration: none;
}
.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-ghost {
  background: transparent;
  color: var(--text-muted);
  padding: 10px 14px;
}
.btn-ghost:hover { color: var(--primary); opacity: 1; }
.btn-primary.big, .btn-secondary.big {
  padding: 14px 26px;
  font-size: 16px;
  border-radius: 10px;
}
.btn-primary.block, .btn-secondary.block {
  display: flex;
  justify-content: center;
  width: 100%;
}

/* ============== NAV ============== */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,0.85);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: -0.3px;
}
.logo-mark {
  width: 30px; height: 30px;
  border-radius: 7px;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  display: inline-block;
  position: relative;
}
.logo-mark::after {
  content: "O";
  color: white;
  font-weight: 800;
  font-size: 18px;
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.logo-text { font-size: 17px; }
.nav-links {
  display: flex;
  gap: 28px;
  flex: 1;
  justify-content: center;
}
.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
}
.nav-links a:hover { color: var(--text); opacity: 1; }
.nav-cta { display: flex; gap: 10px; align-items: center; }

/* ============== HERO ============== */
.hero {
  padding: 80px 24px 60px;
  background:
    radial-gradient(80% 100% at 50% 0%, rgba(59,91,219,0.08) 0%, transparent 60%),
    linear-gradient(180deg, #FFFFFF 0%, #F8FAFC 100%);
  position: relative;
  overflow: hidden;
}
.hero-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 64px;
  align-items: center;
}
.hero-badge {
  display: inline-block;
  padding: 6px 14px;
  background: var(--primary-soft);
  color: var(--primary);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 24px;
}
.hero-copy h1 {
  font-size: 56px;
  font-weight: 800;
  line-height: 1.06;
  letter-spacing: -1.5px;
  margin-bottom: 24px;
}
.grad {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-sub {
  font-size: 19px;
  color: var(--text-muted);
  margin-bottom: 32px;
  line-height: 1.55;
}
.hero-ctas {
  display: flex;
  gap: 12px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.hero-meta {
  display: flex;
  gap: 24px;
  font-size: 13px;
  color: var(--text-muted);
  flex-wrap: wrap;
}

/* Hero visual — mock dashboard */
.hero-visual {
  position: relative;
}
.hero-dashboard {
  background: white;
  border-radius: 14px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  position: relative;
  z-index: 2;
}
.hero-dash-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: #F1F5F9;
  border-bottom: 1px solid var(--border);
}
.hero-dot {
  width: 11px; height: 11px;
  border-radius: 50%;
}
.hero-dot.red { background: #EF4444; }
.hero-dot.yellow { background: #F59E0B; }
.hero-dot.green { background: #10B981; }
.hero-dash-title {
  font-size: 11px;
  color: var(--text-muted);
  margin-left: 8px;
  font-weight: 500;
}
.hero-dash-body { padding: 20px; }
.hero-stat-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-bottom: 18px;
}
.hero-stat {
  background: #F8FAFC;
  border-radius: 8px;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
}
.hero-stat span {
  font-size: 10px;
  color: var(--text-faint);
  margin-bottom: 2px;
  font-weight: 500;
}
.hero-stat strong { font-size: 20px; letter-spacing: -0.3px; }
.hero-chart {
  background: #FFFBEB;
  border: 1px solid #FDE68A;
  border-radius: 8px;
  padding: 14px;
  margin-bottom: 14px;
  position: relative;
}
.hero-chart svg {
  display: block;
  width: 100%;
  height: 90px;
}
.hero-chart-label {
  position: absolute;
  bottom: 14px; left: 14px;
  font-size: 11px;
  color: #92400E;
  font-weight: 600;
}
.hero-mini-table {
  background: #F8FAFC;
  border-radius: 8px;
  overflow: hidden;
}
.hero-row {
  display: grid;
  grid-template-columns: 60px 1fr 70px;
  padding: 8px 12px;
  font-size: 12px;
  border-bottom: 1px solid var(--border-soft);
  align-items: center;
}
.hero-row:last-child { border-bottom: none; }
.badge {
  font-size: 10px;
  padding: 2px 8px;
  border-radius: 999px;
  font-weight: 600;
}
.badge-red { background: #FEF2F2; color: #DC2626; }
.badge-orange { background: #FFFBEB; color: #D97706; }
.hero-glow {
  position: absolute;
  top: -40px; right: -40px;
  width: 80%; height: 80%;
  background: radial-gradient(ellipse at center, rgba(245,158,11,0.18) 0%, transparent 70%);
  filter: blur(40px);
  z-index: 1;
}

/* ============== TRUST STRIP ============== */
.trust {
  padding: 32px 24px;
  background: white;
  border-bottom: 1px solid var(--border);
  border-top: 1px solid var(--border);
}
.trust .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}
.trust-label {
  font-size: 12px;
  color: var(--text-faint);
  text-transform: uppercase;
  letter-spacing: 1.2px;
  font-weight: 600;
  text-align: center;
}
.trust-logos {
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
  justify-content: center;
}
.trust-logo {
  font-weight: 700;
  font-size: 16px;
  color: var(--text-muted);
  letter-spacing: -0.2px;
  opacity: 0.6;
  transition: opacity 0.2s;
}
.trust-logo:hover { opacity: 1; }

/* ============== SECTIONS ============== */
.section { padding: 96px 24px; }
.section-alt { background: var(--bg-alt); }
.section-dark {
  background: linear-gradient(180deg, var(--bg-dark) 0%, var(--bg-dark-2) 100%);
  color: white;
}
.section-head {
  text-align: center;
  margin-bottom: 56px;
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}
.eyebrow {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 700;
  color: var(--primary);
  display: inline-block;
  margin-bottom: 12px;
}
.eyebrow.light { color: var(--primary-2); }
.section-head h2 {
  font-size: 40px;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.8px;
  margin-bottom: 16px;
}
.section-head h2.light { color: white; }
.section-lede {
  font-size: 17px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ============== PROBLEM ============== */
.problem-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 64px;
}
.problem-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 32px;
  transition: transform 0.18s, box-shadow 0.18s;
}
.problem-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.problem-icon {
  font-size: 32px;
  margin-bottom: 16px;
}
.problem-card h3 {
  font-size: 19px;
  font-weight: 700;
  margin-bottom: 10px;
  letter-spacing: -0.2px;
}
.problem-card p {
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.6;
}
.problem-stat-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  padding: 32px;
  background: linear-gradient(135deg, var(--primary-soft), white);
  border-radius: 16px;
  border: 1px solid var(--border);
}
.problem-stat {
  display: flex;
  flex-direction: column;
  text-align: center;
  gap: 6px;
}
.problem-stat strong {
  font-size: 36px;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: -1px;
}
.problem-stat span {
  font-size: 13px;
  color: var(--text-muted);
}

/* ============== MODULES ============== */
.modules-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.module {
  background: white;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 36px;
  position: relative;
  transition: transform 0.18s, box-shadow 0.18s;
}
.module:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary);
}
.module-num {
  position: absolute;
  top: 28px;
  right: 32px;
  font-size: 32px;
  font-weight: 800;
  color: var(--primary-soft);
  letter-spacing: -1px;
}
.module h3 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 12px;
  letter-spacing: -0.3px;
}
.module > p {
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.6;
  margin-bottom: 16px;
}
.module-bullets {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.module-bullets li {
  font-size: 13px;
  color: var(--text);
  padding-left: 22px;
  position: relative;
}
.module-bullets li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--green);
  font-weight: 700;
}

/* ============== HOW IT WORKS ============== */
.how-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 48px;
}
.how-step {
  text-align: left;
  padding: 28px;
  border-radius: 12px;
  background: white;
  border: 1px solid var(--border);
  position: relative;
}
.how-num {
  display: inline-flex;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  color: white;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 15px;
  margin-bottom: 16px;
}
.how-step h3 {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 8px;
  letter-spacing: -0.2px;
}
.how-step p {
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.55;
}
.how-cta {
  text-align: center;
}

/* ============== EVIDENCE ============== */
.evidence-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.evidence-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 16px;
  padding: 32px;
  transition: background 0.18s;
}
.evidence-card:hover { background: rgba(255,255,255,0.07); }
.ev-pill {
  display: inline-block;
  padding: 4px 12px;
  background: rgba(92,124,250,0.2);
  color: #93C5FD;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 14px;
}
.evidence-card h3 {
  color: white;
  font-size: 19px;
  font-weight: 700;
  margin-bottom: 10px;
  letter-spacing: -0.2px;
}
.evidence-card p {
  color: #CBD5E1;
  font-size: 15px;
  line-height: 1.6;
}
.evidence-card strong { color: white; font-weight: 600; }
.evidence-card em { color: #FCD34D; font-style: italic; }

/* ============== PRICING ============== */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 1100px;
  margin: 0 auto;
}
.pricing-card {
  background: white;
  border: 1.5px solid var(--border);
  border-radius: 18px;
  padding: 36px 32px;
  position: relative;
  transition: transform 0.18s, box-shadow 0.18s;
}
.pricing-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.pricing-card.featured {
  border-color: var(--primary);
  background: linear-gradient(180deg, white 0%, var(--primary-soft) 100%);
  box-shadow: 0 0 0 4px rgba(59,91,219,0.1);
}
.price-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  color: white;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.pricing-card h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 12px;
}
.price-amount {
  font-size: 42px;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -1.5px;
  margin-bottom: 24px;
  display: flex;
  align-items: baseline;
  gap: 8px;
}
.price-amount span {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0;
}
.price-bullets {
  list-style: none;
  padding: 0;
  margin-bottom: 28px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.price-bullets li {
  font-size: 14px;
  color: var(--text);
  padding-left: 26px;
  position: relative;
  line-height: 1.5;
}
.price-bullets li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--green);
  font-weight: 800;
  width: 18px;
  height: 18px;
  background: #DCFCE7;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
}

/* ============== FOUNDER ============== */
.founder-grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 64px;
  align-items: center;
}
.founder-photo {
  display: flex;
  justify-content: center;
}
.founder-avatar {
  width: 200px; height: 200px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 64px;
  font-weight: 800;
  letter-spacing: -2px;
  box-shadow: 0 12px 32px rgba(59,91,219,0.3);
}
.founder-copy h2 {
  font-size: 36px;
  font-weight: 800;
  letter-spacing: -0.8px;
  margin: 8px 0 20px;
}
.founder-quote {
  font-size: 18px;
  line-height: 1.6;
  color: var(--text);
  margin-bottom: 24px;
  padding: 20px 24px;
  background: white;
  border-left: 4px solid var(--primary);
  border-radius: 6px;
  font-style: italic;
}
.founder-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 20px;
}
.founder-meta strong { font-size: 17px; font-weight: 700; }
.founder-meta span { font-size: 14px; color: var(--text-muted); }
.founder-creds {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.founder-creds span {
  font-size: 14px;
  color: var(--text-muted);
}

/* ============== CTA ============== */
.section-cta {
  background:
    radial-gradient(60% 80% at 50% 0%, rgba(245,158,11,0.1) 0%, transparent 60%),
    linear-gradient(180deg, var(--bg-dark) 0%, var(--bg-dark-2) 100%);
  color: white;
}
.cta-box {
  max-width: 720px;
  margin: 0 auto 48px;
  text-align: center;
}
.cta-box h2 {
  font-size: 42px;
  font-weight: 800;
  letter-spacing: -1px;
  margin-bottom: 16px;
}
.cta-box p {
  font-size: 17px;
  color: #CBD5E1;
  line-height: 1.6;
  margin-bottom: 32px;
}
.cta-form {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 16px;
}
.cta-form input {
  padding: 14px 18px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.08);
  color: white;
  font-size: 15px;
  font-family: inherit;
  min-width: 220px;
  outline: none;
  transition: border-color 0.15s, background 0.15s;
}
.cta-form input::placeholder { color: #94A3B8; }
.cta-form input:focus {
  border-color: var(--primary-2);
  background: rgba(255,255,255,0.12);
}
.cta-form button {
  padding: 14px 26px;
  font-size: 15px;
  border-radius: 10px;
  border: none;
}
.cta-fineprint {
  font-size: 13px;
  color: var(--text-faint);
  margin-top: 12px;
}
.cta-fineprint a {
  color: var(--primary-2);
  text-decoration: underline;
}
.cta-alt {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
  padding-top: 48px;
  border-top: 1px solid rgba(255,255,255,0.1);
}
.cta-alt h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
  color: white;
}
.cta-alt p {
  font-size: 15px;
  color: #94A3B8;
  line-height: 1.6;
}
.cta-alt a { color: var(--primary-2); text-decoration: underline; }

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

/* ============== FOOTER ============== */
.footer {
  background: var(--bg-dark);
  color: #CBD5E1;
  padding: 64px 24px 24px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}
.footer-brand .logo { color: white; }
.footer-brand p {
  margin-top: 16px;
  font-size: 14px;
  color: #94A3B8;
  line-height: 1.5;
  max-width: 280px;
}
.footer-llc {
  margin-top: 12px !important;
  font-size: 12px !important;
  color: #64748B !important;
}
.footer-col h4 {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: white;
  margin-bottom: 18px;
}
.footer-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-col a {
  font-size: 14px;
  color: #CBD5E1;
}
.footer-col a:hover { color: white; opacity: 1; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.1);
  font-size: 12px;
  color: #64748B;
  flex-wrap: wrap;
  gap: 12px;
}

/* ============== RESPONSIVE ============== */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .hero-copy h1 { font-size: 44px; }
  .problem-grid, .modules-grid, .pricing-grid, .evidence-grid {
    grid-template-columns: 1fr; gap: 16px;
  }
  .how-grid { grid-template-columns: repeat(2, 1fr); }
  .founder-grid { grid-template-columns: 1fr; text-align: center; gap: 32px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 640px) {
  .nav-links { display: none; }
  .nav-cta .btn-ghost { display: none; }
  .section { padding: 64px 16px; }
  .hero { padding: 56px 16px 40px; }
  .hero-copy h1 { font-size: 36px; }
  .section-head h2 { font-size: 30px; }
  .how-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .problem-stat-row { grid-template-columns: 1fr; gap: 16px; }
  .cta-box h2 { font-size: 30px; }
  .cta-form { flex-direction: column; }
  .cta-form input, .cta-form button { width: 100%; min-width: 0; }
}
