:root {
  --brand-primary: #7C3AED;
  --brand-hover: #6D28D9;
  --brand-active: #5B21B6;
  --brand-soft: #F3EEFF;
  --brand-border: #DDD0FF;
  --text-primary: #12131A;
  --text-secondary: #62636D;
  --text-muted: #92939D;
  --bg-main: #F8F8FB;
  --bg-card: #FFFFFF;
  --bg-muted: #F0F0F4;
  --border-default: #E9E9EF;
  --success: #16A34A;
  --error: #DC2626;
  --white: #FFFFFF;
  --max: 1160px;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --shadow-sm: 0 1px 2px rgba(18,19,26,.04), 0 4px 16px rgba(18,19,26,.04);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--text-primary);
  background: var(--bg-main);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }
img { display: block; max-width: 100%; }

.container { width: min(calc(100% - 40px), var(--max)); margin: 0 auto; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(248,248,251,.92);
  border-bottom: 1px solid rgba(233,233,239,.9);
  backdrop-filter: blur(14px);
}
.nav {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand { display: inline-flex; align-items: center; gap: 11px; font-weight: 750; letter-spacing: -.02em; }
.brand img { width: 34px; height: 34px; }
.brand-name { font-size: 19px; }
.nav-links { display: flex; align-items: center; gap: 8px; }
.nav-links a {
  color: var(--text-secondary);
  padding: 9px 11px;
  border-radius: 9px;
  font-size: 14px;
  font-weight: 560;
}
.nav-links a:hover, .nav-links a:focus-visible { color: var(--text-primary); background: var(--bg-muted); outline: none; }
.nav-cta { background: var(--brand-primary) !important; color: white !important; padding-inline: 14px !important; }
.nav-cta:hover { background: var(--brand-hover) !important; }
.mobile-menu { display: none; border: 0; background: transparent; width: 40px; height: 40px; border-radius: 10px; cursor: pointer; }
.mobile-menu:hover { background: var(--bg-muted); }
.mobile-menu svg { width: 21px; height: 21px; }

.hero { padding: 88px 0 72px; }
.hero-grid { display: grid; grid-template-columns: minmax(0,1.03fr) minmax(390px,.97fr); gap: 72px; align-items: center; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--brand-active);
  background: var(--brand-soft);
  border: 1px solid var(--brand-border);
  border-radius: 999px;
  padding: 7px 11px;
  font-size: 13px;
  font-weight: 650;
  margin-bottom: 22px;
}
.eyebrow-dot { width: 7px; height: 7px; background: var(--success); border-radius: 999px; }
h1 { font-size: clamp(42px, 6vw, 70px); line-height: .99; letter-spacing: -.055em; margin: 0 0 24px; max-width: 780px; }
.hero p { color: var(--text-secondary); font-size: 18px; line-height: 1.65; margin: 0; max-width: 650px; }
.hero-actions { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-top: 32px; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 650;
  cursor: pointer;
  transition: background .16s ease, border-color .16s ease, transform .16s ease;
}
.button-primary { background: var(--brand-primary); color: white; }
.button-primary:hover { background: var(--brand-hover); }
.button-primary:active { background: var(--brand-active); transform: translateY(1px); }
.button-secondary { background: var(--bg-card); border-color: var(--border-default); color: var(--text-primary); }
.button-secondary:hover { background: var(--bg-muted); }
.button svg { width: 18px; height: 18px; }
.hero-note { margin-top: 18px; color: var(--text-muted); font-size: 12.5px; display: flex; align-items: center; gap: 8px; }
.hero-note svg { width: 16px; height: 16px; color: var(--success); }

