:root {
  --alia-deep: #003b51;
  --alia-cyan: #009ebc;
  --ink: #061216;
  --paper: #f6fbfc;
  --white: #ffffff;
  --mist: #dff0f3;
  --signal: #c9f24d;
  --coral: #ff7a5f;
  --line: rgba(0, 59, 81, 0.14);
  --container: min(1180px, calc(100vw - 40px));
  --header: 82px;
  --radius: 8px;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  background: var(--paper);
  font-size: 16px;
  line-height: 1.45;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body.nav-open {
  overflow: hidden;
}

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

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

button {
  padding: 0;
  font: inherit;
  color: inherit;
  border: 0;
  cursor: pointer;
}

::selection {
  color: var(--white);
  background: var(--alia-cyan);
}

.sr-only,
.skip-link {
  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 {
  position: fixed;
  top: 16px;
  left: 16px;
  z-index: 200;
  width: auto;
  height: auto;
  padding: 10px 14px;
  clip: auto;
  color: var(--white);
  background: var(--alia-deep);
  border-radius: var(--radius);
}

.container {
  width: var(--container);
  margin-inline: auto;
}

.loader {
  position: fixed;
  inset: 0;
  z-index: 180;
  display: grid;
  place-items: center;
  color: var(--white);
  background: var(--ink);
  transition: transform 0.9s cubic-bezier(0.77, 0, 0.18, 1), opacity 0.4s ease;
}

.loader::before,
.loader::after {
  position: absolute;
  inset: 10%;
  content: "";
  border: 1px solid rgba(255, 255, 255, 0.12);
  animation: loaderOrbit 1.6s linear infinite;
}

.loader::after {
  inset: 24%;
  border-color: rgba(0, 158, 188, 0.34);
  animation-direction: reverse;
  animation-duration: 2.2s;
}

.loader.is-done {
  opacity: 0;
  pointer-events: none;
  transform: translateY(-100%);
}

.loader-mark {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 26px;
  justify-items: center;
}

.loader-mark img {
  width: min(210px, 50vw);
  height: auto;
  filter: brightness(0) invert(1);
}

.loader-line {
  position: absolute;
  bottom: 42%;
  left: 50%;
  width: min(320px, 70vw);
  height: 2px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.16);
  transform: translateX(-50%);
}

.loader-line span {
  display: block;
  width: 0;
  height: 100%;
  background: var(--signal);
}

.loader p {
  position: absolute;
  bottom: calc(42% - 44px);
  left: 50%;
  margin: 0;
  color: rgba(255, 255, 255, 0.64);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transform: translateX(-50%);
}

.page-progress {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 120;
  width: 100%;
  height: 3px;
}

.page-progress span {
  display: block;
  width: 0;
  height: 100%;
  background: var(--signal);
}

.screen-wipe {
  position: fixed;
  inset: 0;
  z-index: 95;
  pointer-events: none;
  background: var(--alia-cyan);
  transform: translateY(100%);
}

.screen-wipe.is-active {
  animation: wipe 0.7s cubic-bezier(0.77, 0, 0.18, 1);
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 110;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header);
  padding: 0 clamp(18px, 4vw, 56px);
  color: var(--white);
  mix-blend-mode: difference;
}

.brand {
  width: 144px;
  min-width: 118px;
}

.brand img {
  width: 100%;
  height: auto;
  filter: brightness(0) invert(1);
}

