/* ══════════════════════════════════════════════════════
   Eigenflow Pro v3 — Precision Layout · Dense · AI-Native
   ══════════════════════════════════════════════════════ */

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

:root {
  --bg:        #0A0D14;
  --bg2:       #0E1219;
  --bg3:       #121720;
  --bg4:       #161C2A;
  --navy:      #192038;
  --teal:      #7DB5A8;
  --teal-dim:  rgba(125,181,168,0.15);
  --teal-glow: rgba(125,181,168,0.08);
  --blue:      #6E92B8;
  --rose:      #B86868;
  --amber:     #BEA070;
  --lav:       #A0A0C0;
  --white:     #F0F4FF;
  --dim:       #3A4560;
  --dim2:      #2A3450;
  --muted:     #222840;
  --text:      #C8D4E8;
  --text-sm:   #6878A0;
  --rule:      #181F30;
  --rule2:     #1E2840;

  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-sans:  'Jost', system-ui, sans-serif;
  --font-mono:  'JetBrains Mono', 'Fira Mono', monospace;

  --max-w:  1240px;
  --pad-x:  clamp(20px, 4.5vw, 72px);

  /* Tighter section spacing */
  --sec-pad: 72px;
  --sec-pad-sm: 48px;
}

html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-weight: 300;
  line-height: 1.6;
  overflow-x: hidden;
  font-size: 15px;
}
h1, h2, h3, h4 { font-family: var(--font-serif); font-weight: 400; line-height: 1.1; }

/* ── PROVENANCE BAR ───────────────────────────────────── */
.provenance-bar {
  background: var(--navy);
  border-bottom: 1px solid var(--rule);
  padding: 7px var(--pad-x);
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
}
.pb-inner {
  max-width: var(--max-w); margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
}
.pb-text { font-size: 0.65rem; color: var(--text-sm); line-height: 1.4; }
.pb-link {
  font-size: 0.65rem; color: var(--teal); text-decoration: none;
  white-space: nowrap; letter-spacing: 0.04em; transition: opacity 0.2s; flex-shrink: 0;
}
.pb-link:hover { opacity: 0.7; }

/* ── NAV ──────────────────────────────────────────────── */
#nav {
  position: fixed; top: 30px; left: 0; right: 0; z-index: 100;
  padding: 13px var(--pad-x);
  background: rgba(10,13,20,0.97);
  border-bottom: 1px solid var(--rule);
  backdrop-filter: blur(16px);
}
.nav-inner {
  max-width: var(--max-w); width: 100%; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
}
.nav-brand { display: flex; align-items: center; gap: 8px; }
.nav-parent {
  display: flex; align-items: baseline; gap: 4px;
  text-decoration: none; transition: opacity 0.2s;
}
.nav-parent:hover { opacity: 0.65; }
.nav-parent-name { font-family: var(--font-serif); font-size: 1rem; font-weight: 500; color: var(--text-sm); }
.nav-parent-sep, .nav-parent-sub { font-size: 0.58rem; color: var(--dim); letter-spacing: 0.04em; }
.nav-parent-arrow { font-size: 0.58rem; color: var(--teal); margin-left: 1px; }
.nav-divider { color: var(--dim); font-size: 0.75rem; margin: 0 6px; }
.nav-pro-badge { font-family: var(--font-serif); font-size: 1.15rem; font-weight: 500; color: var(--white); letter-spacing: 0.01em; }
.nav-links { display: flex; list-style: none; gap: 22px; align-items: center; }
.nav-links a { font-size: 0.72rem; color: var(--text-sm); text-decoration: none; letter-spacing: 0.04em; transition: color 0.2s; }
.nav-links a:hover { color: var(--white); }
.nav-cta {
  border: 1px solid var(--teal); color: var(--teal) !important;
  padding: 5px 14px; border-radius: 1px;
  transition: background 0.2s, color 0.2s !important;
  font-size: 0.7rem !important;
}
.nav-cta:hover { background: var(--teal); color: var(--bg) !important; }

/* ── HERO ─────────────────────────────────────────────── */
#hero {
  min-height: 100vh;
  display: grid; grid-template-columns: 1.05fr 0.95fr;
  align-items: start;
  gap: 48px;
  padding: 0 var(--pad-x);
  padding-top: max(118px, 13vh);
  padding-bottom: 56px;
  max-width: var(--max-w); margin: 0 auto;
}
.hero-eyebrow {
  font-size: 0.6rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--teal); margin-bottom: 14px; display: flex; align-items: center; gap: 8px;
}
.hero-eyebrow::before {
  content: ''; display: inline-block; width: 18px; height: 1px; background: var(--teal); opacity: 0.6;
}
.hero-title {
  font-size: clamp(2rem, 3.5vw, 3.2rem);
  color: var(--white); margin-bottom: 18px; line-height: 1.08;
}
.hero-title em { font-style: italic; color: var(--teal); }
.hero-sub {
  font-size: 0.82rem; color: var(--text-sm);
  max-width: 500px; margin-bottom: 26px; line-height: 1.85;
}

/* User tabs — horizontal, compact */
.hero-user-tabs {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1px; background: var(--rule); margin-bottom: 24px;
}
.user-tab {
  display: flex; flex-direction: column; gap: 2px;
  padding: 12px 14px; text-decoration: none;
  background: var(--bg3);
  transition: background 0.2s;
}
.user-tab:hover { background: var(--bg4); }
.user-tab.active-tab {
  background: var(--bg4);
  border-top: 1px solid var(--teal);
}
.ut-role { font-size: 0.72rem; font-weight: 500; color: var(--white); }
.user-tab.active-tab .ut-role { color: var(--teal); }
.ut-desc { font-size: 0.6rem; color: var(--text-sm); line-height: 1.4; }

