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

/* ── design tokens ────────────────────────────────────────────────────── */
:root {
  --bg:        #0b0a14;
  --surface:   #13101e;
  --surface2:  #1a1628;
  --border:    rgba(155,93,229,.22);
  --accent:    #9b5de5;
  --accent-dk: #7b3fc0;
  --accent2:   #f72585;
  --glow:      rgba(155,93,229,.35);
  --text:      #e8e0ff;
  --muted:     #a89ec0;
  --radius:    10px;
  --max-w:     1100px;
}

/* ── base ─────────────────────────────────────────────────────────────── */
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }

/* ── layout helpers ───────────────────────────────────────────────────── */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}
.section { padding: 96px 0; }
.section-sm { padding: 64px 0; }

/* ── nav ──────────────────────────────────────────────────────────────── */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(11,10,20,.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}
.nav-logo {
  font-size: 22px;
  font-weight: 900;
  letter-spacing: -1px;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.nav-links { display: flex; align-items: center; gap: 10px; }
.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  padding: 6px 14px;
  border-radius: 8px;
  transition: color .15s, background .15s;
}
.nav-links a:hover { color: var(--text); background: var(--surface2); }
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  padding: 10px 22px;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  transition: opacity .15s, transform .1s, box-shadow .15s;
  text-decoration: none;
}
.btn:hover { opacity: .9; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-dk));
  color: #fff;
  box-shadow: 0 4px 20px var(--glow);
}
.btn-primary:hover { box-shadow: 0 6px 28px var(--glow); }
.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }
.btn-lg { font-size: 17px; padding: 13px 32px; border-radius: 12px; }

/* ── hero ─────────────────────────────────────────────────────────────── */
.hero {
  padding: 120px 0 96px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -120px; left: 50%;
  transform: translateX(-50%);
  width: 700px; height: 700px;
  background: radial-gradient(circle, rgba(155,93,229,.18) 0%, transparent 65%);
  pointer-events: none;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  background: rgba(155,93,229,.12);
  border: 1px solid rgba(155,93,229,.3);
  padding: 5px 14px;
  border-radius: 100px;
  margin-bottom: 28px;
  letter-spacing: .3px;
}
.hero-badge::before { content: '✦'; font-size: 10px; }
h1 {
  font-size: clamp(40px, 7vw, 76px);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -2.5px;
  margin-bottom: 24px;
}
h1 .grad {
  background: linear-gradient(135deg, var(--accent) 30%, var(--accent2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-sub {
  font-size: clamp(16px, 2.2vw, 20px);
  color: var(--muted);
  max-width: 580px;
  margin: 0 auto 44px;
  line-height: 1.6;
}
.hero-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ── path picker ──────────────────────────────────────────────────────── */
.path-picker {
  max-width: 560px;
  margin: 0 auto 16px;
}
.path-input-wrap {
  display: flex;
  align-items: center;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  transition: border-color .15s, box-shadow .15s;
  box-shadow: 0 4px 24px rgba(0,0,0,.3);
}
.path-input-wrap:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(155,93,229,.2), 0 4px 24px rgba(0,0,0,.3);
}
.path-prefix {
  font-size: 14px;
  color: var(--muted);
  padding: 0 0 0 18px;
  white-space: nowrap;
  font-family: monospace;
  font-weight: 500;
  user-select: none;
}
#slug-input {
  flex: 1;
  min-width: 0;
  border: none;
  outline: none;
  background: transparent;
  font-family: monospace;
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  padding: 16px 18px 16px 2px;
  caret-color: var(--accent);
}
#slug-input::placeholder { color: rgba(168,158,192,.5); font-weight: 400; }
.path-go {
  display: flex;
  align-items: center;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 14px;
}

/* ── hero demo (browser mock) ─────────────────────────────────────────── */
.hero-demo {
  margin-top: 64px;
  position: relative;
}
.hero-demo-window {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 24px 80px rgba(0,0,0,.6), 0 0 60px var(--glow);
  max-width: 820px;
  margin: 0 auto;
}
.demo-titlebar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 12px 16px;
  background: var(--surface2);
  border-bottom: 1px solid var(--border);
}
.demo-dot {
  width: 12px; height: 12px;
  border-radius: 50%;
}
.demo-dot:nth-child(1) { background: #ff5f56; }
.demo-dot:nth-child(2) { background: #ffbd2e; }
.demo-dot:nth-child(3) { background: #27c93f; }
.demo-url {
  margin-left: 10px;
  font-size: 12px;
  color: var(--muted);
  background: rgba(255,255,255,.05);
  padding: 3px 12px;
  border-radius: 6px;
  font-family: monospace;
  transition: color .2s;
}
.demo-url.has-slug { color: var(--accent); }
.demo-body {
  padding: 28px 32px;
  min-height: 240px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
/* post-style demo content */
.demo-profile {
  display: flex; align-items: center; gap: 12px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}
.demo-avatar {
  width: 44px; height: 44px; border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  flex-shrink: 0;
}
.demo-profile-info { display: flex; flex-direction: column; gap: 5px; }
.demo-name-bar { height: 14px; width: 120px; border-radius: 4px; background: var(--surface2); }
.demo-handle-bar { height: 10px; width: 80px; border-radius: 4px; background: rgba(255,255,255,.05); }
.demo-post {
  display: flex; flex-direction: column; gap: 8px;
}
.demo-post-title { height: 20px; width: 65%; border-radius: 5px; background: var(--surface2); }
.demo-post-line  { height: 11px; border-radius: 4px; background: rgba(255,255,255,.05); }
.demo-post-line:nth-child(2) { width: 92%; }
.demo-post-line:nth-child(3) { width: 78%; }
.demo-link-row {
  display: flex; gap: 8px; flex-wrap: wrap;
  padding-top: 8px;
  border-top: 1px solid var(--border);
}
.demo-link-chip {
  height: 28px; width: 80px; border-radius: 20px;
  background: rgba(155,93,229,.15);
  border: 1px solid rgba(155,93,229,.25);
}
.demo-link-chip:nth-child(2) { width: 64px; }
.demo-link-chip:nth-child(3) { width: 72px; }

/* ── social proof strip ───────────────────────────────────────────────── */
.proof-strip {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 24px 0;
  text-align: center;
}
.proof-text {
  font-size: 13px;
  color: var(--muted);
  font-weight: 500;
  letter-spacing: .5px;
  text-transform: uppercase;
}
.proof-items {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
  margin-top: 16px;
}
.proof-item {
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
}
.proof-item span {
  display: block;
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .5px;
  margin-top: 2px;
}

/* ── features ─────────────────────────────────────────────────────────── */
.section-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 12px;
}
.section-heading {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 800;
  letter-spacing: -1.2px;
  line-height: 1.1;
  margin-bottom: 16px;
}
.section-sub {
  font-size: 17px;
  color: var(--muted);
  max-width: 520px;
  line-height: 1.6;
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  margin-top: 56px;
}
.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 32px;
  transition: border-color .2s, box-shadow .2s, transform .2s;
}
.feature-card:hover {
  border-color: var(--accent);
  box-shadow: 0 8px 32px var(--glow);
  transform: translateY(-3px);
}
.fc-icon {
  font-size: 36px;
  margin-bottom: 20px;
  display: block;
}
.fc-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 10px;
  letter-spacing: -.3px;
}
.fc-desc {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.65;
}

/* ── how it works ─────────────────────────────────────────────────────── */
.hiw-section { background: var(--surface); }
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 32px;
  margin-top: 56px;
  position: relative;
}
.step {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.step-num {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--accent), var(--accent-dk));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 800;
  color: #fff;
  box-shadow: 0 4px 16px var(--glow);
  flex-shrink: 0;
}
.step-title {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -.3px;
}
.step-desc {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.65;
}