.site-nav {
  display: flex;
  gap: clamp(18px, 3vw, 42px);
  align-items: center;
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.site-nav a {
  opacity: 0.76;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  opacity: 1;
  transform: translateY(-2px);
}

.nav-toggle {
  display: none;
  width: 46px;
  height: 46px;
  background: transparent;
}

.nav-toggle span:not(.sr-only) {
  display: block;
  width: 26px;
  height: 2px;
  margin: 7px auto;
  background: currentColor;
  transition: transform 0.25s ease;
}

.nav-open .nav-toggle span:first-child {
  transform: translateY(4.5px) rotate(45deg);
}

.nav-open .nav-toggle span:nth-child(2) {
  transform: translateY(-4.5px) rotate(-45deg);
}

.panel-dark,
.panel-ink,
.final-cta {
  color: var(--white);
  background: var(--ink);
}

.panel-light {
  color: var(--alia-deep);
  background: var(--paper);
}

.panel-cyan {
  color: var(--white);
  background: var(--alia-cyan);
}

.hero {
  position: relative;
  min-height: 100svh;
  padding: calc(var(--header) + 44px) clamp(18px, 4vw, 56px) 42px;
  overflow: hidden;
  isolation: isolate;
}

.hero::before {
  position: absolute;
  inset: 0;
  z-index: -3;
  content: "";
  background:
    radial-gradient(circle at 72% 32%, rgba(0, 158, 188, 0.3), transparent 28%),
    radial-gradient(circle at 14% 80%, rgba(201, 242, 77, 0.16), transparent 26%),
    linear-gradient(135deg, #061216, #003b51 62%, #041015);
}

.hero::after,
.method::after,
.final-cta::after {
  position: absolute;
  inset: 0;
  z-index: -1;
  content: "";
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size: 12vw 12vw;
  mask-image: linear-gradient(90deg, black, transparent 85%);
}

.system-canvas,
.cta-canvas {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
}

.hero-content {
  position: relative;
  z-index: 2;
  display: grid;
  align-content: center;
  min-height: calc(100svh - var(--header) - 86px);
  max-width: 980px;
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--signal);
  font-size: 0.74rem;
  font-weight: 950;
  text-transform: uppercase;
}

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

h1,
h2 {
  margin-bottom: 24px;
  font-weight: 780;
  line-height: 0.92;
}

h1 {
  max-width: 8ch;
  font-size: clamp(4.7rem, 14vw, 12rem);
}

h2 {
  max-width: 10ch;
  font-size: clamp(3.2rem, 9vw, 8.8rem);
}

.hero-copy,
.short-copy {
  max-width: 560px;
  color: rgba(255, 255, 255, 0.72);
  font-size: clamp(1.04rem, 1.7vw, 1.36rem);
}

.panel-light .short-copy {
  color: rgba(0, 59, 81, 0.72);
}

.hero-actions,
.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 0 24px;
  overflow: hidden;
  border-radius: var(--radius);
  font-size: 0.76rem;
  font-weight: 950;
  text-transform: uppercase;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.button::after {
  width: 18px;
  height: 18px;
  margin-left: 14px;
  content: "";
  background: currentColor;
  clip-path: polygon(0 8px, 11px 8px, 7px 4px, 9px 2px, 17px 9px, 9px 16px, 7px 14px, 11px 10px, 0 10px);
}

.button:hover,
.button:focus-visible {
  transform: translateY(-3px);
}

.button-primary,
.button-light {
  color: var(--alia-deep);
  background: var(--white);
}

.button-ghost,
.button-outline-light {
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.28);
}

.hero-code {
  position: absolute;
  right: clamp(18px, 5vw, 70px);
  bottom: clamp(26px, 6vw, 72px);
  z-index: 2;
  display: grid;
  gap: 8px;
  min-width: min(300px, calc(100vw - 36px));
  padding: 20px;
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius);
  background: rgba(4, 16, 22, 0.46);
  backdrop-filter: blur(18px);
}

.hero-code span {
  color: rgba(255, 255, 255, 0.54);
  font-size: 0.68rem;
  font-weight: 950;
  text-transform: uppercase;
}

.hero-code strong {
  color: var(--signal);
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1;
}

.hero-orbit {
  position: absolute;
  right: 4vw;
  top: 20vh;
  width: min(44vw, 560px);
  aspect-ratio: 1;
  opacity: 0.84;
}

.hero-orbit span {
  position: absolute;
  inset: 0;
  border: 1px solid rgba(255, 255, 255, 0.16);
  transform: rotate(var(--r, 0deg)) scale(var(--s, 1));
  animation: orbit 12s linear infinite;
}

.hero-orbit span:nth-child(2) {
  --r: 34deg;
  --s: 0.72;
  animation-duration: 16s;
  animation-direction: reverse;
  border-color: rgba(0, 158, 188, 0.34);
}

.hero-orbit span:nth-child(3) {
  --r: -24deg;
  --s: 0.48;
  animation-duration: 9s;
  border-color: rgba(201, 242, 77, 0.28);
}

.story {
  position: relative;
  background: var(--paper);
}

