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

/* ── Tokens ── */
:root {
  --bg: #08080f;
  --bg-card: #0f0f1a;
  --bg-card-hover: #141425;
  --border: #1e1e32;
  --border-subtle: #16162a;
  --text: #e2e8f0;
  --text-muted: #64748b;
  --text-subtle: #475569;
  --accent: #6366f1;
  --accent-glow: rgba(99,102,241,0.35);
  --accent-light: #a5b4fc;
  --success: #10b981;
  --radius: 12px;
  --radius-lg: 20px;
  --font: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", sans-serif;
}

/* ── Base ── */
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

/* ── Layout ── */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Nav ── */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(8, 8, 15, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-subtle);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 16px;
  letter-spacing: -0.2px;
}

.nav-logo svg {
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-links a {
  font-size: 14px;
  color: var(--text-muted);
  transition: color 0.15s;
}

.nav-links a:hover { color: var(--text); }

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

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-family: var(--font);
  font-weight: 600;
  text-decoration: none;
  transition: all 0.15s;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  padding: 11px 22px;
  font-size: 14px;
  box-shadow: 0 0 24px var(--accent-glow);
}

.btn-primary:hover {
  background: #4f46e5;
  box-shadow: 0 0 32px var(--accent-glow);
  transform: translateY(-1px);
}

.btn-primary.btn-lg {
  padding: 14px 32px;
  font-size: 16px;
  border-radius: 10px;
}

.btn-ghost {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-muted);
  padding: 10px 20px;
  font-size: 14px;
}

.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--text);
}

/* ── Hero ── */
.hero {
  padding: 160px 0 100px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 600px;
  background: radial-gradient(ellipse at center, rgba(99,102,241,0.12) 0%, transparent 70%);
  pointer-events: none;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(99,102,241,0.1);
  border: 1px solid rgba(99,102,241,0.25);
  border-radius: 100px;
  padding: 5px 14px 5px 8px;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--accent-light);
  margin-bottom: 28px;
}

.hero-eyebrow-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 6px var(--accent);
  animation: pulse 2s ease-in-out infinite;
}

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

h1 {
  font-size: clamp(36px, 5.5vw, 60px);
  font-weight: 800;
  letter-spacing: -2px;
  line-height: 1.08;
  color: var(--text);
  margin-bottom: 24px;
  max-width: 820px;
  margin-left: auto;
  margin-right: auto;
}

h1 .accent {
  background: linear-gradient(135deg, #a5b4fc 0%, #818cf8 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-sub {
  font-size: 18px;
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto 40px;
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

.hero-meta {
  margin-top: 16px;
  font-size: 12px;
  color: var(--text-subtle);
}

/* ── Demo Window ── */
.demo-wrapper {
  max-width: 780px;
  margin: 72px auto 0;
}

.demo-window {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 40px 100px rgba(0,0,0,0.6), 0 0 0 1px rgba(255,255,255,0.04);
}

.demo-titlebar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  background: rgba(255,255,255,0.02);
}

.titlebar-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.titlebar-dot:nth-child(1) { background: #ff5f57; }
.titlebar-dot:nth-child(2) { background: #ffbd2e; }
.titlebar-dot:nth-child(3) { background: #28c840; }

.demo-titlebar-label {
  margin-left: 8px;
  font-size: 12px;
  color: var(--text-subtle);
  flex: 1;
  text-align: center;
}

.demo-body {
  display: grid;
  grid-template-columns: 1fr 300px;
  min-height: 340px;
}

.demo-page {
  padding: 28px;
  border-right: 1px solid var(--border);
  position: relative;
}

.demo-page-url {
  font-size: 11px;
  color: var(--text-subtle);
  font-family: monospace;
  margin-bottom: 16px;
}

.demo-page-title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--text);
}

.demo-page-body {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
}

.demo-selection {
  background: rgba(99,102,241,0.25);
  border-radius: 3px;
  padding: 1px 2px;
  color: var(--accent-light);
  position: relative;
}

.demo-popup {
  padding: 16px;
  background: #0f0f17;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.demo-popup-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
  font-size: 12px;
  font-weight: 600;
}

.demo-field-label {
  font-size: 10px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-subtle);
  margin-bottom: 4px;
}

.demo-field-value {
  background: #1c1c27;
  border: 1px solid var(--border);
  border-radius: 5px;
  padding: 7px 9px;
  font-size: 12px;
  color: var(--text);
}

.demo-field-value.muted {
  color: var(--text-muted);
  font-size: 11px;
}

.demo-btn-create {
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 5px;
  padding: 8px;
  font-size: 12px;
  font-weight: 600;
  text-align: center;
  margin-top: 2px;
}

.demo-created {
  background: rgba(16,185,129,0.1);
  border: 1px solid rgba(16,185,129,0.25);
  border-radius: 5px;
  padding: 7px 10px;
  font-size: 11.5px;
  color: var(--success);
  text-align: center;
}

/* ── Social proof ── */
.social-proof {
  padding: 48px 0;
  text-align: center;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.social-proof p {
  font-size: 12.5px;
  color: var(--text-subtle);
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 24px;
}

.badge-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  flex-wrap: wrap;
}

.badge {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-muted);
}

.badge-icon {
  width: 20px;
  height: 20px;
  color: var(--accent-light);
}

/* ── Features ── */
.features {
  padding: 100px 0;
}

.section-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
  text-align: center;
}

