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

:root {
  --void:   #0a0a0f;
  --peak:   #7F77DD;
  --ascent: #AFA9EC;
  --cloud:  #F5F4FF;
  --mid:    #534AB7;
  --dark:   #3C3489;
  --text:   rgba(255,255,255,0.85);
  --muted:  rgba(255,255,255,0.4);
  --border: rgba(255,255,255,0.08);
  --card:   rgba(255,255,255,0.04);
}

html { scroll-behavior: smooth; }

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

/* Subtle grid texture */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(127,119,221,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(127,119,221,0.03) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
  z-index: 0;
}

section, nav, footer { position: relative; z-index: 1; }

/* ── Typography ───────────────────────────────────────────────────────────── */
h1, h2, h3 {
  font-family: 'Bebas Neue', sans-serif;
  letter-spacing: 0.02em;
  line-height: 0.95;
  color: #fff;
}

h1 { font-size: clamp(72px, 12vw, 130px); }
h2 { font-size: clamp(48px, 7vw, 80px); }
h3 { font-size: 18px; font-family: 'DM Sans', sans-serif; font-weight: 500; letter-spacing: 0; line-height: 1.3; }
h4 { font-size: 15px; font-weight: 500; color: #fff; }

em { color: var(--peak); font-style: normal; }

code {
  font-family: 'DM Mono', monospace;
  font-size: 13px;
  background: rgba(127,119,221,0.12);
  border: 0.5px solid rgba(127,119,221,0.3);
  border-radius: 5px;
  padding: 1px 6px;
  color: var(--ascent);
}

/* ── Nav ──────────────────────────────────────────────────────────────────── */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 0.5px solid var(--border);
  background: rgba(10,10,15,0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.nav-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 32px;
  height: 60px;
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 20px;
  letter-spacing: 0.14em;
  color: #fff;
}

.nav-links {
  display: flex;
  gap: 24px;
  flex: 1;
}

.nav-links a {
  font-size: 13px;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.15s;
}
.nav-links a:hover { color: #fff; }

.nav-cta {
  font-size: 13px;
  font-weight: 500;
  background: var(--peak);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 8px 18px;
  text-decoration: none;
  transition: background 0.15s;
}
.nav-cta:hover { background: var(--ascent); }

/* ── Buttons ──────────────────────────────────────────────────────────────── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--peak);
  color: #fff;
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  font-weight: 500;
  border: none;
  border-radius: 10px;
  padding: 14px 28px;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s, transform 0.1s;
}
.btn-primary:hover { background: #9991e8; }
.btn-primary:active { transform: scale(0.98); }

.btn-ghost {
  display: inline-flex;
  align-items: center;
  font-size: 15px;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.15s;
}
.btn-ghost:hover { color: #fff; }

/* ── Section shared ───────────────────────────────────────────────────────── */
.section-label {
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--peak);
  margin-bottom: 16px;
}

.section-sub {
  font-size: 16px;
  color: var(--muted);
  margin-top: 12px;
  margin-bottom: 56px;
}

/* ── Hero ─────────────────────────────────────────────────────────────────── */
.hero {
  max-width: 1080px;
  margin: 0 auto;
  padding: 100px 32px 80px;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--muted);
  background: var(--card);
  border: 0.5px solid var(--border);
  border-radius: 20px;
  padding: 6px 14px;
  margin-bottom: 36px;
  animation: fade-up 0.5s ease both;
}

.dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--peak);
  animation: pulse 2s ease infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.hero-h1 {
  margin-bottom: 28px;
  animation: fade-up 0.5s 0.1s ease both;
}

.hero-sub {
  max-width: 480px;
  font-size: 17px;
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 36px;
  animation: fade-up 0.5s 0.2s ease both;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 28px;
  animation: fade-up 0.5s 0.3s ease both;
}

.hero-social {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 64px;
  animation: fade-up 0.5s 0.4s ease both;
}

.avatars { display: flex; }
.av {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid var(--void);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  font-weight: 500;
  color: rgba(255,255,255,0.8);
  margin-left: -6px;
}
.av:first-child { margin-left: 0; }

/* Hero preview card */
.preview-card {
  background: rgba(15,15,26,0.9);
  border: 0.5px solid rgba(127,119,221,0.35);
  border-radius: 16px;
  padding: 22px;
  max-width: 460px;
  animation: fade-up 0.5s 0.5s ease both;
}

.preview-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}

.preview-logo {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 13px;
  letter-spacing: 0.14em;
  color: var(--peak);
}

.preview-timer {
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  color: var(--muted);
}

.preview-quote {
  border-left: 2px solid var(--peak);
  background: rgba(127,119,221,0.08);
  border-radius: 0 8px 8px 0;
  padding: 10px 14px;
  margin-bottom: 8px;
}

.preview-quote p {
  font-size: 13px;
  color: rgba(255,255,255,0.8);
  line-height: 1.5;
  margin-bottom: 4px;
  font-style: italic;
}

.preview-quote span {
  font-size: 11px;
  color: var(--muted);
}

.preview-modes {
  display: flex;
  gap: 6px;
  margin-top: 12px;
}

.preview-modes span {
  font-size: 11px;
  font-weight: 500;
  padding: 4px 12px;
  border-radius: 20px;
  border: 0.5px solid var(--border);
  color: var(--muted);
}

.preview-modes span.active {
  background: rgba(127,119,221,0.2);
  border-color: var(--peak);
  color: var(--ascent);
}

/* ── Features ─────────────────────────────────────────────────────────────── */
.features {
  max-width: 1080px;
  margin: 0 auto;
  padding: 100px 32px;
  border-top: 0.5px solid var(--border);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 0.5px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
}

