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

:root {
  /* Dark canvas */
  --main-bg: #09090b;
  --surface: #111113;
  --surface-2: #18181b;
  --surface-hover: #1f1f23;

  /* Borders */
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);
  --border-soft: rgba(255, 255, 255, 0.05);

  /* Text scale */
  --text: #fafafa;
  --text-soft: #d4d4d8;
  --muted: #a1a1aa;
  --muted-soft: #71717a;

  /* Sharp accents */
  --violet: #8b5cf6;
  --violet-hover: #7c3aed;
  --violet-soft: rgba(139, 92, 246, 0.15);
  --violet-glow: rgba(139, 92, 246, 0.35);
  --cyan: #22d3ee;

  /* Semantic */
  --up: #22c55e;
  --up-soft: rgba(34, 197, 94, 0.15);
  --up-glow: rgba(34, 197, 94, 0.4);
  --down: #ef4444;
  --down-soft: rgba(239, 68, 68, 0.15);
  --down-glow: rgba(239, 68, 68, 0.4);
  --amber: #f59e0b;
  --amber-soft: rgba(245, 158, 11, 0.15);

  /* Typography */
  --font: 'Geist', -apple-system, system-ui, sans-serif;
  --font-mono: 'Geist Mono', ui-monospace, monospace;

  /* Metrics */
  --radius: 12px;
  --radius-sm: 8px;
  --max-w: 1180px;

  /* Motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  color-scheme: dark;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  background: var(--main-bg);
  color: var(--text);
  letter-spacing: -0.011em;
  font-feature-settings: 'ss01', 'cv11';
  position: relative;
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.5;
}

/* Ambient glow — subtle violet halo, same as dashboard */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(ellipse 70% 55% at 80% -10%, rgba(139, 92, 246, 0.14), transparent 60%),
    radial-gradient(ellipse 50% 40% at 0% 100%, rgba(34, 211, 238, 0.05), transparent 60%);
}

body > * { position: relative; z-index: 1; }

::selection { background: var(--violet-soft); color: var(--text); }

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

/* ───────────────────────── Nav ───────────────────────── */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  background: rgba(9, 9, 11, 0.65);
  border-bottom: 1px solid var(--border-soft);
}

.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0.95rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: -0.02em;
  color: var(--text);
}

.logo-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--up);
  box-shadow: 0 0 10px var(--up-glow), 0 0 0 3px var(--up-soft);
  animation: pulse 2.4s ease-in-out infinite;
  flex-shrink: 0;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-link {
  color: var(--muted);
  font-size: 0.875rem;
  font-weight: 500;
  padding: 0.5rem 0.85rem;
  border-radius: 8px;
  transition: color 0.18s var(--ease), background 0.18s var(--ease);
}
.nav-link:hover { color: var(--text); background: var(--surface); }

/* ─────────── Buttons ─────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--font);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  padding: 0.6rem 1.05rem;
  border-radius: 9px;
  cursor: pointer;
  transition: all 0.2s var(--ease);
  border: 1px solid transparent;
  white-space: nowrap;
}
.btn:active { transform: scale(0.98); }

.btn-primary {
  background: var(--violet);
  color: #fff;
  border-color: var(--violet);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.10) inset, 0 4px 18px rgba(139, 92, 246, 0.28);
}
.btn-primary:hover {
  background: var(--violet-hover);
  box-shadow: 0 0 0 3px var(--violet-soft), 0 0 30px var(--violet-glow), 0 1px 0 rgba(255, 255, 255, 0.10) inset;
}

.btn-ghost {
  background: transparent;
  color: var(--text-soft);
  border-color: var(--border);
}
.btn-ghost:hover {
  background: var(--surface);
  border-color: var(--border-strong);
  color: var(--text);
}

.btn-lg { padding: 0.75rem 1.3rem; font-size: 0.95rem; }

/* ───────────────────────── Hero ───────────────────────── */
.hero {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 6rem 1.5rem 4rem;
  text-align: center;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.35rem 0.85rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 0.78rem;
  color: var(--muted);
  letter-spacing: -0.005em;
  margin-bottom: 1.75rem;
  animation: fadeUp 0.55s var(--ease) both;
}
.hero-pill strong { color: var(--text); font-weight: 500; }
.hero-pill .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--violet);
  box-shadow: 0 0 10px var(--violet-glow);
}

.hero h1 {
  font-size: clamp(2.5rem, 6vw, 4.4rem);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.035em;
  color: var(--text);
  max-width: 18ch;
  margin: 0 auto 1.25rem;
  animation: fadeUp 0.6s var(--ease) 0.05s both;
}