.section-title {
  font-size: clamp(28px, 3.5vw, 42px);
  font-weight: 800;
  letter-spacing: -1.5px;
  line-height: 1.1;
  text-align: center;
  margin-bottom: 16px;
}

.section-sub {
  text-align: center;
  color: var(--text-muted);
  font-size: 17px;
  max-width: 540px;
  margin: 0 auto 64px;
}

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

.feature-card {
  background: var(--bg-card);
  padding: 32px 28px;
  transition: background 0.2s;
}

.feature-card:hover {
  background: var(--bg-card-hover);
}

.feature-icon {
  width: 44px;
  height: 44px;
  background: rgba(99,102,241,0.12);
  border: 1px solid rgba(99,102,241,0.2);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  color: var(--accent-light);
}

.feature-title {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 8px;
  letter-spacing: -0.3px;
}

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

/* ── How it works ── */
.how-it-works {
  padding: 80px 0;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 56px;
  position: relative;
}

.steps::before {
  content: "";
  position: absolute;
  top: 28px;
  left: calc(33.33% / 2 + 16px);
  right: calc(33.33% / 2 + 16px);
  height: 1px;
  background: linear-gradient(to right, var(--accent) 0%, var(--border) 100%);
}

.step {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
}

.step-num {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(99,102,241,0.1);
  border: 1px solid rgba(99,102,241,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 800;
  color: var(--accent-light);
  position: relative;
  z-index: 1;
}

.step-title {
  font-size: 15px;
  font-weight: 700;
}

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

/* ── Pricing ── */
.pricing-section {
  padding: 100px 0;
}

.pricing-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  max-width: 780px;
  margin: 0 auto;
}

.pricing-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.pricing-card--pro {
  border-color: rgba(99,102,241,0.4);
  background: linear-gradient(160deg, rgba(99,102,241,0.07) 0%, var(--bg-card) 60%);
}

.pricing-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.pricing-tier {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
}

.pricing-badge {
  background: rgba(99,102,241,0.15);
  border: 1px solid rgba(99,102,241,0.3);
  color: var(--accent-light);
  font-size: 11px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 100px;
  letter-spacing: 0.3px;
}

.pricing-price {
  font-size: 42px;
  font-weight: 800;
  letter-spacing: -2px;
  color: var(--text);
  line-height: 1;
}

.pricing-price span {
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0;
  color: var(--text-muted);
}

.pricing-tbd {
  font-size: 32px;
  color: var(--text-muted);
}

.pricing-desc {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0;
}

.pricing-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 0;
  border-top: 1px solid var(--border);
  padding-top: 20px;
  margin-top: 4px;
}

.pricing-features li {
  font-size: 13.5px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 9px;
}

.pricing-features li::before {
  content: "";
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  background: rgba(99,102,241,0.15);
  border-radius: 50%;
  background-image: url("data:image/svg+xml,%3Csvg width='10' height='8' viewBox='0 0 10 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 4L3.5 6.5L9 1' stroke='%23a5b4fc' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
}

@media (max-width: 600px) {
  .pricing-grid { grid-template-columns: 1fr; }
}

/* ── CTA ── */
.cta-section {
  padding: 100px 0;
}

.cta-box {
  background: linear-gradient(135deg, rgba(99,102,241,0.12) 0%, rgba(99,102,241,0.04) 100%);
  border: 1px solid rgba(99,102,241,0.25);
  border-radius: var(--radius-lg);
  padding: 72px 48px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-box::before {
  content: "";
  position: absolute;
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 400px;
  background: radial-gradient(ellipse, rgba(99,102,241,0.08) 0%, transparent 70%);
  pointer-events: none;
}

.cta-box h2 {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 800;
  letter-spacing: -1.5px;
  margin-bottom: 16px;
}

.cta-box p {
  font-size: 17px;
  color: var(--text-muted);
  margin-bottom: 36px;
  max-width: 440px;
  margin-left: auto;
  margin-right: auto;
}

.cta-note {
  margin-top: 18px;
  font-size: 12.5px;
  color: var(--text-subtle);
}

/* ── Privacy strip ── */
.privacy-strip {
  background: rgba(16,185,129,0.05);
  border-top: 1px solid rgba(16,185,129,0.1);
  border-bottom: 1px solid rgba(16,185,129,0.1);
  padding: 20px 0;
}

.privacy-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 13.5px;
  color: var(--success);
}

.privacy-inner svg {
  flex-shrink: 0;
}

/* ── Footer ── */
footer {
  padding: 40px 0;
  border-top: 1px solid var(--border-subtle);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 14px;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 24px;
}

.footer-links a {
  font-size: 13px;
  color: var(--text-subtle);
  transition: color 0.15s;
}

.footer-links a:hover { color: var(--text-muted); }

.footer-copy {
  font-size: 12.5px;
  color: var(--text-subtle);
}

/* ── Responsive ── */
@media (max-width: 768px) {
  .feature-grid,
  .steps {
    grid-template-columns: 1fr;
  }

  .steps::before { display: none; }

  .demo-body {
    grid-template-columns: 1fr;
  }

  .demo-popup {
    border-top: 1px solid var(--border);
  }

  .nav-links { display: none; }

  .footer-inner { flex-direction: column; align-items: flex-start; gap: 16px; }
}

@media (max-width: 480px) {
  .hero { padding: 120px 0 64px; }
  h1 { letter-spacing: -1px; }
  .cta-box { padding: 48px 24px; }
  .hero-actions { flex-direction: column; }
  .btn-primary.btn-lg { width: 100%; justify-content: center; }
}
