@font-face {
  font-family: "Open Sauce Sans";
  src: url("../assets/fonts/open-sauce-sans-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Open Sauce Sans";
  src: url("../assets/fonts/open-sauce-sans-latin-500-normal.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Open Sauce Sans";
  src: url("../assets/fonts/open-sauce-sans-latin-600-normal.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Open Sauce Sans";
  src: url("../assets/fonts/open-sauce-sans-latin-700-normal.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --accent: #4666ff;
  --accent-hover: #2f4fe0;
  --shadow: #161925;
  --shadow-deep: #0e1018;
  --ghost: #f3f5ff;
  --lavender: #937cff;
  --periwinkle: #d4dcff;
  --neon: #5aff15;
  --text: #f3f5ff;
  --muted: #b8c4e8;
  --dim: #8b97b8;
  --keyline: rgba(147, 124, 255, 0.28);
  --keyline-soft: rgba(147, 124, 255, 0.18);
  --keyline-btn: rgba(212, 220, 255, 0.72);
  --panel: rgba(243, 245, 255, 0.06);
  --grad: radial-gradient(120% 95% at 100% 0%, #2a3480 0%, #1c2248 26%, #161925 62%);
  --grad-alt: radial-gradient(120% 95% at 0% 0%, #2a3480 0%, #1c2248 26%, #161925 62%);
  --font: "Open Sauce Sans", "Inter", system-ui, sans-serif;
  --pad-x: clamp(20px, 5vw, 72px);
  --pad-y: clamp(52px, 8vw, 96px);
  --h1: clamp(34px, 4.8vw, 56px);
  --h2: clamp(26px, 3.2vw, 40px);
  --h3: clamp(22px, 2.2vw, 28px);
  --lead: clamp(16px, 1.3vw, 18px);
  --body: 16px;
  --radius: 12px;
  --btn-radius: 6px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--shadow);
  color: var(--text);
  font-family: var(--font);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
img { display: block; max-width: 100%; }
h1, h2, h3, h4, p { text-wrap: pretty; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.page {
  min-height: 100vh;
  background: var(--shadow);
  color: var(--text);
}

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--shadow);
  display: flex;
  align-items: center;
  gap: 26px;
  padding: 20px var(--pad-x);
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: none;
}

.logo img, .logo svg {
  height: 25px;
  width: auto;
  max-width: 48px;
  object-fit: contain;
}

.logo-word {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.03em;
  color: var(--ghost);
}

.nav {
  display: flex;
  gap: 30px;
  font-size: 17px;
  color: var(--periwinkle);
  flex: 1;
  justify-content: center;
}

.nav a, .nav-drop > button {
  display: flex;
  align-items: center;
  gap: 5px;
  color: var(--ghost);
  background: none;
  border: none;
  font: inherit;
  padding: 0;
}

.nav a:hover, .nav-drop > button:hover { color: var(--accent); }

.nav-drop { position: relative; display: flex; align-items: center; }

.nav-drop .chev {
  width: 10px;
  height: 10px;
  transition: transform 200ms ease;
}

.nav-drop.open .chev { transform: rotate(180deg); }

.dropdown {
  position: absolute;
  top: 100%;
  left: -16px;
  min-width: 340px;
  padding-top: 10px;
  display: none;
  z-index: 20;
}

.nav-drop.open .dropdown,
.nav-drop:hover .dropdown { display: flex; flex-direction: column; }

.dropdown-inner {
  background: var(--shadow);
  box-shadow: 0 18px 38px rgba(4, 12, 24, 0.45);
  border: 1px solid var(--keyline);
  border-radius: 10px;
  padding: 6px;
  display: flex;
  flex-direction: column;
}

.dropdown a {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 14px;
  border-radius: 4px;
  color: var(--ghost);
}

.dropdown a:hover {
  color: var(--accent);
  background: var(--panel);
}

.drop-dot {
  width: 24px;
  height: 24px;
  border-radius: 24px;
  flex: none;
  border: 1px solid var(--ghost);
}

.drop-dot.solid { background: var(--ghost); border: 0; }
.drop-dot.dashed { border-style: dashed; }

.drop-title { font-size: 15px; font-weight: 500; }
.drop-sub { font-size: 12px; font-weight: 400; color: var(--dim); }

.header-end {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 600;
  padding: 12px 21px;
  border-radius: var(--btn-radius);
  border: 1px solid transparent;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-primary:hover { background: var(--accent-hover); color: #fff; }

.btn-ghost {
  background: transparent;
  color: var(--ghost);
  border-color: var(--keyline-btn);
  padding: 14px 24px;
}

.btn-ghost:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--shadow);
}

.menu-btn {
  display: none;
  background: none;
  border: 0;
  color: var(--lavender);
  padding: 11px;
}

/* Hero */
.hero {
  position: relative;
  padding: var(--pad-y) var(--pad-x);
  background: var(--grad);
  display: flex;
  flex-direction: column;
  gap: 36px;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  gap: 22px;
  align-items: flex-start;
  max-width: 1000px;
}

.eyebrow {
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 500;
}

h1 {
  font-size: var(--h1);
  font-weight: 500;
  line-height: 1.06;
  letter-spacing: -0.025em;
  max-width: 17em;
}

.lead {
  font-size: var(--lead);
  line-height: 1.55;
  color: var(--dim);
  max-width: 26em;
}

.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-actions .btn-primary { padding: 14px 24px; }

.hero-visual {
  display: grid;
  grid-template-columns: minmax(280px, 0.85fr) minmax(0, 1.35fr);
  gap: 8px;
  align-items: center;
}

.feed {
  width: 100%;
  height: auto;
  display: block;
  overflow: visible;
}

/* Dashboard mock */
.dash {
  width: 100%;
  border: 1.5px solid var(--keyline-btn);
  border-radius: 12px;
  display: grid;
  grid-template-columns: 132px 1fr;
  min-height: 368px;
  overflow: hidden;
  background: rgba(4, 8, 18, 0.35);
}

.dash-side {
  border-right: 1.5px solid var(--keyline-btn);
  padding: 18px 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.dash-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 8px 16px;
  color: var(--periwinkle);
  font-size: 12px;
  font-weight: 600;
}

.dash-brand img { height: 16px; width: auto; max-width: 28px; object-fit: contain; }

.dash-link {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 6px;
  font-size: 10px;
  color: var(--dim);
}

.dash-link.active {
  background: rgba(212, 220, 255, 0.16);
  color: var(--periwinkle);
}

.dash-link svg { opacity: 0.55; flex: none; }

.dash-main { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 14px; }

.dash-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.dash-top h3 { font-size: 14px; font-weight: 600; color: var(--periwinkle); }

.dash-search, .dash-filter {
  border: 1px solid rgba(186, 203, 224, 0.42);
  border-radius: 10px;
  height: 20px;
  font-size: 10px;
  color: var(--dim);
  display: flex;
  align-items: center;
  padding: 0 10px;
}

.dash-search { width: 150px; }
.dash-filter { width: 76px; }

.kpis {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.kpi {
  border: 1.5px solid var(--keyline-btn);
  border-radius: 4px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.kpi span { font-size: 10px; color: var(--dim); }
.kpi strong { font-size: 16px; font-weight: 600; color: var(--periwinkle); }
.kpi em { font-size: 9px; font-style: normal; color: var(--neon); }

.dash-lower {
  display: grid;
  grid-template-columns: 1.7fr 1fr;
  gap: 10px;
  flex: 1;
}

.chart, .alloc {
  border: 1.5px solid var(--keyline-btn);
  border-radius: 4px;
  padding: 12px;
}

.chart-label, .alloc-label { font-size: 10px; color: var(--dim); margin-bottom: 10px; }

.bars {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  height: 88px;
}

.bar-pair { display: flex; gap: 2px; align-items: flex-end; height: 100%; }
.bar { width: 7px; border-radius: 2px; background: rgba(186, 203, 224, 0.72); }
.bar.soft { background: rgba(186, 203, 224, 0.4); }

.months {
  display: flex;
  justify-content: space-between;
  margin-top: 8px;
  font-size: 9px;
  color: var(--dim);
}

.donut-wrap { display: flex; flex-direction: column; align-items: center; gap: 12px; }

.donut {
  width: 86px;
  height: 86px;
  border-radius: 50%;
  background: conic-gradient(var(--accent) 0 42%, var(--lavender) 42% 74%, rgba(186, 203, 224, 0.35) 74% 100%);
  display: grid;
  place-items: center;
}

.donut span {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--shadow);
  display: grid;
  place-items: center;
  font-size: 11px;
  color: var(--periwinkle);
}

.legend { display: flex; flex-wrap: wrap; gap: 8px 14px; font-size: 9px; color: var(--dim); }
.legend i { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 5px; }
.legend .c1 { background: var(--accent); }
.legend .c2 { background: var(--lavender); }
.legend .c3 { background: rgba(186, 203, 224, 0.45); }

/* Sections */
.section { padding: var(--pad-y) var(--pad-x); background: var(--grad); }
.section-alt { background: var(--grad-alt); }

.why {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 40px;
  align-items: start;
}

.why-left, .stack { display: flex; flex-direction: column; gap: 16px; }

h2 {
  font-size: var(--h2);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.02em;
}

.why-left .btn-ghost { align-self: flex-start; padding: 13px 23px; }

.copy {
  font-size: var(--body);
  line-height: 1.75;
  color: var(--muted);
  max-width: 36em;
}

.feat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 8px;
}

.feat {
  border-top: 2px solid rgba(234, 242, 250, 0.16);
  padding-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.icon-box {
  width: 56px;
  height: 56px;
  border-radius: 8px;
  background: rgba(4, 12, 22, 0.5);
  border: 1px solid var(--keyline);
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
  color: var(--accent);
}

.feat strong { font-size: 14px; font-weight: 600; }
.feat span { font-size: 13px; color: var(--dim); }

.how {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 40px;
  align-items: center;
}

.flow {
  border: 1px solid var(--keyline);
  border-radius: var(--radius);
  padding: 28px 24px;
  background: var(--panel);
  display: flex;
  flex-direction: column;
  gap: 0;
}

.flow-step {
  display: grid;
  grid-template-columns: 28px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--keyline-soft);
  font-size: 14px;
}

.flow-step:last-child { border-bottom: 0; }

.flow-num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px dashed var(--keyline-btn);
  display: grid;
  place-items: center;
  font-size: 11px;
  color: var(--accent);
}

.flow-step em { font-style: normal; font-size: 12px; color: var(--dim); }

.solutions-head { display: flex; flex-direction: column; gap: 14px; margin-bottom: 32px; }

.sol-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.sol-card {
  border: 1px solid var(--keyline);
  border-radius: var(--radius);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.sol-card.fill { background: rgba(147, 124, 255, 0.08); }

.sol-tag {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #fff;
}

h3 { font-size: var(--h3); font-weight: 500; }

.sol-card .btn-ghost { align-self: flex-start; margin-top: auto; padding: 13px 25px; }

.designed { margin-top: 32px; display: flex; flex-direction: column; gap: 16px; }
.designed h4 { font-size: 20px; font-weight: 500; color: #fff; }

.aud-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.aud {
  border: 1px solid var(--keyline);
  border-radius: var(--radius);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  background: var(--panel);
}

.aud strong { font-size: 15px; font-weight: 600; color: var(--ghost); }
.aud p { font-size: 13.5px; line-height: 1.6; color: var(--dim); }

/* Lifecycle / news-style */
.life-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 20px;
  flex-wrap: wrap;
  margin: 0 var(--pad-x);
}

.life-head a { font-size: 14px; color: #a9cdea; }
.life-head a:hover { color: var(--accent); }

.life-scroller {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 0 var(--pad-x) 4px;
  scrollbar-width: none;
  -webkit-mask-image: linear-gradient(to right, #000 0, #000 calc(100% - 72px), transparent 100%);
  mask-image: linear-gradient(to right, #000 0, #000 calc(100% - 72px), transparent 100%);
}

.life-scroller::-webkit-scrollbar { display: none; }

.life-card {
  flex: none;
  width: min(320px, 78vw);
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  background: var(--panel);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--keyline);
}

.life-img {
  height: 140px;
  position: relative;
  background: linear-gradient(135deg, rgba(70, 102, 255, 0.35), rgba(147, 124, 255, 0.18));
}

.life-img.s2 { background: linear-gradient(135deg, rgba(147, 124, 255, 0.4), rgba(70, 102, 255, 0.15)); }
.life-img.s3 { background: linear-gradient(135deg, rgba(90, 255, 21, 0.18), rgba(70, 102, 255, 0.28)); }
.life-img.s4 { background: linear-gradient(135deg, rgba(70, 102, 255, 0.2), rgba(22, 25, 37, 0.5)); }
.life-img.s5 { background: linear-gradient(135deg, rgba(212, 220, 255, 0.2), rgba(70, 102, 255, 0.3)); }
.life-img.s6 { background: linear-gradient(135deg, rgba(147, 124, 255, 0.25), rgba(90, 255, 21, 0.12)); }

.badge {
  position: absolute;
  top: 12px;
  left: 12px;
  border-radius: 4px;
  background: #040c16;
  padding: 5px 10px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}

.life-body { padding: 18px 22px 22px; display: flex; flex-direction: column; gap: 6px; }
.life-body time { font-size: 11px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(234, 242, 250, 0.6); }
.life-body h3 { font-size: 17px; font-weight: 500; line-height: 1.32; color: var(--ghost); min-height: 2.64em; }
.life-body p { font-size: 13px; line-height: 1.55; color: var(--dim); }

.pips {
  margin: 18px var(--pad-x) 0;
  display: flex;
  gap: 8px;
}

.pips button {
  width: 12px;
  height: 12px;
  border-radius: 4px;
  border: 1px solid var(--keyline-btn);
  background: transparent;
}

.pips button.on { background: var(--accent); border-color: var(--accent); }

/* Break / future */
.break {
  position: relative;
  min-height: 280px;
  overflow: hidden;
  background: radial-gradient(120% 95% at 100% 0%, #2a3480 0%, #1c2248 32%, #0e1018 72%);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 80px var(--pad-x);
}

.break-rings {
  position: absolute;
  inset: -20%;
  pointer-events: none;
  background:
    radial-gradient(circle at 50% 50%, transparent 90px, rgba(206, 220, 238, 0.08) 91px, transparent 92px),
    radial-gradient(circle at 50% 50%, transparent 160px, rgba(206, 220, 238, 0.14) 161px, transparent 168px),
    radial-gradient(circle at 50% 50%, transparent 230px, rgba(206, 220, 238, 0.08) 231px, transparent 232px);
}

.break h2 {
  position: relative;
  color: #fff;
  max-width: 22em;
  font-family: "Hedvig Letters Serif", Georgia, serif;
  font-weight: 400;
  letter-spacing: -0.02em;
}

.cta-band {
  padding: var(--pad-y) var(--pad-x);
  background: var(--grad);
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 40px;
  align-items: center;
}

.cta-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.cta-form input, .cta-form textarea {
  background: var(--panel);
  border: 1px solid var(--keyline);
  border-radius: 6px;
  padding: 12px 14px;
  color: var(--ghost);
  font: inherit;
  font-size: 14px;
}

.cta-form input::placeholder, .cta-form textarea::placeholder { color: var(--dim); }
.cta-form input:focus, .cta-form textarea:focus {
  outline: 2px solid var(--accent);
  outline-offset: 0;
  border-color: var(--accent);
}
.cta-form textarea { min-height: 88px; resize: vertical; }
.cta-form .btn { align-self: flex-start; }

/* Footer */
.footer {
  background: var(--shadow-deep);
  padding: 56px var(--pad-x);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr 1fr;
  gap: 36px 40px;
}

.footer-brand { display: flex; flex-direction: column; gap: 16px; font-size: 13px; }
.footer-col { display: flex; flex-direction: column; gap: 14px; }
.footer-col h5 {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
}
.footer-col a, .footer-col span { font-size: 14px; line-height: 1.55; color: var(--ghost); }
.footer-col a:hover { color: var(--accent); }

.socials { display: flex; gap: 14px; margin-top: 4px; }
.socials a { font-size: 14px; font-weight: 600; }

.mobile-panel {
  display: none;
  position: fixed;
  inset: 64px 0 0;
  background: var(--shadow);
  z-index: 35;
  padding: 24px var(--pad-x);
  flex-direction: column;
  gap: 18px;
}

.mobile-panel.open { display: flex; }
body.nav-open { overflow: hidden; }

.mobile-panel a { font-size: 18px; color: var(--ghost); }

@media (max-width: 980px) {
  .nav, .header .btn-primary { display: none; }
  .menu-btn { display: block; }
  .why, .how, .sol-grid, .cta-band, .footer-grid, .hero-visual { grid-template-columns: 1fr; }
  .how .stack { order: -1; }
  .feed { display: none; }
  .aud-grid { grid-template-columns: 1fr 1fr; }
  .dash { grid-template-columns: 1fr; }
  .dash-side { display: none; }
  .kpis { grid-template-columns: 1fr 1fr; }
  .dash-lower { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .aud-grid { grid-template-columns: 1fr; }
  .feat-grid { grid-template-columns: 1fr; }
  .dash-search { display: none; }
}

/* Status indicator — small green light, top right corner */
.status-light {
  position: fixed;
  top: 14px;
  right: 14px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 6px 2px rgba(34, 197, 94, 0.6);
  z-index: 9999;
  pointer-events: none;
}

/* Pulse animation for status light */
.status-light {
  animation: status-pulse 1.6s ease-in-out infinite;
}

@keyframes status-pulse {
  0% {
    box-shadow: 0 0 6px 2px rgba(34, 197, 94, 0.6);
    opacity: 1;
  }
  50% {
    box-shadow: 0 0 12px 6px rgba(34, 197, 94, 0.9);
    opacity: 0.7;
  }
  100% {
    box-shadow: 0 0 6px 2px rgba(34, 197, 94, 0.6);
    opacity: 1;
  }
}

/* Pulse animation for the Eigenpath mark logo in the hero diagram */
.mark-logo {
  transform-box: fill-box;
  transform-origin: center;
  animation: logo-pulse 2.2s ease-in-out infinite;
}

@keyframes logo-pulse {
  0% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.12);
    opacity: 0.85;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}
