/* ═══════════════════════════════════════════════
   PULSE X — Landing Page Styles
   Theme: Dark / Purple-Pink Gradient
   Fonts: Sora (headings) + DM Sans (body)
   ═══════════════════════════════════════════════ */

/* ─── Reset & Base ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* Core palette */
  --purple: #7c5cff;
  --pink: #ff5aa5;
  --purple-deep: #5b3fd4;
  --purple-muted: rgba(124,92,255,.15);
  --pink-muted: rgba(255,90,165,.12);

  /* Surfaces */
  --bg: #0a0a0f;
  --bg-elevated: #111119;
  --bg-card: #15151f;
  --bg-card-hover: #1a1a28;

  /* Borders */
  --stroke: rgba(255,255,255,.06);
  --stroke-hover: rgba(124,92,255,.35);

  /* Text */
  --text: #eeeef2;
  --text-muted: rgba(238,238,242,.55);
  --text-dim: rgba(238,238,242,.35);

  /* Sizing */
  --container: 1120px;
  --radius: 14px;
  --radius-sm: 10px;
  --radius-xs: 7px;

  /* Gradients */
  --grad: linear-gradient(135deg, var(--pink), var(--purple));
  --grad-text: linear-gradient(135deg, #ff6eb4, #9b7aff);
  --grad-glow: radial-gradient(ellipse at 50% 0%, rgba(124,92,255,.20) 0%, transparent 60%);
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'DM Sans', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img, svg { display: block; }
ul { list-style: none; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* ─── Section utilities ─── */
.section-tag {
  display: inline-block;
  font-family: 'Sora', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 12px;
}

.section-title {
  font-family: 'Sora', sans-serif;
  font-size: clamp(28px, 5vw, 44px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.5px;
  margin-bottom: 48px;
  color: var(--text);
}

/* ─── Buttons ─── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: 'Sora', sans-serif;
  font-weight: 600;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all .25s cubic-bezier(.4,0,.2,1);
  text-decoration: none;
  white-space: nowrap;
}

.btn__icon { width: 18px; height: 18px; flex-shrink: 0; }

.btn--sm { font-size: 13px; padding: 9px 20px; }
.btn--lg { font-size: 15px; padding: 14px 32px; }
.btn--xl { font-size: 17px; padding: 18px 44px; }
.btn--full { width: 100%; }

.btn--primary {
  background: var(--grad);
  color: #fff;
  box-shadow: 0 4px 20px rgba(124,92,255,.30), 0 1px 3px rgba(0,0,0,.2);
}
.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(124,92,255,.45), 0 2px 6px rgba(0,0,0,.3);
}
.btn--primary:active { transform: translateY(0); }

.btn--ghost {
  background: rgba(255,255,255,.06);
  color: var(--text);
  border: 1px solid var(--stroke);
}
.btn--ghost:hover {
  background: rgba(255,255,255,.10);
  border-color: var(--stroke-hover);
  transform: translateY(-2px);
}

/* ─── Badge ─── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: 'Sora', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .5px;
  padding: 6px 14px;
  border-radius: 100px;
  background: var(--purple-muted);
  color: #c4b5fd;
  border: 1px solid rgba(124,92,255,.18);
}
.badge--sm { font-size: 10px; padding: 4px 10px; }

/* ═══════════════ NAV ═══════════════ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(10,10,15,.6);
  backdrop-filter: blur(20px) saturate(1.4);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  border-bottom: 1px solid var(--stroke);
  transition: background .3s, box-shadow .3s;
}
.nav.scrolled {
  background: rgba(10,10,15,.92);
  box-shadow: 0 4px 30px rgba(0,0,0,.3);
}

.nav__inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.nav__logo { width: 28px; height: 28px; }
.nav__wordmark {
  font-family: 'Sora', sans-serif;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: .3px;
}
.nav__x {
  background: var(--grad-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav__links {
  display: flex;
  gap: 28px;
  margin-left: auto;
}
.nav__link {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  transition: color .2s;
}
.nav__link:hover { color: var(--text); }

.nav__cta { margin-left: 16px; }

.nav__burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  margin-left: auto;
}
.nav__burger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all .3s;
}
.nav__burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__burger.open span:nth-child(2) { opacity: 0; }
.nav__burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav__mobile {
  display: none;
  flex-direction: column;
  gap: 8px;
  padding: 16px 24px 24px;
  border-top: 1px solid var(--stroke);
}
.nav__mobile.open { display: flex; }
.nav__mobile-link {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-muted);
  padding: 8px 0;
}
.nav__mobile-link:hover { color: var(--text); }
.nav__mobile-cta { text-align: center; margin-top: 8px; }

/* ═══════════════ HERO ═══════════════ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 120px 24px 80px;
  overflow: hidden;
}

.hero__bg-glow {
  position: absolute;
  top: -30%;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 900px;
  background: radial-gradient(
    ellipse at center,
    rgba(124,92,255,.14) 0%,
    rgba(255,90,165,.06) 35%,
    transparent 65%
  );
  pointer-events: none;
  z-index: 0;
}

.hero__content {
  position: relative;
  z-index: 2;
  max-width: 600px;
  margin: 0 auto 0 calc((100vw - var(--container)) / 2 + 24px);
}

.hero__logo-wrap {
  margin-bottom: 28px;
  animation: heroFadeUp .8s cubic-bezier(.16,1,.3,1) both;
}
.hero__logo {
  width: 72px;
  height: 72px;
  filter: drop-shadow(0 4px 24px rgba(124,92,255,.35));
}

.hero__title {
  font-family: 'Sora', sans-serif;
  font-size: clamp(36px, 6vw, 62px);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -1.5px;
  margin-bottom: 20px;
  animation: heroFadeUp .8s .1s cubic-bezier(.16,1,.3,1) both;
}
.hero__title-accent {
  background: var(--grad-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero__sub {
  font-size: 17px;
  color: var(--text-muted);
  line-height: 1.65;
  max-width: 480px;
  margin-bottom: 24px;
  animation: heroFadeUp .8s .2s cubic-bezier(.16,1,.3,1) both;
}

.hero__badges {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 32px;
  animation: heroFadeUp .8s .28s cubic-bezier(.16,1,.3,1) both;
}

.hero__ctas {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  animation: heroFadeUp .8s .36s cubic-bezier(.16,1,.3,1) both;
}

@keyframes heroFadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Floating panel mockup */
.hero__panel-float {
  position: absolute;
  right: calc((100vw - var(--container)) / 2 + 40px);
  top: 50%;
  transform: translateY(-50%) rotate(2deg);
  z-index: 1;
  animation: panelFloat 6s ease-in-out infinite, heroFadeUp .8s .5s cubic-bezier(.16,1,.3,1) both;
}

@keyframes panelFloat {
  0%, 100% { transform: translateY(-50%) rotate(2deg); }
  50% { transform: translateY(calc(-50% - 12px)) rotate(1deg); }
}

.panel-mock {
  width: 240px;
  background: #14141e;
  border: 1px solid rgba(124,92,255,.25);
  border-radius: 14px;
  overflow: hidden;
  box-shadow:
    0 20px 60px rgba(0,0,0,.5),
    0 0 80px rgba(124,92,255,.10),
    inset 0 1px 0 rgba(255,255,255,.04);
}

.panel-mock__bar {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 10px 14px;
  background: rgba(255,255,255,.03);
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.panel-mock__dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: rgba(255,255,255,.12);
}
.panel-mock__title {
  font-family: 'Sora', sans-serif;
  font-size: 11px;
  font-weight: 700;
  margin-left: auto;
  color: var(--text-muted);
}

.panel-mock__body { padding: 10px; display: flex; flex-direction: column; gap: 6px; }
.panel-mock__row { display: flex; gap: 6px; }
.panel-mock__btn {
  flex: 1;
  padding: 10px 6px;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 8px;
  font-family: 'Sora', sans-serif;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .5px;
  color: var(--text-muted);
  text-align: center;
}
.panel-mock__btn--accent {
  background: rgba(124,92,255,.18);
  border-color: rgba(124,92,255,.30);
  color: #c4b5fd;
}
.panel-mock__btn--red {
  background: rgba(220,38,38,.18);
  border-color: rgba(220,38,38,.30);
  color: #fca5a5;
}

/* ═══════════════ FEATURES ═══════════════ */
.features {
  padding: 120px 0;
  position: relative;
}
.features::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--stroke), transparent);
}

