/* ==========================================================================
   Linux Institute — Hive-aligned dark theme
   Same visual family as Hive Command dashboard, adapted for a public education site.
   ========================================================================== */

:root {
  /* Hive tokens (verbatim) */
  --bg:        #03040a;
  --panel:     rgba(13, 18, 32, 0.64);
  --panel-2:   rgba(255, 255, 255, 0.055);
  --line:      rgba(255, 255, 255, 0.12);
  --text:      #f8fafc;
  --muted:     #94a3b8;
  --cyan:      #67e8f9;
  --violet:    #a78bfa;
  --pink:      #fb7185;
  --green:     #34d399;
  --amber:     #fbbf24;
  --shadow:    0 28px 80px rgba(0, 0, 0, 0.55);

  /* Public-site additions */
  --panel-solid: rgba(13, 18, 32, 0.92);     /* for long-form reading */
  --ink-soft:     #cbd5e1;
  --ink-faint:    #64748b;
  --radius-sm: 10px;
  --radius:    16px;
  --radius-lg: 22px;
  --shell-w:   1500px;
  --read-ch:   72ch;                          /* reading width */

  /* Type */
  --font-sans: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}

/* --------------------------------------------------------------------------
   Reset + base
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 80px; /* clears the 63px sticky nav so anchor jumps and scrollIntoView land below it */
}
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  min-height: 100vh;
  position: relative;
}
img, svg { display: block; max-width: 100%; height: auto; }
a { color: var(--cyan); text-decoration: none; text-underline-offset: 3px; }
a:hover { color: #a5f3fc; text-decoration: underline; }
button { font: inherit; cursor: pointer; }
code, pre, kbd, .mono { font-family: var(--font-mono); }

/* --------------------------------------------------------------------------
   Background field — three radial blobs + grain
   -------------------------------------------------------------------------- */
.bg-field {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    radial-gradient(60vw 60vw at 12% -10%, rgba(103, 232, 249, 0.22), transparent 60%),
    radial-gradient(55vw 55vw at 95% 8%,  rgba(167, 139, 250, 0.20), transparent 60%),
    radial-gradient(70vw 70vw at 50% 110%, rgba(251, 113, 133, 0.12), transparent 65%);
}
.bg-grain {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.12;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 0.5 0'/></filter><rect width='200' height='200' filter='url(%23n)'/></svg>");
  background-size: 200px 200px;
}

/* Cursor glow layer */
.cursor-glow {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(
    320px 320px at var(--mx, 50%) var(--my, 30%),
    rgba(103, 232, 249, 0.10),
    rgba(167, 139, 250, 0.06) 40%,
    transparent 70%
  );
  transition: background-position .15s linear;
  opacity: 0;
  transition: opacity .4s ease;
}
@media (hover: hover) and (pointer: fine) {
  .cursor-glow.is-ready { opacity: 1; }
}

/* Floating orbs */
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.55;
  animation: float 14s ease-in-out infinite;
  pointer-events: none;
}
.orb-1 { width: 380px; height: 380px; background: rgba(103, 232, 249, 0.35); top: -120px; left: -80px; }
.orb-2 { width: 320px; height: 320px; background: rgba(167, 139, 250, 0.32); top: 30%; right: -60px; animation-delay: -4s; }
.orb-3 { width: 280px; height: 280px; background: rgba(251, 113, 133, 0.22); bottom: -80px; left: 30%; animation-delay: -8s; }
@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33%      { transform: translate(40px, -30px) scale(1.05); }
  66%      { transform: translate(-30px, 20px) scale(0.97); }
}

/* --------------------------------------------------------------------------
   Typography
   -------------------------------------------------------------------------- */
h1, h2, h3, h4, h5 {
  font-family: var(--font-sans);
  color: var(--text);
  font-weight: 700;
  letter-spacing: -0.025em;
  margin: 0 0 16px;
}
h1 { font-size: clamp(42px, 7vw, 96px); font-weight: 900; line-height: 0.92; letter-spacing: -0.055em; }
h2 { font-size: clamp(28px, 4vw, 48px); font-weight: 800; line-height: 1.05; letter-spacing: -0.04em; }
h3 { font-size: 1.375rem; font-weight: 700; line-height: 1.2; }
h4 { font-size: 1.125rem; font-weight: 700; line-height: 1.3; }
p { margin: 0 0 16px; color: var(--ink-soft); }
.mono { font-family: var(--font-mono); }

.lede {
  font-size: clamp(1.0625rem, 1.4vw, 1.25rem);
  line-height: 1.55;
  color: var(--muted);
  font-weight: 400;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--cyan);
  margin-bottom: 16px;
  position: relative;   /* paints above section divider lines and any siblings */
  z-index: 2;
}
.eyebrow .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 12px var(--cyan);
}