.hero h1 .accent {
  background: linear-gradient(135deg, #c4b5fd 0%, #8b5cf6 50%, #22d3ee 110%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-sub {
  font-size: clamp(1rem, 1.6vw, 1.18rem);
  color: var(--muted);
  max-width: 42rem;
  margin: 0 auto 2rem;
  letter-spacing: -0.008em;
  animation: fadeUp 0.6s var(--ease) 0.12s both;
}

.hero-cta {
  display: flex;
  gap: 0.65rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 0.85rem;
  animation: fadeUp 0.6s var(--ease) 0.18s both;
}

.hero-reassurance {
  font-size: 0.8rem;
  color: var(--muted-soft);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  animation: fadeUp 0.6s var(--ease) 0.24s both;
}
.hero-reassurance svg { color: var(--up); }

/* ─────────── Hero visual : mini dashboard ─────────── */
.hero-visual {
  margin: 4.5rem auto 0;
  max-width: 860px;
  position: relative;
  animation: fadeUp 0.7s var(--ease) 0.3s both;
}

.hero-visual::before {
  content: '';
  position: absolute;
  inset: -40px -40px 0;
  background: radial-gradient(ellipse 60% 50% at 50% 40%, rgba(139, 92, 246, 0.18), transparent 70%);
  z-index: -1;
  pointer-events: none;
}

.mock-window {
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow:
    0 40px 80px -20px rgba(0, 0, 0, 0.7),
    0 0 0 1px var(--border-soft),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
  overflow: hidden;
}

.mock-titlebar {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.7rem 1rem;
  border-bottom: 1px solid var(--border-soft);
}
.mock-titlebar .dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--border-strong);
}
.mock-titlebar .mock-url {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--muted-soft);
  padding: 0.2rem 0.6rem;
  background: var(--main-bg);
  border-radius: 6px;
  border: 1px solid var(--border-soft);
}

.mock-body { padding: 1.25rem; display: flex; flex-direction: column; gap: 0.625rem; }

.mock-monitor {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  gap: 1rem;
  padding: 0.85rem 1rem;
  background: var(--main-bg);
  border: 1px solid var(--border-soft);
  border-radius: 10px;
  transition: border-color 0.2s var(--ease);
}
.mock-monitor:hover { border-color: var(--border); }

.mock-status {
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--up);
  box-shadow: 0 0 10px var(--up-glow);
  animation: pulse 2.6s ease-in-out infinite;
}
.mock-monitor.down .mock-status {
  background: var(--down);
  box-shadow: 0 0 10px var(--down-glow);
  animation: pulse-fast 1.4s ease-in-out infinite;
}

.mock-info { display: flex; flex-direction: column; gap: 0.15rem; min-width: 0; }
.mock-name {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text);
  letter-spacing: -0.01em;
}
.mock-url-small {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--muted-soft);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mock-uptime {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-soft);
  letter-spacing: -0.01em;
}

.mock-pill {
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.22rem 0.55rem;
  border-radius: 6px;
  background: var(--up-soft);
  color: var(--up);
  border: 1px solid rgba(34, 197, 94, 0.25);
}
.mock-monitor.down .mock-pill {
  background: var(--down-soft);
  color: var(--down);
  border-color: rgba(239, 68, 68, 0.25);
}

.mock-spark {
  display: flex;
  gap: 2px;
  align-items: end;
  height: 22px;
}
.mock-spark span {
  width: 4px;
  background: var(--up);
  border-radius: 1px;
  opacity: 0.85;
}
.mock-monitor.down .mock-spark span:last-child {
  background: var(--down);
}

/* ───────────────────────── Sections ───────────────────────── */
.section {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 5rem 1.5rem;
}

.section-head {
  text-align: center;
  max-width: 42rem;
  margin: 0 auto 3rem;
}

.section-eyebrow {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--violet);
  margin-bottom: 0.85rem;
}

.section-head h2 {
  font-size: clamp(1.8rem, 3.4vw, 2.6rem);
  font-weight: 600;
  letter-spacing: -0.025em;
  color: var(--text);
  line-height: 1.1;
  margin-bottom: 0.85rem;
}

.section-head p {
  color: var(--muted);
  font-size: 1.02rem;
  letter-spacing: -0.008em;
}

