:root {
  color-scheme: dark;
  --obsidian: #0a0a0f;
  --graphite: #1c1c24;
  --fog: #282830;
  --silver: #b0b8c4;
  --cobalt: #3a6bff;
  --cobalt-soft: #7ea2ff;
  --white: #ffffff;
  --line: rgba(176, 184, 196, 0.22);
  --panel: rgba(28, 28, 36, 0.74);
  --panel-strong: rgba(28, 28, 36, 0.94);
  --shadow: 0 30px 90px rgba(0, 0, 0, 0.42);
  --font-display: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-body: "IBM Plex Sans", Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  scroll-behavior: smooth;
  background: var(--obsidian);
}

body {
  min-height: 100%;
  margin: 0;
  background:
    radial-gradient(circle at 84% 4%, rgba(58, 107, 255, 0.24), transparent 30rem),
    radial-gradient(circle at 8% 22%, rgba(126, 162, 255, 0.12), transparent 24rem),
    linear-gradient(180deg, #0a0a0f 0%, #11121a 46%, #0a0a0f 100%);
  color: var(--white);
  font-family: var(--font-body);
  line-height: 1.5;
  text-rendering: optimizeLegibility;
}

body.menu-open {
  overflow: hidden;
}

a {
  color: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

:focus-visible {
  outline: 3px solid var(--cobalt-soft);
  outline-offset: 4px;
}

.skip-link,
.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;
}

.skip-link:focus {
  z-index: 20;
  top: 14px;
  left: 14px;
  width: auto;
  height: auto;
  margin: 0;
  clip: auto;
  padding: 10px 14px;
  border-radius: 8px;
  background: var(--white);
  color: var(--obsidian);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 92px;
  padding: 16px clamp(18px, 4vw, 64px);
  border-bottom: 1px solid var(--line);
  background: rgba(10, 10, 15, 0.82);
  backdrop-filter: blur(18px);
}

.brand,
.site-nav,
.hero-actions,
.trust-strip,
.boundary-list div,
.site-footer {
  display: flex;
  align-items: center;
}

.brand {
  gap: 14px;
  text-decoration: none;
  transition: transform 180ms ease;
}

.brand:hover {
  transform: translateY(-1px);
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 54px;
  height: 58px;
  border-radius: 6px;
}

.brand-keystone {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.brand-keystone path {
  transform-box: fill-box;
  transform-origin: center;
  animation: keystoneReveal 280ms ease-out both;
}

.keystone-edge,
.keystone-base {
  fill: var(--silver);
}

.keystone-left {
  fill: var(--cobalt-soft);
}

.keystone-core-left {
  fill: var(--cobalt);
}

.keystone-core-right {
  fill: rgba(176, 184, 196, 0.92);
}

.keystone-left {
  animation-delay: 40ms;
}

.keystone-right {
  animation-delay: 70ms;
}

.keystone-core-left {
  animation-delay: 100ms;
}

.keystone-core-right {
  animation-delay: 130ms;
}

.keystone-base {
  animation-delay: 160ms;
}

.brand strong,
.brand small {
  display: block;
  text-transform: uppercase;
}

.brand strong {
  font-family: var(--font-display);
  font-size: clamp(1.16rem, 2vw, 1.42rem);
  font-weight: 800;
  letter-spacing: 0.015em;
  line-height: 0.95;
}

.brand small {
  margin-top: 5px;
  color: var(--silver);
  font-size: clamp(0.7rem, 1.15vw, 0.82rem);
  font-weight: 600;
  letter-spacing: 0.42em;
}

.site-nav {
  gap: clamp(14px, 2.4vw, 28px);
}

.site-nav a {
  color: var(--silver);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
}

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

.site-nav .nav-login {
  min-height: 42px;
  padding: 11px 16px;
  border: 1px solid rgba(176, 184, 196, 0.38);
  border-radius: 8px;
  color: var(--white);
}

.menu-toggle {
  display: none;
  width: 46px;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--graphite);
  color: var(--white);
}

.menu-toggle span:not(.sr-only) {
  display: block;
  width: 20px;
  height: 2px;
  margin: 4px auto;
  background: currentColor;
}

.hero-section,
.challenge-section,
.framework-section,
.benefits-section,
.boundary-section,
.final-cta {
  width: min(1180px, calc(100vw - 36px));
  margin: 0 auto;
}

.hero-section {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(360px, 1.05fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
  min-height: calc(100vh - 92px);
  padding: clamp(64px, 8vw, 112px) 0 clamp(46px, 7vw, 88px);
  overflow: hidden;
}

.motion-field {
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0.86;
  pointer-events: none;
}

.flow-lines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.flow {
  fill: none;
  stroke: rgba(126, 162, 255, 0.22);
  stroke-width: 1.4;
  stroke-dasharray: 9 18;
  animation: dashFlow 12s linear infinite;
}

.flow-b {
  animation-duration: 15s;
  stroke: rgba(58, 107, 255, 0.24);
}

.flow-c {
  animation-duration: 18s;
}

.motion-node {
  position: absolute;
  width: 8px;
  aspect-ratio: 1;
  border-radius: 999px;
  background: var(--cobalt-soft);
  box-shadow: 0 0 28px rgba(126, 162, 255, 0.74);
  animation: nodeDrift 9s ease-in-out infinite;
}

.node-a {
  left: 16%;
  top: 23%;
}

.node-b {
  right: 18%;
  top: 42%;
  animation-delay: -3s;
}

.node-c {
  left: 52%;
  bottom: 18%;
  animation-delay: -6s;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--cobalt-soft);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

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

h1,
h2,
h3 {
  font-family: var(--font-display);
}

h1 {
  max-width: 680px;
  margin-bottom: 22px;
  font-size: clamp(3.35rem, 7vw, 6.3rem);
  line-height: 0.9;
  letter-spacing: 0;
}

.hero-lede {
  max-width: 680px;
  margin-bottom: 28px;
  color: var(--silver);
  font-size: clamp(1.05rem, 2vw, 1.35rem);
}

.hero-actions {
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 28px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 14px 20px;
  border-radius: 8px;
  font-size: 0.84rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  line-height: 1.12;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
  transition: transform 180ms ease, background-color 180ms ease, border-color 180ms ease;
}

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

.button.primary {
  border: 1px solid var(--cobalt);
  background: var(--cobalt);
  color: var(--white);
  box-shadow: 0 18px 42px rgba(58, 107, 255, 0.32);
}

.button.secondary {
  border: 1px solid rgba(176, 184, 196, 0.42);
  background: rgba(255, 255, 255, 0.03);
  color: var(--white);
}

.trust-strip {
  flex-wrap: wrap;
  gap: 10px;
  margin: 0;
}

.trust-strip div {
  min-width: 142px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(28, 28, 36, 0.64);
}

.trust-strip dt,
.trust-strip dd {
  margin: 0;
}

.trust-strip dt {
  color: var(--silver);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.trust-strip dd {
  margin-top: 2px;
  color: var(--white);
  font-weight: 800;
}

.architecture-visual {
  min-width: 0;
  margin: 0;
  padding: clamp(16px, 2vw, 24px);
  border: 1px solid rgba(126, 162, 255, 0.26);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.08), rgba(28, 28, 36, 0.76)),
    var(--graphite);
  box-shadow: var(--shadow);
}

.architecture-visual svg {
  display: block;
  width: 100%;
  height: auto;
}

.visual-grid {
  fill: rgba(10, 10, 15, 0.56);
  stroke: rgba(176, 184, 196, 0.20);
}

.visual-path {
  fill: none;
  stroke: url("#cobalt-glow");
  stroke-width: 3;
  stroke-linecap: round;
  stroke-dasharray: 16 20;
  filter: url("#soft-glow");
  animation: dashFlow 10s linear infinite;
}

.path-two {
  animation-duration: 13s;
  animation-direction: reverse;
}

.gate-stack rect,
.gate-stack path {
  fill: rgba(255, 255, 255, 0.03);
  stroke: rgba(176, 184, 196, 0.34);
  stroke-width: 2;
}

.gate-stack .core {
  fill: var(--cobalt);
  filter: url("#soft-glow");
  animation: corePulse 3s ease-in-out infinite;
}

.visual-labels text {
  fill: rgba(176, 184, 196, 0.84);
  font: 700 14px var(--font-body);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.architecture-visual figcaption {
  margin-top: 14px;
  color: var(--silver);
  font-size: 0.86rem;
}

.challenge-section,
.framework-section,
.benefits-section,
.boundary-section,
.final-cta {
  padding: clamp(56px, 8vw, 104px) 0;
}

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

.section-heading h2,
.boundary-section h2,
.final-cta h2 {
  margin-bottom: 14px;
  font-size: clamp(2rem, 5vw, 4.4rem);
  line-height: 0.98;
}

.section-heading p:not(.eyebrow),
.boundary-section p {
  color: var(--silver);
  font-size: clamp(1rem, 1.7vw, 1.18rem);
}

.comparison-grid,
.benefit-grid,
.framework-steps {
  display: grid;
  gap: 14px;
}

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

.comparison-grid article,
.benefit-grid article,
.framework-steps li,
.boundary-list div {
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.015)),
    var(--panel);
  box-shadow: 0 20px 58px rgba(0, 0, 0, 0.22);
}

