/* ============================================================
   Design tokens + base
   ============================================================ */

:root {
  --bg: #08080d;
  --bg-soft: #0b0b12;
  --panel: #101018;
  --panel-2: #15151f;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.16);

  --text: #f2f2f6;
  --muted: #9a9aab;
  --dim: #6b6b7c;

  --accent: #7c6cf6;
  --accent-soft: #b3a8ff;
  --accent-2: #35d7d0;
  --good: #56d99a;
  --warn: #f4c164;
  --bad: #ff6b7d;

  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 26px;

  --shadow: 0 24px 70px -30px rgba(0, 0, 0, 0.95);
  --glow: 0 0 60px -14px rgba(124, 108, 246, 0.45);

  --display: 'Instrument Serif', 'Iowan Old Style', Georgia, serif;
  --sans: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --mono: ui-monospace, 'Cascadia Code', 'Roboto Mono', monospace;

  --max: 1180px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

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

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

/* film grain overlay */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)'/%3E%3C/svg%3E");
}

h1,
h2,
h3,
h4 {
  font-family: var(--display);
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1.08;
  margin: 0;
}

h1 {
  font-size: clamp(2.7rem, 6vw, 4.8rem);
}
h2 {
  font-size: clamp(2rem, 3.8vw, 3.1rem);
}
h3 {
  font-size: 1.45rem;
}
h4 {
  font-size: 1.1rem;
}

p {
  margin: 0;
}

em {
  font-style: italic;
  color: var(--accent-soft);
}

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

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

code {
  font-family: var(--mono);
  font-size: 0.88em;
  padding: 0.12em 0.4em;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid var(--line);
}

::selection {
  background: rgba(124, 108, 246, 0.35);
}

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

/* ============================================================
   Layout helpers
   ============================================================ */

.shell {
  width: min(100% - 2.5rem, var(--max));
  margin-inline: auto;
  position: relative;
  z-index: 1;
}

.shell-narrow {
  width: min(100% - 2.5rem, 820px);
  margin-inline: auto;
  position: relative;
  z-index: 1;
}

.section {
  padding: clamp(4rem, 9vw, 7rem) 0;
  position: relative;
}

.section-tight {
  padding: clamp(2.5rem, 5vw, 4rem) 0;
}

.section-head {
  max-width: 680px;
  margin-bottom: 3rem;
}

.section-head.center {
  margin-inline: auto;
  text-align: center;
}

.section-head p {
  color: var(--muted);
  margin-top: 1rem;
  font-size: 1.05rem;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-soft);
  margin-bottom: 1rem;
}

.eyebrow::before {
  content: '';
  width: 22px;
  height: 1px;
  background: currentColor;
  opacity: 0.6;
}

.section-head.center .eyebrow {
  justify-content: center;
}

.muted {
  color: var(--muted);
}

.dim {
  color: var(--dim);
}

.divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line-strong), transparent);
  border: 0;
  margin: 0;
}

.stack > * + * {
  margin-top: 1rem;
}

/* reveal on scroll */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition:
    opacity 0.85s var(--ease),
    transform 0.85s var(--ease);
}

.reveal.in {
  opacity: 1;
  transform: none;
}

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

/* ============================================================
   Buttons & pills
   ============================================================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.85rem 1.5rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  text-align: center;
  transition:
    transform 0.25s var(--ease),
    background 0.25s var(--ease),
    border-color 0.25s var(--ease),
    box-shadow 0.25s var(--ease),
    color 0.2s,
    opacity 0.2s;
  white-space: nowrap;
}

.btn:hover:not(:disabled) {
  transform: translateY(-2px);
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-soft), var(--accent) 55%, #5b4be0);
  color: #0d0a22;
  font-weight: 600;
  box-shadow: 0 10px 34px -14px rgba(124, 108, 246, 0.95);
}

.btn-primary:hover:not(:disabled) {
  box-shadow: 0 18px 44px -14px rgba(124, 108, 246, 1);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--line);
  color: var(--text);
  backdrop-filter: blur(8px);
}

.btn-ghost:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.09);
  border-color: var(--line-strong);
}

.btn-quiet {
  background: transparent;
  color: var(--muted);
  padding-inline: 0.9rem;
}

.btn-quiet:hover:not(:disabled) {
  color: var(--text);
}

.btn-danger {
  background: rgba(255, 107, 125, 0.1);
  border-color: rgba(255, 107, 125, 0.3);
  color: #ff9caa;
}

.btn-sm {
  padding: 0.55rem 1.05rem;
  font-size: 0.86rem;
}

.btn-block {
  width: 100%;
}

.link {
  color: var(--accent-soft);
  border-bottom: 1px solid rgba(179, 168, 255, 0.3);
  transition: color 0.2s, border-color 0.2s;
}

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

.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  font-size: 0.76rem;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.pill-accent {
  border-color: rgba(124, 108, 246, 0.38);
  background: rgba(124, 108, 246, 0.12);
  color: var(--accent-soft);
}

.pill-good {
  border-color: rgba(86, 217, 154, 0.32);
  background: rgba(86, 217, 154, 0.1);
  color: #8ce8bb;
}

.pill-warn {
  border-color: rgba(244, 193, 100, 0.32);
  background: rgba(244, 193, 100, 0.1);
  color: #f6d599;
}

.pill-bad {
  border-color: rgba(255, 107, 125, 0.32);
  background: rgba(255, 107, 125, 0.1);
  color: #ff9caa;
}

.pill-cyan {
  border-color: rgba(53, 215, 208, 0.32);
  background: rgba(53, 215, 208, 0.1);
  color: #7ce8e3;
}

.dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--good);
  box-shadow: 0 0 0 4px rgba(86, 217, 154, 0.15);
  flex: none;
}

.dot-accent {
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(124, 108, 246, 0.15);
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.35;
  }
}

.dot-live {
  animation: pulse 1.6s ease-in-out infinite;
}

/* ============================================================
   Navigation
   ============================================================ */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  padding: 1rem 0;
  transition: background 0.3s, border-color 0.3s, backdrop-filter 0.3s;
  border-bottom: 1px solid transparent;
}