.features__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
  padding: 32px 28px;
  transition: all .3s cubic-bezier(.4,0,.2,1);
}
.feature-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--stroke-hover);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,.25), 0 0 40px rgba(124,92,255,.06);
}

.feature-card__icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: var(--purple-muted);
  margin-bottom: 20px;
}
.feature-card__icon svg {
  width: 22px; height: 22px;
  color: var(--purple);
}

.feature-card__title {
  font-family: 'Sora', sans-serif;
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 10px;
}

.feature-card__text {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ═══════════════ HOW IT WORKS ═══════════════ */
.how {
  padding: 100px 0 120px;
}

.how__steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  counter-reset: step;
}

.how__step {
  text-align: center;
  position: relative;
}

.how__num {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  border-radius: 50%;
  background: var(--grad);
  font-family: 'Sora', sans-serif;
  font-size: 22px;
  font-weight: 800;
  color: #fff;
  box-shadow: 0 4px 24px rgba(124,92,255,.30);
}

.how__step-title {
  font-family: 'Sora', sans-serif;
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 8px;
}

.how__step-text {
  font-size: 14px;
  color: var(--text-muted);
  max-width: 280px;
  margin: 0 auto;
  line-height: 1.6;
}

/* ═══════════════ SOCIAL PROOF ═══════════════ */
.proof {
  padding: 100px 0 120px;
  position: relative;
}
.proof::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--stroke), transparent);
}

