:root {
  --bg: #ffffff;
  --bg-soft: #f7f6fb;
  --ink: #1a1a2e;
  --muted: #5c5c7a;
  --line: #e6e4f0;
  --accent: #412966;
  --accent-light: #6b4c9a;
  --accent-soft: #f0ecf7;
  --radius: 12px;
  --sans: "Source Sans 3", system-ui, sans-serif;
  --display: "Outfit", system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--sans); background: var(--bg); color: var(--ink); line-height: 1.6; }
a { color: inherit; text-decoration: none; }
.wrap { width: min(1140px, calc(100% - 48px)); margin-inline: auto; }
.nav { position: sticky; top: 0; z-index: 40; background: #fff; border-bottom: 1px solid var(--line); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; min-height: 72px; gap: 24px; }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 700; font-size: 20px; letter-spacing: -.02em; }
.mark { width: 32px; height: 32px; border-radius: 8px; background: var(--accent); color: #fff; display: grid; place-items: center; font-weight: 800; }
.nav-links { display: flex; gap: 28px; align-items: center; color: var(--muted); font-size: 15px; font-weight: 500; }
.nav-links a:hover { color: var(--accent); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border-radius: 8px; padding: 12px 22px; font-weight: 600; font-size: 15px; border: 1px solid transparent; cursor: pointer; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-light); }
.btn-ghost { border-color: var(--line); color: var(--ink); background: #fff; }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.hero { padding: 80px 0 60px; background: linear-gradient(180deg, var(--bg-soft) 0%, #fff 100%); }
.kicker { color: var(--accent); font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 12px; }
h1, h2, h3 { font-family: var(--display); line-height: 1.1; margin: 0 0 16px; letter-spacing: -.02em; }
h1 { font-size: clamp(36px, 5vw, 56px); max-width: 18ch; }
h2 { font-size: clamp(28px, 3.5vw, 40px); }
.lead { color: var(--muted); font-size: 18px; max-width: 54ch; margin-bottom: 28px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 48px; }
.stat { text-align: left; }
.stat b { display: block; font-size: 22px; font-family: var(--display); color: var(--accent); }
.stat span { color: var(--muted); font-size: 14px; }
.section { padding: 72px 0; }
.section-soft { background: var(--bg-soft); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-2 { display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: center; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; transition: box-shadow .2s, border-color .2s; }
.card:hover { border-color: var(--accent); box-shadow: 0 8px 30px rgba(65,41,102,.08); }
.card h3 { font-size: 20px; margin-bottom: 10px; }
.muted { color: var(--muted); }
.card a { color: var(--accent); font-weight: 600; font-size: 14px; display: inline-block; margin-top: 12px; }
.ai-demo { background: var(--bg-soft); border: 1px solid var(--line); border-radius: 16px; padding: 24px; }
.ai-msg { background: #fff; border-radius: 10px; padding: 12px 14px; margin: 8px 0; font-size: 14px; border: 1px solid var(--line); }
.ai-msg.user { background: var(--accent-soft); margin-left: 16%; }
footer { background: #1a1a2e; color: #c4c4d4; padding: 48px 0 24px; }
.foot { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; }
.foot strong { color: #fff; display: block; margin-bottom: 8px; }
.foot a { display: block; margin: 6px 0; color: #c4c4d4; }
.foot a:hover { color: #fff; }
.tiny { font-size: 13px; margin-top: 32px; border-top: 1px solid #2e2e4a; padding-top: 20px; }
.ai-fab { position: fixed; right: 20px; bottom: 20px; z-index: 50; width: 56px; height: 56px; border-radius: 50%; border: 0; cursor: pointer; background: var(--accent); color: #fff; font-weight: 700; box-shadow: 0 8px 24px rgba(65,41,102,.3); }
.ai-panel { position: fixed; right: 20px; bottom: 88px; width: min(360px, calc(100vw - 24px)); height: min(480px, calc(100vh - 110px)); background: #fff; border: 1px solid var(--line); border-radius: 16px; display: none; flex-direction: column; overflow: hidden; z-index: 50; box-shadow: 0 20px 60px rgba(0,0,0,.15); }
.ai-panel.open { display: flex; }
.ai-head { padding: 14px 16px; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; background: var(--bg-soft); }
.ai-msgs { flex: 1; overflow: auto; padding: 16px; display: grid; gap: 10px; }
.bubble { max-width: 88%; padding: 10px 12px; border-radius: 12px; font-size: 14px; }
.bubble.bot { background: var(--bg-soft); }
.bubble.user { background: var(--accent-soft); margin-left: auto; }
.ai-form { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--line); }
.ai-form input { flex: 1; border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; font: inherit; }
@media (max-width: 900px) {
  .grid-3, .stats, .foot, .grid-2 { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  h1 { max-width: none; }
}