.nav.scrolled {
  background: rgba(8, 8, 13, 0.72);
  backdrop-filter: blur(18px) saturate(140%);
  border-bottom-color: var(--line);
}

.nav-inner {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--display);
  font-size: 1.4rem;
  letter-spacing: 0.01em;
}

.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(124, 108, 246, 0.9), rgba(53, 215, 208, 0.6));
  color: #0d0a22;
  box-shadow: 0 8px 26px -12px rgba(124, 108, 246, 0.9);
  flex: none;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.8rem;
  margin-left: auto;
  font-size: 0.92rem;
}

.nav-links a {
  color: var(--muted);
  transition: color 0.2s;
}

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

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 0.4rem;
  color: var(--text);
  margin-left: auto;
}

@media (max-width: 860px) {
  .nav-links,
  .nav-actions {
    display: none;
  }
  .nav-toggle {
    display: block;
  }
  .nav-inner.open {
    flex-wrap: wrap;
  }
  .nav-inner.open .nav-links,
  .nav-inner.open .nav-actions {
    display: flex;
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
    margin: 1rem 0 0.5rem;
    padding-top: 1rem;
    border-top: 1px solid var(--line);
  }
  .nav-inner.open .nav-actions .btn {
    width: 100%;
  }
}

/* ============================================================
   Hero
   ============================================================ */

.hero {
  position: relative;
  padding: clamp(3.5rem, 8vw, 6rem) 0 clamp(3.5rem, 7vw, 5rem);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: -30% -10% auto;
  height: 900px;
  pointer-events: none;
  background:
    radial-gradient(closest-side, rgba(124, 108, 246, 0.2), transparent 70%) 22% 28% / 62% 70% no-repeat,
    radial-gradient(closest-side, rgba(53, 215, 208, 0.12), transparent 70%) 80% 12% / 55% 65% no-repeat;
  filter: blur(20px);
}

.hero-grid {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 90% 60% at 50% 0%, #000 20%, transparent 75%);
  mask-image: radial-gradient(ellipse 90% 60% at 50% 0%, #000 20%, transparent 75%);
  opacity: 0.5;
}

.hero-inner {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 900px;
  margin-inline: auto;
}

.hero h1 {
  margin-bottom: 1.3rem;
}

.hero-sub {
  color: var(--muted);
  font-size: clamp(1.02rem, 1.6vw, 1.18rem);
  max-width: 640px;
  margin: 0 auto 2.1rem;
}

.hero-cta {
  display: flex;
  gap: 0.9rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 1.2rem;
}

.hero-note {
  font-size: 0.85rem;
  color: var(--dim);
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: clamp(1.5rem, 5vw, 3.5rem);
  flex-wrap: wrap;
  margin-top: 3rem;
  padding-top: 2.1rem;
  border-top: 1px solid var(--line);
}

.hero-stat strong {
  display: block;
  font-family: var(--display);
  font-size: 2rem;
  font-weight: 400;
  color: var(--text);
}

.hero-stat span {
  font-size: 0.78rem;
  color: var(--dim);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.page-head {
  position: relative;
  padding: clamp(3rem, 6vw, 4.5rem) 0 clamp(1.5rem, 3vw, 2.5rem);
  overflow: hidden;
}

.page-head h1 {
  font-size: clamp(2.4rem, 4.6vw, 3.6rem);
}

.page-head p {
  color: var(--muted);
  margin-top: 1rem;
  max-width: 640px;
  font-size: 1.05rem;
}

/* ============================================================
   Cards & grids
   ============================================================ */

.grid {
  display: grid;
  gap: 1.2rem;
}

.grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

@media (max-width: 900px) {
  .grid-3,
  .grid-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: minmax(0, 1fr);
  }
}

.card {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.012));
  padding: 1.6rem;
  transition: border-color 0.3s var(--ease), transform 0.3s var(--ease), background 0.3s var(--ease);
}