.product-stage {
  background: var(--bg-card);
  border: 1px solid var(--border-default);
  border-radius: 28px;
  padding: 18px;
  box-shadow: var(--shadow-sm);
}
.browser-bar { height: 38px; display: flex; align-items: center; gap: 7px; border-bottom: 1px solid var(--border-default); padding: 0 4px 12px; }
.browser-dot { width: 9px; height: 9px; border-radius: 50%; background: #D6D7DE; }
.browser-url { flex: 1; height: 27px; margin-left: 8px; background: var(--bg-main); border: 1px solid var(--border-default); border-radius: 8px; }
.demo-canvas { padding: 22px 4px 4px; background: #FAFAFC; border-radius: 0 0 17px 17px; }
.popup-demo { width: min(100%, 380px); margin: 0 auto; background: white; border: 1px solid var(--border-default); border-radius: 16px; box-shadow: 0 10px 30px rgba(18,19,26,.08); overflow: hidden; }
.popup-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 17px 13px; border-bottom: 1px solid var(--border-default); }
.popup-brand { display: flex; gap: 10px; align-items: center; }
.popup-brand img { width: 30px; height: 30px; }
.popup-brand strong { display: block; font-size: 15px; }
.popup-brand span { display: block; font-size: 10.5px; color: var(--text-muted); margin-top: 1px; }
.gear { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 9px; color: var(--text-muted); background: var(--bg-main); }
.popup-body { padding: 15px 16px 16px; }
.detected { display: flex; align-items: center; gap: 8px; height: 34px; border: 1px solid var(--border-default); border-radius: 9px; padding: 0 10px; font-size: 11px; color: var(--text-secondary); overflow: hidden; }
.status-dot { width: 7px; height: 7px; border-radius: 50%; background: #22C55E; flex: 0 0 auto; }
.detected span:last-child { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.media-card { margin-top: 12px; display: grid; grid-template-columns: 66px 1fr; gap: 12px; border: 1px solid var(--border-default); border-radius: 12px; padding: 10px; }
.media-thumb { border-radius: 9px; background: linear-gradient(145deg,#EDE9FE,#DDD6FE); min-height: 66px; display: grid; place-items: center; color: var(--brand-primary); }
.media-thumb svg { width: 26px; height: 26px; }
.media-info strong { font-size: 12px; display: block; margin: 2px 0 6px; }
.media-info .type { color: var(--brand-primary); font-size: 11px; font-weight: 650; }
.media-info .meta { color: var(--text-muted); font-size: 10.5px; margin-top: 4px; }
.type-row { display: grid; grid-template-columns: repeat(4,1fr); gap: 6px; margin-top: 11px; }
.type-chip { border: 1px solid var(--border-default); border-radius: 9px; height: 32px; display: grid; place-items: center; color: var(--text-muted); font-size: 10.5px; font-weight: 600; }
.type-chip.active { color: var(--brand-primary); background: var(--brand-soft); border-color: var(--brand-border); }
.demo-download { width: 100%; height: 42px; margin-top: 11px; border: 0; border-radius: 9px; background: var(--brand-primary); color: white; font-weight: 650; }
.popup-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 14px; color: var(--text-muted); font-size: 9.5px; }

.section { padding: 88px 0; }
.section-tight { padding: 70px 0; }
.section-white { background: var(--bg-card); border-top: 1px solid var(--border-default); border-bottom: 1px solid var(--border-default); }
.section-heading { max-width: 680px; margin-bottom: 38px; }
.kicker { color: var(--brand-primary); font-size: 13px; font-weight: 700; letter-spacing: .01em; margin-bottom: 10px; }
h2 { margin: 0; font-size: clamp(30px,4vw,46px); line-height: 1.08; letter-spacing: -.04em; }
.section-heading p { color: var(--text-secondary); line-height: 1.7; font-size: 16px; margin: 16px 0 0; }
.feature-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 14px; }
.feature-card { background: var(--bg-card); border: 1px solid var(--border-default); border-radius: var(--radius-md); padding: 22px; min-height: 190px; }
.feature-icon { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 10px; color: var(--brand-primary); background: var(--brand-soft); border: 1px solid var(--brand-border); margin-bottom: 20px; }
.feature-icon svg { width: 19px; height: 19px; }
.feature-card h3 { margin: 0 0 9px; font-size: 17px; letter-spacing: -.02em; }
.feature-card p { margin: 0; color: var(--text-secondary); line-height: 1.6; font-size: 13.5px; }

.steps { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; counter-reset: steps; }
.step { position: relative; padding: 22px 0 0; border-top: 1px solid var(--border-default); }
.step-num { color: var(--brand-primary); font-size: 12px; font-weight: 750; margin-bottom: 12px; }
.step h3 { margin: 0 0 8px; font-size: 17px; }
.step p { margin: 0; color: var(--text-secondary); line-height: 1.6; font-size: 13.5px; }

.trust-card { display: grid; grid-template-columns: 1fr .9fr; gap: 44px; align-items: center; background: var(--text-primary); color: white; border-radius: var(--radius-lg); padding: 44px; }
.trust-card h2 { max-width: 570px; }
.trust-card p { color: #C8CAD1; font-size: 15px; line-height: 1.7; margin: 18px 0 0; }
.trust-list { display: grid; gap: 10px; }
.trust-item { display: flex; gap: 10px; align-items: flex-start; color: #E8E8ED; font-size: 13.5px; line-height: 1.45; }
.trust-item svg { color: #A78BFA; width: 18px; height: 18px; flex: 0 0 auto; margin-top: 1px; }

.format-strip { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 30px; }
.format { border: 1px solid var(--border-default); background: var(--bg-card); border-radius: 999px; padding: 8px 12px; font-size: 12px; color: var(--text-secondary); }

.faq { display: grid; gap: 10px; max-width: 820px; }
details { background: var(--bg-card); border: 1px solid var(--border-default); border-radius: 12px; overflow: hidden; }
summary { cursor: pointer; padding: 17px 18px; font-weight: 620; font-size: 14px; list-style: none; }
summary::-webkit-details-marker { display: none; }
details p { margin: 0; padding: 0 18px 17px; color: var(--text-secondary); line-height: 1.65; font-size: 13.5px; }

.cta-card { text-align: center; padding: 54px 24px; border: 1px solid var(--brand-border); background: var(--brand-soft); border-radius: var(--radius-lg); }
.cta-card h2 { font-size: clamp(30px,4vw,44px); }
.cta-card p { color: var(--text-secondary); max-width: 650px; margin: 15px auto 25px; line-height: 1.65; }

.site-footer { border-top: 1px solid var(--border-default); padding: 36px 0; background: var(--bg-card); }
.footer-row { display: grid; grid-template-columns: 1fr auto; gap: 28px; align-items: start; }
.footer-brand p { margin: 10px 0 0; color: var(--text-muted); font-size: 12px; max-width: 520px; line-height: 1.6; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 18px; justify-content: flex-end; color: var(--text-secondary); font-size: 12px; }
.footer-links a:hover { color: var(--brand-primary); }
.copyright { color: var(--text-muted); font-size: 11px; margin-top: 24px; }

/* Legal pages */
.legal-hero { padding: 72px 0 44px; border-bottom: 1px solid var(--border-default); background: var(--bg-card); }
.legal-hero .container { max-width: 880px; }
.legal-hero h1 { font-size: clamp(36px,5vw,54px); margin-bottom: 16px; }
.legal-hero p { color: var(--text-secondary); font-size: 15px; line-height: 1.65; margin: 0; }
.legal-meta { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 8px 16px; color: var(--text-muted); font-size: 12px; }
.legal-layout { max-width: 880px; margin: 0 auto; padding: 54px 20px 90px; }
.legal-layout section { margin-top: 34px; }
.legal-layout section:first-child { margin-top: 0; }
.legal-layout h2 { font-size: 22px; letter-spacing: -.025em; margin-bottom: 12px; }
.legal-layout h3 { font-size: 15px; margin: 18px 0 8px; }
.legal-layout p, .legal-layout li { color: var(--text-secondary); font-size: 14px; line-height: 1.75; }
.legal-layout ul { padding-left: 20px; }
.legal-callout { background: var(--brand-soft); border: 1px solid var(--brand-border); border-radius: 12px; padding: 16px 18px; color: var(--text-secondary); font-size: 13px; line-height: 1.65; }
.legal-table { width: 100%; border-collapse: collapse; margin-top: 14px; font-size: 13px; }
.legal-table th, .legal-table td { text-align: left; vertical-align: top; padding: 12px 10px; border-bottom: 1px solid var(--border-default); }
.legal-table th { color: var(--text-primary); font-weight: 650; }
.legal-table td { color: var(--text-secondary); line-height: 1.55; }
.contact-card { background: var(--bg-card); border: 1px solid var(--border-default); border-radius: 16px; padding: 24px; }
.contact-card a { color: var(--brand-primary); font-weight: 620; }

@media (max-width: 920px) {
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .product-stage { max-width: 620px; width: 100%; }
  .feature-grid { grid-template-columns: repeat(2,1fr); }
  .trust-card { grid-template-columns: 1fr; gap: 28px; }
}
@media (max-width: 720px) {
  .container { width: min(calc(100% - 28px), var(--max)); }
  .nav { min-height: 64px; }
  .mobile-menu { display: grid; place-items: center; }
  .nav-links { display: none; position: absolute; top: 64px; left: 14px; right: 14px; background: white; border: 1px solid var(--border-default); border-radius: 14px; padding: 8px; box-shadow: var(--shadow-sm); }
  .nav-links.open { display: grid; }
  .nav-links a { padding: 11px 12px; }
  .hero { padding: 60px 0 54px; }
  .hero-grid { gap: 38px; }
  .hero p { font-size: 16px; }
  .section { padding: 68px 0; }
  .feature-grid, .steps { grid-template-columns: 1fr; }
  .feature-card { min-height: 0; }
  .trust-card { padding: 30px 24px; }
  .footer-row { grid-template-columns: 1fr; }
  .footer-links { justify-content: flex-start; }
  .legal-layout { padding-inline: 16px; }
  .legal-table { display: block; overflow-x: auto; }
}
@media (max-width: 440px) {
  h1 { font-size: 43px; }
  .hero-actions .button { width: 100%; }
  .type-row { grid-template-columns: repeat(2,1fr); }
  .product-stage { padding: 11px; border-radius: 20px; }
  .demo-canvas { padding-top: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
