/* ===================================
   CSS CUSTOM PROPERTIES
=================================== */
:root {
  --c-bg: #FFFFFF;
  --c-bg-soft: #F8F9FB;
  --c-bg-card: #FFFFFF;
  --c-border: #E8ECF0;
  --c-accent: #4F6EF7;
  --c-accent-dark: #3A56D4;
  --c-accent-soft: #EEF1FE;
  --c-ai: #8B5CF6;
  --c-ai-dark: #7C3AED;
  --c-ai-soft: #F3EFFE;
  --c-success: #10B981;
  --c-text: #0F1523;
  --c-text-muted: #6B7A99;
  --c-text-faint: #A8B4CC;

  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;

  --section-pad: clamp(4rem, 8vw, 7rem);
  --container-max: 1200px;
  --container-pad: clamp(1rem, 4vw, 2rem);

  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 16px;
  --r-xl: 24px;

  --shadow-sm: 0 1px 3px rgba(0,0,0,.06), 0 1px 2px rgba(0,0,0,.04);
  --shadow-md: 0 4px 16px rgba(0,0,0,.08), 0 2px 6px rgba(0,0,0,.04);
  --shadow-lg: 0 12px 40px rgba(0,0,0,.10), 0 4px 12px rgba(0,0,0,.06);
  --shadow-accent: 0 8px 32px rgba(79,110,247,.25);
}

/* ===================================
   RESET & BASE
=================================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-sans);
  color: var(--c-text);
  background: var(--c-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* ===================================
   LAYOUT
=================================== */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-pad);
}
.section-pad { padding-top: var(--section-pad); padding-bottom: var(--section-pad); }
.section-pad--sm { padding-top: calc(var(--section-pad) * 0.55); padding-bottom: calc(var(--section-pad) * 0.55); }

/* ===================================
   TYPOGRAPHY
=================================== */
.text-hero {
  font-size: clamp(2.25rem, 5vw, 3.75rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
}
.text-section {
  font-size: clamp(1.625rem, 3vw, 2.375rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
}
.text-card-h {
  font-size: 1.0625rem;
  font-weight: 600;
  line-height: 1.3;
}
.text-stat {
  font-size: clamp(1.875rem, 4vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
}
.text-sub {
  font-size: clamp(1rem, 1.5vw, 1.125rem);
  color: var(--c-text-muted);
  line-height: 1.7;
}
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--c-accent);
  margin-bottom: 1rem;
}
.section-label--ai { color: var(--c-ai); }

/* ===================================
   BUTTONS
=================================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0.75rem 1.5rem;
  border-radius: var(--r-md);
  font-size: 0.9375rem;
  font-weight: 600;
  transition: all 0.2s ease;
  white-space: nowrap;
}
.btn--primary {
  background: var(--c-accent);
  color: #fff;
  box-shadow: var(--shadow-accent);
}
.btn--primary:hover {
  background: var(--c-accent-dark);
  transform: translateY(-1px);
  box-shadow: 0 10px 36px rgba(79,110,247,.35);
}
.btn--ghost {
  background: transparent;
  color: var(--c-text-muted);
  border: 1.5px solid var(--c-border);
}
.btn--ghost:hover {
  border-color: var(--c-accent);
  color: var(--c-accent);
  background: var(--c-accent-soft);
}
.btn--lg {
  padding: 1rem 2rem;
  font-size: 1rem;
  border-radius: var(--r-lg);
}
.btn--white {
  background: #fff;
  color: var(--c-accent);
  box-shadow: 0 8px 32px rgba(0,0,0,.15);
}
.btn--white:hover {
  background: #f0f4ff;
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(0,0,0,.2);
}

/* ===================================
   SITE NAV
=================================== */
.site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 1.125rem 0;
  transition: all 0.3s ease;
}
.site-nav.is-scrolled {
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--c-border);
  padding: 0.75rem 0;
  box-shadow: var(--shadow-sm);
}
.site-nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}
.site-nav__logo {
  font-size: 1.125rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--c-text);
  display: flex;
  align-items: center;
  gap: 8px;
}
.site-nav__logo-icon {
  width: 30px; height: 30px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--c-accent), var(--c-ai));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 0.875rem;
}
.site-nav__links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}
.site-nav__links a {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--c-text-muted);
  transition: color 0.2s;
}
.site-nav__links a:hover { color: var(--c-text); }

