/* BITMONT site styles. Light by default, dark follows the visitor's system setting. */
:root {
  --bg: #ffffff;
  --bg-soft: #f4f6fa;
  --card: #ffffff;
  --text: #0e1726;
  --muted: #4a5568;
  --line: #e1e6ee;
  --accent: #2149c9;
  --accent-strong: #17359a;
  --accent-soft: #e8eefc;
  --on-accent: #ffffff;
  --gold: #c27c0e;
  --code-bg: #eef1f6;
  --shadow: 0 1px 2px rgba(14, 23, 38, .04), 0 8px 24px rgba(14, 23, 38, .06);
  --radius: 14px;
  --wrap: 1120px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0a0f1a;
    --bg-soft: #0f1626;
    --card: #121a2c;
    --text: #e7ebf2;
    --muted: #9aa6ba;
    --line: #1f2a40;
    --accent: #7c9cff;
    --accent-strong: #a4bbff;
    --accent-soft: #17224a;
    --on-accent: #0a0f1a;
    --gold: #f0b44c;
    --code-bg: #18223a;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .25);
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  overflow-x: hidden;
}
img, svg { max-width: 100%; height: auto; }
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { color: var(--accent-strong); }
h1, h2, h3 { line-height: 1.2; letter-spacing: -0.02em; margin: 0 0 .5em; }
h1 { font-size: clamp(2rem, 4.6vw, 3.25rem); font-weight: 700; }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 700; }
h3 { font-size: 1.15rem; font-weight: 600; }
p { margin: 0 0 1em; }
code {
  font-family: var(--mono);
  font-size: .9em;
  background: var(--code-bg);
  padding: .1em .4em;
  border-radius: 6px;
  overflow-wrap: anywhere;
}
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .wrap { padding: 0 32px; } }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; background: var(--card); padding: 8px 12px; z-index: 10; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 5;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 8px 24px; min-height: 64px; padding-top: 8px; padding-bottom: 8px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); }
.brand svg { width: 30px; height: 30px; flex: none; }
.brand span { font-weight: 700; letter-spacing: .14em; font-size: 1rem; }
.brand:hover { color: var(--text); }
.nav { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; }
.nav a {
  color: var(--muted); text-decoration: none; font-size: .95rem; font-weight: 500;
  padding: 6px 10px; border-radius: 8px;
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--text); background: var(--bg-soft); }
.nav a.cta { color: var(--on-accent); background: var(--accent); }
.nav a.cta:hover { background: var(--accent-strong); color: var(--on-accent); }
@media (max-width: 560px) {
  .site-header { position: static; }
  .site-header .wrap { justify-content: center; }
  .nav { justify-content: center; }
  .nav a { padding: 6px 8px; font-size: .92rem; }
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 20px; border-radius: 10px; font-weight: 600; font-size: 1rem;
  text-decoration: none; border: 1px solid transparent;
}
.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-primary:hover { background: var(--accent-strong); color: var(--on-accent); }
.btn-ghost { border-color: var(--line); color: var(--text); background: var(--card); }
.btn-ghost:hover { border-color: var(--accent); color: var(--text); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* Sections */
.hero { padding: 72px 0 64px; background:
  radial-gradient(1000px 400px at 85% -10%, var(--accent-soft), transparent 70%), var(--bg); }
.hero .lead { font-size: clamp(1.08rem, 2vw, 1.25rem); color: var(--muted); max-width: 46rem; }
.eyebrow {
  display: inline-block; font-size: .8rem; font-weight: 600; letter-spacing: .12em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 14px;
}
.section { padding: 64px 0; }
.section.alt { background: var(--bg-soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 44rem; margin-bottom: 32px; }
.section-head p { color: var(--muted); }
.page-head { padding: 56px 0 24px; }
.page-head p { color: var(--muted); font-size: 1.15rem; max-width: 44rem; }

.grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px; box-shadow: var(--shadow);
}
.card p { color: var(--muted); margin: 0; }
.card .icon {
  width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent); margin-bottom: 14px;
}
.card .icon svg { width: 22px; height: 22px; }

.chips { display: flex; flex-wrap: wrap; gap: 10px; padding: 0; margin: 0; list-style: none; }
.chips li {
  border: 1px solid var(--line); background: var(--card); border-radius: 999px;
  padding: 6px 14px; font-size: .95rem; color: var(--text);
}

.product {
  display: grid; gap: 24px; align-items: center; grid-template-columns: 1fr;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; box-shadow: var(--shadow);
}
@media (min-width: 760px) { .product { grid-template-columns: auto 1fr auto; } }
.product .mark {
  width: 64px; height: 64px; border-radius: 16px; display: grid; place-items: center;
  background: linear-gradient(135deg, #f3b26b, #c4562b);
}
.product .mark svg { width: 36px; height: 36px; }
.product h3 { font-size: 1.3rem; margin-bottom: 4px; }
.product p { color: var(--muted); margin: 0; }

.prose { max-width: 44rem; }
.prose p, .prose li { color: var(--text); }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1em; }
.prose li { margin-bottom: .5em; }
.prose li p { margin: 0; }
.prose blockquote {
  margin: 0 0 1em; padding: 4px 0 4px 18px; border-left: 3px solid var(--accent);
}

.statement {
  font-size: clamp(1.6rem, 4vw, 2.4rem); font-weight: 700; letter-spacing: -0.02em;
  margin: 0 0 24px;
}

/* Contact */
.ids { display: grid; grid-template-columns: max-content 1fr; gap: 6px 20px; margin: 0; }
.ids dt { color: var(--muted); }
.ids dd { margin: 0; font-weight: 600; font-family: var(--mono); font-size: .95rem; overflow-wrap: anywhere; }
.ids dd.plain { font-family: var(--font); font-size: 1rem; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); background: var(--bg-soft); padding: 40px 0 32px; margin-top: 64px; font-size: .95rem; }
.site-footer.flush { margin-top: 0; }
.foot-grid { display: grid; gap: 28px; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.site-footer h4 { margin: 0 0 10px; font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 6px; }
.site-footer a { color: var(--text); text-decoration: none; }
.site-footer a:hover { color: var(--accent); }
.site-footer .tag { color: var(--muted); margin: 10px 0 0; }
.legal { margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--muted); font-size: .88rem; display: flex; flex-wrap: wrap; gap: 6px 20px; justify-content: space-between; }
.legal .idline { font-family: var(--mono); font-size: .82rem; }

.notfound { padding: 96px 0; text-align: center; }
.notfound .code { font-size: clamp(4rem, 14vw, 7rem); font-weight: 800; color: var(--accent); line-height: 1; margin-bottom: 12px; }
.notfound .actions { justify-content: center; }
.meta { color: var(--muted); font-size: .92rem; }
