:root {
  --bg-obsidian: #07080B;
  --accent-cyan: #00D9FF;
  --text-primary: #FFFFFF;
  --text-secondary: #A0A5AD;

  --font-display: 'Space Grotesk', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-ui: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --pointer-x: 50%;
  --pointer-y: 50%;
}

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

html {
  background-color: var(--bg-obsidian);
  color: var(--text-primary);
  font-size: 16px;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  min-height: 100dvh;
  width: 100%;
  overflow-x: hidden;
  background-color: var(--bg-obsidian);
  color: var(--text-primary);
  font-family: var(--font-ui);
}

::selection {
  background: rgba(0, 217, 255, 0.22);
  color: var(--text-primary);
}

/* ==========================================================================
   Atmospheric Cyan Light & Depth
   ========================================================================== */

.ambient-stage {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  opacity: 0;
  animation: fadeInAtmosphere 1.5s var(--ease-out-expo) forwards;
}

.ambient-horizon {
  position: absolute;
  left: 50%;
  bottom: -24vh;
  width: min(140vw, 1500px);
  height: min(65vh, 640px);
  transform: translateX(-50%);
  background: radial-gradient(
    ellipse 58% 62% at 50% 84%,
    rgba(0, 217, 255, 0.19) 0%,
    rgba(0, 217, 255, 0.068) 42%,
    rgba(7, 8, 11, 0) 76%
  );
  filter: blur(28px);
  will-change: opacity, transform;
  animation: horizonPulse 9s ease-in-out infinite;
}

.ambient-core {
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(88vw, 860px);
  height: min(56vh, 500px);
  transform: translate(-50%, -50%);
  background: radial-gradient(
    ellipse at center,
    rgba(0, 217, 255, 0.065) 0%,
    rgba(0, 217, 255, 0.02) 45%,
    rgba(7, 8, 11, 0) 75%
  );
  filter: blur(24px);
}

.ambient-pointer {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.6s ease;
  background: radial-gradient(
    520px circle at var(--pointer-x) var(--pointer-y),
    rgba(0, 217, 255, 0.06) 0%,
    rgba(0, 217, 255, 0.015) 38%,
    transparent 70%
  );
}

.ambient-pointer.is-active {
  opacity: 1;
}

.ambient-grain {
  position: absolute;
  inset: 0;
  opacity: 0.022;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ==========================================================================
   Single-Screen Composition
   ========================================================================== */

.page-shell {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: auto 1fr auto;
  min-height: 100vh;
  min-height: 100svh;
  min-height: 100dvh;
  width: 100%;
  max-width: 100%;
  padding-inline: clamp(1.25rem, 5vw, 4rem);
  padding-top: max(clamp(1.75rem, 4.5vh, 3.25rem), env(safe-area-inset-top));
  padding-bottom: max(clamp(1.35rem, 3.8vh, 2.5rem), env(safe-area-inset-bottom));
}

.brand-header,
.hero-stage,
.brand-footer {
  min-width: 0;
  width: 100%;
}

/* ==========================================================================
   Top Brand Signature
   ========================================================================== */

.brand-header {
  display: flex;
  justify-content: center;
  align-items: center;
}

.brand-signature {
  display: inline-flex;
  align-items: center;
  gap: clamp(0.6rem, 1.4vw, 0.85rem);
  padding: 0.35rem 0.65rem;
  opacity: 0;
  transform: translateY(-8px);
  animation: fadeDownIn 0.9s var(--ease-out-expo) 0.08s forwards;
  transition: transform 0.4s var(--ease-out-expo);
  cursor: default;
}

.brand-mark {
  display: block;
  width: auto;
  height: clamp(1.05rem, 2.1vw, 1.38rem);
  aspect-ratio: 291 / 214;
  object-fit: contain;
  filter: drop-shadow(0 0 10px rgba(0, 217, 255, 0.16));
  transition: filter 0.45s ease, transform 0.45s var(--ease-out-expo);
}

.brand-wordmark {
  font-family: var(--font-ui);
  font-size: clamp(0.68rem, 1.15vw, 0.82rem);
  font-weight: 500;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--text-primary);
  opacity: 0.9;
  transition: opacity 0.35s ease, text-shadow 0.45s ease;
  white-space: nowrap;
}

.brand-signature:hover .brand-mark {
  filter: drop-shadow(0 0 16px rgba(0, 217, 255, 0.42));
  transform: translateY(-1px);
}

.brand-signature:hover .brand-wordmark {
  opacity: 1;
  text-shadow: 0 0 18px rgba(255, 255, 255, 0.14);
}

/* ==========================================================================
   Hero Centerpiece
   ========================================================================== */

.hero-stage {
  display: flex;
  align-items: center;
  justify-content: center;
  padding-block: clamp(2rem, 5vh, 4rem);
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: min(100%, 72rem);
}

