:root {
  --bg: #f7f8fc;
  --surface: #ffffff;
  --surface-alt: #eef1f9;
  --text: #121a2c;
  --muted: #5a6478;
  --accent: #4f46e5;
  --accent-dark: #3730a3;
  --accent-soft: #e6e5fd;
  --success: #12a37a;
  --border: #dfe3ee;
  --radius: 18px;
  --shadow: 0 10px 30px rgba(18, 26, 44, 0.07);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0d1220;
    --surface: #151c2e;
    --surface-alt: #111829;
    --text: #e9ecf5;
    --muted: #9aa3b8;
    --accent: #7c74ff;
    --accent-dark: #5b52f0;
    --accent-soft: #252a4d;
    --border: #252e45;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  }
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
  margin: 0;
  font-family: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 17px;
}

a { color: inherit; }

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

h1, h2, h3 { line-height: 1.2; margin: 0 0 16px; }
h1 { font-size: clamp(36px, 5.2vw, 60px); font-weight: 800; letter-spacing: -0.02em; }
h2 { font-size: clamp(28px, 3.6vw, 42px); font-weight: 800; letter-spacing: -0.01em; margin-bottom: 36px; }
h3 { font-size: 20px; font-weight: 700; }
p { margin: 0 0 12px; }

.eyebrow {
  color: var(--accent);
  font-weight: 700;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 12px;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 68px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 20px; text-decoration: none; }
.logo-mark {
  display: grid; place-items: center;
  width: 34px; height: 34px; border-radius: 10px;
  background: var(--accent); color: #fff; font-size: 18px;
}
.nav { display: flex; gap: 28px; }
.nav a { text-decoration: none; color: var(--muted); font-weight: 600; font-size: 15px; }
.nav a:hover { color: var(--text); }

/* Buttons */
.btn {
  display: inline-block;
  padding: 14px 26px;
  border-radius: 12px;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  border: 2px solid var(--accent);
  transition: background 0.2s, transform 0.2s;
}
.btn:hover { background: var(--accent-dark); border-color: var(--accent-dark); transform: translateY(-1px); }
.btn-small { padding: 9px 18px; font-size: 15px; }
.btn-ghost { background: transparent; color: var(--accent); }
.btn-ghost:hover { background: var(--accent-soft); color: var(--accent); border-color: var(--accent); }
.btn-light { background: #fff; color: var(--accent-dark); border-color: #fff; }
.btn-light:hover { background: #f0efff; border-color: #f0efff; }

/* Hero */
.hero { padding: 80px 0 64px; }
.hero-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 56px; align-items: center; }
.lead { font-size: 19px; color: var(--muted); max-width: 600px; margin-bottom: 28px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 40px; }
.hero-facts { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 36px; }
.hero-facts strong { display: block; font-size: 28px; font-weight: 800; color: var(--accent); }
.hero-facts span { color: var(--muted); font-size: 14px; }

.hero-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 24px;
  box-shadow: var(--shadow);
}
.chat { display: flex; flex-direction: column; gap: 12px; margin-bottom: 18px; }
.msg { padding: 12px 16px; border-radius: 16px; max-width: 85%; font-size: 15px; }
.msg-in { background: var(--surface-alt); align-self: flex-start; border-bottom-left-radius: 4px; }
.msg-out { background: var(--accent); color: #fff; align-self: flex-end; border-bottom-right-radius: 4px; }
.agent-status { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--muted); border-top: 1px solid var(--border); padding-top: 16px; }
.dot { width: 9px; height: 9px; border-radius: 50%; background: var(--success); box-shadow: 0 0 0 4px color-mix(in srgb, var(--success) 20%, transparent); }

/* Sections */
.section { padding: 88px 0; }
.section-alt { background: var(--surface-alt); }
.grid { display: grid; gap: 24px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
}
.card p { color: var(--muted); }
.service .icon { font-size: 30px; margin-bottom: 14px; }
.service:hover { box-shadow: var(--shadow); transform: translateY(-2px); transition: 0.2s; }

.pains .card { border-left: 4px solid var(--accent); }

/* Steps */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.steps li { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; }
.steps p { color: var(--muted); }
.step-num {
  display: grid; place-items: center;
  width: 40px; height: 40px; border-radius: 12px;
  background: var(--accent-soft); color: var(--accent);
  font-weight: 800; margin-bottom: 16px;
}

/* Use cases */
.tag { display: inline-block; font-size: 13px; font-weight: 700; color: var(--accent); background: var(--accent-soft); padding: 4px 12px; border-radius: 99px; margin-bottom: 14px; }
.case .result { color: var(--success); font-weight: 800; font-size: 18px; margin-top: 16px; margin-bottom: 0; }
.note { color: var(--muted); font-size: 14px; margin-top: 20px; }

/* Pricing */
.price { display: flex; flex-direction: column; position: relative; }
.price-value { font-size: 30px; font-weight: 800; color: var(--text) !important; }
.price ul { padding-left: 20px; color: var(--muted); margin: 8px 0 24px; flex: 1; }
.price li { margin-bottom: 6px; }
.price .btn { text-align: center; }
.price-featured { border: 2px solid var(--accent); box-shadow: var(--shadow); }
.badge { position: absolute; top: -13px; left: 28px; background: var(--accent); color: #fff; font-size: 12px; font-weight: 700; padding: 4px 12px; border-radius: 99px; }

/* FAQ */
details { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 20px 24px; margin-bottom: 12px; }
summary { cursor: pointer; font-weight: 700; font-size: 18px; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--accent); font-size: 24px; line-height: 1; }
details[open] summary::after { content: "−"; }
details p { color: var(--muted); margin: 14px 0 0; }

/* Call to action */
.cta-box {
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: #fff;
  border-radius: 28px;
  padding: 64px 48px;
  text-align: center;
}
.cta-box h2 { margin-bottom: 16px; }
.cta-box p { color: rgba(255, 255, 255, 0.85); margin-bottom: 28px; font-size: 18px; }

/* Footer */
.site-footer { border-top: 1px solid var(--border); padding: 28px 0; color: var(--muted); font-size: 15px; }
.footer-row { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; }

/* Narrow screens */
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .nav { display: none; }
}
@media (max-width: 640px) {
  .hero { padding: 48px 0; }
  .section { padding: 64px 0; }
  .grid-3, .steps { grid-template-columns: 1fr; }
  .cta-box { padding: 44px 24px; }
  .hero-facts { gap: 24px; }
}
