/* ── XenMox website ─────────────────────────────────────────── */

:root {
  --bg: #0b0c0f;
  --panel: #111318;
  --raised: #161920;
  --line: #23262d;
  --line-2: #2e323b;
  --text: #ebe9e6;
  --muted: #9ba0a8;
  --dim: #6b7078;
  --red: #e5322b;
  --orange: #ff6a1f;
  --accent: #ff5c28;
  --accent-ink: #1a0a04;
  --accent-soft: rgba(255, 92, 40, .1);
  --grad: linear-gradient(90deg, var(--red), var(--orange));
  --sans: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "Cascadia Mono", "JetBrains Mono", "SF Mono", Consolas, "Liberation Mono", monospace;
  --radius: 10px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 84px; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--accent); color: #150803; }

a { color: inherit; text-decoration: none; }

img { display: block; max-width: 100%; }

.mono { font-family: var(--mono); font-size: .92em; }

.container { max-width: 1140px; margin: 0 auto; padding: 0 26px; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 3px; }

/* ── header ── */

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(11, 12, 15, .88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  transition: border-color .2s;
}

.site-header.scrolled { border-bottom-color: var(--line-2); }

.header-inner {
  display: flex; align-items: center; gap: 28px;
  height: 62px;
}

.brand { display: flex; align-items: center; margin-right: auto; }

.brand img { height: 30px; width: auto; }

.nav { display: flex; gap: 26px; }

.nav a {
  color: var(--muted); font-size: 14.5px; font-weight: 500;
  transition: color .15s;
}

.nav a:hover { color: var(--text); }

.header-right { display: flex; align-items: center; gap: 14px; }

.lang {
  display: flex; border: 1px solid var(--line-2); border-radius: 7px;
  overflow: hidden;
}

.lang button, .lang a {
  font-family: var(--mono); font-size: 11.5px; font-weight: 600;
  letter-spacing: .06em;
  padding: 5px 10px; border: 0; cursor: pointer;
  background: transparent; color: var(--dim);
  text-decoration: none;
  transition: color .15s, background .15s;
}

.lang button:hover, .lang a:hover { color: var(--text); }

.lang button.active, .lang a.active { background: var(--accent-soft); color: var(--accent); }

.icon-link {
  display: grid; place-items: center;
  width: 34px; height: 34px; border-radius: 7px;
  color: var(--muted); border: 1px solid transparent;
  transition: color .15s, border-color .15s;
}

.icon-link:hover { color: var(--text); border-color: var(--line-2); }

.menu-btn {
  display: none; flex-direction: column; gap: 4px;
  background: none; border: 0; cursor: pointer; padding: 8px;
}

.menu-btn span {
  width: 18px; height: 1.5px; background: var(--text);
  transition: transform .2s, opacity .2s;
}

/* ── hero ── */

.hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--line); }

.hero::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, .028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .028) 1px, transparent 1px);
  background-size: 54px 54px;
  -webkit-mask-image: radial-gradient(ellipse 85% 65% at 50% 0%, #000 20%, transparent 75%);
  mask-image: radial-gradient(ellipse 85% 65% at 50% 0%, #000 20%, transparent 75%);
  pointer-events: none;
}

.hero::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(900px 420px at 78% -12%, rgba(229, 50, 43, .13), transparent 62%),
              radial-gradient(700px 380px at 8% 8%, rgba(255, 106, 31, .07), transparent 60%);
  pointer-events: none;
}

.hero-grid {
  position: relative;
  display: grid; grid-template-columns: 1.04fr .96fr;
  gap: 60px; align-items: center;
  padding-top: 84px; padding-bottom: 64px;
}

.eyebrow {
  display: flex; align-items: center; gap: 9px;
  font-family: var(--mono); font-size: 12px; font-weight: 600;
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 18px;
}

.pip {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--grad); flex: none;
  box-shadow: 0 0 0 3px rgba(255, 92, 40, .15);
}

.hero h1 {
  font-size: clamp(2.1rem, 4.3vw, 3.3rem);
  font-weight: 650; line-height: 1.12; letter-spacing: -.025em;
  margin-bottom: 20px; max-width: 15ch;
}

.lede { color: var(--muted); font-size: 17px; max-width: 54ch; margin-bottom: 30px; }