/* ===================================
   HERO
=================================== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 5rem;
  background: linear-gradient(150deg, #FAFBFF 0%, #FFFFFF 50%, #F5F3FF 100%);
  overflow: hidden;
  position: relative;
}
.hero::before {
  content: '';
  position: absolute;
  top: -200px; right: -100px;
  width: 600px; height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(79,110,247,.08) 0%, transparent 70%);
  pointer-events: none;
}
.hero::after {
  content: '';
  position: absolute;
  bottom: -100px; left: -100px;
  width: 400px; height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(139,92,246,.06) 0%, transparent 70%);
  pointer-events: none;
}
.hero__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  padding: var(--section-pad) 0;
  position: relative;
  z-index: 1;
}
.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 14px;
  border-radius: 100px;
  background: var(--c-ai-soft);
  color: var(--c-ai);
  font-size: 0.8125rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  animation: float 3s ease-in-out infinite;
  border: 1px solid rgba(139,92,246,.15);
}
.hero__title {
  margin-bottom: 1.25rem;
}
.hero__title em {
  font-style: normal;
  background: linear-gradient(135deg, var(--c-accent), var(--c-ai));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero__sub {
  margin-bottom: 2rem;
  max-width: 480px;
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}
.hero__demo-hint {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 14px;
  font-size: 0.8125rem;
  color: var(--c-text-muted);
}
.hero__demo-hint strong {
  color: var(--c-text);
  font-weight: 600;
}

/* ===================================
   HERO SLIDER
=================================== */
.hero__slider {
  position: relative;
}
.slider-wrapper {
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--c-border);
}
.slider-track {
  display: flex;
  transition: transform 0.55s cubic-bezier(0.4, 0, 0.2, 1);
}
.slider-slide {
  flex: 0 0 100%;
  min-width: 0;
}
.slider-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 1.25rem;
}
.slider-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--c-border);
  transition: all 0.3s ease;
  border: none;
  padding: 0;
}
.slider-dot.is-active {
  width: 24px;
  border-radius: 4px;
  background: var(--c-accent);
}

/* Browser Frame */
.browser-frame {
  border-radius: 0;
  overflow: hidden;
  background: #f0f2f8;
}
.browser-bar {
  height: 36px;
  background: #e8eaf0;
  display: flex;
  align-items: center;
  padding: 0 14px;
  flex-shrink: 0;
  gap: 7px;
}
.browser-bar::before {
  content: '';
  display: inline-block;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: #FC5757;
  box-shadow: 17px 0 0 #FDBC40, 34px 0 0 #29CC41;
}
.browser-bar-address {
  flex: 1;
  height: 20px;
  background: rgba(255,255,255,.6);
  border-radius: 4px;
  margin-left: 2rem;
}
.browser-body {
  height: 280px;
  position: relative;
  overflow: hidden;
}

/* Slide 1 - Editor */
.browser-body--editor {
  display: flex;
  background: #fff;
}
.browser-body--editor::before {
  content: '';
  width: 48px;
  background: #f4f5f9;
  border-right: 1px solid var(--c-border);
  flex-shrink: 0;
}
.editor-content {
  flex: 1;
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.editor-toolbar {
  height: 30px;
  background: #f8f9fb;
  border-radius: 6px;
  border: 1px solid var(--c-border);
  display: flex;
  align-items: center;
  padding: 0 8px;
  gap: 5px;
  flex-shrink: 0;
}
.editor-toolbar-btn {
  width: 15px; height: 15px;
  border-radius: 3px;
  background: var(--c-border);
}
.editor-title-line {
  height: 18px;
  border-radius: 4px;
  background: rgba(15,21,35,.14);
  width: 55%;
  flex-shrink: 0;
}
.editor-sep {
  height: 1px;
  background: var(--c-border);
  flex-shrink: 0;
}
.editor-text-line {
  height: 9px;
  border-radius: 3px;
  background: var(--c-border);
  flex-shrink: 0;
}
.editor-text-line--short { width: 60%; }
.editor-text-line--med { width: 82%; }
.editor-text-line--full { width: 100%; }
.editor-text-line--xshort { width: 42%; }

/* Slide 2 - AI Wizard */
.browser-body--wizard {
  background: #fafbff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px;
  gap: 14px;
}
.wizard-slide-card {
  background: #fff;
  border-radius: var(--r-lg);
  border: 1px solid var(--c-border);
  padding: 18px 20px;
  width: 100%;
  box-shadow: var(--shadow-sm);
}
.wizard-slide-steps {
  display: flex;
  align-items: center;
  margin-bottom: 14px;
}
.wizard-slide-step {
  display: flex;
  align-items: center;
}
.wizard-slide-step__circle {
  width: 24px; height: 24px;
  border-radius: 50%;
  background: var(--c-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.625rem;
  font-weight: 700;
  color: var(--c-text-muted);
  flex-shrink: 0;
}
.wizard-slide-step.done .wizard-slide-step__circle {
  background: var(--c-accent);
  color: #fff;
}
.wizard-slide-step.active .wizard-slide-step__circle {
  background: var(--c-ai);
  color: #fff;
  box-shadow: 0 0 0 4px var(--c-ai-soft);
}
.wizard-slide-line {
  flex: 1;
  height: 2px;
  background: var(--c-border);
  margin: 0 6px;
}
.wizard-slide-line.done { background: var(--c-accent); }
.wizard-slide-progress-label {
  font-size: 0.75rem;
  color: var(--c-text-muted);
  font-weight: 500;
  margin-bottom: 8px;
}
.wizard-slide-bar {
  height: 6px;
  background: var(--c-border);
  border-radius: 99px;
  overflow: hidden;
}
.wizard-slide-bar__fill {
  height: 100%;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--c-accent), var(--c-ai));
  animation: fillBarSlide 2s ease-in-out infinite alternate;
}
.wizard-slide-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 8px;
}
.wizard-slide-tag {
  padding: 3px 10px;
  border-radius: 99px;
  background: var(--c-ai-soft);
  color: var(--c-ai);
  font-size: 0.6875rem;
  font-weight: 600;
}

