:root {
  --cyan: #1fc2da;
  --blue: #2f7bf6;
  --indigo: #3a4fe0;
  --orange: #ff7a1a;
  --green: #1f8f40;
  --ink: #16213d;
  --text: #1d1d22;
  --muted: #5f6470;
  --bg: #ffffff;
  --panel: #f4f6fa;
  --line: #e3e6ee;
  --radius: 20px;
  --width: 1080px;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --text: #eef0f5;
    --muted: #a3a9b6;
    --bg: #0d1017;
    --panel: #171b25;
    --line: #262b38;
    --green: #45c46c;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font: 17px/1.6 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; }
h1, h2, h3 { line-height: 1.2; letter-spacing: -0.02em; }
h2 { font-size: 2rem; margin: 0 0 0.5rem; }
h3 { font-size: 1.15rem; margin: 0 0 0.35rem; }

.wrap { max-width: var(--width); margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 760px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; color: var(--text); }
.brand img { width: 32px; height: 32px; border-radius: 8px; }
.brand:hover { text-decoration: none; }
nav a { color: var(--muted); margin-left: 22px; font-size: 0.95rem; }
nav a[aria-current="page"] { color: var(--text); font-weight: 600; }

/* Hero */
.hero {
  color: #fff;
  background: linear-gradient(135deg, var(--cyan) 0%, var(--blue) 55%, var(--indigo) 100%);
  overflow: hidden;
}
.hero .wrap { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 40px; align-items: center; padding-top: 72px; padding-bottom: 0; }
.hero-icon { width: 96px; height: 96px; border-radius: 22px; box-shadow: 0 12px 30px rgb(0 0 0 / 0.25); }
.hero h1 { font-size: clamp(2.4rem, 5vw, 3.6rem); margin: 20px 0 12px; }
.hero p.lead { font-size: 1.25rem; opacity: 0.95; max-width: 30em; margin: 0 0 28px; }
.hero-phone { align-self: end; filter: drop-shadow(0 30px 40px rgb(0 0 0 / 0.3)); margin-bottom: -140px; }
.hero-phone img { display: block; margin: 0 auto; width: 330px; }

.buttons { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 72px; }
.button {
  display: inline-block; padding: 12px 22px; border-radius: 999px; font-weight: 600;
  background: #fff; color: var(--ink);
}
.button.ghost { background: rgb(255 255 255 / 0.18); color: #fff; }
.button:hover { text-decoration: none; filter: brightness(0.96); }
.badge {
  display: inline-block; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 4px 10px; border-radius: 999px; background: rgb(255 255 255 / 0.2);
}

/* Sections */
section { padding: 72px 0; }
section.alt { background: var(--panel); }
.section-intro { color: var(--muted); font-size: 1.1rem; max-width: 40em; margin: 0 0 40px; }

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature { background: var(--panel); border-radius: var(--radius); padding: 26px; }
section.alt .feature { background: var(--bg); }
.feature p { color: var(--muted); margin: 0; }
.dot { display: inline-block; width: 12px; height: 12px; border-radius: 50%; margin-right: 8px; vertical-align: 1px; }
.dot.then { background: var(--orange); }
.dot.now { background: var(--blue); }
.dot.goal { background: #30b45a; }

.showcase { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.showcase + .showcase { margin-top: 80px; }
.showcase.flip > :first-child { order: 2; }
.showcase img { display: block; margin: 0 auto; width: 320px; filter: drop-shadow(0 20px 30px rgb(0 0 0 / 0.18)); }
.showcase ul { padding-left: 1.1em; color: var(--muted); }
.showcase li { margin: 6px 0; }

.privacy-band {
  background: var(--ink); color: #fff; border-radius: 28px; padding: 44px;
  display: grid; grid-template-columns: auto 1fr; gap: 28px; align-items: center;
}
.privacy-band .lock { font-size: 3rem; }
.privacy-band p { color: #c9cfdd; margin: 0.4rem 0 0; }
.privacy-band a { color: #9cc2ff; }

/* Docs pages */
.page-head { background: var(--panel); padding: 56px 0 40px; border-bottom: 1px solid var(--line); }
.page-head h1 { font-size: 2.6rem; margin: 0 0 8px; }
.page-head p { color: var(--muted); font-size: 1.15rem; margin: 0; }
.doc { padding: 48px 0 80px; }
.doc h2 { font-size: 1.6rem; margin: 48px 0 12px; }
.doc h2:first-child { margin-top: 0; }
.doc p, .doc li { color: var(--text); }
.doc .muted { color: var(--muted); }
.callout { background: var(--panel); border-left: 4px solid var(--blue); border-radius: 12px; padding: 16px 20px; margin: 20px 0; }
.callout.warn { border-left-color: var(--orange); }
.formula { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 0.95rem; background: var(--panel); border-radius: 10px; padding: 14px 18px; overflow-x: auto; }
.toc { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 32px; padding: 0; list-style: none; }
.toc a { display: inline-block; padding: 6px 14px; border-radius: 999px; background: var(--panel); color: var(--text); font-size: 0.9rem; }

details { border-bottom: 1px solid var(--line); padding: 14px 0; }
details summary { cursor: pointer; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
details summary::-webkit-details-marker { display: none; }
details summary::after { content: "+"; color: var(--muted); font-weight: 400; font-size: 1.3rem; line-height: 1; }
details[open] summary::after { content: "–"; }
details > :not(summary) { color: var(--muted); }

table { border-collapse: collapse; width: 100%; margin: 16px 0; font-size: 0.95rem; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-weight: 600; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 32px 0 48px; color: var(--muted); font-size: 0.9rem; }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; }
.site-footer a { color: var(--muted); margin-right: 18px; }

@media (max-width: 820px) {
  .hero .wrap, .showcase, .privacy-band { grid-template-columns: 1fr; }
  .showcase.flip > :first-child { order: 0; }
  .features { grid-template-columns: 1fr; }
  .privacy-band { padding: 28px; }
  .hero-phone img { width: 260px; }
  nav a { margin-left: 14px; }
}
@media (max-width: 520px) {
  .brand span { display: none; }
  nav a { margin-left: 12px; font-size: 0.88rem; }
}