.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 22px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-size: 14.5px; font-weight: 600; letter-spacing: .005em;
  padding: 11px 22px; border-radius: 8px; cursor: pointer;
  border: 1px solid transparent;
  transition: background .15s, border-color .15s, color .15s, transform .1s;
}

.btn:active { transform: translateY(1px); }

.btn-primary { background: var(--accent); color: var(--accent-ink); }

.btn-primary:hover { background: #ff7a3d; }

.btn-ghost { border-color: var(--line-2); color: var(--text); background: transparent; }

.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

.btn-block { width: 100%; }

.clone-box {
  display: flex; align-items: center; gap: 12px;
  background: #08090c; border: 1px solid var(--line);
  border-radius: 8px; padding: 11px 12px 11px 16px;
  max-width: 520px;
}

.clone-box code {
  font-family: var(--mono); font-size: 13px; color: #d8d5d1;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

.copy-btn {
  flex: none; display: grid; place-items: center;
  width: 30px; height: 30px; border-radius: 6px; cursor: pointer;
  background: transparent; border: 1px solid var(--line-2); color: var(--muted);
  transition: color .15s, border-color .15s, background .15s;
}

.copy-btn:hover { color: var(--text); border-color: var(--dim); }

.copy-btn.copied { color: var(--accent); border-color: var(--accent); background: var(--accent-soft); }

.version-line {
  display: flex; align-items: center; gap: 10px;
  margin-top: 20px; font-size: 13px; color: var(--dim);
}

.version-line .mono { color: var(--muted); font-weight: 600; }

.version-line .sep { width: 4px; height: 4px; border-radius: 50%; background: var(--line-2); }

/* ── terminal ── */

.term {
  background: #08090c;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 24px 60px -30px rgba(0, 0, 0, .9);
  overflow: hidden;
}

.term-bar {
  display: flex; align-items: center; gap: 7px;
  padding: 11px 14px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, .015);
}

.term-bar .dot { width: 9px; height: 9px; border-radius: 50%; background: #2c3038; }

.term-title {
  font-family: var(--mono); font-size: 11.5px; color: var(--dim);
  margin-left: 8px; letter-spacing: .04em;
}

.term-copy { margin-left: auto; width: 26px; height: 26px; }

.term-body {
  padding: 18px 20px;
  font-family: var(--mono); font-size: 13px; line-height: 1.85;
  color: #d8d5d1;
}

.term-body p { white-space: nowrap; overflow-x: auto; }

.term-body .p { color: var(--accent); user-select: none; margin-right: 8px; }

.term-body .cmt, .term-body .out, .term-body .c { color: var(--dim); }

.caret {
  display: inline-block; width: 8px; height: 14px;
  background: var(--accent); vertical-align: -2px;
  animation: blink 1.15s steps(1) infinite;
}

@keyframes blink { 50% { opacity: 0; } }

/* ── stat strip ── */

.stat-strip {
  position: relative;
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  list-style: none;
}

.stat-strip li {
  display: flex; flex-direction: column; gap: 2px;
  padding: 22px 24px 24px 0;
  font-size: 13.5px; color: var(--muted);
}

.stat-strip li + li { border-left: 1px solid var(--line); padding-left: 24px; }

.stat-strip .mono {
  font-size: 14px; font-weight: 600; color: var(--text); letter-spacing: -.01em;
}

/* ── sections ── */

.section { padding: 96px 0; border-bottom: 1px solid var(--line); }

.section .eyebrow { margin-bottom: 14px; }

.section h2 {
  font-size: clamp(1.7rem, 3vw, 2.35rem);
  font-weight: 650; letter-spacing: -.022em; line-height: 1.18;
  margin-bottom: 14px;
}

.section-lede { color: var(--muted); max-width: 58ch; margin-bottom: 44px; }

/* ── modes ── */

.mode-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }

.mode-card {
  background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 26px 28px;
  transition: border-color .2s, background .2s;
}

.mode-card:hover { border-color: var(--line-2); background: var(--raised); }

.mode-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 12px; }

.mode-tag { font-size: 17px; font-weight: 600; letter-spacing: -.01em; }

.cmd-chip {
  font-size: 12px; color: var(--accent);
  background: var(--accent-soft); border: 1px solid rgba(255, 92, 40, .25);
  padding: 4px 10px; border-radius: 99px; white-space: nowrap;
}

.mode-card p { color: var(--muted); font-size: 14.5px; }

