@import url("https://fonts.googleapis.com/css2?family=Syne:wght@400;500;600;700;800&family=Epilogue:wght@300;400;500;600&family=JetBrains+Mono:wght@300;400;500&display=swap");

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

:root {
  --bg: #06040a;
  --surface: #0c0912;
  --surface2: #110e1a;
  --border: #1e1628;
  --border2: #2d2040;
  --accent: #a855f7;
  --accent2: #9333ea;
  --accent-light: #c084fc;
  --accent-glow: rgba(168, 85, 247, 0.15);
  --accent-glow2: rgba(168, 85, 247, 0.05);
  --text: #e8dff8;
  --text-muted: #5a4870;
  --text-dim: #9080b0;
  --premium: #d4af37;
  --premium-glow: rgba(212, 175, 55, 0.12);
  --radius: 4px;
  --radius-lg: 8px;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: "Epilogue", sans-serif;
  font-weight: 400;
  font-size: 15px;
  line-height: 1.65;
  overflow-x: hidden;
  min-height: 100vh;
  cursor: none;
  background-image:
    radial-gradient(ellipse at 50% 0%, rgba(100, 40, 180, 0.12) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 80%, rgba(88, 101, 242, 0.06) 0%, transparent 40%),
    radial-gradient(ellipse at 10% 90%, rgba(168, 85, 247, 0.05) 0%, transparent 40%);
  background-attachment: fixed;
}

.cursor {
  position: fixed;
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition:
    width 0.2s,
    height 0.2s;
  box-shadow: 0 0 10px rgba(168, 85, 247, 0.6);
}
.cursor-ring {
  position: fixed;
  width: 30px;
  height: 30px;
  border: 1px solid rgba(168, 85, 247, 0.35);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
  transition:
    width 0.3s,
    height 0.3s,
    border-color 0.3s;
}
body:has(a:hover) .cursor,
body:has(button:hover) .cursor {
  width: 14px;
  height: 14px;
}
body:has(a:hover) .cursor-ring,
body:has(button:hover) .cursor-ring {
  width: 48px;
  height: 48px;
  border-color: rgba(168, 85, 247, 0.6);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(168, 85, 247, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(168, 85, 247, 0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
  z-index: 0;
  animation: gridDrift 20s linear infinite;
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  background:
    linear-gradient(180deg, transparent 0%, rgba(6, 4, 10, 0.1) 50%, transparent 100%),
    radial-gradient(ellipse at 50% 50%, transparent 60%, rgba(6, 4, 10, 0.7) 100%);
  background-size: 100% 4px, 100% 100%;
  pointer-events: none;
  z-index: 0;
}

nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 52px;
  height: 64px;
  border-bottom: 1px solid var(--border);
  background: rgba(6, 4, 10, 0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-family: "Syne", sans-serif;
  font-weight: 800;
  font-size: 17px;
  letter-spacing: 0.04em;
  background: linear-gradient(135deg, #c084fc 0%, #a855f7 40%, #9333ea 70%, #7c3aed 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  background-size: 200% 200%;
  animation: gradientShift 4s ease-in-out infinite;
  transition: filter 0.3s ease;
}
.nav-logo:hover {
  filter: brightness(1.3) drop-shadow(0 0 8px rgba(168, 85, 247, 0.5));
}
.logo-mark {
  width: 26px;
  height: 26px;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
  flex-shrink: 0;
  box-shadow: 0 0 14px rgba(168, 85, 247, 0.5);
  animation: logoSpin 8s linear infinite;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}
.nav-logo:hover .logo-mark {
  box-shadow: 0 0 22px rgba(168, 85, 247, 0.8);
  transform: scale(1.1);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
  list-style: none;
}
.nav-links a {
  display: block;
  padding: 6px 16px;
  color: var(--text-dim);
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.02em;
  border-radius: var(--radius);
  position: relative;
  transition:
    color 0.3s cubic-bezier(0.16, 1, 0.3, 1),
    background 0.3s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.nav-links a:hover {
  color: var(--text);
  background: rgba(168, 85, 247, 0.1);
  transform: translateY(-1px);
}
.nav-links a.active {
  color: var(--accent-light);
  background: rgba(168, 85, 247, 0.1);
  box-shadow: 0 0 12px rgba(168, 85, 247, 0.15);
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 24px;
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  border: none;
  border-radius: 0;
  cursor: none;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 10px 100%, 0 calc(100% - 10px));
}
.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(255, 255, 255, 0.015) 2px,
    rgba(255, 255, 255, 0.015) 4px
  );
  opacity: 0;
  transition: opacity 0.3s;
}
.btn:hover::before {
  opacity: 1;
}
.btn::after {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(168, 85, 247, 0.12), transparent);
  transition: none;
}
.btn:hover::after {
  animation: btnSweep 0.6s ease forwards;
}

