:root {
  --bg: #FAFAFC;
  --bg-alt: #F5F3EF;
  --surface: #EDE8F5;
  --surface-hover: #E3DCF0;
  --panel: rgba(255, 255, 255, 0.85);
  --border: rgba(124, 92, 252, 0.15);
  --border-strong: rgba(124, 92, 252, 0.30);
  --text: #1A1A2E;
  --text-secondary: #3D3D5C;
  --muted: #6B7280;
  --primary: #7C5CFC;
  --primary-hover: #6B4EE6;
  --teal: #6AC8C6;
  --teal-hover: #4ECDC4;
  --sage: #8FBC8F;
  --success: #34D399;
  --warning: #FBBF24;
  --error: #F87171;
  --inverse: #1A1A2E;
  --inverse-text: #FAFAFC;

  --shadow-sm: 0 1px 3px rgba(124, 92, 252, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 4px 16px rgba(124, 92, 252, 0.08), 0 2px 4px rgba(0, 0, 0, 0.04);
  --shadow-lg: 0 12px 40px rgba(124, 92, 252, 0.10), 0 4px 12px rgba(0, 0, 0, 0.04);
  --shadow-xl: 0 20px 60px rgba(124, 92, 252, 0.12), 0 8px 20px rgba(0, 0, 0, 0.06);
  --shadow-glow: 0 0 40px rgba(124, 92, 252, 0.15);

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-pill: 999px;

  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-out: cubic-bezier(0, 0, 0.2, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  color: var(--text);
  background: linear-gradient(160deg, var(--bg) 0%, var(--surface) 40%, var(--bg-alt) 100%);
  position: relative;
  overflow-x: hidden;
  line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  letter-spacing: -0.01em;
  line-height: 1.15;
  color: var(--text);
}

.bg-glow {
  position: fixed;
  border-radius: var(--radius-pill);
  filter: blur(120px);
  opacity: 0.18;
  pointer-events: none;
}

.glow-a {
  width: 450px;
  height: 450px;
  background: var(--teal);
  top: -150px;
  left: -100px;
}

.glow-b {
  width: 550px;
  height: 550px;
  background: var(--primary);
  bottom: -250px;
  right: -150px;
}

.container {
  width: min(1080px, 92vw);
  margin: 0 auto;
}

/* --- Header --- */
header.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  width: 100%;
  max-width: 100%;
  padding: 14px max(calc((100vw - 1080px) / 2), 4vw) 12px;
  background: rgba(255, 255, 255, 0.42);
  backdrop-filter: blur(30px) saturate(1.9);
  -webkit-backdrop-filter: blur(30px) saturate(1.9);
  border-bottom: 1px solid rgba(124, 92, 252, 0.09);
  box-shadow: 0 2px 16px rgba(124, 92, 252, 0.06);
  z-index: 10;
}

.brand {
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  text-transform: lowercase;
  color: var(--text);
  text-decoration: none;
}

.brand span {
  color: var(--primary);
}

.nav {
  display: flex;
  gap: 24px;
}

.nav a {
  text-decoration: none;
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 200ms var(--ease);
}

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

/* --- Cards --- */
.card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
  transition: box-shadow 250ms var(--ease), border-color 250ms var(--ease);
}

.card:hover {
  box-shadow: var(--shadow-lg);
  border-color: var(--border-strong);
}

/* --- Hero --- */
.hero {
  padding: clamp(32px, 5vw, 64px);
  margin-top: 32px;
  text-align: center;
  background: linear-gradient(160deg, rgba(237, 232, 245, 0.5), rgba(255, 255, 255, 0.85));
}

.kicker {
  color: var(--primary);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.8rem;
  font-weight: 600;
  margin: 0;
}

h1 {
  margin: 16px 0 18px;
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  line-height: 1.1;
}

h2 {
  margin: 0 0 12px;
  font-size: clamp(1.5rem, 2.5vw, 2rem);
}

.lead, p, li {
  color: var(--text-secondary);
  line-height: 1.6;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
  justify-content: center;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-pill);
  border: none;
  background: var(--primary);
  color: white;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  padding: 0.75rem 1.5rem;
  cursor: pointer;
  transition: background 200ms var(--ease), box-shadow 200ms var(--ease), transform 120ms var(--ease);
  box-shadow: var(--shadow-sm);
}

.btn:hover {
  background: var(--primary-hover);
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(0);
}

.btn-ghost {
  background: transparent;
  color: var(--primary);
  border: 1.5px solid var(--border-strong);
  box-shadow: none;
}

.btn-ghost:hover {
  background: var(--surface);
  color: var(--primary-hover);
  box-shadow: none;
  transform: translateY(-1px);
}

.btn-teal {
  background: var(--teal);
  color: var(--text);
}

.btn-teal:hover {
  background: var(--teal-hover);
}

.btn-small {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
}

.btn-lg {
  padding: 0.9rem 2rem;
  font-size: 1.05rem;
}