.comparison-grid article,
.benefit-grid article {
  padding: 24px;
}

.card-index {
  display: inline-flex;
  margin-bottom: 34px;
  color: var(--cobalt-soft);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.comparison-grid h3,
.benefit-grid h3,
.framework-steps h3 {
  margin-bottom: 8px;
  font-size: 1.28rem;
}

.comparison-grid p,
.benefit-grid p,
.framework-steps p {
  margin-bottom: 0;
  color: var(--silver);
}

.framework-section {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.framework-steps {
  position: relative;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0;
  padding: 0;
  list-style: none;
}

.framework-steps::before {
  content: "";
  position: absolute;
  left: 8%;
  right: 8%;
  top: 42px;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(58, 107, 255, 0.72), transparent);
  transform: scaleX(var(--progress, 0));
  transform-origin: left;
  transition: transform 900ms ease;
}

.framework-steps li {
  position: relative;
  z-index: 1;
  min-height: 240px;
  padding: 26px;
}

.framework-steps span {
  display: grid;
  place-items: center;
  width: 46px;
  aspect-ratio: 1;
  margin-bottom: 74px;
  border: 1px solid rgba(126, 162, 255, 0.44);
  border-radius: 999px;
  background: var(--obsidian);
  color: var(--cobalt-soft);
  font-weight: 900;
  box-shadow: 0 0 0 0 rgba(58, 107, 255, 0);
  transition: box-shadow 500ms ease, background-color 500ms ease, color 500ms ease;
}

.framework-steps.in-view span {
  background: var(--cobalt);
  color: var(--white);
  box-shadow: 0 0 36px rgba(58, 107, 255, 0.46);
}

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

.boundary-section {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(340px, 1.1fr);
  gap: clamp(24px, 5vw, 70px);
  align-items: center;
}

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

.boundary-list div {
  align-items: flex-start;
  flex-direction: column;
  gap: 8px;
  min-height: 142px;
  padding: 20px;
}

.boundary-list strong {
  font-family: var(--font-display);
  font-size: 1.05rem;
}

.boundary-list span {
  color: var(--silver);
}

.final-cta {
  text-align: center;
}

.final-cta .eyebrow {
  justify-content: center;
}

.final-cta .hero-actions {
  justify-content: center;
  margin-bottom: 0;
}

.site-footer {
  justify-content: space-between;
  gap: 20px;
  padding: 24px clamp(18px, 4vw, 64px);
  border-top: 1px solid var(--line);
  color: var(--silver);
  font-size: 0.86rem;
}

.site-footer span:first-child {
  color: var(--white);
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

@keyframes dashFlow {
  to {
    stroke-dashoffset: -140;
  }
}

@keyframes keystoneReveal {
  from {
    opacity: 0;
    transform: translateY(3px) scale(0.94);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes nodeDrift {
  0%, 100% {
    transform: translate3d(0, 0, 0) scale(1);
    opacity: 0.7;
  }
  50% {
    transform: translate3d(18px, -12px, 0) scale(1.24);
    opacity: 1;
  }
}

@keyframes corePulse {
  0%, 100% {
    opacity: 0.72;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.08);
  }
}

@media (max-width: 980px) {
  .menu-toggle {
    display: block;
  }

  .site-nav {
    position: fixed;
    inset: 86px 14px auto;
    z-index: 12;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--panel-strong);
    box-shadow: var(--shadow);
  }

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

  .site-nav a {
    min-height: 48px;
    padding: 14px 12px;
  }

  .hero-section,
  .boundary-section {
    grid-template-columns: 1fr;
  }

  .architecture-visual {
    order: -1;
  }

  h1 {
    font-size: clamp(2.75rem, 13vw, 3.65rem);
  }

  .section-heading h2,
  .boundary-section h2,
  .final-cta h2 {
    font-size: clamp(2rem, 10vw, 3.15rem);
  }

  .comparison-grid,
  .benefit-grid,
  .framework-steps,
  .boundary-list {
    grid-template-columns: 1fr;
  }

  .framework-steps::before {
    left: 49px;
    right: auto;
    top: 48px;
    bottom: 48px;
    width: 2px;
    height: auto;
    transform: scaleY(var(--progress, 0));
    transform-origin: top;
  }

  .framework-steps li {
    min-height: auto;
    padding-left: 84px;
  }

  .framework-steps span {
    position: absolute;
    left: 20px;
    top: 22px;
    margin-bottom: 0;
  }
}

@media (max-width: 620px) {
  .site-header {
    min-height: 76px;
    padding-inline: 14px;
  }

  .site-nav {
    top: 76px;
  }

  .brand-mark {
    width: 38px;
    height: 42px;
  }

  .brand strong {
    font-size: 0.98rem;
  }

  .brand small {
    letter-spacing: 0.26em;
  }

  .hero-section,
  .challenge-section,
  .framework-section,
  .benefits-section,
  .boundary-section,
  .final-cta {
    width: min(100% - 28px, 1180px);
  }

  h1 {
    font-size: 3.2rem;
  }

  .hero-lede {
    font-size: 1.05rem;
  }

  .section-heading h2,
  .boundary-section h2,
  .final-cta h2 {
    font-size: 2.2rem;
  }

  .button {
    width: 100%;
  }

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

  .trust-strip div {
    width: 100%;
  }

  .site-footer {
    text-align: left;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.001ms !important;
  }

  .flow,
  .visual-path,
  .motion-node,
  .gate-stack .core,
  .brand-keystone path {
    animation: none !important;
  }
}