.btn-ghost {
  background: rgba(12, 9, 18, 0.8);
  color: var(--text-dim);
  border: 1px solid var(--border2);
  backdrop-filter: blur(4px);
}
.btn-ghost:hover {
  color: var(--accent-light);
  border-color: rgba(168, 85, 247, 0.5);
  box-shadow: 0 0 16px rgba(168, 85, 247, 0.12), inset 0 0 16px rgba(168, 85, 247, 0.04);
  text-shadow: 0 0 8px rgba(168, 85, 247, 0.4);
}

.btn-primary {
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.2) 0%, rgba(147, 51, 234, 0.35) 100%);
  color: var(--accent-light);
  border: 1px solid rgba(168, 85, 247, 0.4);
  box-shadow: 0 0 20px rgba(168, 85, 247, 0.15), inset 0 1px 0 rgba(168, 85, 247, 0.15);
}
.btn-primary:hover {
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.3) 0%, rgba(147, 51, 234, 0.5) 100%);
  box-shadow: 0 0 30px rgba(168, 85, 247, 0.35), 0 0 60px rgba(168, 85, 247, 0.1), inset 0 0 20px rgba(168, 85, 247, 0.08);
  transform: translateY(-1px);
  text-shadow: 0 0 12px rgba(192, 132, 252, 0.6);
  border-color: rgba(168, 85, 247, 0.7);
}

.btn-large {
  padding: 14px 36px;
  font-size: 13px;
}

.btn-outline {
  background: rgba(168, 85, 247, 0.04);
  color: var(--accent-light);
  border: 1px solid rgba(168, 85, 247, 0.25);
}
.btn-outline:hover {
  background: rgba(168, 85, 247, 0.1);
  border-color: rgba(168, 85, 247, 0.5);
  box-shadow: 0 0 20px rgba(168, 85, 247, 0.15);
  text-shadow: 0 0 8px rgba(168, 85, 247, 0.4);
}

section {
  position: relative;
  z-index: 1;
}
.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 52px;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-light);
  border: 1px solid rgba(168, 85, 247, 0.2);
  border-radius: 2px;
  background: var(--accent-glow2);
}

.section-title {
  font-family: "Syne", sans-serif;
  font-size: clamp(28px, 3.5vw, 42px);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text);
  line-height: 1.1;
}
.section-title span {
  color: var(--accent-light);
}

.badge {
  display: inline-block;
  padding: 3px 9px;
  font-size: 11px;
  font-family: "JetBrains Mono", monospace;
  border-radius: 2px;
}
.badge-free {
  background: rgba(168, 85, 247, 0.1);
  color: var(--accent-light);
  border: 1px solid rgba(168, 85, 247, 0.2);
}
.badge-premium {
  background: var(--premium-glow);
  color: var(--premium);
  border: 1px solid rgba(212, 175, 55, 0.25);
}

