:root {
  --bg-0: #050507;
  --bg-1: #0e0e14;
  --fg: #f5f5f7;
  --muted: #9aa0a6;
  --accent: #7c5cff;
  --accent-2: #22d3ee;
  --max-width: 1100px;
}

* {
  box-sizing: border-box;
}

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

body {
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  color: var(--fg);
  background: radial-gradient(
      120% 80% at 50% 0%,
      var(--bg-1) 0%,
      var(--bg-0) 60%
    )
    fixed;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow: hidden;
}

.stage {
  position: relative;
  min-height: 100dvh;
  min-height: 100vh;
  width: 100%;
  display: grid;
  place-items: center;
  padding: max(env(safe-area-inset-top), 1.5rem)
    max(env(safe-area-inset-right), 1.5rem)
    max(env(safe-area-inset-bottom), 1.5rem)
    max(env(safe-area-inset-left), 1.5rem);
}

.glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(
      40rem 25rem at 30% 25%,
      rgba(124, 92, 255, 0.25),
      transparent 60%
    ),
    radial-gradient(
      35rem 22rem at 70% 80%,
      rgba(34, 211, 238, 0.18),
      transparent 60%
    );
  filter: blur(20px);
  z-index: 0;
}

.hero {
  position: relative;
  z-index: 1;
  width: min(var(--max-width), 100%);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(0.75rem, 1.6vw, 1.25rem);
}

.eyebrow {
  margin: 0;
  font-weight: 400;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--muted);
  font-size: clamp(0.7rem, 1.4vw, 0.95rem);
}

.title {
  margin: 0;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.05;
  font-size: clamp(2.25rem, 9vw, 6.5rem);
  background: linear-gradient(
    180deg,
    #ffffff 0%,
    #d6d6e0 60%,
    #a5a5b8 100%
  );
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-wrap: balance;
}

.rule {
  display: block;
  width: clamp(3rem, 10vw, 6rem);
  height: 2px;
  margin-top: clamp(0.5rem, 1.2vw, 1rem);
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  border-radius: 2px;
}

@media (orientation: portrait) and (max-aspect-ratio: 3/4) {
  .title {
    font-size: clamp(2rem, 12vw, 5rem);
  }
}

@media (orientation: landscape) and (max-height: 480px) {
  .hero {
    gap: 0.5rem;
  }
  .title {
    font-size: clamp(2rem, 8vh, 4rem);
  }
  .eyebrow {
    font-size: 0.75rem;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .title {
    animation: rise 700ms ease-out both;
  }
  .eyebrow {
    animation: rise 700ms ease-out 80ms both;
  }
  .rule {
    animation: grow 700ms ease-out 200ms both;
    transform-origin: left center;
  }
}

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

@keyframes grow {
  from {
    opacity: 0;
    transform: scaleX(0);
  }
  to {
    opacity: 1;
    transform: scaleX(1);
  }
}
