/* ─────────────────────────────────────────────────────────────
   Black + Blue theme — clean, Stripe/Apple-like support center
   ───────────────────────────────────────────────────────────── */
:root {
  --bg: #0b0d12;
  --surface: #151821;
  --surface-2: #1c2030;
  --border: #262b3a;
  --text: #e6e9ef;
  --muted: #9aa3b2;
  --accent: #3b82f6;
  --accent-hover: #60a5fa;
  --accent-tint: rgba(59, 130, 246, 0.12);
  --radius: 14px;
  --sidebar-w: 264px;
  --header-h: 64px;
  --maxw: 760px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); }

/* ── Header ─────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 0 20px;
  background: rgba(11, 13, 18, 0.85);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--border);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 700;
}
.brand:hover { color: var(--text); }
.brand-mark { display: inline-flex; }
.brand-name { font-size: 18px; letter-spacing: -0.01em; }
.brand-sub {
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  padding: 2px 8px;
  border: 1px solid var(--border);
  border-radius: 999px;
}

.lang-toggle {
  margin-left: auto;
  display: inline-flex;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 3px;
}
.lang-toggle button {
  border: none;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 999px;
  cursor: pointer;
  transition: 0.15s;
}
.lang-toggle button:hover { color: var(--text); }
.lang-toggle button.is-active {
  background: var(--accent);
  color: #fff;
}

.menu-toggle {
  display: none;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  border-radius: 10px;
  padding: 7px;
  cursor: pointer;
  line-height: 0;
}

/* ── Layout ─────────────────────────────────────────── */
.layout { display: flex; }

.sidebar {
  position: sticky;
  top: var(--header-h);
  align-self: flex-start;
  width: var(--sidebar-w);
  height: calc(100vh - var(--header-h));
  overflow-y: auto;
  padding: 18px 14px;
  border-right: 1px solid var(--border);
  flex-shrink: 0;
}
.sidebar ul { list-style: none; margin: 0; padding: 0; }
.sidebar a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  margin-bottom: 2px;
  border-radius: 10px;
  color: var(--muted);
  font-weight: 500;
  border-left: 3px solid transparent;
  transition: 0.15s;
}
.sidebar a:hover { background: var(--surface); color: var(--text); }
.sidebar a.active {
  background: var(--accent-tint);
  color: var(--text);
  border-left-color: var(--accent);
}
.sidebar .ic { font-size: 18px; width: 22px; text-align: center; }
.nav-sep { height: 1px; background: var(--border); margin: 12px 6px; }

.scrim {
  position: fixed;
  inset: var(--header-h) 0 0 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 19;
}

/* ── Content ────────────────────────────────────────── */
.content {
  flex: 1;
  min-width: 0;
  padding: 40px clamp(20px, 5vw, 56px) 64px;
}
.section { max-width: var(--maxw); margin: 0 auto; }

h1 {
  font-size: clamp(28px, 4vw, 38px);
  letter-spacing: -0.02em;
  margin: 0 0 18px;
  line-height: 1.2;
}
h2 { font-size: 20px; margin: 0 0 14px; letter-spacing: -0.01em; }
h3 { font-size: 16px; margin: 18px 0 6px; }
.ic { font-style: normal; }

.lead { color: var(--muted); font-size: 18px; margin: 0 0 28px; }

/* Hero / quick links */
.hero h1 { margin-bottom: 14px; }
.quick-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-top: 8px;
}
.qcard {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  transition: 0.15s;
}
.qcard:hover { border-color: var(--accent); transform: translateY(-2px); color: var(--text); }
.qcard .ic { font-size: 26px; }
.qcard strong { font-size: 16px; }
.qcard span:last-child { color: var(--muted); font-size: 14px; }

/* Cards */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 18px;
}
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.two-col .card { margin-bottom: 0; }

.steps { margin: 0; padding-left: 0; list-style: none; counter-reset: step; }
.steps li {
  counter-increment: step;
  position: relative;
  padding: 8px 0 8px 40px;
}
.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 7px;
  width: 26px;
  height: 26px;
  background: var(--accent-tint);
  color: var(--accent-hover);
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 13px;
  font-weight: 700;
}

.bullets { margin: 0; padding-left: 20px; }
.bullets li { padding: 4px 0; }

.changelog h3 { margin-top: 0; color: var(--accent-hover); }

/* Accordion */
.accordion { display: flex; flex-direction: column; gap: 10px; }
.acc-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.acc-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 20px;
  background: transparent;
  border: none;
  color: var(--text);
  font: inherit;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
}
.acc-q:hover { background: var(--surface-2); }
.acc-q .chev { color: var(--muted); transition: transform 0.2s; }
.acc-q[aria-expanded="true"] .chev { transform: rotate(180deg); }
.acc-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease;
}
.acc-a p { margin: 0; padding: 0 20px 18px; color: var(--muted); }

/* Form */
.form { display: flex; flex-direction: column; gap: 16px; }
.form label { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 600; }
.form input, .form select, .form textarea {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  font: inherit;
  padding: 11px 13px;
  width: 100%;
  resize: vertical;
}
.form input:focus, .form select:focus, .form textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-tint);
}
.btn-primary {
  align-self: flex-start;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 10px;
  font: inherit;
  font-weight: 700;
  padding: 12px 24px;
  cursor: pointer;
  transition: 0.15s;
}
.btn-primary:hover { background: var(--accent-hover); }
.form-note { color: var(--muted); font-size: 14px; margin: 4px 0 0; }

/* Legal */
.legal-note {
  font-size: 13px;
  color: var(--muted);
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 14px;
  margin-bottom: 18px;
}
.legal h3:first-child { margin-top: 0; }
.legal p { color: var(--muted); margin: 0 0 6px; }

/* Footer */
.site-footer {
  max-width: var(--maxw);
  margin: 48px auto 0;
  padding-top: 22px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  justify-content: space-between;
  color: var(--muted);
  font-size: 14px;
}
.foot-links { display: flex; gap: 18px; flex-wrap: wrap; }

/* Focus visibility */
:focus-visible { outline: 2px solid var(--accent-hover); outline-offset: 2px; }

/* ── Responsive ─────────────────────────────────────── */
@media (max-width: 860px) {
  .menu-toggle { display: inline-flex; }
  .two-col { grid-template-columns: 1fr; }
  .sidebar {
    position: fixed;
    top: var(--header-h);
    left: 0;
    z-index: 20;
    height: calc(100vh - var(--header-h));
    background: var(--bg);
    transform: translateX(-100%);
    transition: transform 0.22s ease;
    box-shadow: 8px 0 30px rgba(0, 0, 0, 0.4);
  }
  .sidebar.open { transform: translateX(0); }
  .content { padding: 28px 20px 56px; }
}
