/* CdnFile — static file & asset delivery. Self-contained, no external deps. */
:root {
  --bg: #0d1117;
  --bg-alt: #131a24;
  --panel: #161d29;
  --panel-2: #1b2431;
  --border: #263141;
  --text: #e6edf3;
  --muted: #93a1b3;
  --brand: #38bdf8;
  --brand-2: #22d3ee;
  --accent: #7dd3fc;
  --radius: 14px;
  --maxw: 1080px;
  --shadow: 0 10px 30px rgba(0, 0, 0, .35);
}
@media (prefers-color-scheme: light) {
  :root {
    --bg: #f6f8fb;
    --bg-alt: #eef2f7;
    --panel: #ffffff;
    --panel-2: #f3f6fa;
    --border: #dde5ee;
    --text: #0f1b2a;
    --muted: #55657a;
    --brand: #0284c7;
    --brand-2: #0891b2;
    --accent: #0369a1;
    --shadow: 0 10px 30px rgba(15, 27, 42, .08);
  }
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; }

/* ── nav ── */
.nav {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: 24px;
  padding: 14px clamp(16px, 5vw, 40px);
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.brand {
  display: inline-flex; align-items: center; gap: 9px;
  font-weight: 700; font-size: 18px; color: var(--text);
}
.brand:hover { text-decoration: none; }
.nav-links { display: flex; gap: 22px; margin-left: auto; }
.nav-links a { color: var(--muted); font-size: 14.5px; }
.nav-links a:hover { color: var(--text); text-decoration: none; }
.nav-toggle {
  display: none; margin-left: auto;
  background: none; border: 0; color: var(--text);
  font-size: 26px; line-height: 1; cursor: pointer;
}

/* ── buttons ── */
.btn {
  display: inline-block; padding: 11px 20px; border-radius: 10px;
  font-weight: 600; font-size: 14.5px; cursor: pointer;
  border: 1px solid transparent; transition: transform .06s ease, opacity .15s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: #05121b; }
.btn-ghost { background: transparent; border-color: var(--border); color: var(--text); }

/* ── hero ── */
.hero {
  padding: clamp(56px, 9vw, 110px) clamp(16px, 5vw, 40px) clamp(40px, 6vw, 72px);
  background:
    radial-gradient(1100px 500px at 82% -10%, color-mix(in srgb, var(--brand) 16%, transparent), transparent 60%),
    var(--bg);
  border-bottom: 1px solid var(--border);
}
.hero-inner { max-width: var(--maxw); margin: 0 auto; }
.eyebrow {
  display: inline-block; margin: 0 0 14px;
  padding: 5px 12px; border-radius: 999px;
  background: var(--panel-2); border: 1px solid var(--border);
  color: var(--accent); font-size: 13px; font-weight: 600;
}
.hero h1 { margin: 0 0 16px; font-size: clamp(30px, 5vw, 52px); line-height: 1.1; letter-spacing: -.02em; }
.lead { max-width: 620px; margin: 0 0 28px; font-size: clamp(16px, 2vw, 19px); color: var(--muted); }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 44px; }
.stats { list-style: none; display: flex; flex-wrap: wrap; gap: clamp(24px, 6vw, 64px); margin: 0; padding: 0; }
.stats li { display: flex; flex-direction: column; }
.stats b { font-size: clamp(22px, 3vw, 30px); color: var(--text); }
.stats span { color: var(--muted); font-size: 14px; }

/* ── sections ── */
.section { max-width: var(--maxw); margin: 0 auto; padding: clamp(52px, 8vw, 88px) clamp(16px, 5vw, 40px); }
.section.alt { max-width: none; background: var(--bg-alt); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section.alt > * { max-width: var(--maxw); margin-left: auto; margin-right: auto; }
.section h2 { font-size: clamp(24px, 3.4vw, 34px); margin: 0 0 8px; letter-spacing: -.01em; }
.muted { color: var(--muted); }

/* ── grid / cards ── */
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; margin-top: 30px; }
.card {
  background: var(--panel); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 22px 22px 24px;
}
.card h3 { margin: 0 0 8px; font-size: 18px; }
.card p { margin: 0; color: var(--muted); font-size: 14.5px; }

/* ── steps ── */
.steps { list-style: none; counter-reset: s; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; margin: 30px 0 0; padding: 0; }
.steps li { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; }
.steps .num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 9px; margin-bottom: 12px;
  background: var(--panel-2); border: 1px solid var(--border);
  color: var(--accent); font-weight: 700;
}
.steps h3 { margin: 0 0 6px; font-size: 17px; }
.steps p { margin: 0; color: var(--muted); font-size: 14.5px; }

/* ── pricing ── */
.pricing .price { display: flex; flex-direction: column; }
.price .amount { font-size: 30px; font-weight: 700; margin: 6px 0 14px; }
.price .amount span { font-size: 15px; font-weight: 500; color: var(--muted); }
.price ul { list-style: none; margin: 0 0 20px; padding: 0; display: grid; gap: 8px; }
.price li { color: var(--muted); font-size: 14.5px; padding-left: 22px; position: relative; }
.price li::before { content: "✓"; position: absolute; left: 0; color: var(--brand); font-weight: 700; }
.price .btn { margin-top: auto; text-align: center; }
.price.featured { border-color: color-mix(in srgb, var(--brand) 55%, var(--border)); box-shadow: var(--shadow); }

/* ── files ── */
.files { list-style: none; margin: 26px 0 0; padding: 0; display: grid; gap: 10px; }
.files li {
  display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap;
  background: var(--panel); border: 1px solid var(--border);
  border-radius: 10px; padding: 14px 18px;
}
.files a { font-weight: 600; font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; }
.files span { color: var(--muted); font-size: 13.5px; }

/* ── code ── */
.code {
  margin: 26px 0 0; padding: 20px 22px; overflow-x: auto;
  background: #0a0e14; color: #cdd9e5; border: 1px solid var(--border);
  border-radius: var(--radius); font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 13.5px; line-height: 1.7;
}
@media (prefers-color-scheme: light) { .code { background: #0d1117; color: #cdd9e5; } }
.code code { white-space: pre; }

/* ── footer ── */
.footer { border-top: 1px solid var(--border); background: var(--bg-alt); padding: 44px clamp(16px, 5vw, 40px) 30px; }
.footer-inner { max-width: var(--maxw); margin: 0 auto; display: flex; flex-wrap: wrap; gap: 30px; justify-content: space-between; }
.footer-inner p { max-width: 320px; margin: 10px 0 0; }
.footer nav { display: flex; flex-direction: column; gap: 8px; }
.footer nav a { color: var(--muted); font-size: 14px; }
.copyright { max-width: var(--maxw); margin: 30px auto 0; color: var(--muted); font-size: 13px; }

/* ── responsive ── */
@media (max-width: 720px) {
  .nav-links { display: none; }
  .nav-links.open {
    display: flex; flex-direction: column; gap: 14px;
    position: absolute; top: 100%; left: 0; right: 0;
    padding: 18px clamp(16px, 5vw, 40px);
    background: var(--bg); border-bottom: 1px solid var(--border);
  }
  .nav-toggle { display: block; }
}