/* The Hive signature heading gradient */
.grad-text {
  background: linear-gradient(100deg,
    #ffffff 10%,
    var(--cyan) 40%,
    var(--violet) 67%,
    var(--pink) 95%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* --------------------------------------------------------------------------
   Layout
   -------------------------------------------------------------------------- */
.shell {
  width: 100%;
  max-width: var(--shell-w);
  margin: 0 auto;
  padding: 0 28px;
}
.read {
  width: 100%;
  max-width: var(--read-ch);
  margin: 0 auto;
  padding: 0 28px;
}

/* --------------------------------------------------------------------------
   Navigation (glass)
   -------------------------------------------------------------------------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(3, 4, 10, 0.6);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px 0;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.0625rem;
  color: var(--text);
  letter-spacing: -0.02em;
}
.brand:hover { text-decoration: none; color: var(--cyan); }
.brand-mark {
  width: 30px; height: 30px;
  filter: drop-shadow(0 0 8px rgba(103, 232, 249, 0.5));
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  color: var(--ink-soft);
  font-size: 0.9375rem;
  font-weight: 600;
  padding: 8px 0;
  position: relative;
}
.nav-links a:hover { color: var(--text); text-decoration: none; }
.nav-links a.active {
  color: var(--cyan);
  font-weight: 700;
}
.nav-links a.active::before {
  content: '';
  position: absolute;
  left: -10px; top: 50%;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 10px var(--cyan);
  transform: translateY(-50%);
}
.nav-links a.active::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -4px;
  height: 2px;
  background: linear-gradient(90deg, var(--cyan), var(--violet));
  border-radius: 2px;
  box-shadow: 0 0 12px rgba(103, 232, 249, 0.5);
}

/* Hamburger (≤860px) */
.nav-toggle {
  display: none;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 10px;
  color: var(--text);
}
.nav-toggle-bar {
  display: block;
  width: 22px; height: 2px;
  background: var(--text);
  margin: 4px 0;
  transition: transform .2s, opacity .2s;
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 860px) {
  .nav-toggle { display: inline-block; }
  .nav-links {
    position: fixed;
    top: 65px;
    left: 0; right: 0;
    flex-direction: column;
    gap: 0;
    background: rgba(3, 4, 10, 0.98);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--line);
    padding: 16px 28px;
    transform: translateY(-110%);
    transition: transform .25s ease;
  }
  .nav-links.is-open { transform: translateY(0); }
  .nav-links li { width: 100%; border-bottom: 1px solid var(--line); }
  .nav-links a { display: block; padding: 16px 0; }
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 22px;
  border-radius: 10px;
  font-size: 0.9375rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  border: 1px solid transparent;
  transition: transform .12s, box-shadow .15s, background .15s, color .15s;
  text-decoration: none;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: linear-gradient(135deg, var(--cyan), var(--violet));
  color: var(--bg);
  box-shadow: 0 12px 32px rgba(103, 232, 249, 0.25);
}
.btn-primary:hover {
  color: var(--bg);
  text-decoration: none;
  box-shadow: 0 16px 40px rgba(103, 232, 249, 0.4);
  transform: translateY(-1px);
}
.btn-secondary {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  border-color: var(--line);
}
.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  text-decoration: none;
  border-color: rgba(255, 255, 255, 0.2);
}
.btn-ghost {
  background: transparent;
  color: var(--ink-soft);
  padding: 8px 14px;
}
.btn-ghost:hover { color: var(--cyan); text-decoration: none; }

/* --------------------------------------------------------------------------
   Sections
   -------------------------------------------------------------------------- */
section { padding: 96px 0; position: relative; }
section.tight { padding: 56px 0; }
section.quiet {
  background: var(--panel-solid);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */
.hero {
  padding: 120px 0 96px;
  position: relative;
  overflow: hidden;
}
.hero-mark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 14px;
  border: 1px solid var(--line);
  background: var(--panel-2);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  color: var(--ink-soft);
  letter-spacing: 0.04em;
  margin-bottom: 28px;
}
.hero-mark .pulse {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 12px var(--green);
  animation: scan 2.4s ease-in-out infinite;
}
@keyframes scan {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.5; transform: scale(0.8); }
}
.hero h1 { max-width: 18ch; margin-bottom: 28px; }
.hero .lede { max-width: 52ch; margin-bottom: 36px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-stats {
  display: flex;
  gap: 48px;
  margin-top: 56px;
  flex-wrap: wrap;
}
.hero-stat-num {
  font-family: var(--font-sans);
  font-size: 2rem;
  font-weight: 900;
  color: var(--text);
  line-height: 1;
  letter-spacing: -0.03em;
}
.hero-stat-num.cyan   { color: var(--cyan); }
.hero-stat-num.violet { color: var(--violet); }
.hero-stat-num.green  { color: var(--green); }
.hero-stat-label {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-faint);
  margin-top: 6px;
}

/* --------------------------------------------------------------------------
   Glass cards (with mouse-tracked spotlight)
   -------------------------------------------------------------------------- */
.glass {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(18px) saturate(180%);
  -webkit-backdrop-filter: blur(18px) saturate(180%);
  box-shadow: var(--shadow);
  padding: 28px;
  position: relative;
  overflow: hidden;
  transition: transform .2s, border-color .2s;
}
.glass.spot {
  --mx: 50%;
  --my: 0%;
}
.glass.spot::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(
    300px 300px at var(--mx) var(--my),
    rgba(103, 232, 249, 0.12),
    transparent 60%
  );
  opacity: 0;
  transition: opacity .25s;
  pointer-events: none;
  border-radius: inherit;
}
.glass.spot:hover { border-color: rgba(103, 232, 249, 0.3); transform: translateY(-2px); }
.glass.spot:hover::before { opacity: 1; }

.glass-quiet {
  background: var(--panel-solid);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
}

