/* Inco palette, matched to the browser UI */
:root {
  --bg: #0e0e0e;
  --surface: #161616;
  --raised: #1a1a1a;
  --border: #2a2a2a;
  --hover: #2a2a2a;
  --text: #ececec;
  --text-strong: #ffffff;
  --text-soft: #dddddd;
  --muted: #888888;
  --accent: #e6c07b;
  --accent-deep: #b0893e;
  --accent-light: #f0d9a0;
  --onion-bg: #2a2010;
  --onion-bg-strong: #3a2a12;
  --radius: 14px;
  --max: 1040px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

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

code, pre { font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, "Liberation Mono", monospace; }

/* Top bar */
.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 24px;
  background: rgba(14, 14, 14, 0.92);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(8px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 18px;
  text-decoration: none;
  color: var(--text-strong);
}
.brand img { border-radius: 8px; }

.topbar nav { display: flex; gap: 6px; flex-wrap: wrap; }
.topbar nav a {
  color: var(--text-soft);
  text-decoration: none;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 14px;
}
.topbar nav a:hover { background: var(--hover); color: var(--text-strong); }

/* Sections */
main > section {
  max-width: var(--max);
  margin: 0 auto;
  padding: 72px 24px;
}

h1, h2, h3 { color: var(--text-strong); line-height: 1.2; margin: 0 0 12px; }
h1 { font-size: clamp(36px, 6vw, 56px); letter-spacing: -0.02em; }
h2 { font-size: clamp(24px, 3.5vw, 32px); }
h3 { font-size: 17px; }

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

/* Hero */
.hero { text-align: center; padding-top: 96px; }
.hero-icon { border-radius: 28px; border: 1px solid var(--border); margin-bottom: 20px; }
.tagline { font-size: clamp(18px, 2.4vw, 22px); color: var(--text-soft); margin: 0 auto 16px; max-width: 640px; }
.intro { color: var(--muted); max-width: 640px; margin: 0 auto 32px; font-size: 16px; }
.platform { color: var(--muted); font-size: 13px; margin: 14px 0 0; }

.cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 16px;
  text-decoration: none;
  border: 1px solid var(--border);
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}
.btn:active { transform: translateY(1px); }

.btn-primary { background: var(--accent); color: #161616; border-color: var(--accent); }
.btn-primary:hover { background: var(--accent-light); border-color: var(--accent-light); color: #161616; }

.btn-primary.is-disabled,
.btn-primary.is-disabled:hover {
  background: var(--raised);
  border-color: var(--border);
  color: var(--muted);
  cursor: not-allowed;
}

.btn-ghost { background: var(--raised); color: var(--text); }
.btn-ghost:hover { background: var(--hover); color: var(--text-strong); }

.release-info { color: var(--muted); font-size: 14px; margin: 8px 0 0; }
.release-info[hidden], .os-note[hidden] { display: none; }
.os-note {
  display: inline-block;
  margin: 16px auto 0;
  padding: 8px 14px;
  border-radius: 10px;
  background: var(--onion-bg);
  color: var(--accent-light);
  font-size: 14px;
}

.asset-list {
  list-style: none;
  padding: 0;
  margin: 24px auto 0;
  max-width: 560px;
  text-align: left;
}
.asset-list li { margin: 6px 0; }
.asset-list a {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
  background: var(--raised);
  border: 1px solid var(--border);
  border-radius: 12px;
  text-decoration: none;
  color: var(--text);
  font-size: 14px;
}
.asset-list a:hover { background: var(--hover); }
.asset-list .size { color: var(--muted); white-space: nowrap; }
.asset-list li.recommended a { border-color: var(--accent-deep); background: var(--onion-bg); }

/* Cards */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px;
}
.grid-3 { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 700px) { .grid-2 { grid-template-columns: 1fr; } }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
}
.card p { margin: 0; color: var(--text-soft); font-size: 15px; }

.card-onion { background: var(--onion-bg); border-color: var(--onion-bg-strong); }
.card-onion h3 { color: var(--accent-light); }

.card-placeholder { border-style: dashed; }
.badge {
  display: inline-block;
  margin-bottom: 10px;
  padding: 2px 10px;
  border-radius: 999px;
  background: var(--onion-bg-strong);
  color: var(--accent-light);
  font-size: 12px;
  font-weight: 600;
}

.not-title { margin-top: 48px; }
.not-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.not-list li {
  padding: 6px 14px;
  background: var(--raised);
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text-soft);
  font-size: 14px;
}

/* Comparison */
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); }
.compare table { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 640px; }
.compare th, .compare td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--border); vertical-align: top; }
.compare tbody tr:last-child th, .compare tbody tr:last-child td { border-bottom: 0; }
.compare thead th { background: var(--raised); color: var(--text-strong); font-weight: 600; }
.compare tbody th { color: var(--text-soft); font-weight: 500; background: var(--surface); }
.compare td { color: var(--muted); }
.compare .inco { color: var(--text-strong); background: rgba(230, 192, 123, 0.06); }
.compare thead .inco { color: var(--accent); }
.footnote { color: var(--muted); font-size: 13px; margin-top: 12px; }