.hero-actions { display: flex; gap: 10px; flex-wrap: wrap; }

.btn-primary {
  background: var(--teal); color: var(--bg);
  padding: 10px 22px; font-size: 0.74rem; letter-spacing: 0.06em;
  text-decoration: none; border-radius: 1px; font-family: var(--font-sans);
  font-weight: 500; transition: background 0.2s; white-space: nowrap;
}
.btn-primary:hover { background: #6DA89A; }
.btn-ghost {
  border: 1px solid var(--rule2); color: var(--text-sm);
  padding: 10px 20px; font-size: 0.72rem; letter-spacing: 0.04em;
  text-decoration: none; border-radius: 1px; font-family: var(--font-sans);
  transition: border-color 0.2s, color 0.2s; white-space: nowrap;
}
.btn-ghost:hover { border-color: var(--teal); color: var(--teal); }

/* ── TERMINAL ─────────────────────────────────────────── */
.hero-terminal {
  background: var(--bg2); border: 1px solid var(--rule2);
  overflow: hidden; font-family: var(--font-mono);
  position: relative;
}
.hero-terminal::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--teal), transparent);
  opacity: 0.4;
}
.terminal-bar {
  background: var(--bg3); padding: 8px 14px;
  display: flex; align-items: center; gap: 7px;
  border-bottom: 1px solid var(--rule);
}
.t-dot { width: 8px; height: 8px; border-radius: 50%; }
.t-dot.red { background: #B86868; } .t-dot.amber { background: #BEA070; } .t-dot.green { background: #7DB5A8; }
.t-label { font-size: 0.58rem; color: var(--dim); letter-spacing: 0.05em; margin-left: 6px; flex: 1; }
.t-status { display: flex; align-items: center; gap: 4px; font-size: 0.56rem; color: var(--teal); letter-spacing: 0.1em; }
.pulse-dot {
  width: 5px; height: 5px; border-radius: 50%; background: var(--teal);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 2px rgba(125,181,168,0.25); }
  50% { opacity: 0.5; box-shadow: 0 0 0 4px rgba(125,181,168,0.06); }
}
.terminal-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 7px; }
.t-line {
  font-size: 0.68rem; line-height: 1.45;
  display: flex; gap: 9px; align-items: baseline;
  opacity: 0; transform: translateY(3px);
  transition: opacity 0.35s, transform 0.35s;
}
.t-line.visible { opacity: 1; transform: translateY(0); }
.t-line.dim { color: var(--dim); font-size: 0.62rem; }
.t-line.blank { height: 3px; }
.t-key { color: var(--blue); min-width: 48px; font-weight: 400; letter-spacing: 0.02em; flex-shrink: 0; }
.t-val { color: var(--text); }
.t-val.alert { color: var(--amber); }
.t-val.success { color: var(--teal); }
.t-val.think { color: var(--lav); font-style: italic; }
.t-val.dim { color: var(--dim); }

/* Agent status bar */
.agent-status-bar {
  background: var(--bg3); border-top: 1px solid var(--rule);
  padding: 10px 14px; display: flex; flex-direction: column; gap: 7px;
}
.asb-item { display: flex; align-items: center; gap: 8px; }
.asb-label { font-family: var(--font-mono); font-size: 0.56rem; color: var(--dim); min-width: 66px; letter-spacing: 0.05em; flex-shrink: 0; }
.asb-bar { flex: 1; height: 2px; background: var(--muted); overflow: hidden; }
.asb-fill { height: 100%; background: var(--blue); transition: width 1.5s ease; }
.asb-fill.teal { background: var(--teal); }
.asb-fill.green { background: var(--teal); }
.asb-val { font-family: var(--font-mono); font-size: 0.58rem; color: var(--white); min-width: 24px; text-align: right; flex-shrink: 0; }

/* ── SHARED SECTION ───────────────────────────────────── */
.section-header { margin-bottom: 36px; }
.section-header.centered { text-align: center; }
.section-eyebrow {
  font-size: 0.6rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--teal); margin-bottom: 10px; display: flex; align-items: center; gap: 8px;
}
.section-eyebrow.centered { justify-content: center; }
.section-eyebrow::before {
  content: ''; display: inline-block; width: 14px; height: 1px; background: var(--teal); opacity: 0.5; flex-shrink: 0;
}
.centered .section-eyebrow::before { display: none; }
.section-title { font-size: clamp(1.65rem, 2.6vw, 2.3rem); color: var(--white); margin-bottom: 12px; }
.section-sub { font-size: 0.82rem; color: var(--text-sm); max-width: 560px; line-height: 1.85; }
.section-sub.wide { max-width: 720px; }
.section-sub.centered-sub { margin: 0 auto; text-align: center; }

/* ── ARCHITECTURE ─────────────────────────────────────── */
#architecture {
  padding: var(--sec-pad) var(--pad-x) calc(var(--sec-pad) - 8px);
  background: var(--bg2);
}
.arch-inner { max-width: var(--max-w); margin: 0 auto; }
.arch-layout { display: grid; grid-template-columns: 1fr 1.6fr; gap: 52px; align-items: start; }
.arch-diagram { display: flex; flex-direction: column; align-items: stretch; gap: 0; }