.story-visual {
  position: sticky;
  top: 0;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 50vw;
  height: 100svh;
  margin-left: auto;
  pointer-events: none;
}

.morph-shell {
  position: relative;
  width: min(42vw, 540px);
  min-width: 320px;
  aspect-ratio: 1;
}

.morph-svg {
  width: 100%;
  height: 100%;
  overflow: visible;
  filter: drop-shadow(0 28px 90px rgba(0, 59, 81, 0.24));
}

.morph-svg polygon {
  fill: url("#morphGradient");
  opacity: 0.92;
  transition: opacity 0.35s ease;
}

.morph-svg polyline {
  fill: none;
  stroke: rgba(255, 255, 255, 0.76);
  stroke-width: 2;
  stroke-dasharray: 12 14;
  animation: dash 8s linear infinite;
}

.morph-core {
  position: absolute;
  inset: 50% auto auto 50%;
  display: grid;
  place-items: center;
  min-width: 190px;
  min-height: 190px;
  color: var(--white);
  background: rgba(0, 59, 81, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  backdrop-filter: blur(18px);
}

.morph-core span {
  color: var(--signal);
  font-size: 0.8rem;
  font-weight: 950;
}

.morph-core strong {
  font-size: 1.7rem;
  line-height: 1;
}

.story-panel {
  position: relative;
  display: grid;
  align-content: center;
  min-height: 100svh;
  padding: calc(var(--header) + 60px) 50vw 60px clamp(18px, 7vw, 96px);
  overflow: hidden;
}

.story-panel::before {
  position: absolute;
  inset: 0;
  content: "";
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px),
    linear-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size: 96px 96px;
  opacity: 0.2;
}

.story-panel > * {
  position: relative;
  z-index: 1;
}

.panel-light .eyebrow {
  color: var(--alia-cyan);
}

.panel-cyan .short-copy,
.panel-ink .short-copy {
  color: rgba(255, 255, 255, 0.76);
}

.sectors {
  padding: clamp(90px, 12vw, 150px) 0;
  background: var(--white);
}

.sectors-layout {
  display: grid;
  grid-template-columns: 0.8fr 1fr;
  gap: clamp(36px, 8vw, 110px);
  align-items: start;
}

.sectors h2,
.method h2,
.final-cta h2 {
  color: var(--alia-deep);
}

.sector-control {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.sector-button {
  position: relative;
  min-height: 132px;
  padding: 22px;
  overflow: hidden;
  color: var(--alia-deep);
  text-align: left;
  background: var(--white);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  font-size: clamp(1.35rem, 3vw, 2.7rem);
  font-weight: 760;
  line-height: 0.95;
  transition: color 0.25s ease, background 0.25s ease;
}

.sector-button::before {
  position: absolute;
  inset: auto 18px 16px auto;
  width: 46px;
  height: 46px;
  content: "";
  background: var(--alia-cyan);
  clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
  transform: scale(0) rotate(45deg);
  transition: transform 0.3s ease;
}

.sector-button:hover,
.sector-button:focus-visible,
.sector-button.is-active {
  color: var(--white);
  background: var(--alia-deep);
}

.sector-button.is-active::before {
  transform: scale(1) rotate(0deg);
}

.method {
  position: relative;
  padding: clamp(110px, 15vw, 190px) 0;
  overflow: hidden;
  color: var(--white);
  background: var(--ink);
  isolation: isolate;
}

.method h2 {
  max-width: 10ch;
  color: var(--white);
}

.method-track {
  position: absolute;
  inset: 10% auto auto 0;
  z-index: -1;
  display: flex;
  gap: 40px;
  color: rgba(255, 255, 255, 0.07);
  font-size: clamp(5rem, 17vw, 15rem);
  font-weight: 900;
  white-space: nowrap;
  animation: marquee 18s linear infinite;
}

.method-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  padding: 0;
  margin: clamp(44px, 7vw, 90px) 0 0;
  background: rgba(255, 255, 255, 0.18);
  list-style: none;
}

.method-list li {
  min-height: 210px;
  padding: 24px;
  background: rgba(255, 255, 255, 0.06);
  font-size: clamp(1.3rem, 2.3vw, 2.2rem);
  font-weight: 760;
}

