@import url("https://fonts.googleapis.com/css2?family=Changa:wght@400;600;700&family=Sora:wght@400;600;700;800&display=swap");

:root {
  --bg-0: #050a14;
  --bg-1: #0c1626;
  --bg-2: #102039;
  --text-main: #edf3ff;
  --text-soft: #b7c7df;
  --accent-1: #22d3ee;
  --accent-2: #f97316;
  --accent-3: #34d399;
  --line-soft: rgba(177, 214, 255, 0.18);
  --wire: rgba(132, 199, 255, 0.42);
  --wire-strong: rgba(132, 199, 255, 0.86);
  --logo-tone-1: rgba(130, 196, 214, 0.99);
  --logo-tone-2: rgba(87, 148, 169, 0.98);
  --logo-tone-3: rgba(89, 84, 78, 0.95);
  --logo-line: rgba(174, 228, 244, 0.98);
}

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

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

body {
  position: relative;
  min-height: 100vh;
  overflow-x: hidden;
  overflow-y: auto;
  color: var(--text-main);
  background:
    radial-gradient(circle at 80% 15%, rgba(34, 211, 238, 0.19), transparent 36%),
    radial-gradient(circle at 10% 80%, rgba(249, 115, 22, 0.2), transparent 42%),
    linear-gradient(140deg, var(--bg-0), var(--bg-1) 44%, var(--bg-2));
  font-family: "Sora", "Segoe UI", sans-serif;
}

#geo-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  opacity: 0.95;
}

.grid-perspective {
  position: fixed;
  inset: -25vh -25vw;
  pointer-events: none;
  z-index: 1;
  transform: perspective(720px) rotateX(62deg) translateY(22vh);
  opacity: 0.48;
  animation: drift-grid 24s linear infinite;
}

.grid-perspective::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to right, rgba(94, 152, 255, 0.2) 1px, transparent 1px) 0 0 / 60px 60px,
    linear-gradient(to bottom, rgba(94, 152, 255, 0.2) 1px, transparent 1px) 0 0 / 60px 60px;
  mask-image: linear-gradient(to top, black 30%, transparent 86%);
}

.grain {
  position: fixed;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  opacity: 0.16;
  background-image: radial-gradient(rgba(255, 255, 255, 0.75) 0.8px, transparent 0.8px);
  background-size: 3px 3px;
}

.hero-shell {
  position: relative;
  z-index: 3;
  width: min(1180px, calc(100vw - 3rem));
  margin: 0 auto;
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(300px, 1.2fr) minmax(250px, 1fr);
  align-items: center;
  gap: clamp(1.25rem, 3.5vw, 3rem);
  padding: clamp(1.5rem, 4vw, 3rem) 0;
}

.hero-copy {
  position: relative;
  max-width: 660px;
  padding: clamp(0.8rem, 1.6vw, 1.1rem) 0 clamp(0.6rem, 2vw, 1.3rem) clamp(1rem, 2.7vw, 2rem);
}

.hero-copy::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.5rem;
  bottom: 0.5rem;
  width: 2px;
  background: linear-gradient(to bottom, rgba(34, 211, 238, 0), rgba(34, 211, 238, 0.95), rgba(249, 115, 22, 0.9), rgba(249, 115, 22, 0));
  box-shadow: 0 0 28px rgba(34, 211, 238, 0.42);
}

.brand-logo-top {
  width: clamp(140px, 16vw, 210px);
  height: auto;
  margin: 0 0 0.55rem;
  filter:
    drop-shadow(0 0 5px rgba(255, 255, 255, 0.2))
    drop-shadow(0 0 14px rgba(104, 184, 255, 0.2));
}

.eyebrow {
  margin: 0 0 0.8rem;
  font-size: 0.76rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-1);
}

.title-rule {
  width: min(190px, 46vw);
  height: 2px;
  margin: 0.2rem 0 1rem;
  background: linear-gradient(90deg, var(--accent-1), var(--accent-2));
  box-shadow: 0 0 26px rgba(34, 211, 238, 0.42);
}

h1 {
  margin: 0;
  font-family: "Changa", sans-serif;
  font-size: clamp(1.1rem, 3.4vw, 3.3rem);
  line-height: 1.12;
  white-space: nowrap;
  letter-spacing: 0.01em;
  text-shadow: 0 10px 34px rgba(7, 15, 29, 0.82);
}

.lead {
  margin: 0.95rem 0 0;
  font-family: "Changa", sans-serif;
  color: var(--text-soft);
  line-height: 1.8;
  font-size: clamp(1rem, 2.1vw, 1.18rem);
}

