:root {
  color-scheme: dark;
  --ice: rgba(236, 251, 255, 0.96);
  --ice-blue: rgba(139, 229, 255, 0.74);
  --solar-orange: #ff8c00;
  --solar-orange-deep: #ff6600;
  --orbit-blue: #16213e;
  --deep-blue: #0f0f1e;
  --aurora-green: rgba(95, 255, 182, 0.48);
  --aurora-violet: rgba(176, 116, 255, 0.26);
  --void: #020308;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 52%, rgba(22, 33, 62, 0.46), transparent 33rem),
    radial-gradient(circle at 22% 16%, rgba(255, 140, 0, 0.08), transparent 21rem),
    radial-gradient(circle at 78% 22%, rgba(42, 151, 255, 0.1), transparent 18rem),
    var(--void);
  color: var(--ice);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

button,
a {
  font: inherit;
  letter-spacing: 0;
}

.landing {
  position: relative;
  display: grid;
  min-height: 100svh;
  place-items: center;
  isolation: isolate;
  overflow: hidden;
}

.startup-curtain {
  position: fixed;
  inset: 0;
  z-index: 20;
  pointer-events: none;
  background: #000;
  animation: startup-curtain 4000ms ease forwards;
}

@keyframes startup-curtain {
  0%,
  25% {
    opacity: 1;
    visibility: visible;
  }

  99% {
    opacity: 0;
    visibility: visible;
  }

  100% {
    opacity: 0;
    visibility: hidden;
  }
}

.scene-layer {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  filter: blur(8px) saturate(1.2) contrast(1.03);
  transform: scale(1.025);
  transform-origin: center;
}

#space-canvas {
  display: block;
  width: 100%;
  height: 100%;
}

.orbital-fallback {
  position: fixed;
  inset: -5%;
  z-index: -1;
  opacity: 0.9;
  pointer-events: none;
  background:
    radial-gradient(circle at 52% 50%, rgba(116, 237, 255, 0.22) 0 12%, transparent 24%),
    radial-gradient(circle at 50% 50%, rgba(22, 33, 62, 0.88) 0 22%, transparent 36%),
    conic-gradient(
      from 22deg at 52% 50%,
      transparent,
      rgba(255, 140, 0, 0.18),
      transparent,
      rgba(49, 145, 255, 0.16),
      transparent
    );
  filter: blur(14px) saturate(1.18);
}

.webgl-ready .orbital-fallback {
  opacity: 0.18;
}

.vignette {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(circle at -10% -12%, rgba(255, 140, 0, 0.018), transparent 24rem),
    radial-gradient(circle at 88% 84%, rgba(0, 0, 0, 0.62), transparent 34rem),
    linear-gradient(135deg, rgba(255, 102, 0, 0.012), transparent 34%, rgba(15, 15, 30, 0.46)),
    radial-gradient(circle at 50% 50%, transparent 0 24rem, rgba(22, 33, 62, 0.24) 42rem),
    linear-gradient(180deg, rgba(15, 15, 30, 0.34), transparent 32%, rgba(15, 15, 30, 0.5));
}

