/* EVSync marketing site — shared styles (matches the app's dark palette). */
:root {
  --bg: #0e1116;
  --surface: #161b22;
  --surface-alt: #1e2530;
  --border: #2a313c;
  --text: #f4f7fb;
  --muted: #9aa4b2;
  --blue: #3b82f6;
  --green: #22c55e;
  --orange: #fb923c;
  --amber: #f5b301;
  --teal: #14b8a6;
  --violet: #8b5cf6;
  --radius: 16px;
  --max: 1120px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 22px; }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 10;
  background: rgba(14, 17, 22, 0.85);
  backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav .wrap { display: flex; align-items: center; gap: 24px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 800; font-size: 19px; }
.brand:hover { text-decoration: none; }
.logo {
  width: 34px; height: 34px; border-radius: 10px;
  background: linear-gradient(135deg, var(--blue), var(--green));
  display: grid; place-items: center;
}
.logo svg { width: 20px; height: 20px; fill: #fff; }
.nav-links { display: flex; gap: 22px; margin-left: auto; }
.nav-links a { color: var(--muted); font-size: 14.5px; font-weight: 600; }
.nav-links a:hover { color: var(--text); text-decoration: none; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 46px; padding: 0 22px; border-radius: 12px;
  font-weight: 700; font-size: 15px; border: 1px solid transparent;
  transition: transform .15s ease, background .15s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: #2f74e6; }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--border); }
.btn-ghost:hover { background: var(--surface); }
.btn-sm { height: 38px; padding: 0 16px; font-size: 14px; }

/* ---------- Sections ---------- */
section { padding: 84px 0; }
.eyebrow { color: var(--green); font-weight: 700; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; }
h1, h2, h3 { line-height: 1.15; margin: 0; }
h2.section-title { font-size: clamp(28px, 4vw, 38px); margin: 10px 0 14px; letter-spacing: -0.01em; }
.lead { color: var(--muted); font-size: 18px; max-width: 640px; }
.center { text-align: center; }
.center .lead { margin: 0 auto; }

/* ---------- Footer ---------- */
footer { border-top: 1px solid var(--border); padding: 44px 0 56px; color: var(--muted); font-size: 14px; }
footer .cols { display: flex; flex-wrap: wrap; gap: 28px 56px; justify-content: space-between; }
footer .links { display: flex; flex-wrap: wrap; gap: 10px 22px; }
footer .links a { color: var(--muted); }
footer .links a:hover { color: var(--text); }
footer .fine { margin-top: 26px; font-size: 12.5px; line-height: 1.55; max-width: 760px; }

/* ---------- Legal / content pages ---------- */
.doc { max-width: 780px; margin: 0 auto; padding: 56px 22px 80px; }
.doc h1 { font-size: clamp(28px, 4vw, 36px); margin-bottom: 6px; }
.doc h2 { font-size: 20px; margin: 36px 0 10px; color: var(--blue); }
.doc p, .doc li { color: #d3dae3; }
.doc ul { padding-left: 22px; }
.doc li { margin: 6px 0; }
.doc .meta { color: var(--muted); font-size: 14px; margin: 0 0 24px; }
.doc .card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 20px 22px; margin: 18px 0;
}

@media (max-width: 720px) {
  .nav-links { display: none; }
  section { padding: 64px 0; }
}
