:root {
  --navy: #061a3a;
  --navy-deep: #031126;
  --violet: #6548f5;
  --blue: #0a63ff;
  --white: #f7f9fc;
  --mist: #e8eef7;
  --ink: #101828;
  --muted: #9db0cf;
  --line: rgba(143, 183, 255, 0.18);
  --font: "Avenir Next", Avenir, "Helvetica Neue", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--white);
  background: var(--navy-deep);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

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

.site-header {
  position: fixed;
  z-index: 50;
  top: 0;
  left: 0;
  right: 0;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: 86px;
  padding: 0 5vw;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(3, 17, 38, 0.72);
  backdrop-filter: blur(20px);
}

.brand-link img {
  display: block;
  width: 188px;
  height: auto;
}

nav {
  display: flex;
  gap: 32px;
  color: rgba(247, 249, 252, 0.68);
  font-size: 14px;
  font-weight: 600;
}

nav a,
.header-cta {
  transition:
    color 180ms ease,
    border-color 180ms ease;
}

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

.header-cta {
  justify-self: end;
  padding: 11px 17px;
  border: 1px solid rgba(143, 183, 255, 0.38);
  border-radius: 999px;
  color: var(--white);
  font-size: 13px;
  font-weight: 700;
}

.header-cta:hover {
  border-color: var(--blue);
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.94fr) minmax(460px, 1.06fr);
  min-height: 100vh;
  overflow: hidden;
  padding: 170px 5vw 90px;
  background:
    radial-gradient(circle at 75% 44%, rgba(10, 99, 255, 0.12), transparent 31%),
    linear-gradient(120deg, #031126 0%, var(--navy) 54%, #041632 100%);
}

.hero::after {
  position: absolute;
  inset: auto 0 0;
  height: 160px;
  background: linear-gradient(transparent, rgba(3, 17, 38, 0.72));
  content: "";
  pointer-events: none;
}

.hero-copy {
  position: relative;
  z-index: 2;
  align-self: center;
  padding-right: 7vw;
}

.eyebrow,
.section-index {
  margin: 0 0 30px;
  color: #8fb7ff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
}

h1 {
  max-width: 800px;
  margin: 0;
  font-size: clamp(60px, 6.9vw, 112px);
  font-weight: 650;
  letter-spacing: -0.055em;
  line-height: 0.95;
}

.hero-description {
  max-width: 670px;
  margin: 42px 0 0;
  color: rgba(247, 249, 252, 0.7);
  font-size: clamp(17px, 1.35vw, 22px);
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 25px;
  margin-top: 46px;
}

.hero-actions span {
  max-width: 210px;
  color: rgba(183, 201, 232, 0.62);
  font-size: 13px;
  line-height: 1.5;
}

.primary-button {
  padding: 16px 24px;
  border-radius: 4px;
  background: var(--blue);
  box-shadow: 0 16px 45px rgba(10, 99, 255, 0.22);
  font-size: 14px;
  font-weight: 700;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease;
}

.primary-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 55px rgba(10, 99, 255, 0.33);
}

.environment-stage {
  position: relative;
  z-index: 2;
  align-self: center;
  min-height: 660px;
  perspective: 1200px;
}

.stage-grid {
  position: absolute;
  inset: 3% -10% -8% 5%;
  transform: rotateX(58deg) rotateZ(-16deg);
  transform-origin: 50% 65%;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 58px 58px;
  mask-image: radial-gradient(circle, black 24%, transparent 72%);
  opacity: 0.45;
}

.stage-axis {
  position: absolute;
  background: linear-gradient(90deg, transparent, rgba(10, 99, 255, 0.45), transparent);
}

.axis-x {
  top: 53%;
  left: 3%;
  width: 90%;
  height: 1px;
  transform: rotate(-18deg);
}

.axis-y {
  top: 10%;
  right: 36%;
  width: 1px;
  height: 78%;
  background: linear-gradient(transparent, rgba(101, 72, 245, 0.5), transparent);
  transform: rotate(29deg);
}

.stage-step {
  position: absolute;
  width: min(330px, 39vw);
  min-height: 168px;
  padding: 28px 30px;
  border: 1px solid rgba(143, 183, 255, 0.2);
  border-radius: 28px;
  background: linear-gradient(135deg, rgba(10, 99, 255, 0.18), rgba(10, 99, 255, 0.025));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    0 32px 80px rgba(0, 7, 27, 0.34);
  backdrop-filter: blur(18px);
  transform: rotate(-6deg);
}