/* ─────────── Features ─────────── */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: all 0.25s var(--ease);
  position: relative;
  overflow: hidden;
  opacity: 0;
  transform: translateY(12px);
}
.feature-card.in-view {
  animation: fadeUp 0.55s var(--ease) forwards;
}
.feature-card:nth-child(2).in-view { animation-delay: 0.08s; }
.feature-card:nth-child(3).in-view { animation-delay: 0.16s; }
.feature-card:nth-child(4).in-view { animation-delay: 0.04s; }
.feature-card:nth-child(5).in-view { animation-delay: 0.12s; }
.feature-card:nth-child(6).in-view { animation-delay: 0.20s; }
.feature-card:nth-child(7).in-view { animation-delay: 0.08s; }
.feature-card:nth-child(8).in-view { animation-delay: 0.16s; }
.feature-card:nth-child(9).in-view { animation-delay: 0.24s; }
.feature-card:nth-child(10).in-view { animation-delay: 0.12s; }
.feature-card:nth-child(11).in-view { animation-delay: 0.20s; }
.feature-card:nth-child(12).in-view { animation-delay: 0.28s; }
.feature-card:nth-child(13).in-view { animation-delay: 0.16s; }

.feature-card:hover {
  transform: translateY(-2px);
  border-color: var(--border-strong);
  background: var(--surface-2);
}

.feature-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at var(--mx, 50%) var(--my, 0%), rgba(139, 92, 246, 0.08), transparent 50%);
  opacity: 0;
  transition: opacity 0.3s var(--ease);
  pointer-events: none;
}
.feature-card:hover::before { opacity: 1; }

.feature-icon {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  background: var(--violet-soft);
  color: var(--violet);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  border: 1px solid rgba(139, 92, 246, 0.25);
}
.feature-card:nth-child(2) .feature-icon { background: var(--up-soft); color: var(--up); border-color: rgba(34, 197, 94, 0.25); }
.feature-card:nth-child(3) .feature-icon { background: rgba(34, 211, 238, 0.12); color: var(--cyan); border-color: rgba(34, 211, 238, 0.25); }
.feature-card:nth-child(4) .feature-icon { background: var(--amber-soft); color: var(--amber); border-color: rgba(245, 158, 11, 0.25); }
.feature-card:nth-child(5) .feature-icon { background: var(--down-soft); color: var(--down); border-color: rgba(239, 68, 68, 0.25); }
.feature-card:nth-child(8) .feature-icon { background: var(--up-soft); color: var(--up); border-color: rgba(34, 197, 94, 0.25); }
.feature-card:nth-child(9) .feature-icon { background: rgba(34, 211, 238, 0.12); color: var(--cyan); border-color: rgba(34, 211, 238, 0.25); }
.feature-card:nth-child(11) .feature-icon { background: var(--amber-soft); color: var(--amber); border-color: rgba(245, 158, 11, 0.25); }

.feature-card h3 {
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--text);
  margin-bottom: 0.4rem;
}

.feature-card p {
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.55;
  letter-spacing: -0.005em;
}

/* ─────────── Pricing ─────────── */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  max-width: 1200px;
  margin: 0 auto;
}

.plan-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  position: relative;
  transition: all 0.25s var(--ease);
}
.plan-card:hover {
  transform: translateY(-2px);
  border-color: var(--border-strong);
}

.plan-card.plan-pro,
.plan-card.plan-solo {
  border-color: rgba(139, 92, 246, 0.4);
  background: linear-gradient(180deg, rgba(139, 92, 246, 0.06), var(--surface));
}
.plan-card.plan-pro:hover,
.plan-card.plan-solo:hover {
  border-color: var(--violet);
  box-shadow: 0 0 30px rgba(139, 92, 246, 0.18);
}

.plan-card.plan-enterprise {
  border-color: rgba(148, 163, 184, 0.35);
  background: linear-gradient(180deg, rgba(148, 163, 184, 0.04), var(--surface));
}
.plan-card.plan-enterprise:hover {
  border-color: var(--border-strong);
}

.plan-card.plan-agency {
  border-color: rgba(245, 158, 11, 0.32);
  background: linear-gradient(180deg, rgba(245, 158, 11, 0.05), var(--surface));
}
.plan-card.plan-agency:hover {
  border-color: var(--amber);
  box-shadow: 0 0 30px rgba(245, 158, 11, 0.18);
}

.plan-popular-badge {
  position: absolute;
  top: -11px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--violet);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  padding: 0.25rem 0.7rem;
  border-radius: 20px;
  white-space: nowrap;
  box-shadow: 0 0 20px var(--violet-glow);
  text-transform: uppercase;
}

.plan-card-header { display: flex; flex-direction: column; gap: 0.4rem; }

.plan-name {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.plan-card.plan-pro .plan-name,
.plan-card.plan-solo .plan-name { color: var(--violet); }
.plan-card.plan-agency .plan-name { color: var(--amber); }
.plan-card.plan-enterprise .plan-name { color: var(--muted); }

.plan-tagline {
  font-size: 0.82rem;
  color: var(--muted);
  letter-spacing: -0.005em;
}

.plan-price { display: flex; align-items: baseline; gap: 0.3rem; }

.plan-amount {
  font-family: var(--font);
  font-size: 2.5rem;
  font-weight: 600;
  line-height: 1;
  color: var(--text);
  letter-spacing: -0.035em;
}

.plan-period { font-size: 0.85rem; color: var(--muted-soft); }

.plan-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  flex: 1;
}

