:root {
  --header-height: 80px;
  --safe-top: env(safe-area-inset-top, 0px);
}

body {
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  background-color: #040512;
  background-image:
    radial-gradient(circle at 20% 12%, rgba(56, 189, 248, 0.18), transparent 46%),
    radial-gradient(circle at 80% 6%, rgba(168, 85, 247, 0.22), transparent 52%),
    radial-gradient(circle at 52% 92%, rgba(96, 165, 250, 0.18), transparent 60%),
    linear-gradient(180deg, #03040d 0%, #050712 52%, #03040d 100%);
  background-attachment: fixed;
  color: #f8fafc;
  isolation: isolate;
}

body::before,
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  opacity: 0.55;
  mix-blend-mode: screen;
  transform: translate3d(0, 0, 0);
}

body::before {
  background: radial-gradient(38% 45% at 12% 18%, rgba(56, 189, 248, 0.35), transparent 70%) no-repeat,
    radial-gradient(32% 38% at 86% 12%, rgba(168, 85, 247, 0.32), transparent 70%) no-repeat;
  filter: blur(64px);
}

body::after {
  background: radial-gradient(34% 40% at 50% 88%, rgba(59, 130, 246, 0.32), transparent 68%) no-repeat,
    radial-gradient(26% 32% at 76% 64%, rgba(45, 212, 191, 0.24), transparent 70%) no-repeat;
  filter: blur(88px);
}

.hidden {
  display: none !important;
}

.section-gradient {
  position: relative;
  background: linear-gradient(150deg, rgba(12, 17, 36, 0.88) 0%, rgba(8, 11, 26, 0.84) 48%, rgba(6, 9, 22, 0.9) 100%);
  border: 1px solid rgba(148, 163, 184, 0.1);
  box-shadow:
    0 28px 58px rgba(5, 8, 20, 0.7),
    inset 0 1px 0 rgba(226, 232, 240, 0.05);
  overflow: hidden;
}

.section-gradient::before,
.section-gradient::after {
  content: "";
  position: absolute;
  inset: -20% -25%;
  width: auto;
  height: auto;
  pointer-events: none;
  z-index: 0;
}

.section-gradient::before {
  background:
    radial-gradient(45% 55% at 12% 0%, rgba(59, 130, 246, 0.3), transparent 68%),
    radial-gradient(38% 46% at 86% 6%, rgba(168, 85, 247, 0.28), transparent 70%);
  filter: blur(80px);
}

.section-gradient::after {
  background:
    radial-gradient(55% 60% at 50% 110%, rgba(94, 234, 212, 0.25), transparent 70%),
    radial-gradient(48% 55% at 90% 82%, rgba(56, 189, 248, 0.24), transparent 74%);
  filter: blur(90px);
}

.section-gradient > * {
  position: relative;
  z-index: 1;
}

.section-gradient--compact {
  background: linear-gradient(180deg, rgba(10, 14, 28, 0.86) 0%, rgba(7, 10, 22, 0.88) 100%);
}

#features.section-gradient {
  background: linear-gradient(182deg, rgba(9, 16, 32, 0.92) 0%, rgba(8, 15, 30, 0.94) 42%, rgba(8, 14, 28, 0.96) 78%, rgba(7, 12, 26, 0.97) 100%);
}

#features.section-gradient::before {
  background: linear-gradient(
    to top,
    rgba(9, 17, 36, 0.92) 0%,
    rgba(9, 20, 42, 0.58) 36%,
    rgba(8, 19, 40, 0.18) 72%,
    rgba(8, 21, 42, 0) 100%
  );
  inset: -22% -18% 14% -18%;
}

#features.section-gradient::after {
  background:
    radial-gradient(58% 48% at 50% 12%, rgba(42, 96, 201, 0.18), transparent 70%),
    radial-gradient(56% 52% at 50% 108%, rgba(78, 156, 245, 0.16), transparent 78%);
  filter: blur(95px);
  inset: -12% -16% -24% -16%;
}

.ontology-hero.section-gradient,
#features.section-gradient {
  border-color: rgba(14, 24, 46, 0.08);
}

