/* Xervente design language: navy + brand blue for the product, coral for people and highlights,
   soft blue line art and dot grids for depth. Sora for headings, Inter for reading. */
:root {
  --navy: #0b1220;
  --ink: #0f172a;
  --muted: #56627a;
  --blue: #2f6bff;
  --blue-ui: #2563eb; /* buttons and links: passes contrast with white */
  --blue-soft: #eef2ff;
  --line: #dde4f5;
  --coral: #ff6b57;
  --coral-soft: #ffe4df;
  --bg: #ffffff;
  --bg-alt: #f5f7ff;
  --radius: 18px;
  --shadow: 0 18px 50px -24px rgba(15, 23, 42, 0.35);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font: 17px/1.6 Inter, system-ui, -apple-system, 'Segoe UI', sans-serif; color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue-ui); }
h1, h2, h3 { font-family: Sora, Inter, system-ui, sans-serif; line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 16px; }
h1 { font-size: clamp(36px, 4.6vw, 56px); }
h2 { font-size: clamp(30px, 3.6vw, 44px); }
h3 { font-size: 21px; }
p { margin: 0 0 16px; }
.wrap { width: min(1160px, 100% - 40px); margin: 0 auto; }
.eyebrow { display: inline-block; font: 600 13px/1 Sora, sans-serif; letter-spacing: 0.08em; text-transform: uppercase; color: var(--coral); margin-bottom: 14px; }
.lead { font-size: 20px; color: var(--muted); max-width: 620px; }
.accent { color: var(--blue); }