.capability-line {
  margin: 1rem 0 0;
  color: #d8e8ff;
  font-size: clamp(0.7rem, 1.2vw, 0.9rem);
  letter-spacing: clamp(0.08em, 0.22vw, 0.17em);
  text-transform: uppercase;
  white-space: nowrap;
}

.capability-line span {
  margin: 0 0.54rem;
  color: var(--accent-2);
}

.launch-note {
  margin: 0.9rem 0 0;
  color: var(--accent-3);
  font-family: "Changa", sans-serif;
  font-size: clamp(1.12rem, 1.8vw, 1.38rem);
}

.geo-cluster {
  position: relative;
  height: min(74vh, 720px);
  min-height: 400px;
  display: grid;
  place-items: center;
  isolation: isolate;
}

.orbit {
  position: absolute;
  border: 1px solid rgba(123, 198, 255, 0.36);
  border-radius: 50%;
  animation: spin 18s linear infinite;
}

.orbit::after {
  content: "";
  position: absolute;
  width: 10px;
  aspect-ratio: 1;
  border-radius: 50%;
  top: 50%;
  right: -5px;
  transform: translateY(-50%);
  background: linear-gradient(120deg, var(--accent-2), var(--accent-1));
  box-shadow: 0 0 20px rgba(34, 211, 238, 0.7);
}

.orbit-a {
  width: min(68vw, 440px);
  aspect-ratio: 1;
  animation-duration: 13s;
}

.orbit-b {
  width: min(56vw, 350px);
  aspect-ratio: 1;
  animation-duration: 11s;
  animation-direction: reverse;
}

.orbit-c {
  width: min(42vw, 265px);
  aspect-ratio: 1;
  animation-duration: 9s;
}

.poly {
  position: absolute;
  filter: drop-shadow(0 0 16px rgba(34, 211, 238, 0.4));
  animation: float 8s ease-in-out infinite;
}

.poly-a,
.poly-b,
.poly-c,
.poly-d {
  width: clamp(82px, 11vw, 130px);
  aspect-ratio: 1;
  clip-path: polygon(50% 0%, 100% 35%, 82% 100%, 18% 100%, 0% 35%);
  background: linear-gradient(
    155deg,
    rgba(34, 211, 238, 0.35),
    rgba(249, 115, 22, 0.17) 64%,
    rgba(52, 211, 153, 0.34)
  );
  border: 1px solid rgba(153, 214, 255, 0.47);
}

.poly-a {
  top: 12%;
  left: 13%;
}

.poly-b {
  top: 63%;
  left: 8%;
  animation-delay: -1.8s;
}

.poly-c {
  top: 20%;
  right: 9%;
  animation-delay: -0.8s;
}

.poly-d {
  top: 70%;
  right: 11%;
  animation-delay: -2.6s;
}

.wireframe {
  width: min(70vw, 460px);
  aspect-ratio: 1;
  stroke: var(--wire);
  stroke-width: 1.5;
  fill: rgba(56, 189, 248, 0.04);
  animation:
    spin 36s linear infinite,
    breathing 6s ease-in-out infinite;
}

.logo-core {
  position: absolute;
  top: 50%;
  left: 50%;
  width: clamp(130px, 20vw, 220px);
  aspect-ratio: 1174 / 887;
  display: grid;
  place-items: center;
  z-index: 3;
  mix-blend-mode: screen;
  --logo-shift-x: 0px;
  --logo-shift-y: 0px;
  --logo-tilt: 0deg;
  --logo-scale: 1;
  --logo-glow: 1;
  transform: translate(-50%, -50%);
  animation: logo-float 11s ease-in-out infinite;
}

.logo-core::before,
.logo-core::after {
  content: "";
  position: absolute;
  border: 1px solid rgba(132, 199, 255, 0.24);
  border-radius: 50%;
  inset: -24% -14%;
  animation: spin 24s linear infinite reverse;
}

.logo-core::after {
  inset: -38% -25%;
  animation-duration: 30s;
  border-color: rgba(132, 199, 255, 0.12);
}

.logo-core-image {
  width: 100%;
  height: auto;
  opacity: 0.018;
  filter: grayscale(1) brightness(2.45);
  transform:
    translate3d(var(--logo-shift-x), var(--logo-shift-y), 0)
    rotate(var(--logo-tilt))
    scale(var(--logo-scale));
  transform-origin: center;
}