.ambient-panel {
  position: relative;
  background: linear-gradient(150deg, rgba(17, 26, 52, 0.72), rgba(14, 22, 44, 0.58));
  border: 1px solid rgba(148, 163, 184, 0.18);
  box-shadow:
    0 22px 50px rgba(7, 11, 28, 0.55),
    inset 0 1px 0 rgba(226, 232, 240, 0.08);
  overflow: hidden;
}

.ambient-panel::before {
  content: "";
  position: absolute;
  inset: -35% -10% auto 40%;
  height: 220%;
  background: radial-gradient(40% 60% at 50% 30%, rgba(168, 85, 247, 0.32), transparent 70%);
  pointer-events: none;
  opacity: 0.65;
  filter: blur(50px);
}

.feature-media {
  position: relative;
  background: linear-gradient(140deg, rgba(21, 32, 62, 0.85), rgba(59, 130, 246, 0.22) 62%, rgba(12, 19, 38, 0.82));
  border: 1px solid rgba(148, 163, 184, 0.18);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
  overflow: hidden;
}

.feature-media::before {
  content: "";
  position: absolute;
  inset: -60% 20% auto -20%;
  height: 180%;
  background: radial-gradient(45% 60% at 30% 40%, rgba(94, 234, 212, 0.25), transparent 70%);
  pointer-events: none;
  opacity: 0.7;
  filter: blur(60px);
}

.halo-media {
  position: relative;
  background: linear-gradient(160deg, rgba(21, 30, 58, 0.78), rgba(17, 26, 52, 0.6));
  border: 1px solid rgba(168, 85, 247, 0.2);
  box-shadow:
    0 40px 70px rgba(7, 11, 24, 0.6),
    inset 0 1px 0 rgba(226, 232, 240, 0.1);
  overflow: hidden;
}

.halo-media::before {
  content: "";
  position: absolute;
  inset: -30% -30% 35% 35%;
  background:
    radial-gradient(50% 60% at 20% 30%, rgba(56, 189, 248, 0.28), transparent 70%),
    radial-gradient(45% 55% at 80% 70%, rgba(168, 85, 247, 0.26), transparent 76%);
  opacity: 0.7;
  pointer-events: none;
  filter: blur(72px);
}

.founder-photo {
  transform: scale(0.35);
  opacity: 0;
  transition:
    transform 0.55s cubic-bezier(0.16, 1, 0.3, 1),
    opacity 0.35s ease-out;
  transform-origin: center;
  will-change: transform, opacity;
}

.founder-photo.is-visible {
  transform: scale(1);
  opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
  .founder-photo {
    transform: none;
    opacity: 1;
    transition: none;
  }
}

.waitlist-modal {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(1.5rem, 4vw, 3rem);
  background: rgba(2, 6, 17, 0.75);
  backdrop-filter: blur(14px);
  z-index: 70;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.32s ease, visibility 0.32s ease;
}

.waitlist-modal.is-active {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
}

.waitlist-modal__backdrop {
  position: absolute;
  inset: 0;
}

.waitlist-modal__dialog {
  position: relative;
  width: min(640px, 92vw);
  max-height: min(90vh, 720px);
  overflow-y: auto;
  border-radius: 24px;
  padding: clamp(2.1rem, 4vw, 2.8rem);
  background: linear-gradient(160deg, rgba(23, 32, 62, 0.95), rgba(9, 12, 28, 0.92));
  border: 1px solid rgba(120, 135, 182, 0.32);
  box-shadow:
    0 35px 70px rgba(4, 7, 20, 0.75),
    inset 0 1px 0 rgba(226, 232, 240, 0.08);
  transform: translateY(24px) scale(0.96);
  transition: transform 0.36s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.36s ease;
  opacity: 0;
}

.waitlist-modal.is-active .waitlist-modal__dialog {
  transform: translateY(0) scale(1);
  opacity: 1;
}