/* --- Grid --- */
.grid {
  display: grid;
  gap: 20px;
  margin-top: 24px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

/* --- Tool Cards --- */
.tool-card {
  padding: 28px;
}

.tool-card h3 {
  margin: 0 0 10px;
  font-size: clamp(1.15rem, 1.5vw, 1.35rem);
}

.tool-card ul {
  margin: 16px 0 0;
  padding-left: 18px;
}

.tool-card li {
  margin-bottom: 6px;
}

/* --- Badge --- */
.badge {
  display: inline-block;
  margin: 0 0 10px;
  background: rgba(124, 92, 252, 0.1);
  color: var(--primary);
  border: 1px solid rgba(124, 92, 252, 0.2);
  border-radius: var(--radius-pill);
  padding: 0.3rem 0.75rem;
  font-size: 0.78rem;
  font-weight: 600;
}

.badge.beta {
  background: rgba(106, 200, 198, 0.12);
  color: #3BA8A6;
  border-color: rgba(106, 200, 198, 0.25);
}

.badge.new {
  background: rgba(52, 211, 153, 0.1);
  color: #059669;
  border-color: rgba(52, 211, 153, 0.25);
}

/* --- Sections --- */
.docs, .security, .waitlist {
  margin-top: 24px;
  padding: 28px;
}

pre {
  margin: 14px 0;
  padding: 18px;
  border-radius: var(--radius-lg);
  overflow-x: auto;
  background: var(--inverse);
  border: 1px solid rgba(124, 92, 252, 0.2);
  color: #D4D0F0;
  font-family: 'JetBrains Mono', 'Fira Code', monospace;
  font-size: 0.875rem;
}

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

/* --- Forms --- */
.waitlist-form {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.waitlist-form input {
  flex: 1 1 260px;
  min-height: 48px;
  border-radius: var(--radius-pill);
  border: 1.5px solid var(--border-strong);
  background: white;
  color: var(--text);
  padding: 0 1.2rem;
  font-size: 0.95rem;
  transition: border-color 200ms var(--ease), box-shadow 200ms var(--ease);
}

.waitlist-form input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(124, 92, 252, 0.12);
}

.waitlist-form input::placeholder {
  color: var(--muted);
}

/* --- Footer --- */
/* --- Footer (Dribbble-style full-width bar) --- */
.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100vw;
  position: relative;
  left: 50%;
  transform: translateX(-50%);
  padding: 20px max(calc((100vw - 1080px) / 2), 4vw);
  margin-top: 72px;
  border-top: 1px solid rgba(124, 92, 252, 0.10);
  background: var(--bg);
}

.footer-brand {
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  text-transform: lowercase;
  color: var(--text);
  text-decoration: none;
  flex-shrink: 0;
}

.footer-brand span {
  color: var(--primary);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 28px;
  justify-content: flex-end;
  align-items: center;
}

.footer-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 200ms var(--ease);
}

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

@media (max-width: 860px) {
  .footer {
    flex-direction: column;
    gap: 16px;
    text-align: center;
    padding: 24px 4vw;
  }

  .footer-links {
    justify-content: center;
  }
}

/* --- Interior page layout --- */
.page-content {
  padding: clamp(28px, 5vw, 56px);
  margin-top: 30px;
}

.page-content h2 {
  margin-top: 32px;
}

.page-content h3 {
  margin-top: 24px;
  font-size: 1.1rem;
}

.page-content ul, .page-content ol {
  padding-left: 20px;
}

.page-content a {
  color: var(--primary);
  text-decoration: none;
  transition: color 200ms var(--ease);
}

.page-content a:hover {
  color: var(--primary-hover);
  text-decoration: underline;
}

/* --- Blog listing --- */
.post-list {
  list-style: none;
  padding: 0;
  margin: 24px 0 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.post-list li {
  color: var(--text);
}

.post-link {
  display: block;
  padding: 22px 26px;
  border-radius: var(--radius-lg);
  background: white;
  border: 1px solid var(--border);
  text-decoration: none;
  transition: border-color 200ms var(--ease), box-shadow 200ms var(--ease), transform 120ms var(--ease);
}

.post-link:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.post-link h3 {
  margin: 0 0 6px;
  color: var(--text);
  font-size: 1.15rem;
}

.post-link p {
  margin: 0;
  font-size: 0.92rem;
}

.post-link .post-date {
  display: block;
  margin-top: 8px;
  font-size: 0.8rem;
  color: var(--muted);
}

/* --- Blog post body --- */
.post-body {
  line-height: 1.75;
}

.post-body h2 {
  margin-top: 36px;
}

.post-body p + p {
  margin-top: 16px;
}

.post-meta {
  color: var(--muted);
  font-size: 0.85rem;
  margin: 4px 0 24px;
}

/* --- Legal --- */
.legal-section {
  margin-top: 28px;
}

.legal-section h3 {
  margin-bottom: 8px;
}

/* --- FAQ --- */
.faq-item {
  margin-top: 24px;
}

.faq-item h3 {
  margin: 0 0 6px;
  color: var(--text);
}

.faq-item p {
  margin: 0;
}

/* --- Hero social proof line --- */
.hero-social-proof {
  margin-top: 24px;
  font-size: 0.95rem;
  color: var(--text-secondary);
}

/* --- Social proof --- */
.social-proof {
  text-align: center;
  padding: 32px 0;
}

.social-proof .count {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  font-weight: 800;
  color: var(--primary);
}

.social-proof p {
  font-size: 0.95rem;
}

.social-proof-logos {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 16px 0;
}

.logo-placeholder {
  font-size: 0.85rem;
  color: var(--muted);
}

.social-proof-quote {
  margin: 24px auto 0;
  max-width: 480px;
  font-style: italic;
  color: var(--text-secondary);
  border: none;
  padding: 0;
}

.social-proof-quote p {
  margin: 0;
  font-size: 1rem;
}

/* --- Feature sections --- */
.feature-section {
  margin-top: 48px;
  padding: 32px;
}

.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: rgba(124, 92, 252, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  font-size: 1.5rem;
}

/* --- Persona cards --- */
.persona-card {
  padding: 32px;
  text-align: left;
}

.persona-card .persona-label {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--primary);
  font-weight: 600;
  margin: 0 0 8px;
}

