/* ============================================
   EditPilot — Marketing Site Styles
   Gradient palette derived from logo:
   Magenta #e040fb → Purple #9333ea → Blue #3b82f6 → Cyan #06b6d4
   ============================================ */

/* --- Custom Properties --- */
:root {
  --magenta: #e040fb;
  --purple: #9333ea;
  --indigo: #6366f1;
  --blue: #3b82f6;
  --cyan: #06b6d4;
  --teal: #14b8a6;

  --bg: #09090b;
  --bg-card: rgba(255, 255, 255, 0.04);
  --bg-card-hover: rgba(255, 255, 255, 0.07);
  --glass: rgba(255, 255, 255, 0.06);
  --glass-border: rgba(255, 255, 255, 0.1);
  --text: #f4f4f5;
  --text-muted: #a1a1aa;
  --text-dim: #71717a;

  --gradient-brand: linear-gradient(135deg, #e040fb, #9333ea, #3b82f6, #06b6d4);
  --gradient-brand-h: linear-gradient(90deg, #e040fb, #9333ea, #3b82f6, #06b6d4);
  --gradient-cta: linear-gradient(135deg, #e040fb, #9333ea);
  --gradient-cta-hover: linear-gradient(135deg, #c026d3, #7c3aed);
  --gradient-mesh: radial-gradient(ellipse at 20% 50%, rgba(224, 64, 251, 0.15) 0%, transparent 50%),
                   radial-gradient(ellipse at 80% 20%, rgba(99, 102, 241, 0.12) 0%, transparent 50%),
                   radial-gradient(ellipse at 60% 80%, rgba(6, 182, 212, 0.1) 0%, transparent 50%);

  --max-w: 1100px;
  --nav-h: 64px;
  --section-pad: 96px;
  --gap: 20px;
  --radius: 14px;
  --radius-sm: 10px;
  --radius-xs: 6px;

  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-h);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 0.9rem;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
ul, ol { list-style: none; }

/* --- Typography --- */
h1, h2, h3, h4 { line-height: 1.2; font-weight: 650; letter-spacing: -0.02em; }
h1 { font-size: clamp(2rem, 5vw, 3rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
h3 { font-size: clamp(1rem, 1.5vw, 1.125rem); }
p { color: var(--text-muted); font-size: 0.9rem; }

.gradient-text {
  background: var(--gradient-brand-h);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 12px;
}

.section-label::before {
  content: '';
  width: 20px;
  height: 1.5px;
  background: var(--gradient-brand-h);
  border-radius: 2px;
}

/* --- Container --- */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 11px 26px;
  border-radius: 50px;
  transition: all 0.3s var(--ease);
  white-space: nowrap;
  text-decoration: none;
}

.btn-primary {
  background: var(--gradient-cta);
  color: #fff;
  box-shadow: 0 4px 20px rgba(224, 64, 251, 0.25);
}

.btn-primary:visited,
.btn-primary:link { color: #fff; }

.btn-primary:hover {
  background: var(--gradient-cta-hover);
  color: #fff;
  box-shadow: 0 6px 28px rgba(224, 64, 251, 0.35), 0 0 0 2px rgba(224, 64, 251, 0.12);
  transform: translateY(-1px);
}

.btn-primary:active {
  color: #fff;
  transform: translateY(0);
  box-shadow: 0 2px 12px rgba(224, 64, 251, 0.3);
}

.btn-primary:focus-visible {
  color: #fff;
  outline: 2px solid var(--magenta);
  outline-offset: 3px;
}

.btn-secondary {
  background: var(--glass);
  color: var(--text);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(12px);
}

.btn-secondary:visited,
.btn-secondary:link { color: var(--text); }

.btn-secondary:hover {
  background: var(--bg-card-hover);
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-1px);
}

.btn-secondary:active {
  color: var(--text);
  transform: translateY(0);
}

.btn-secondary:focus-visible {
  color: var(--text);
  outline: 2px solid var(--indigo);
  outline-offset: 3px;
}

.btn svg {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
}

/* --- Navigation --- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-h);
  z-index: 1000;
  transition: background 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.nav.scrolled {
  background: rgba(9, 9, 11, 0.85);
  backdrop-filter: blur(20px) saturate(180%);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.05rem;
  font-weight: 650;
  color: var(--text);
}

.nav-brand-icon {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  border: 1.5px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  object-fit: cover;
}

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

.nav-links a {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.2s var(--ease);
}

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

.nav-cta {
  padding: 9px 20px !important;
  font-size: 0.82rem !important;
}

.nav-mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
}

.nav-mobile-toggle span {
  width: 20px;
  height: 1.5px;
  background: var(--text);
  border-radius: 2px;
  transition: all 0.3s var(--ease);
}

.nav-mobile-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-mobile-toggle.active span:nth-child(2) { opacity: 0; }
.nav-mobile-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* --- Hero --- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: var(--nav-h);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gradient-mesh);
  animation: meshFloat 20s ease-in-out infinite alternate;
}

.hero-bg::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: conic-gradient(from 0deg at 50% 50%,
    rgba(224, 64, 251, 0.05) 0deg,
    transparent 60deg,
    rgba(99, 102, 241, 0.04) 120deg,
    transparent 180deg,
    rgba(6, 182, 212, 0.03) 240deg,
    transparent 300deg,
    rgba(224, 64, 251, 0.05) 360deg);
  animation: heroRotate 30s linear infinite;
}

@keyframes heroRotate { to { transform: rotate(360deg); } }
@keyframes meshFloat { to { opacity: 0.7; transform: scale(1.05) translate(2%, -2%); } }

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 64px 0 48px;
}

.hero h1 {
  margin-bottom: 18px;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

.hero-sub {
  font-size: clamp(0.95rem, 1.5vw, 1.05rem);
  max-width: 560px;
  margin: 0 auto 36px;
  line-height: 1.7;
  color: var(--text-muted);
}

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

/* --- Slideshow --- */
.slideshow {
  position: relative;
  margin: 52px auto 0;
  max-width: 880px;
  border-radius: var(--radius);
  overflow: hidden;
}

.slideshow-track {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 8.5;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.05);
}

.slideshow-track::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: var(--radius);
  padding: 1px;
  background: var(--gradient-brand);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0.4;
  pointer-events: none;
  z-index: 2;
}

.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.7s var(--ease);
}

.slide.active { opacity: 1; }

.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius);
}

