:root {
  --color-bg:     #000000;
  --color-text:   #ffffff;
  --color-muted:  #555566;
  --color-accent: #0066FF;
  --font-sans:    'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --ease-out:     cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  color: var(--color-text);
  background: var(--color-bg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

::selection {
  background: rgba(0, 102, 255, 0.3);
  color: #fff;
}

:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
  border-radius: 2px;
}
:focus:not(:focus-visible) { outline: none; }

.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  padding: 0.4rem 0.8rem;
  background: var(--color-accent);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 4px;
  z-index: 200;
  transition: top 200ms var(--ease-out);
}
.skip-link:focus { top: 1rem; }

.layout {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
  padding: 1.5rem;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.topbar__est,
.topbar__version {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  color: var(--color-muted);
  text-transform: uppercase;
}

.main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero {
  text-align: center;
  width: 100%;
  max-width: 52rem;
  padding: 2rem 0;
  overflow-x: clip;
  overflow-y: visible;
}

.hero__logo-wrap {
  position: relative;
  display: block;
  width: 100%;
  max-width: 700px;
  margin: 0 auto 3rem;
  overflow: visible;
}

.hero__logo {
  display: block;
  width: 100%;
  height: auto;
  position: relative;
  z-index: 1;
  user-select: none;
  -webkit-user-drag: none;
}

.hero__logo-wrap::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 115%;
  height: 280%;
  transform: translate(-50%, -50%);
  background: radial-gradient(
    ellipse at center,
    rgba(0, 102, 255, 0.35) 0%,
    rgba(0, 102, 255, 0.12) 40%,
    transparent 70%
  );
  pointer-events: none;
  z-index: 0;
  opacity: 0;
}

.hero__logo-wrap::after {
  content: '';
  position: absolute;
  bottom: 4%;
  left: 0;
  width: 28%;
  height: 28%;
  background: radial-gradient(
    ellipse at center,
    rgba(0, 102, 255, 0.45) 0%,
    transparent 70%
  );
  pointer-events: none;
  z-index: 2;
  opacity: 0;
}

.animate-in .hero__logo-wrap::before {
  animation: glow-breathe 7s ease-in-out 1.5s infinite both;
}
.animate-in .hero__logo-wrap::after {
  animation: line-pulse 15s ease-in-out 3s infinite both;
}

@keyframes glow-breathe {
  0%, 100% { opacity: 0.5; }
  50%      { opacity: 1; }
}

@keyframes line-pulse {
  0%, 58%  { transform: translateX(-50%);  opacity: 0; }
  64%      { transform: translateX(0%);    opacity: 0.7; }
  84%      { transform: translateX(260%);  opacity: 0.7; }
  92%, 100%{ transform: translateX(310%);  opacity: 0; }
}

.hero__headline {
  font-size: clamp(1.2rem, 0.9rem + 1.2vw, 1.8rem);
  font-weight: 300;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 0.75rem;
}

.hero__subtext {
  font-size: clamp(0.85rem, 0.8rem + 0.2vw, 0.95rem);
  font-weight: 400;
  color: var(--color-muted);
  letter-spacing: 0.02em;
}

.footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1.5rem;
}

.footer__status {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  color: var(--color-accent);
  text-transform: uppercase;
}

.footer__copy {
  font-size: 0.65rem;
  color: var(--color-muted);
  letter-spacing: 0.04em;
}

.hero__logo-wrap,
.hero__headline,
.hero__subtext {
  opacity: 0;
  transform: translateY(12px);
}

.topbar, .footer {
  opacity: 0;
}

.animate-in .topbar          { animation: fade-in 800ms var(--ease-out) 0s forwards; }
.animate-in .hero__logo-wrap { animation: fade-up 900ms var(--ease-out) 0.15s forwards; }
.animate-in .hero__headline  { animation: fade-up 800ms var(--ease-out) 0.5s forwards; }
.animate-in .hero__subtext   { animation: fade-up 800ms var(--ease-out) 0.65s forwards; }
.animate-in .footer          { animation: fade-in 800ms var(--ease-out) 0.8s forwards; }

@keyframes fade-up {
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fade-in {
  to { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .topbar, .footer,
  .hero__logo-wrap,
  .hero__headline,
  .hero__subtext {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    animation-delay: 0s !important;
    opacity: 1;
    transform: none;
  }
  * {
    transition-duration: 0.01ms !important;
  }
}

@media (max-width: 768px) {
  .layout { padding: 1rem; }
  .hero__logo-wrap { max-width: 90vw; margin-bottom: 2rem; }
}

@media (max-width: 480px) {
  .layout { padding: 0.75rem; }
  .topbar__est, .topbar__version { font-size: 0.6rem; letter-spacing: 0.15em; }
  .hero__logo-wrap { margin-bottom: 1.5rem; }
  .footer { flex-direction: column; gap: 0.5rem; text-align: center; }
}