.card-hover:hover {
  transform: translateY(-4px);
  border-color: var(--line-strong);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
}

.card-lg {
  padding: clamp(1.6rem, 3vw, 2.4rem);
  border-radius: var(--radius-lg);
}

.card h3 {
  margin-bottom: 0.6rem;
}

.card p {
  color: var(--muted);
  font-size: 0.96rem;
}

.card-ico {
  width: 44px;
  height: 44px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  margin-bottom: 1.1rem;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.05);
  color: var(--accent-soft);
}

.card-ico-cyan {
  color: #7ce8e3;
}

.card-num {
  font-family: var(--display);
  font-size: 1.5rem;
  color: var(--accent-soft);
  line-height: 1;
}

/* stat / index rows */
.rows {
  border-top: 1px solid var(--line);
}

.row {
  display: flex;
  align-items: flex-start;
  gap: 1.2rem;
  padding: 1.4rem 0;
  border-bottom: 1px solid var(--line);
}

.row-idx {
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--dim);
  padding-top: 0.35rem;
  flex: none;
  width: 2.2rem;
}

/* media frame */
.frame {
  position: relative;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line-strong);
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
  padding: 0.6rem;
  box-shadow: var(--shadow);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}

.frame:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow), var(--glow);
}

.frame-screen {
  border-radius: 18px;
  overflow: hidden;
  background: #05050a;
  display: grid;
  place-items: center;
  aspect-ratio: 16 / 10;
}

.frame-screen img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.frame-bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 0.5rem 0.2rem;
  font-size: 0.78rem;
  color: var(--dim);
}

.frame-bar .lights {
  display: flex;
  gap: 5px;
}

.frame-bar .lights i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
}

/* callouts */
.note {
  display: flex;
  gap: 0.9rem;
  align-items: flex-start;
  padding: 1.2rem 1.3rem;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
  font-size: 0.94rem;
}

.note strong {
  color: var(--text);
  font-weight: 600;
}

.note svg {
  flex: none;
  margin-top: 2px;
}

.note-good {
  border-color: rgba(86, 217, 154, 0.28);
  background: rgba(86, 217, 154, 0.07);
}

.note-good svg {
  color: var(--good);
}

.note-warn {
  border-color: rgba(244, 193, 100, 0.28);
  background: rgba(244, 193, 100, 0.07);
}

.note-warn svg {
  color: var(--warn);
}

.note-accent {
  border-color: rgba(124, 108, 246, 0.3);
  background: rgba(124, 108, 246, 0.08);
}

.note-accent svg {
  color: var(--accent-soft);
}

/* checklist */
.checklist {
  list-style: none;
  margin: 0;
  padding: 0;
}

.checklist li {
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
  color: var(--muted);
  padding: 0.45rem 0;
}

.checklist li::before {
  content: '';
  width: 16px;
  height: 16px;
  margin-top: 5px;
  flex: none;
  border-radius: 50%;
  border: 1px solid rgba(124, 108, 246, 0.5);
  background:
    radial-gradient(circle at center, var(--accent) 0 3.5px, transparent 4px);
}

.bullets {
  list-style: none;
  margin: 0;
  padding: 0;
  color: var(--muted);
  font-size: 0.94rem;
}

.bullets li {
  position: relative;
  padding-left: 1.1rem;
  padding-block: 0.28rem;
}

.bullets li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.95em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--dim);
}

/* ============================================================
   Forms
   ============================================================ */

.field {
  display: block;
  margin-bottom: 1.3rem;
}

.field > label,
.label {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.6rem;
}

.input,
.textarea,
.select {
  width: 100%;
  padding: 0.85rem 1.05rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  outline: none;
  transition: border-color 0.25s, box-shadow 0.25s, background 0.25s;
}

.input::placeholder,
.textarea::placeholder {
  color: var(--dim);
}

.input:focus,
.textarea:focus,
.select:focus {
  border-color: rgba(124, 108, 246, 0.55);
  box-shadow: 0 0 0 4px rgba(124, 108, 246, 0.12);
  background: rgba(255, 255, 255, 0.06);
}

.textarea {
  resize: vertical;
  min-height: 150px;
}

.hint {
  margin-top: 0.5rem;
  font-size: 0.84rem;
  color: var(--dim);
}