.slideshow-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 20px;
}

.slideshow-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  transition: all 0.3s var(--ease);
  cursor: pointer;
  border: none;
  padding: 0;
}

.slideshow-dot.active {
  background: var(--magenta);
  box-shadow: 0 0 10px rgba(224, 64, 251, 0.35);
  transform: scale(1.2);
}

.slideshow-dot:focus-visible {
  outline: 2px solid var(--magenta);
  outline-offset: 2px;
}

.slideshow-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(9, 9, 11, 0.7);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s var(--ease);
  opacity: 0;
}

.slideshow:hover .slideshow-arrow { opacity: 1; }

.slideshow-arrow:hover {
  background: rgba(224, 64, 251, 0.25);
  border-color: rgba(224, 64, 251, 0.35);
}

.slideshow-arrow:focus-visible {
  opacity: 1;
  outline: 2px solid var(--magenta);
  outline-offset: 2px;
}

.slideshow-arrow.prev { left: 12px; }
.slideshow-arrow.next { right: 12px; }
.slideshow-arrow svg { width: 18px; height: 18px; }

.slide-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 28px 20px 16px;
  background: linear-gradient(to top, rgba(9, 9, 11, 0.75), transparent);
  z-index: 2;
  opacity: 0;
  transform: translateY(6px);
  transition: all 0.4s var(--ease);
}