.mode-note { margin-top: 18px; font-size: 12.5px; color: var(--dim); }

/* ── features ── */

.feature-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1px; background: var(--line);
  border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden;
}

.cell {
  position: relative; background: var(--panel);
  padding: 30px 28px 32px;
  transition: background .2s;
}

.cell:hover { background: var(--raised); }

.cell-num {
  position: absolute; top: 26px; right: 26px;
  font-size: 12px; color: var(--dim); letter-spacing: .08em;
}

.cell-icon { width: 24px; height: 24px; color: var(--accent); margin-bottom: 40px; }

.cell h3 {
  font-size: 16.5px; font-weight: 600; letter-spacing: -.012em;
  margin-bottom: 8px;
}

.cell p { color: var(--muted); font-size: 14px; line-height: 1.62; }

/* ── quickstart ── */

.quick-grid { display: grid; grid-template-columns: 1.25fr .75fr; gap: 18px; align-items: start; }

.quick-side { display: flex; flex-direction: column; gap: 18px; }

.side-card {
  background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 24px 26px;
}

.side-card h3 {
  font-size: 12px; font-family: var(--mono); font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase; color: var(--accent);
  margin-bottom: 10px;
}

.side-card p { color: var(--muted); font-size: 14px; }

.side-card .mono { color: #d8d5d1; background: #08090c; padding: 1px 6px; border-radius: 4px; border: 1px solid var(--line); }

.env-table { width: 100%; border-collapse: collapse; font-size: 13px; }

.env-table td { padding: 7px 0; border-bottom: 1px solid var(--line); vertical-align: top; }

.env-table tr:last-child td { border-bottom: 0; }

.env-table td:first-child { color: var(--text); width: 42%; padding-right: 14px; }

.env-table td:last-child { color: var(--muted); }

.env-table .sep2 { color: var(--dim); margin: 0 1px; }

/* ── download ── */

.dl-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }

.dl-card {
  background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 26px 26px 28px;
  display: flex; flex-direction: column; gap: 14px;
  transition: border-color .2s;
}

.dl-card:hover { border-color: var(--line-2); }

.dl-head { display: flex; align-items: center; gap: 10px; }

.dl-head h3 { font-size: 17px; font-weight: 600; letter-spacing: -.012em; }

.pill {
  font-family: var(--mono); font-size: 10.5px; font-weight: 600;
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--accent); border: 1px solid rgba(255, 92, 40, .35);
  background: var(--accent-soft);
  padding: 3px 9px; border-radius: 99px;
}

.dl-card p { color: var(--muted); font-size: 14px; }

.dl-card .clone-box { max-width: none; }

.dl-card p .mono, .req-list .mono { color: #d8d5d1; }

.req-list { list-style: none; display: flex; flex-direction: column; gap: 9px; font-size: 13px; }

.req-list li {
  color: #d8d5d1; padding-left: 18px; position: relative;
}

.req-list li::before {
  content: "—"; position: absolute; left: 0; color: var(--accent);
}

.req-list li span { color: var(--muted); font-family: var(--sans); font-size: 13px; }

.dl-note { margin-top: 30px; font-size: 13px; color: var(--dim); }

/* ── partners ── */

.partner-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 18px;
}

.partner-card {
  display: flex; align-items: center; gap: 18px; flex-wrap: wrap;
  background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 24px 26px;
  transition: border-color .2s, background .2s;
}

.partner-card:hover { border-color: var(--line-2); background: var(--raised); }

.partner-mark {
  flex: none; width: 54px; height: 54px; border-radius: 12px;
  display: grid; place-items: center;
  background: var(--grad); color: #180803;
  font-family: var(--mono); font-size: 24px; font-weight: 700;
}

.partner-info { flex: 1 1 180px; }

.partner-name-row { display: flex; align-items: center; gap: 10px; margin-bottom: 5px; }

.partner-name-row h3 { font-size: 18px; font-weight: 600; letter-spacing: -.015em; }

.partner-info p { color: var(--muted); font-size: 14px; }

.partner-actions { display: flex; gap: 10px; flex-wrap: wrap; }

.partner-actions .btn { padding: 9px 16px; font-size: 14px; }

.btn.is-soon { opacity: .5; cursor: not-allowed; }