.arch-users {
  display: flex; gap: 6px; margin-bottom: 0; padding-bottom: 10px;
  justify-content: flex-start;
}
.au-node {
  padding: 5px 14px; font-size: 0.65rem; letter-spacing: 0.06em;
  font-family: var(--font-mono); font-weight: 400; border-radius: 1px;
}
.gp-node  { background: rgba(125,181,168,0.1); color: var(--teal); border: 1px solid rgba(125,181,168,0.2); }
.lp-node  { background: rgba(110,146,184,0.1); color: var(--blue); border: 1px solid rgba(110,146,184,0.2); }
.adv-node { background: rgba(190,160,112,0.1); color: var(--amber); border: 1px solid rgba(190,160,112,0.2); }

.arch-connector {
  display: flex; align-items: center; gap: 10px; padding: 4px 0;
}
.conn-line { width: 1px; height: 18px; background: linear-gradient(to bottom, var(--teal), var(--rule)); opacity: 0.35; margin-left: 40px; }
.conn-label { font-size: 0.55rem; color: var(--dim); letter-spacing: 0.06em; font-family: var(--font-mono); }

.arch-layer {
  border: 1px solid var(--rule); background: var(--bg3);
  padding: 14px 16px; transition: border-color 0.25s;
}
.arch-layer:hover { border-color: rgba(125,181,168,0.22); }
.app-layer     { border-top: 2px solid rgba(125,181,168,0.4); }
.analytics-layer { border-top: 2px solid rgba(110,146,184,0.3); }
.data-layer    { border-top: 2px solid rgba(255,255,255,0.06); }
.infra-layer   { border-top: 2px solid rgba(190,160,112,0.3); }

.layer-label { display: flex; align-items: baseline; gap: 8px; margin-bottom: 10px; }
.layer-num { font-family: var(--font-mono); font-size: 0.56rem; color: var(--teal); letter-spacing: 0.1em; }
.analytics-layer .layer-num { color: var(--blue); }
.data-layer .layer-num { color: var(--dim); }
.infra-layer .layer-num { color: var(--amber); }
.layer-name { font-size: 0.68rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--white); font-weight: 400; }
.layer-modules { display: flex; flex-wrap: wrap; gap: 5px; }
.lm-chip {
  font-family: var(--font-mono); font-size: 0.6rem; color: var(--text-sm);
  background: rgba(255,255,255,0.03); border: 1px solid var(--rule);
  padding: 3px 8px; border-radius: 1px; letter-spacing: 0.01em;
}
.lm-chip.featured-chip { color: var(--teal); background: var(--teal-glow); border-color: rgba(125,181,168,0.18); }
.analytics-layer .lm-chip.featured-chip { color: var(--blue); background: rgba(110,146,184,0.06); border-color: rgba(110,146,184,0.18); }
.infra-layer .lm-chip.featured-chip { color: var(--amber); background: rgba(190,160,112,0.06); border-color: rgba(190,160,112,0.18); }

/* ── ENGINE SECTIONS ──────────────────────────────────── */
#gp  { padding: var(--sec-pad) var(--pad-x); background: var(--bg2); }
#lp  { padding: var(--sec-pad) var(--pad-x); }

.engine-layout {
  max-width: var(--max-w); margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 52px; align-items: start;
}
.engine-layout.reverse { direction: rtl; }
.engine-layout.reverse > * { direction: ltr; }
.engine-header .section-header { margin-bottom: 24px; }

.engine-bullets { list-style: none; margin-top: 20px; display: flex; flex-direction: column; gap: 12px; }
.engine-bullets li { font-size: 0.78rem; color: var(--text-sm); line-height: 1.65; display: flex; align-items: flex-start; gap: 8px; }
.bullet-tag {
  font-family: var(--font-mono); font-size: 0.56rem;
  background: var(--teal-glow); border: 1px solid rgba(125,181,168,0.18);
  color: var(--teal); padding: 2px 7px; border-radius: 1px;
  white-space: nowrap; flex-shrink: 0; margin-top: 3px;
}

.engine-panel { background: var(--bg3); border: 1px solid var(--rule); overflow: hidden; }
.panel-bar {
  padding: 10px 16px; background: rgba(255,255,255,0.02);
  border-bottom: 1px solid var(--rule);
  display: flex; align-items: center; justify-content: space-between;
}
.panel-title { font-size: 0.65rem; color: var(--text-sm); letter-spacing: 0.04em; }
.panel-live { display: flex; align-items: center; gap: 4px; font-size: 0.58rem; color: var(--teal); }