.persona-card .persona-comparison {
  margin: 20px 0;
  padding: 16px;
  background: rgba(106, 200, 198, 0.06);
  border-radius: var(--radius-md);
  border-left: 3px solid var(--teal);
}

.persona-card .comparison-label {
  margin: 0 0 8px;
  font-size: 0.9rem;
}

.persona-card .comparison-label:last-child {
  margin-bottom: 0;
}

/* --- Pricing cards --- */
.pricing-card {
  padding: 36px;
  text-align: center;
  position: relative;
}

.pricing-card.featured {
  border-color: var(--primary);
  box-shadow: var(--shadow-lg), var(--shadow-glow);
}

.pricing-card .price {
  font-size: 2.5rem;
  font-weight: 800;
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  color: var(--text);
  margin: 16px 0 8px;
}

.pricing-card .price span {
  font-size: 1rem;
  font-weight: 500;
  color: var(--muted);
}

.pricing-card ul {
  list-style: none;
  padding: 0;
  margin: 20px 0;
  text-align: left;
}

.pricing-card li {
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.92rem;
}

.pricing-card li:last-child {
  border-bottom: none;
}

/* --- Urgency banner --- */
.urgency-banner {
  background: linear-gradient(90deg, var(--primary), var(--teal));
  color: white;
  text-align: center;
  padding: 12px 20px;
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: var(--radius-lg);
  margin-top: 20px;
}

/* --- Inline CTA --- */
.inline-cta {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 28px 32px;
  margin: 32px 0;
  text-align: center;
}

.inline-cta h3 {
  margin: 0 0 8px;
}

.inline-cta p {
  margin: 0 0 16px;
  font-size: 0.95rem;
}

/* --- Disabled / coming soon state --- */
.muted-card {
  opacity: 0.55;
  pointer-events: none;
}

.muted-card .badge {
  background: rgba(107, 114, 128, 0.1);
  color: var(--muted);
  border-color: rgba(107, 114, 128, 0.2);
}

/* --- Section spacing helper --- */
.section-gap {
  margin-top: 48px;
}

.section-gap-lg {
  margin-top: 72px;
}

/* --- Illustration layout --- */
.hero-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: center;
}

.hero-split .hero-text { text-align: left; }
.hero-split .hero-text .cta-row { justify-content: flex-start; }

.hero-illustration {
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-illustration img,
.hero-illustration svg {
  width: 100%;
  max-width: 380px;
  height: auto;
}

.section-illustration {
  display: flex;
  justify-content: center;
  margin: 24px 0;
}

.section-illustration img {
  width: 100%;
  max-width: 320px;
  height: auto;
}

.card-illustration {
  display: flex;
  justify-content: center;
  margin-bottom: 16px;
}

.card-illustration img {
  width: 100%;
  max-width: 200px;
  height: auto;
}

.icon-img {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
}

.icon-img-sm {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
}

.badge-img {
  width: 48px;
  height: 48px;
}

.blog-thumb {
  width: 100%;
  max-width: 80px;
  height: auto;
  border-radius: var(--radius-md);
  flex-shrink: 0;
}

.post-link-with-thumb {
  display: flex;
  gap: 20px;
  align-items: center;
}

.post-link-with-thumb .post-link-content { flex: 1; }

@media (max-width: 860px) {
  .hero-split {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-split .hero-text .cta-row { justify-content: center; }

  .hero-illustration img,
  .hero-illustration svg {
    max-width: 260px;
  }
}

/* --- Text utilities --- */
.text-center { text-align: center; }
.text-primary { color: var(--primary); }
.text-muted { color: var(--muted); }
.text-teal { color: var(--teal); }

/* --- Responsive --- */
@media (max-width: 860px) {
  .header {
    gap: 14px;
    flex-wrap: wrap;
  }

  .grid, .security-grid, .grid-3 {
    grid-template-columns: 1fr;
  }

  .hero {
    text-align: left;
  }

  .cta-row {
    justify-content: flex-start;
  }

  .nav {
    gap: 16px;
    font-size: 0.9rem;
  }
}

@media (max-width: 480px) {
  .nav {
    display: none;
  }

  .header {
    padding: 12px 4vw 8px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