.method-list span {
  display: block;
  margin-bottom: 54px;
  color: var(--signal);
  font-size: 0.78rem;
  font-weight: 950;
}

.proof {
  padding: clamp(60px, 8vw, 100px) 0;
}

.proof-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: rgba(255, 255, 255, 0.16);
}

.stat {
  min-height: 230px;
  padding: 28px;
  background: rgba(255, 255, 255, 0.05);
}

.stat strong {
  display: block;
  margin-bottom: 16px;
  color: var(--signal);
  font-size: clamp(3.4rem, 9vw, 8rem);
  line-height: 0.9;
}

.stat span {
  color: rgba(255, 255, 255, 0.72);
  font-weight: 800;
  text-transform: uppercase;
}

.final-cta {
  position: relative;
  display: grid;
  min-height: 86svh;
  overflow: hidden;
  isolation: isolate;
}

.cta-content {
  position: relative;
  z-index: 1;
  align-self: center;
  padding: clamp(90px, 12vw, 160px) 0;
}

.final-cta h2 {
  max-width: 11ch;
  color: var(--white);
}

.site-footer {
  padding: 28px 0;
  background: var(--white);
}

.footer-layout {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  color: rgba(0, 59, 81, 0.7);
  font-size: 0.9rem;
}

.footer-layout img {
  width: 112px;
  height: auto;
}

.footer-layout p {
  margin: 0;
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.75s ease, transform 0.75s cubic-bezier(0.2, 0.8, 0.2, 1);
}

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

@keyframes loaderOrbit {
  to {
    transform: rotate(360deg);
  }
}

@keyframes wipe {
  0% {
    transform: translateY(100%);
  }

  45%,
  55% {
    transform: translateY(0);
  }

  100% {
    transform: translateY(-100%);
  }
}

@keyframes orbit {
  to {
    transform: rotate(calc(var(--r, 0deg) + 360deg)) scale(var(--s, 1));
  }
}

@keyframes dash {
  to {
    stroke-dashoffset: -260;
  }
}

@keyframes marquee {
  to {
    transform: translateX(-50%);
  }
}

@media (max-width: 980px) {
  .hero-code {
    position: relative;
    right: auto;
    bottom: auto;
    width: min(340px, 100%);
  }

  .story-visual {
    width: 100%;
    height: 54svh;
    background: rgba(246, 251, 252, 0.76);
    backdrop-filter: blur(10px);
  }

  .morph-shell {
    width: min(68vw, 460px);
    min-width: 260px;
  }

  .story-panel {
    min-height: 78svh;
    padding: 64px clamp(18px, 7vw, 70px);
  }

  .sectors-layout,
  .method-list,
  .proof-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  :root {
    --container: min(100vw - 28px, 720px);
    --header: 72px;
  }

  .site-header {
    padding-inline: 14px;
  }

  .brand {
    width: 120px;
    z-index: 112;
  }

  .nav-toggle {
    display: block;
    z-index: 112;
  }

  .site-nav {
    position: fixed;
    inset: 0;
    z-index: 111;
    display: grid;
    align-content: center;
    justify-items: start;
    gap: 24px;
    padding: 96px 24px 32px;
    color: var(--white);
    background: rgba(6, 18, 22, 0.96);
    transform: translateY(-100%);
    transition: transform 0.35s cubic-bezier(0.77, 0, 0.18, 1);
  }

  .site-nav a {
    font-size: clamp(2.3rem, 13vw, 4rem);
    line-height: 0.95;
  }

  .nav-open .site-nav {
    transform: translateY(0);
  }

  .hero {
    padding-inline: 14px;
  }

  h1 {
    font-size: clamp(4rem, 23vw, 6.8rem);
  }

  h2 {
    font-size: clamp(3.2rem, 16vw, 5rem);
  }

  .hero-orbit {
    right: -20vw;
    top: 16vh;
    width: 90vw;
  }

  .button {
    width: 100%;
  }

  .sector-control {
    grid-template-columns: 1fr;
  }

  .sector-button {
    min-height: 96px;
  }

  .method-list li,
  .stat {
    min-height: 150px;
  }

  .footer-layout {
    align-items: flex-start;
    flex-direction: column;
  }
}

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

  .loader {
    display: none;
  }

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