/* ===== Tokens ===== */
:root {
  --bg: #0a0b10;
  --bg-alt: #0e1018;
  --surface: #14171f;
  --surface-2: #1b1f2b;
  --border: #262c3b;
  --text: #e8eaf0;
  --text-dim: #9aa1b4;
  --brand: #6c5ce7;
  --brand-2: #8b7bff;
  --accent: #00e0b8;
  --bad: #ff5d6c;
  --radius: 16px;
  --maxw: 1140px;
  --shadow: 0 24px 60px -22px rgba(0, 0, 0, 0.7);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.container--narrow { max-width: 760px; }

/* ===== Background layers ===== */
.bg-grid {
  position: fixed;
  inset: 0;
  z-index: -2;
  background-image:
    linear-gradient(rgba(108, 92, 231, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(108, 92, 231, 0.05) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 40%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 40%, transparent 100%);
}
.bg-aurora {
  position: fixed;
  top: -300px;
  left: 50%;
  transform: translateX(-50%);
  width: 1100px;
  height: 800px;
  z-index: -1;
  background:
    radial-gradient(circle at 30% 40%, rgba(108, 92, 231, 0.28), transparent 55%),
    radial-gradient(circle at 70% 55%, rgba(0, 224, 184, 0.18), transparent 55%);
  filter: blur(40px);
  animation: aurora 16s ease-in-out infinite alternate;
}
@keyframes aurora {
  0%   { transform: translateX(-50%) translateY(0) rotate(0deg); }
  100% { transform: translateX(-46%) translateY(40px) rotate(8deg); }
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 600;
  font-size: 15px;
  padding: 11px 20px;
  border-radius: 10px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px) scale(0.99); }
.btn--primary {
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: #fff;
  box-shadow: 0 8px 24px -8px rgba(108, 92, 231, 0.7);
  position: relative;
  overflow: hidden;
}
.btn--primary::after {
  content: '';
  position: absolute;
  top: 0; left: -120%;
  width: 60%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.35), transparent);
  transform: skewX(-20deg);
}
.btn--primary:hover::after { animation: shine 0.9s ease; }
@keyframes shine { to { left: 140%; } }
.btn--primary:hover { box-shadow: 0 14px 36px -8px rgba(108, 92, 231, 0.95); transform: translateY(-2px); }
.btn--ghost {
  background: rgba(255, 255, 255, 0.02);
  color: var(--text);
  border-color: var(--border);
}
.btn--ghost:hover { background: var(--surface-2); border-color: var(--brand); transform: translateY(-2px); }
.btn--lg { padding: 15px 28px; font-size: 16px; }
.btn--block { width: 100%; }

/* ===== Nav ===== */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10, 11, 16, 0.7);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s ease, background 0.25s ease;
}
.nav.scrolled { border-color: var(--border); background: rgba(10, 11, 16, 0.92); }
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.logo {
  display: flex; align-items: center; gap: 9px;
  font-weight: 800; font-size: 20px; letter-spacing: -0.02em;
}
.logo__dot {
  width: 14px; height: 14px; border-radius: 50%;
  background: linear-gradient(135deg, var(--brand-2), var(--accent));
  box-shadow: 0 0 0 4px rgba(108, 92, 231, 0.2);
  animation: beat 2.4s ease-in-out infinite;
}
@keyframes beat {
  0%, 100% { transform: scale(1); box-shadow: 0 0 0 4px rgba(108, 92, 231, 0.2); }
  50% { transform: scale(1.18); box-shadow: 0 0 0 7px rgba(108, 92, 231, 0.08); }
}
.nav__links { display: flex; gap: 30px; }
.nav__links a { color: var(--text-dim); font-size: 15px; font-weight: 500; transition: color 0.15s ease; }
.nav__links a:hover { color: var(--text); }
.nav__actions { display: flex; gap: 10px; align-items: center; }
.nav__burger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 6px; }
.nav__burger span { width: 24px; height: 2px; background: var(--text); border-radius: 2px; }