.waitlist-modal__close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 38px;
  height: 38px;
  border-radius: 9999px;
  border: 1px solid rgba(226, 232, 240, 0.12);
  background: rgba(15, 21, 42, 0.72);
  color: rgba(226, 232, 240, 0.85);
  font-size: 1.4rem;
  line-height: 1;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: background 0.24s ease, transform 0.2s ease;
}

.waitlist-modal__close:hover {
  background: rgba(56, 107, 247, 0.48);
  transform: scale(1.05);
}

.waitlist-modal__header {
  margin-bottom: clamp(1.25rem, 3vw, 1.6rem);
}

.waitlist-modal__title {
  margin: 0;
  font-size: clamp(1.6rem, 3vw, 2rem);
  font-weight: 700;
  color: #f5f7ff;
}

.waitlist-modal__subtitle {
  margin: 0.3rem 0 0;
  font-size: 0.95rem;
  color: rgba(202, 213, 255, 0.76);
}

.waitlist-form {
  display: grid;
  gap: clamp(1.25rem, 3.5vw, 1.6rem);
}

.waitlist-form__field {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.waitlist-form__field label {
  font-size: 0.9rem;
  font-weight: 600;
  color: rgba(232, 239, 255, 0.88);
}

.waitlist-form__field label span {
  font-weight: 500;
  color: rgba(200, 210, 255, 0.6);
  font-size: 0.82rem;
}

.waitlist-form__field input,
.waitlist-form__field textarea {
  width: 100%;
  border-radius: 14px;
  border: 1px solid rgba(120, 135, 182, 0.32);
  background: rgba(13, 20, 38, 0.8);
  color: #f1f5ff;
  padding: 1rem 1.15rem;
  font-size: 0.95rem;
  transition: border-color 0.22s ease, box-shadow 0.22s ease, background 0.3s ease;
  box-shadow: inset 0 1px 0 rgba(226, 232, 240, 0.06);
}

.waitlist-form__field textarea {
  min-height: 120px;
  resize: vertical;
}

.waitlist-form__field input:focus,
.waitlist-form__field textarea:focus {
  outline: none;
  border-color: rgba(99, 102, 241, 0.6);
  background: rgba(18, 24, 46, 0.92);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.25);
}

.waitlist-form__error {
  margin-top: 0.4rem;
  font-size: 0.8rem;
  color: #fca5a5;
  min-height: 0;
}

.waitlist-form__actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  align-items: center;
}

.waitlist-form__submit {
  padding: 0.85rem 2rem;
  border-radius: 9999px;
  font-size: 1rem;
}

.waitlist-form__secondary {
  padding: 0.85rem 1.6rem;
  border-radius: 9999px;
  border: 1px solid rgba(226, 232, 240, 0.32);
  background: transparent;
  color: rgba(226, 232, 240, 0.85);
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.waitlist-form__secondary:hover {
  background: rgba(226, 232, 240, 0.1);
  border-color: rgba(226, 232, 240, 0.4);
}

.waitlist-form__feedback {
  margin: 0;
  font-size: 0.85rem;
  color: rgba(190, 240, 255, 0.85);
  min-height: 1.2rem;
}

.waitlist-form__feedback[data-tone="error"] {
  color: #fca5a5;
}

.waitlist-form__feedback[data-tone="success"] {
  color: #bbf7d0;
}

.waitlist-form__feedback[aria-busy="true"]::before {
  content: "Sending...";
}

@media (max-width: 640px) {
  .waitlist-modal__dialog {
    padding: 1.75rem;
  }

  .waitlist-form__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .waitlist-form__secondary {
    text-align: center;
  }
}

.brand-logo {
  display: inline-flex;
  width: 44px;
  height: 44px;
}

.brand-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 8px 18px rgba(56, 189, 248, 0.35));
}

.nav-link {
  position: relative;
  color: rgba(208, 222, 240, 0.68);
  font-weight: 500;
  letter-spacing: 0.04em;
  transition:
    color 0.3s ease,
    transform 0.3s ease;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.25rem;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, rgba(56, 189, 248, 0.8), rgba(168, 85, 247, 0.8));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
  opacity: 0.8;
}