.logo-core-lines {
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(
      118deg,
      var(--logo-line) 0 1.6px,
      rgba(114, 184, 205, 0.15) 1.6px 2.5px,
      transparent 2.5px 10.5px
    ),
    linear-gradient(
      130deg,
      var(--logo-tone-1) 5%,
      var(--logo-tone-2) 44%,
      var(--logo-tone-3) 74%,
      var(--logo-tone-1) 100%
    );
  -webkit-mask: url("./Logo_only.png") center / 100% auto no-repeat;
  mask: url("./Logo_only.png") center / 100% auto no-repeat;
  transform:
    translate3d(var(--logo-shift-x), var(--logo-shift-y), 0)
    rotate(var(--logo-tilt))
    scale(var(--logo-scale));
  transform-origin: center;
  filter:
    contrast(1.28)
    saturate(1.12)
    brightness(calc(1.03 * var(--logo-glow)))
    drop-shadow(0 0 6px rgba(8, 24, 45, 0.45))
    drop-shadow(0 0 12px rgba(132, 199, 220, 0.2));
  opacity: 0.95;
  animation: logo-scan 8s linear infinite;
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@keyframes float {
  0%,
  100% {
    transform: translate3d(0, 0, 0) rotate(0deg);
  }
  50% {
    transform: translate3d(0, -18px, 0) rotate(6deg);
  }
}

@keyframes drift-grid {
  from {
    transform: perspective(720px) rotateX(62deg) translate3d(0, 22vh, 0);
  }
  to {
    transform: perspective(720px) rotateX(62deg) translate3d(-80px, 18vh, 0);
  }
}

@keyframes breathing {
  0%,
  100% {
    filter: drop-shadow(0 0 14px rgba(34, 211, 238, 0.1));
  }
  50% {
    filter: drop-shadow(0 0 24px rgba(34, 211, 238, 0.4));
  }
}

@keyframes logo-scan {
  from {
    background-position:
      0 0,
      0 0;
  }
  to {
    background-position:
      120px 0,
      220px 0;
  }
}

@keyframes logo-float {
  0%,
  100% {
    transform: translate(-50%, -50%) translate3d(0, 0, 0);
  }
  25% {
    transform: translate(-50%, -50%) translate3d(4px, -3px, 0);
  }
  50% {
    transform: translate(-50%, -50%) translate3d(0, -5px, 0);
  }
  75% {
    transform: translate(-50%, -50%) translate3d(-4px, -2px, 0);
  }
}

@media (max-width: 980px) {
  body {
    overflow-x: hidden;
    overflow-y: auto;
  }

  .hero-shell {
    grid-template-columns: 1fr;
    width: min(700px, calc(100vw - 1.4rem));
    min-height: auto;
    align-items: start;
    gap: 1rem;
    padding: calc(max(1rem, env(safe-area-inset-top)) + 1.35rem) 0
      calc(2rem + env(safe-area-inset-bottom));
  }

  .hero-copy {
    order: 2;
    max-width: 100%;
    padding: 0.65rem 0.28rem 2rem;
  }

  .hero-copy::before {
    display: none;
  }

  .brand-logo-top {
    margin-bottom: 0.75rem;
  }

  .title-rule {
    width: min(220px, 56vw);
    margin-bottom: 1.2rem;
  }

  .lead {
    font-size: clamp(0.95rem, 3.4vw, 1.08rem);
    line-height: 1.68;
    margin-top: 1.1rem;
  }

  .capability-line {
    font-size: clamp(0.53rem, 1.8vw, 0.69rem);
    letter-spacing: clamp(0.02em, 0.14vw, 0.06em);
    margin-top: 1.2rem;
  }

  .capability-line span {
    margin: 0 0.3rem;
  }

  .launch-note {
    margin-top: 1.1rem;
    font-size: clamp(1.02rem, 4.2vw, 1.2rem);
    line-height: 1.28;
  }

  .geo-cluster {
    order: 1;
    min-height: 230px;
    height: min(34vh, 290px);
    margin-top: 0.8rem;
  }

  .orbit-a {
    width: min(72vw, 320px);
  }

  .orbit-b {
    width: min(56vw, 260px);
  }

  .orbit-c {
    width: min(42vw, 190px);
  }

  .wireframe {
    width: min(70vw, 300px);
  }

  .logo-core {
    width: clamp(110px, 36vw, 170px);
  }
}

@media (max-width: 420px) {
  .hero-shell {
    width: calc(100vw - 1rem);
    gap: 0.9rem;
    padding-top: calc(max(1rem, env(safe-area-inset-top)) + 1.7rem);
  }

  .brand-logo-top {
    width: clamp(118px, 42vw, 150px);
  }

  h1 {
    font-size: clamp(1.3rem, 7.2vw, 1.75rem);
  }

  .capability-line {
    font-size: clamp(0.48rem, 2vw, 0.58rem);
    letter-spacing: 0.02em;
  }

  .capability-line span {
    margin: 0 0.2rem;
  }

  .launch-note {
    font-size: clamp(0.96rem, 5.3vw, 1.08rem);
  }

  .geo-cluster {
    margin-top: 1rem;
  }
}

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