/* Slide 3 - Post List */
.browser-body--list {
  background: #fff;
  display: flex;
  flex-direction: column;
}
.list-header-row {
  display: grid;
  grid-template-columns: 24px 1fr 80px 60px;
  gap: 8px;
  padding: 10px 16px;
  background: #f8f9fb;
  border-bottom: 1px solid var(--c-border);
  align-items: center;
}
.list-header-cell {
  height: 9px;
  border-radius: 3px;
  background: var(--c-border);
}
.list-row {
  display: grid;
  grid-template-columns: 24px 1fr 80px 60px;
  gap: 8px;
  padding: 9px 16px;
  border-bottom: 1px solid #f0f2f6;
  align-items: center;
}
.list-row:nth-child(even) { background: #fafbfd; }
.list-checkbox {
  width: 14px; height: 14px;
  border-radius: 3px;
  border: 1.5px solid var(--c-border);
  flex-shrink: 0;
}
.list-title {
  height: 9px;
  border-radius: 3px;
  background: #d8dbe6;
}
.list-title--short { width: 58%; }
.list-title--med { width: 78%; }
.list-title--long { width: 90%; }
.list-pill {
  height: 20px;
  border-radius: 99px;
  font-size: 0.6rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 8px;
}
.list-pill--pub { background: #D1FAE5; color: #065F46; }
.list-pill--draft { background: #FEF3C7; color: #92400E; }
.list-pill--arch { background: #F3F4F6; color: #6B7280; }
.list-date {
  height: 8px;
  border-radius: 3px;
  background: #e8eaf0;
  width: 65%;
}

/* ===================================
   STATS BAR
=================================== */
.stats-bar {
  background: var(--c-bg);
  border-top: 1px solid var(--c-border);
  border-bottom: 1px solid var(--c-border);
}
.stats-bar__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.stat-item {
  padding: 2.5rem 1.75rem;
  text-align: center;
  border-right: 1px solid var(--c-border);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  transition: background 0.2s;
}
.stat-item:hover { background: var(--c-bg-soft); }
.stat-item:last-child { border-right: none; }
.stat-item__icon {
  width: 48px; height: 48px;
  border-radius: var(--r-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}
.stat-item__num {
  color: var(--c-accent);
  margin-bottom: 0.375rem;
}
.stat-item__label {
  font-size: 0.875rem;
  color: var(--c-text-muted);
  line-height: 1.45;
}

/* ===================================
   AI SPOTLIGHT
=================================== */
.ai-spotlight {
  background: linear-gradient(180deg, #FAFBFF 0%, #FFFFFF 100%);
}
.ai-spotlight__header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 3.5rem;
}

/* Main Wizard Demo */
.wizard-demo {
  background: #fff;
  border: 1px solid var(--c-border);
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  max-width: 820px;
  margin: 0 auto;
}
.wizard-demo__header {
  background: var(--c-bg-soft);
  padding: 1.125rem 1.75rem;
  border-bottom: 1px solid var(--c-border);
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.wizard-demo__title {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--c-text);
}
.wizard-steps-nav {
  display: flex;
  align-items: center;
  margin-left: auto;
}
.wizard-step-nav {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 0.8125rem;
  color: var(--c-text-faint);
  font-weight: 500;
  transition: color 0.3s;
  white-space: nowrap;
}
.wizard-step-nav.is-active { color: var(--c-accent); }
.wizard-step-nav.is-done { color: var(--c-success); }
.wizard-step-nav__num {
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--c-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.6875rem;
  font-weight: 700;
  color: #fff;
  transition: background 0.3s;
  flex-shrink: 0;
}
.wizard-step-nav.is-active .wizard-step-nav__num { background: var(--c-accent); }
.wizard-step-nav.is-done .wizard-step-nav__num { background: var(--c-success); }
.wizard-step-sep {
  width: 28px;
  height: 1px;
  background: var(--c-border);
  margin: 0 6px;
}
.wizard-demo__body {
  position: relative;
  min-height: 240px;
}
.wizard-panel {
  position: absolute;
  inset: 0;
  padding: 2rem 1.75rem;
  opacity: 0;
  pointer-events: none;
  transform: translateX(20px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}
.wizard-panel.is-active {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(0);
}
.wizard-panel__label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--c-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin-bottom: 1rem;
}
.mock-select {
  display: flex;
  align-items: center;
  height: 40px;
  padding: 0 12px;
  border: 1.5px solid var(--c-border);
  border-radius: var(--r-sm);
  font-size: 0.875rem;
  color: var(--c-text-muted);
  margin-bottom: 10px;
  background: var(--c-bg);
  position: relative;
}
.mock-select.is-filled {
  border-color: var(--c-accent);
  color: var(--c-text);
  background: var(--c-accent-soft);
}
.mock-select.is-filled::after {
  content: '✓';
  position: absolute;
  right: 12px;
  color: var(--c-accent);
  font-size: 0.8125rem;
  font-weight: 700;
}
.mock-input {
  padding: 10px 12px;
  border: 1.5px solid var(--c-accent);
  border-radius: var(--r-sm);
  font-size: 0.875rem;
  color: var(--c-text);
  background: var(--c-accent-soft);
  line-height: 1.5;
}
.wizard-progress-label {
  font-size: 0.875rem;
  color: var(--c-text-muted);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 9px;
}
.wizard-spinner {
  width: 14px; height: 14px;
  border: 2px solid var(--c-ai-soft);
  border-top-color: var(--c-ai);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  flex-shrink: 0;
}
.wizard-progress {
  height: 8px;
  background: var(--c-border);
  border-radius: 99px;
  overflow: hidden;
  margin-bottom: 18px;
}
.wizard-progress__fill {
  height: 100%;
  background: linear-gradient(90deg, var(--c-accent), var(--c-ai));
  border-radius: 99px;
  width: 0;
  transition: width 1.4s ease;
}
.wizard-panel.is-active .wizard-progress__fill { width: 68%; }
.stream-lines {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.stream-line {
  height: 9px;
  border-radius: 3px;
  background: var(--c-border);
  animation: shimmer 1.5s ease-in-out infinite;
}
.stream-line:nth-child(2) { animation-delay: 0.2s; width: 82%; }
.stream-line:nth-child(3) { animation-delay: 0.4s; width: 68%; }
.wizard-results {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.wizard-result-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: var(--r-sm);
  background: var(--c-bg-soft);
  border: 1px solid var(--c-border);
  font-size: 0.875rem;
  color: var(--c-text);
}
.wizard-result-check {
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--c-success);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.625rem;
  flex-shrink: 0;
}
.wizard-panel__actions {
  display: flex;
  gap: 10px;
  margin-top: 1.25rem;
}

/* AI Chat Callout */
.ai-chat-callout {
  margin-top: 3rem;
  background: var(--c-ai-soft);
  border-radius: var(--r-xl);
  border: 1px solid rgba(139,92,246,.15);
  padding: 1.75rem 2rem;
  display: flex;
  gap: 1.5rem;
  align-items: center;
}
.ai-chat-icon {
  width: 52px; height: 52px;
  border-radius: var(--r-lg);
  background: var(--c-ai);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.ai-chat-callout__text h3 {
  font-size: 1.0625rem;
  font-weight: 700;
  margin-bottom: 4px;
}
.ai-chat-callout__text p {
  font-size: 0.9375rem;
  color: var(--c-text-muted);
}

/* ===================================
   EDITOR SHOWCASE
=================================== */
.editor-showcase { background: var(--c-bg); }
.editor-showcase__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.editor-showcase__frame {
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--c-border);
  position: relative;
}
.editor-showcase__body {
  height: 340px;
  background: #fff;
  display: flex;
  position: relative;
}
.editor-sidebar {
  width: 52px;
  background: #f4f5f9;
  border-right: 1px solid var(--c-border);
  padding: 14px 8px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
  flex-shrink: 0;
}
.editor-sidebar-icon {
  width: 32px; height: 32px;
  border-radius: var(--r-sm);
  background: var(--c-border);
}
.editor-sidebar-icon--active { background: var(--c-accent); opacity: 0.75; }
.editor-main {
  flex: 1;
  padding: 18px 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow: hidden;
}
.editor-main-toolbar {
  height: 32px;
  background: #f8f9fb;
  border: 1px solid var(--c-border);
  border-radius: var(--r-sm);
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 0 10px;
  flex-shrink: 0;
}
.editor-main-tbtn {
  width: 18px; height: 13px;
  border-radius: 2px;
  background: var(--c-border);
}
.editor-main-title {
  height: 20px;
  border-radius: 4px;
  background: rgba(15,21,35,.12);
  width: 65%;
  flex-shrink: 0;
}
.editor-main-p {
  height: 8px;
  border-radius: 3px;
  background: #e4e7ef;
  flex-shrink: 0;
}
.editor-ai-float {
  position: absolute;
  right: 14px; bottom: 14px;
  width: 170px;
  background: #fff;
  border-radius: var(--r-lg);
  border: 1px solid rgba(139,92,246,.2);
  box-shadow: 0 6px 24px rgba(139,92,246,.12);
  padding: 10px 12px;
}
.editor-ai-float-header {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 7px;
  font-size: 0.6875rem;
  font-weight: 700;
  color: var(--c-ai);
}
.editor-ai-float-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--c-ai);
  animation: pulse 1.5s ease-in-out infinite;
}
.editor-ai-float-line {
  height: 7px;
  border-radius: 3px;
  background: var(--c-ai-soft);
  margin-bottom: 4px;
}
.editor-ai-float-line--short { width: 68%; }

.editor-showcase__features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}
.editor-feature {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.editor-feature__icon {
  width: 38px; height: 38px;
  border-radius: var(--r-sm);
  background: var(--c-accent-soft);
  color: var(--c-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.editor-feature__icon--ai {
  background: var(--c-ai-soft);
  color: var(--c-ai);
}
.editor-feature__title {
  font-size: 0.9375rem;
  font-weight: 600;
  margin-bottom: 3px;
}
.editor-feature__desc {
  font-size: 0.8125rem;
  color: var(--c-text-muted);
  line-height: 1.45;
}

/* ===================================
   FEATURES GRID
=================================== */
.features { background: var(--c-bg-soft); }
.features__header {
  text-align: center;
  max-width: 560px;
  margin: 0 auto 3.5rem;
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
.feature-card {
  background: var(--c-bg-card);
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  padding: 1.5rem;
  transition: all 0.25s ease;
}
.feature-card:hover {
  border-color: var(--c-accent);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.feature-card--ai:hover { border-color: var(--c-ai); }
.feature-card--import:hover { border-color: var(--c-success); }
.feature-card__icon {
  width: 44px; height: 44px;
  border-radius: var(--r-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  background: var(--c-accent-soft);
  color: var(--c-accent);
}
.feature-card__icon--ai { background: var(--c-ai-soft); color: var(--c-ai); }
.feature-card__icon--success { background: #D1FAE5; color: var(--c-success); }
.feature-card__title { margin-bottom: 6px; }
.feature-card__desc {
  font-size: 0.875rem;
  color: var(--c-text-muted);
  line-height: 1.5;
}

/* ===================================
   PROBLEM / SOLUTION
=================================== */
.problem-solution { background: var(--c-bg); }
.problem-solution__header {
  text-align: center;
  max-width: 560px;
  margin: 0 auto 3rem;
}
.problem-solution__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}
.ps-col__title {
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1.25rem;
}
.ps-col--problem .ps-col__title { color: var(--c-text-faint); }
.ps-col--solution .ps-col__title { color: var(--c-success); }
.ps-items {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.ps-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 1rem 1.125rem;
  border-radius: var(--r-md);
}
.ps-col--problem .ps-item {
  background: #f9f9fb;
  border: 1px solid var(--c-border);
}
.ps-col--solution .ps-item {
  background: #F0FDF4;
  border: 1px solid #BBF7D0;
}
.ps-item__icon { font-size: 1rem; flex-shrink: 0; margin-top: 1px; }
.ps-item__text { font-size: 0.9375rem; line-height: 1.5; }
.ps-col--problem .ps-item__text { color: var(--c-text-muted); }
.ps-col--solution .ps-item__text { color: #166534; font-weight: 500; }

/* ===================================
   INTEGRATIONS
=================================== */
.integrations { background: var(--c-bg-soft); }
.integrations__header {
  text-align: center;
  max-width: 560px;
  margin: 0 auto 3rem;
}
.integrations-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.integration-card {
  background: var(--c-bg-card);
  border: 1px solid var(--c-border);
  border-radius: var(--r-xl);
  padding: 2rem;
  text-align: center;
  transition: all 0.25s ease;
}
.integration-card:hover {
  border-color: var(--c-accent);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}
.integration-card__icon {
  width: 56px; height: 56px;
  border-radius: var(--r-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
}
.integration-card__title {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}
.integration-card__desc {
  font-size: 0.875rem;
  color: var(--c-text-muted);
  line-height: 1.55;
}

/* ===================================
   FINAL CTA
=================================== */
.final-cta {
  background: linear-gradient(135deg, var(--c-accent) 0%, var(--c-ai) 100%);
  position: relative;
  overflow: hidden;
}
.final-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(255,255,255,.12) 0%, transparent 60%);
  pointer-events: none;
}
.final-cta__inner {
  text-align: center;
  position: relative;
  z-index: 1;
}
.final-cta__title {
  color: #fff;
  margin-bottom: 1rem;
}
.final-cta__sub {
  color: rgba(255,255,255,.78);
  margin-bottom: 2.5rem;
}
.final-cta__trust {
  margin-top: 1.75rem;
  font-size: 0.875rem;
  color: rgba(255,255,255,.55);
}
.final-cta__trust span {
  color: rgba(255,255,255,.35);
  margin: 0 10px;
}

/* ===================================
   FOOTER
=================================== */
.site-footer {
  background: var(--c-text);
  color: rgba(255,255,255,.45);
  padding: 2rem 0;
}
.site-footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.site-footer__logo {
  color: #fff;
  font-weight: 700;
  font-size: 0.9375rem;
  display: flex;
  align-items: center;
  gap: 8px;
}
.site-footer__logo-icon {
  width: 24px; height: 24px;
  border-radius: 6px;
  background: linear-gradient(135deg, var(--c-accent), var(--c-ai));
}
.site-footer__copy { font-size: 0.8125rem; }
.site-footer__link {
  color: rgba(255,255,255,.4);
  font-size: 0.8125rem;
  transition: color 0.2s;
}
.site-footer__link:hover { color: #fff; }

/* ===================================
   ANIMATIONS
=================================== */
[data-anim] {
  opacity: 0;
  transition: opacity 0.65s ease, transform 0.65s ease;
}
[data-anim="fade-up"] { transform: translateY(28px); }
[data-anim="fade-in"] { transform: none; }
[data-anim="scale-in"] { transform: scale(0.96); }
[data-anim].is-visible { opacity: 1; transform: none !important; }

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}
@keyframes spin {
  to { transform: rotate(360deg); }
}
@keyframes shimmer {
  0% { opacity: 0.35; }
  50% { opacity: 0.75; }
  100% { opacity: 0.35; }
}
@keyframes fillBarSlide {
  from { width: 20%; }
  to { width: 80%; }
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

/* ===================================
   HERO SWIPER + PERSPECTIVE TILT
=================================== */
.hero__swiper-wrap {
  position: relative;
  /* Fixed width so the grid column never reflows during slide transitions */
  width: 100%;
  min-width: 0;
}

/* The 3D tilt container */
.hero__screen-tilt {
  transform: perspective(1100px) rotateY(-10deg) rotateX(4deg);
  transform-style: preserve-3d;
  border-radius: var(--r-xl);
  transition: transform 0.6s ease;
  filter: drop-shadow(40px 40px 60px rgba(0,0,0,.18)) drop-shadow(0 8px 24px rgba(79,110,247,.12));
}
.hero__swiper-wrap:hover .hero__screen-tilt {
  transform: perspective(1100px) rotateY(-6deg) rotateX(2deg);
}

/* Browser chrome frame */
.hero-screen-frame {
  background: #fff;
  border-radius: var(--r-xl);
  overflow: hidden;
  border: 1px solid rgba(0,0,0,.08);
}
.hero-screen-bar {
  height: 34px;
  background: #f0f1f5;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 14px;
  border-bottom: 1px solid rgba(0,0,0,.06);
  flex-shrink: 0;
}
.hero-screen-bar span {
  width: 10px; height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}
.hero-screen-bar span:nth-child(1) { background: #FC5757; }
.hero-screen-bar span:nth-child(2) { background: #FDBC40; }
.hero-screen-bar span:nth-child(3) { background: #29CC41; }

.hero-screen-frame img {
  width: 100%;
  display: block;
  object-fit: cover;
  object-position: top left;
  height: 340px;
}
.hero-screen-label {
  text-align: center;
  margin-top: 14px;
  font-size: .8125rem;
  color: var(--c-text-muted);
  font-weight: 500;
  letter-spacing: .01em;
}

/* Swiper overrides */
.hero-swiper {
  border-radius: var(--r-xl);
  overflow: hidden;
}
/* Prevent flash before Swiper initializes */
.hero-swiper .swiper-wrapper {
  will-change: transform;
}
.hero-swiper .swiper-slide {
  height: auto;
}
.hero-swiper-dots {
  position: relative !important;
  bottom: auto !important;
  margin-top: 16px !important;
}
.hero-swiper-dots .swiper-pagination-bullet {
  width: 8px; height: 8px;
  background: var(--c-border);
  opacity: 1;
  transition: all .3s ease;
}
.hero-swiper-dots .swiper-pagination-bullet-active {
  width: 24px;
  border-radius: 4px;
  background: var(--c-accent);
}

/* ===================================
   PRICING
=================================== */
.pricing .section-header {
  margin-bottom: 3rem;
  text-align: center;
}
.pricing-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  max-width: 860px;
  margin: 0 auto;
  align-items: start;
}
.pricing-card {
  background: #fff;
  border: 1.5px solid var(--c-border);
  border-radius: 20px;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0;
  position: relative;
  transition: box-shadow .25s, border-color .25s;
}
.pricing-card:hover {
  box-shadow: 0 12px 40px rgba(0,0,0,.07);
}
.pricing-card--premium {
  border-color: var(--c-accent);
  background: linear-gradient(160deg, #fff 60%, var(--c-accent-soft) 100%);
  box-shadow: 0 8px 40px rgba(79,110,247,.12);
}
.pricing-card--premium:hover {
  box-shadow: 0 16px 56px rgba(79,110,247,.18);
}
.pricing-card__badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: var(--c-accent);
  color: #fff;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .04em;
  padding: 4px 12px;
  border-radius: 100px;
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  margin-bottom: 0;
  width: fit-content;
}
.pricing-card__header {
  margin-bottom: 1.5rem;
}
.pricing-card__plan {
  font-size: .8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--c-text-muted);
  margin-bottom: .75rem;
}
.pricing-card--premium .pricing-card__plan {
  color: var(--c-accent);
}
.pricing-card__price {
  margin-bottom: .75rem;
}
.pricing-card__amount {
  font-size: 2rem;
  font-weight: 800;
  color: var(--c-text);
  line-height: 1;
}
.pricing-card--premium .pricing-card__amount {
  background: linear-gradient(135deg, var(--c-accent), var(--c-ai));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.pricing-card__alts {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: .8125rem;
  color: var(--c-text-muted);
  margin-bottom: .75rem;
}
.pricing-card__alt-sep {
  opacity: .4;
}
.pricing-card__desc {
  font-size: .875rem;
  color: var(--c-text-muted);
  line-height: 1.55;
}
.pricing-card__features {
  list-style: none;
  padding: 0; margin: 0;
  border-top: 1px solid var(--c-border);
  padding-top: 1.5rem;
  margin-bottom: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: .75rem;
}
.pricing-card__feature {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: .875rem;
  color: var(--c-text);
  line-height: 1.4;
}
.pricing-card__feature--muted {
  color: var(--c-text-muted);
  text-decoration: line-through;
  text-decoration-color: var(--c-border);
}
.pricing-card__feature--ai {
  color: var(--c-ai);
  font-weight: 500;
}
.pricing-feat-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: var(--c-success);
}
.pricing-card__feature--muted .pricing-feat-icon {
  color: var(--c-border);
}
.pricing-feat-icon--off {
  color: var(--c-border) !important;
}
.pricing-card__feature--ai .pricing-feat-icon {
  color: var(--c-ai);
}
.pricing-card__cta {
  width: 100%;
  justify-content: center;
  margin-top: auto;
}

/* Pricing addon tile */
.pricing-addon {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  max-width: 860px;
  margin: 1rem auto 0;
  background: #fff;
  border: 1.5px solid var(--c-border);
  border-radius: 16px;
  padding: 1.5rem 2rem;
  transition: box-shadow .25s;
}
.pricing-addon:hover {
  box-shadow: 0 8px 32px rgba(0,0,0,.06);
}
.pricing-addon__icon {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  background: var(--c-accent-soft);
  color: var(--c-accent);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.pricing-addon__body {
  flex: 1;
  min-width: 0;
}
.pricing-addon__title {
  font-size: 1rem;
  font-weight: 650;
  color: var(--c-text);
  margin-bottom: .25rem;
}
.pricing-addon__desc {
  font-size: .8125rem;
  color: var(--c-text-muted);
  line-height: 1.5;
}
.pricing-addon__prices {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-shrink: 0;
}
.pricing-addon__divider {
  width: 1px;
  height: 36px;
  background: var(--c-border);
}
.pricing-addon__price {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
}
.pricing-addon__price-label {
  font-size: .7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--c-text-muted);
}
.pricing-addon__price-value {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--c-text);
  display: flex;
  align-items: center;
  gap: 4px;
}
.pricing-addon__price--free .pricing-addon__price-value {
  color: var(--c-success);
}
.pricing-addon__price--free svg {
  color: var(--c-success);
}

@media (max-width: 640px) {
  .pricing-addon {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
  .pricing-addon__prices {
    width: 100%;
    justify-content: flex-start;
  }
}

/* AI billing callout */
.ai-billing {
  position: relative;
  display: flex;
  align-items: center;
  gap: 2rem;
  max-width: 860px;
  margin: 1rem auto 0;
  background: linear-gradient(135deg, #1a1040 0%, #2d1b6e 50%, #1a2a6e 100%);
  border-radius: 16px;
  padding: 1.75rem 2rem;
  overflow: hidden;
  color: #fff;
}
.ai-billing__glow {
  position: absolute;
  top: -40px; right: -40px;
  width: 220px; height: 220px;
  background: radial-gradient(circle, rgba(139,92,246,.35) 0%, transparent 70%);
  pointer-events: none;
}
.ai-billing__left {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  flex: 1;
  min-width: 0;
}
.ai-billing__icon {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  background: rgba(139,92,246,.25);
  border: 1px solid rgba(139,92,246,.4);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #c4b5fd;
}
.ai-billing__title {
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: .375rem;
}
.ai-billing__sub {
  font-size: .8125rem;
  color: rgba(255,255,255,.6);
  line-height: 1.6;
}
.ai-billing__sub strong {
  color: #c4b5fd;
  font-weight: 600;
}
.ai-billing__facts {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-shrink: 0;
}
.ai-billing__fact {
  text-align: center;
}
.ai-billing__fact-value {
  font-size: 1.25rem;
  font-weight: 800;
  color: #fff;
  white-space: nowrap;
}
.ai-billing__fact-label {
  font-size: .7rem;
  color: rgba(255,255,255,.5);
  margin-top: 2px;
  white-space: nowrap;
}
.ai-billing__fact-sep {
  width: 1px;
  height: 36px;
  background: rgba(255,255,255,.12);
}

@media (max-width: 768px) {
  .ai-billing {
    flex-direction: column;
    gap: 1.25rem;
  }
  .ai-billing__facts {
    width: 100%;
    justify-content: space-between;
    border-top: 1px solid rgba(255,255,255,.1);
    padding-top: 1.25rem;
  }
}

/* ===================================
   DEMO MODAL
=================================== */
.demo-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9000;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.demo-modal.is-open {
  display: flex;
}
.demo-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 21, 35, 0.55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.demo-modal__box {
  position: relative;
  background: #fff;
  border-radius: 20px;
  padding: 2.5rem 2rem 2rem;
  width: 100%;
  max-width: 400px;
  text-align: center;
  box-shadow: 0 32px 80px rgba(0,0,0,.18), 0 4px 16px rgba(0,0,0,.08);
  animation: modalIn .25s cubic-bezier(.34,1.4,.64,1) both;
}
@keyframes modalIn {
  from { opacity: 0; transform: scale(.92) translateY(12px); }
  to   { opacity: 1; transform: scale(1)  translateY(0); }
}
.demo-modal__close {
  position: absolute;
  top: 14px; right: 14px;
  width: 32px; height: 32px;
  border: none; background: var(--c-bg-soft);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  color: var(--c-text-muted);
  transition: background .2s, color .2s;
}
.demo-modal__close:hover {
  background: var(--c-border);
  color: var(--c-text);
}
.demo-modal__icon {
  margin: 0 auto 1.25rem;
  width: 56px; height: 56px;
  background: var(--c-accent-soft);
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
}
.demo-modal__title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--c-text);
  margin-bottom: .5rem;
}
.demo-modal__sub {
  font-size: .9rem;
  color: var(--c-text-muted);
  margin-bottom: 1.5rem;
  line-height: 1.5;
}
.demo-modal__creds {
  display: flex;
  gap: 12px;
  margin-bottom: 1.5rem;
}
.demo-modal__cred {
  flex: 1;
  background: var(--c-bg-soft);
  border: 1px solid var(--c-border);
  border-radius: 12px;
  padding: .75rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.demo-modal__cred-label {
  font-size: .75rem;
  color: var(--c-text-muted);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .05em;
}
.demo-modal__cred-value {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--c-accent);
  font-family: ui-monospace, 'SF Mono', monospace;
  letter-spacing: .04em;
}
.demo-modal__btn {
  width: 100%;
  justify-content: center;
}
.demo-modal__note {
  margin-top: 10px;
  font-size: .78rem;
  color: var(--c-text-muted);
}

/* ===================================
   MEDIA QUERIES
=================================== */
@media (max-width: 1024px) {
  .hero__inner {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 3rem;
  }
  .hero__sub { max-width: 100%; }
  .hero__actions { justify-content: center; }

  .editor-showcase__inner { grid-template-columns: 1fr; }
  .problem-solution__inner { grid-template-columns: 1fr; gap: 2.5rem; }
}

@media (max-width: 768px) {
  .site-nav__links { display: none; }

  .hero__screen-tilt {
    transform: none !important;
    filter: drop-shadow(0 20px 40px rgba(0,0,0,.12));
  }
  .hero__swiper-wrap { max-width: 100%; }

  .stats-bar__grid { grid-template-columns: repeat(2, 1fr); }
  .stat-item:nth-child(2) { border-right: none; }
  .stat-item:nth-child(3) { border-top: 1px solid var(--c-border); }
  .stat-item:nth-child(4) { border-top: 1px solid var(--c-border); border-right: none; }

  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .integrations-grid { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: 1fr; }
  .pricing-card__badge {
    position: static;
    margin-bottom: 1rem;
  }
  .wizard-steps-nav { display: none; }

  .ai-chat-callout { flex-direction: column; text-align: center; gap: 1rem; }
  .editor-showcase__features { grid-template-columns: 1fr; }

  .browser-body { height: 220px; }
  .editor-showcase__body { height: 260px; }
}

@media (max-width: 540px) {
  .features-grid { grid-template-columns: 1fr; }
  .hero__actions { flex-direction: column; align-items: center; }
  .hero__actions .btn { width: 100%; justify-content: center; }
  .wizard-panel { padding: 1.25rem; }
  .wizard-demo__header { padding: 1rem 1.25rem; }
}
