:root {
  --bg: #04070d;
  --bg-soft: #09111d;
  --panel: rgba(12, 22, 36, 0.78);
  --panel-strong: rgba(16, 30, 49, 0.92);
  --text: #f4f8ff;
  --muted: #9caec4;
  --line: rgba(127, 164, 218, 0.18);
  --blue: #3f8cff;
  --blue-bright: #69b7ff;
  --cyan: #4ee3ff;
  --green: #43e7a2;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.42);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, Arial, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 20% 0%, rgba(63, 140, 255, 0.2), transparent 30%),
    radial-gradient(circle at 85% 12%, rgba(78, 227, 255, 0.1), transparent 28%),
    linear-gradient(180deg, #050810 0%, #07101c 42%, #030509 100%);
  min-height: 100vh;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(to bottom, black, transparent 78%);
}

img {
  display: block;
  max-width: 100%;
}

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

.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% - 32px));
  margin: 0 auto;
  padding: 18px 0;
  backdrop-filter: blur(18px);
}

.brand,
.site-nav,
.nav-cta {
  position: relative;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 750;
  letter-spacing: 0;
}

.brand-logo {
  display: block;
  height: 45px;
  width: auto;
  max-width: min(240px, 44vw);
  object-fit: contain;
}


.site-nav {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 10px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(4, 7, 13, 0.5);
  color: var(--muted);
  font-size: 14px;
}

.site-nav a:hover {
  color: var(--text);
}

.nav-cta,
.primary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  color: #02101f;
  font-weight: 750;
  box-shadow: 0 12px 34px rgba(63, 140, 255, 0.28);
}

.nav-cta {
  padding: 0 16px;
  font-size: 14px;
}

.primary-button {
  padding: 0 20px;
}

.primary-button:hover,
.nav-cta:hover {
  transform: translateY(-1px);
}

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

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(340px, 0.78fr);
  gap: 56px;
  align-items: center;
  min-height: calc(100vh - 84px);
  padding: 56px 0 84px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--blue-bright);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

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

h1 {
  max-width: 850px;
  margin-bottom: 22px;
  font-size: clamp(44px, 7vw, 86px);
  line-height: 0.96;
  letter-spacing: 0;
}

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

h3 {
  margin-bottom: 10px;
  font-size: 18px;
}

.hero-subtitle {
  max-width: 660px;
  color: var(--muted);
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 34px;
}

.secondary-link {
  color: var(--muted);
  font-weight: 650;
}

.secondary-link:hover {
  color: var(--text);
}

.hero-system,
.founder-card,
.cta-panel {
  border: 1px solid var(--line);
  background: linear-gradient(180deg, var(--panel-strong), rgba(8, 14, 24, 0.76));
  box-shadow: var(--shadow);
}

.hero-system {
  padding: 22px;
  border-radius: 8px;
}

.system-topline,
.signal-card,
.router-panel,
.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.system-topline {
  margin-bottom: 20px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 650;
}

.status-dot {
  color: var(--green);
}

.signal-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.signal-card {
  align-items: flex-start;
  min-height: 112px;
  flex-direction: column;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
}

.signal-card span,
.workflow-node span,
.case-card span {
  color: var(--blue-bright);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.signal-card strong {
  font-size: 15px;
}

.signal-card.active {
  border-color: rgba(78, 227, 255, 0.42);
  background: rgba(63, 140, 255, 0.11);
}

.router-panel {
  gap: 18px;
  margin-top: 14px;
  padding: 18px;
  border: 1px solid rgba(78, 227, 255, 0.24);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(63, 140, 255, 0.16), rgba(78, 227, 255, 0.06));
}

.router-label {
  display: block;
  margin-bottom: 8px;
  color: var(--cyan);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.router-lines {
  display: grid;
  gap: 7px;
  width: 72px;
}

.router-lines span {
  height: 2px;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--blue), transparent);
}

.workflow-section,
.use-cases,
.founder,
.final-cta {
  padding: 88px 0;
}

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

.section-heading h2,
.cta-panel h2 {
  color: #eef6ff;
}

.workflow {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 16px;
  align-items: center;
}

.workflow-node,
.case-card {
  min-height: 190px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.workflow-node p,
.case-card p,
.founder-copy,
.founder-title,
.cta-panel p,
.site-footer {
  color: var(--muted);
  line-height: 1.6;
}

.workflow-arrow {
  color: var(--blue-bright);
  font-weight: 800;
}

.router-node {
  border-color: rgba(63, 140, 255, 0.46);
  background: linear-gradient(180deg, rgba(63, 140, 255, 0.18), rgba(255, 255, 255, 0.035));
}

.tool-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.tool-row span {
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: #c7d8ea;
  background: rgba(255, 255, 255, 0.04);
  font-size: 14px;
  font-weight: 650;
}

.case-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.founder-card {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 32px;
  align-items: center;
  padding: 28px;
  border-radius: 8px;
}

.founder-photo {
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(63, 140, 255, 0.22), rgba(78, 227, 255, 0.06));
  overflow: hidden;
}

.founder-photo.fallback-photo::before {
  content: "AF";
  color: var(--blue-bright);
  font-size: 42px;
  font-weight: 800;
}

.founder-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.founder-photo.fallback-photo img {
  display: none;
}

.founder-card h2 {
  margin-bottom: 8px;
}

.cta-panel {
  display: grid;
  place-items: start;
  max-width: 920px;
  margin: 0 auto;
  padding: 42px;
  border-radius: 8px;
  text-align: left;
}

.cta-panel h2 {
  max-width: 760px;
}

.site-footer {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 32px 0 46px;
  border-top: 1px solid var(--line);
  font-size: 14px;
}

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

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

@media (max-width: 940px) {
  .site-header {
    flex-wrap: wrap;
  }

  .site-nav {
    order: 3;
    width: 100%;
    justify-content: center;
    overflow-x: auto;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 38px;
  }

  .workflow {
    grid-template-columns: 1fr;
  }

  .workflow-arrow {
    transform: rotate(90deg);
    justify-self: center;
  }

  .case-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .site-header,
  .section-shell,
  .site-footer {
    width: min(100% - 24px, 1180px);
  }

  .brand-logo {
    height: 34px;
    max-width: 46vw;
  }

  .nav-cta {
    min-height: 40px;
  }

  .site-nav {
    justify-content: flex-start;
    gap: 18px;
    font-size: 13px;
  }

  h1 {
    font-size: 44px;
  }

  .hero-actions,
  .primary-button {
    width: 100%;
  }

  .signal-grid,
  .case-grid,
  .founder-card {
    grid-template-columns: 1fr;
  }

  .founder-card {
    padding: 22px;
  }

  .founder-photo {
    width: 148px;
  }

  .cta-panel {
    padding: 28px 22px;
  }

  .site-footer {
    display: grid;
    gap: 8px;
  }
}