.soon {
  font-family: var(--mono); font-size: 9.5px; font-weight: 600;
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--dim); border: 1px solid var(--line-2);
  border-radius: 99px; padding: 1px 7px;
}

/* ── changelog ── */

.changelog { border-top: 1px solid var(--line); }

.cl-entry {
  display: grid; grid-template-columns: 170px 1fr;
  gap: 28px; padding: 30px 0;
  border-bottom: 1px solid var(--line);
}

.cl-meta { display: flex; flex-direction: column; gap: 5px; }

.cl-version {
  font-family: var(--mono); font-size: 15px; font-weight: 600;
  color: var(--text); display: flex; align-items: center; gap: 9px;
}

.cl-date { font-family: var(--mono); font-size: 12.5px; color: var(--dim); }

.cl-badge {
  font-family: var(--mono); font-size: 10px; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase;
  background: var(--grad); color: #180803;
  padding: 2px 8px; border-radius: 99px;
}

.cl-title { font-size: 17px; font-weight: 600; letter-spacing: -.012em; margin-bottom: 12px; }

.cl-items { list-style: none; display: flex; flex-direction: column; gap: 7px; }

.cl-items li {
  position: relative; padding-left: 20px;
  color: var(--muted); font-size: 14.5px;
}

.cl-items li::before {
  content: ""; position: absolute; left: 0; top: .62em;
  width: 9px; height: 2px; background: var(--accent); border-radius: 2px;
}

.cl-items li.added::before { background: #3fae6a; }
.cl-items li.fixed::before { background: var(--orange); }

.cl-hint { margin-top: 22px; font-size: 13px; color: var(--dim); }

.cl-hint .mono { color: #d8d5d1; }

/* ── footer ── */

.site-footer { padding: 60px 0 32px; }

.footer-grid {
  display: grid; grid-template-columns: 1.6fr 1fr 1fr;
  gap: 40px; padding-bottom: 44px;
}

.footer-logo { height: 34px; width: auto; margin-bottom: 16px; }

.footer-brand p { color: var(--muted); font-size: 14px; max-width: 40ch; }

.footer-col { display: flex; flex-direction: column; gap: 10px; }

.footer-col h4 {
  font-family: var(--mono); font-size: 11.5px; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase; color: var(--dim);
  margin-bottom: 4px;
}

.footer-col a { color: var(--muted); font-size: 14px; transition: color .15s; }

.footer-col a:hover { color: var(--accent); }

.footer-bottom {
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  border-top: 1px solid var(--line); padding-top: 24px;
  font-size: 12.5px; color: var(--dim);
}

/* ── responsive ── */

@media (max-width: 1020px) {
  .hero-grid { grid-template-columns: 1fr; gap: 44px; padding-top: 64px; }
  .hero h1 { max-width: 20ch; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .quick-grid { grid-template-columns: 1fr; }
  .dl-grid { grid-template-columns: 1fr 1fr; }
  .dl-card:last-child { grid-column: 1 / -1; }
  .stat-strip { grid-template-columns: repeat(2, 1fr); }
  .stat-strip li:nth-child(3) { border-left: 0; padding-left: 0; border-top: 1px solid var(--line); }
  .stat-strip li:nth-child(4) { border-top: 1px solid var(--line); }
}

@media (max-width: 780px) {
  .nav {
    display: none; position: absolute; top: 62px; left: 0; right: 0;
    flex-direction: column; gap: 0;
    background: var(--bg); border-bottom: 1px solid var(--line);
    padding: 8px 26px 16px;
  }
  .nav.open { display: flex; }
  .nav a { padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
  .nav a:last-child { border-bottom: 0; }
  .menu-btn { display: flex; }
  .section { padding: 72px 0; }
  .mode-grid, .feature-grid, .dl-grid, .footer-grid { grid-template-columns: 1fr; }
  .dl-card:last-child { grid-column: auto; }
  .cl-entry { grid-template-columns: 1fr; gap: 14px; }
  .stat-strip { grid-template-columns: 1fr; }
  .stat-strip li + li { border-left: 0; padding-left: 0; border-top: 1px solid var(--line); }
  .stat-strip li:nth-child(3), .stat-strip li:nth-child(4) { border-top: 1px solid var(--line); }
  .cell-icon { margin-bottom: 26px; }
  .hero-grid { padding-top: 52px; padding-bottom: 48px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .caret { animation: none; }
  * { transition: none !important; }
}