.topbar {
  position: fixed;
  top: 1.25rem;
  left: 1.25rem;
  right: 1.25rem;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.domain-mark {
  color: rgba(234, 251, 255, 0.78);
  font-size: 0.875rem;
  line-height: 1;
  text-decoration: none;
  text-shadow:
    0 0 1.2rem rgba(77, 171, 255, 0.28),
    0 0 1.6rem rgba(255, 140, 0, 0.08);
}

.language-switcher {
  position: fixed;
  top: 1.25rem;
  right: 1.25rem;
  display: inline-grid;
  grid-template-columns: repeat(2, minmax(2.55rem, auto));
  gap: 0.25rem;
  padding: 0.25rem;
  border: 1px solid rgba(255, 140, 0, 0.24);
  border-radius: 8px;
  background: rgba(15, 15, 30, 0.54);
  box-shadow: 0 1rem 2.5rem rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(12px);
}

.language-button {
  min-height: 2.25rem;
  padding: 0 0.8rem;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: rgba(231, 248, 255, 0.62);
  cursor: pointer;
}

.language-button:hover,
.language-button:focus-visible {
  color: var(--ice);
  outline: 1px solid rgba(255, 140, 0, 0.7);
  outline-offset: 2px;
}

.language-button.is-active {
  color: #160a00;
  background: linear-gradient(135deg, rgba(255, 198, 95, 0.96), rgba(255, 102, 0, 0.92));
  box-shadow:
    0 0 0.85rem rgba(255, 140, 0, 0.22),
    0 0 1.8rem rgba(55, 151, 255, 0.1),
    inset 0 0 0.55rem rgba(255, 255, 255, 0.3);
}

.hero-lockup {
  position: fixed;
  inset: 0;
  z-index: 3;
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: center;
  padding: 5rem 1.25rem 3rem;
  pointer-events: none;
  text-align: center;
}

.hero-stack {
  display: grid;
  width: min(100%, 48rem);
  justify-items: center;
  gap: 1rem;
}

.ice-logo {
  position: relative;
  width: min(78vw, 28rem);
  max-width: calc(100vw - 2.5rem);
  aspect-ratio: 289.1 / 108.8;
  display: grid;
  place-items: center;
  transform: translateZ(0);
}

.landing[data-language="en"] .ice-logo {
  width: min(58vw, 16rem);
  aspect-ratio: 443.24 / 406.84;
}

.ice-logo::before {
  position: absolute;
  inset: -26%;
  content: "";
  pointer-events: none;
  background:
    radial-gradient(circle at 38% 42%, rgba(95, 190, 255, 0.16), transparent 38%),
    radial-gradient(circle at 68% 58%, rgba(255, 140, 0, 0.07), transparent 34%);
  opacity: 0.58;
  mix-blend-mode: screen;
  filter: blur(1.2rem) saturate(1.05);
}

.brand-logo {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0.92;
  filter:
    brightness(1.1)
    contrast(1.06)
    saturate(1.04)
    drop-shadow(-0.8rem 0 0.9rem rgba(77, 171, 255, 0.18))
    drop-shadow(0.55rem 0 1.2rem rgba(255, 140, 0, 0.08))
    drop-shadow(0 0 0.35rem rgba(227, 252, 255, 0.34));
  user-select: none;
}

.ice-logo {
  filter:
    drop-shadow(0 1.6rem 4rem rgba(0, 0, 0, 0.64))
    drop-shadow(0 0 1.6rem rgba(255, 140, 0, 0.08));
}

.hero-kicker,
.hero-story,
.hero-subtitle {
  margin: 0;
  max-width: 42rem;
  text-shadow: 0 0.5rem 1.25rem rgba(0, 0, 0, 0.68);
}

.hero-kicker {
  margin-top: 0.2rem;
  color: rgba(255, 171, 53, 0.96);
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.35;
  text-transform: uppercase;
}

.hero-story {
  color: rgba(235, 244, 255, 0.9);
  font-size: clamp(0.95rem, 1.45vw, 1.12rem);
  font-weight: 600;
  line-height: 1.62;
}

.hero-subtitle {
  color: rgba(255, 255, 255, 0.98);
  font-size: clamp(1.18rem, 2vw, 1.75rem);
  line-height: 1.24;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 0.25rem;
  pointer-events: auto;
}

.cta-button {
  display: inline-flex;
  min-height: 2.75rem;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  padding: 0 1.15rem;
  color: var(--ice);
  font-weight: 800;
  text-decoration: none;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background 180ms ease;
}

.cta-button:hover,
.cta-button:focus-visible {
  transform: translateY(-2px);
  outline: none;
}

.cta-button.primary {
  color: #160a00;
  background: linear-gradient(135deg, rgba(255, 198, 95, 0.97), rgba(255, 102, 0, 0.95));
  box-shadow:
    0 0 1.25rem rgba(255, 140, 0, 0.22),
    0 0 2rem rgba(55, 151, 255, 0.08),
    inset 0 0 0.75rem rgba(255, 255, 255, 0.3);
}

.cta-button.secondary {
  border: 1px solid rgba(255, 140, 0, 0.34);
  background: rgba(22, 33, 62, 0.52);
  backdrop-filter: blur(12px);
}

.cta-button.secondary:hover,
.cta-button.secondary:focus-visible {
  border-color: rgba(255, 140, 0, 0.74);
}

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

@media (max-width: 720px) {
  .topbar {
    top: 0.85rem;
    left: 0.85rem;
    right: 0.85rem;
  }

  .domain-mark {
    font-size: 0.8125rem;
  }

  .language-button {
    min-height: 2.1rem;
    padding-inline: 0.68rem;
  }

  .language-switcher {
    top: 3rem;
    right: auto;
    left: 0.85rem;
  }

  .ice-logo {
    width: min(70vw, 17rem);
  }

  .landing[data-language="en"] .ice-logo {
    width: min(50vw, 12rem);
  }

  .hero-lockup {
    padding: 8.35rem 1rem 2rem;
    align-items: start;
  }

  .hero-stack {
    width: min(100%, 20rem);
    gap: 0.75rem;
  }

  .hero-kicker {
    max-width: 18.5rem;
    font-size: 0.64rem;
    overflow-wrap: anywhere;
  }

  .hero-story {
    max-width: 19rem;
    font-size: 0.82rem;
    line-height: 1.48;
  }

  .hero-subtitle {
    max-width: 19rem;
    font-size: 0.98rem;
  }

  .cta-row {
    display: grid;
    width: min(100%, 17rem);
    gap: 0.55rem;
  }

  .cta-button {
    width: 100%;
    min-height: 2.45rem;
    padding-inline: 0.9rem;
    font-size: 0.9rem;
  }
}
