:root {
  color-scheme: dark;
  --bg: #0b0b0f;
  --bg-soft: #15161c;
  --panel: rgba(33, 33, 41, 0.68);
  --panel-strong: rgba(33, 33, 41, 0.88);
  --border: rgba(237, 238, 242, 0.12);
  --border-strong: rgba(167, 139, 250, 0.28);
  --text: #edeef2;
  --muted: rgba(237, 238, 242, 0.72);
  --soft: rgba(237, 238, 242, 0.5);
  --accent: #a78bfa;
  --shadow: 0 28px 70px rgba(6, 6, 9, 0.34);
  --container: 1240px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
  overflow: hidden;
}

body {
  margin: 0;
  min-height: 100dvh;
  overflow: hidden;
  background:
    radial-gradient(circle at 82% 16%, rgba(167, 139, 250, 0.16), transparent 18%),
    radial-gradient(circle at 18% 0%, rgba(45, 45, 55, 0.34), transparent 26%),
    linear-gradient(180deg, #0b0b0f 0%, #15161c 52%, #0b0b0f 100%);
  color: var(--text);
  font-family: "Inter", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a:focus-visible,
button:focus-visible {
  outline: 2px solid rgba(167, 139, 250, 0.85);
  outline-offset: 4px;
}

.page-shell {
  position: relative;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  overflow: clip;
}

.ambient {
  position: fixed;
  border-radius: 999px;
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
}

.ambient-a {
  top: 8%;
  right: 10%;
  width: 18rem;
  height: 18rem;
  background: rgba(167, 139, 250, 0.12);
  animation: drift-a 12s ease-in-out infinite;
}

.ambient-b {
  bottom: 8%;
  left: 8%;
  width: 16rem;
  height: 16rem;
  background: rgba(45, 45, 55, 0.26);
  animation: drift-b 16s ease-in-out infinite;
}

.container {
  position: relative;
  z-index: 1;
  width: min(calc(100% - 48px), var(--container));
  margin: 0 auto;
}

.site-header {
  position: relative;
  z-index: 20;
  padding-top: 18px;
  background: transparent;
}

.site-header-inner {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 8px 0 12px;
}

.brand {
  font-size: 1.95rem;
  font-weight: 700;
  letter-spacing: -0.06em;
}

.brand span,
.hero-title span,
.eyebrow-dot {
  color: var(--accent);
}

.maintenance-main {
  position: relative;
  flex: 1;
  display: flex;
  z-index: 1;
}

.maintenance-hero {
  position: relative;
  flex: 1;
  min-height: 0;
  padding: 12px 0 20px;
  display: flex;
  align-items: center;
  width: 100%;
}

.hero-background {
  position: fixed;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

.hero-glow {
  position: absolute;
  left: 52%;
  top: 34%;
  width: 34rem;
  height: 34rem;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(167, 139, 250, 0.12), rgba(167, 139, 250, 0));
  filter: blur(34px);
}

.hero-orb-large {
  position: absolute;
  left: 52%;
  top: 34%;
  width: 22px;
  height: 22px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: rgba(167, 139, 250, 0.95);
  box-shadow:
    0 0 34px rgba(167, 139, 250, 0.42),
    0 0 80px rgba(167, 139, 250, 0.14);
  animation: pulse-orb 5.5s ease-in-out infinite;
}

.hero-grid {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  min-height: 100%;
  width: 100%;
  padding-left: clamp(44px, 7vw, 110px);
}

.hero-copy {
  position: relative;
  z-index: 2;
  max-width: 760px;
  padding: 24px 0 40px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 28px;
  padding: 8px 13px;
  border: 1px solid rgba(237, 238, 242, 0.09);
  border-radius: 999px;
  background: rgba(33, 33, 41, 0.56);
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.eyebrow-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 16px currentColor;
}

.hero-title {
  max-width: 9ch;
  margin: 0;
  font-size: clamp(3.2rem, 7vw, 6rem);
  font-weight: 700;
  line-height: 0.9;
  letter-spacing: -0.08em;
}

.hero-description {
  max-width: 31rem;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.72;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 58px;
  padding: 0 24px;
  border-radius: 18px;
  border: 1px solid transparent;
  font-weight: 600;
  transition:
    transform 260ms var(--ease),
    border-color 260ms var(--ease),
    background-color 260ms var(--ease),
    box-shadow 260ms var(--ease);
  will-change: transform;
}

.button:hover {
  transform: translateY(-2px);
}

.button:active {
  transform: translateY(0) scale(0.985);
}

.button-primary {
  background: var(--accent);
  color: #0b0b0f;
  box-shadow:
    inset 0 1px 0 rgba(237, 238, 242, 0.32),
    0 14px 34px rgba(167, 139, 250, 0.2);
}

.button-secondary {
  border-color: var(--border);
  background: rgba(33, 33, 41, 0.44);
  color: var(--text);
}

.site-footer {
  padding: 0 0 18px;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 18px;
  color: var(--soft);
  font-size: 0.94rem;
  text-align: center;
}

.footer-bottom p {
  margin: 0;
}

.reveal {
  opacity: 0;
  transform: translate3d(0, 36px, 0);
  transition:
    opacity 760ms var(--ease),
    transform 760ms var(--ease);
}

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

@keyframes drift-a {
  0%,
  100% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  50% {
    transform: translate3d(-20px, 18px, 0) scale(1.08);
  }
}

@keyframes drift-b {
  0%,
  100% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  50% {
    transform: translate3d(18px, -16px, 0) scale(1.1);
  }
}

@keyframes pulse-orb {
  0%,
  100% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 0.9;
  }
  50% {
    transform: translate(-50%, calc(-50% - 10px)) scale(1.08);
    opacity: 1;
  }
}

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

  *,
  *::before,
  *::after {
    animation: none !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0ms !important;
  }

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

@media (max-width: 980px) {
  .hero-grid {
    min-height: auto;
    padding-left: 24px;
  }

  .hero-copy {
    max-width: 620px;
    padding: 16px 0 28px;
  }
}

@media (max-width: 760px) {
  .container {
    width: min(calc(100% - 32px), var(--container));
  }

  .site-header-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .maintenance-hero {
    min-height: auto;
    padding-bottom: 12px;
  }

  .hero-grid {
    padding-left: 0;
  }

  .hero-title {
    max-width: 8ch;
    font-size: clamp(2.9rem, 15vw, 4.6rem);
  }

  .hero-description {
    font-size: 0.98rem;
    line-height: 1.66;
  }
}