.plan-features li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.88rem;
  color: var(--text-soft);
  letter-spacing: -0.005em;
}
.plan-features li svg { flex-shrink: 0; color: var(--up); }
.plan-card.plan-pro .plan-features li svg,
.plan-card.plan-solo .plan-features li svg { color: var(--violet); }
.plan-card.plan-agency .plan-features li svg { color: var(--amber); }
.plan-card.plan-enterprise .plan-features li svg { color: var(--muted); }

.plan-cta {
  width: 100%;
  justify-content: center;
  font-size: 0.9rem;
  padding: 0.7rem 1rem;
  margin-top: auto;
}

.plan-card.plan-free .plan-cta {
  background: var(--surface-2);
  color: var(--text);
  border: 1px solid var(--border-strong);
}
.plan-card.plan-free .plan-cta:hover { background: var(--surface-hover); }

.plan-card.plan-agency .plan-cta {
  background: var(--amber);
  color: #1a1300;
  border-color: var(--amber);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.15) inset, 0 4px 18px rgba(245, 158, 11, 0.25);
}
.plan-card.plan-agency .plan-cta:hover {
  background: #fbbf24;
  box-shadow: 0 0 0 3px var(--amber-soft), 0 0 30px rgba(245, 158, 11, 0.35), 0 1px 0 rgba(255, 255, 255, 0.15) inset;
}

/* ─────────── CTA band ─────────── */
.cta-band {
  max-width: var(--max-w);
  margin: 0 auto 5rem;
  padding: 0 1.5rem;
}
.cta-band-inner {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.15), rgba(34, 211, 238, 0.05));
  border: 1px solid rgba(139, 92, 246, 0.3);
  border-radius: 18px;
  padding: clamp(2.5rem, 5vw, 4rem) clamp(1.5rem, 4vw, 3rem);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-band-inner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 70% at 50% 100%, rgba(139, 92, 246, 0.2), transparent 70%);
  pointer-events: none;
}
.cta-band h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 600;
  letter-spacing: -0.025em;
  margin-bottom: 0.75rem;
  position: relative;
}
.cta-band p {
  color: var(--muted);
  margin-bottom: 1.75rem;
  position: relative;
}
.cta-band .btn { position: relative; }

/* ───────────────────────── Footer ───────────────────────── */
.footer {
  border-top: 1px solid var(--border-soft);
  padding: 2rem 1.5rem;
}
.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.footer-left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--muted);
  font-size: 0.85rem;
}
.footer-left .brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text);
  font-weight: 500;
}
.footer-left .sep { color: var(--muted-soft); }
.footer-right {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}
.footer-right a {
  color: var(--muted);
  font-size: 0.85rem;
  padding: 0.4rem 0.7rem;
  border-radius: 6px;
  transition: color 0.18s var(--ease), background 0.18s var(--ease);
}
.footer-right a:hover { color: var(--text); background: var(--surface); }

/* ───────────────────────── Animations ───────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 transparent, 0 0 8px currentColor; opacity: 1; }
  50%      { box-shadow: 0 0 0 4px transparent, 0 0 4px currentColor; opacity: 0.6; }
}
@keyframes pulse-fast {
  0%, 100% { box-shadow: 0 0 0 0 transparent, 0 0 6px currentColor; opacity: 1; }
  50%      { box-shadow: 0 0 0 4px transparent, 0 0 3px currentColor; opacity: 0.55; }
}

/* ───────────────────────── Responsive ───────────────────────── */
@media (max-width: 1100px) {
  .pricing-grid { grid-template-columns: repeat(2, 1fr); max-width: 720px; }
}

@media (max-width: 900px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .pricing-grid { grid-template-columns: 1fr; max-width: 420px; }
  .plan-popular-badge { left: 1.5rem; transform: none; }
}

@media (max-width: 640px) {
  .nav-inner { padding: 0.85rem 1rem; }
  .nav-link { display: none; }
  .hero { padding: 4rem 1rem 3rem; }
  .section { padding: 3.5rem 1rem; }
  .cta-band { padding: 0 1rem; margin-bottom: 3.5rem; }
  .features-grid { grid-template-columns: 1fr; }
  .hero-visual { margin-top: 3rem; }
  .mock-monitor {
    grid-template-columns: auto 1fr auto;
    gap: 0.75rem;
  }
  .mock-spark { display: none; }
  .mock-url-small { max-width: 140px; }
  .footer-inner { flex-direction: column; align-items: flex-start; gap: 1rem; }
}
