:root {
  color-scheme: dark;
  --bg: #05142d;
  --bg-deep: #020916;
  --surface: rgba(12, 42, 82, 0.44);
  --text: #f7fbff;
  --muted: #a7bdd7;
  --accent: #50ddff;
  --accent-soft: rgba(80, 221, 255, 0.24);
  --line: rgba(112, 206, 255, 0.12);
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  min-height: 100%;
  margin: 0;
  background: var(--bg-deep);
}

html {
  overflow-x: hidden;
}

body {
  min-width: 0;
  overflow-x: hidden;
  overflow-y: auto;
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  text-rendering: optimizeLegibility;
}

.ambient,
.ambient > * {
  position: fixed;
  inset: 0;
  pointer-events: none;
}

.ambient {
  overflow: hidden;
  background: var(--bg-deep);
}

.ambient::before,
.ambient::after {
  position: absolute;
  pointer-events: none;
  content: "";
}

.ambient::before {
  z-index: 0;
  inset: -4%;
  background: url("/assets/datacenter-cloud-background.png") center / cover no-repeat;
  filter: saturate(0.92) contrast(1.04);
  transform: scale(1.04);
  transform-origin: center;
  animation: datacenter-drift 18s ease-in-out infinite alternate;
  will-change: transform;
}

.ambient::after {
  z-index: 1;
  inset: 0;
  background:
    linear-gradient(145deg, rgba(2, 9, 22, 0.82), rgba(5, 20, 45, 0.72) 48%, rgba(6, 28, 62, 0.78)),
    radial-gradient(circle at 50% 34%, rgba(26, 118, 196, 0.34), transparent 30rem),
    radial-gradient(circle at 12% 88%, rgba(0, 170, 255, 0.13), transparent 27rem);
}

.ambient > * {
  z-index: 2;
}

.ambient__glow {
  inset: 10% auto auto 50%;
  width: min(70vw, 54rem);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(63, 202, 255, 0.11), transparent 67%);
  filter: blur(12px);
  transform: translateX(-50%);
}

.ambient__grid {
  inset: 38% -28% -72%;
  opacity: 0.42;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 4.75rem 4.75rem;
  mask-image: linear-gradient(to bottom, transparent, black 22%, transparent 84%);
  transform: perspective(36rem) rotateX(58deg) scale(1.18);
  transform-origin: center top;
  animation: grid-drift 14s linear infinite;
}

.ambient__scan {
  inset: -35% auto auto 48%;
  width: 1px;
  height: 175%;
  opacity: 0;
  background: linear-gradient(transparent, rgba(115, 225, 255, 0.72), transparent);
  box-shadow: 0 0 2rem rgba(80, 221, 255, 0.42);
  transform: rotate(19deg);
  transform-origin: center;
  animation: scan-sweep 10s ease-in-out infinite;
}

.site-shell {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-rows: minmax(10rem, 0.92fr) auto minmax(4rem, 0.58fr);
  width: 100%;
  min-height: 100svh;
  height: 100dvh;
  padding: max(1.5rem, env(safe-area-inset-top)) max(1.25rem, env(safe-area-inset-right)) max(1rem, env(safe-area-inset-bottom)) max(1.25rem, env(safe-area-inset-left));
}

.brand,
.hero,
.site-footer {
  min-width: 0;
}

.brand {
  display: grid;
  place-items: end center;
}

.brand__stage {
  position: relative;
  display: grid;
  place-items: center;
  width: min(100%, 33rem);
  min-height: clamp(8.5rem, 22vh, 13.5rem);
  isolation: isolate;
}

.brand img {
  position: relative;
  z-index: 2;
  display: block;
  width: min(100%, 27rem);
  max-width: 100%;
  height: auto;
  filter: drop-shadow(0 0 1.25rem rgba(100, 220, 255, 0.16));
  animation:
    logo-sync 1.15s cubic-bezier(0.2, 0.8, 0.2, 1) both,
    logo-breathe 5.5s ease-in-out 1.15s infinite alternate;
}

.brand__orbit {
  position: absolute;
  z-index: 1;
  top: 50%;
  left: 50%;
  aspect-ratio: 1;
  border: 1px solid rgba(116, 222, 255, 0.15);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  animation: orbit-spin 22s linear infinite;
}

.brand__orbit::before,
.brand__orbit::after {
  position: absolute;
  width: 0.42rem;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 1rem rgba(80, 221, 255, 0.8);
  content: "";
}

.brand__orbit::before {
  top: 8%;
  left: 26%;
}

.brand__orbit::after {
  right: 7%;
  bottom: 27%;
  width: 0.26rem;
  opacity: 0.7;
}

.brand__orbit--outer {
  width: clamp(15rem, 42vw, 31rem);
  border-style: dashed;
}

.brand__orbit--inner {
  width: clamp(11rem, 30vw, 22rem);
  opacity: 0.58;
  animation-direction: reverse;
  animation-duration: 16s;
}

.hero {
  align-self: center;
  width: min(54rem, 100%);
  margin-inline: auto;
  padding-block: 1.5rem;
  text-align: center;
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  max-width: 100%;
  margin: 0 0 1.1rem;
  color: #bfefff;
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0.21em;
  overflow-wrap: anywhere;
  text-transform: uppercase;
}