.card-icon {
  width: 44px; height: 44px;
  border-radius: 10px;
  background: rgba(103, 232, 249, 0.1);
  border: 1px solid rgba(103, 232, 249, 0.2);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  color: var(--cyan);
}
.card-icon.violet { background: rgba(167, 139, 250, 0.1); border-color: rgba(167, 139, 250, 0.2); color: var(--violet); }
.card-icon.pink   { background: rgba(251, 113, 133, 0.1); border-color: rgba(251, 113, 133, 0.2); color: var(--pink); }
.card-icon.green  { background: rgba(52, 211, 153, 0.1);  border-color: rgba(52, 211, 153, 0.2);  color: var(--green); }
.card-icon.amber  { background: rgba(251, 191, 36, 0.1);  border-color: rgba(251, 191, 36, 0.2);  color: var(--amber); }

.card h3 { margin-bottom: 10px; }
.card p { margin: 0; color: var(--muted); font-size: 0.9375rem; }

/* --------------------------------------------------------------------------
   Grids
   -------------------------------------------------------------------------- */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
@media (max-width: 960px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr; }
}

/* --------------------------------------------------------------------------
   Pills / chips
   -------------------------------------------------------------------------- */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  color: var(--ink-soft);
}
.pill.cyan   { color: var(--cyan);   border-color: rgba(103, 232, 249, 0.3); background: rgba(103, 232, 249, 0.08); }
.pill.violet { color: var(--violet); border-color: rgba(167, 139, 250, 0.3); background: rgba(167, 139, 250, 0.08); }
.pill.green  { color: var(--green);  border-color: rgba(52, 211, 153, 0.3);  background: rgba(52, 211, 153, 0.08); }
.pill.amber  { color: var(--amber);  border-color: rgba(251, 191, 36, 0.3);  background: rgba(251, 191, 36, 0.08); }
.pill.pink   { color: var(--pink);   border-color: rgba(251, 113, 133, 0.3); background: rgba(251, 113, 133, 0.08); }

/* --------------------------------------------------------------------------
   Stats block
   -------------------------------------------------------------------------- */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 40px;
}
.stat {
  padding: 24px 0;
  border-top: 1px solid var(--line);
}
.stat-num {
  font-size: clamp(2.25rem, 3.5vw, 3.25rem);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.04em;
  margin-bottom: 10px;
  background: linear-gradient(180deg, #fff, #cbd5e1);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.stat-label {
  font-size: 0.9375rem;
  color: var(--muted);
  line-height: 1.4;
}
@media (max-width: 960px) { .stats { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .stats { grid-template-columns: 1fr; } }

/* --------------------------------------------------------------------------
   Tables
   -------------------------------------------------------------------------- */
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel-solid);
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9375rem;
}
th, td {
  text-align: left;
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
th {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.03);
}
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: rgba(103, 232, 249, 0.04); }
td strong { color: var(--text); }

/* --------------------------------------------------------------------------
   Process / numbered steps
   -------------------------------------------------------------------------- */
.process {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  counter-reset: step;
  margin-top: 40px;
}
.process-step {
  counter-increment: step;
  padding: 28px 0 0;
  border-top: 2px solid transparent;
  background-image: linear-gradient(90deg, var(--cyan), var(--violet));
  background-size: 100% 2px;
  background-repeat: no-repeat;
  background-position: top left;
}
.process-step::before {
  content: counter(step, decimal-leading-zero);
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--cyan);
  letter-spacing: 0.08em;
  display: block;
  margin-bottom: 14px;
}
.process-step h4 { margin-bottom: 8px; }
.process-step p { margin: 0; font-size: 0.9375rem; color: var(--muted); }
@media (max-width: 960px) { .process { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .process { grid-template-columns: 1fr; } }

/* --------------------------------------------------------------------------
   Lab terminal preview
   -------------------------------------------------------------------------- */
.terminal {
  background: #0a0e1a;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0;
  overflow: hidden;
  font-family: var(--font-mono);
  font-size: 0.875rem;
  position: relative;
}
.terminal-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid var(--line);
}
.terminal-bar .dot { width: 11px; height: 11px; border-radius: 50%; }
.terminal-bar .dot.r { background: #fb7185; }
.terminal-bar .dot.y { background: #fbbf24; }
.terminal-bar .dot.g { background: #34d399; }
.terminal-bar .title {
  margin-left: 12px;
  font-size: 11px;
  color: var(--ink-faint);
  letter-spacing: 0.04em;
}
.terminal-bar .live {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  color: var(--green);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.terminal-bar .live .pulse {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 10px var(--green);
  animation: scan 2s ease-in-out infinite;
}
.terminal-body {
  padding: 20px 22px;
  color: var(--ink-soft);
  line-height: 1.7;
}
.terminal-body .prompt { color: var(--cyan); }
.terminal-body .cmd    { color: var(--text); }
.terminal-body .ok     { color: var(--green); }
.terminal-body .warn   { color: var(--amber); }
.terminal-body .dim    { color: var(--ink-faint); }

/* --------------------------------------------------------------------------
   FAQ accordion
   -------------------------------------------------------------------------- */
.faq-item {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 26px;
  margin-bottom: 14px;
  cursor: pointer;
  transition: border-color .15s;
}
.faq-item:hover { border-color: rgba(103, 232, 249, 0.25); }
.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-weight: 700;
  color: var(--text);
  list-style: none;
  cursor: pointer;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  font-family: var(--font-mono);
  font-size: 1.25rem;
  color: var(--cyan);
  transition: transform .2s;
}
.faq-item[open] summary::after { content: '−'; }
.faq-item p {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 0.9375rem;
}

/* --------------------------------------------------------------------------
   Trust strip
   -------------------------------------------------------------------------- */
.trust-strip {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
  align-items: center;
  padding: 24px 32px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel-2);
  margin-top: 48px;
}
.trust-item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}
.trust-item .check {
  width: 18px; height: 18px;
  border-radius: 50%;
  background: rgba(52, 211, 153, 0.12);
  border: 1px solid rgba(52, 211, 153, 0.3);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--green);
  font-size: 11px;
  font-weight: 700;
}