.proof__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.testimonial {
  background: var(--bg-card);
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
  padding: 28px;
  transition: all .3s;
}
.testimonial:hover {
  border-color: var(--stroke-hover);
  transform: translateY(-3px);
}

.testimonial__text {
  font-size: 15px;
  font-style: italic;
  line-height: 1.65;
  color: var(--text);
  margin-bottom: 20px;
}
.testimonial__text::before { content: '\201C'; }
.testimonial__text::after { content: ''; }

.testimonial__author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.testimonial__avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--grad);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Sora', sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}

.testimonial__name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-dim);
}

.testimonial__role {
  font-size: 11px;
  color: var(--text-dim);
}

/* ═══════════════ DEMO ═══════════════ */
.demo {
  padding: 100px 0 120px;
  position: relative;
}
.demo::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--stroke), transparent);
}

.demo__embed {
  max-width: 800px;
  margin: 0 auto;
  aspect-ratio: 16/9;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--stroke);
  background: var(--bg-card);
}

.demo__placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  color: var(--text-dim);
}

.demo__play-icon {
  width: 68px; height: 68px;
  color: var(--purple);
  opacity: .6;
}

.demo__placeholder-text {
  font-family: 'Sora', sans-serif;
  font-size: 16px;
  font-weight: 600;
  color: var(--text-muted);
}

.demo__placeholder-sub {
  font-size: 12px;
  color: var(--text-dim);
}

.demo__iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* ═══════════════ PRICING ═══════════════ */
.pricing {
  padding: 100px 0 120px;
  position: relative;
}
.pricing::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--stroke), transparent);
}

.pricing__card {
  max-width: 420px;
  margin: 0 auto;
  background: var(--bg-card);
  border: 1px solid rgba(124,92,255,.25);
  border-radius: 20px;
  padding: 40px 36px;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0,0,0,.3), 0 0 80px rgba(124,92,255,.06);
  position: relative;
  overflow: hidden;
}
.pricing__card::before {
  content: '';
  position: absolute;
  top: -1px;
  left: -1px;
  right: -1px;
  height: 3px;
  background: var(--grad);
  border-radius: 20px 20px 0 0;
}

.pricing__logo {
  width: 52px;
  height: 52px;
  margin: 0 auto 16px;
  filter: drop-shadow(0 4px 16px rgba(124,92,255,.3));
}

.pricing__name {
  font-family: 'Sora', sans-serif;
  font-size: 24px;
  font-weight: 800;
  margin-bottom: 4px;
}

.pricing__tagline {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 28px;
}

.pricing__features {
  text-align: left;
  margin-bottom: 24px;
}
.pricing__features li {
  font-size: 14px;
  color: var(--text-muted);
  padding: 8px 0;
  border-bottom: 1px solid var(--stroke);
  display: flex;
  align-items: center;
  gap: 10px;
}
.pricing__features li:last-child { border-bottom: none; }
.pricing__features li::before {
  content: '✓';
  color: var(--purple);
  font-weight: 700;
  font-size: 13px;
  flex-shrink: 0;
}