.nav-link:hover,
.nav-link:focus-visible {
  color: rgba(242, 248, 255, 0.92);
  transform: translateY(-1px);
}

.nav-link:hover::after,
.nav-link:focus-visible::after {
  transform: scaleX(1);
}

.nav-link:focus-visible {
  outline: none;
}

.accent-link {
  position: relative;
  color: rgba(125, 211, 252, 0.9);
  font-weight: 500;
  transition: color 0.3s ease;
}

.accent-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.2rem;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, rgba(56, 189, 248, 0.6), rgba(168, 85, 247, 0.6));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.accent-link:hover,
.accent-link:focus-visible {
  color: rgba(244, 244, 255, 0.95);
}

.accent-link:hover::after,
.accent-link:focus-visible::after {
  transform: scaleX(1);
}

.accent-link:focus-visible {
  outline: none;
}

.glow-btn {
  position: relative;
  background: linear-gradient(120deg, rgba(168, 85, 247, 0.95), rgba(56, 189, 248, 0.95));
  background-size: 200% 200%;
  background-position: 10% 50%;
  color: #f8fafc;
  border: 1px solid rgba(226, 232, 240, 0.22);
  box-shadow:
    0 18px 36px rgba(56, 189, 248, 0.35),
    0 10px 30px rgba(168, 85, 247, 0.28);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  transition:
    background-position 0.35s ease,
    box-shadow 0.35s ease,
    transform 0.35s ease;
}

.glow-btn:hover {
  background-position: 80% 50%;
  box-shadow:
    0 24px 46px rgba(56, 189, 248, 0.4),
    0 16px 42px rgba(168, 85, 247, 0.32);
  transform: translateY(-2px);
}

.glow-btn:focus-visible {
  outline: 2px solid rgba(94, 234, 212, 0.6);
  outline-offset: 4px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  background: linear-gradient(180deg, rgba(3, 7, 22, 0.75) 0%, rgba(3, 7, 22, 0) 95%);
  box-shadow: none;
  backdrop-filter: blur(14px);
  border-bottom: none;
  position: relative;
  overflow: hidden;
}

.site-header .max-w-7xl {
  padding-top: calc(0.75rem + var(--safe-top));
  padding-bottom: clamp(0.65rem, 1.4vh, 0.9rem);
  gap: 1.25rem;
}

.site-header::after {
  content: none;
}

.ontology-hero {
  position: relative;
  isolation: isolate;
  overflow: visible;
  box-sizing: border-box;
  --hero-gap-top: clamp(0.6rem, 2vw, 1.4rem);
  --hero-pad-bottom: clamp(0.8rem, 2.2vw, 1.6rem);
  min-height: min(calc(100vh - var(--header-height) - var(--hero-gap-top) - var(--hero-pad-bottom) + 1.5px), 820px);
  display: flex;
  align-items: center;
  padding-top: calc(var(--header-height) + var(--hero-gap-top) + var(--safe-top));
  padding-bottom: var(--hero-pad-bottom);
  scroll-margin-top: calc(var(--header-height) + 24px);
  border: none;
  box-shadow: none;
  background: linear-gradient(118deg, #030716 0%, #06172f 32%, #0a2748 58%, #0b1a30 82%, #0c182c 100%);
}

.ontology-hero::before {
  content: none;
}

.ontology-hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: clamp(180px, 26vh, 320px);
  background: linear-gradient(
    to bottom,
    rgba(9, 21, 44, 0) 0%,
    rgba(9, 21, 44, 0.45) 34%,
    rgba(9, 19, 40, 0.74) 64%,
    rgba(8, 17, 36, 0.88) 100%
  );
  pointer-events: none;
  z-index: 0;
}

.ontology-hero > .max-w-6xl {
  max-width: min(92vw, 1480px);
  flex: 1 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: clamp(1.4rem, 3.2vh, 2.2rem);
  position: relative;
  z-index: 1;
  height: 100%;
}

@media (min-width: 768px) {
  .ontology-hero > .max-w-6xl {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(1.8rem, 4vw, 3.2rem);
    align-items: center;
  }

  .ontology-intro {
    height: 100%;
  }
}