footer {
  border-top: 1px solid var(--border);
  padding: 44px 0;
  margin-top: 80px;
  position: relative;
  z-index: 1;
}
footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(168, 85, 247, 0.3), transparent);
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}
.footer-links {
  display: flex;
  gap: 24px;
  list-style: none;
}
.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 13px;
  transition: color 0.3s ease, text-shadow 0.3s ease;
}
.footer-links a:hover {
  color: var(--accent-light);
  text-shadow: 0 0 12px rgba(168, 85, 247, 0.3);
}
.footer-copy {
  font-size: 13px;
  color: var(--text-muted);
  font-family: "JetBrains Mono", monospace;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.4;
  }
}
@keyframes slideRight {
  from {
    left: -100%;
  }
  to {
    left: 100%;
  }
}
@keyframes gradientShift {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}
@keyframes logoSpin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}
@keyframes glowPulse {
  0%, 100% {
    box-shadow: 0 0 14px rgba(168, 85, 247, 0.5);
  }
  50% {
    box-shadow: 0 0 28px rgba(168, 85, 247, 0.8);
  }
}
@keyframes btnSweep {
  0% {
    left: -100%;
  }
  100% {
    left: 150%;
  }
}
@keyframes gridDrift {
  0% {
    background-position: 0 0, 0 0;
  }
  100% {
    background-position: 48px 48px, 48px 48px;
  }
}
@keyframes scanline {
  0% {
    top: -10%;
  }
  100% {
    top: 110%;
  }
}

.animate-fade-up {
  animation: fadeUp 0.7s cubic-bezier(0.16, 1, 0.3, 1) both;
}
.delay-1 {
  animation-delay: 0.1s;
}
.delay-2 {
  animation-delay: 0.2s;
}
.delay-3 {
  animation-delay: 0.3s;
}
.delay-4 {
  animation-delay: 0.4s;
}
.delay-5 {
  animation-delay: 0.5s;
}

::-webkit-scrollbar {
  width: 4px;
}
::-webkit-scrollbar-track {
  background: var(--bg);
}
::-webkit-scrollbar-thumb {
  background: var(--border2);
  border-radius: 2px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--accent);
}
::selection {
  background: rgba(168, 85, 247, 0.3);
  color: var(--text);
}

.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: none;
  background: none;
  border: none;
  padding: 6px;
}
.nav-hamburger span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--text-dim);
}

@media (max-width: 768px) {
  nav {
    padding: 0 24px;
    flex-wrap: wrap;
  }
  .container {
    padding: 0 24px;
  }
  .nav-links,
  .nav-cta {
    display: none;
  }
  .nav-hamburger {
    display: flex;
  }

  /* Mobile menu open state */
  nav.nav-open {
    height: auto;
  }
  nav.nav-open .nav-links {
    display: flex;
    flex-direction: column;
    width: 100%;
    order: 10;
    gap: 0;
    padding: 12px 0 8px;
    border-top: 1px solid var(--border);
  }
  nav.nav-open .nav-links a {
    padding: 12px 8px;
    font-size: 14px;
    border-radius: 0;
    border-bottom: 1px solid var(--border);
  }
  nav.nav-open .nav-links li:last-child a {
    border-bottom: none;
  }
  nav.nav-open .nav-cta {
    display: flex;
    width: 100%;
    order: 11;
    padding: 10px 0 16px;
    gap: 10px;
    border-top: 1px solid var(--border);
  }
  nav.nav-open .nav-cta .btn {
    flex: 1;
    justify-content: center;
    text-align: center;
  }

  /* Hamburger X animation */
  .nav-hamburger span {
    transition: transform 0.3s, opacity 0.3s;
  }
  nav.nav-open .nav-hamburger span:nth-child(1) {
    transform: translateY(6.5px) rotate(45deg);
  }
  nav.nav-open .nav-hamburger span:nth-child(2) {
    opacity: 0;
  }
  nav.nav-open .nav-hamburger span:nth-child(3) {
    transform: translateY(-6.5px) rotate(-45deg);
  }

  body {
    cursor: auto;
  }
  .cursor,
  .cursor-ring {
    display: none;
  }
}
