:root {
  color-scheme: dark;
  --bg: #040816;
  --bg-soft: #0a1633;
  --text: rgba(255, 255, 255, 0.96);
  --muted: rgba(255, 255, 255, 0.56);
  --line: rgba(255, 255, 255, 0.08);
  --glass: rgba(255, 255, 255, 0.08);
  --shadow: 0 30px 120px rgba(2, 6, 23, 0.55);
  --blue: #72a8ff;
  --violet: #b892ff;
  --cyan: #7ce7ff;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Inter", system-ui, sans-serif;
  background:
    radial-gradient(circle at 20% 20%, rgba(114, 168, 255, 0.18), transparent 28%),
    radial-gradient(circle at 80% 18%, rgba(184, 146, 255, 0.18), transparent 24%),
    radial-gradient(circle at 50% 75%, rgba(124, 231, 255, 0.12), transparent 30%),
    linear-gradient(180deg, #08101f 0%, #040816 42%, #03050c 100%);
  color: var(--text);
  overflow-x: hidden;
}

.page-shell {
  position: relative;
  min-height: 100vh;
  isolation: isolate;
}

.grid {
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: radial-gradient(circle at center, black 32%, transparent 82%);
  opacity: 0.22;
  pointer-events: none;
}

.orb {
  position: fixed;
  border-radius: 999px;
  filter: blur(16px);
  opacity: 0.72;
  pointer-events: none;
}

.orb-a {
  top: 12vh;
  left: 14vw;
  width: 26rem;
  height: 26rem;
  background: radial-gradient(circle, rgba(114, 168, 255, 0.34), transparent 68%);
  animation: driftA 14s ease-in-out infinite alternate;
}

.orb-b {
  right: 10vw;
  top: 16vh;
  width: 22rem;
  height: 22rem;
  background: radial-gradient(circle, rgba(184, 146, 255, 0.3), transparent 70%);
  animation: driftB 16s ease-in-out infinite alternate;
}

.orb-c {
  left: 50%;
  bottom: 12vh;
  width: 24rem;
  height: 24rem;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(124, 231, 255, 0.22), transparent 72%);
  animation: driftC 18s ease-in-out infinite alternate;
}

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  padding: 2rem;
  text-align: center;
  perspective: 1200px;
}

.startup-line {
  width: min(32rem, 56vw);
  height: 1px;
  margin-bottom: 0.4rem;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.92), transparent);
  box-shadow:
    0 0 14px rgba(124, 231, 255, 0.32),
    0 0 30px rgba(114, 168, 255, 0.18);
  opacity: 0;
  animation: startupLine 1.8s 0.15s ease forwards;
}

.eyebrow {
  margin: 0;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  font-size: 0.72rem;
  color: var(--muted);
  animation: fadeRise 1.2s ease both;
}

.wordmark {
  display: flex;
  gap: clamp(0.25rem, 1vw, 0.65rem);
  margin: 0;
  font-size: clamp(3.8rem, 16vw, 11rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  text-transform: uppercase;
}

.letter {
  position: relative;
  display: inline-block;
  text-shadow:
    0 0 24px rgba(255, 255, 255, 0.18),
    0 0 48px rgba(114, 168, 255, 0.16),
    0 0 72px rgba(184, 146, 255, 0.12);
  animation:
    reveal 1.1s calc(var(--i) * 120ms) cubic-bezier(0.2, 0.8, 0.2, 1) both,
    floatLetter calc(4.8s + var(--i) * 0.4s) calc(var(--i) * 140ms) ease-in-out infinite alternate;
  will-change: transform;
}

.reveal-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.1rem;
  opacity: 0;
  transform: translateY(20px);
  animation: stagedReveal 1.15s 1.55s ease forwards;
}

.subtitle {
  margin: 0;
  max-width: 48rem;
  color: var(--muted);
  font-size: clamp(1rem, 2vw, 1.18rem);
  line-height: 1.75;
}

.hero-note {
  margin-top: 0.1rem;
  color: rgba(255, 255, 255, 0.42);
  font-size: 0.84rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.actions {
  display: flex;
  gap: 0.95rem;
  flex-wrap: wrap;
  justify-content: center;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 9.5rem;
  padding: 0.95rem 1.35rem;
  border-radius: 999px;
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  backdrop-filter: blur(18px);
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
}

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

.button.primary {
  background: linear-gradient(135deg, rgba(114, 168, 255, 0.34), rgba(184, 146, 255, 0.3));
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 12px 44px rgba(114, 168, 255, 0.2);
}

.button.ghost {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.about {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(280px, 1fr);
  gap: 1.25rem;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem 4rem;
  opacity: 0;
  transform: translateY(28px);
  animation: stagedReveal 1.15s 2.15s ease forwards;
}

.panel {
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.025));
  box-shadow: 0 24px 80px rgba(2, 6, 23, 0.28);
  border-radius: 30px;
  padding: 1.7rem;
  backdrop-filter: blur(28px);
}

.panel-kicker,
.stats span {
  display: inline-block;
  margin-bottom: 0.9rem;
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}

.panel h2 {
  margin: 0 0 0.85rem;
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  letter-spacing: -0.03em;
}

.panel p {
  margin: 0;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.8;
}

.stats {
  display: grid;
  gap: 1rem;
}

.stats div {
  padding: 1rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.stats div:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.stats strong {
  display: block;
  font-size: 1.08rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

@keyframes reveal {
  from {
    opacity: 0;
    transform: translateY(28px) scale(0.92);
    filter: blur(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

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

@keyframes floatLetter {
  0% {
    transform: translate3d(0, 0, 0) rotate(-1.2deg);
  }
  50% {
    transform: translate3d(0, -10px, 0) rotate(0.8deg);
  }
  100% {
    transform: translate3d(0, 10px, 0) rotate(-0.6deg);
  }
}

@keyframes driftA {
  from {
    transform: translate3d(-20px, -12px, 0) scale(1);
  }
  to {
    transform: translate3d(30px, 16px, 0) scale(1.08);
  }
}

@keyframes driftB {
  from {
    transform: translate3d(12px, 0, 0) scale(1);
  }
  to {
    transform: translate3d(-28px, 24px, 0) scale(1.12);
  }
}

@keyframes driftC {
  from {
    transform: translate3d(-50%, 0, 0) scale(1);
  }
  to {
    transform: translate3d(calc(-50% + 18px), -18px, 0) scale(1.1);
  }
}

@keyframes startupLine {
  0% {
    opacity: 0;
    transform: scaleX(0.25);
    filter: blur(5px);
  }
  45% {
    opacity: 1;
    transform: scaleX(1);
    filter: blur(0);
  }
  100% {
    opacity: 0.38;
    transform: scaleX(0.92);
  }
}

@keyframes stagedReveal {
  from {
    opacity: 0;
    transform: translateY(20px);
    filter: blur(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

@media (max-width: 820px) {
  .about {
    grid-template-columns: 1fr;
    padding-bottom: 3rem;
  }

  .wordmark {
    gap: 0.15rem;
  }
}

@media (max-width: 560px) {
  .hero {
    padding-top: 5rem;
    padding-bottom: 4rem;
  }

  .eyebrow {
    letter-spacing: 0.26em;
  }

  .button {
    width: 100%;
  }

  .actions {
    width: min(100%, 22rem);
  }
}

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