@media (max-width: 767px) {
  .ontology-hero > .max-w-6xl {
    height: auto;
    padding-inline: clamp(1.1rem, 6vw, 1.6rem);
  }

  .ontology-intro {
    height: auto;
    justify-content: flex-start;
    padding-left: 0;
    gap: clamp(1.2rem, 5vw, 1.8rem);
  }
}

@media (max-width: 640px) {
  .site-header {
    background: rgba(3, 7, 22, 0.92);
    backdrop-filter: blur(20px);
  }

  .site-header .max-w-7xl {
    padding-top: calc(0.85rem + var(--safe-top));
    padding-bottom: 0.85rem;
  }

  .site-header nav {
    gap: 0.75rem;
  }

  .site-header nav a {
    font-size: 0.85rem;
  }

  .ontology-hero {
    padding-top: calc(var(--header-height) + var(--hero-gap-top) + var(--safe-top) + 0.4rem);
    padding-bottom: clamp(2.6rem, 9vh, 3.6rem);
    position: relative;
    isolation: isolate;
  }

  .ontology-intro {
    max-width: 100%;
    align-items: flex-start;
    position: relative;
    z-index: 2;
  }

  .ontology-intro h2 {
    font-size: clamp(2.4rem, 9vw, 2.9rem);
    text-shadow: 0 6px 22px rgba(0, 0, 0, 0.45);
  }

  .ontology-intro p {
    font-size: clamp(0.98rem, 4vw, 1.08rem);
    line-height: 1.6;
    text-shadow: 0 4px 18px rgba(0, 0, 0, 0.5);
  }

  .ontology-hero .ambient-panel {
    max-width: 100%;
    padding: clamp(1.25rem, 6vw, 1.6rem);
    border-radius: 18px;
    background: linear-gradient(150deg, rgba(15, 26, 54, 0.82), rgba(10, 18, 40, 0.7));
    border: 1px solid rgba(76, 122, 198, 0.32);
    backdrop-filter: blur(10px);
  }

  .ontology-hero .ontology-visual,
  .ontology-hero [data-ontology-canvas] {
    display: none !important;
  }
}

.ontology-intro {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: clamp(1.6rem, 3.6vh, 2.4rem);
  position: relative;
  z-index: 3;
  max-width: 36rem;
  align-self: stretch;
  height: 100%;
  padding-left: clamp(1.5rem, 4.5vw, 3.5rem);
}

.ontology-intro h2 {
  font-size: clamp(3rem, 5.2vw, 4.25rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: #f9fbff;
}

.ontology-intro p {
  font-size: clamp(1.05rem, 1.4vw, 1.22rem);
  line-height: 1.7;
  max-width: 36ch;
  color: rgba(242, 247, 255, 0.88);
}

.ontology-hero .ambient-panel {
  padding: clamp(1.8rem, 3.4vw, 2.8rem);
  margin-top: 0;
  max-width: 26.5rem;
  background: rgba(9, 22, 42, 0.52);
  border: 1px solid rgba(70, 128, 198, 0.32);
  box-shadow: none;
  backdrop-filter: none;
}

.ontology-hero .ambient-panel::before {
  content: none;
}

.ontology-hero .ambient-panel h3 {
  color: #f4f8ff;
  font-size: clamp(1.1rem, 1.8vw, 1.4rem);
  font-weight: 650;
}

.ontology-hero .ambient-panel p {
  color: rgba(230, 240, 255, 0.85);
  font-size: clamp(0.98rem, 1.3vw, 1.1rem);
  line-height: 1.65;
}

.ontology-visual {
  display: flex;
  justify-content: flex-end;
  align-items: stretch;
  position: relative;
  isolation: isolate;
  z-index: 0;
  overflow: visible;
  height: 100%;
}

.ontology-visual::before,
.ontology-visual::after {
  content: none;
}

.ontology-visual .ontology-graph-wrapper {
  width: clamp(460px, 56vw, 700px);
  max-width: clamp(480px, 62vw, 760px);
  position: relative;
  z-index: 1;
  transform: translateX(-4%);
  height: 100%;
  top: 0;
}

@media (max-width: 1024px) {
  .ontology-visual .ontology-graph-wrapper {
    transform: translateX(0);
    height: 100%;
    top: 0;
  }
}

.ontology-graph-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: visible;
  border-radius: 0;
  background: transparent;
  border: none;
  box-shadow: none;
  backdrop-filter: none;
}

