:root {
  --bg: #050505;
  --fg: #f4f1ea;
  --muted: rgba(244, 241, 234, 0.62);
  --line: rgba(244, 241, 234, 0.12);
  --accent: #7cf5c8;
  --accent-2: #9bb7ff;
  --glass: rgba(8, 8, 10, 0.42);
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
  --radius: 999px;
  --font: "Space Grotesk", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
}

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

html,
body {
  margin: 0;
  min-height: 100%;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font);
  overflow-x: hidden;
}

body {
  min-height: 100dvh;
  position: relative;
}

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

.scene {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background:
    radial-gradient(ellipse 80% 60% at 50% 40%, rgba(40, 50, 80, 0.35), transparent 70%),
    #050505;
}

.scene canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  outline: none;
  opacity: 0;
  transition: opacity 0.6s ease;
}

body.scene-ready .scene canvas {
  opacity: 1;
}

.scene-loader {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  pointer-events: none;
}

.scene-fade {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(5, 5, 5, 0.55) 0%, transparent 28%, transparent 58%, rgba(5, 5, 5, 0.78) 100%),
    radial-gradient(ellipse 90% 70% at 50% 45%, transparent 20%, rgba(5, 5, 5, 0.45) 100%);
}

.noise {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.045;
  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='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: soft-light;
}

.top,
.hero,
.foot {
  position: relative;
  z-index: 2;
  pointer-events: none;
}

.top a,
.hero a,
.foot a {
  pointer-events: auto;
}

.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  max-width: 1120px;
  margin: 0 auto;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-weight: 600;
  letter-spacing: -0.03em;
}

.logo-mark {
  width: 2rem;
  height: 2rem;
  display: grid;
  place-items: center;
  border-radius: 0.7rem;
  background: linear-gradient(135deg, rgba(124, 245, 200, 0.22), rgba(155, 183, 255, 0.18));
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  font-family: var(--mono);
  font-size: 0.95rem;
}

.logo-text {
  opacity: 0.92;
}

.nav {
  display: flex;
  gap: 0.35rem;
  padding: 0.3rem;
  border-radius: var(--radius);
  background: var(--glass);
  border: 1px solid var(--line);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.nav a {
  padding: 0.45rem 0.9rem;
  border-radius: var(--radius);
  font-size: 0.88rem;
  color: var(--muted);
  transition: color 0.2s ease, background 0.2s ease;
}

.nav a:hover {
  color: var(--fg);
  background: rgba(255, 255, 255, 0.06);
}

.hero {
  min-height: calc(100dvh - 8.5rem);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem 1.25rem 4rem;
  gap: 1rem;
}

.eyebrow {
  margin: 0;
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 0.45rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.title {
  position: relative;
  margin: 0.4rem 0 0;
  font-size: clamp(4.2rem, 16vw, 9.5rem);
  line-height: 0.9;
  letter-spacing: -0.07em;
  font-weight: 700;
  user-select: none;
}

.title-ghost,
.title-main {
  display: block;
}

.title-ghost {
  position: absolute;
  inset: 0;
  color: transparent;
  -webkit-text-stroke: 1px rgba(244, 241, 234, 0.18);
  transform: translate(0.04em, 0.05em);
  filter: blur(0.2px);
}

.title-main {
  background: linear-gradient(180deg, #fff 10%, rgba(244, 241, 234, 0.78) 55%, rgba(124, 245, 200, 0.85) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 10px 40px rgba(0, 0, 0, 0.35);
  animation: float-title 7s ease-in-out infinite;
}

.tagline {
  max-width: 28rem;
  margin: 0.25rem 0 0.5rem;
  color: var(--muted);
  font-size: clamp(1rem, 2.4vw, 1.15rem);
  line-height: 1.55;
  text-wrap: balance;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  margin-top: 0.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.85rem 1.2rem;
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-weight: 500;
  border: 1px solid transparent;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

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

.btn-primary {
  background: linear-gradient(135deg, rgba(124, 245, 200, 0.95), rgba(155, 183, 255, 0.92));
  color: #07110d;
  box-shadow: 0 12px 40px rgba(124, 245, 200, 0.18);
}

.btn-primary:hover {
  box-shadow: 0 16px 48px rgba(124, 245, 200, 0.28);
}

.btn-ghost {
  background: var(--glass);
  border-color: var(--line);
  color: var(--fg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.btn-ghost:hover {
  border-color: rgba(244, 241, 234, 0.28);
  background: rgba(255, 255, 255, 0.06);
}

.foot {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 1rem 1.25rem 1.35rem;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.foot-dot {
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px rgba(124, 245, 200, 0.8);
  animation: pulse 2.2s ease-in-out infinite;
}

@keyframes float-title {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

@keyframes pulse {
  0%,
  100% {
    opacity: 0.55;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.15);
  }
}

@media (max-width: 640px) {
  .top {
    padding: 1rem;
  }

  .nav a {
    padding: 0.4rem 0.7rem;
    font-size: 0.82rem;
  }

  .hero {
    min-height: calc(100dvh - 7.5rem);
    padding-bottom: 5rem;
  }

  .actions {
    width: 100%;
  }

  .btn {
    width: 100%;
    justify-content: center;
  }

}

@media (prefers-reduced-motion: reduce) {
  .title-main,
  .foot-dot,
  .btn {
    animation: none;
    transition: none;
  }
}