/* Screenshots */
.shot { margin: 0; }
.shot-frame {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
}
.shot-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 28px;
  padding: 0 12px;
  background: var(--raised);
  border-bottom: 1px solid var(--border);
}
.shot-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--border); }
.shot-bar span { margin-left: 8px; color: var(--muted); font-size: 12px; }
.shot-view { position: relative; aspect-ratio: 16 / 10; background: var(--bg); }
.shot-view img { display: block; width: 100%; height: 100%; object-fit: cover; }
.shot-placeholder { display: flex; align-items: center; justify-content: center; }
.shot-placeholder span {
  color: var(--muted);
  font-size: 14px;
  padding: 6px 14px;
  border: 1px dashed var(--border);
  border-radius: 999px;
}
.shot.has-image .shot-placeholder span { display: none; }
.shot-onion .shot-frame { border-color: var(--onion-bg-strong); }
.shot-onion .shot-bar { background: var(--onion-bg); border-color: var(--onion-bg-strong); }
.shot-onion .shot-bar span { color: var(--accent-light); }
.shot-onion .shot-view { background: linear-gradient(160deg, var(--onion-bg) 0%, var(--bg) 100%); }
.shot-onion .shot-placeholder span { color: var(--accent-light); border-color: var(--accent-deep); }
.shot figcaption { color: var(--muted); font-size: 14px; margin-top: 10px; }

/* Install */
.install h3 { margin-top: 28px; }
.install .distro { color: var(--text-strong); font-weight: 600; margin: 18px 0 6px; font-size: 15px; }
.install .small-note { color: var(--muted); font-size: 14px; }
.install .soon-line {
  display: inline-block;
  margin-top: 20px;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--onion-bg);
  color: var(--accent-light);
  font-size: 14px;
}
.code { position: relative; }
.code pre { padding-right: 84px; }
.copy-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  padding: 4px 10px;
  font: inherit;
  font-size: 12px;
  color: var(--text-soft);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  cursor: pointer;
}
.copy-btn:hover { background: var(--hover); color: var(--text-strong); }
.copy-btn.done { color: var(--accent); border-color: var(--accent-deep); }

/* Build */
.install pre {
  background: var(--raised);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px 18px;
  overflow-x: auto;
  color: var(--text);
  font-size: 14px;
}
.install p code {
  background: var(--raised);
  padding: 2px 6px;
  border-radius: 6px;
}

/* Footer */
.footer {
  border-top: 1px solid var(--border);
  padding: 32px 24px 48px;
  text-align: center;
  color: var(--muted);
  font-size: 14px;
}
.footer p { margin: 4px 0; }
.footer a { color: var(--text-soft); }
.footer .small { font-size: 12px; }

/* 404 */
.notfound { min-height: 100vh; display: flex; align-items: center; justify-content: center; }
.notfound .hero { padding: 48px 24px; }

@media (max-width: 600px) {
  .topbar { padding: 10px 16px; }
  .topbar nav a { padding: 6px 8px; }
  main > section { padding: 56px 18px; }
}

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

