:root {
  --bg: #ffffff;
  --bg-soft: #f5f7fb;
  --surface: #ffffff;
  --border: #e4e8f0;
  --text: #121826;
  --muted: #5b6577;
  --accent: #2f6fed;
  --accent-2: #7b4dff;
  --accent-soft: #eaf0ff;
  --ok: #16a34a;
  --radius: 16px;
  --shadow: 0 10px 30px rgb(18 24 38 / 8%);
  --max: 1120px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b0e14;
    --bg-soft: #11151d;
    --surface: #151a23;
    --border: #252c38;
    --text: #e8ebf1;
    --muted: #9aa4b5;
    --accent: #5b8ff9;
    --accent-2: #9b7bff;
    --accent-soft: #18233d;
    --shadow: none;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }

/* Header */
.top { position: sticky; top: 0; z-index: 5; backdrop-filter: saturate(180%) blur(12px); background: color-mix(in srgb, var(--bg) 82%, transparent); border-bottom: 1px solid var(--border); }
.top .wrap { display: flex; align-items: center; gap: 24px; height: 64px; }
.logo { font-weight: 800; font-size: 20px; color: var(--text); letter-spacing: -.01em; }
.logo span { color: var(--accent); }
.logo:hover { text-decoration: none; }
.nav { display: flex; gap: 20px; flex: 1; }
.nav a { color: var(--muted); font-size: 15px; }
.nav a:hover { color: var(--text); text-decoration: none; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 22px; border-radius: 12px; font-weight: 600; font-size: 16px; border: 1px solid var(--border); color: var(--text); background: var(--surface); white-space: nowrap; }
.btn:hover { text-decoration: none; border-color: var(--accent); }
.btn.primary { background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #fff; border: 0; box-shadow: 0 8px 24px rgb(47 111 237 / 30%); }
.btn.primary:hover { filter: brightness(1.06); }
.btn.small { padding: 8px 14px; font-size: 14px; }

/* Hero */
.hero { padding: 88px 0 72px; background: radial-gradient(1200px 500px at 70% -10%, var(--accent-soft), transparent 70%); }
.hero .wrap { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
.eyebrow { display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); background: var(--accent-soft); padding: 6px 12px; border-radius: 99px; }
.hero h1 { font-size: clamp(36px, 5vw, 58px); line-height: 1.08; letter-spacing: -.025em; margin: 18px 0; }
.hero h1 em { font-style: normal; background: linear-gradient(135deg, var(--accent), var(--accent-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lede { font-size: 20px; color: var(--muted); max-width: 560px; }
.actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.note { margin-top: 14px; font-size: 14px; color: var(--muted); }

/* Hero illustration: a message flowing from a source to a destination */
.flow { display: grid; gap: 14px; }
.chan { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px; }
.chan .head { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 15px; margin-bottom: 10px; }
.avatar { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-weight: 800; font-size: 14px; }
.a1 { background: linear-gradient(135deg, #f59e0b, #ef4444); }
.a2 { background: linear-gradient(135deg, var(--accent), var(--accent-2)); }
.bubble { background: var(--bg-soft); border-radius: 12px; padding: 10px 12px; font-size: 14px; }
.bubble .pic { height: 92px; border-radius: 8px; margin-bottom: 8px; background: linear-gradient(135deg, #60a5fa, #a78bfa); position: relative; }
.bubble .mark { position: absolute; right: 8px; bottom: 6px; font-size: 11px; font-weight: 800; color: #fff; opacity: .85; }
.strike { text-decoration: line-through; color: var(--muted); }
.arrow { text-align: center; font-size: 13px; color: var(--muted); }
.arrow b { display: inline-block; padding: 4px 10px; border-radius: 99px; background: var(--accent-soft); color: var(--accent); font-size: 12px; }

/* Sections */
section { padding: 80px 0; }
section.soft { background: var(--bg-soft); }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 48px; }
.section-head h2 { font-size: clamp(28px, 3.4vw, 40px); letter-spacing: -.02em; line-height: 1.15; margin: 0 0 12px; }
.section-head p { color: var(--muted); font-size: 18px; margin: 0; }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.stat { text-align: center; padding: 22px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); }
.stat b { display: block; font-size: 30px; letter-spacing: -.02em; }
.stat span { color: var(--muted); font-size: 14px; }

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feature { padding: 24px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); }
.feature .icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; color: var(--accent); background: var(--accent-soft); margin-bottom: 14px; }
.feature h3 { margin: 0 0 8px; font-size: 18px; }
.feature p { margin: 0; color: var(--muted); font-size: 15px; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; counter-reset: step; }
.step { padding: 24px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); position: relative; }
.step::before { counter-increment: step; content: counter(step); position: absolute; top: -14px; left: 24px; width: 28px; height: 28px; border-radius: 50%; background: var(--accent); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 14px; }
.step h3 { margin: 6px 0 8px; font-size: 18px; }
.step p { margin: 0; color: var(--muted); font-size: 15px; }

.cases { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.case { padding: 24px; border-radius: var(--radius); border: 1px solid var(--border); background: var(--surface); }
.case h3 { margin: 0 0 6px; font-size: 18px; }
.case p { margin: 0; color: var(--muted); font-size: 15px; }

.prices { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; align-items: stretch; }
.price { padding: 28px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); display: flex; flex-direction: column; gap: 10px; }
.price.featured { border: 2px solid var(--accent); box-shadow: var(--shadow); }
.price h3 { margin: 0; font-size: 18px; }
.price .amount { font-size: 34px; font-weight: 800; letter-spacing: -.02em; }
.price .amount small { font-size: 15px; font-weight: 500; color: var(--muted); }
.price ul { margin: 6px 0 16px; padding: 0; list-style: none; display: grid; gap: 8px; flex: 1; }
.price li { padding-left: 26px; position: relative; font-size: 15px; }
.price li::before { content: "✓"; position: absolute; left: 0; color: var(--ok); font-weight: 800; }
.addons { margin-top: 24px; padding: 20px 24px; border-radius: var(--radius); border: 1px dashed var(--border); color: var(--muted); font-size: 15px; }
.addons b { color: var(--text); }

.faq { max-width: 820px; margin: 0 auto; display: grid; gap: 10px; }
.faq details { border: 1px solid var(--border); border-radius: 12px; padding: 16px 20px; background: var(--surface); }
.faq summary { cursor: pointer; font-weight: 600; }
.faq details p { color: var(--muted); margin: 10px 0 0; }

.cta { text-align: center; padding: 64px 24px; border-radius: 24px; background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #fff; }
.cta h2 { font-size: clamp(28px, 3.4vw, 40px); margin: 0 0 12px; letter-spacing: -.02em; }
.cta p { opacity: .9; margin: 0 0 24px; font-size: 18px; }
.cta .btn { background: #fff; color: #1d2b53; border: 0; }

/* Blog */
.page { padding: 56px 0 80px; }
.page h1 { font-size: clamp(32px, 4vw, 44px); letter-spacing: -.02em; line-height: 1.15; margin: 0 0 12px; }
.posts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; margin-top: 36px; }
.post-card { display: block; padding: 24px; border-radius: var(--radius); border: 1px solid var(--border); background: var(--surface); color: var(--text); }
.post-card:hover { text-decoration: none; border-color: var(--accent); }
.post-card h2 { font-size: 20px; margin: 6px 0 8px; line-height: 1.3; }
.post-card p { color: var(--muted); margin: 0; font-size: 15px; }
.meta { color: var(--muted); font-size: 14px; }
article.post { max-width: 760px; margin: 0 auto; }
article.post .content { font-size: 18px; }
article.post .content h2 { font-size: 26px; margin: 40px 0 12px; letter-spacing: -.01em; }
article.post .content table { border-collapse: collapse; width: 100%; margin: 16px 0; font-size: 16px; display: block; overflow-x: auto; }
article.post .content th, article.post .content td { border: 1px solid var(--border); padding: 8px 12px; text-align: left; }
article.post .content th { background: var(--bg-soft); }
article.post .content pre { background: var(--bg-soft); border: 1px solid var(--border); border-radius: 12px; padding: 16px; overflow-x: auto; font-size: 14px; }
article.post .content code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .88em; background: var(--bg-soft); padding: 2px 6px; border-radius: 6px; }
article.post .content pre code { background: none; padding: 0; }
.promo { margin: 48px 0 0; padding: 28px; border-radius: var(--radius); background: var(--accent-soft); display: flex; gap: 20px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.promo h3 { margin: 0 0 4px; }
.promo p { margin: 0; color: var(--muted); }
.legal { max-width: 760px; }
.legal h2 { font-size: 22px; margin-top: 32px; }

/* Footer */
footer { border-top: 1px solid var(--border); padding: 40px 0; color: var(--muted); font-size: 14px; }
footer .wrap { display: flex; gap: 24px; justify-content: space-between; flex-wrap: wrap; }
footer nav { display: flex; gap: 18px; flex-wrap: wrap; }
footer a { color: var(--muted); }

@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .features, .steps, .prices { grid-template-columns: 1fr 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .nav { display: none; }
  .logo { margin-right: auto; }
  .features, .steps, .prices, .cases, .posts { grid-template-columns: 1fr; }
  .hero { padding: 56px 0 48px; }
  section { padding: 56px 0; }
}
