:root {
  --bg: #050508;
  --surface: rgba(255, 255, 255, 0.04);
  --border: rgba(255, 255, 255, 0.08);
  --text: #f0f0f5;
  --muted: rgba(240, 240, 245, 0.55);
  --accent: #7c5cff;
  --accent-2: #00e5c0;
  --accent-3: #ff6b9d;
  --glow: rgba(124, 92, 255, 0.45);
  --font: "Outfit", system-ui, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  cursor: none;
  line-height: 1.6;
}

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

button {
  font: inherit;
  border: none;
  background: none;
  cursor: none;
}

#particles {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.cursor,
.cursor-ring {
  position: fixed;
  top: 0;
  left: 0;
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  mix-blend-mode: difference;
}

.cursor {
  width: 8px;
  height: 8px;
  background: #fff;
}

.cursor-ring {
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  transition: width 0.3s var(--ease), height 0.3s var(--ease), border-color 0.3s;
}

body.is-hovering .cursor-ring {
  width: 64px;
  height: 64px;
  border-color: var(--accent);
}

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.06);
}

.scroll-progress__bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  box-shadow: 0 0 12px var(--glow);
  transition: width 0.05s linear;
}

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 3rem;
  backdrop-filter: blur(20px);
  background: rgba(5, 5, 8, 0.6);
  border-bottom: 1px solid var(--border);
}

.nav__logo {
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.nav__logo span {
  color: var(--accent);
}

.nav__links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav__links a {
  font-size: 0.9rem;
  color: var(--muted);
  transition: color 0.3s;
}

.nav__links a:hover {
  color: var(--text);
}

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6rem 2rem 4rem;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: -20%;
  background:
    radial-gradient(circle at 20% 30%, rgba(124, 92, 255, 0.25) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(0, 229, 192, 0.15) 0%, transparent 45%),
    radial-gradient(circle at 50% 50%, rgba(255, 107, 157, 0.1) 0%, transparent 60%);
  will-change: transform;
}

.hero__content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  text-align: center;
}

.hero__tag {
  display: inline-block;
  padding: 0.4rem 1rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 2rem;
  backdrop-filter: blur(10px);
}

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

.hero__line {
  display: block;
}

.hero__line--accent {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero__desc {
  font-size: 1.15rem;
  color: var(--muted);
  max-width: 540px;
  margin: 0 auto 2.5rem;
}

.hero__actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.9rem 2rem;
  border-radius: 999px;
  font-weight: 500;
  transition: transform 0.3s var(--ease), box-shadow 0.3s;
}

.btn--primary {
  background: linear-gradient(135deg, var(--accent), #5a3fd4);
  color: #fff;
  box-shadow: 0 8px 32px var(--glow);
}

.btn--primary:hover {
  box-shadow: 0 12px 48px var(--glow);
}

.btn--ghost {
  border: 1px solid var(--border);
  color: var(--text);
  backdrop-filter: blur(10px);
}

.btn--pulse.is-active {
  animation: pulse 0.6s var(--ease);
}

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

.hero__scroll-hint {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: var(--muted);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.hero__scroll-line {
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, var(--accent), transparent);
  animation: scrollLine 2s ease-in-out infinite;
}

@keyframes scrollLine {
  0%, 100% { opacity: 0.3; transform: scaleY(0.6); }
  50% { opacity: 1; transform: scaleY(1); }
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-header__num {
  display: block;
  font-size: 0.8rem;
  color: var(--accent);
  letter-spacing: 0.2em;
  margin-bottom: 0.75rem;
}

.section-header h2 {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
}

.section-header p {
  color: var(--muted);
}

.features {
  position: relative;
  z-index: 2;
  padding: 8rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.features__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.feature-card {
  position: relative;
  padding: 2rem;
  border-radius: 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  backdrop-filter: blur(20px);
  transform-style: preserve-3d;
  transition: border-color 0.3s;
  overflow: hidden;
}

.feature-card:hover {
  border-color: rgba(124, 92, 255, 0.3);
}

.feature-card__glow {
  position: absolute;
  inset: 0;
  opacity: 0;
  background: radial-gradient(circle at var(--mx, 50%) var(--my, 50%), rgba(124, 92, 255, 0.15), transparent 60%);
  transition: opacity 0.3s;
  pointer-events: none;
}

.feature-card:hover .feature-card__glow {
  opacity: 1;
}

.feature-card__icon {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: var(--accent);
}

.feature-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.feature-card p {
  font-size: 0.95rem;
  color: var(--muted);
}

.showcase {
  position: relative;
  z-index: 2;
  padding: 4rem 0 8rem;
}

.showcase__pin {
  height: 300vh;
  position: relative;
}

.showcase__track {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  align-items: center;
  gap: 2rem;
  padding: 0 3rem;
  will-change: transform;
}

.showcase__slide {
  flex: 0 0 min(70vw, 480px);
  height: 60vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 2.5rem;
  border-radius: 24px;
  background: linear-gradient(145deg, rgba(124, 92, 255, 0.12), rgba(0, 229, 192, 0.06));
  border: 1px solid var(--border);
  backdrop-filter: blur(20px);
}

.showcase__slide:nth-child(2) {
  background: linear-gradient(145deg, rgba(0, 229, 192, 0.12), rgba(124, 92, 255, 0.06));
}

.showcase__slide:nth-child(3) {
  background: linear-gradient(145deg, rgba(255, 107, 157, 0.12), rgba(124, 92, 255, 0.06));
}

.showcase__slide:nth-child(4) {
  background: linear-gradient(145deg, rgba(124, 92, 255, 0.12), rgba(255, 107, 157, 0.06));
}

.showcase__slide-num {
  font-size: 4rem;
  font-weight: 700;
  opacity: 0.15;
  line-height: 1;
  margin-bottom: auto;
}

.showcase__slide h3 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.showcase__slide p {
  color: var(--muted);
}

.stats {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: center;
  gap: 4rem;
  flex-wrap: wrap;
  padding: 6rem 2rem;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.stats__item {
  text-align: center;
}

.stats__value {
  display: block;
  font-size: clamp(3rem, 8vw, 5rem);
  font-weight: 700;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}

.stats__value::after {
  content: "+";
  font-size: 0.5em;
}

.stats__label {
  display: block;
  margin-top: 0.5rem;
  color: var(--muted);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.contact {
  position: relative;
  z-index: 2;
  padding: 8rem 2rem;
  display: flex;
  justify-content: center;
}

.contact__card {
  max-width: 520px;
  width: 100%;
  padding: 3rem;
  text-align: center;
  border-radius: 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  backdrop-filter: blur(20px);
  transform-style: preserve-3d;
}

.contact__card h2 {
  font-size: 2rem;
  margin-bottom: 0.75rem;
}

.contact__card p {
  color: var(--muted);
  margin-bottom: 2rem;
}

.contact__feedback {
  margin-top: 1.5rem;
  min-height: 1.5rem;
  color: var(--accent-2);
  font-size: 0.95rem;
}

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

.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 768px) {
  body {
    cursor: auto;
  }

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

  button,
  a {
    cursor: pointer;
  }

  .nav {
    padding: 1rem 1.5rem;
  }

  .nav__links {
    gap: 1rem;
    font-size: 0.85rem;
  }

  .showcase__track {
    padding: 0 1.5rem;
  }

  .stats {
    gap: 2rem;
  }
}

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

  html {
    scroll-behavior: auto;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