.slide.active .slide-caption { opacity: 1; transform: translateY(0); }

.slide-caption span {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text);
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px);
  padding: 5px 12px;
  border-radius: 50px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* --- Problem → Solution --- */
.problem-solution {
  padding: var(--section-pad) 0;
  position: relative;
}

.ps-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: start;
}

.ps-card {
  padding: 32px;
  border-radius: var(--radius);
  border: 1px solid var(--glass-border);
  background: var(--bg-card);
  position: relative;
  overflow: hidden;
}

.ps-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
}

.ps-card.problem::before { background: linear-gradient(90deg, #ef4444, #f97316); }
.ps-card.solution::before { background: var(--gradient-brand-h); }

.ps-card h3 {
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.ps-card h3 .icon {
  width: 32px;
  height: 32px;
  border-radius: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  flex-shrink: 0;
}

.ps-card.problem h3 .icon { background: rgba(239, 68, 68, 0.12); }
.ps-card.solution h3 .icon { background: rgba(224, 64, 251, 0.12); }

.ps-card ul { display: flex; flex-direction: column; gap: 12px; }

.ps-card li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  color: var(--text-muted);
  font-size: 0.85rem;
  line-height: 1.6;
}

.ps-card li::before {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
  margin-top: 8px;
  flex-shrink: 0;
}

.ps-card.problem li::before { background: #ef4444; }
.ps-card.solution li::before { background: var(--magenta); }

/* --- Features --- */
.features {
  padding: var(--section-pad) 0;
  position: relative;
}

.features-header {
  text-align: center;
  max-width: 560px;
  margin: 0 auto 52px;
}

.features-header p { margin-top: 12px; }

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap);
}

.feature-card {
  padding: 28px;
  border-radius: var(--radius);
  border: 1px solid var(--glass-border);
  background: var(--bg-card);
  transition: all 0.4s var(--ease);
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius);
  padding: 1px;
  background: var(--gradient-brand);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.4s var(--ease);
}

.feature-card:hover {
  background: var(--bg-card-hover);
  transform: translateY(-3px);
}

.feature-card:hover::before { opacity: 1; }

.feature-icon {
  width: 42px;
  height: 42px;
  border-radius: 11px;
  background: linear-gradient(135deg, rgba(224, 64, 251, 0.12), rgba(99, 102, 241, 0.12));
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  font-size: 1.2rem;
}

.feature-card h3 {
  margin-bottom: 8px;
  color: var(--text);
}

.feature-card p {
  font-size: 0.84rem;
  line-height: 1.65;
}

/* --- How It Works --- */
.how-it-works {
  padding: var(--section-pad) 0;
  position: relative;
}

.how-header {
  text-align: center;
  max-width: 560px;
  margin: 0 auto 56px;
}

.how-header p { margin-top: 12px; }

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--gap);
  position: relative;
}

.steps::before {
  content: '';
  position: absolute;
  top: 24px;
  left: calc(12.5% + 12px);
  right: calc(12.5% + 12px);
  height: 1.5px;
  background: var(--gradient-brand-h);
  opacity: 0.25;
}

.step {
  text-align: center;
  position: relative;
}

.step-num {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid transparent;
  background-image: linear-gradient(var(--bg), var(--bg)), var(--gradient-brand);
  background-origin: border-box;
  background-clip: padding-box, border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  font-size: 1rem;
  font-weight: 650;
  color: var(--text);
  position: relative;
  z-index: 1;
}

.step h3 { margin-bottom: 8px; }
.step p { font-size: 0.84rem; line-height: 1.6; }

/* --- Pricing --- */
.pricing {
  padding: var(--section-pad) 0;
}

.pricing-header {
  text-align: center;
  max-width: 560px;
  margin: 0 auto 44px;
}

.pricing-header p { margin-top: 12px; }

.pricing-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap);
  max-width: 920px;
  margin: 0 auto;
}

