:root {
  --ink: #06131d;
  --ink-deep: #020a12;
  --ink-soft: #0a2130;
  --text: #f6f8fa;
  --muted: #a8b8c4;
  --line: rgba(132, 190, 227, 0.26);
  --signal: #58bfff;
  --light: #f2f0ea;
  --light-text: #10212f;
  --header-height: 82px;
  --page-pad: clamp(28px, 5.5vw, 94px);
  --max-width: 1600px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Manrope", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--ink-deep);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

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

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  height: var(--header-height);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 28px;
  padding: 0 var(--page-pad);
  background: linear-gradient(to bottom, rgba(2, 10, 17, 0.46), rgba(2, 10, 17, 0));
}

.brand {
  justify-self: start;
  text-decoration: none;
  font-size: 1.46rem;
  font-weight: 500;
  letter-spacing: -0.04em;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(24px, 2.8vw, 48px);
}

.nav-link,
.languages a {
  border: 0;
  background: none;
  color: rgba(244, 247, 249, 0.86);
  font: inherit;
  font-size: 0.9rem;
  text-decoration: none;
  cursor: pointer;
  transition: color 180ms ease;
}

.nav-link:hover,
.nav-link:focus-visible,
.languages a:hover,
.languages a:focus-visible {
  color: #fff;
}

.languages {
  justify-self: end;
  display: flex;
  gap: 17px;
}

.language {
  position: relative;
}

.language.is-active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -9px;
  height: 1px;
  background: var(--signal);
}

.menu-toggle {
  display: none;
}

.hero {
  position: relative;
  min-height: 100svh;
  overflow: hidden;
  display: grid;
  align-items: center;
  padding: calc(var(--header-height) + 42px) var(--page-pad) 86px;
  isolation: isolate;
  background: var(--ink-deep);
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  overflow: hidden;
}

.hero__sky {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 78% 27%, rgba(48, 146, 207, 0.18), transparent 29%),
    radial-gradient(ellipse at 62% 61%, rgba(25, 96, 154, 0.09), transparent 35%),
    radial-gradient(ellipse at 24% 18%, rgba(22, 63, 96, 0.09), transparent 32%),
    linear-gradient(138deg, #01070c 0%, #03111c 38%, #061d31 72%, #03111c 100%);
}

.hero__stars {
  position: absolute;
  inset: 0;
  opacity: 0.34;
  background-image:
    radial-gradient(circle, rgba(208, 231, 244, 0.72) 0 0.7px, transparent 0.85px),
    radial-gradient(circle, rgba(127, 176, 207, 0.52) 0 0.65px, transparent 0.8px),
    radial-gradient(circle, rgba(220, 238, 248, 0.5) 0 0.55px, transparent 0.72px);
  background-size: 193px 193px, 271px 271px, 337px 337px;
  background-position: 31px 47px, 117px 21px, 221px 133px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,0.92), rgba(0,0,0,0.48) 62%, transparent 92%);
}

.hero__aurora-curtain {
  position: absolute;
  inset: -4% -10% 23%;
  overflow: hidden;
  opacity: 0.92;
  filter: blur(42px);
  mix-blend-mode: screen;
  mask-image: linear-gradient(
    to bottom,
    transparent 0%,
    rgba(0, 0, 0, 0.7) 10%,
    #000 24%,
    #000 74%,
    rgba(0, 0, 0, 0.56) 88%,
    transparent 100%
  );
  pointer-events: none;
}

.hero__aurora-band {
  position: absolute;
  left: -46%;
  width: 192%;
  border-radius: 50%;
  transform-origin: center center;
  will-change: transform, opacity;
}

.hero__aurora-band--one {
  top: -14vh;
  height: 62vh;
  background:
    conic-gradient(
      from 224deg at 42% 60%,
      transparent 0 38%,
      rgba(39, 134, 209, 0.06) 44%,
      rgba(71, 220, 255, 0.36) 51%,
      rgba(50, 178, 244, 0.24) 56%,
      rgba(87, 137, 244, 0.10) 61%,
      transparent 70%
    );
  animation: aurora-band-one 17s ease-in-out infinite alternate;
}