.agent-feed { display: flex; flex-direction: column; }
.af-row {
  display: grid; grid-template-columns: 34px 16px 1fr auto;
  gap: 8px; align-items: start;
  padding: 11px 14px;
  border-bottom: 1px solid var(--rule);
  transition: background 0.2s;
}
.af-row:last-child { border-bottom: none; }
.af-row:hover { background: rgba(255,255,255,0.015); }
.af-row.signal { background: rgba(190,160,112,0.04); }
.af-row.muted { opacity: 0.5; }
.af-time { font-family: var(--font-mono); font-size: 0.55rem; color: var(--dim); margin-top: 2px; }
.af-icon { font-size: 0.7rem; color: var(--teal); margin-top: 2px; }
.af-row.signal .af-icon { color: var(--amber); }
.af-title { font-size: 0.72rem; color: var(--white); margin-bottom: 2px; }
.af-desc { font-size: 0.62rem; color: var(--text-sm); line-height: 1.5; }
.af-badge {
  font-family: var(--font-mono); font-size: 0.52rem; letter-spacing: 0.08em;
  background: rgba(190,160,112,0.1); color: var(--amber);
  border: 1px solid rgba(190,160,112,0.2);
  padding: 2px 5px; border-radius: 1px; white-space: nowrap; align-self: start; margin-top: 1px;
}
.af-badge.neutral { background: rgba(110,146,184,0.08); color: var(--blue); border-color: rgba(110,146,184,0.16); }
.af-badge.trust { background: var(--teal-glow); color: var(--teal); border-color: rgba(125,181,168,0.16); }

.panel-img-wrap { position: relative; line-height: 0; border-top: 1px solid var(--rule); }
.panel-img { width: 100%; display: block; opacity: 0.8; }
.panel-overlay {
  position: absolute; bottom: 0; left: 0; right: 0; padding: 6px 12px;
  background: linear-gradient(to top, rgba(10,13,20,0.92), transparent);
}
.po-label { font-size: 0.55rem; color: var(--teal); letter-spacing: 0.07em; }

/* ── LP PRICING ───────────────────────────────────────── */
.pricing-block {}
.pricing-row {
  display: grid; grid-template-columns: 74px 1fr 1fr auto;
  gap: 8px; align-items: center;
  padding: 10px 14px;
  border-bottom: 1px solid var(--rule);
  font-size: 0.7rem;
}
.pricing-row.header { font-size: 0.55rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--dim); padding: 8px 14px; background: rgba(255,255,255,0.02); }
.pricing-row.featured-row { background: rgba(125,181,168,0.04); }
.sc-label { font-family: var(--font-mono); font-size: 0.66rem; color: var(--text-sm); }
.pricing-row.featured-row .sc-label { color: var(--teal); }
.sc-disc { font-family: var(--font-mono); color: var(--white); }
.sc-irr { font-family: var(--font-mono); color: var(--text-sm); }
.sc-sig { font-family: var(--font-mono); font-size: 0.56rem; padding: 1px 6px; border-radius: 1px; letter-spacing: 0.06em; text-align: center; }
.sc-sig.buy { background: var(--teal-glow); color: var(--teal); border: 1px solid rgba(125,181,168,0.22); }
.sc-sig.counter { background: rgba(190,160,112,0.1); color: var(--amber); border: 1px solid rgba(190,160,112,0.22); }
.sc-sig.avoid { background: rgba(184,104,104,0.1); color: var(--rose); border: 1px solid rgba(184,104,104,0.22); }

.margin-safety { padding: 12px 14px; border-bottom: 1px solid var(--rule); }
.ms-label { font-size: 0.55rem; letter-spacing: 0.09em; text-transform: uppercase; color: var(--dim); margin-bottom: 8px; }
.ms-bar-wrap { position: relative; height: 4px; background: var(--muted); border-radius: 2px; margin-bottom: 6px; }
.ms-bar { position: absolute; left: 0; top: 0; bottom: 0; background: linear-gradient(to right, var(--rose), var(--amber), var(--teal)); border-radius: 2px; width: 0; transition: width 1.2s ease; }
.ms-marker { position: absolute; top: -6px; transform: translateX(-50%); }
.ms-pin { font-family: var(--font-mono); font-size: 0.56rem; color: var(--amber); white-space: nowrap; }
.ms-scale { display: flex; justify-content: space-between; font-family: var(--font-mono); font-size: 0.52rem; color: var(--dim); }

.proprietary-box {
  margin-top: 24px; background: var(--bg3);
  border: 1px solid var(--rule); border-left: 2px solid var(--teal); padding: 14px 16px;
}
.pb-label { font-size: 0.56rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--teal); margin-bottom: 8px; }
.pb-formula { display: flex; align-items: center; gap: 8px; font-family: var(--font-serif); font-size: 0.95rem; color: var(--white); flex-wrap: wrap; }
.formula-eq { color: var(--dim); }
.formula-var { color: var(--teal); font-style: italic; }
.pb-note { font-size: 0.65rem; color: var(--text-sm); margin-top: 8px; line-height: 1.6; }

/* ── AI AGENT SECTION ─────────────────────────────────── */
#agent { padding: var(--sec-pad) var(--pad-x); }
.agent-inner { max-width: var(--max-w); margin: 0 auto; }
.agent-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 52px; align-items: start; }

.agent-workflow { display: flex; flex-direction: column; gap: 0; }
.aw-step {
  display: flex; gap: 14px; align-items: flex-start;
  background: var(--bg3); border: 1px solid var(--rule);
  border-top: none; padding: 18px 20px;
  transition: border-color 0.25s;
}
.aw-step:first-child { border-top: 1px solid var(--rule); }
.aw-step:hover { background: var(--bg4); }
.aw-step.featured-step {
  background: rgba(125,181,168,0.04); border-left: 2px solid var(--teal);
}
.aw-num { font-family: var(--font-mono); font-size: 0.6rem; color: var(--dim); letter-spacing: 0.08em; flex-shrink: 0; min-width: 18px; margin-top: 1px; }
.aw-num.teal { color: var(--teal); }
.aw-title { font-size: 0.82rem; font-weight: 400; color: var(--white); margin-bottom: 5px; }
.aw-desc { font-size: 0.72rem; color: var(--text-sm); line-height: 1.7; margin-bottom: 8px; }
.aw-tags { display: flex; flex-wrap: wrap; gap: 5px; }
.aw-tag { font-family: var(--font-mono); font-size: 0.56rem; color: var(--blue); background: rgba(110,146,184,0.07); border: 1px solid rgba(110,146,184,0.16); padding: 2px 6px; border-radius: 1px; }
.aw-tag.amber { color: var(--amber); background: rgba(190,160,112,0.07); border-color: rgba(190,160,112,0.18); }