.ontology-graph-wrapper::after {
  content: none;
}

.ontology-canvas {
  width: 100%;
  height: 100%;
  display: block;
  opacity: 1;
  mix-blend-mode: normal;
  filter: none;
}

.feature-card-stack {
  position: relative;
  height: clamp(260px, 42vw, 320px);
  display: grid;
  place-items: center;
}

.feature-card {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(100%, 320px);
  background: linear-gradient(160deg, rgba(29, 38, 78, 0.76) 0%, rgba(15, 23, 42, 0.62) 40%, rgba(9, 14, 32, 0.78) 100%);
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 1rem;
  padding: 1.75rem;
  box-shadow:
    0 30px 60px rgba(8, 13, 30, 0.6),
    inset 0 0 0 1px rgba(226, 232, 240, 0.06);
  transform: translate(-50%, -50%);
  transform-origin: center;
  transition:
    transform 0.65s cubic-bezier(0.23, 1, 0.32, 1),
    opacity 0.45s ease,
    box-shadow 0.45s ease;
  opacity: 0;
  pointer-events: none;
  backdrop-filter: blur(8px);
  isolation: isolate;
}

.feature-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(120deg, rgba(168, 85, 247, 0.16), rgba(56, 189, 248, 0.08));
  opacity: 0.85;
  z-index: -1;
}

.feature-card::after {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: calc(1rem - 1px);
  background:
    radial-gradient(circle at 16% 20%, rgba(226, 232, 240, 0.18), transparent 60%),
    radial-gradient(circle at 84% 0%, rgba(56, 189, 248, 0.16), transparent 58%),
    radial-gradient(circle at 48% 82%, rgba(94, 234, 212, 0.12), transparent 62%);
  opacity: 0.7;
  z-index: -1;
}

.feature-card.is-front {
  opacity: 1;
  transform: translate(-50%, -50%) translate3d(0, 0, 0) scale(1);
  z-index: 3;
  pointer-events: auto;
  background: linear-gradient(155deg, rgba(22, 32, 68, 0.85) 0%, rgba(12, 20, 42, 0.74) 48%, rgba(10, 15, 32, 0.84) 100%);
  backdrop-filter: blur(4px);
  border-color: rgba(226, 232, 240, 0.28);
}

.feature-card.is-middle {
  opacity: 0.85;
  transform: translate(-50%, -50%) translate3d(56px, -18px, 0) scale(0.94);
  z-index: 2;
}

.feature-card.is-back {
  opacity: 0.7;
  transform: translate(-50%, -50%) translate3d(108px, -36px, 0) scale(0.87);
  z-index: 1;
}

.feature-card.is-hidden {
  opacity: 0;
  transform: translate(-50%, -50%) translate3d(140px, -60px, 0) scale(0.8);
  z-index: 0;
}

.feature-card.is-front:focus-visible,
.feature-card.is-front:hover {
  box-shadow:
    0 30px 70px rgba(59, 130, 246, 0.35),
    inset 0 0 0 1px rgba(255, 255, 255, 0.12);
}

.stat-ticker {
  position: relative;
  display: flex;
  overflow: hidden;
  mask-image: linear-gradient(to right, transparent, black 12%, black 88%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 12%, black 88%, transparent);
}

.stat-track {
  display: flex;
  align-items: center;
  --stat-gap: clamp(2rem, 6vw, 3.5rem);
  gap: var(--stat-gap);
  width: max-content;
  transform: translateX(0);
  will-change: transform;
  animation: stat-marquee var(--loop-duration, 18s) linear infinite;
}