.hero__aurora-band--two {
  top: -1vh;
  height: 66vh;
  background:
    conic-gradient(
      from 292deg at 61% 43%,
      transparent 0 40%,
      rgba(35, 128, 205, 0.04) 46%,
      rgba(93, 214, 255, 0.28) 52%,
      rgba(74, 171, 235, 0.18) 57%,
      rgba(108, 117, 232, 0.08) 63%,
      transparent 72%
    );
  animation: aurora-band-two 23s ease-in-out infinite alternate;
}

.hero__aurora-band--three {
  top: 8vh;
  height: 54vh;
  background:
    conic-gradient(
      from 170deg at 35% 72%,
      transparent 0 42%,
      rgba(35, 150, 221, 0.03) 48%,
      rgba(103, 226, 238, 0.20) 54%,
      rgba(64, 164, 232, 0.12) 59%,
      rgba(93, 126, 225, 0.06) 64%,
      transparent 71%
    );
  animation: aurora-band-three 20s ease-in-out infinite alternate;
}

.hero__mist {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 70% 48%, rgba(127, 211, 255, 0.07), transparent 31%),
    radial-gradient(ellipse at 56% 76%, rgba(42, 119, 181, 0.05), transparent 29%);
  filter: blur(18px);
}

.hero__planet {
  position: absolute;
  left: -15vw;
  width: 132vw;
  height: 55vh;
  bottom: -36vh;
  overflow: hidden;
  border-radius: 50% 50% 0 0 / 100% 100% 0 0;
  background:
    radial-gradient(
      ellipse at 52% -12%,
      rgba(23, 83, 133, 0.34) 0%,
      rgba(7, 31, 50, 0.97) 43%,
      #020a12 74%
    );
  border-top: 1px solid rgba(94, 192, 255, 0.45);
  box-shadow:
    0 -6px 25px rgba(78, 179, 244, 0.2),
    0 -40px 120px rgba(27, 105, 169, 0.11);
  transform: rotate(-4deg);
  transform-origin: center top;
}

.hero__planet::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 58% 4%, rgba(76, 150, 197, 0.08), transparent 32%),
    linear-gradient(to bottom, rgba(22, 72, 111, 0.11), transparent 43%);
  opacity: 0.7;
}

.hero__polar {
  position: absolute;
  left: 8%;
  top: 8%;
  width: 82%;
  height: 42%;
  opacity: 0.13;
  fill: none;
  stroke: rgba(153, 205, 236, 0.72);
  stroke-width: 1.15;
  vector-effect: non-scaling-stroke;
  filter: drop-shadow(0 0 4px rgba(80, 170, 225, 0.12));
}

.hero__polar path:nth-child(2) {
  opacity: 0.72;
}

.hero__polar path:nth-child(3) {
  opacity: 0.46;
}

.hero__polar path:nth-child(4) {
  opacity: 0.55;
}

.hero__content {
  width: min(1450px, 92vw);
  transform: translateY(-1.5vh);
}

.hero__title {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.02em;
  font-size: clamp(4.1rem, 5.5vw, 6.45rem);
  line-height: 0.92;
  letter-spacing: -0.055em;
  text-transform: uppercase;
  font-weight: 800;
}

.hero__line {
  display: block;
  width: max-content;
  max-width: 100%;
  overflow: hidden;
  white-space: nowrap;
}

.hero__line-text {
  display: block;
  clip-path: inset(0 100% 0 0);
  animation: line-reveal 1.15s var(--ease) forwards;
}

.hero__line:nth-child(1) .hero__line-text {
  animation-delay: 0.28s;
}

.hero__line:nth-child(2) .hero__line-text {
  animation-delay: 0.82s;
}

.cursor {
  display: inline-block;
  width: 0.035em;
  height: 0.83em;
  margin-left: 0.05em;
  background: var(--signal);
  transform: translateY(0.06em);
  opacity: 0;
  animation:
    cursor-show 0.01s linear 1.82s forwards,
    cursor-blink 0.9s step-end 1.82s infinite;
}

.hero__tagline,
.eyebrow {
  margin: 48px 0 0;
  color: rgba(192, 211, 224, 0.7);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.34em;
  text-transform: uppercase;
}