.feat {
  background: var(--void);
  padding: 32px 28px;
  transition: background 0.2s;
}
.feat:hover { background: var(--card); }

.feat-icon {
  width: 40px;
  height: 40px;
  background: rgba(127,119,221,0.12);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.feat h3 { margin-bottom: 8px; }
.feat p { font-size: 14px; color: var(--muted); line-height: 1.6; }

/* ── Testimonials ─────────────────────────────────────────────────────────── */
.testimonials {
  max-width: 1080px;
  margin: 0 auto;
  padding: 100px 32px;
  border-top: 0.5px solid var(--border);
}

.testi-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.testi {
  background: var(--card);
  border: 0.5px solid var(--border);
  border-radius: 14px;
  padding: 24px;
  transition: border-color 0.2s;
}
.testi:hover { border-color: rgba(127,119,221,0.3); }

.testi p {
  font-size: 15px;
  color: rgba(255,255,255,0.75);
  line-height: 1.65;
  font-style: italic;
  margin-bottom: 14px;
}

.testi span {
  font-size: 12px;
  color: var(--muted);
}

/* ── Pricing ──────────────────────────────────────────────────────────────── */
.pricing {
  max-width: 1080px;
  margin: 0 auto;
  padding: 100px 32px;
  border-top: 0.5px solid var(--border);
}

.plans {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  max-width: 680px;
}

.plan {
  background: var(--card);
  border: 0.5px solid var(--border);
  border-radius: 16px;
  padding: 28px;
}

.plan-featured {
  border-color: var(--peak);
  background: rgba(127,119,221,0.07);
  position: relative;
}

.plan-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 500;
  background: var(--peak);
  color: #fff;
  border-radius: 20px;
  padding: 3px 10px;
  margin-bottom: 14px;
  letter-spacing: 0.04em;
}

.plan-name {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 28px;
  letter-spacing: 0.06em;
  color: #fff;
  margin-bottom: 4px;
}

.plan-price {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 52px;
  line-height: 1;
  color: #fff;
  margin-bottom: 6px;
}
.plan-price span {
  font-size: 16px;
  font-family: 'DM Sans', sans-serif;
  color: var(--muted);
  font-weight: 400;
}

.plan-desc {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 20px;
}

.plan ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin-bottom: 24px;
}

.plan li {
  font-size: 13px;
  color: rgba(255,255,255,0.65);
  display: flex;
  align-items: center;
  gap: 8px;
}

.plan li::before {
  content: '';
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: rgba(127,119,221,0.25);
  border: 0.5px solid var(--peak);
  flex-shrink: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='8' viewBox='0 0 8 8'%3E%3Cpolyline points='1,4 3,6 7,2' fill='none' stroke='%237F77DD' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
}

.plan-btn-primary {
  width: 100%;
  padding: 13px;
  background: var(--peak);
  border: none;
  border-radius: 10px;
  color: #fff;
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s;
  margin-bottom: 10px;
}
.plan-btn-primary:hover { background: #9991e8; }
.plan-btn-primary:disabled { opacity: 0.5; cursor: not-allowed; }

.plan-btn-ghost {
  display: block;
  width: 100%;
  padding: 13px;
  background: transparent;
  border: 0.5px solid var(--border);
  border-radius: 10px;
  color: var(--muted);
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  font-weight: 500;
  text-align: center;
  text-decoration: none;
  transition: all 0.15s;
}
.plan-btn-ghost:hover { border-color: rgba(255,255,255,0.2); color: #fff; }

.plan-note {
  font-size: 11px;
  color: var(--muted);
  text-align: center;
}

/* ── Install ──────────────────────────────────────────────────────────────── */
.install {
  max-width: 1080px;
  margin: 0 auto;
  padding: 100px 32px;
  border-top: 0.5px solid var(--border);
}

.steps {
  display: flex;
  flex-direction: column;
  gap: 0;
  max-width: 520px;
  margin-bottom: 48px;
}

.step {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.step-num {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(127,119,221,0.2);
  border: 0.5px solid var(--peak);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'DM Mono', monospace;
  font-size: 12px;
  color: var(--peak);
  flex-shrink: 0;
}

.step h4 { margin-bottom: 4px; }
.step p { font-size: 14px; color: var(--muted); line-height: 1.5; padding-bottom: 20px; }

.step-line {
  width: 1px;
  height: 20px;
  background: var(--border);
  margin-left: 15px;
}

/* ── Footer ───────────────────────────────────────────────────────────────── */
footer {
  border-top: 0.5px solid var(--border);
  padding: 32px;
}

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

.footer-copy {
  font-size: 12px;
  color: var(--muted);
}

.footer-links {
  display: flex;
  gap: 20px;
}

.footer-links a {
  font-size: 12px;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.15s;
}
.footer-links a:hover { color: #fff; }

/* ── Animations ───────────────────────────────────────────────────────────── */
@keyframes fade-up {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Responsive ───────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .features-grid { grid-template-columns: 1fr; }
  .testi-grid    { grid-template-columns: 1fr; }
  .plans         { grid-template-columns: 1fr; }
  .nav-links     { display: none; }
  .footer-inner  { flex-direction: column; text-align: center; }
  .hero-actions  { flex-direction: column; align-items: flex-start; }
}

/* ── Success / error states ───────────────────────────────────────────────── */
.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  padding: 14px 20px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 500;
  z-index: 9999;
  animation: fade-up 0.2s ease both;
}
.toast-success {
  background: #0a1a12;
  border: 0.5px solid #1D9E75;
  color: #9FE1CB;
}
.toast-error {
  background: #1a0a0a;
  border: 0.5px solid #A32D2D;
  color: #F09595;
}
