:root {
  --accent: #9966CC;
  --accent-light: #b98ee0;
  --accent-dark: #7d4fb0;
  --bg: #0a0910;
  --surface: #17141f;
  --border: #2a2536;
  --text: #f5f2fa;
  --text-muted: #a79fb8;
  --mono: "JetBrains Mono", "Cascadia Code", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --transition: 0.2s ease;
}

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

html, body {
  height: 100%;
}

body {
  font-family: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow-x: hidden;
}

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

/* Ambient background */

.field {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.75;
}

.glow {
  position: fixed;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.55;
}

.glow--one {
  width: 560px;
  height: 560px;
  top: -180px;
  left: -140px;
  background: radial-gradient(circle, var(--accent) 0%, transparent 70%);
  animation: float-one 16s ease-in-out infinite;
}

.glow--two {
  width: 620px;
  height: 620px;
  bottom: -220px;
  right: -160px;
  background: radial-gradient(circle, var(--accent-dark) 0%, transparent 70%);
  animation: float-two 20s ease-in-out infinite;
}

@keyframes float-one {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(60px, 40px) scale(1.08); }
}

@keyframes float-two {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-50px, -30px) scale(1.06); }
}

.noise {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: radial-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 3px 3px;
}

/* A single CRT line drifting down the page — barely there, but it sells the screen. */
.scanline {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(
    to bottom,
    transparent 0%,
    rgba(185, 142, 224, 0.05) 48%,
    rgba(185, 142, 224, 0.09) 50%,
    rgba(185, 142, 224, 0.05) 52%,
    transparent 100%
  );
  background-size: 100% 240px;
  background-repeat: no-repeat;
  animation: scan 9s linear infinite;
}

@keyframes scan {
  from { background-position: 0 -240px; }
  to   { background-position: 0 100vh; }
}

/* Entrance animations */

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

.animate-in {
  opacity: 0;
  animation: fade-in-up 0.9s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.animate-in.delay-1 { animation-delay: 0.15s; }
.animate-in.delay-2 { animation-delay: 0.3s; }
.animate-in.delay-3 { animation-delay: 0.45s; }
.animate-in.delay-4 { animation-delay: 0.6s; }

/* Navbar */

.navbar {
  position: relative;
  z-index: 2;
  padding: 28px 40px;
}

.navbar.animate-in {
  animation-delay: 0s;
}

.navbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1080px;
  margin: 0 auto;
}

.navbar__brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.navbar__logo {
  width: 30px;
  height: 30px;
  object-fit: contain;
  filter: drop-shadow(0 0 10px rgba(153, 102, 204, 0.5));
  transition: transform var(--transition), filter var(--transition);
}

.navbar__brand:hover .navbar__logo {
  transform: translateY(-1px) scale(1.06);
  filter: drop-shadow(0 0 14px rgba(153, 102, 204, 0.75));
}

@keyframes pulse-dot {
  0%, 100% {
    box-shadow: 0 0 6px var(--accent);
    opacity: 1;
  }
  50% {
    box-shadow: 0 0 18px 4px var(--accent);
    opacity: 0.75;
  }
}

/* Build badge */

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(23, 20, 31, 0.6);
  backdrop-filter: blur(8px);
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  color: var(--text-muted);
}

.badge__pip {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #6ee7a8;
  box-shadow: 0 0 8px rgba(110, 231, 168, 0.8);
  animation: pulse-dot 2.4s ease-in-out infinite;
}

/* Hero */

.hero {
  position: relative;
  z-index: 2;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px 24px 80px;
  max-width: 720px;
  margin: 0 auto;
}

/* Hero mark */

.mark {
  position: relative;
  margin-bottom: 26px;
  line-height: 0;
}

/* Soft halo behind the logo */
.mark::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 190px;
  height: 190px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(153, 102, 204, 0.28) 0%, transparent 68%);
  pointer-events: none;
}

.mark__img {
  position: relative;
  width: 112px;
  height: 112px;
  object-fit: contain;
  filter: drop-shadow(0 6px 26px rgba(125, 79, 176, 0.55));
  animation: hover-float 7s ease-in-out infinite;
}

@keyframes hover-float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50%      { transform: translateY(-9px) rotate(-1.2deg); }
}

.eyebrow {
  color: var(--accent-light);
  font-family: var(--mono);
  font-weight: 500;
  font-size: 0.8rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 24px;
}

.hero__title {
  font-size: clamp(2.8rem, 8vw, 5.5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.hero__title-accent {
  display: block;
  background: linear-gradient(120deg, var(--accent-light), var(--accent), var(--accent-light));
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: gradient-shift 6s ease-in-out infinite;
}

@keyframes gradient-shift {
  0%, 100% { background-position: 0% center; }
  50% { background-position: 100% center; }
}

.hero__sub {
  margin-top: 20px;
  color: var(--text-muted);
  font-size: 1.02rem;
  max-width: 34ch;
}

/* Footer */

.footer {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 24px;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.footer__dot {
  margin: 0 8px;
  opacity: 0.5;
}

.footer__domain {
  color: var(--accent-light);
  font-weight: 600;
}

/* Responsive */

@media (max-width: 640px) {
  .navbar {
    padding: 22px 20px;
  }

  .badge {
    font-size: 0.66rem;
    padding: 4px 10px;
  }

  .mark__img {
    width: 92px;
    height: 92px;
  }

  .mark::before {
    width: 150px;
    height: 150px;
  }
}

@media (max-width: 400px) {
  .badge {
    display: none;
  }
}

/* Motion preferences */

@media (prefers-reduced-motion: reduce) {
  .glow--one,
  .glow--two,
  .badge__pip,
  .hero__title-accent,
  .scanline,
  .mark__img {
    animation: none;
  }

  .animate-in {
    animation-duration: 0.01ms;
    opacity: 1;
  }
}