.pricing-card {
  padding: 32px 28px;
  border-radius: var(--radius);
  border: 1px solid var(--glass-border);
  background: var(--bg-card);
  transition: all 0.4s var(--ease);
  position: relative;
  display: flex;
  flex-direction: column;
}

.pricing-card.featured {
  border-color: transparent;
  background-image: linear-gradient(#111114, #111114), var(--gradient-brand);
  background-origin: border-box;
  background-clip: padding-box, border-box;
}

.pricing-card.featured::after {
  content: 'Most popular';
  position: absolute;
  top: -11px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gradient-cta);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 600;
  padding: 3px 14px;
  border-radius: 50px;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.pricing-card:hover {
  transform: translateY(-3px);
}

.pricing-card.featured:hover {
  background-image: linear-gradient(#151518, #151518), var(--gradient-brand);
}

.pricing-plan-name {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 2px;
}

.pricing-tagline {
  font-size: 0.78rem;
  color: var(--text-dim);
}

.pricing-price {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text);
  margin: 16px 0;
  letter-spacing: -0.03em;
}

.pricing-price span {
  font-size: 0.85rem;
  font-weight: 400;
  color: var(--text-muted);
}

.pricing-card ul {
  text-align: left;
  margin: 16px 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.pricing-card li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.45;
}

.pricing-card li svg {
  width: 16px;
  height: 16px;
  color: var(--teal);
  flex-shrink: 0;
  margin-top: 1px;
}

.pricing-note {
  text-align: center;
  margin-top: 28px;
  font-size: 0.8rem;
  color: var(--text-dim);
}

/* --- FAQ --- */
.faq {
  padding: var(--section-pad) 0;
}

.faq-header {
  text-align: center;
  max-width: 560px;
  margin: 0 auto 44px;
}

.faq-header p { margin-top: 12px; }

.faq-list {
  max-width: 660px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.faq-item {
  border-radius: var(--radius-sm);
  border: 1px solid var(--glass-border);
  background: var(--bg-card);
  overflow: hidden;
  transition: border-color 0.3s var(--ease);
}

.faq-item.open { border-color: rgba(224, 64, 251, 0.15); }

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text);
  text-align: left;
  background: none;
  border: none;
  cursor: pointer;
  transition: color 0.2s var(--ease);
}

.faq-question:hover { color: var(--magenta); }

.faq-question:focus-visible {
  outline: 2px solid var(--magenta);
  outline-offset: -2px;
  border-radius: var(--radius-sm);
}

.faq-chevron {
  width: 18px;
  height: 18px;
  transition: transform 0.3s var(--ease);
  flex-shrink: 0;
  color: var(--text-dim);
}

.faq-item.open .faq-chevron { transform: rotate(180deg); color: var(--magenta); }

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s var(--ease);
}

.faq-item.open .faq-answer { max-height: 300px; }

.faq-answer-inner {
  padding: 0 20px 16px;
  font-size: 0.84rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* --- Final CTA --- */
.final-cta {
  padding: var(--section-pad) 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.final-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gradient-mesh);
  opacity: 1;
}

.cta-glow {
  position: absolute;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(224, 64, 251, 0.1) 0%, transparent 70%);
  pointer-events: none;
}

.final-cta .container {
  position: relative;
  z-index: 1;
}

.final-cta h2 { margin-bottom: 12px; }
.final-cta p { font-size: 0.95rem; max-width: 480px; margin: 0 auto 32px; }

