:root {
  color-scheme: light;
  --bg: #f5f6fb;
  --surface: rgba(255, 255, 255, 0.78);
  --surface-strong: rgba(255, 255, 255, 0.94);
  --surface-faint: rgba(255, 255, 255, 0.52);
  --text: #0f172a;
  --muted: #475569;
  --faint: #64748b;
  --line: rgba(15, 23, 42, 0.09);
  --line-strong: rgba(15, 23, 42, 0.15);
  --indigo: #6366f1;
  --violet: #8b5cf6;
  --cyan: #0891b2;
  --emerald: #059669;
  --amber: #d97706;
  --shadow: 0 24px 80px rgba(15, 23, 42, 0.1);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    linear-gradient(90deg, rgba(99, 102, 241, 0.06) 1px, transparent 1px),
    linear-gradient(180deg, rgba(99, 102, 241, 0.05) 1px, transparent 1px),
    radial-gradient(1200px 600px at 80% -10%, rgba(99, 102, 241, 0.12), transparent 58%),
    #f5f6fb;
  background-size: 72px 72px, 72px 72px, auto, auto;
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.nav-open {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

img,
svg {
  display: block;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: min(1180px, calc(100% - 40px));
  height: 72px;
  margin: 0 auto;
  border-bottom: 1px solid var(--line);
  background: rgba(245, 246, 251, 0.82);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: max-content;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(99, 102, 241, 0.22);
  border-radius: var(--radius);
  background: linear-gradient(145deg, rgba(99, 102, 241, 0.18), rgba(8, 145, 178, 0.12));
  color: var(--indigo);
}

.brand-mark svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.brand strong,
.brand small {
  display: block;
  line-height: 1.1;
}

.brand strong {
  font-size: 14px;
  letter-spacing: 0.12em;
}

.brand small {
  margin-top: 3px;
  color: var(--faint);
  font-size: 11px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.site-nav a {
  position: relative;
  padding: 9px 12px;
  border-radius: var(--radius);
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}

.site-nav a:hover,
.site-nav a.active {
  color: var(--text);
  background: var(--surface-strong);
}

.menu-button {
  display: none;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text);
}

.menu-button span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 5px auto;
  border-radius: 2px;
  background: currentColor;
}

main {
  overflow: hidden;
}

.section,
.section-grid {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.hero {
  min-height: calc(100vh - 72px);
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.95fr);
  align-items: center;
  gap: clamp(32px, 7vw, 88px);
  padding: 76px 0 64px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--indigo);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 780px;
  margin-bottom: 24px;
  font-size: clamp(44px, 7vw, 82px);
  line-height: 0.94;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 16px;
  font-size: clamp(30px, 4vw, 52px);
  line-height: 1.02;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 20px;
  line-height: 1.2;
}

p {
  color: var(--muted);
  line-height: 1.7;
}

.hero-text {
  max-width: 680px;
  margin-bottom: 30px;
  font-size: clamp(16px, 1.6vw, 19px);
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 800;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button.primary {
  border-color: transparent;
  background: #111827;
  color: #fff;
  box-shadow: 0 14px 35px rgba(15, 23, 42, 0.18);
}

.button.secondary {
  background: var(--surface-strong);
  color: var(--text);
}

.hero-panel {
  position: relative;
  min-height: 560px;
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(255, 255, 255, 0.56));
  box-shadow: var(--shadow);
  overflow: hidden;
}

.hero-panel::before {
  content: "";
  position: absolute;
  inset: 22px;
  border: 1px solid rgba(99, 102, 241, 0.16);
  border-radius: var(--radius);
  pointer-events: none;
}

.hero-panel img {
  position: relative;
  z-index: 1;
  width: min(74%, 360px);
  margin: 66px auto 44px;
  filter: drop-shadow(0 22px 36px rgba(99, 102, 241, 0.22));
}

.signal-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.signal-bar span {
  height: 5px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--indigo), var(--cyan));
  opacity: 0.32;
  animation: signal 1.9s ease-in-out infinite;
}

