/* ============================================================
   Empirion — styles.css
   Lab notebook / blueprint aesthetic
   ============================================================ */

:root {
  --paper:        #f7f8fb;
  --paper-2:      #eef1f8;
  --ink:          #161827;
  --ink-soft:     #3b3f55;
  --muted:        #6b7188;
  --line:         #d6dbe8;

  --indigo:       #4338ca;
  --indigo-600:   #4f46e5;
  --indigo-300:   #a5b4fc;
  --indigo-50:    #eef0fe;
  --amber:        #fbbf24;

  --dark:         #1a1c2e;
  --dark-2:       #232646;

  --mono:         "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --sans:         "Inter", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --display:      "Space Grotesk", var(--sans);

  --radius:       14px;
  --radius-sm:    10px;
  --shadow:       0 1px 2px rgba(22,24,39,.04), 0 8px 24px rgba(22,24,39,.06);
  --shadow-lg:    0 12px 40px rgba(67,56,202,.12);
  --maxw:         1140px;
  --gridc:        rgba(67,56,202,.06);
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background-color: var(--paper);
  background-image:
    linear-gradient(var(--gridc) 1px, transparent 1px),
    linear-gradient(90deg, var(--gridc) 1px, transparent 1px);
  background-size: 28px 28px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }
a { color: var(--indigo); text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--display); line-height: 1.15; color: var(--ink); margin: 0 0 .5em; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
.mono { font-family: var(--mono); }

/* ---------- focus / a11y ---------- */
:focus-visible {
  outline: 2px solid var(--indigo-600);
  outline-offset: 2px;
  border-radius: 4px;
}
.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 200;
  background: var(--indigo); color: #fff; padding: 10px 16px; border-radius: 0 0 8px 0;
  font-weight: 600;
}
.skip-link:focus { left: 0; }

/* ---------- layout ---------- */
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 760px; }
.center { text-align: center; }
.section { padding: 84px 0; }
.section h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); }
.section-sub { color: var(--muted); font-size: 1.08rem; max-width: 620px; margin: 0 auto 1em; }
.center .section-sub { margin-left: auto; margin-right: auto; }

/* ---------- eyebrow ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--mono); font-size: .8rem; letter-spacing: .02em;
  color: var(--indigo); text-transform: uppercase; margin: 0 0 14px;
}
.eyebrow.center { justify-content: center; }
.eyebrow.light { color: var(--indigo-300); }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--amber); box-shadow: 0 0 0 3px rgba(251,191,36,.2); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--sans); font-weight: 600; font-size: .95rem;
  padding: 11px 20px; border-radius: var(--radius-sm); border: 1px solid transparent;
  cursor: pointer; transition: transform .15s ease, background .15s ease, box-shadow .15s ease, color .15s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn-lg { padding: 14px 26px; font-size: 1rem; }
.btn.full { width: 100%; }
.btn-primary { background: var(--indigo); color: #fff; box-shadow: var(--shadow); }
.btn-primary:hover { background: var(--indigo-600); box-shadow: var(--shadow-lg); }
.btn-outline { background: transparent; color: var(--indigo); border-color: var(--indigo-300); }
.btn-outline:hover { background: var(--indigo-50); }
.btn-outline-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.45); }
.btn-outline-light:hover { background: rgba(255,255,255,.1); }
.btn-ghost { background: transparent; color: var(--ink-soft); }
.btn-ghost:hover { color: var(--indigo); background: var(--indigo-50); }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(247,248,251,.82);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 24px; height: 66px; }
.brand { display: inline-flex; align-items: center; gap: 9px; font-family: var(--display); font-weight: 700; }
.brand-name { font-size: 1.25rem; color: var(--ink); letter-spacing: -.02em; }
.brand-mark { flex: none; }
.nav { display: flex; gap: 22px; margin-left: 14px; flex: 1; }
.nav a { color: var(--ink-soft); font-weight: 500; font-size: .94rem; }
.nav a:hover { color: var(--indigo); }
.header-cta { display: flex; gap: 10px; }

.hamburger {
  display: none; flex-direction: column; gap: 5px; background: none; border: 0;
  padding: 8px; cursor: pointer; margin-left: auto;
}
.hamburger span { width: 22px; height: 2px; background: var(--ink); border-radius: 2px; transition: .25s; }
.hamburger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.hamburger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  display: flex; flex-direction: column; gap: 4px; padding: 12px 24px 22px;
  border-bottom: 1px solid var(--line); background: var(--paper);
}
.mobile-menu a { padding: 11px 4px; color: var(--ink-soft); font-weight: 500; border-bottom: 1px solid var(--line); }
.mobile-menu a:last-of-type { border-bottom: 0; }
.mobile-cta { margin-top: 12px; }

/* ---------- hero ---------- */
.hero { padding: 72px 0 64px; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.hero h1 {
  font-size: clamp(2.2rem, 4.6vw, 3.5rem);
  line-height: 1.06; margin-bottom: 18px;
}
.hero h1 em { color: var(--indigo); font-style: italic; }
.lede { font-size: 1.15rem; color: var(--ink-soft); max-width: 540px; margin-bottom: 26px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 22px; }
.hero-actions.center { justify-content: center; }
.hero-strip {
  font-family: var(--mono); font-size: .85rem; color: var(--muted);
  border-left: 2px solid var(--indigo-300); padding-left: 12px; margin: 0;
}
.hero-strip .mono { color: var(--indigo); }

/* hero visual */
.viz-card {
  margin: 0; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 16px 18px 20px; position: relative;
}
.viz-card::before {
  content: ""; position: absolute; inset: 0; border-radius: var(--radius);
  background-image:
    linear-gradient(var(--gridc) 1px, transparent 1px),
    linear-gradient(90deg, var(--gridc) 1px, transparent 1px);
  background-size: 18px 18px; opacity: .5; pointer-events: none;
}
.viz-cap { font-size: .72rem; color: var(--muted); margin: 0 0 8px; }
.flow-svg { width: 100%; height: auto; position: relative; }
.flow-t { font-size: 9px; fill: var(--ink); font-family: var(--display); }
.flow-s { font-size: 7px; fill: var(--muted); font-family: var(--mono); }
.plot-wrap { margin-top: 14px; border-top: 1px dashed var(--line); padding-top: 12px; position: relative; }
.plot-svg { width: 100%; height: auto; }
.plot-axis { font-size: 8px; fill: var(--muted); }
#fitline {
  stroke-dasharray: 320; stroke-dashoffset: 320;
  transition: stroke-dashoffset 1.4s ease .3s;
}
#fitline.drawn { stroke-dashoffset: 0; }
.pt { opacity: 0; transform-box: fill-box; transform-origin: center; transform: scale(.2); transition: opacity .4s ease, transform .4s ease; }
.pt.shown { opacity: 1; transform: scale(1); }