.aw-chain { display: flex; align-items: center; flex-wrap: wrap; gap: 3px; margin-top: 6px; }
.aw-chain-step { font-family: var(--font-mono); font-size: 0.56rem; color: var(--dim); background: var(--bg2); border: 1px solid var(--rule); padding: 2px 7px; border-radius: 1px; }
.aw-chain-step.active { color: var(--teal); background: var(--teal-glow); border-color: rgba(125,181,168,0.22); animation: chainPulse 2.5s ease-in-out infinite; }
@keyframes chainPulse { 0%, 100% { box-shadow: none; } 50% { box-shadow: 0 0 6px rgba(125,181,168,0.25); } }
.aw-chain-arrow { font-size: 0.6rem; color: var(--dim); }

.aw-step-connector { text-align: left; padding: 0 0 0 32px; color: rgba(125,181,168,0.2); font-size: 0.7rem; line-height: 1; }

/* Agent live panel */
.agent-live-panel { background: var(--bg3); border: 1px solid var(--rule); }
.alp-bar { padding: 10px 16px; background: rgba(255,255,255,0.02); border-bottom: 1px solid var(--rule); display: flex; align-items: center; justify-content: space-between; }
.alp-title { font-size: 0.65rem; color: var(--text-sm); letter-spacing: 0.04em; }
.alp-status { display: flex; align-items: center; gap: 4px; font-size: 0.56rem; color: var(--lav); letter-spacing: 0.08em; }
.alp-status .pulse-dot { background: var(--lav); width: 4px; height: 4px; }
.alp-body { padding: 14px 16px; display: flex; flex-direction: column; gap: 12px; }
.alp-metric { display: flex; align-items: center; gap: 10px; }
.alp-label { font-family: var(--font-mono); font-size: 0.56rem; color: var(--dim); min-width: 100px; letter-spacing: 0.03em; flex-shrink: 0; }
.alp-val { font-family: var(--font-mono); font-size: 0.68rem; color: var(--white); }
.alp-progress { flex: 1; height: 3px; background: var(--muted); overflow: hidden; }
.alp-fill { height: 100%; background: var(--blue); transition: width 1.2s ease; }
.alp-fill.teal { background: var(--teal); }
.alp-pct { font-family: var(--font-mono); font-size: 0.58rem; color: var(--text-sm); min-width: 34px; text-align: right; flex-shrink: 0; }
.alp-pct.conf { color: var(--teal); }
.alp-zk { font-family: var(--font-mono); font-size: 0.64rem; color: var(--amber); animation: zkPulse 2.8s ease-in-out infinite; }
@keyframes zkPulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }
.alp-secure { font-family: var(--font-mono); font-size: 0.64rem; color: var(--teal); }

/* ── ADVISORS ─────────────────────────────────────────── */
#advisors { padding: var(--sec-pad) var(--pad-x); background: var(--bg2); }
.advisors-inner { max-width: var(--max-w); margin: 0 auto; }
.adv-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--rule); }
.adv-card { background: var(--bg3); padding: 26px 22px; transition: background 0.2s; }
.adv-card:hover { background: var(--bg4); }
.adv-card.featured-adv { background: var(--bg4); border-left: 2px solid var(--teal); }
.adv-icon { font-size: 1.1rem; color: var(--teal); margin-bottom: 12px; display: block; }
.adv-title { font-size: 0.95rem; color: var(--white); margin-bottom: 8px; }
.adv-desc { font-size: 0.74rem; color: var(--text-sm); line-height: 1.75; }

/* ── AI × CRYPTO ──────────────────────────────────────── */
#aixcrypto { padding: var(--sec-pad) var(--pad-x); background: var(--navy); border-top: 1px solid var(--rule); }
.aixc-inner { max-width: var(--max-w); margin: 0 auto; }