.signal-bar span:nth-child(2) {
  animation-delay: 140ms;
}

.signal-bar span:nth-child(3) {
  animation-delay: 280ms;
}

.signal-bar span:nth-child(4) {
  animation-delay: 420ms;
}

.status-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.status-grid article {
  min-height: 94px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-strong);
}

.status-grid strong {
  display: block;
  margin-bottom: 6px;
  font-size: clamp(23px, 3vw, 34px);
  line-height: 1;
}

.status-grid span {
  color: var(--faint);
  font-size: 12px;
  font-weight: 700;
}

.section {
  padding: 88px 0;
}

.section-heading {
  max-width: 820px;
  margin-bottom: 34px;
}

.section-heading.narrow {
  max-width: 560px;
  margin-bottom: 0;
}

.feature-grid,
.tech-grid,
.stage-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.feature-card,
.detector-card,
.metric-card,
.stage-item,
.code-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 14px 46px rgba(15, 23, 42, 0.06);
  backdrop-filter: blur(16px);
}

.feature-card {
  padding: 26px;
}

.icon-chip {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 20px;
  border-radius: var(--radius);
}

.icon-chip svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.icon-chip.blue {
  background: rgba(99, 102, 241, 0.12);
  color: var(--indigo);
}

.icon-chip.green {
  background: rgba(5, 150, 105, 0.12);
  color: var(--emerald);
}

.icon-chip.amber {
  background: rgba(217, 119, 6, 0.13);
  color: var(--amber);
}

.split {
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  align-items: start;
  gap: 44px;
}

.pipeline {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-strong);
  box-shadow: var(--shadow);
}

.node {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 2px 16px;
  align-items: center;
  min-height: 92px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.node span {
  grid-row: span 2;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: var(--radius);
  background: rgba(15, 23, 42, 0.05);
  color: var(--faint);
  font-size: 12px;
  font-weight: 900;
}

.node strong {
  font-size: 18px;
}

.node small {
  color: var(--faint);
  font-size: 13px;
}

.node.bus {
  border-color: rgba(99, 102, 241, 0.26);
}

.node.detectors {
  border-color: rgba(5, 150, 105, 0.24);
}

.node.decision {
  border-color: rgba(217, 119, 6, 0.24);
}

.connector {
  width: 2px;
  height: 24px;
  margin: 0 0 0 39px;
  background: linear-gradient(var(--line-strong), rgba(99, 102, 241, 0.42));
}

.detector-layout {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.detector-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 360px;
  padding: 26px;
}

.detector-tag {
  display: inline-flex;
  margin-bottom: 16px;
  padding: 7px 10px;
  border: 1px solid rgba(99, 102, 241, 0.2);
  border-radius: 999px;
  background: rgba(99, 102, 241, 0.08);
  color: var(--indigo);
  font-size: 12px;
  font-weight: 900;
}

ul {
  display: grid;
  gap: 12px;
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.6;
}

.tech-grid {
  grid-template-columns: repeat(4, 1fr);
  margin-bottom: 18px;
}

.metric-card {
  padding: 22px;
}

.metric-card span {
  display: block;
  margin-bottom: 16px;
  color: var(--faint);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.metric-card strong {
  display: block;
  margin-bottom: 12px;
  font-size: 28px;
}

.metric-card p {
  margin: 0;
  font-size: 14px;
}

.code-panel {
  overflow: hidden;
  background: #10131c;
  color: #e5e7eb;
}

.code-header {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.code-header span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.code-header span:nth-child(1) {
  background: #f87171;
}

.code-header span:nth-child(2) {
  background: #fbbf24;
}

.code-header span:nth-child(3) {
  background: #34d399;
}

.code-header strong {
  margin-left: 8px;
  color: #94a3b8;
  font-size: 12px;
}

pre {
  margin: 0;
  padding: 24px;
  overflow-x: auto;
  color: #cbd5e1;
  font: 14px/1.7 ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
}

.final-band {
  margin-bottom: 48px;
  padding: 56px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(15, 23, 42, 0.96), rgba(30, 41, 59, 0.94)),
    #111827;
  color: #fff;
}

.final-band .eyebrow {
  color: #a5b4fc;
}

.final-band p {
  color: #cbd5e1;
}

.stage-grid {
  grid-template-columns: repeat(3, 1fr);
}

.stage-item {
  padding: 22px;
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow: none;
}

.stage-item strong {
  display: block;
  margin-bottom: 10px;
  font-size: 18px;
}

.stage-item p {
  margin: 0;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 28px 0 42px;
  border-top: 1px solid var(--line);
  color: var(--faint);
  font-size: 13px;
}

.site-footer a {
  color: var(--text);
  font-weight: 800;
}

/* ── Advisor card ─────────────────────────────── */
.advisor-card {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 28px;
  padding: 28px 32px;
  margin-bottom: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 14px 46px rgba(15, 23, 42, 0.06);
  backdrop-filter: blur(16px);
}

.advisor-card .advisor-photo {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--indigo);
  flex-shrink: 0;
}

.advisor-info {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.advisor-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 20px;
  background: var(--text);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  align-self: flex-start;
}

.advisor-info strong {
  font-size: 20px;
  font-weight: 700;
}

/* ── Developer grid ───────────────────────────── */
.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.team-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 28px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 14px 46px rgba(15, 23, 42, 0.06);
  backdrop-filter: blur(16px);
  text-align: center;
}