.pricing__compat {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 28px;
}

/* ═══════════════ FAQ ═══════════════ */
.faq {
  padding: 100px 0 120px;
  position: relative;
}
.faq::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--stroke), transparent);
}

.faq__list {
  max-width: 700px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq__item {
  background: var(--bg-card);
  border: 1px solid var(--stroke);
  border-radius: var(--radius-sm);
  overflow: hidden;
  transition: border-color .3s;
}
.faq__item[open] { border-color: var(--stroke-hover); }

.faq__question {
  font-family: 'Sora', sans-serif;
  font-size: 15px;
  font-weight: 600;
  padding: 18px 24px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  transition: color .2s;
  list-style: none;
}
.faq__question::-webkit-details-marker { display: none; }
.faq__question::marker { display: none; content: ''; }
.faq__question::after {
  content: '+';
  font-size: 20px;
  font-weight: 400;
  color: var(--text-dim);
  transition: transform .3s;
  flex-shrink: 0;
}
.faq__item[open] .faq__question::after {
  transform: rotate(45deg);
  color: var(--purple);
}

.faq__answer {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.65;
  padding: 0 24px 20px;
}

/* ═══════════════ FINAL CTA ═══════════════ */
.final-cta {
  padding: 120px 0;
  position: relative;
}

.final-cta__inner {
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.final-cta__inner::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 500px;
  height: 500px;
  background: radial-gradient(
    circle,
    rgba(124,92,255,.10) 0%,
    rgba(255,90,165,.04) 40%,
    transparent 65%
  );
  pointer-events: none;
  z-index: -1;
}

.final-cta__title {
  font-family: 'Sora', sans-serif;
  font-size: clamp(28px, 5vw, 42px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.5px;
  margin-bottom: 16px;
}

.final-cta__sub {
  font-size: 16px;
  color: var(--text-muted);
  margin-bottom: 32px;
  line-height: 1.6;
}

/* ═══════════════ FOOTER ═══════════════ */
.footer {
  border-top: 1px solid var(--stroke);
  padding: 48px 0;
}

.footer__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  text-align: center;
}

.footer__brand {
  display: flex;
  align-items: center;
  gap: 10px;
}
.footer__logo { width: 24px; height: 24px; }
.footer__wordmark {
  font-family: 'Sora', sans-serif;
  font-size: 15px;
  font-weight: 700;
}

.footer__links {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  justify-content: center;
}
.footer__links a {
  font-size: 13px;
  color: var(--text-muted);
  transition: color .2s;
}
.footer__links a:hover { color: var(--text); }

.footer__copy {
  font-size: 12px;
  color: var(--text-dim);
}

/* ═══════════════ Reveal Animation ═══════════════ */
[data-reveal] {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .6s cubic-bezier(.16,1,.3,1), transform .6s cubic-bezier(.16,1,.3,1);
}
[data-reveal].revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ═══════════════ RESPONSIVE ═══════════════ */
@media (max-width: 960px) {
  .features__grid,
  .proof__grid,
  .how__steps {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero__panel-float { display: none; }

  .hero__content {
    margin: 0 auto;
    text-align: center;
    max-width: 560px;
  }
  .hero__badges { justify-content: center; }
  .hero__ctas { justify-content: center; }
  .hero__sub { margin: 0 auto 24px; }
  .hero__logo-wrap { display: flex; justify-content: center; }
}

@media (max-width: 768px) {
  .nav__links,
  .nav__cta { display: none; }
  .nav__burger { display: flex; }

  .section-title { margin-bottom: 36px; }

  .features__grid,
  .proof__grid { grid-template-columns: 1fr; }

  .how__steps { grid-template-columns: 1fr; gap: 40px; }

  .hero { min-height: auto; padding: 110px 24px 60px; }

  .pricing__card { padding: 32px 24px; }
}

@media (max-width: 480px) {
  .hero__title { letter-spacing: -0.8px; }
  .hero__ctas { flex-direction: column; }
  .hero__ctas .btn { width: 100%; }
  .btn--xl { padding: 16px 32px; font-size: 15px; }
}