.crypto-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1px; background: var(--rule2); margin-bottom: 0;
}
.cg-card { background: var(--bg2); padding: 24px 22px; transition: background 0.2s; position: relative; overflow: hidden; }
.cg-card::after { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px; background: var(--teal); opacity: 0; transition: opacity 0.2s; }
.cg-card:hover::after { opacity: 1; }
.cg-card:hover { background: var(--bg3); }
.cg-card.featured-cg { background: rgba(125,181,168,0.03); }
.cg-card.featured-cg::after { opacity: 0.5; }
.cg-card:nth-child(2)::after { background: var(--blue); }
.cg-card:nth-child(3)::after { background: var(--lav); }
.cg-card:nth-child(4)::after { background: var(--amber); }
.cg-card:nth-child(5)::after { background: var(--rose); }
.cg-icon { font-size: 1.1rem; color: var(--teal); margin-bottom: 10px; display: block; }
.cg-card:nth-child(2) .cg-icon { color: var(--blue); }
.cg-card:nth-child(3) .cg-icon { color: var(--lav); }
.cg-card:nth-child(4) .cg-icon { color: var(--amber); }
.cg-card:nth-child(5) .cg-icon { color: var(--rose); }
.cg-card:nth-child(6) .cg-icon { color: var(--teal); opacity: 0.7; }
.cg-title { font-size: 0.88rem; color: var(--white); margin-bottom: 3px; }
.cg-protocol { font-family: var(--font-mono); font-size: 0.56rem; color: var(--dim); letter-spacing: 0.06em; margin-bottom: 9px; }
.cg-desc { font-size: 0.72rem; color: var(--text-sm); line-height: 1.72; margin-bottom: 12px; }
.cg-formula {
  font-family: var(--font-mono); font-size: 0.58rem;
  color: var(--teal); background: var(--teal-glow);
  border: 1px solid rgba(125,181,168,0.12); padding: 5px 8px; letter-spacing: 0.02em;
}
.cg-card:nth-child(2) .cg-formula { color: var(--blue); background: rgba(110,146,184,0.05); border-color: rgba(110,146,184,0.12); }
.cg-card:nth-child(3) .cg-formula { color: var(--lav); background: rgba(160,160,192,0.05); border-color: rgba(160,160,192,0.12); }
.cg-card:nth-child(4) .cg-formula { color: var(--amber); background: rgba(190,160,112,0.05); border-color: rgba(190,160,112,0.12); }
.cg-card:nth-child(5) .cg-formula { color: var(--rose); background: rgba(184,104,104,0.05); border-color: rgba(184,104,104,0.12); }

.aixc-statement {
  display: grid; grid-template-columns: 1.5fr 1fr; gap: 52px;
  border-top: 1px solid var(--rule); padding-top: 40px; margin-top: 1px;
  background: var(--bg2); padding: 32px 28px;
  align-items: start;
}
.aixcs-label { font-size: 0.56rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--teal); margin-bottom: 10px; display: block; }
.aixcs-text { font-size: 0.78rem; color: var(--text-sm); line-height: 1.88; }
.aixcs-right { display: flex; flex-direction: column; gap: 0; border-left: 1px solid var(--rule); padding-left: 32px; }
.aixcs-stat { padding: 16px 0; border-bottom: 1px solid var(--rule); }
.aixcs-stat:first-child { padding-top: 0; }
.aixcs-stat:last-child { border-bottom: none; padding-bottom: 0; }
.aixcs-num { font-family: var(--font-serif); font-size: 1.8rem; color: var(--white); display: block; line-height: 1; margin-bottom: 3px; }
.aixcs-unit { font-size: 0.66rem; color: var(--text-sm); line-height: 1.5; }

/* ── FEATURE TABLE ────────────────────────────────────── */
#features { padding: var(--sec-pad) var(--pad-x); background: var(--bg2); }
.ft-inner { max-width: var(--max-w); margin: 0 auto; }
.feature-table { width: 100%; border-collapse: collapse; font-size: 0.76rem; }
.feature-table thead tr { border-bottom: 1px solid var(--rule); }
.feature-table th { padding: 9px 14px; text-align: left; font-size: 0.56rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--dim); font-weight: 300; }
.feature-table tbody tr { border-bottom: 1px solid var(--rule); transition: background 0.2s; }
.feature-table tbody tr:hover { background: rgba(255,255,255,0.015); }
.feature-table tbody tr.ft-featured { background: rgba(125,181,168,0.025); border-left: 1px solid rgba(125,181,168,0.2); }
.feature-table td { padding: 12px 14px; color: var(--text-sm); vertical-align: middle; line-height: 1.55; }
.ft-feature { color: var(--white); font-size: 0.78rem; }
.ft-metric { font-family: var(--font-mono); font-size: 0.62rem; color: var(--blue); background: rgba(110,146,184,0.07); border: 1px solid rgba(110,146,184,0.16); padding: 2px 7px; border-radius: 1px; white-space: nowrap; }
.ft-trust { font-family: var(--font-mono); font-size: 0.62rem; color: var(--teal); background: var(--teal-glow); border: 1px solid rgba(125,181,168,0.16); padding: 2px 7px; border-radius: 1px; white-space: nowrap; }

/* ── CONTACT ──────────────────────────────────────────── */
#contact { padding: var(--sec-pad) var(--pad-x); }
.contact-inner { max-width: var(--max-w); margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.contact-title { font-size: clamp(1.4rem, 2.3vw, 2rem); color: var(--white); margin-bottom: 12px; }
.contact-body { font-size: 0.78rem; color: var(--text-sm); line-height: 1.85; margin-bottom: 24px; }
.contact-tracks { display: flex; flex-direction: column; margin-bottom: 28px; }
.track-link { display: flex; flex-direction: column; gap: 3px; text-decoration: none; padding: 14px 0; border-top: 1px solid var(--rule); transition: border-color 0.2s; }
.track-link:hover { border-color: var(--teal); }
.track-tag { font-size: 0.56rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--teal); }
.track-desc { font-size: 0.7rem; color: var(--text-sm); line-height: 1.55; }
.track-email { font-size: 0.72rem; color: var(--white); margin-top: 2px; }
.eigen-ref { background: var(--bg2); border: 1px solid var(--rule); border-left: 2px solid rgba(125,181,168,0.35); padding: 14px 16px; }
.er-label { font-size: 0.56rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--teal); margin-bottom: 6px; display: block; }
.er-text { font-size: 0.7rem; color: var(--text-sm); line-height: 1.7; margin-bottom: 8px; }
.er-link { font-size: 0.7rem; color: var(--teal); text-decoration: none; letter-spacing: 0.04em; }
.er-link:hover { text-decoration: underline; }