.hero-headline {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.55rem, 8.6vw, 7.25rem);
  line-height: 0.94;
  letter-spacing: -0.038em;
  text-transform: uppercase;
  color: var(--text-primary);
  user-select: none;
}

.line-clip {
  display: block;
  overflow: hidden;
  padding-inline: 0.18em;
  padding-block: 0.04em;
  margin-block: -0.04em;
  animation: releaseClip 0.01s linear 1.4s forwards;
}

@keyframes releaseClip {
  to {
    overflow: visible;
  }
}

.line-reveal {
  display: block;
  opacity: 0;
  transform: translateY(108%);
  will-change: transform, opacity;
  animation: textLineReveal 1.05s var(--ease-out-expo) forwards;
}

.line-1 {
  animation-delay: 0.16s;
}

.line-2 {
  animation-delay: 0.28s;
}

.line-3 {
  animation-delay: 0.40s;
}

.headline-accent {
  color: var(--accent-cyan);
  text-shadow:
    0 0 28px rgba(0, 217, 255, 0.26),
    0 0 72px rgba(0, 217, 255, 0.12);
  transition: text-shadow 0.5s ease, filter 0.5s ease;
}

.headline-accent:hover {
  text-shadow:
    0 0 36px rgba(0, 217, 255, 0.44),
    0 0 96px rgba(0, 217, 255, 0.22);
}

/* ==========================================================================
   Main Slogan
   ========================================================================== */

.hero-slogan {
  margin-top: clamp(1.75rem, 4.2vh, 3rem);
  font-family: var(--font-ui);
  font-size: clamp(0.76rem, 1.35vw, 0.95rem);
  font-weight: 500;
  letter-spacing: 0.44em;
  text-indent: 0.44em;
  text-transform: uppercase;
  color: var(--text-secondary);
  opacity: 0;
  transform: translateY(12px);
  animation: fadeUpIn 0.95s var(--ease-out-expo) 0.58s forwards;
  transition: color 0.4s ease, text-shadow 0.4s ease;
  cursor: default;
}

.hero-slogan:hover {
  color: var(--text-primary);
  text-shadow: 0 0 20px rgba(0, 217, 255, 0.22);
}

/* ==========================================================================
   Footer Signature
   ========================================================================== */

.brand-footer {
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.copyright {
  max-width: 100%;
  font-family: var(--font-ui);
  font-size: clamp(0.625rem, 0.95vw, 0.72rem);
  font-weight: 400;
  line-height: 1.6;
  letter-spacing: 0.2em;
  text-indent: 0.2em;
  text-transform: uppercase;
  color: var(--text-secondary);
  opacity: 0;
  animation: fadeInSimple 1s var(--ease-out-expo) 0.72s forwards;
}

/* ==========================================================================
   Animations
   ========================================================================== */

@keyframes fadeInAtmosphere {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes horizonPulse {
  0%,
  100% {
    opacity: 0.85;
    transform: translateX(-50%) scale(1);
  }
  50% {
    opacity: 1;
    transform: translateX(-50%) scale(1.04);
  }
}

@keyframes fadeDownIn {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes textLineReveal {
  from {
    opacity: 0;
    transform: translateY(108%);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeUpIn {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInSimple {
  from {
    opacity: 0;
  }
  to {
    opacity: 0.78;
  }
}

/* ==========================================================================
   Responsive Refinements
   ========================================================================== */

@media (max-width: 480px) {
  .brand-wordmark {
    letter-spacing: 0.24em;
  }

  .hero-headline {
    font-size: clamp(2.15rem, 11vw, 3.6rem);
    line-height: 0.96;
  }

  .hero-slogan {
    letter-spacing: 0.34em;
    text-indent: 0.34em;
  }

  .copyright {
    font-size: 0.58rem;
    letter-spacing: 0.08em;
    text-indent: 0.08em;
  }
}

@media (max-height: 560px) and (orientation: landscape) {
  .page-shell {
    padding-top: 1rem;
    padding-bottom: 1rem;
  }

  .hero-stage {
    padding-block: 1rem;
  }

  .hero-headline {
    font-size: clamp(2rem, 10vh, 4.25rem);
  }

  .hero-slogan {
    margin-top: 1rem;
  }
}

/* ==========================================================================
   Accessibility: Reduced Motion
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
  .ambient-stage,
  .ambient-horizon,
  .brand-signature,
  .line-reveal,
  .hero-slogan,
  .copyright {
    animation: none !important;
    transition: none !important;
    transform: none !important;
  }

  .ambient-stage,
  .brand-signature,
  .line-reveal,
  .hero-slogan {
    opacity: 1 !important;
  }

  .copyright {
    opacity: 0.78 !important;
  }

  .ambient-pointer {
    display: none !important;
  }
}
