:root {
  --ink: #111827;
  --muted: #667085;
  --line: #e8e5f2;
  --paper: #faf8ff;
  --white: #ffffff;
  --purple: #8b5cf6;
  --purple-dark: #5b35c8;
  --lavender: #b191f8;
  --green: #25d366;
  --soft-green: #dcf8c6;
  --radius: 8px;
  --shadow: 0 24px 70px rgba(17, 24, 39, 0.12);
  --px: clamp(20px, 5vw, 80px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.5;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p { margin-top: 0; }
h1 {
  max-width: 980px;
  margin-inline: auto;
  margin-bottom: 22px;
  font-size: clamp(3.1rem, 8vw, 7.15rem);
  line-height: 0.92;
  letter-spacing: -0.06em;
}
h2 {
  margin-bottom: 14px;
  font-size: clamp(2rem, 4.8vw, 4.4rem);
  line-height: 1;
  letter-spacing: -0.045em;
}
h3 { margin-bottom: 8px; font-size: 1.05rem; letter-spacing: -0.02em; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 74px;
  padding: 12px var(--px);
  background: var(--lavender);
  border-bottom: 1px solid rgba(255, 255, 255, 0.35);
}
.brand { width: min(220px, 44vw); }
.nav-links, .header-actions, .hero-actions, .proof-row, .mini-strip, .site-footer, .footer-nav {
  display: flex;
  align-items: center;
}
.nav-links { gap: 28px; color: rgba(255,255,255,.88); font-size: .92rem; font-weight: 700; }
.header-actions { gap: 10px; }
.lang-toggle { display: inline-flex; padding: 3px; border: 1px solid rgba(255,255,255,.35); border-radius: var(--radius); background: rgba(255,255,255,.18); }
.lang-option { width: 36px; height: 28px; border: 0; border-radius: 6px; color: rgba(255,255,255,.82); background: transparent; font: inherit; font-size: .75rem; font-weight: 900; cursor: pointer; }
.lang-option.is-active { color: var(--purple-dark); background: var(--white); }
.button, .header-cta { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 22px; border-radius: var(--radius); font-weight: 900; line-height: 1; }
.header-cta, .button.secondary { color: var(--purple-dark); background: var(--white); }
.button.primary { color: var(--white); background: var(--purple-dark); box-shadow: 0 16px 36px rgba(91,53,200,.24); }
.button.secondary { border: 1px solid var(--line); }
.menu-toggle { display: none; width: 42px; height: 42px; border: 0; border-radius: var(--radius); background: rgba(255,255,255,.16); }
.menu-toggle span { display: block; width: 20px; height: 2px; margin: 5px auto; background: var(--white); transition: transform .2s, opacity .2s; }
.mobile-nav { display: none; }

.hero {
  padding: clamp(58px, 9vw, 112px) var(--px) 48px;
  text-align: center;
  background:
    linear-gradient(rgba(139,92,246,.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(139,92,246,.06) 1px, transparent 1px),
    linear-gradient(180deg, #fff, var(--paper));
  background-size: 36px 36px, 36px 36px, auto;
}
.hero-pill, .section-kicker { display: inline-flex; margin-bottom: 18px; color: var(--purple-dark); font-size: .78rem; font-weight: 900; text-transform: uppercase; letter-spacing: .08em; }
.hero-lede { max-width: 760px; margin: 0 auto 28px; color: var(--muted); font-size: clamp(1.08rem, 2vw, 1.28rem); }
.hero-actions { justify-content: center; gap: 12px; flex-wrap: wrap; margin-bottom: 38px; }
.preview-shell { max-width: 1040px; margin: 0 auto; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); box-shadow: var(--shadow); text-align: left; }
.preview-toolbar { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.preview-toolbar span { width: 12px; height: 12px; border-radius: 50%; background: var(--green); }
.preview-toolbar strong { font-size: .95rem; }
.preview-toolbar em { color: var(--muted); font-size: .85rem; font-style: normal; font-weight: 700; }
.preview-grid { display: grid; grid-template-columns: 1fr .86fr; }
.chat-preview { display: grid; align-content: center; gap: 14px; min-height: 420px; padding: clamp(22px, 4vw, 48px); background: #ece5dd; }
.bubble { width: fit-content; max-width: 82%; padding: 12px 14px; border-radius: var(--radius); box-shadow: 0 1px 1px rgba(17,24,39,.12); }
.bubble.incoming { background: var(--white); }
.bubble.outgoing { justify-self: end; background: var(--soft-green); }
.order-note { width: min(100%, 420px); margin-top: 6px; padding: 16px; border-radius: var(--radius); background: var(--white); border: 1px solid rgba(37,211,102,.25); }
.order-note strong, .order-note span { display: block; }
.order-note span { margin-top: 4px; color: var(--muted); }
.catalog-preview { display: grid; align-content: end; min-height: 420px; background: var(--ink); }
.catalog-preview img { width: 100%; height: 260px; object-fit: cover; object-position: 72% center; }
.catalog-preview div { padding: 24px; color: var(--white); }
.catalog-preview span { color: var(--green); font-size: .75rem; font-weight: 900; text-transform: uppercase; }
.catalog-preview strong { display: block; margin-top: 8px; font-size: 1.25rem; }
.catalog-preview p { margin: 8px 0 0; color: rgba(255,255,255,.72); }
.proof-row { justify-content: center; gap: 10px; flex-wrap: wrap; margin-top: 22px; }
.proof-row span, .mini-strip span { padding: 9px 12px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); background: var(--white); font-size: .85rem; font-weight: 800; }
.mini-strip { justify-content: center; gap: 10px; flex-wrap: wrap; padding: 26px var(--px) 70px; background: var(--paper); }

.section { padding: clamp(70px, 10vw, 126px) var(--px); }
.intro { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(28px, 7vw, 96px); align-items: end; }
.intro > p, .section-heading { max-width: 720px; }
.intro > p, .feature-grid p, .steps p, .faq-list p { color: var(--muted); }
.features, .faq { background: #fbfbfd; }
.section-heading { margin-bottom: 34px; }
.feature-grid, .steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.feature-grid article, .steps article, .faq-list details { min-height: 214px; padding: 26px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); }
.feature-grid article span, .steps article span { display: inline-flex; margin-bottom: 34px; color: var(--purple-dark); font-weight: 900; }
.workflow { background: var(--white); }
.faq { display: grid; grid-template-columns: .85fr 1fr; gap: clamp(28px, 7vw, 90px); }
.faq-list { display: grid; gap: 12px; }
.faq-list details { min-height: auto; }
.faq-list summary { cursor: pointer; font-weight: 900; }
.faq-list p { margin: 12px 0 0; }
.final-cta { padding: clamp(76px, 10vw, 130px) var(--px); color: var(--white); background: var(--ink); text-align: center; }
.final-cta .section-kicker { color: var(--green); }
.final-cta h2 { max-width: 860px; margin-inline: auto; }
.site-footer { justify-content: space-between; gap: 20px; flex-wrap: wrap; padding: 30px var(--px); border-top: 1px solid var(--line); background: var(--white); }
.footer-brand { display: flex; align-items: center; gap: 14px; color: var(--muted); font-size: .86rem; font-weight: 700; }
.footer-brand img { width: 160px; }
.footer-nav { gap: 20px; flex-wrap: wrap; color: var(--muted); font-size: .86rem; font-weight: 800; }

.legal-page { background: var(--white); }
.legal-hero { padding: clamp(64px, 10vw, 120px) var(--px) clamp(34px, 5vw, 62px); background: linear-gradient(180deg, var(--paper), var(--white)); border-bottom: 1px solid var(--line); }
.legal-hero h1 { margin-inline: 0; }
.legal-hero p { max-width: 820px; color: var(--muted); font-size: 1.12rem; }
.legal-hero > span { display: inline-flex; padding: 8px 12px; border-radius: 999px; color: var(--purple-dark); background: var(--paper); font-size: .86rem; font-weight: 900; }
.legal-content { width: min(860px, calc(100% - 40px)); margin: 0 auto; padding: clamp(42px, 8vw, 86px) 0; }
.legal-content h2 { margin: 34px 0 12px; font-size: clamp(1.45rem, 3vw, 2.1rem); }
.legal-content h2:first-child { margin-top: 0; }
.legal-content p, .legal-content li { color: var(--muted); }
.legal-content ul { display: grid; gap: 10px; padding-left: 22px; }
.legal-content a { color: var(--purple-dark); font-weight: 900; text-decoration: underline; text-underline-offset: 3px; }

@media (max-width: 920px) {
  .nav-links { display: none; }
  .menu-toggle { display: block; }
  .mobile-nav { position: fixed; inset: 74px 16px auto; z-index: 30; display: none; padding: 18px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); box-shadow: var(--shadow); }
  .mobile-nav.is-open { display: block; }
  .mobile-nav nav { display: grid; gap: 12px; font-weight: 900; }
  .preview-grid, .intro, .feature-grid, .steps, .faq { grid-template-columns: 1fr; }
  .catalog-preview { min-height: auto; }
}

@media (max-width: 640px) {
  .site-header { padding-inline: 16px; }
  .brand { width: min(170px, 44vw); }
  .header-cta { display: none; }
  h1 { font-size: clamp(3rem, 16vw, 4.7rem); }
  .hero { padding-inline: 16px; }
  .hero-actions .button, .final-cta .button { width: 100%; }
  .preview-toolbar { grid-template-columns: auto 1fr; }
  .preview-toolbar em { display: none; }
  .chat-preview { min-height: 360px; }
  .section, .final-cta { padding-inline: 16px; }
  .footer-brand, .site-footer { align-items: flex-start; flex-direction: column; }
}