/* header */
.top { position: sticky; top: 0; z-index: 10; background: rgba(255, 255, 255, 0.86); backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid transparent; }
.top.scrolled { border-bottom-color: var(--line); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font: 700 22px Sora, sans-serif; letter-spacing: -0.02em; }
.brand img { width: 38px; height: 38px; }
.nav { display: flex; align-items: center; gap: 28px; }
.nav a { color: var(--ink); text-decoration: none; font-weight: 500; font-size: 15px; }
.nav a:hover { color: var(--blue-ui); }
.nav a.btn-primary, .nav a.btn-primary:hover { color: #fff; }
.menu-btn { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.menu-btn span { display: block; width: 22px; height: 2px; background: var(--ink); margin: 5px 0; border-radius: 2px; }

/* buttons */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 14px 26px; border-radius: 999px; font: 600 16px Inter, sans-serif; text-decoration: none; border: 2px solid transparent; cursor: pointer; transition: transform 0.15s ease, box-shadow 0.15s ease; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--blue-ui); color: #fff; box-shadow: 0 10px 24px -10px rgba(37, 99, 235, 0.7); }
.btn-ghost { background: #fff; color: var(--ink); border-color: var(--line); }
.btn-small { padding: 9px 18px; font-size: 14px; }

/* hero */
.hero { position: relative; padding: 56px 0 80px; overflow: hidden; }
.hero::before { content: ''; position: absolute; inset: 0 0 auto auto; width: 58%; height: 100%; background: radial-gradient(circle at 60% 40%, #e9efff 0, transparent 62%); z-index: -1; }
.hero .wrap { display: grid; grid-template-columns: 1.02fr 1fr; gap: 40px; align-items: center; }
.hero .actions { display: flex; gap: 14px; flex-wrap: wrap; margin: 28px 0 22px; }
.hero small { color: var(--muted); font-size: 14px; }
.agents { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 30px; }
.agents span { font-size: 13px; font-weight: 600; padding: 6px 12px; border-radius: 999px; background: var(--blue-soft); color: #1d3b8a; }
.agents span.soft { background: #f1f3f8; color: var(--muted); font-weight: 500; }

/* sections */
section { padding: 96px 0; }
.alt { background: var(--bg-alt); }
.center { text-align: center; }
.center .lead { margin: 0 auto 48px; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.card .art { background: var(--bg-alt); border-radius: 14px; margin-bottom: 22px; padding: 10px; }
.num { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--coral); color: #fff; font: 700 14px Sora, sans-serif; margin-bottom: 12px; }
.card p { color: var(--muted); margin: 0; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.split.flip > :first-child { order: 2; }
.modes { display: grid; gap: 16px; margin-top: 28px; }
.mode { display: flex; gap: 16px; padding: 20px; border-radius: 16px; border: 1px solid var(--line); background: #fff; }
.mode .dot { flex: none; width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; font: 700 18px Sora, sans-serif; color: #fff; }
.mode h3 { font-size: 18px; margin-bottom: 4px; }
.mode p { margin: 0; color: var(--muted); font-size: 15.5px; }
.b-blue { background: var(--blue); }
.b-coral { background: var(--coral); }

.holds { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 36px; }
.hold { display: flex; align-items: center; gap: 12px; padding: 16px 18px; border-radius: 14px; background: #fff; border: 1px solid var(--line); font-weight: 600; }
.hold i { width: 10px; height: 10px; border-radius: 50%; background: var(--coral); flex: none; }

.dark { background: var(--navy); color: #e8edf6; position: relative; overflow: hidden; }
.dark::after { content: ''; position: absolute; right: -120px; top: -120px; width: 420px; height: 420px; border-radius: 50%; background: radial-gradient(circle, rgba(47, 107, 255, 0.35), transparent 70%); }
.dark h2 { color: #fff; }
.dark .lead, .dark p { color: #aab5cc; }
.ticks { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 12px; }
.ticks li { padding-left: 34px; position: relative; }
.ticks li::before { content: ''; position: absolute; left: 0; top: 4px; width: 20px; height: 20px; border-radius: 6px; background: var(--blue) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 10.5l3 3 7-7' fill='none' stroke='white' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 20px no-repeat; }
.dark .ticks li { color: #e8edf6; }

/* pricing */
.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 380px)); gap: 24px; justify-content: center; }
.plan { border-radius: 22px; padding: 34px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); }
.plan.pro { border: 2px solid var(--blue); position: relative; }
.plan.pro::before { content: 'Pro'; position: absolute; top: -14px; left: 28px; background: var(--blue); color: #fff; font: 700 12px Sora, sans-serif; padding: 6px 12px; border-radius: 999px; }
.plan .price { font: 700 34px Sora, sans-serif; margin: 8px 0 18px; }
.plan .price small { font: 500 15px Inter, sans-serif; color: var(--muted); }

/* beta form */
.beta { display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px; align-items: center; }
form.signup { background: #fff; border-radius: 22px; padding: 30px; border: 1px solid var(--line); box-shadow: var(--shadow); display: grid; gap: 14px; }
label { font-size: 14px; font-weight: 600; display: grid; gap: 6px; }
input, select, textarea { font: 16px Inter, sans-serif; padding: 12px 14px; border-radius: 12px; border: 1.5px solid var(--line); background: #fff; color: var(--ink); width: 100%; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(47, 107, 255, 0.15); }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.note { font-size: 13px; color: var(--muted); margin: 0; }
.msg { font-weight: 600; margin: 0; }
.msg.ok { color: #127a4b; }
.msg.err { color: #b3261e; }

/* faq */
.faq { max-width: 820px; margin: 0 auto; }
details { border-bottom: 1px solid var(--line); padding: 18px 0; }
summary { cursor: pointer; font: 600 18px Sora, sans-serif; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
summary::after { content: '+'; color: var(--blue); font-size: 24px; line-height: 1; }
details[open] summary::after { content: '–'; }
details p { color: var(--muted); margin: 12px 0 0; }

footer { padding: 40px 0; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }
footer .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; align-items: center; }
footer a { color: var(--muted); text-decoration: none; margin-left: 18px; }

/* reading pages (privacy, 404) */
.page { padding: 64px 0 96px; }
.page .wrap { max-width: 760px; }
.page h2 { font-size: 24px; margin-top: 36px; }

/* motion: gentle, and none for people who ask for none */
.float { animation: float 6s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-8px); } }
@media (prefers-reduced-motion: reduce) { .float { animation: none; } html { scroll-behavior: auto; } }

/* phones and small tablets */
@media (max-width: 900px) {
  .hero .wrap, .split, .beta { grid-template-columns: 1fr; gap: 36px; }
  .split.flip > :first-child { order: 0; }
  .steps, .holds { grid-template-columns: 1fr; }
  .plans { grid-template-columns: 1fr; }
  section { padding: 72px 0; }
  .nav { display: none; position: absolute; top: 72px; left: 0; right: 0; background: #fff; flex-direction: column; padding: 20px; gap: 18px; border-bottom: 1px solid var(--line); }
  .nav.open { display: flex; }
  .menu-btn { display: block; }
  .row2 { grid-template-columns: 1fr; }
}

/* inner pages: guide, download, pro, changelog */
.page h1 { font-size: clamp(34px, 4vw, 48px); }
.mt { margin-top: 64px; }
.docs { display: grid; grid-template-columns: 220px 1fr; gap: 56px; max-width: 1100px; }
.toc { position: sticky; top: 96px; align-self: start; display: grid; gap: 10px; font-size: 15px; }
.toc a { color: var(--muted); text-decoration: none; }
.toc a:hover { color: var(--blue-ui); }
.prose { max-width: 760px; }
.prose h2 { font-size: 26px; margin: 48px 0 12px; scroll-margin-top: 90px; }
.prose ul { padding-left: 20px; }
.prose li { margin-bottom: 8px; }
code { font: 0.92em Consolas, 'SFMono-Regular', Menlo, monospace; background: var(--blue-soft); color: #1d3b8a; padding: 2px 6px; border-radius: 6px; }
.dark code { background: #1c2640; color: #c9d7ff; }
.cmds { width: 100%; border-collapse: collapse; margin: 12px 0 8px; }
.cmds td { border-bottom: 1px solid var(--line); padding: 12px 10px; vertical-align: top; }
.cmds td:first-child { width: 42%; white-space: nowrap; }
.platforms { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; margin: 36px 0 20px; }
.platform { border: 1px solid var(--line); border-radius: 16px; padding: 22px; background: #fff; }
.platform h3 { margin-bottom: 6px; }
.platform p { color: var(--muted); font-size: 15px; }
.tag { display: inline-block; font: 600 12px Sora, sans-serif; padding: 4px 10px; border-radius: 999px; background: var(--blue-soft); color: #1d3b8a; }
.tag.soft { background: #f1f3f8; color: var(--muted); }
.dl-status { margin: 28px 0 12px; font-weight: 600; }
.dl-status.err { color: #b3261e; }
.dl-status.ok { color: #127a4b; }
.dl-files { display: grid; gap: 12px; max-width: 640px; }
.dl-file { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 16px 20px; border-radius: 14px; background: var(--blue-ui); color: #fff; text-decoration: none; }
.dl-file span { opacity: 0.85; font-size: 14px; }
.howto { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.howto-step { border: 1px solid var(--line); border-radius: 18px; padding: 24px; background: #fff; }
.howto-step p { color: var(--muted); margin: 0; }
.log { max-width: 760px; }
.release { padding: 0; border-bottom: 1px solid var(--line); }
.release h2 { font-size: 22px; margin: 32px 0 12px; }
.release ul { padding-left: 20px; }
.release li { margin-bottom: 8px; }
@media (max-width: 900px) {
  .docs { grid-template-columns: 1fr; gap: 24px; }
  .toc { position: static; grid-template-columns: repeat(2, 1fr); }
  .howto { grid-template-columns: 1fr; }
  .cmds td:first-child { white-space: normal; width: 45%; }
}

.page .wrap.docs { max-width: 1100px; }