/* Projects (locked cards) */
.project-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 420px));
  justify-content: center;
  gap: 18px;
}
.slide {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 18px;
  align-items: center;
  padding: 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
}
.slide-art {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: 14px;
  background: var(--raised);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.slide-body h3 { font-size: 20px; margin-bottom: 6px; }
.slide-body p { margin: 0; }
.slide-locked { filter: grayscale(1); opacity: 0.55; border-style: dashed; }
.slide-locked .badge { background: var(--raised); color: var(--muted); border: 1px solid var(--border); }
.slide-locked .slide-body p { color: var(--muted); }
.slide-art-placeholder .ph-shape { position: absolute; border-radius: 999px; filter: blur(6px); background: #3a3a3a; }
.ph-a { width: 60%; height: 60%; top: 10%; left: 8%; }
.ph-b { width: 45%; height: 45%; bottom: 8%; right: 10%; background: #2f2f2f; }
.ph-c { width: 30%; height: 30%; top: 50%; left: 45%; background: #444444; }
.slide-art-placeholder .lock { position: relative; color: var(--text-soft); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

@media (max-width: 700px) {
  .project-cards { grid-template-columns: 1fr; }
}

/* Ocni help companion */
.ocni { position: fixed; right: 20px; bottom: 20px; z-index: 50; }
.ocni-fab {
  width: 60px; height: 60px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 999px;
  background: var(--raised);
  border: 1px solid var(--border);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
  cursor: pointer;
  padding: 0;
  animation: ocni-bob 3.2s ease-in-out infinite;
}
.ocni-fab:hover { background: var(--hover); border-color: var(--accent-deep); }
.ocni-fab:focus-visible, .ocni-close:focus-visible, .ocni-q:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.ocni-fab[aria-expanded="true"] { animation: none; border-color: var(--accent-deep); }
@keyframes ocni-bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

.ocni-panel {
  position: absolute;
  right: 0;
  bottom: 74px;
  width: min(360px, calc(100vw - 32px));
  max-height: min(560px, calc(100vh - 110px));
  overflow-y: auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6);
  animation: ocni-in 0.18s ease-out;
}
.ocni-panel[hidden] { display: none; }
@keyframes ocni-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}
.ocni-head {
  position: sticky; top: 0; z-index: 2;
  display: flex; align-items: center; gap: 12px;
  padding: 14px 14px 12px 16px;
  background: var(--raised);
  border-bottom: 1px solid var(--border);
}
.ocni-head > div { flex: 1; }
.ocni-title { margin: 0; color: var(--text-strong); font-weight: 600; }
.ocni-sub { margin: 0; color: var(--muted); font-size: 13px; }
.ocni-close {
  display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; padding: 0;
  border-radius: 999px; border: 1px solid var(--border);
  background: var(--surface); color: var(--text-soft); cursor: pointer;
}
.ocni-close:hover { background: var(--hover); color: var(--text-strong); }
.ocni-panel { overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: var(--border) transparent; }
.ocni-panel::-webkit-scrollbar { width: 8px; }
.ocni-panel::-webkit-scrollbar-thumb { background: var(--border); border-radius: 8px; }
.ocni-faq { padding: 6px 8px 10px; }
.ocni-group + .ocni-group { margin-top: 4px; padding-top: 4px; border-top: 1px solid var(--border); }
.ocni-group-title {
  margin: 0; padding: 10px 10px 4px;
  color: var(--accent); font-size: 12px; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase;
}
.ocni-item h3, .ocni-item h4 { margin: 0; font-size: 14px; }
.ocni-qt { flex: 1; }
.ocni-badge { display: inline-block; margin-left: 8px; vertical-align: 1px; white-space: nowrap; }
.ocni-a code { background: var(--raised); padding: 1px 5px; border-radius: 5px; font-size: 13px; }
.ocni-q {
  width: 100%;
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 11px 10px;
  background: none; border: 0; border-radius: 10px;
  color: var(--text); font: inherit; font-size: 14px; font-weight: 600; text-align: left;
  cursor: pointer;
}
.ocni-q:hover { background: var(--raised); }
.ocni-chev {
  flex: 0 0 auto; width: 8px; height: 8px;
  border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted);
  transform: rotate(45deg); transition: transform 0.15s ease;
  margin-right: 4px;
}
.ocni-q[aria-expanded="true"] .ocni-chev { transform: rotate(-135deg); }
.ocni-q[aria-expanded="true"] { color: var(--accent-light); }
.ocni-a { padding: 0 10px 10px; }
.ocni-a p { margin: 0; color: var(--text-soft); font-size: 14px; }
.ocni-a a { color: var(--accent); }

@media (prefers-reduced-motion: reduce) {
  .ocni-fab, .ocni-panel { animation: none; }
  .ocni-chev { transition: none; }
}


/* Preview banner */
.preview-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 8px 48px;
  position: relative;
  background: var(--onion-bg);
  border-bottom: 1px solid var(--onion-bg-strong);
  color: var(--accent-light);
  font-size: 14px;
  text-align: center;
}
.preview-banner[hidden] { display: none; }
.preview-banner p { margin: 0; }
.preview-close {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  display: inline-flex; align-items: center; justify-content: center;
  width: 28px; height: 28px; padding: 0;
  border-radius: 999px;
  border: 1px solid var(--onion-bg-strong);
  background: transparent;
  color: var(--accent-light);
  cursor: pointer;
}
.preview-close:hover { background: var(--onion-bg-strong); }
.preview-close:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.notfound { flex-direction: column; }
.notfound .preview-banner { position: absolute; top: 0; left: 0; right: 0; }

/* Nov 1 badge */
.badge-nov {
  margin: 0 0 0 6px;
  padding: 1px 8px;
  vertical-align: middle;
  background: var(--onion-bg-strong);
  color: var(--accent);
  font-size: 11px;
  letter-spacing: 0.02em;
}
.lead .badge-nov { margin: 0 2px; }

/* Creator program */
.creators-soon {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  background: var(--surface);
  border: 1px dashed var(--border);
  border-radius: 12px;
}
.creators-soon p { margin: 0; color: var(--text-soft); }
.creators-soon[hidden] { display: none; }
.creators-soon .badge-nov { margin: 0; }

.creator-form {
  max-width: 760px;
  padding: 22px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.creator-form[hidden] { display: none; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-bottom: 14px; }
.field { display: flex; flex-direction: column; gap: 6px; font-size: 14px; color: var(--text-soft); }
.field input, .field textarea {
  font: inherit;
  font-size: 15px;
  color: var(--text);
  background: var(--raised);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 12px;
  outline: none;
}
.field textarea { resize: vertical; min-height: 96px; }
.field input:focus, .field textarea:focus { border-color: var(--accent-deep); box-shadow: 0 0 0 2px rgba(230, 192, 123, 0.18); }
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-color: #b0563e; }
.field-note { min-height: 1em; color: var(--accent-light); font-size: 13px; }
.check { display: flex; gap: 10px; align-items: flex-start; margin: 14px 0; font-size: 14px; color: var(--text-soft); }
.check input { margin-top: 3px; accent-color: var(--accent); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.turnstile-slot { min-height: 65px; margin: 6px 0 14px; }
.form-actions { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.form-actions .btn { border: 0; cursor: pointer; font: inherit; font-weight: 600; }
.form-actions .btn:disabled { opacity: 0.5; cursor: not-allowed; }
.form-status { margin: 0; font-size: 14px; color: var(--text-soft); }
.form-status.is-error { color: #e6a07b; }
.form-status.is-ok { color: var(--accent); }

@media (max-width: 700px) {
  .form-grid { grid-template-columns: 1fr; }
}

/* Creator Program teaser (main page) */
.teaser-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  padding: 24px 28px;
  background: var(--onion-bg);
  border: 1px solid var(--onion-bg-strong);
  border-radius: 18px;
}
.teaser-text h2 { margin: 0 0 6px; font-size: clamp(22px, 3vw, 26px); }
.teaser-text p { margin: 0; color: var(--text-soft); }

/* Creator Program page */
.topbar nav a[aria-current="page"] { background: var(--hover); color: var(--text-strong); }
.cp-hero { text-align: center; padding-top: 80px; padding-bottom: 32px; }
.cp-eyebrow { color: var(--accent); font-size: 13px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; margin: 0 0 10px; }
main > section.cp-info { padding-top: 24px; padding-bottom: 24px; }
.cp-step { position: relative; }
.cp-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 30px; height: 30px; margin-bottom: 12px;
  border-radius: 999px;
  background: var(--onion-bg-strong);
  color: var(--accent);
  font-weight: 700; font-size: 14px;
}
.cp-h { font-size: 18px; }
.cp-list { margin: 0; padding-left: 18px; color: var(--text-soft); font-size: 15px; }
.cp-list li { margin: 4px 0; }
.cp-list strong { color: var(--accent-light); }
.cp-note { margin: 12px 0 0 !important; color: var(--muted) !important; font-size: 13px !important; }
.cp-apply .creator-form { margin: 0 auto; }
.cp-apply > h2, .cp-apply > .lead { max-width: 760px; margin-left: auto; margin-right: auto; }
.cp-apply .creators-soon { display: flex; max-width: 760px; margin: 0 auto; }
.cp-apply .creators-soon[hidden] { display: none; }
.form-group { border: 0; margin: 0 0 8px; padding: 0 0 18px; border-bottom: 1px solid var(--border); }
.form-group + .form-group, .form-group + .hp + .form-group { padding-top: 16px; }
.form-group legend { padding: 0; margin: 0 0 12px; color: var(--accent); font-size: 13px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; }
.form-group .form-grid { margin-bottom: 0; }
.form-final { border-bottom: 0; padding-bottom: 0; margin-bottom: 0; }
.field-hint { color: var(--muted); font-size: 13px; }
.cp-apply .form-status:empty { display: none; }
.cp-apply .form-status { padding: 8px 12px; border-radius: 10px; border: 1px solid var(--border); background: var(--raised); }
.cp-apply .form-status.is-error { border-color: #6a3a26; background: #2a1810; }
.cp-apply .form-status.is-ok { border-color: var(--accent-deep); background: var(--onion-bg); }

/* Support page */
.sp-hero { text-align: center; padding-top: 80px; padding-bottom: 24px; }
main > section.sp-info { padding-top: 24px; }
.sp-info .card h2 { font-size: 18px; margin-top: 0; }
.sp-info .card p { color: var(--text-soft); margin: 0 0 10px; }
.sp-mail { font-size: 18px; font-weight: 600; }
.sp-mail a, .sp-info .card a { color: var(--accent); }
.sp-warn { margin-top: 14px !important; padding: 10px 12px; border-radius: 10px; border: 1px solid #6a3a26; background: #2a1810; color: var(--text) !important; font-size: 14px; }
.sp-faq-btn { margin-top: 6px; }
.install .install-step { margin: 26px 0 4px; color: var(--accent); font-size: 16px; }