.team-photo-wrap {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  padding: 3px;
  background: linear-gradient(135deg, var(--ring), color-mix(in srgb, var(--ring) 60%, transparent));
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--ring) 25%, transparent);
}

.team-photo {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--surface);
  display: block;
}

.team-card strong {
  font-size: 15px;
  font-weight: 700;
  margin-top: 4px;
}

.team-role {
  font-size: 13px;
  color: var(--emerald);
  font-weight: 500;
}

/* ── LinkedIn button (shared) ─────────────────── */
.card-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-top: 6px;
}

.advisor-card .card-links {
  justify-content: flex-start;
}

.linkedin-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 16px;
  border-radius: 20px;
  border: 1px solid var(--line-strong);
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  background: var(--surface-strong);
  transition: border-color 180ms, background 180ms, color 180ms;
}

.linkedin-btn:hover {
  border-color: var(--indigo);
  color: var(--indigo);
  background: rgba(99, 102, 241, 0.06);
}

.linkedin-btn svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 600ms ease, transform 600ms ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes signal {
  0%,
  100% {
    opacity: 0.25;
    transform: scaleX(0.88);
  }
  50% {
    opacity: 0.85;
    transform: scaleX(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 980px) {
  .hero,
  .split {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-top: 56px;
  }

  .hero-panel {
    min-height: auto;
  }

  .feature-grid,
  .detector-layout,
  .tech-grid,
  .stage-grid,
  .team-grid {
    grid-template-columns: repeat(2, 1fr);
  }


  .section-heading.narrow {
    max-width: 820px;
  }
}

@media (max-width: 760px) {
  .site-header,
  .section,
  .section-grid,
  .site-footer {
    width: min(100% - 28px, 1180px);
  }

  .menu-button {
    display: block;
  }

  .site-nav {
    position: fixed;
    top: 72px;
    right: 14px;
    left: 14px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.96);
    box-shadow: var(--shadow);
  }

  body.nav-open .site-nav {
    display: flex;
  }

  .site-nav a {
    padding: 13px 14px;
  }

  h1 {
    font-size: clamp(40px, 13vw, 62px);
  }

  .hero-actions,
  .site-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .status-grid,
  .feature-grid,
  .detector-layout,
  .tech-grid,
  .stage-grid,
  .team-grid {
    grid-template-columns: 1fr;
  }

  .advisor-card {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .advisor-info {
    align-items: center;
  }

  .hero-panel {
    padding: 20px;
  }

  .hero-panel img {
    width: min(82%, 320px);
    margin: 42px auto 30px;
  }

  .detector-card {
    min-height: auto;
  }

  .final-band {
    padding: 34px 20px;
  }
}
