:root {
  --bg: #020306;
  --fg: #e8e8ed;
  --muted: #6b6b78;
  --subtle: rgba(255, 255, 255, 0.06);
  --border: rgba(255, 255, 255, 0.08);
}

* {
  box-sizing: border-box;
  margin: 0;
}

html,
body {
  min-height: 100%;
}

body {
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  color: var(--fg);
  background: var(--bg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ── Canvas background ──────────────────────── */

#bg-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  z-index: 0;
  pointer-events: none;
}

/* ── Atmospheric layers ─────────────────────── */

.bg-aurora {
  position: fixed;
  inset: -35%;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(circle at 25% 30%, rgba(80, 100, 160, 0.1), transparent 50%),
    radial-gradient(circle at 70% 40%, rgba(100, 80, 150, 0.07), transparent 50%);
  filter: blur(60px);
  transform-origin: 50% 50%;
  animation: aurora-float 18s ease-in-out infinite alternate;
}

.ambient-glow {
  position: fixed;
  inset: -25%;
  pointer-events: none;
  z-index: 1;
  background:
    radial-gradient(circle at 50% 50%, rgba(70, 90, 140, 0.08) 0%, transparent 60%);
  filter: blur(40px);
  animation: ambient-drift 14s ease-in-out infinite alternate;
}

.noise-overlay {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 256px 256px;
}

.cursor-glow {
  position: fixed;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 1;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.025) 0%, transparent 70%);
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: opacity 0.5s ease;
}

/* ── Alpha badge ───────────────────────────── */

.alpha-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.38rem 0.66rem;
  border-radius: 999px;
  border: 1px solid rgba(200, 214, 245, 0.24);
  background: rgba(14, 20, 34, 0.58);
  color: rgba(223, 232, 252, 0.95);
  backdrop-filter: blur(8px);
  font-size: 0.62rem;
  line-height: 1;
  letter-spacing: 0.12em;
  font-weight: 700;
  text-transform: uppercase;
}

.alpha-badge-top {
  padding: 0.34rem 0.56rem;
  font-size: 0.56rem;
  letter-spacing: 0.1em;
  color: rgba(214, 225, 248, 0.9);
  border-color: rgba(188, 204, 236, 0.22);
  background: rgba(14, 20, 34, 0.52);
  transform: translateY(0);
}

.alpha-dot {
  width: 0.44rem;
  height: 0.44rem;
  border-radius: 999px;
  background: #a4bcff;
  box-shadow: 0 0 0 0 rgba(164, 188, 255, 0.58);
  animation: alpha-pulse 2.2s ease-out infinite;
}

/* ── Social links ───────────────────────────── */

.social-links {
  position: fixed;
  top: 1.5rem;
  right: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  z-index: 3;
}

.social-link {
  width: 2.25rem;
  height: 2.25rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  border: none;
  background: transparent;
  color: var(--muted);
  text-decoration: none;
  transition:
    color 0.2s ease,
    background 0.2s ease;
}

.social-link:hover {
  color: var(--fg);
  background: var(--subtle);
}

.social-link svg {
  width: 1.1rem;
  height: 1.1rem;
  fill: currentColor;
}

/* ── Hero section ───────────────────────────── */

.minimal-hero {
  position: relative;
  z-index: 2;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem 1.5rem;
}

/* ── Logo ───────────────────────────────────── */

.logo {
  width: clamp(64px, 8vw, 88px);
  height: auto;
  margin-bottom: 1.5rem;
  filter: drop-shadow(0 0 50px rgba(120, 130, 180, 0.15));
  animation: fade-up 700ms cubic-bezier(0.16, 1, 0.3, 1) both;
  animation-delay: 0ms;
}

/* ── Typography ─────────────────────────────── */

h1 {
  font-size: clamp(3rem, 8vw, 5rem);
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 1;
  color: var(--fg);
  animation: fade-up 700ms cubic-bezier(0.16, 1, 0.3, 1) both;
  animation-delay: 80ms;
}

.tagline {
  margin-top: 1rem;
  font-size: clamp(1rem, 2.2vw, 1.2rem);
  color: var(--muted);
  font-weight: 400;
  max-width: 28ch;
  line-height: 1.6;
  letter-spacing: -0.01em;
  animation: fade-up 700ms cubic-bezier(0.16, 1, 0.3, 1) both;
  animation-delay: 160ms;
}

/* ── Badges ─────────────────────────────────── */

.badges {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 2rem;
  animation: fade-up 700ms cubic-bezier(0.16, 1, 0.3, 1) both;
  animation-delay: 240ms;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0.01em;
}

.badge svg {
  width: 0.85rem;
  height: 0.85rem;
  fill: none;
  stroke: var(--muted);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0.7;
}

.badge:first-child svg {
  fill: var(--muted);
  stroke: none;
  opacity: 0.7;
}

.badge-divider {
  width: 2px;
  height: 2px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
}

/* ── CTA button ─────────────────────────────── */

.cta-group {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 2.5rem;
  animation: fade-up 700ms cubic-bezier(0.16, 1, 0.3, 1) both;
  animation-delay: 320ms;
}

.cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1.4rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--fg);
  color: var(--bg);
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
  letter-spacing: -0.01em;
  transition:
    opacity 0.2s ease,
    transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.cta:hover {
  opacity: 0.85;
  transform: translateY(-1px);
}

.cta:active {
  transform: translateY(0) scale(0.98);
  opacity: 0.75;
}

.cta-arrow {
  width: 1rem;
  height: 1rem;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.cta:hover .cta-arrow {
  transform: translateX(2px);
}

.cta-secondary {
  background: rgba(255, 255, 255, 0.04);
  color: var(--fg);
}

/* ── Animations ─────────────────────────────── */

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

@keyframes ambient-drift {
  0% {
    transform: translate3d(-3%, 1%, 0) scale(1);
    opacity: 0.8;
  }
  100% {
    transform: translate3d(3%, -1%, 0) scale(1.05);
    opacity: 1;
  }
}

@keyframes aurora-float {
  0% {
    transform: translate3d(-2%, -1%, 0) scale(1);
    opacity: 0.7;
  }
  100% {
    transform: translate3d(2%, 1%, 0) scale(1.06);
    opacity: 0.9;
  }
}

@keyframes alpha-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(164, 188, 255, 0.58);
  }
  70% {
    box-shadow: 0 0 0 8px rgba(164, 188, 255, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(164, 188, 255, 0);
  }
}

/* ── Accessibility ──────────────────────────── */

@media (prefers-reduced-motion: reduce) {
  .minimal-hero *,
  .logo,
  h1,
  .tagline,
  .badges,
  .cta-group,
  .cta {
    animation: none !important;
    opacity: 1;
  }

  .ambient-glow,
  .bg-aurora {
    animation-timing-function: linear;
  }

  .alpha-dot {
    animation-duration: 3.6s;
  }

  .ambient-glow {
    animation-duration: 32s;
  }

  .bg-aurora {
    animation-duration: 40s;
  }
}

/* ── Mobile ─────────────────────────────────── */

@media (max-width: 640px) {
  .alpha-badge-top {
    padding: 0.31rem 0.5rem;
    font-size: 0.52rem;
  }

  .social-links {
    top: 1rem;
    right: 1rem;
  }

  .badges {
    gap: 0.5rem;
  }

  .badge {
    font-size: 0.7rem;
  }

  .cta {
    padding: 0.65rem 1.25rem;
    font-size: 0.85rem;
  }

  .cta-group {
    gap: 0.55rem;
  }
}