/* --- Footer --- */
.footer {
  padding: 32px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

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

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

.footer-brand img {
  width: 24px;
  height: 24px;
  border-radius: 6px;
}

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

.footer-links a {
  font-size: 0.78rem;
  color: var(--text-dim);
  transition: color 0.2s var(--ease);
}

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

.footer-copy {
  font-size: 0.75rem;
  color: var(--text-dim);
}

/* --- Scroll Reveal --- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-stagger > * {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
}

.reveal-stagger.visible > * { opacity: 1; transform: translateY(0); }
.reveal-stagger.visible > *:nth-child(1) { transition-delay: 0.05s; }
.reveal-stagger.visible > *:nth-child(2) { transition-delay: 0.1s; }
.reveal-stagger.visible > *:nth-child(3) { transition-delay: 0.15s; }
.reveal-stagger.visible > *:nth-child(4) { transition-delay: 0.2s; }
.reveal-stagger.visible > *:nth-child(5) { transition-delay: 0.25s; }
.reveal-stagger.visible > *:nth-child(6) { transition-delay: 0.3s; }

/* --- Divider --- */
.section-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.06), transparent);
  margin: 0 auto;
  max-width: 700px;
}

/* --- Mobile Nav --- */
.mobile-menu {
  display: none;
  position: fixed;
  top: var(--nav-h);
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(9, 9, 11, 0.97);
  backdrop-filter: blur(20px);
  z-index: 999;
  padding: 28px 24px;
  flex-direction: column;
  gap: 6px;
}

.mobile-menu.open { display: flex; }

.mobile-menu a {
  font-size: 1.05rem;
  font-weight: 500;
  padding: 14px 0;
  color: var(--text-muted);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  transition: color 0.2s var(--ease);
}

.mobile-menu a:hover { color: var(--text); }

.mobile-menu .btn {
  margin-top: 20px;
  width: 100%;
  color: #fff;
}

/* --- Legal Pages --- */
.legal {
  padding: calc(var(--nav-h) + 48px) 0 var(--section-pad);
}

.legal-content {
  max-width: 680px;
  margin: 0 auto;
}

.legal-content h1 {
  font-size: clamp(1.6rem, 3.5vw, 2.1rem);
  margin-bottom: 6px;
}

.legal-date {
  color: var(--text-dim);
  font-size: 0.82rem;
  margin-bottom: 40px;
}

.legal-content h2 {
  font-size: 1.15rem;
  margin-top: 40px;
  margin-bottom: 12px;
  color: var(--text);
}

.legal-content h3 {
  font-size: 0.95rem;
  margin-top: 28px;
  margin-bottom: 10px;
  color: var(--text);
}

.legal-content p,
.legal-content li {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: 14px;
}

.legal-content ul {
  margin-left: 20px;
  list-style: disc;
  margin-bottom: 14px;
}

.legal-content a {
  color: var(--magenta);
  text-decoration: underline;
  text-decoration-color: rgba(224, 64, 251, 0.3);
  transition: text-decoration-color 0.2s;
}

.legal-content a:hover {
  text-decoration-color: var(--magenta);
}

/* --- Responsive --- */
@media (max-width: 1024px) {
  :root { --section-pad: 72px; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); gap: 36px; }
  .steps::before { display: none; }
  .pricing-cards { grid-template-columns: 1fr; max-width: 360px; }
}

@media (max-width: 768px) {
  :root { --section-pad: 56px; --nav-h: 56px; }

  .container { padding: 0 20px; }

  .nav-links { display: none; }
  .nav-mobile-toggle { display: flex; }

  .ps-grid { grid-template-columns: 1fr; }
  .features-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; gap: 28px; }

  .hero-content { padding: 40px 0 32px; }

  .slideshow-track { aspect-ratio: 16 / 10; }
  .slideshow-arrow { width: 32px; height: 32px; opacity: 1; }
  .slideshow-arrow.prev { left: 8px; }
  .slideshow-arrow.next { right: 8px; }

  .footer-inner {
    flex-direction: column;
    text-align: center;
    gap: 10px;
  }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .hero-actions { flex-direction: column; width: 100%; }
  .hero-actions .btn { width: 100%; }
  .ps-card { padding: 24px 20px; }
  .feature-card { padding: 22px; }
  .mobile-menu { padding: 28px 16px; }
}

/* --- Reduced Motion --- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
}
