:root {
  --bg: #ffffff;
  --surface: #f5f7fb;
  --border: #e2e6ee;
  --text: #141820;
  --muted: #5b6474;
  --accent: #2f6fed;
  --accent-2: #6d28d9;
  --accent-text: #ffffff;
  --ok: #1e8e3e;
  --radius: 14px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1115;
    --surface: #171a21;
    --border: #2a2f3a;
    --text: #e9ecf2;
    --muted: #9aa3b2;
    --accent: #6c9cff;
    --accent-2: #a78bfa;
    --accent-text: #0b0d12;
    --ok: #5bb974;
    color-scheme: dark;
  }
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
a { color: var(--accent); }
.container { max-width: 1040px; margin: 0 auto; padding: 0 16px; }

nav { display: flex; align-items: center; gap: 10px; padding: 18px 0; }
nav .brand { display: flex; align-items: center; gap: 10px; font-weight: 700; color: var(--text); text-decoration: none; }
nav .links { margin-left: auto; display: flex; gap: 18px; font-size: 15px; }
nav .links a { color: var(--muted); text-decoration: none; }
nav .links a:hover { color: var(--text); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 20px; border-radius: 10px; font-weight: 600; text-decoration: none;
  border: 1px solid var(--border); color: var(--text); background: var(--bg);
}
.btn.primary { background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #fff; border: none; }

.hero { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 40px; align-items: center; padding: 48px 0 64px; }
.hero h1 { font-size: clamp(32px, 5vw, 50px); line-height: 1.1; margin: 0 0 16px; letter-spacing: -0.02em; }
.hero p.lead { font-size: 19px; color: var(--muted); margin: 0 0 28px; }
.hero .ctas { display: flex; gap: 12px; flex-wrap: wrap; }
.hero .note { margin-top: 14px; font-size: 14px; color: var(--muted); }
.hero img { width: 100%; max-width: 380px; max-height: 540px; object-fit: cover; object-position: top; justify-self: center; border-radius: 14px; border: 1px solid var(--border); box-shadow: 0 20px 50px rgba(30, 40, 90, 0.18); }

section { padding: 56px 0; }
section.alt { background: var(--surface); }
h2 { font-size: clamp(26px, 3.5vw, 34px); margin: 0 0 10px; letter-spacing: -0.01em; }
.sub { color: var(--muted); margin: 0 0 32px; max-width: 640px; }

.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card { background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; }
section.alt .card { background: var(--bg); }
.card h3 { margin: 0 0 6px; font-size: 17px; }
.card p { margin: 0; color: var(--muted); font-size: 15px; }
.icon { font-size: 22px; margin-bottom: 8px; display: block; }
a.card.product { text-decoration: none; color: var(--text); display: flex; flex-direction: column; gap: 6px; transition: border-color .15s, transform .15s; }
a.card.product:hover { border-color: var(--accent); transform: translateY(-2px); }
a.card.product img { border-radius: 12px; margin-bottom: 6px; }

.uses { display: flex; flex-wrap: wrap; gap: 10px; }
.uses span { border: 1px solid var(--border); border-radius: 999px; padding: 6px 14px; font-size: 15px; background: var(--bg); }

.pricing { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; align-items: stretch; }
.plan { display: flex; flex-direction: column; }
.plan .price { font-size: 34px; font-weight: 800; margin: 6px 0 2px; }
.plan .per { color: var(--muted); font-size: 14px; margin-bottom: 16px; }
.plan ul { padding: 0; margin: 0 0 20px; list-style: none; flex: 1; }
.plan li { padding: 5px 0 5px 24px; position: relative; font-size: 15px; }
.plan li::before { content: "✓"; position: absolute; left: 0; color: var(--ok); font-weight: 700; }
.plan.featured { border: 2px solid var(--accent); position: relative; }
.plan.featured .tag { position: absolute; top: -12px; left: 22px; background: var(--accent); color: var(--accent-text); font-size: 12px; font-weight: 700; padding: 2px 10px; border-radius: 999px; }

details { border-bottom: 1px solid var(--border); padding: 14px 0; }
details summary { cursor: pointer; font-weight: 600; }
details p { color: var(--muted); margin: 8px 0 0; }

footer { padding: 32px 0 48px; color: var(--muted); font-size: 14px; border-top: 1px solid var(--border); }
footer .row { display: flex; gap: 18px; flex-wrap: wrap; }
footer a { color: var(--muted); }

.doc { max-width: 760px; padding: 24px 16px 64px; margin: 0 auto; }
.doc h1 { font-size: 34px; margin: 8px 0 4px; }
.doc h2 { font-size: 21px; margin: 32px 0 8px; }
.doc p, .doc li { color: var(--text); }
.doc .updated { color: var(--muted); margin-bottom: 24px; }

@media (max-width: 820px) {
  .hero { grid-template-columns: 1fr; padding-top: 24px; }
  .grid, .pricing { grid-template-columns: 1fr !important; }
  nav .links a.hide-sm { display: none; }
}