/* ---------- trust logos ---------- */
.logos { padding: 30px 0 6px; }
.logos-label { text-align: center; font-size: .74rem; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; margin-bottom: 16px; }
.logos-row {
  list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap;
  justify-content: center; gap: 14px 40px;
}
.logos-row li { font-family: var(--display); font-weight: 600; color: var(--muted); font-size: 1.05rem; opacity: .75; }

/* ---------- cards ---------- */
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; box-shadow: var(--shadow); position: relative;
}
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.card h3 { font-size: 1.12rem; }
.card p { color: var(--ink-soft); margin-bottom: 0; font-size: .96rem; }

/* problem */
.pain-num { color: var(--indigo-300); font-size: 1.1rem; font-weight: 600; margin-bottom: 10px; }
.pain { border-top: 3px solid var(--indigo); }

/* features */
.feat-icon {
  display: inline-grid; place-items: center; width: 46px; height: 46px;
  border-radius: 11px; background: var(--indigo-50); margin-bottom: 14px;
}
.feature h3 { font-size: 1.04rem; }
.feature p { font-size: .92rem; }

/* ---------- how it works ---------- */
.how-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 22px; }
.steps li { display: grid; grid-template-columns: 40px 1fr; gap: 16px; align-items: start; }
.step-n {
  display: grid; place-items: center; width: 38px; height: 38px;
  border-radius: 10px; background: var(--indigo); color: #fff; font-weight: 600; font-size: 1rem;
}
.steps h3 { font-size: 1.08rem; margin-bottom: 4px; }
.steps p { color: var(--ink-soft); margin: 0; font-size: .96rem; }