/* ── pricing ──────────────────────────────────────────────────────────── */
#pricing { text-align: center; }
.billing-toggle {
  display: inline-flex;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 4px;
  gap: 4px;
  margin: 32px 0 48px;
}
.billing-toggle button {
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  padding: 7px 20px;
  border-radius: 100px;
  border: none;
  cursor: pointer;
  background: transparent;
  color: var(--muted);
  transition: background .15s, color .15s;
  position: relative;
}
.billing-toggle button.active {
  background: var(--accent);
  color: #fff;
}
.save-badge {
  position: absolute;
  top: -8px;
  right: -4px;
  background: var(--accent2);
  color: #fff;
  font-size: 9px;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 100px;
  letter-spacing: .3px;
}
.pricing-card {
  background: var(--surface);
  border: 1.5px solid var(--accent);
  border-radius: 20px;
  padding: 44px;
  max-width: 440px;
  margin: 0 auto;
  box-shadow: 0 0 60px var(--glow);
}

.plan-name {
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--accent);
  margin-bottom: 12px;
}
.plan-price {
  font-size: 60px;
  font-weight: 900;
  letter-spacing: -3px;
  line-height: 1;
  margin-bottom: 4px;
}
.plan-price sup {
  font-size: 28px;
  letter-spacing: 0;
  vertical-align: super;
}
.plan-period {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 8px;
}
.plan-yearly-note {
  font-size: 13px;
  color: var(--accent2);
  font-weight: 600;
  margin-bottom: 32px;
  min-height: 20px;
}
.plan-features {
  list-style: none;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 36px;
}
.plan-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 500;
}
.plan-features li::before {
  content: '✓';
  width: 22px; height: 22px;
  border-radius: 6px;
  background: rgba(155,93,229,.2);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 800;
  flex-shrink: 0;
}
.plan-note {
  margin-top: 20px;
  font-size: 13px;
  color: var(--muted);
}

/* ── cta strip ────────────────────────────────────────────────────────── */
.cta-strip {
  background: linear-gradient(135deg, rgba(155,93,229,.12), rgba(247,37,133,.08));
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  text-align: center;
  padding: 80px 0;
}
.cta-strip h2 {
  font-size: clamp(26px, 4vw, 44px);
  font-weight: 800;
  letter-spacing: -1.2px;
  margin-bottom: 16px;
}
.cta-strip p {
  font-size: 17px;
  color: var(--muted);
  margin-bottom: 36px;
}

/* ── footer ───────────────────────────────────────────────────────────── */
footer {
  padding: 40px 0;
  border-top: 1px solid var(--border);
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-logo {
  font-size: 18px;
  font-weight: 900;
  letter-spacing: -1px;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.footer-links {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}
.footer-links a {
  font-size: 13px;
  color: var(--muted);
  transition: color .15s;
}
.footer-links a:hover { color: var(--text); }
.footer-copy {
  font-size: 12px;
  color: var(--muted);
}

/* ── responsive tweaks ────────────────────────────────────────────────── */
@media (max-width: 640px) {
  .section { padding: 72px 0; }
  .hero { padding: 80px 0 64px; }
  #slug-input { font-size: 15px; }
  .pricing-card { padding: 32px 24px; }
  .plan-price { font-size: 48px; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}