.inquiry-form { background: var(--bg2); border: 1px solid var(--rule); padding: 24px 22px; display: flex; flex-direction: column; gap: 10px; }
.form-title { font-family: var(--font-serif); font-size: 1.1rem; color: var(--white); margin-bottom: 4px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.inquiry-form input, .inquiry-form select, .inquiry-form textarea {
  background: var(--bg3); border: 1px solid var(--rule);
  padding: 9px 12px; font-size: 0.74rem; color: var(--text);
  font-family: var(--font-sans); font-weight: 300;
  outline: none; width: 100%; transition: border-color 0.2s;
}
.inquiry-form input:focus, .inquiry-form select:focus, .inquiry-form textarea:focus { border-color: var(--teal); }
.inquiry-form select option { background: var(--bg3); }
.inquiry-form textarea { resize: vertical; }
.btn-submit { background: var(--teal); color: var(--bg); border: none; padding: 11px; font-size: 0.74rem; letter-spacing: 0.08em; cursor: pointer; font-family: var(--font-sans); font-weight: 500; transition: background 0.2s; }
.btn-submit:hover { background: #6DA89A; }
.form-note { font-size: 0.6rem; color: var(--dim); text-align: center; line-height: 1.6; }

/* ── FOOTER ───────────────────────────────────────────── */
footer { background: var(--bg2); border-top: 1px solid var(--rule); padding: 28px var(--pad-x); }
.footer-inner { max-width: var(--max-w); margin: 0 auto; display: flex; flex-direction: column; gap: 12px; align-items: center; text-align: center; }
.footer-top { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; justify-content: center; }
.footer-brand { display: flex; align-items: baseline; gap: 7px; }
.footer-logo { font-family: var(--font-serif); font-size: 1.1rem; color: var(--white); }
.footer-tag { font-size: 0.56rem; color: var(--teal); letter-spacing: 0.09em; text-transform: uppercase; opacity: 0.6; }
.footer-parent-ref { display: flex; align-items: center; gap: 6px; }
.fpr-label { font-size: 0.6rem; color: var(--dim); }
.fpr-link { font-size: 0.62rem; color: var(--teal); text-decoration: none; letter-spacing: 0.04em; }
.fpr-link:hover { text-decoration: underline; }
.footer-links { display: flex; gap: 18px; flex-wrap: wrap; justify-content: center; }
.footer-links a { font-size: 0.62rem; color: var(--dim); text-decoration: none; transition: color 0.2s; }
.footer-links a:hover { color: var(--teal); }
.footer-conf { font-size: 0.58rem; color: var(--dim); max-width: 560px; line-height: 1.65; }
.footer-copy { font-size: 0.55rem; color: var(--dim); }

/* ── SCROLL REVEAL ────────────────────────────────────── */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ── RESPONSIVE ───────────────────────────────────────── */
@media (max-width: 1020px) {
  #hero { grid-template-columns: 1fr; padding-top: 110px; }
  .hero-user-tabs { grid-template-columns: repeat(3, 1fr); }
  .arch-layout { grid-template-columns: 1fr; gap: 32px; }
  .engine-layout { grid-template-columns: 1fr; gap: 32px; }
  .engine-layout.reverse { direction: ltr; }
  .agent-layout { grid-template-columns: 1fr; gap: 32px; }
  .adv-grid { grid-template-columns: 1fr 1fr; }
  .crypto-grid { grid-template-columns: 1fr 1fr; }
  .aixc-statement { grid-template-columns: 1fr; }
  .aixcs-right { border-left: none; padding-left: 0; border-top: 1px solid var(--rule); padding-top: 24px; }
  .contact-inner { grid-template-columns: 1fr; gap: 40px; }
  .form-row { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .nav-links { display: none; }
  .hero-user-tabs { grid-template-columns: 1fr; }
  .adv-grid { grid-template-columns: 1fr; }
  .crypto-grid { grid-template-columns: 1fr; }
  .provenance-bar .pb-text { display: none; }
}

/* ── v4 UPDATES ───────────────────────────────────────── */

/* New nav brand: "Eigenflow Pro" as one unit */
.nav-brand-link {
  text-decoration: none; display: flex; align-items: baseline;
  transition: opacity 0.2s;
}
.nav-brand-link:hover { opacity: 0.75; }
.nav-logo-full {
  font-family: var(--font-serif); font-size: 1.25rem;
  font-weight: 500; color: var(--white); letter-spacing: 0.01em;
}
.nav-pro-inline {
  color: var(--teal); font-weight: 500;
}

/* Hero "Private Capital" — enlarged + bold */
.hero-pc {
  font-style: normal;
  color: var(--white);
  font-size: 1.22em;
  letter-spacing: -0.01em;
  display: inline-block;
  background: linear-gradient(135deg, var(--white) 0%, var(--teal) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* LP new image — smaller, contained */
.lp-new-img {
  width: 100%;
  max-height: 240px;
  object-fit: cover;
  object-position: top;
  opacity: 0.88;
}

/* ── v5 UPDATES ───────────────────────────────────────── */

/* Reduce all section padding further */
#architecture, #gp, #lp, #agent, #advisors, #aixcrypto, #features, #contact, #team { padding: 56px var(--pad-x); }
#access-layers { padding: 56px var(--pad-x); background: var(--bg2); }
.section-header { margin-bottom: 28px; }

/* Infrastructure layer tagline */
.layer-tagline {
  font-family: var(--font-mono); font-size: 0.54rem;
  color: var(--amber); letter-spacing: 0.05em;
  font-style: italic; margin-left: 4px;
}

/* Oracle attested formula badge */
.oracle-attested {
  font-family: var(--font-mono); font-size: 0.58rem;
  color: var(--amber); background: rgba(190,160,112,0.08);
  border: 1px solid rgba(190,160,112,0.2);
  padding: 2px 7px; letter-spacing: 0.06em;
}

/* Verified Truth italic em */
.vt-em { font-style: italic; color: var(--teal); font-family: var(--font-serif); }

/* ── THREE-LAYER ACCESS ───────────────────────────────── */
.layers-inner { max-width: var(--max-w); margin: 0 auto; }

.access-layers-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1px; background: var(--rule2); margin-bottom: 1px;
}
.al-card {
  padding: 22px 20px; display: flex; flex-direction: column; gap: 14px;
  background: var(--bg3); position: relative; overflow: hidden;
}
.al-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
}
.public-layer::before   { background: var(--blue); }
.attested-layer::before { background: var(--amber); }
.private-layer::before  { background: var(--rose); }
.attested-layer { background: var(--bg4); }

.al-header { display: flex; align-items: flex-start; gap: 10px; }
.al-num { font-family: var(--font-mono); font-size: 0.58rem; color: var(--dim); letter-spacing: 0.08em; min-width: 16px; margin-top: 2px; flex-shrink: 0; }
.al-badge {
  font-family: var(--font-mono); font-size: 0.52rem; letter-spacing: 0.1em; text-transform: uppercase;
  padding: 2px 7px; border-radius: 1px; display: inline-block; margin-bottom: 5px;
}
.public-badge   { background: rgba(110,146,184,0.12); color: var(--blue); border: 1px solid rgba(110,146,184,0.22); }
.attested-badge { background: rgba(190,160,112,0.12); color: var(--amber); border: 1px solid rgba(190,160,112,0.22); }
.private-badge  { background: rgba(184,104,104,0.12); color: var(--rose); border: 1px solid rgba(184,104,104,0.22); }
.al-title { font-size: 1rem; color: var(--white); line-height: 1.2; }
.al-desc { font-size: 0.72rem; color: var(--text-sm); line-height: 1.75; }
.al-features { display: flex; flex-direction: column; gap: 5px; }
.al-feature { font-family: var(--font-mono); font-size: 0.62rem; color: var(--dim); line-height: 1.4; }
.public-layer .al-feature   { color: var(--blue); opacity: 0.8; }
.attested-layer .al-feature { color: var(--amber); opacity: 0.8; }
.private-layer .al-feature  { color: var(--rose); opacity: 0.75; }
.al-proof { margin-top: auto; }
.alp-tag {
  font-family: var(--font-mono); font-size: 0.54rem; letter-spacing: 0.06em;
  padding: 3px 8px; border-radius: 1px; display: inline-block;
}
.public-proof   { background: rgba(110,146,184,0.07); color: var(--blue); border: 1px solid rgba(110,146,184,0.15); }
.attested-proof { background: rgba(190,160,112,0.07); color: var(--amber); border: 1px solid rgba(190,160,112,0.15); }
.private-proof  { background: rgba(184,104,104,0.07); color: var(--rose); border: 1px solid rgba(184,104,104,0.15); }

/* Audit statement */
.audit-statement {
  background: var(--bg3); border: 1px solid var(--rule);
  border-left: 2px solid var(--teal);
  padding: 18px 20px; display: flex; gap: 14px; align-items: flex-start;
  margin-top: 1px;
}
.as-icon { font-size: 1rem; color: var(--teal); flex-shrink: 0; margin-top: 1px; }
.as-title { font-size: 0.78rem; font-weight: 500; color: var(--white); margin-bottom: 5px; letter-spacing: 0.02em; }
.as-text { font-size: 0.72rem; color: var(--text-sm); line-height: 1.78; }

/* ── TEAM ─────────────────────────────────────────────── */
#team { background: var(--navy); border-top: 1px solid var(--rule); }
.team-inner { max-width: var(--max-w); margin: 0 auto; }
.team-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--rule2); max-width: 740px; }
.team-card { background: var(--bg2); padding: 24px 22px; transition: background 0.2s; }
.team-card:hover { background: var(--bg3); }
.team-card.featured-tc { background: var(--bg3); border-top: 2px solid var(--teal); }
.tc-role { font-size: 0.58rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--teal); margin-bottom: 6px; }
.team-card.featured-tc .tc-role { color: var(--teal); }
.tc-name { font-family: var(--font-serif); font-size: 1.35rem; color: var(--white); margin-bottom: 10px; }
.tc-bio { font-size: 0.72rem; color: var(--text-sm); line-height: 1.75; margin-bottom: 12px; }
.tc-contact { font-size: 0.68rem; color: var(--teal); text-decoration: none; letter-spacing: 0.04em; }
.tc-contact:hover { text-decoration: underline; }

/* Responsive additions */
@media (max-width: 1020px) {
  .access-layers-grid { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: 1fr; max-width: 100%; }
}