/* snippet */
.snippet {
  background: var(--dark); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow-lg); border: 1px solid var(--dark-2);
}
.snippet-head { display: flex; align-items: center; gap: 10px; padding: 12px 16px; background: var(--dark-2); }
.dots { display: inline-flex; gap: 6px; }
.dots i { width: 10px; height: 10px; border-radius: 50%; background: #4a4f72; display: block; }
.dots i:first-child { background: #f87171; }
.dots i:nth-child(2) { background: #fbbf24; }
.dots i:nth-child(3) { background: #34d399; }
.snippet-title { color: #9aa0c4; font-size: .76rem; }
.snippet-body { padding: 18px 18px 20px; font-size: .82rem; line-height: 1.7; }
.snippet-body p { margin: 0 0 10px; color: #cdd2ef; }
.s-key { color: var(--indigo-300); }
.s-prompt { color: #e7e9fb !important; }
.s-tag {
  display: inline-block; min-width: 44px; text-align: center; padding: 1px 6px;
  border-radius: 5px; font-size: .68rem; margin-right: 8px; font-weight: 500;
}
.tag-lit { background: #312e81; color: #c7d2fe; }
.tag-hyp { background: #3f3470; color: #d8b4fe; }
.tag-run { background: #134e4a; color: #99f6e4; }
.tag-ok  { background: #14532d; color: #86efac; }
.s-result { color: #fff !important; }
.cite {
  color: var(--amber); font-size: .72rem; vertical-align: super; font-weight: 600;
  padding: 0 1px;
}
.hash { color: #86efac; }

/* ---------- research / dark band ---------- */
.band-soft { background: var(--paper-2); }
.band-dark {
  background: var(--dark);
  background-image:
    linear-gradient(rgba(165,180,252,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(165,180,252,.05) 1px, transparent 1px);
  background-size: 28px 28px;
}
.band-dark h2 { color: #fff; }
.section-sub.light { color: #a7adcf; }
.research-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 28px; align-items: start; }
.method-notes, .biblio {
  background: var(--dark-2); border: 1px solid #313666; border-radius: var(--radius); padding: 26px;
}
.rn-title { color: var(--indigo-300); font-size: .82rem; margin-bottom: 16px; }
.illus { color: var(--muted); }
.reward-eq {
  background: #14163a; border: 1px solid #2c3170; border-radius: var(--radius-sm);
  padding: 14px 16px; margin-bottom: 16px; font-size: .82rem; color: #c7d2fe;
  display: flex; flex-wrap: wrap; gap: 6px; align-items: center;
}
.reward-eq .eq-eq, .reward-eq .eq-op { color: var(--amber); font-weight: 700; }
.rn-note { color: #a7adcf; font-size: .92rem; }
.rn-note.small { font-size: .78rem; color: var(--muted); margin-bottom: 0; }
.rn-list { margin: 14px 0 0; padding-left: 18px; color: #c2c7e6; font-size: .88rem; }
.rn-list li { margin-bottom: 8px; }
.rn-list .mono { color: var(--indigo-300); }
.biblio-list { margin: 0; padding-left: 4px; list-style: none; font-size: .82rem; color: #b6bbdd; }
.biblio-list li { margin-bottom: 12px; line-height: 1.5; }
.biblio-list em { color: #e7e9fb; font-style: italic; }

/* use cases */
.usecase { border-left: 3px solid var(--indigo); }
.usecase h3 { font-size: 1.06rem; }

/* ---------- stats ---------- */
.stats-band {
  background: var(--indigo);
  background-image: linear-gradient(135deg, var(--indigo) 0%, var(--indigo-600) 100%);
  padding: 56px 0;
}
.stats { gap: 18px; }
.stat { text-align: center; color: #fff; }
.stat-num { font-family: var(--display); font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 700; line-height: 1; }
.stat-label { color: #d7dbfb; font-size: .92rem; margin: 8px 0 0; }
.stats-foot { text-align: center; color: rgba(255,255,255,.55); font-size: .74rem; margin: 28px 0 0; }

/* ---------- pricing ---------- */
.pricing { align-items: stretch; }
.price { display: flex; flex-direction: column; }
.price.featured { border: 2px solid var(--indigo); box-shadow: var(--shadow-lg); }
.price-badge {
  position: absolute; top: -11px; left: 50%; transform: translateX(-50%);
  background: var(--indigo); color: #fff; font-size: .68rem; padding: 4px 12px;
  border-radius: 20px; text-transform: uppercase; letter-spacing: .04em;
}
.price-name { font-size: 1.1rem; color: var(--indigo); margin-bottom: 8px; }
.price-amt { margin: 0 0 6px; display: flex; align-items: baseline; gap: 6px; }
.price-amt .amt { font-family: var(--display); font-size: 2rem; font-weight: 700; color: var(--ink); }
.price-amt .per { color: var(--muted); font-size: .9rem; }
.price-desc { color: var(--muted); font-size: .92rem; min-height: 42px; }
.price-feats { list-style: none; margin: 16px 0 22px; padding: 0; display: grid; gap: 10px; flex: 1; }
.price-feats li { position: relative; padding-left: 26px; font-size: .92rem; color: var(--ink-soft); }
.price-feats li::before {
  content: ""; position: absolute; left: 0; top: 4px; width: 16px; height: 16px;
  border-radius: 50%; background: var(--indigo-50);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5 5-5.5' fill='none' stroke='%234338ca' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

/* ---------- testimonials ---------- */
.quote { display: flex; flex-direction: column; gap: 18px; }
.quote blockquote { margin: 0; font-size: 1.02rem; color: var(--ink); line-height: 1.55; }
.quote figcaption { display: flex; align-items: center; gap: 12px; font-size: .88rem; }
.q-avatar {
  flex: none; display: grid; place-items: center; width: 42px; height: 42px;
  border-radius: 10px; background: var(--indigo-50); color: var(--indigo); font-weight: 600; font-size: .82rem;
}
.q-role { color: var(--muted); }

/* ---------- founders ---------- */
.founder { display: grid; grid-template-columns: 64px 1fr; gap: 18px; align-items: start; }
.founder h3 { font-size: 1.2rem; margin-bottom: 2px; }
.founder-role { color: var(--indigo); font-size: .8rem; margin-bottom: 10px; }
.founder p:last-child { font-size: .95rem; }

/* ---------- faq ---------- */
.faq { display: grid; gap: 12px; }
.faq-item {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 0; overflow: hidden;
}
.faq-item summary {
  list-style: none; cursor: pointer; padding: 18px 20px; font-weight: 600;
  font-family: var(--display); display: flex; align-items: center; justify-content: space-between;
  gap: 16px; color: var(--ink);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-icon { position: relative; flex: none; width: 16px; height: 16px; }
.faq-icon::before, .faq-icon::after {
  content: ""; position: absolute; background: var(--indigo); border-radius: 2px; transition: transform .25s;
}
.faq-icon::before { top: 7px; left: 0; width: 16px; height: 2px; }
.faq-icon::after { left: 7px; top: 0; width: 2px; height: 16px; }
.faq-item[open] .faq-icon::after { transform: scaleY(0); }
.faq-a { padding: 0 20px 18px; }
.faq-a p { margin: 0; color: var(--ink-soft); font-size: .96rem; }

/* ---------- final CTA ---------- */
.cta-band {
  background: var(--dark);
  background-image:
    linear-gradient(rgba(165,180,252,.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(165,180,252,.06) 1px, transparent 1px);
  background-size: 28px 28px;
  padding: 80px 0; text-align: center;
}
.cta-band h2 { color: #fff; font-size: clamp(1.8rem, 3.4vw, 2.6rem); }
.cta-sub { color: #a7adcf; max-width: 540px; margin: 0 auto 26px; font-size: 1.08rem; }
.cta-foot { color: rgba(255,255,255,.5); font-size: .8rem; margin: 22px 0 0; }

/* ---------- footer ---------- */
.site-footer { background: #12131f; color: #aeb3cf; padding: 56px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr 1fr; gap: 28px; }
.footer-brand .brand-name { color: #fff; }
.footer-tag { color: #9398bb; font-size: .92rem; margin: 12px 0 6px; max-width: 240px; }
.footer-by { color: #6e739a; font-size: .78rem; }
.footer-col h4 { color: #fff; font-size: .82rem; text-transform: uppercase; letter-spacing: .05em; margin-bottom: 14px; font-family: var(--mono); }
.footer-col a { display: block; color: #9398bb; font-size: .92rem; padding: 5px 0; }
.footer-col a:hover { color: var(--indigo-300); }
.footer-bottom {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  margin-top: 40px; padding-top: 22px; border-top: 1px solid #25273c; flex-wrap: wrap;
}
.footer-bottom p { margin: 0; font-size: .8rem; color: #6e739a; }
.footer-contact a { color: #9398bb; font-size: .92rem; transition: .15s; }
.footer-contact a:hover { color: var(--indigo-300); }

/* ---------- scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1 !important; transform: none !important; transition: none; }
  #fitline { stroke-dashoffset: 0 !important; transition: none; }
  .pt { opacity: 1 !important; transform: none !important; transition: none; }
  .btn:hover { transform: none; }
}

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .how-grid { grid-template-columns: 1fr; gap: 32px; }
  .research-grid { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 820px) {
  .nav, .header-cta { display: none; }
  .hamburger { display: flex; }
}

@media (max-width: 640px) {
  .section { padding: 60px 0; }
  .grid-3, .grid-4, .grid-2 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .stats { grid-template-columns: 1fr 1fr; }
  .hero { padding: 48px 0; }
  .founder { grid-template-columns: 1fr; }
}

@media (min-width: 821px) { .mobile-menu { display: none !important; } }

/* Single-founder layout */
.founders-single{display:block!important;max-width:680px;margin-left:auto;margin-right:auto}
.founders-single .founder{display:flex;gap:20px;align-items:flex-start}

/* Founder LinkedIn link */
.founder-link{margin-top:14px}
.founder-link a{display:inline-flex;align-items:center;gap:6px;font-weight:600;
  color:var(--accent,var(--gold,var(--indigo,#6366f1)));text-decoration:none;
  border-bottom:1px solid currentColor;padding-bottom:1px}
.founder-link a:hover{opacity:.8}

/* Responsive hardening */
img, video, canvas { max-width: 100%; height: auto; }
svg { max-width: 100%; }
*, *::before, *::after { min-width: 0; }
html, body { overflow-x: hidden; }
pre, code, table { max-width: 100%; overflow-x: auto; }