/* --------------------------------------------------------------------------
   CTA panel
   -------------------------------------------------------------------------- */
.cta-panel {
  position: relative;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 64px 56px;
  text-align: center;
  overflow: hidden;
  backdrop-filter: blur(20px) saturate(180%);
}
.cta-panel::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(40vw 40vw at 20% 0%, rgba(103, 232, 249, 0.18), transparent 60%),
    radial-gradient(40vw 40vw at 80% 100%, rgba(251, 113, 133, 0.14), transparent 60%);
  pointer-events: none;
}
.cta-panel > * { position: relative; }
.cta-panel h2 { max-width: 20ch; margin-left: auto; margin-right: auto; }

.figure {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--panel);
  box-shadow: var(--shadow);
}
.figure img {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 16/9;
  object-fit: cover;
}
.figure.cap {
  padding: 0 0 22px;
}
.figure-cap {
  padding: 18px 26px 4px;
  font: 500 13px/1.5 var(--font-mono);
  letter-spacing: .04em;
  color: var(--muted);
}
.figure-cap strong {
  display: block;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0;
  color: var(--text);
  margin-bottom: 4px;
}

.split-figure {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  min-height: 320px;
  background-size: cover;
  background-position: center;
}
.split-figure::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(3,4,10,.15) 0%, rgba(3,4,10,.85) 100%);
  pointer-events: none;
}
.split-figure-inner {
  position: relative;
  z-index: 1;
  padding: 36px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 320px;
  color: var(--text);
}

/* Feature rows used in "Why this approach" patterns. */
.bullets-icon {
  list-style: none;
  padding: 0;
  margin: 24px 0 0;
  display: grid;
  gap: 0;
}
.bullets-icon li {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 14px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
}
.bullets-icon li:last-child { border-bottom: 1px solid var(--line); }
.bullets-icon li::before {
  content: '';
  display: block;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 12px var(--cyan);
  margin-top: 9px;
}
.bullets-icon li.violet::before { background: var(--violet); box-shadow: 0 0 12px var(--violet); }
.bullets-icon li.pink::before   { background: var(--pink);   box-shadow: 0 0 12px var(--pink); }
.bullets-icon li.green::before  { background: var(--green);  box-shadow: 0 0 12px var(--green); }
.bullets-icon li.amber::before  { background: var(--amber);  box-shadow: 0 0 12px var(--amber); }
.bullets-icon strong { color: var(--text); display: block; margin-bottom: 4px; }

/* Pull-quote / callout that reads as an editorial aside. */
.pull-quote {
  margin: 36px 0;
  padding: 28px 32px;
  border-left: 3px solid var(--violet);
  background: var(--panel);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-size: 1.0625rem;
  line-height: 1.55;
  color: var(--muted);
}
.pull-quote cite {
  display: block;
  margin-top: 12px;
  font: 700 12px/1.4 var(--font-mono);
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--cyan);
  font-style: normal;
}

.code-card {
  position: relative;
  background: #0a0e1a;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 26px;
  font-family: var(--font-mono);
  font-size: 0.875rem;
  line-height: 1.65;
  color: var(--ink-soft);
  overflow: hidden;
}
.code-card .lang {
  position: absolute;
  top: 14px; right: 16px;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--ink-faint);
}
.code-card .c-prompt { color: var(--cyan); }
.code-card .c-ok { color: var(--green); }
.code-card .c-warn { color: var(--amber); }
.code-card .c-comment { color: var(--ink-faint); }

/* Pricing / tier table */
.tiers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 32px; }
.tier {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px;
  display: flex; flex-direction: column;
  position: relative;
}
.tier.featured { border-color: rgba(103, 232, 249, .45); box-shadow: 0 0 0 1px rgba(103, 232, 249, .25), var(--shadow); }
.tier .tier-flag {
  position: absolute; top: 18px; right: 18px;
  font: 700 10px/1 var(--font-mono);
  letter-spacing: .08em;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(103, 232, 249, .12);
  color: var(--cyan);
  border: 1px solid rgba(103, 232, 249, .3);
  text-transform: uppercase;
}
.tier h3 { margin-bottom: 6px; }
.tier .tier-price {
  font: 900 2.25rem/1.1 var(--font-sans);
  letter-spacing: -0.03em;
  background: linear-gradient(180deg, #fff, #cbd5e1);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin: 14px 0 6px;
}
.tier .tier-price small { font-size: .9rem; color: var(--muted); -webkit-text-fill-color: var(--muted); }
.tier ul { list-style: none; padding: 0; margin: 22px 0 0; color: var(--muted); font-size: .9375rem; }
.tier ul li { padding: 8px 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: 18px 1fr; gap: 10px; }
.tier ul li::before { content: '\2713'; color: var(--green); font-weight: 700; }
.tier ul li:last-child { border-bottom: 1px solid var(--line); }
.tier .tier-cta { margin-top: auto; padding-top: 28px; }
@media (max-width: 900px) { .tiers { grid-template-columns: 1fr; } }

/* Newsletter cards — sample issues + sign-up form */
.signup-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--panel);
  padding: 32px;
  display: grid;
  gap: 16px;
}
.signup-card::after {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(40vw 28vw at 100% 0%, rgba(103, 232, 249, .12), transparent 60%);
  pointer-events: none;
}
.signup-card > * { position: relative; }
.signup-card form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  margin-top: 12px;
}
.signup-card input[type="email"] {
  width: 100%;
  background: rgba(0, 0, 0, .35);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px 16px;
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 0.9375rem;
  transition: border-color .15s;
}
.signup-card input[type="email"]:focus {
  outline: none;
  border-color: rgba(103, 232, 249, .55);
}