/* ===== Reveal animation ===== */
[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s cubic-bezier(0.2, 0.7, 0.2, 1),
              transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
}
[data-reveal].in { opacity: 1; transform: translateY(0); }
[data-delay="1"] { transition-delay: 0.09s; }
[data-delay="2"] { transition-delay: 0.18s; }
[data-delay="3"] { transition-delay: 0.27s; }
@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; transition: none; }
  .bg-aurora, .logo__dot, .marquee__track { animation: none; }
}

/* ===== Hero ===== */
.hero { position: relative; padding: 96px 0 84px; }
.hero__inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--brand-2);
  font-size: 13px; font-weight: 600;
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 22px;
}
.badge__pulse {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 rgba(0, 224, 184, 0.6);
  animation: ping 1.8s ease-out infinite;
}
@keyframes ping {
  0% { box-shadow: 0 0 0 0 rgba(0, 224, 184, 0.6); }
  70%, 100% { box-shadow: 0 0 0 9px rgba(0, 224, 184, 0); }
}
.hero h1 {
  font-size: clamp(2.3rem, 5vw, 3.6rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
  font-weight: 900;
  margin-bottom: 20px;
}
.hero h1 em {
  font-style: normal;
  background: linear-gradient(135deg, var(--brand-2), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero__sub { font-size: 18px; color: var(--text-dim); max-width: 480px; margin-bottom: 28px; }
.hero__cta { display: flex; gap: 14px; flex-wrap: wrap; }
.hero__note { margin-top: 16px; font-size: 14px; color: var(--text-dim); }

/* Hero visual */
.hero__visual { position: relative; display: flex; justify-content: center; }
.glow-ring {
  position: absolute;
  width: 380px; height: 380px;
  border-radius: 50%;
  background: conic-gradient(from 0deg, var(--brand), var(--accent), var(--brand-2), var(--brand));
  filter: blur(60px);
  opacity: 0.4;
  animation: spin 14s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.card {
  background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.01));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  backdrop-filter: blur(8px);
}
.status-card {
  position: relative;
  width: 100%;
  max-width: 380px;
  padding: 22px;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease;
  will-change: transform;
}
.status-card__head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
  font-size: 15px;
}
.status-card__head strong { flex: 1; }
.status-card__live {
  font-size: 10px; font-weight: 700; letter-spacing: 0.08em;
  color: var(--accent);
  border: 1px solid rgba(0, 224, 184, 0.35);
  padding: 2px 7px; border-radius: 5px;
}
.dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
.dot--ok { background: var(--accent); box-shadow: 0 0 12px var(--accent); }
.dot--bad { background: var(--bad); box-shadow: 0 0 12px var(--bad); }
.status-list { list-style: none; padding: 14px 0; }
.status-list li {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 14px; padding: 9px 0; color: var(--text-dim);
  transition: color 0.3s ease;
}
.status-list b { font-weight: 600; font-variant-numeric: tabular-nums; transition: color 0.3s ease; }
.status-list .ok { color: var(--accent); }
.status-list .bad { color: var(--bad); }
.status-list li.is-down span { color: var(--text); }
.status-card__foot {
  display: flex; align-items: center; gap: 8px;
  padding-top: 14px; border-top: 1px solid var(--border);
  font-size: 13px; color: var(--text-dim);
}
.spark {
  width: 28px; height: 12px; border-radius: 3px;
  background: linear-gradient(90deg, var(--brand), var(--accent));
  background-size: 200% 100%;
  animation: flow 3s linear infinite;
}
@keyframes flow { to { background-position: 200% 0; } }

/* ===== Marquee ===== */
.logos { padding: 40px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.logos p {
  text-align: center; font-size: 13px;
  text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--text-dim); margin-bottom: 22px;
}
.marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.marquee__track {
  display: flex;
  gap: 56px;
  width: max-content;
  animation: marquee 28s linear infinite;
}
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__track span {
  font-weight: 700; font-size: 19px; color: var(--text-dim);
  opacity: 0.55; letter-spacing: -0.02em; white-space: nowrap;
}
@keyframes marquee { to { transform: translateX(-50%); } }

/* ===== Stats ===== */
.stats { padding: 64px 0; }
.grid { display: grid; gap: 22px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.stat { text-align: center; }
.stat__num {
  font-size: clamp(2rem, 4vw, 2.9rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  background: linear-gradient(135deg, #fff, var(--brand-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-variant-numeric: tabular-nums;
}
.stat__label { color: var(--text-dim); font-size: 14px; margin-top: 4px; }

/* ===== Sections ===== */
.section { padding: 88px 0; }
.section--alt { background: var(--bg-alt); }
.section__head { text-align: center; max-width: 620px; margin: 0 auto 52px; }
.eyebrow {
  display: inline-block; color: var(--brand-2);
  font-weight: 600; font-size: 14px;
  text-transform: uppercase; letter-spacing: 0.1em;
  margin-bottom: 12px;
}
.section__head h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  letter-spacing: -0.02em; line-height: 1.2; margin-bottom: 12px;
}
.section__head p { color: var(--text-dim); font-size: 17px; }

/* ===== Feature cards ===== */
.feature { padding: 28px; transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease; }
.feature:hover {
  transform: translateY(-6px);
  border-color: var(--brand);
  box-shadow: 0 18px 40px -22px rgba(108, 92, 231, 0.8);
}
.feature__icon {
  width: 48px; height: 48px;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
  background: var(--surface-2);
  border-radius: 12px; margin-bottom: 16px;
  transition: transform 0.2s ease;
}
.feature:hover .feature__icon { transform: scale(1.12) rotate(-6deg); }
.feature h3 { font-size: 18px; margin-bottom: 6px; }
.feature p { color: var(--text-dim); font-size: 15px; }

/* ===== Steps ===== */
.steps .step { text-align: center; padding: 16px; }
.step__num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 46px; height: 46px; border-radius: 50%;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  font-weight: 700; font-size: 19px; margin-bottom: 16px;
  box-shadow: 0 8px 20px -8px rgba(108, 92, 231, 0.8);
}
.step h3 { font-size: 18px; margin-bottom: 6px; }
.step p { color: var(--text-dim); font-size: 15px; }

/* ===== Testimonials ===== */
.quote { padding: 28px; display: flex; flex-direction: column; gap: 14px;
  transition: transform 0.2s ease, border-color 0.2s ease; }
.quote:hover { transform: translateY(-6px); border-color: var(--brand); }
.quote__stars { color: #ffc24b; letter-spacing: 2px; font-size: 14px; }
.quote blockquote { font-size: 15px; color: var(--text); flex: 1; }
.quote figcaption { display: flex; align-items: center; gap: 12px; }
.avatar {
  width: 40px; height: 40px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 700;
  background: linear-gradient(135deg, var(--brand), var(--accent));
  flex-shrink: 0;
}
.quote figcaption b { display: block; font-size: 14px; }
.quote figcaption i { font-style: normal; font-size: 13px; color: var(--text-dim); }

/* ===== Billing toggle ===== */
.billing-toggle {
  display: flex; align-items: center; justify-content: center;
  gap: 14px; margin-bottom: 38px;
}
.billing-toggle__label { font-size: 15px; color: var(--text-dim); font-weight: 500; transition: color 0.2s ease; }
.billing-toggle__label.is-active { color: var(--text); }
.billing-toggle__save {
  font-size: 12px; font-weight: 600; color: var(--accent);
  background: rgba(0, 224, 184, 0.12);
  padding: 2px 8px; border-radius: 999px; margin-left: 4px;
}
.switch {
  width: 50px; height: 28px; border-radius: 999px;
  background: var(--surface-2); border: 1px solid var(--border);
  cursor: pointer; position: relative; padding: 0;
  transition: background 0.25s ease;
}
.switch.on { background: linear-gradient(135deg, var(--brand), var(--brand-2)); border-color: transparent; }
.switch__knob {
  position: absolute; top: 2px; left: 2px;
  width: 22px; height: 22px; border-radius: 50%;
  background: #fff;
  transition: transform 0.25s cubic-bezier(0.3, 1.6, 0.5, 1);
}
.switch.on .switch__knob { transform: translateX(22px); }

/* ===== Pricing ===== */
.pricing { align-items: start; }
.price { padding: 30px 26px; position: relative; transition: transform 0.2s ease; }
.price--featured {
  border-color: var(--brand);
  box-shadow: 0 0 0 1px var(--brand), var(--shadow);
}
.price--featured:hover { transform: translateY(-6px) scale(1.01); }
.price__tag {
  position: absolute; top: -13px; left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  font-size: 12px; font-weight: 600;
  padding: 5px 14px; border-radius: 999px;
}
.price h3 { font-size: 19px; margin-bottom: 8px; }
.price__amount { margin-bottom: 8px; display: flex; align-items: baseline; gap: 2px; }
.price__currency { font-size: 22px; font-weight: 700; }
.price__value {
  font-size: 44px; font-weight: 900; letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}
.price__period { font-size: 16px; color: var(--text-dim); }
.price__desc { color: var(--text-dim); font-size: 14px; margin-bottom: 18px; }
.ticks { list-style: none; margin-bottom: 22px; }
.ticks li { font-size: 15px; padding: 7px 0 7px 26px; position: relative; color: var(--text-dim); }
.ticks li::before { content: '✓'; position: absolute; left: 0; color: var(--accent); font-weight: 700; }

/* ===== FAQ ===== */
.faq { display: flex; flex-direction: column; gap: 12px; }
.faq__item {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 12px; padding: 4px 20px;
  transition: border-color 0.2s ease;
}
.faq__item[open] { border-color: var(--brand); }
.faq__item summary {
  cursor: pointer; font-weight: 600; font-size: 16px;
  padding: 16px 0; list-style: none;
  display: flex; justify-content: space-between; align-items: center;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: '+'; font-size: 22px; color: var(--brand-2);
  font-weight: 400; transition: transform 0.25s ease;
}
.faq__item[open] summary::after { transform: rotate(45deg); }
.faq__item p { color: var(--text-dim); padding-bottom: 16px; font-size: 15px; }

/* ===== CTA ===== */
.cta { padding: 88px 0; }
.cta__inner {
  text-align: center; position: relative; overflow: hidden;
  background: linear-gradient(135deg, #1a1740, #14122e);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 60px 30px;
}
.cta__inner::before {
  content: '';
  position: absolute; top: -50%; left: -10%;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(0, 224, 184, 0.25), transparent 65%);
  pointer-events: none;
}
.cta h2 {
  font-size: clamp(1.7rem, 3.5vw, 2.4rem);
  letter-spacing: -0.02em; margin-bottom: 12px;
  max-width: 600px; margin-inline: auto;
  position: relative;
}
.cta p { color: var(--text-dim); font-size: 17px; margin-bottom: 26px; position: relative; }
.cta .btn { position: relative; }

/* ===== Footer ===== */
.footer { border-top: 1px solid var(--border); padding-top: 56px; }
.footer__inner { display: grid; grid-template-columns: 1.4fr 2fr; gap: 40px; padding-bottom: 40px; }
.footer__brand p { color: var(--text-dim); font-size: 15px; margin-top: 12px; max-width: 260px; }
.footer__cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.footer__cols h4 { font-size: 14px; margin-bottom: 12px; }
.footer__cols a { display: block; color: var(--text-dim); font-size: 14px; padding: 4px 0; transition: color 0.15s ease; }
.footer__cols a:hover { color: var(--text); }
.footer__bottom {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px;
  padding: 22px 0; border-top: 1px solid var(--border);
  font-size: 13px; color: var(--text-dim);
}
.footer__demo { opacity: 0.7; }

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .hero__inner { grid-template-columns: 1fr; gap: 40px; }
  .hero__visual { order: -1; }
  .grid--3 { grid-template-columns: 1fr; }
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .nav__links, .nav__actions { display: none; }
  .nav__burger { display: flex; }
  .nav__links.open {
    display: flex; position: absolute; top: 68px; left: 0; right: 0;
    flex-direction: column; gap: 0;
    background: var(--bg-alt); border-bottom: 1px solid var(--border);
    padding: 8px 24px 16px;
  }
  .nav__links.open a { padding: 12px 0; }
  .footer__inner { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .section { padding: 60px 0; }
  .hero { padding: 56px 0; }
  .grid--4 { grid-template-columns: 1fr 1fr; }
  .footer__cols { grid-template-columns: 1fr 1fr; }
  .cta__inner { padding: 44px 22px; }
}
