/* Safix Mirror — site styles. No external fonts or scripts: fast, and nothing to track. */

:root {
  --brand-1: #545cf7;
  --brand-2: #a84df5;
  --brand-grad: linear-gradient(135deg, var(--brand-1), var(--brand-2));

  --bg: #ffffff;
  --bg-soft: #f6f6fb;
  --surface: #ffffff;
  --text: #15151f;
  --text-2: #55566a;
  --text-3: #85869a;
  --line: #e7e7f0;
  --accent: #5b55f0;
  --accent-ink: #ffffff;
  --shadow: 0 1px 2px rgba(20, 20, 40, .06), 0 8px 28px rgba(20, 20, 40, .08);
  --radius: 16px;
  --max: 1120px;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0d0d14;
    --bg-soft: #14141e;
    --surface: #181824;
    --text: #f1f1f7;
    --text-2: #b0b1c4;
    --text-3: #7f8096;
    --line: #26263a;
    --accent: #8a85ff;
    --accent-ink: #0d0d14;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 10px 30px rgba(0, 0, 0, .35);
  }
}
:root[data-theme="dark"] {
  --bg: #0d0d14;
  --bg-soft: #14141e;
  --surface: #181824;
  --text: #f1f1f7;
  --text-2: #b0b1c4;
  --text-3: #7f8096;
  --line: #26263a;
  --accent: #8a85ff;
  --accent-ink: #0d0d14;
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 10px 30px rgba(0, 0, 0, .35);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.6 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { line-height: 1.15; letter-spacing: -.02em; margin: 0; }
p { margin: 0; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .wrap { padding: 0 32px; } }

/* ---------- Header ---------- */
.nav {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 60px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 650; font-size: 18px; }
.brand:hover { text-decoration: none; }
.brand img { width: 30px; height: 30px; }
.nav-links { display: flex; gap: 22px; font-size: 15px; }
.nav-links a { color: var(--text-2); }
.nav-links a:hover { color: var(--text); text-decoration: none; }
@media (max-width: 640px) { .nav-links .opt { display: none; } }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 48px; padding: 0 22px; border-radius: 999px;
  font-weight: 600; font-size: 16px; white-space: nowrap;
  border: 1px solid transparent; cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn svg { width: 18px; height: 18px; }
.btn-primary { background: var(--brand-grad); color: #fff; box-shadow: 0 6px 20px rgba(110, 80, 245, .35); }
.btn-secondary { background: var(--surface); color: var(--text); border-color: var(--line); }
.btn[aria-disabled="true"] { opacity: .55; pointer-events: none; }
.btn small { font-weight: 500; opacity: .8; font-size: 13px; }

/* ---------- Hero ---------- */
.hero { padding: 64px 0 40px; overflow: hidden; }
@media (min-width: 900px) { .hero { padding: 96px 0 56px; } }
.hero .wrap { display: grid; gap: 48px; align-items: center; }
@media (min-width: 900px) { .hero .wrap { grid-template-columns: 1.05fr 1fr; } }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 600; color: var(--accent);
  background: color-mix(in srgb, var(--accent) 12%, transparent);
  padding: 5px 12px; border-radius: 999px; margin-bottom: 20px;
}
.hero h1 { font-size: clamp(38px, 6vw, 62px); font-weight: 750; }
.grad-text { background: var(--brand-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lede { margin-top: 20px; font-size: clamp(18px, 2.2vw, 21px); color: var(--text-2); max-width: 34em; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.fine { margin-top: 16px; font-size: 14px; color: var(--text-3); }

.hero-art { position: relative; }
.hero-art::before {
  content: ""; position: absolute; inset: 8% 4% 10% 10%;
  background: var(--brand-grad); filter: blur(70px); opacity: .28; border-radius: 50%;
}
.hero-art svg { position: relative; width: 100%; height: auto; }

/* ---------- Stats ---------- */
.stats { padding: 8px 0 24px; }
.stats ul {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px;
  background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
}
@media (min-width: 760px) { .stats ul { grid-template-columns: repeat(4, 1fr); } }
.stats li { background: var(--surface); padding: 22px 20px; }
.stats strong { display: block; font-size: 26px; letter-spacing: -.02em; }
.stats span { color: var(--text-2); font-size: 15px; }

/* ---------- Sections ---------- */
section { padding: 72px 0; }
.soft { background: var(--bg-soft); }
.section-head { max-width: 640px; margin-bottom: 40px; }
.section-head h2 { font-size: clamp(30px, 4vw, 42px); font-weight: 720; }
.section-head p { margin-top: 14px; color: var(--text-2); font-size: 18px; }

.grid { display: grid; gap: 16px; }
@media (min-width: 640px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .grid.three { grid-template-columns: repeat(3, 1fr); } }

.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px; box-shadow: var(--shadow);
}
.card h3 { font-size: 19px; margin: 14px 0 8px; }
.card p { color: var(--text-2); font-size: 16px; }
.icon {
  width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center;
  background: color-mix(in srgb, var(--accent) 13%, transparent); color: var(--accent);
}
.icon svg { width: 22px; height: 22px; }

/* ---------- Steps ---------- */
.steps { counter-reset: step; display: grid; gap: 16px; }
@media (min-width: 860px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.step { position: relative; padding-top: 56px; }
.step::before {
  counter-increment: step; content: counter(step);
  position: absolute; top: 20px; left: 24px;
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--brand-grad); color: #fff; font-weight: 700; font-size: 15px;
  display: grid; place-items: center;
}
.code-demo {
  display: inline-block; margin-top: 10px; padding: 4px 10px; border-radius: 8px;
  background: var(--bg-soft); border: 1px solid var(--line);
  font: 600 15px/1.4 ui-monospace, "SF Mono", Menlo, monospace; letter-spacing: .06em; color: var(--text);
}

/* ---------- Downloads ---------- */
.downloads .card { display: flex; flex-direction: column; gap: 6px; }
.downloads .card .btn { margin-top: 18px; align-self: flex-start; }
.req { font-size: 14px; color: var(--text-3); }
.tag {
  align-self: flex-start; font-size: 12px; font-weight: 650; text-transform: uppercase; letter-spacing: .06em;
  color: var(--accent); background: color-mix(in srgb, var(--accent) 12%, transparent);
  padding: 3px 9px; border-radius: 999px;
}

/* ---------- FAQ ---------- */
.faq { max-width: 780px; }
.faq details { border-bottom: 1px solid var(--line); padding: 18px 0; }
.faq summary { cursor: pointer; font-weight: 600; font-size: 18px; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--text-3); font-weight: 400; font-size: 24px; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin-top: 10px; color: var(--text-2); }

/* ---------- Footer ---------- */
footer { border-top: 1px solid var(--line); padding: 36px 0 48px; color: var(--text-3); font-size: 14px; }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; align-items: center; }
footer nav { display: flex; gap: 20px; }
footer a { color: var(--text-2); }

/* ---------- Legal pages ---------- */
.legal { padding: 56px 0 80px; }
.legal .wrap { max-width: 760px; }
.legal h1 { font-size: clamp(32px, 5vw, 44px); }
.legal .updated { color: var(--text-3); margin-top: 10px; font-size: 15px; }
.legal h2 { font-size: 22px; margin: 40px 0 10px; }
.legal p, .legal li { color: var(--text-2); }
.legal p + p { margin-top: 12px; }
.legal ul { padding-left: 22px; }
.legal li + li { margin-top: 6px; }
.legal .summary {
  margin-top: 28px; padding: 20px 22px; border-radius: var(--radius);
  background: color-mix(in srgb, var(--accent) 9%, var(--surface)); border: 1px solid var(--line);
  color: var(--text);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}