/* ------------------------------------------------------------------
   Email-field component (newsletter sign-ups)
   - shared by stream-card forms, signup-card form, inline-signup form
   - theming lives here so every subscribe box on the site matches
   ------------------------------------------------------------------ */
.email-field {
  position: relative;
  display: flex;
  align-items: stretch;
  gap: 10px;
  width: 100%;
}
.email-field__shell {
  position: relative;
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  min-width: 0;
  background: linear-gradient(180deg, rgba(8, 12, 24, .82), rgba(4, 6, 14, .92));
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0 14px 0 40px;
  transition: border-color .18s, box-shadow .18s, transform .18s, background .18s;
  overflow: hidden;
}
.email-field__shell::before {
  content: '@';
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-55%);
  font: 700 14px/1 var(--font-mono);
  color: var(--ink-faint);
  pointer-events: none;
  transition: color .18s, transform .18s;
}
.email-field__shell::after {
  content: '';
  position: absolute;
  left: 14px; right: 14px;
  bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--cyan), transparent);
  transform: scaleX(0);
  transform-origin: 50% 50%;
  transition: transform .25s ease;
}
.email-field__shell:focus-within {
  border-color: rgba(103, 232, 249, .65);
  box-shadow:
    0 0 0 1px rgba(103, 232, 249, .35),
    0 14px 40px -8px rgba(103, 232, 249, .35),
    0 0 24px -4px rgba(167, 139, 250, .35);
  transform: translateY(-1px);
}
.email-field__shell:focus-within::before {
  color: var(--cyan);
  transform: translateY(-55%) scale(1.1);
}
.email-field__shell:focus-within::after {
  transform: scaleX(1);
}
.email-field input[type="email"] {
  width: 100%;
  min-width: 0;
  background: transparent;
  border: 0;
  outline: none;
  padding: 14px 0;
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 0.9375rem;
  letter-spacing: -.005em;
  caret-color: var(--cyan);
}
.email-field input[type="email"]::placeholder {
  color: var(--ink-faint);
  font-weight: 400;
}
.email-field input[type="email"]:autofill,
.email-field input[type="email"]:-webkit-autofill {
  -webkit-text-fill-color: var(--text);
  -webkit-box-shadow: 0 0 0 1000px rgba(8, 12, 24, .92) inset;
  caret-color: var(--cyan);
  transition: background-color 9999s ease-out;
}
.email-field button[type="submit"] {
  flex: 0 0 auto;
  position: relative;
  border: 0;
  cursor: pointer;
  padding: 0 18px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--cyan) 0%, var(--violet) 100%);
  color: var(--bg);
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 0.9375rem;
  letter-spacing: -0.01em;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  min-height: 48px;
  box-shadow:
    0 10px 24px -8px rgba(103, 232, 249, .55),
    0 4px 8px -4px rgba(167, 139, 250, .5);
  transition: transform .12s, box-shadow .12s, opacity .15s, filter .15s;
}
.email-field button[type="submit"]:hover:not(:disabled) {
  transform: translateY(-1px);
  filter: brightness(1.05);
  box-shadow:
    0 16px 32px -10px rgba(103, 232, 249, .7),
    0 6px 14px -4px rgba(167, 139, 250, .6);
}
.email-field button[type="submit"]:active:not(:disabled) {
  transform: translateY(1px);
}
.email-field button[type="submit"]:disabled { cursor: progress; opacity: 0.95; }
.email-field button[type="submit"] .arrow { transition: transform .15s; }
.email-field button[type="submit"]:hover:not(:disabled) .arrow { transform: translateX(3px); }
/* Variant: stretch the button to full width (used on signup-card and small mobile forms) */
.email-field.is-block { flex-direction: column; }
.email-field.is-block button[type="submit"] {
  width: 100%;
  min-height: 48px;
  justify-content: center;
}
/* States applied via JS: .is-busy, .is-success */
.email-field.is-busy .email-field__shell {
  border-color: rgba(167, 139, 250, .55);
  box-shadow: 0 0 0 1px rgba(167, 139, 250, .35);
}
.email-field.is-success .email-field__shell {
  border-color: rgba(52, 211, 153, .55);
  background: linear-gradient(180deg, rgba(20, 30, 25, .82), rgba(8, 18, 14, .92));
  box-shadow: 0 0 0 1px rgba(52, 211, 153, .35), 0 14px 40px -8px rgba(52, 211, 153, .35);
}
.email-field.is-success .email-field__shell::before {
  content: '✓';
  color: var(--green);
}
.email-field__hint {
  display: none;
  margin-top: 8px;
  font: 500 11px/1.45 var(--font-mono);
  letter-spacing: .04em;
  color: var(--ink-faint);
}
.email-field.has-hint .email-field__hint { display: block; }
.email-field.has-hint .email-field.is-busy ~ .email-field__hint,
.email-field.has-hint.is-busy .email-field__hint { color: var(--violet); }
.email-field.has-hint.is-success .email-field__hint {
  color: var(--green);
  display: block;
}
.email-field__hint kbd {
  font-family: var(--font-mono);
  font-size: 10px;
  border: 1px solid var(--line);
  border-bottom-width: 2px;
  border-radius: 4px;
  padding: 1px 5px;
  margin: 0 2px;
  color: var(--muted);
  background: rgba(255, 255, 255, .04);
}