.form-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1.4rem;
  margin-top: 0.4rem;
  border-top: 1px solid var(--line);
}

/* radio cards */
.choice {
  position: relative;
  display: block;
  cursor: pointer;
}

.choice input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.choice-box {
  height: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.025);
  padding: 1.3rem;
  text-align: center;
  transition: border-color 0.25s, background 0.25s, transform 0.25s var(--ease);
}

.choice:hover .choice-box {
  border-color: var(--line-strong);
  transform: translateY(-2px);
}

.choice input:checked + .choice-box {
  border-color: rgba(124, 108, 246, 0.65);
  background: rgba(124, 108, 246, 0.1);
  box-shadow: 0 0 0 3px rgba(124, 108, 246, 0.1);
}

.choice input:focus-visible + .choice-box {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.choice-box .emoji {
  font-size: 1.6rem;
  display: block;
  margin-bottom: 0.6rem;
}

.choice-box h4 {
  font-family: var(--sans);
  font-size: 0.98rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
}

.choice-box p {
  color: var(--muted);
  font-size: 0.85rem;
}

/* ============================================================
   Discussions
   ============================================================ */

.thread {
  display: block;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.012));
  padding: 1.5rem;
  transition: border-color 0.3s var(--ease), transform 0.3s var(--ease), background 0.3s var(--ease);
}

.thread:hover {
  border-color: var(--line-strong);
  transform: translateY(-3px);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
}

.thread h2,
.thread h3 {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 1.12rem;
  line-height: 1.4;
  margin: 0.9rem 0 0.5rem;
}

.thread-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 1.2rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  font-size: 0.84rem;
  color: var(--dim);
}

.who {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  flex: none;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent-soft);
  background: rgba(124, 108, 246, 0.14);
  border: 1px solid rgba(124, 108, 246, 0.28);
}

.avatar-sm {
  width: 28px;
  height: 28px;
  font-size: 0.75rem;
}

.who-name {
  color: var(--text);
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.counts {
  display: flex;
  align-items: center;
  gap: 1.2rem;
}

.counts span {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.comment {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.025);
  padding: 1.1rem 1.2rem;
}

.comment-admin {
  border-left: 2px solid var(--accent);
  background: rgba(124, 108, 246, 0.06);
}

.comment-body {
  margin-top: 0.75rem;
  color: var(--muted);
  white-space: pre-wrap;
}

.icon-btn {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--dim);
  cursor: pointer;
  transition: color 0.2s, background 0.2s, border-color 0.2s;
}

.icon-btn:hover {
  color: var(--bad);
  background: rgba(255, 107, 125, 0.1);
  border-color: rgba(255, 107, 125, 0.28);
}

.empty {
  text-align: center;
  padding: clamp(3rem, 7vw, 5rem) 1.5rem;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.02);
}

.empty svg {
  color: var(--dim);
  margin-bottom: 1rem;
}

.empty p {
  color: var(--muted);
  margin: 0.6rem auto 1.4rem;
  max-width: 420px;
}

.prose-body {
  color: var(--muted);
  white-space: pre-wrap;
  line-height: 1.75;
}

/* ============================================================
   Footer
   ============================================================ */

.footer {
  border-top: 1px solid var(--line);
  background: var(--bg-soft);
  padding: clamp(3rem, 6vw, 4.5rem) 0 2.2rem;
  position: relative;
  z-index: 1;
}

.footer-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 2.5rem;
  flex-wrap: wrap;
}

.footer-blurb {
  color: var(--muted);
  max-width: 340px;
  margin-top: 1rem;
  font-size: 0.94rem;
}

.footer-cols {
  display: flex;
  gap: clamp(2rem, 6vw, 4.5rem);
  flex-wrap: wrap;
}

.footer-col h4 {
  font-family: var(--sans);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--dim);
  margin-bottom: 0.9rem;
}

.footer-col a {
  display: block;
  color: var(--muted);
  padding: 0.3rem 0;
  font-size: 0.94rem;
  transition: color 0.2s;
}

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

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  font-size: 0.84rem;
  color: var(--dim);
}

/* ============================================================
   Utilities
   ============================================================ */

.center {
  text-align: center;
}

.cluster {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.between {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.split {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

@media (max-width: 860px) {
  .split {
    grid-template-columns: minmax(0, 1fr);
  }
}

.list-gap {
  display: grid;
  gap: 1rem;
}

.mt-1 {
  margin-top: 0.5rem;
}
.mt-2 {
  margin-top: 1rem;
}
.mt-3 {
  margin-top: 1.6rem;
}
.mt-4 {
  margin-top: 2.4rem;
}
.mb-2 {
  margin-bottom: 1rem;
}
.mb-3 {
  margin-bottom: 1.6rem;
}