.stage-step span {
  display: block;
  margin-bottom: 32px;
  color: #8fb7ff;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.stage-step strong,
.stage-step small {
  display: block;
}

.stage-step strong {
  font-size: 22px;
  letter-spacing: -0.02em;
}

.stage-step small {
  margin-top: 8px;
  color: rgba(247, 249, 252, 0.68);
  font-size: 13px;
  line-height: 1.45;
}

.step-one {
  top: 54%;
  left: 4%;
  animation: step-one 7.2s ease-in-out infinite;
}

.step-two {
  top: 31%;
  left: 29%;
  border-color: rgba(101, 72, 245, 0.32);
  background: linear-gradient(135deg, rgba(101, 72, 245, 0.24), rgba(101, 72, 245, 0.025));
  animation: step-two 7.2s ease-in-out infinite;
}

.step-two span {
  color: #b6a8ff;
}

.step-three {
  top: 8%;
  left: 54%;
  animation: step-three 7.2s ease-in-out infinite;
}

.stage-caption {
  position: absolute;
  right: 7%;
  bottom: 4%;
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(183, 201, 232, 0.46);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
}

.stage-caption i {
  width: 30px;
  height: 1px;
  background: linear-gradient(90deg, var(--violet), var(--blue));
}

@keyframes step-one {
  0%,
  12%,
  100% {
    opacity: 0.55;
    transform: translateY(10px) rotate(-6deg);
  }
  18%,
  40% {
    opacity: 1;
    transform: translateY(0) rotate(-6deg);
  }
}

@keyframes step-two {
  0%,
  30%,
  100% {
    opacity: 0.48;
    transform: translateY(10px) rotate(-6deg);
  }
  40%,
  64% {
    opacity: 1;
    transform: translateY(0) rotate(-6deg);
  }
}

@keyframes step-three {
  0%,
  54%,
  100% {
    opacity: 0.46;
    transform: translateY(10px) rotate(-6deg);
  }
  66%,
  90% {
    opacity: 1;
    transform: translateY(0) rotate(-6deg);
  }
}

.thesis,
.system,
.domains,
.contact {
  padding: 120px 6vw;
}

.thesis {
  color: var(--ink);
  background: var(--white);
}

.thesis .section-index,
.domains .section-index {
  color: var(--blue);
}

.thesis-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.65fr);
  gap: 10vw;
}

.thesis h2,
.section-heading h2,
.domains h2,
.contact h2 {
  margin: 0;
  font-size: clamp(40px, 4.7vw, 76px);
  font-weight: 620;
  letter-spacing: -0.045em;
  line-height: 1.02;
}

.thesis-body {
  align-self: end;
}

.thesis-body p,
.domains-head > p {
  color: #475467;
  font-size: 18px;
  line-height: 1.68;
}

.system {
  background:
    linear-gradient(135deg, rgba(10, 99, 255, 0.06), transparent 48%),
    var(--navy);
}

.section-heading,
.domains-head {
  display: grid;
  grid-template-columns: 1.35fr 0.65fr;
  gap: 10vw;
}

.section-heading > p {
  align-self: end;
  color: rgba(247, 249, 252, 0.7);
  font-size: 18px;
  line-height: 1.65;
}

.loop-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: 74px;
  border-top: 1px solid rgba(143, 183, 255, 0.18);
  border-left: 1px solid rgba(143, 183, 255, 0.18);
}

.loop-grid article {
  min-height: 320px;
  padding: 34px;
  border-right: 1px solid rgba(143, 183, 255, 0.18);
  border-bottom: 1px solid rgba(143, 183, 255, 0.18);
  background: rgba(255, 255, 255, 0.012);
}

.loop-grid article:hover {
  background: rgba(10, 99, 255, 0.055);
}

.loop-grid .violet-card:hover {
  background: rgba(101, 72, 245, 0.08);
}

.loop-grid .blue-card {
  background: rgba(10, 99, 255, 0.08);
}

.card-number {
  color: #8fb7ff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.loop-grid h3 {
  margin: 108px 0 16px;
  font-size: 25px;
}

.loop-grid p {
  margin: 0;
  color: rgba(247, 249, 252, 0.7);
  font-size: 16px;
  line-height: 1.65;
}