.stat-item {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.1rem;
  padding: 0.65rem 1.4rem;
  border-radius: 9999px;
  position: relative;
  background: linear-gradient(120deg, rgba(15, 23, 42, 0.88), rgba(29, 40, 78, 0.55));
  border: 1px solid rgba(59, 130, 246, 0.32);
  box-shadow:
    0 18px 42px rgba(8, 12, 28, 0.55),
    inset 0 1px 0 rgba(226, 232, 240, 0.08);
  overflow: hidden;
  z-index: 0;
}

.stat-item::after {
  content: "";
  position: absolute;
  inset: -40% 30% 40% -30%;
  background: radial-gradient(55% 60% at 50% 50%, rgba(94, 234, 212, 0.26), transparent 70%);
  opacity: 0.7;
  pointer-events: none;
  filter: blur(60px);
}

.stat-item > * {
  position: relative;
  z-index: 1;
}

.stat-value {
  font-size: clamp(1.4rem, 3vw, 1.95rem);
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #e0f2fe;
}

.stat-label {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.32em;
  color: rgba(226, 232, 240, 0.7);
}

@keyframes stat-marquee {
  100% {
    transform: translateX(calc(-1 * var(--loop-width, 0px)));
  }
}

@media (prefers-reduced-motion: reduce) {
  .stat-track {
    animation: none !important;
    transform: none !important;
  }
}
/* Ontology static hero ---------------------------------------------------- */
.ontology-static {
  min-height: 100vh;
  padding: clamp(4rem, 10vw, 6rem) clamp(5vw, 8vw, 9vw);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(3rem, 5vw, 4.5rem);
  color: #eef4ff;
  background: linear-gradient(120deg, #040712 0%, #08162e 42%, #153f72 100%);
  position: relative;
  overflow: hidden;
}

.ontology-static::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, rgba(5, 11, 24, 0.92) 0%, rgba(5, 11, 24, 0.86) 48%, rgba(7, 24, 47, 0.15) 100%);
  pointer-events: none;
}

.ontology-static__content {
  position: relative;
  z-index: 2;
  max-width: clamp(28rem, 34vw, 32rem);
}

.ontology-static__heading {
  font-size: clamp(2.5rem, 4.2vw, 3.4rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin: 0 0 1.5rem;
}

.ontology-static__body {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.7;
  color: rgba(226, 235, 255, 0.78);
  max-width: 32ch;
}

.ontology-static__card {
  position: relative;
  margin-top: clamp(2.8rem, 6vw, 3.4rem);
  padding: clamp(1.75rem, 3vw, 2.2rem);
  border-radius: 18px;
  background: rgba(13, 28, 55, 0.68);
  border: 1px solid rgba(86, 136, 204, 0.2);
  box-shadow: 0 24px 60px rgba(1, 8, 18, 0.55);
  max-width: 28rem;
}

.ontology-static__card-heading {
  margin: 0 0 0.75rem;
  font-size: 1.15rem;
  font-weight: 600;
  color: #dee9ff;
}

.ontology-static__card-body {
  margin: 0;
  color: rgba(208, 222, 247, 0.78);
  line-height: 1.6;
}

.ontology-static__visual {
  position: relative;
  z-index: 1;
  width: min(40vw, 420px);
  max-width: 440px;
  aspect-ratio: 1 / 1;
}

.ontology-static__visual svg {
  display: block;
  width: 100%;
  height: 100%;
}

@media (max-width: 980px) {
  .ontology-static {
    flex-direction: column;
    align-items: flex-start;
    gap: clamp(3.5rem, 10vw, 4.5rem);
    padding-bottom: clamp(5rem, 12vw, 6rem);
  }

  .ontology-static__visual {
    width: min(70vw, 420px);
    max-width: 360px;
    align-self: center;
  }

  .ontology-static::before {
    background: linear-gradient(120deg, rgba(5, 11, 24, 0.92) 0%, rgba(5, 11, 24, 0.86) 60%, rgba(7, 24, 47, 0.2) 100%);
  }
}
.section-gradient:first-of-type {
  margin-top: 0;
}