.status__dot {
  flex: 0 0 auto;
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 rgba(80, 221, 255, 0.42);
  animation: status-pulse 2.4s ease-out infinite;
}

.hero__copy {
  max-width: 36rem;
  margin: 0.45rem auto 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  line-height: 1.65;
  text-wrap: balance;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.9rem 1.25rem;
  max-width: 100%;
  margin: 1.65rem auto 0;
}

.hero__actions a {
  min-height: 2.85rem;
  font-size: 0.94rem;
  font-weight: 700;
  line-height: 1.25;
  text-decoration: none;
  transition: border-color 180ms ease, box-shadow 180ms ease, color 180ms ease, transform 180ms ease;
}

.hero__site {
  display: inline-flex;
  align-items: center;
  padding: 0.7rem 0.35rem;
  color: #d8f6ff;
  border-bottom: 1px solid rgba(80, 221, 255, 0.48);
}

.hero__contact {
  display: inline-grid;
  place-items: center;
  padding: 0.78rem 1.35rem;
  color: #031326;
  border: 1px solid rgba(185, 243, 255, 0.88);
  border-radius: 999px;
  background: linear-gradient(135deg, #86ebff, var(--accent));
  box-shadow: 0 0.75rem 2.2rem rgba(29, 183, 225, 0.2);
}

.hero__site:hover {
  color: #ffffff;
  border-color: var(--accent);
}

.hero__contact:hover {
  box-shadow: 0 0.9rem 2.5rem rgba(29, 183, 225, 0.34);
  transform: translateY(-2px);
}

.hero__actions a:focus-visible {
  outline: 3px solid rgba(151, 235, 255, 0.95);
  outline-offset: 4px;
}

.site-footer {
  align-self: end;
  justify-self: center;
  max-width: 100%;
  padding: 0.75rem;
  color: rgba(190, 215, 239, 0.68);
  font-size: 0.82rem;
  line-height: 1.5;
  letter-spacing: 0.08em;
  overflow-wrap: anywhere;
  text-align: center;
}

@keyframes datacenter-drift {
  from {
    transform: scale(1.04) translate3d(-0.7%, -0.35%, 0);
  }
  to {
    transform: scale(1.1) translate3d(0.7%, 0.35%, 0);
  }
}

@keyframes grid-drift {
  from {
    background-position: 0 0;
  }
  to {
    background-position: 0 4.75rem;
  }
}

@keyframes orbit-spin {
  from {
    transform: translate(-50%, -50%) rotate(0deg);
  }
  to {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

@keyframes scan-sweep {
  0%,
  12% {
    opacity: 0;
    translate: -42vw 0;
  }
  32%,
  68% {
    opacity: 0.54;
  }
  88%,
  100% {
    opacity: 0;
    translate: 42vw 0;
  }
}

@keyframes logo-sync {
  0% {
    opacity: 0;
    filter: blur(0.7rem) drop-shadow(0 0 0 rgba(80, 221, 255, 0));
    transform: translateY(0.6rem) scale(0.985);
  }
  55% {
    opacity: 0.72;
    filter: blur(0.12rem) drop-shadow(0 0 1.8rem rgba(80, 221, 255, 0.3));
  }
  100% {
    opacity: 1;
    filter: blur(0) drop-shadow(0 0 1.25rem rgba(100, 220, 255, 0.16));
    transform: translateY(0) scale(1);
  }
}

@keyframes logo-breathe {
  from {
    filter: drop-shadow(0 0 0.8rem rgba(80, 221, 255, 0.08));
  }
  to {
    filter: drop-shadow(0 0 1.8rem rgba(80, 221, 255, 0.24));
  }
}

@keyframes status-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(80, 221, 255, 0.45);
  }
  70%,
  100% {
    box-shadow: 0 0 0 0.65rem rgba(80, 221, 255, 0);
  }
}

@media (max-width: 480px) {
  .site-shell {
    grid-template-rows: minmax(9rem, 0.86fr) auto minmax(3.5rem, 0.5fr);
    padding-inline: max(1rem, env(safe-area-inset-left));
  }

  .brand__stage {
    min-height: 9rem;
  }

  .brand img {
    width: min(82vw, 20rem);
  }

  .hero {
    padding-block: 1rem;
  }

  .hero__copy {
    max-width: 22rem;
  }

  .hero__actions {
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 1.25rem;
  }

  .hero__contact {
    width: min(100%, 18rem);
  }

  .ambient__grid {
    background-size: 3.25rem 3.25rem;
  }
}

@media (max-height: 520px) {
  .site-shell {
    grid-template-rows: auto auto auto;
    height: auto;
    min-height: 100svh;
    padding-block: 0.75rem;
  }

  .brand__stage {
    min-height: 6rem;
  }

  .brand img {
    width: min(13rem, 44vw);
  }

  .brand__orbit--outer {
    width: min(12rem, 42vw);
  }

  .brand__orbit--inner {
    width: min(9rem, 30vw);
  }

  .hero {
    padding-block: 0.5rem;
  }

  .status {
    margin-bottom: 0.55rem;
  }

  .hero__copy {
    margin-top: 0.35rem;
  }

  .hero__actions {
    margin-top: 0.75rem;
  }

  .site-footer {
    padding-block: 0.35rem;
  }
}

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