.domains {
  color: var(--ink);
  background:
    radial-gradient(circle at 90% 10%, rgba(101, 72, 245, 0.09), transparent 28%),
    #ffffff;
}

.domains-head > p {
  align-self: end;
}

.domain-list {
  margin-top: 80px;
  border-top: 1px solid #d9e2ef;
}

.domain-list article {
  display: grid;
  grid-template-columns: 0.35fr 1fr 0.85fr;
  gap: 5vw;
  align-items: center;
  min-height: 170px;
  border-bottom: 1px solid #d9e2ef;
}

.domain-list span {
  color: var(--blue);
  font-size: 12px;
  font-weight: 750;
  letter-spacing: 0.14em;
}

.domain-list h3 {
  margin: 0;
  font-size: clamp(22px, 2.2vw, 34px);
  letter-spacing: -0.035em;
}

.domain-list p {
  color: #667085;
  font-size: 16px;
  line-height: 1.65;
}

.contact {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 10vw;
  align-items: end;
  min-height: 580px;
  background:
    radial-gradient(circle at 78% 45%, rgba(101, 72, 245, 0.13), transparent 29%),
    var(--navy-deep);
}

.contact-link {
  display: block;
  padding: 30px 0;
  border-top: 1px solid rgba(143, 183, 255, 0.24);
  border-bottom: 1px solid rgba(143, 183, 255, 0.24);
}

.contact-link span,
.contact-link strong {
  display: block;
}

.contact-link span {
  margin-bottom: 16px;
  color: var(--muted);
  font-size: 13px;
  letter-spacing: 0.12em;
}

.contact-link strong {
  font-size: 24px;
}

footer {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 24px;
  align-items: center;
  padding: 38px 6vw;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(247, 249, 252, 0.45);
  background: #020d1d;
  font-size: 13px;
}

footer img {
  width: 46px;
}

@media (max-width: 980px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  nav {
    display: none;
  }

  .hero {
    grid-template-columns: 1fr;
    padding-top: 150px;
  }

  .hero-copy {
    padding-right: 0;
  }

  .environment-stage {
    min-height: 620px;
    margin-top: 60px;
  }

  .thesis-grid,
  .section-heading,
  .domains-head,
  .contact {
    grid-template-columns: 1fr;
  }

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

  .domain-list article {
    grid-template-columns: 0.4fr 1.6fr;
    gap: 22px;
    padding: 32px 0;
  }

  .domain-list p {
    grid-column: 2;
    margin: 0;
  }
}

@media (max-width: 620px) {
  .site-header {
    height: 74px;
    padding: 0 22px;
  }

  .brand-link img {
    width: 146px;
  }

  .header-cta {
    padding: 9px 12px;
    font-size: 12px;
  }

  .hero {
    padding: 130px 22px 70px;
  }

  h1 {
    font-size: 54px;
  }

  .hero-actions {
    align-items: flex-start;
    flex-direction: column;
  }

  .environment-stage {
    min-height: 470px;
    margin-top: 50px;
  }

  .stage-step {
    width: 215px;
    min-height: 126px;
    padding: 20px;
    border-radius: 20px;
  }

  .stage-step span {
    margin-bottom: 20px;
  }

  .stage-step strong {
    font-size: 18px;
  }

  .stage-step small {
    font-size: 12px;
  }

  .step-one {
    top: 58%;
    left: -2%;
  }

  .step-two {
    top: 34%;
    left: 18%;
  }

  .step-three {
    top: 10%;
    left: 38%;
  }

  .stage-caption {
    display: none;
  }

  .thesis,
  .system,
  .domains,
  .contact {
    padding: 88px 22px;
  }

  .thesis h2,
  .section-heading h2,
  .domains h2,
  .contact h2 {
    font-size: 42px;
  }

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

  .loop-grid article {
    min-height: 250px;
  }

  .thesis-body p,
  .section-heading > p,
  .domains-head > p,
  .loop-grid p,
  .domain-list p {
    font-size: 17px;
  }

  .loop-grid h3 {
    margin-top: 65px;
  }

  .domain-list article {
    grid-template-columns: 1fr;
  }

  .domain-list p {
    grid-column: auto;
  }

  footer {
    grid-template-columns: auto 1fr;
  }

  footer p:last-child {
    display: none;
  }
}

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

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