@media (max-width: 560px) {
  .email-field { flex-direction: column; }
  .email-field button[type="submit"] { width: 100%; justify-content: center; }
}

.signup-card .legal {
  margin-top: 8px;
  font: 500 11px/1.5 var(--font-mono);
  color: var(--ink-faint);
  letter-spacing: .04em;
}
.signup-card .legal a { color: var(--muted); }

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

.issue-card {
  display: block;
  text-decoration: none;
  color: inherit;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 26px;
  transition: transform .15s, border-color .15s, background .15s;
}
.issue-card:hover {
  transform: translateY(-2px);
  border-color: rgba(103, 232, 249, .35);
  background: rgba(13, 18, 32, .82);
  color: inherit;
  text-decoration: none;
}
.issue-card .issue-meta {
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--ink-faint);
  margin-bottom: 14px;
}
.issue-card h3 {
  font-size: 1.125rem;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}
.issue-card:hover h3 { color: var(--cyan); }
.issue-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9375rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.stream-card {
  position: relative;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 30px;
  display: flex;
  flex-direction: column;
  transition: transform .2s, border-color .2s;
}
.stream-card:hover { transform: translateY(-3px); border-color: rgba(103, 232, 249, .35); }
.stream-card .stream-swatch {
  width: 44px; height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  font-family: var(--font-mono);
  font-weight: 800;
  font-size: 18px;
  margin-bottom: 18px;
}
.stream-card.cyan   { border-color: rgba(103, 232, 249, .25); }
.stream-card.cyan   .stream-swatch { background: rgba(103, 232, 249, .08); border-color: rgba(103, 232, 249, .35); color: var(--cyan); }
.stream-card.violet { border-color: rgba(167, 139, 250, .25); }
.stream-card.violet .stream-swatch { background: rgba(167, 139, 250, .08); border-color: rgba(167, 139, 250, .35); color: var(--violet); }
.stream-card.pink   { border-color: rgba(251, 113, 133, .25); }
.stream-card.pink   .stream-swatch { background: rgba(251, 113, 133, .08); border-color: rgba(251, 113, 133, .35); color: var(--pink); }
.stream-card.green  { border-color: rgba(52, 211, 153, .25); }
.stream-card.green  .stream-swatch { background: rgba(52, 211, 153, .08); border-color: rgba(52, 211, 153, .35); color: var(--green); }
.stream-card .stream-rhythm {
  margin-top: 8px;
  font: 700 11px/1.2 var(--font-mono);
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.stream-card .stream-cta { margin-top: auto; padding-top: 22px; }

.inline-signup {
  margin: 48px 0;
  padding: 28px 32px;
  border: 1px solid rgba(103, 232, 249, .25);
  background:
    radial-gradient(36vw 24vw at 100% 0%, rgba(103, 232, 249, .12), transparent 60%),
    radial-gradient(36vw 24vw at 0% 100%, rgba(167, 139, 250, .10), transparent 60%),
    var(--panel);
  border-radius: var(--radius-lg);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: center;
}
.inline-signup .lead { font-family: var(--font-mono); font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--cyan); margin-bottom: 8px; }
.inline-signup p { margin: 0; color: var(--muted); font-size: 0.9375rem; }
.inline-signup form { display: flex; gap: 10px; }
.inline-signup input[type="email"] {
  background: rgba(0, 0, 0, .4);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 11px 14px;
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 0.9375rem;
  min-width: 260px;
}
.inline-signup input[type="email"]:focus {
  outline: none;
  border-color: rgba(103, 232, 249, .55);
}
@media (max-width: 720px) {
  .inline-signup { grid-template-columns: 1fr; }
  .inline-signup input[type="email"] { width: 100%; min-width: 0; }
}

.tag-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }

/* --------------------------------------------------------------------------
   Article / blog
   -------------------------------------------------------------------------- */
.post-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; }
.post-list li { padding: 0; }
.post-card {
  display: block;
  padding: 28px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-decoration: none;
  color: inherit;
  transition: border-color .15s, transform .15s, background .15s;
}
.post-card:hover {
  text-decoration: none;
  border-color: rgba(103, 232, 249, 0.3);
  transform: translateY(-2px);
  background: rgba(13, 18, 32, 0.8);
}
.post-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-faint);
  margin-bottom: 14px;
}
.post-card h3 { color: var(--text); font-size: 1.25rem; margin-bottom: 8px; }
.post-card:hover h3 { color: var(--cyan); }
.post-card p { margin: 0; color: var(--muted); font-size: 0.9375rem; }