.eyebrow {
  margin-top: 0;
  margin-bottom: 30px;
}

.hero__actions {
  margin-top: 47px;
}

.button {
  font: inherit;
  cursor: pointer;
}

.button--outline {
  display: inline-flex;
  align-items: center;
  gap: 34px;
  min-height: 60px;
  padding: 0 34px;
  border-radius: 999px;
  border: 1px solid rgba(126, 194, 236, 0.66);
  background: rgba(3, 15, 25, 0.18);
  color: #fff;
  font-size: 1rem;
  transition:
    background 180ms ease,
    border-color 180ms ease,
    transform 180ms var(--ease);
}

.button--outline:hover {
  transform: translateY(-2px);
  border-color: rgba(126, 206, 255, 0.96);
  background: rgba(43, 137, 200, 0.13);
}

.hero__signal {
  position: absolute;
  right: var(--page-pad);
  bottom: 16.5%;
  display: grid;
  gap: 11px;
  color: rgba(169, 194, 209, 0.55);
  font-size: 0.6rem;
  letter-spacing: 0.33em;
}

.hero__footer {
  position: absolute;
  bottom: 39px;
  display: flex;
  align-items: center;
  color: rgba(179, 200, 213, 0.62);
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.33em;
}

.hero__footer--left {
  left: var(--page-pad);
  gap: 18px;
}

.hero__footer--right {
  right: var(--page-pad);
  gap: 45px;
}

.mini-line {
  width: 54px;
  height: 1px;
  background: rgba(190, 211, 223, 0.6);
}

.pager-lines {
  display: flex;
  gap: 15px;
}

.pager-lines i {
  display: block;
  width: 39px;
  height: 1px;
  background: rgba(169, 194, 209, 0.32);
}

.pager-lines i.active {
  background: #fff;
}

.mega-menu {
  position: fixed;
  z-index: 40;
  top: var(--header-height);
  left: 0;
  right: 0;
  padding: 20px var(--page-pad) 40px;
  background: rgba(5, 20, 31, 0.98);
  border-top: 1px solid rgba(255,255,255,0.05);
  border-bottom: 1px solid rgba(90, 174, 226, 0.16);
  box-shadow: 0 28px 70px rgba(0,0,0,0.34);
}