/* Article (long-form) — quieter surfaces per brief */
article.read-shell {
  background: var(--panel-solid);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 64px 56px;
  margin: 48px auto;  /* auto on the inline axis centers inside .container-narrow; was 0 = stuck to the left edge */
}
@media (max-width: 640px) {
  article.read-shell { padding: 40px 24px; }
}
article.read-shell h1 { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 20px; }
article.read-shell h2 { font-size: 1.625rem; margin-top: 48px; margin-bottom: 14px; }
article.read-shell h3 { font-size: 1.25rem; margin-top: 32px; margin-bottom: 10px; }
article.read-shell p, article.read-shell li {
  color: var(--ink-soft);
  font-size: 1.0625rem;
  line-height: 1.7;
}
article.read-shell ul, article.read-shell ol { padding-left: 24px; margin-bottom: 20px; }
article.read-shell li { margin-bottom: 8px; }
article.read-shell code {
  background: rgba(255, 255, 255, 0.05);
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.9em;
  border: 1px solid var(--line);
  color: var(--cyan);
}
article.read-shell pre {
  background: #0a0e1a;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 22px;
  overflow-x: auto;
  margin: 24px 0;
}
article.read-shell pre code {
  background: none; border: none; padding: 0; color: var(--ink-soft);
}
article.read-shell blockquote {
  margin: 24px 0;
  padding: 0 0 0 20px;
  border-left: 3px solid var(--violet);
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--muted);
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
footer.site-footer {
  background: rgba(3, 4, 10, 0.7);
  border-top: 1px solid var(--line);
  padding: 64px 0 32px;
  margin-top: 96px;
  position: relative;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 48px;
  margin-bottom: 48px;
}
.footer-grid h5 {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--cyan);
  margin-bottom: 18px;
}
.footer-grid p { color: var(--muted); font-size: 0.9375rem; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: 10px; }
.footer-grid a { color: var(--muted); font-size: 0.9375rem; }
.footer-grid a:hover { color: var(--cyan); text-decoration: none; }
.footer-bottom {
  border-top: 1px solid var(--line);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 12px;
  color: var(--ink-faint);
  font-family: var(--font-mono);
  letter-spacing: 0.04em;
}
@media (max-width: 880px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > div:first-child { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; }
  .footer-grid > div:first-child { grid-column: 1; }
}

/* --------------------------------------------------------------------------
   Skip-link
   -------------------------------------------------------------------------- */
.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  background: var(--cyan);
  color: var(--bg);
  padding: 8px 14px;
  border-radius: 6px;
  font-weight: 700;
  z-index: 100;
}
.skip-link:focus { top: 16px; }

/* --------------------------------------------------------------------------
   Utility
   -------------------------------------------------------------------------- */
.muted { color: var(--muted); }
.dim   { color: var(--ink-faint); }
.center { text-align: center; }
.measure { max-width: 60ch; }
.mt-0 { margin-top: 0; }
.mt-4 { margin-top: 16px; }
.mt-6 { margin-top: 32px; }
.mt-8 { margin-top: 48px; }
.mb-0 { margin-bottom: 0; }

/* --------------------------------------------------------------------------
   Accessibility — reduced motion (verbatim from brief §5)
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  .motion-field,
  .cursor-glow,
  .cursor-ring,
  .orb,
  .scan {
    display: none;
  }
  *, *::before, *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Touch-only fallback (no cursor effects on touch) */
@media (hover: none) {
  .cursor-glow { display: none; }
}

/* --------------------------------------------------------------------------
   Legacy-page compatibility layer
   Keeps the established information architecture while bringing every v1 page
   into the Hive-aligned dark system used on the rebuilt landing page.
   -------------------------------------------------------------------------- */
.container,
.container-wide,
.container-narrow {
  width: 100%;
  margin-inline: auto;
  padding-inline: 28px;
}
.container-wide { max-width: var(--shell-w); }
.container { max-width: 1180px; }
.container-narrow { max-width: 820px; }

.subtle { color: var(--muted); }
.tag {
  display: inline-flex;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(103, 232, 249, .25);
  background: rgba(103, 232, 249, .08);
  color: var(--cyan);
  font: 700 11px/1.4 var(--font-mono);
  letter-spacing: .06em;
  text-transform: uppercase;
}

.feature-grid,
.distro-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-top: 40px;
}
/* Four-card variant: used by the "Starter guides" section on /resources.html */
.feature-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-top: 40px;
}
.feature-card,
.distro-card {
  min-width: 0;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px) saturate(160%);
  transition: transform .2s ease, border-color .2s ease, background .2s ease;
}
.feature-card:hover,
.distro-card:hover {
  transform: translateY(-3px);
  border-color: rgba(103, 232, 249, .32);
  background: rgba(13, 18, 32, .82);
}
.feature-icon,
.distro-logo {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  border: 1px solid rgba(103, 232, 249, .22);
  border-radius: 12px;
  background: rgba(103, 232, 249, .09);
  color: var(--cyan);
  font: 800 18px/1 var(--font-mono);
  object-fit: contain;
}

.cta-block {
  position: relative;
  overflow: hidden;
  margin-top: 56px;
  padding: 56px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(38vw 30vw at 15% 0%, rgba(103, 232, 249, .16), transparent 65%),
    radial-gradient(38vw 30vw at 90% 100%, rgba(167, 139, 250, .14), transparent 65%),
    var(--panel);
  box-shadow: var(--shadow);
}
.cta-block.dark { background-color: var(--panel); }