.mega-menu__inner {
  width: min(var(--max-width), 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.45fr 0.8fr;
  gap: clamp(48px, 7vw, 120px);
}

.mega-link {
  display: grid;
  grid-template-columns: minmax(220px, 0.8fr) 1fr;
  gap: 28px;
  padding: 15px 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  color: #fff;
  text-decoration: none;
}

.mega-link span {
  font-weight: 700;
}

.mega-link small,
.mega-problems a {
  color: var(--muted);
  font-size: 0.84rem;
}

.mega-link--ai {
  margin-top: 14px;
}

.mega-problems {
  padding-left: 32px;
  border-left: 1px solid rgba(255,255,255,0.09);
}

.mega-problems a {
  display: block;
  padding: 9px 0;
  text-decoration: none;
}

.mega-problems a:hover {
  color: #fff;
}

.placeholder-section {
  min-height: 88svh;
  padding: 120px var(--page-pad);
  display: grid;
  align-content: center;
  background: var(--ink-soft);
}

.placeholder-section h2 {
  max-width: 930px;
  margin: 0;
  font-size: clamp(2.7rem, 5.2vw, 6rem);
  line-height: 1.02;
  letter-spacing: -0.045em;
}

.placeholder-section p:not(.eyebrow) {
  max-width: 700px;
  color: var(--muted);
  line-height: 1.7;
  font-size: 1.08rem;
}

.placeholder-section--light {
  background: var(--light);
  color: var(--light-text);
}

.placeholder-section--light p:not(.eyebrow) {
  color: #65717b;
}

@keyframes line-reveal {
  to {
    clip-path: inset(0 0 0 0);
  }
}

@keyframes cursor-show {
  to {
    opacity: 1;
  }
}

@keyframes cursor-blink {
  0%, 47% {
    opacity: 1;
  }
  48%, 100% {
    opacity: 0;
  }
}

@keyframes aurora-band-one {
  from {
    transform: translate3d(-2%, -1%, 0) rotate(-7deg) scaleX(0.98);
    opacity: 0.70;
  }
  to {
    transform: translate3d(3%, 5%, 0) rotate(1deg) scaleX(1.05);
    opacity: 0.98;
  }
}

@keyframes aurora-band-two {
  from {
    transform: translate3d(2%, 0, 0) rotate(5deg) scaleX(1.02);
    opacity: 0.56;
  }
  to {
    transform: translate3d(-3%, 4%, 0) rotate(-3deg) scaleX(0.96);
    opacity: 0.88;
  }
}

@keyframes aurora-band-three {
  from {
    transform: translate3d(0, -2%, 0) rotate(-2deg);
    opacity: 0.48;
  }
  to {
    transform: translate3d(4%, 3%, 0) rotate(4deg);
    opacity: 0.74;
  }
}

@media (max-width: 1180px) {
  .hero__title {
    font-size: clamp(3.55rem, 5.25vw, 5.15rem);
  }

  .hero__content {
    width: 94vw;
  }

  .hero__signal {
    display: none;
  }
}

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

  .site-nav {
    display: none;
  }

  .menu-toggle {
    display: grid;
    width: 42px;
    height: 42px;
    align-content: center;
    gap: 6px;
    padding: 10px;
    border: 0;
    background: transparent;
  }

  .menu-toggle span {
    display: block;
    width: 100%;
    height: 1px;
    background: #fff;
  }

  .hero__title {
    font-size: clamp(3rem, 7.7vw, 4.8rem);
  }

  .hero__line {
    white-space: normal;
  }

  .hero__footer--right {
    display: none;
  }

  .hero__planet {
    left: -35vw;
    width: 170vw;
  }

  .mega-menu__inner {
    grid-template-columns: 1fr;
  }

  .mega-problems {
    padding-left: 0;
    border-left: 0;
  }
}

@media (max-width: 640px) {
  :root {
    --header-height: 68px;
    --page-pad: 22px;
  }

  .brand {
    font-size: 1rem;
  }

  .languages {
    gap: 10px;
  }

  .language {
    font-size: 0.72rem;
  }

  .hero {
    min-height: 100svh;
    padding-top: calc(var(--header-height) + 68px);
    padding-bottom: 70px;
  }

  .hero__content {
    width: 100%;
    transform: none;
  }

  .hero__title {
    font-size: clamp(2.65rem, 12vw, 4rem);
    line-height: 0.96;
  }

  .hero__line {
    width: auto;
    white-space: normal;
  }

  .hero__tagline {
    margin-top: 30px;
    font-size: 0.63rem;
    line-height: 1.7;
  }

  .button--outline {
    min-height: 54px;
    padding: 0 24px;
  }

  .hero__footer {
    bottom: 24px;
  }

  .hero__footer--left {
    font-size: 0.5rem;
    letter-spacing: 0.24em;
  }

  .hero__planet {
    height: 38vh;
    bottom: -25vh;
  }

  .hero__aurora-curtain {
    inset: 2% -38% 28%;
    filter: blur(34px);
    opacity: 0.78;
  }

  .hero__aurora-band {
    left: -72%;
    width: 238%;
  }

  .hero__aurora-band--one {
    top: -4vh;
    height: 54vh;
  }

  .hero__aurora-band--two {
    top: 8vh;
    height: 56vh;
  }

  .hero__aurora-band--three {
    top: 15vh;
    height: 48vh;
  }

  .hero__polar {
    left: 5%;
    top: 9%;
    width: 90%;
    height: 40%;
    opacity: 0.09;
  }

  .mega-menu {
    top: var(--header-height);
    max-height: calc(100svh - var(--header-height));
    overflow-y: auto;
  }

  .mega-link {
    grid-template-columns: 1fr;
    gap: 6px;
    padding: 14px 0;
  }

  .placeholder-section {
    min-height: 75svh;
    padding: 90px var(--page-pad);
  }
}

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

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

  .hero__line-text {
    clip-path: none;
  }

  .cursor {
    opacity: 1;
    animation: none;
  }
}