/* Old pages use the same hero class with a more compact editorial structure. */
body:not(:has(.bg-field)) .hero {
  padding: 104px 0 72px;
  background:
    radial-gradient(50vw 38vw at 12% 0%, rgba(103, 232, 249, .14), transparent 68%),
    radial-gradient(46vw 34vw at 88% 5%, rgba(167, 139, 250, .12), transparent 70%);
  border-bottom: 1px solid var(--line);
}
body:not(:has(.bg-field)) main > section:not(.hero) { padding-block: 80px; }
body:not(:has(.bg-field)) .hero h1 { max-width: 15ch; }
body:not(:has(.bg-field)) .site-footer { margin-top: 64px; }

@media (max-width: 1100px) {
  .feature-grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .feature-grid, .distro-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .feature-grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .container, .container-wide, .container-narrow, .shell, .read { padding-inline: 20px; }
  .feature-grid, .distro-grid, .feature-grid-4 { grid-template-columns: 1fr; }
  .cta-block { padding: 36px 24px; }
  section, body:not(:has(.bg-field)) main > section:not(.hero) { padding-block: 64px; }
  .hero, body:not(:has(.bg-field)) .hero { padding-block: 80px 56px; }
}
/* ====================================================================
   DistroWatch Top-15 ranking — added 16 July 2026
   Compact ordered list with rank pip + name + hand-written one-liner.
   Mobile-friendly: collapses to single column under 700px.
   ==================================================================== */
.dw-ranking {
  margin-top: 24px;
}
.dw-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.dw-item {
  display: grid;
  grid-template-columns: 44px 40px 1fr;  /* rank | icon | body — third track was missing, that's what collapsed body to 44px */
  gap: 14px;
  align-items: start;
  padding: 16px 18px;
  background: rgba(13, 18, 32, 0.62);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  transition: border-color .18s, background .18s, transform .18s;
}
.dw-item:hover {
  border-color: rgba(103, 232, 249, 0.32);
  background: rgba(13, 18, 32, 0.86);
  transform: translateY(-1px);
}
.dw-rank {
  font-family: var(--font-mono, "JetBrains Mono", monospace);
  font-weight: 700;
  font-size: 1.5rem;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--cyan, #67e8f9);
  text-align: center;
  padding-top: 2px;
}
.dw-item:nth-child(2n+2) .dw-rank { color: var(--violet, #a78bfa); }
.dw-item:nth-child(3n+3) .dw-rank { color: var(--pink,   #fb7185); }
.dw-icon {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
}
.dw-icon img {
  width: 28px;
  height: 28px;
  object-fit: contain;
  display: block;
}
.dw-body { min-width: 0; }
.dw-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
  flex-wrap: wrap;
}
.dw-name {
  font-size: 1.0625rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 0;
  line-height: 1.2;
}
.dw-name a {
  color: var(--text, #f8fafc);
  text-decoration: none;
}
.dw-name a:hover {
  color: var(--cyan, #67e8f9);
}
.dw-line {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.55;
  color: var(--muted, #94a3b8);
}
.dw-update-stamp {
  font-family: var(--font-mono, "JetBrains Mono", monospace);
  font-size: 0.75rem;
  color: var(--ink-faint, #64748b);
  letter-spacing: 0.04em;
}
@media (max-width: 820px) {
  .dw-list { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .dw-item { grid-template-columns: 30px 32px 1fr; padding: 14px 14px; gap: 10px; }
  .dw-rank { font-size: 1.1rem; }
  .dw-icon { width: 32px; height: 32px; }
  .dw-icon img { width: 22px; height: 22px; }
}

/* ====================================================================
   Brand-logo icons (added 16 July 2026)
   Hosts the real OS/app icons from /assets/icons/ inside editorial cards.
   The card-icon letter tiles above remain available for sections that
   don't have logos yet.
   ==================================================================== */
.brand-icon-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}
.brand-icon {
  width: 56px; height: 56px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
}
.brand-icon img {
  width: 40px; height: 40px;
  object-fit: contain;
  display: block;
}
.brand-icon-label {
  display: flex; flex-direction: column; gap: 2px;
  font-family: var(--font-mono);
}
.brand-icon-label .l-kicker {
  font-size: 0.6875rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.brand-icon-label .l-name {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  font-family: var(--font-sans);
  letter-spacing: -0.01em;
}

.app-icon-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 14px;
  margin-top: 28px;
}
.app-icon-card {
  background: rgba(13, 18, 32, 0.62);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 16px 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
  transition: border-color .18s, transform .18s;
}
.app-icon-card:hover {
  border-color: rgba(103, 232, 249, 0.32);
  transform: translateY(-1px);
}
.app-icon-card img {
  width: 48px; height: 48px;
  object-fit: contain;
}
.app-icon-card .name {
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--text);
}
.app-icon-card .desc {
  font-size: 0.8125rem;
  color: var(--muted);
  line-height: 1.4;
  margin: 0;
}
.app-icon-card a {
  margin-top: auto;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--cyan);
  text-decoration: none;
  border-bottom: 1px dashed rgba(103, 232, 249, 0.4);
  padding-bottom: 1px;
}
.app-icon-card a:hover { border-bottom-style: solid; }


/* ---- Big distro logo on editorial cards (added 16 July 2026) ---- */
.card-logo {
  display: block;
  width: 64px;
  height: 64px;
  object-fit: contain;
  margin-bottom: 16px;
}
