/* FrogTalk — /home */
:root {
    --bg: #0d1117;
    --bg2: #161b22;
    --bg3: #21262d;
    --border: #30363d;
    --green: #4ade80;
    --green-dim: #22c55e;
    --green-dark: #16a34a;
    --text: #e6edf3;
    --text-muted: #7d8590;
    --accent: #4ade80;
    --danger: #f85149;
    --blue: #58a6ff;
  }
  * { box-sizing: border-box; margin: 0; padding: 0; }
  html { scroll-behavior: smooth; scroll-padding-top: 72px; }
  body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
  }

  /* ── NAV ── (scoped to .ft-site-nav so footer's <nav class="ft-footer-links">
     and any other <nav> in the page don't inherit position: fixed; top: 0) */
  .ft-site-nav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
    display: flex; align-items: center; justify-content: space-between;
    padding: 0 2rem;
    height: 60px;
    background: rgba(13,17,23,0.92);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
  }
  .ft-site-nav .nav-logo {
    display: flex; align-items: center; gap: .6rem;
    font-size: 1.25rem; font-weight: 700; color: var(--green);
    text-decoration: none;
  }
  .ft-site-nav .nav-logo .frog { font-size: 1.5rem; }
  .ft-site-nav .nav-links { display: flex; align-items: center; gap: 1.2rem; }
  .ft-site-nav .nav-links a {
    color: var(--text); text-decoration: none; font-size: .9rem;
    font-weight: 500; transition: color .2s;
  }
  .ft-site-nav .nav-links a:hover { color: var(--green); }
  .btn {
    display: inline-flex; align-items: center; gap: .4rem;
    padding: .55rem 1.25rem;
    border-radius: 8px; font-size: .9rem; font-weight: 600;
    cursor: pointer; text-decoration: none; border: none;
    transition: all .2s;
  }
  .btn-ghost {
    background: transparent; color: var(--text);
    border: 1px solid var(--border);
  }
  .btn-ghost:hover { border-color: var(--green); color: var(--green); }
  .btn-primary {
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    color: #fff;
    font-weight: 700;
    text-shadow: 0 1px 2px rgba(0,0,0,.2);
    box-shadow: 0 4px 14px rgba(34,197,94,.35);
  }
  .btn-primary:hover { 
    background: linear-gradient(135deg, #16a34a 0%, #15803d 100%); 
    transform: translateY(-2px); 
    box-shadow: 0 6px 20px rgba(34,197,94,.45);
  }
  .btn-lg { padding: .75rem 2rem; font-size: 1rem; border-radius: 10px; }

  /* ── HERO ── */
  .hero {
    min-height: 100vh;
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    text-align: center;
    padding: 6rem 1.5rem 4rem;
    position: relative;
    overflow: hidden;
  }
  .hero::before {
    content: '';
    position: absolute; inset: 0;
    background:
      radial-gradient(ellipse 900px 600px at 50% 30%, rgba(74,222,128,.12) 0%, transparent 70%),
      radial-gradient(ellipse 500px 400px at 15% 75%, rgba(88,166,255,.07) 0%, transparent 60%),
      radial-gradient(ellipse 450px 350px at 85% 20%, rgba(74,222,128,.06) 0%, transparent 60%);
    pointer-events: none;
    animation: heroGlow 18s ease-in-out infinite alternate;
  }
  .hero::after {
    content: '';
    position: absolute; inset: 0;
    pointer-events: none;
    background-image:
      radial-gradient(circle at 20% 25%, rgba(74,222,128,.5) 0, rgba(74,222,128,.5) 1px, transparent 2px),
      radial-gradient(circle at 70% 60%, rgba(74,222,128,.4) 0, rgba(74,222,128,.4) 1px, transparent 2px),
      radial-gradient(circle at 45% 80%, rgba(88,166,255,.4) 0, rgba(88,166,255,.4) 1px, transparent 2px),
      radial-gradient(circle at 85% 35%, rgba(74,222,128,.3) 0, rgba(74,222,128,.3) 1px, transparent 2px),
      radial-gradient(circle at 30% 60%, rgba(74,222,128,.3) 0, rgba(74,222,128,.3) 1px, transparent 2px);
    background-size: 100% 100%;
    opacity: .6;
    animation: starsDrift 40s linear infinite;
  }
  @keyframes heroGlow {
    0%   { transform: scale(1)    translate(0,0);      opacity: .85; }
    50%  { transform: scale(1.05) translate(-10px,5px); opacity: 1;   }
    100% { transform: scale(1.02) translate(8px,-6px);  opacity: .9;  }
  }
  @keyframes starsDrift {
    0%   { transform: translateY(0);     }
    100% { transform: translateY(-40px); }
  }
  /* Floating ambient orbs behind the hero */
  .hero-orbs {
    position: absolute; inset: 0; pointer-events: none; overflow: hidden; z-index: 0;
  }
  .hero-orb {
    position: absolute; border-radius: 50%; filter: blur(60px); opacity: .35;
  }
  .hero-orb.o1 { width: 320px; height: 320px; background: #4ade80; top: 10%; left: -80px;  animation: orb1 22s ease-in-out infinite alternate; }
  .hero-orb.o2 { width: 280px; height: 280px; background: #58a6ff; bottom: 5%; right: -60px; animation: orb2 26s ease-in-out infinite alternate; opacity: .22; }
  .hero-orb.o3 { width: 200px; height: 200px; background: #22c55e; top: 55%;  left: 55%;     animation: orb3 30s ease-in-out infinite alternate; opacity: .18; }
  @keyframes orb1 { to { transform: translate(120px, 60px)  scale(1.15); } }
  @keyframes orb2 { to { transform: translate(-80px, -40px) scale(1.1);  } }
  @keyframes orb3 { to { transform: translate(-120px, 80px) scale(1.2);  } }
  @media (prefers-reduced-motion: reduce) {
    .hero::before, .hero::after, .hero-orb { animation: none !important; }
  }
  .hero > * { position: relative; z-index: 1; }
  .hero-badges {
    display: flex; flex-wrap: wrap; gap: .5rem; justify-content: center;
    margin-bottom: 1.5rem;
  }
  .hero-badge {
    display: inline-flex; align-items: center; gap: .5rem;
    background: rgba(74,222,128,.1); border: 1px solid rgba(74,222,128,.3);
    color: var(--green); padding: .3rem .9rem; border-radius: 999px;
    font-size: .8rem; font-weight: 600; letter-spacing: .05em;
    margin-bottom: 0;
  }
  .hero-badge--prealpha {
    background: rgba(251, 191, 36, .12);
    border-color: rgba(251, 191, 36, .45);
    color: #fbbf24;
  }
  .hero h1 {
    font-size: clamp(2.5rem, 7vw, 5rem);
    font-weight: 800; line-height: 1.1;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #e6edf3 30%, var(--green) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
  }
  .hero p {
    font-size: clamp(1rem, 2.5vw, 1.25rem);
    color: var(--text-muted); max-width: 600px; margin: 0 auto 2.5rem;
  }
  .hero-cta { display: flex; gap: 1rem; flex-wrap: wrap; justify-content: center; }

  /* ── STATS ── */
  .stats {
    display: flex; gap: 3rem; justify-content: center; flex-wrap: wrap;
    padding: 2rem 1.5rem;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    background: var(--bg2);
  }
  .stat { text-align: center; }
  .stat-num { font-size: 1.75rem; font-weight: 700; color: var(--green); }
  .stat-label { font-size: .8rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: .08em; }

  /* ── FEATURES ── */
  .section { padding: 5rem 1.5rem; }
  .section-title {
    text-align: center;
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 700; margin-bottom: .75rem;
  }
  .section-sub {
    text-align: center; color: var(--text-muted);
    font-size: 1rem; max-width: 500px; margin: 0 auto 3.5rem;
  }
  .features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    max-width: 1100px; margin: 0 auto;
  }
  .feature-card {
    background: var(--bg2);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.75rem;
    transition: border-color .2s, transform .2s;
  }
  .feature-card:hover {
    border-color: rgba(74,222,128,.4);
    transform: translateY(-3px);
  }
  .feature-icon {
    font-size: 2rem; margin-bottom: 1rem;
  }
  .feature-card h3 { font-size: 1.1rem; font-weight: 600; margin-bottom: .5rem; }
  .feature-card p { color: var(--text-muted); font-size: .9rem; line-height: 1.6; }

  /* ── Features: compact, even differentiator grid ───────────────────
     Four equal tiles in a tidy 2×2 (no full-width hero, so no lonely tile
     / empty gap), a slim comparison card, then everyday features as one
     wrapping chip cloud. Deliberately narrow + low-padding so the section
     stays small and reads the same on desktop and mobile. */
  .bento {
    display: grid; grid-template-columns: repeat(2, 1fr);
    gap: .85rem; max-width: 860px; margin: 0 auto 1.4rem;
  }
  .bento-tile {
    position: relative; background: var(--bg2); min-width: 0;
    border: 1px solid var(--border); border-radius: 14px;
    padding: 1.1rem 1.2rem; overflow: hidden;
    transition: border-color .2s, transform .2s, box-shadow .2s;
  }
  .bento-tile:hover {
    border-color: rgba(74,222,128,.45); transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(0,0,0,.32);
  }
  /* Federation tile keeps an accent wash but the SAME size as the rest. */
  .bento-hero {
    background: radial-gradient(130% 170% at 0% 0%, rgba(74,222,128,.15), transparent 58%), var(--bg2);
    border-color: rgba(74,222,128,.32);
  }
  .bento-tor {
    background: radial-gradient(130% 170% at 100% 0%, rgba(140,120,220,.15), transparent 58%), var(--bg2);
  }
  .bento-kicker {
    display: inline-block; font-size: .64rem; font-weight: 700;
    letter-spacing: .07em; text-transform: uppercase; color: var(--green);
    background: rgba(74,222,128,.1); border: 1px solid rgba(74,222,128,.25);
    padding: .2rem .5rem; border-radius: 999px; margin-bottom: .55rem;
  }
  .bento-ico { font-size: 1.5rem; display: block; margin-bottom: .45rem; line-height: 1; }
  .bento-tile h3 { font-size: 1.02rem; font-weight: 700; margin-bottom: .4rem; line-height: 1.25; }
  .bento-tile p { color: var(--text-muted); font-size: .85rem; line-height: 1.5; }
  .bento-tile code {
    background: #06100a; border: 1px solid #16291d; border-radius: 6px;
    padding: 1px 5px; color: var(--green); font-size: .82em;
  }
  .bento-cmd {
    display: inline-block; margin-top: .7rem; max-width: 100%; overflow-x: auto;
    background: #06100a; border: 1px solid #16291d; border-radius: 7px;
    padding: .35rem .6rem; color: var(--green); font-size: .8rem;
    white-space: nowrap; font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  }
  .vs-card {
    display: grid; grid-template-columns: 1fr 1fr; gap: 0;
    max-width: 860px; margin: 0 auto 1.8rem; border-radius: 14px;
    overflow: hidden; border: 1px solid var(--border);
  }
  .vs-col { padding: 1.1rem 1.2rem; }
  .vs-them { background: rgba(255,255,255,.02); }
  .vs-us {
    background: linear-gradient(180deg, rgba(74,222,128,.1), rgba(74,222,128,.04));
    border-left: 1px solid rgba(74,222,128,.25);
  }
  .vs-h { font-weight: 700; font-size: .88rem; margin-bottom: .65rem; }
  .vs-them .vs-h { color: var(--text-muted); }
  .vs-us .vs-h { color: var(--green); }
  .vs-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .45rem; }
  .vs-col li { font-size: .84rem; line-height: 1.4; padding-left: 1.3rem; position: relative; color: var(--text-muted); }
  .vs-them li::before { content: "✕"; position: absolute; left: 0; color: #e06b6b; font-weight: 700; }
  .vs-us li { color: #d6e6da; }
  .vs-us li::before { content: "✓"; position: absolute; left: 0; color: var(--green); font-weight: 700; }
  .cap-head { text-align: center; color: var(--text-muted); font-size: .9rem; margin: 0 auto 1rem; }
  .cap-cloud {
    display: flex; flex-wrap: wrap; gap: .5rem; justify-content: center;
    max-width: 860px; margin: 0 auto;
  }
  .cap-chip {
    font-size: .8rem; color: var(--text-muted); background: var(--bg2);
    border: 1px solid var(--border); border-radius: 999px; padding: .38rem .8rem;
    transition: border-color .15s, color .15s;
  }
  .cap-chip:hover { border-color: rgba(74,222,128,.45); color: var(--text); }
  @media (max-width: 600px) {
    .bento { grid-template-columns: 1fr; }
    .vs-card { grid-template-columns: 1fr; }
    .vs-us { border-left: 0; border-top: 1px solid rgba(74,222,128,.25); }
  }
  @media (prefers-reduced-motion: reduce) { .bento-tile:hover { transform: none; } }

  .federation-spotlight {
    max-width: 1100px;
    margin: 0 auto;
    background:
      radial-gradient(900px 380px at 10% 0%, rgba(74,222,128,.12), transparent 60%),
      linear-gradient(160deg, #121923 0%, #0f141b 100%);
    border: 1px solid #2b3947;
    border-radius: 16px;
    padding: 1.25rem;
    display: grid;
    grid-template-columns: 1.35fr 1fr;
    gap: 1rem;
    box-shadow: 0 12px 34px rgba(0,0,0,.28);
  }
  .fed-title { font-size: 1.2rem; font-weight: 700; margin-bottom: .45rem; }
  .fed-sub { color: var(--text-muted); font-size: .95rem; margin-bottom: .9rem; }
  .fed-badges { display: flex; gap: .45rem; flex-wrap: wrap; margin-bottom: .8rem; }
  .fed-badge {
    font-size: .72rem; font-weight: 700; letter-spacing: .03em;
    padding: .28rem .62rem; border-radius: 999px;
    border: 1px solid rgba(148,163,184,.35);
    color: #cbd5e1; background: rgba(15,23,42,.5);
  }
  .fed-badge.ok { border-color: rgba(74,222,128,.45); color: #86efac; background: rgba(22,163,74,.13); }
  .fed-badge.warn { border-color: rgba(251,191,36,.45); color: #fde68a; background: rgba(245,158,11,.14); }
  .fed-actions { display: flex; gap: .55rem; flex-wrap: wrap; }
  .fed-mini-grid { display: grid; grid-template-columns: 1fr; gap: .6rem; }
  .fed-mini {
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: .75rem .8rem;
    background: rgba(2,6,23,.45);
  }
  .fed-mini h4 { font-size: .92rem; margin-bottom: .2rem; }
  .fed-mini p { color: var(--text-muted); font-size: .82rem; }

  /* ── OPEN SOURCE SECTION ── */
  .opensource-section {
    background:
      radial-gradient(700px 320px at 90% 0%, rgba(74,222,128,.08), transparent 60%),
      var(--bg);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
  }
  .opensource-grid {
    max-width: 1100px; margin: 0 auto;
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    gap: 2.5rem;
    align-items: center;
  }
  .opensource-grid h2#open-source {
    scroll-margin-top: 5.5rem;
  }
  .opensource-grid h2 {
    font-size: clamp(1.6rem, 3vw, 2.25rem);
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.15;
  }
  .opensource-grid h2 .accent {
    background: linear-gradient(135deg, #e6edf3 30%, var(--green) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
  }
  .opensource-grid > div > p { color: var(--text-muted); margin-bottom: 1.25rem; }
  .opensource-meta {
    display: flex; gap: .55rem; flex-wrap: wrap; margin-bottom: 1.25rem;
  }
  .opensource-meta .pill {
    display: inline-flex; align-items: center; gap: .35rem;
    font-size: .78rem; font-weight: 600; letter-spacing: .02em;
    padding: .32rem .72rem; border-radius: 999px;
    border: 1px solid var(--border);
    color: #cbd5e1; background: rgba(15,23,42,.5);
  }
  .opensource-meta .pill.green {
    border-color: rgba(74,222,128,.45);
    color: #86efac; background: rgba(22,163,74,.13);
  }
  .opensource-actions { display: flex; gap: .65rem; flex-wrap: wrap; }
  .opensource-actions .btn-github {
    background: #161b22; color: #fff;
    border: 1px solid #30363d;
  }
  .opensource-actions .btn-github:hover {
    border-color: var(--green); color: var(--green);
    transform: translateY(-2px);
  }
  .opensource-cards {
    display: grid; grid-template-columns: 1fr; gap: .75rem;
  }
  .opensource-card {
    display: block;
    background: var(--bg2);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1rem 1.1rem;
    text-decoration: none; color: inherit;
    transition: border-color .2s, transform .2s, box-shadow .2s;
  }
  .opensource-card:hover {
    border-color: rgba(74,222,128,.45);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0,0,0,.25);
  }
  .opensource-card .row {
    display: flex; align-items: center; justify-content: space-between; gap: .75rem;
    margin-bottom: .25rem;
  }
  .opensource-card h4 {
    font-size: 1rem; font-weight: 600; color: var(--text);
    display: flex; align-items: center; gap: .5rem;
  }
  .opensource-card .arrow {
    color: var(--text-muted); font-size: 1rem; transition: color .2s, transform .2s;
  }
  .opensource-card:hover .arrow { color: var(--green); transform: translateX(3px); }
  .opensource-card p { color: var(--text-muted); font-size: .85rem; line-height: 1.55; }
  @media (max-width: 800px) {
    .opensource-grid { grid-template-columns: 1fr; gap: 1.75rem; }
  }

  /* ── PRIVACY SECTION ── */
  .privacy-section {
    background: var(--bg2);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
  }
  .privacy-inner {
    max-width: 1000px; margin: 0 auto;
    display: grid; grid-template-columns: 1fr 1fr; gap: 4rem;
    align-items: center;
  }
  .privacy-inner h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); font-weight: 700; margin-bottom: 1rem; }
  .privacy-inner p { color: var(--text-muted); margin-bottom: 1.5rem; }
  .privacy-checks { list-style: none; display: flex; flex-direction: column; gap: .75rem; }
  .privacy-checks li {
    display: flex; align-items: flex-start; gap: .75rem;
    color: var(--text-muted); font-size: .95rem;
  }
  .privacy-checks li span.check { color: var(--green); font-size: 1.1rem; flex-shrink: 0; }
  .code-block {
    background: var(--bg3);
    border: 1px solid var(--border);
    border-radius: 10px; padding: 1.5rem;
    font-family: 'Courier New', monospace;
    font-size: .8rem; line-height: 1.8;
    color: var(--text-muted);
    overflow: auto;
  }
  .code-block .kw { color: var(--green); }
  .code-block .str { color: #79c0ff; }
  .code-block .cm { color: #484f58; }

  /* ── HOW IT WORKS ── */
  .steps {
    max-width: 800px; margin: 0 auto;
    display: flex; flex-direction: column; gap: 1.5rem;
  }
  .step {
    display: flex; gap: 1.5rem; align-items: flex-start;
    background: var(--bg2); border: 1px solid var(--border);
    border-radius: 12px; padding: 1.5rem;
    transition: border-color .2s;
  }
  .step:hover { border-color: rgba(74,222,128,.4); }
  .step-num {
    width: 40px; height: 40px; border-radius: 50%;
    background: rgba(74,222,128,.15); border: 1px solid rgba(74,222,128,.4);
    color: var(--green); font-weight: 700;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0; font-size: 1rem;
  }
  .step-content h3 { font-weight: 600; margin-bottom: .3rem; }
  .step-content p { color: var(--text-muted); font-size: .9rem; }

  /* ── CTA BANNER ── */
  .cta-banner {
    text-align: center;
    padding: 5rem 1.5rem;
    background: linear-gradient(135deg, rgba(74,222,128,.06) 0%, transparent 50%);
    border-top: 1px solid var(--border);
  }
  .cta-banner h2 { font-size: clamp(1.75rem, 4vw, 2.5rem); font-weight: 700; margin-bottom: 1rem; }
  .cta-banner p { color: var(--text-muted); margin-bottom: 2rem; }

  /* ── DEMO PREVIEW ── */
  .demo-preview {
    max-width: 960px; margin: 0 auto 0;
    background: linear-gradient(180deg,#102018 0%,#0d1a14 100%);
    border: 1px solid #1f3a30;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,.5), 0 0 0 1px rgba(74,222,128,.04) inset;
  }
  .demo-topbar {
    background: linear-gradient(180deg,#12231e 0%,#101f1b 55%,#0d1a16 100%);
    padding: .75rem 1rem;
    display: flex; align-items: center; gap: .5rem;
    border-bottom: 1px solid #1f3a30;
  }
  .demo-dot { width: 12px; height: 12px; border-radius: 50%; }
  .demo-dot.r { background: #f85149; }
  .demo-dot.y { background: #d29922; }
  .demo-dot.g { background: #4ade80; }
  .demo-title { margin-left: .5rem; font-size: .8rem; color: var(--text-muted); }
  .demo-body { display: flex; height: 360px; }
  /* Server strip (mirrors real app) */
  .demo-strip {
    width: 60px; flex-shrink: 0;
    background: #0a1410;
    border-right: 1px solid #1f3a30;
    display: flex; flex-direction: column; align-items: center;
    padding: .75rem 0; gap: .4rem;
  }
  .demo-strip .ds-icon {
    width: 40px; height: 40px; border-radius: 50%;
    background: #1e3a1e;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.1rem; cursor: pointer; transition: all .2s;
    position: relative;
  }
  .demo-strip .ds-icon.active { border-radius: 14px; background: #4caf50; }
  .demo-strip .ds-icon.social { background: linear-gradient(135deg,#0d1f0d,#1e3a1e); color: #4ade80; }
  .demo-strip .ds-divider { width: 30px; height: 2px; background: #2a2a2a; border-radius: 2px; margin: .2rem 0; }
  .demo-sidebar {
    width: 190px; flex-shrink: 0;
    background: rgba(10,20,15,.55);
    border-right: 1px solid #1f3a30;
    padding: .75rem .5rem;
    display: flex; flex-direction: column; gap: .15rem;
  }
  .demo-sidebar .sec-label {
    font-size: .65rem; color: var(--text-muted);
    text-transform: uppercase; letter-spacing: .1em;
    padding: .5rem .5rem .25rem;
  }
  .demo-ch {
    padding: .3rem .55rem;
    border-radius: 6px;
    font-size: .78rem; color: var(--text-muted);
    display: flex; align-items: center; gap: .4rem;
    cursor: pointer;
  }
  .demo-ch.active { background: rgba(74,222,128,.12); color: var(--green); }
  .demo-ch:not(.active):hover { background: var(--bg3); }
  .demo-messages {
    flex: 1; padding: 1rem; overflow: hidden;
    display: flex; flex-direction: column; justify-content: flex-end; gap: .75rem;
  }
  .demo-msg { display: flex; gap: .75rem; align-items: flex-start; }
  .demo-av {
    width: 32px; height: 32px; border-radius: 50%;
    background: linear-gradient(135deg,#0d1f15,#1e3a2a);
    border: 1px solid #1f3a30;
    display: flex; align-items: center; justify-content: center;
    font-size: .9rem; flex-shrink: 0;
  }
  .demo-msg-body {}
  .demo-msg-name { font-size: .75rem; color: var(--green); font-weight: 600; margin-bottom: .15rem; }
  .demo-msg-text {
    background: linear-gradient(180deg,#102018 0%,#0d1a14 100%);
    border: 1px solid #1f3a30;
    border-radius: 0 10px 10px 10px; padding: .55rem .8rem;
    font-size: .8rem; color: var(--text); max-width: 380px;
    box-shadow: 0 1px 0 rgba(74,222,128,.04) inset;
  }
  .demo-msg-text.enc { color: var(--text-muted); font-style: italic; font-size: .75rem; }
  .demo-reactions { display: flex; gap: .3rem; margin-top: .3rem; }
  .demo-reaction {
    background: rgba(13,26,22,.6); border: 1px solid #1f3a30;
    border-radius: 10px; padding: 1px 6px;
    font-size: .7rem; color: var(--text-muted);
  }
  .demo-reaction.mine { border-color: rgba(74,222,128,.4); background: rgba(74,222,128,.08); color: var(--green); }
  .demo-music-pill {
    display: inline-flex; align-items: center; gap: .4rem;
    background: linear-gradient(135deg,rgba(74,222,128,.14),rgba(88,166,255,.1));
    border: 1px solid rgba(74,222,128,.3);
    border-radius: 10px; padding: .35rem .6rem;
    font-size: .72rem; color: var(--text); max-width: 300px;
  }
  .demo-input-row {
    padding: .75rem 1rem;
    border-top: 1px solid #1f3a30;
    background: linear-gradient(180deg,#12231e 0%,#101f1b 55%,#0d1a16 100%);
    display: flex; gap: .5rem; align-items: center;
  }
  .demo-input {
    flex: 1; background: rgba(13,26,22,.7); border: 1px solid #1f3a30;
    border-radius: 10px; padding: .55rem .8rem; color: var(--text-muted);
    font-size: .8rem; outline: none;
  }
  .demo-send-btn {
    width: 34px; height: 34px; border-radius: 10px;
    background: linear-gradient(135deg,#16a34a 0%,#15803d 100%);
    border: 1px solid rgba(74,222,128,.5);
    color: #fff; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 2px 12px rgba(22,163,74,.35);
  }

  /* Mobile-first app preview (shown only on small screens) */
  .demo-mobile {
    display: none;
    height: 100%;
    background: linear-gradient(180deg,#0d1a14 0%,#0a1410 100%);
    color: #e0e0e0;
    flex-direction: column;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    overflow: hidden;
  }
  .dmob-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 10px 12px;
    background: linear-gradient(180deg,#12231e 0%,#101f1b 55%,#0d1a16 100%);
    border-bottom: 1px solid #1f3a30;
    flex-shrink: 0;
  }
  .dmob-header-left { display: flex; align-items: center; gap: 8px; }
  .dmob-ch-av {
    width: 30px; height: 30px; border-radius: 50%;
    background: linear-gradient(135deg,#0d1f15,#1e3a2a);
    border: 1px solid #1f3a30;
    display: flex; align-items: center;
    justify-content: center; font-size: 14px; flex-shrink: 0;
  }
  .dmob-ch-name { font-size: 13px; font-weight: 700; color: #e0e0e0; line-height: 1.2; }
  .dmob-ch-topic { font-size: 11px; color: #666; line-height: 1.2; }
  .dmob-header-icons { display: flex; align-items: center; gap: 12px; color: #888; font-size: 16px; }
  .dmob-msgs {
    flex: 1; overflow: hidden; display: flex; flex-direction: column;
    justify-content: flex-end; padding: 6px 0;
  }
  .dmob-msg { display: flex; align-items: flex-start; gap: 8px; padding: 3px 10px; margin: 0; text-align: left; }
  .dmob-av {
    width: 32px; height: 32px; border-radius: 50%;
    background: linear-gradient(135deg,#0d1f15,#1e3a2a);
    border: 1px solid #1f3a30;
    flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    font-size: 16px; margin-top: 2px;
  }
  .dmob-msg-body { flex: 1; min-width: 0; }
  .dmob-msg-meta {
    display: flex; align-items: center; gap: 5px;
    flex-wrap: wrap; margin-bottom: 2px;
  }
  .dmob-nick { font-size: 13px; font-weight: 600; color: #4caf50; }
  .dmob-time { font-size: 11px; color: #555; }
  .dmob-tick { font-size: 10px; color: #555; }
  .dmob-bridge-pill {
    display: inline-flex; align-items: center; gap: 3px;
    font-size: 9px; font-weight: 700; letter-spacing: .4px;
    text-transform: uppercase; padding: 1px 6px 1px 4px;
    border-radius: 999px; line-height: 1.5;
  }
  .dmob-bridge-pill.tg { color: #4fc3e8; background: rgba(79,195,232,.12); border: 1px solid rgba(79,195,232,.38); }
  .dmob-bridge-pill.dc { color: #8aa5f5; background: rgba(138,165,245,.12); border: 1px solid rgba(138,165,245,.38); }
  .dmob-msg-text { font-size: 13px; color: #d0d0d0; line-height: 1.45; margin-bottom: 1px; }
  .dmob-reply-quote {
    border-left: 3px solid #4caf50;
    background: rgba(74,222,128,.06);
    padding: 3px 8px; border-radius: 0 4px 4px 0;
    font-size: 11px; color: #888; margin-bottom: 3px;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  }
  .dmob-reactions { display: flex; gap: 5px; margin-top: 3px; }
  .dmob-reaction {
    font-size: 11px; background: rgba(13,26,22,.7);
    border: 1px solid #1f3a30; border-radius: 8px;
    padding: 1px 7px; color: #aaa;
  }
  .dmob-reaction.mine { border-color: rgba(74,222,128,.4); background: rgba(74,222,128,.08); color: #4caf50; }
  .dmob-input-bar {
    background: linear-gradient(180deg,#12231e 0%,#101f1b 55%,#0d1a16 100%);
    border-top: 1px solid #1f3a30;
    flex-shrink: 0; padding: 6px 10px 8px;
  }
  .dmob-toolbar {
    display: flex; align-items: center; gap: 14px;
    padding-bottom: 6px; color: #666; font-size: 18px;
  }
  .dmob-gif-btn {
    background: rgba(13,26,22,.7); border: 1px solid #1f3a30; border-radius: 4px;
    padding: 1px 5px; font-size: 11px; font-weight: 700; color: #9ad9a8; line-height: 1.4;
  }
  .dmob-input-row { display: flex; align-items: center; gap: 8px; }
  .dmob-input-field {
    flex: 1; background: rgba(13,26,22,.7); border: 1px solid #1f3a30;
    border-radius: 10px; padding: 8px 12px;
    font-size: 13px; color: #6a8a78;
  }
  .dmob-send-btn {
    width: 36px; height: 36px; border-radius: 12px;
    background: linear-gradient(135deg,#16a34a 0%,#15803d 100%);
    border: 1px solid rgba(74,222,128,.5);
    flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-size: 16px;
    box-shadow: 0 2px 12px rgba(22,163,74,.35);
  }

  .demo-wrap { width: 100%; max-width: 960px; margin-top: 4rem; }
  .dmob-icon-frog { font-size: 18px; }
  .dmob-icon-menu { color: #888; font-size: 18px; }
  .dmob-icon-dots { font-size: 14px; letter-spacing: 2px; }
  .dmob-day-sep {
    text-align: center; font-size: 11px; color: #555;
    padding: 6px 0 4px; flex-shrink: 0;
  }
  .dmob-av--tide { background: #1a2e3a; font-size: 16px; }
  .dmob-av--vault { background: #2a1a2e; font-size: 12px; font-weight: 700; color: #c084fc; }
  .dmob-av--tg { background: #1a253a; font-size: 12px; font-weight: 700; color: #4fc3e8; }
  .dmob-av--reed { background: #1e1a2e; font-size: 12px; font-weight: 700; color: #a78bfa; }
  .dmob-av--mossy { background: #1a2e1a; }
  .dmob-nick--tide { color: #38bdf8; }
  .dmob-nick--vault { color: #c084fc; }
  .dmob-nick--reed { color: #a78bfa; }
  .dmob-quote-ref { color: #4fc3e8; }
  .dmob-bridge-pill svg { flex-shrink: 0; }
  .demo-ch-badge {
    margin-left: auto; background: #4ade80; color: #000;
    font-size: 0.6rem; padding: 1px 5px; border-radius: 8px;
  }
  .sec-label--voice {
    margin-top: auto; border-top: 1px solid var(--border); padding-top: 0.5rem;
  }
  .demo-main-col {
    flex: 1; display: flex; flex-direction: column; min-width: 0;
  }
  .demo-role-hint { color: #888; font-weight: 400; font-size: 0.65rem; }
  .demo-highlight { color: #4ade80; }
  .demo-muted { color: #888; }
  .demo-now-playing { font-weight: 600; color: #4ade80; }
  .demo-av--dc {
    background: rgba(88, 101, 242, 0.2);
    border-color: rgba(88, 101, 242, 0.5);
    color: #a5b4fc; font-size: 0.85rem;
  }
  .demo-av--tg {
    background: rgba(38, 166, 239, 0.2);
    border-color: rgba(38, 166, 239, 0.5);
    color: #7dd3fc; font-size: 0.85rem;
  }
  .demo-bridge-badge {
    display: inline-flex; align-items: center; gap: 3px;
    font-size: 9px; font-weight: 700; letter-spacing: 0.4px;
    text-transform: uppercase; padding: 1px 6px 1px 4px;
    border-radius: 999px; vertical-align: 1px;
  }
  .demo-bridge-badge.dc {
    color: #8aa5f5;
    background: rgba(138, 165, 245, 0.12);
    border: 1px solid rgba(138, 165, 245, 0.38);
  }
  .demo-bridge-badge.tg {
    color: #4fc3e8;
    background: rgba(79, 195, 232, 0.12);
    border: 1px solid rgba(79, 195, 232, 0.38);
  }
  .demo-toolbar-icon { color: var(--text-muted); font-size: 1rem; }
  .section-sub--tight { margin-bottom: 2rem; }
  .text-accent-green { color: var(--green); }
  .cta-frog { font-size: 3rem; margin-bottom: 1rem; }

  @media (max-width: 900px) {
    .demo-preview {
      border-radius: 18px;
      max-width: 360px;
      margin: 0 auto;
      box-shadow: 0 16px 40px rgba(0,0,0,.45);
    }
    .demo-topbar { display: none; }
    .demo-body {
      height: 560px;
      display: block;
    }
    .demo-sidebar, .demo-strip { display: none; }
    .demo-main-col { display: none !important; }
    .demo-mobile { display: flex; }
  }

  @media (max-width: 640px) {
    .privacy-inner { grid-template-columns: 1fr; gap: 2rem; }
    .federation-spotlight { grid-template-columns: 1fr; padding: 1rem; }
  }

  /* ── MOBILE NAV ── (all selectors scoped to .ft-site-nav) */
  @media (max-width: 768px) {
    .ft-site-nav { padding: 0 .75rem; gap: .4rem; }
    .ft-site-nav .nav-logo { font-size: 1.05rem; gap: .35rem; flex-shrink: 0; }
    .ft-site-nav .nav-logo .frog { font-size: 1.25rem; }
    .ft-site-nav .nav-links a:not(.btn):not(.nav-mobile-keep) { display: none; }
    .ft-site-nav .nav-links {
      gap: .3rem;
      flex-wrap: nowrap;
      min-width: 0;
    }
    .ft-site-nav .nav-mobile-keep {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      text-align: center;
      box-sizing: border-box;
      width: 56px;
      height: 30px;
      padding: 0 .25rem;
      border: 1px solid #2f3b48;
      border-radius: 999px;
      font-size: .62rem !important;
      font-weight: 600;
      line-height: 1.05;
      letter-spacing: .01em;
      color: #b6c3cf !important;
      background: rgba(15,23,42,.35);
      white-space: normal;
      word-break: keep-all;
      hyphens: none;
    }
    .ft-site-nav .nav-mobile-keep:hover { border-color: rgba(74,222,128,.6); color: #86efac !important; }
    .ft-site-nav .nav-links .btn {
      padding: 0 .65rem;
      height: 30px;
      font-size: .72rem;
      line-height: 30px;
      flex-shrink: 0;
    }
    .ft-site-nav .nav-links .btn-primary {
      color: #fff !important;
      white-space: normal;
      text-align: center;
      line-height: 1.05;
      padding: 0 .55rem;
      font-size: .65rem;
      width: 64px;
    }
    .ft-site-nav .nav-links .btn-ghost { display: none; }
    .hero { padding-top: 5rem; }
    .hero-cta { flex-direction: column; align-items: center; gap: .75rem; }
    .hero-cta .btn { width: 100%; max-width: 280px; justify-content: center; }
    .section { padding: 3rem 1rem; }
    .stats { gap: 1.5rem; padding: 1.5rem 1rem; }
  }

  @media (max-width: 400px) {
    .ft-site-nav { padding: 0 .55rem; height: 54px; gap: .3rem; }
    .ft-site-nav .nav-logo { font-size: .95rem; gap: .3rem; }
    .ft-site-nav .nav-logo .frog { font-size: 1.15rem; }
    .ft-site-nav .nav-links { gap: .25rem; }
    .ft-site-nav .nav-mobile-keep {
      width: 50px;
      height: 28px;
      font-size: .58rem !important;
      padding: 0 .2rem;
    }
    .ft-site-nav .nav-links .btn-primary {
      padding: 0 .4rem;
      height: 28px;
      line-height: 1.05;
      font-size: .6rem;
      width: 56px;
      color: #fff !important;
    }
    .hero-badge { font-size: .7rem; padding: .25rem .7rem; }
    .hero h1 { font-size: 2rem; }
    .hero p { font-size: .9rem; }
    .section-title { font-size: 1.5rem; }
  }

  @media (max-width: 320px) {
    .ft-site-nav { padding: 0 .4rem; height: 50px; gap: .25rem; }
    .ft-site-nav .nav-logo { font-size: .85rem; }
    .ft-site-nav .nav-logo .frog { font-size: 1rem; }
    .ft-site-nav .nav-mobile-keep {
      width: 44px;
      height: 26px;
      font-size: .54rem !important;
    }
    .ft-site-nav .nav-links .btn-primary {
      padding: 0 .35rem;
      height: 26px;
      font-size: .55rem;
      width: 50px;
      color: #fff !important;
    }
    .hero { padding: 4rem .75rem 2rem; }
    .hero-cta .btn { max-width: 240px; padding: .6rem 1rem; }
    .section { padding: 2rem .75rem; }
  }

  /* Mobile APK Banner */
  .mobile-banner {
    position: fixed;
    bottom: 0; left: 0; right: 0;
    background: linear-gradient(135deg, #16a34a 0%, #15803d 100%);
    padding: .75rem 1rem;
    display: none;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    z-index: 1000;
    box-shadow: 0 -4px 20px rgba(0,0,0,.3);
    /* Use system font stack so low-end devices missing custom fonts
       still render at the intended size instead of falling back to a
       wider/taller font that pushes text out of the row. */
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
                 "Helvetica Neue", Arial, sans-serif;
    line-height: 1.25;
  }
  .mobile-banner.show { display: flex; }
  .mobile-banner-content {
    display: flex; align-items: center; gap: .65rem;
    flex: 1 1 auto;
    min-width: 0; /* allow text children to shrink instead of overflowing upward */
  }
  .mobile-banner-icon { font-size: 1.75rem; flex: 0 0 auto; line-height: 1; }
  .mobile-banner-text { min-width: 0; flex: 1 1 auto; }
  .mobile-banner-text h4 {
    color: #fff; font-size: .9rem; margin: 0; font-weight: 600;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    letter-spacing: .01em;
    line-height: 1.2;
  }
  .mobile-banner-text p {
    color: rgba(255,255,255,.85); font-size: .72rem; margin: 0;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    line-height: 1.2;
  }
  .mobile-banner-btn {
    background: #fff; color: #16a34a;
    padding: .55rem 1rem; border-radius: 8px;
    font-weight: 700; font-size: .82rem;
    text-decoration: none;
    white-space: nowrap;
    flex: 0 0 auto;
    box-shadow: 0 2px 8px rgba(0,0,0,.2);
  }
  .mobile-banner-btn:hover { background: #f0fdf4; }
  .mobile-banner-close {
    background: transparent; border: none;
    color: rgba(255,255,255,.7); font-size: 1.35rem;
    cursor: pointer; padding: 0 .25rem;
    flex: 0 0 auto; line-height: 1;
  }
  .mobile-banner-close:hover { color: #fff; }

  /* Narrow / low-end phones (~360px and under) */
  @media (max-width: 380px) {
    .mobile-banner { padding: .6rem .65rem; gap: .5rem; }
    .mobile-banner-content { gap: .5rem; }
    .mobile-banner-icon { font-size: 1.4rem; }
    .mobile-banner-text h4 { font-size: .80rem; }
    .mobile-banner-text p  { font-size: .66rem; }
    .mobile-banner-btn { padding: .5rem .75rem; font-size: .78rem; }
  }

  /* Ultra-narrow phones: let text wrap and move actions to a cleaner second row. */
  @media (max-width: 340px) {
    .mobile-banner {
      flex-wrap: wrap;
      row-gap: .4rem;
      padding: .55rem .6rem;
    }
    .mobile-banner-content {
      flex: 1 1 100%;
      min-width: 0;
    }
    .mobile-banner-text h4,
    .mobile-banner-text p {
      white-space: normal;
      overflow: visible;
      text-overflow: clip;
    }
    .mobile-banner-btn {
      margin-left: calc(1.4rem + .5rem);
      padding: .45rem .68rem;
      font-size: .74rem;
    }
    .mobile-banner-close {
      margin-left: auto;
      font-size: 1.2rem;
    }
  }

  @media (min-width: 769px) {
    .mobile-banner { display: none !important; }
  }

#vibe-banner {
    position: fixed; bottom: 0; left: 0; right: 0; z-index: 200;
    background: linear-gradient(180deg, rgba(13,26,22,.92) 0%, rgba(10,17,15,.96) 100%);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid rgba(74,222,128,.28);
    box-shadow: 0 -10px 32px rgba(0,0,0,.45);
    color: #cfe8d7;
    font-size: .82rem;
    line-height: 1.5;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  }
  #vibe-banner .vb-inner {
    max-width: 1180px;
    margin: 0 auto;
    padding: .65rem 3rem .7rem 1.1rem;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    column-gap: 1rem;
    row-gap: .35rem;
    position: relative;
  }
  #vibe-banner .vb-icon {
    font-size: 1.15rem;
    line-height: 1;
    align-self: center;
    filter: drop-shadow(0 0 6px rgba(74,222,128,.35));
  }
  #vibe-banner .vb-text { min-width: 0; }
  #vibe-banner .vb-headline {
    color: #e6f4ec;
    font-weight: 600;
  }
  #vibe-banner .vb-headline strong { color: #4ade80; font-weight: 600; }
  #vibe-banner .vb-sub {
    color: #8fb3a0;
    font-size: .78rem;
    margin-top: .15rem;
  }
  #vibe-banner .vb-sub a,
  #vibe-banner .vb-sub a.vb-link,
  #vibe-banner .vb-sub a:any-link {
    color: #9fd9b8 !important;
    text-decoration: none !important;
    border-bottom: 1px solid rgba(74, 222, 128, 0.35);
    transition: color 0.15s ease, border-color 0.15s ease;
  }
  #vibe-banner .vb-sub a:hover,
  #vibe-banner .vb-sub a:focus-visible {
    color: #4ade80 !important;
    border-bottom-color: rgba(74, 222, 128, 0.75);
    outline: none;
  }
  #vibe-banner .vb-prealpha { color: #c4a574; }
  #vibe-banner .vb-flow {
    display: inline-flex;
    align-items: center;
    gap: .15rem;
    padding: .05rem .42rem;
    margin: 0 .1rem;
    background: rgba(74,222,128,.08);
    border: 1px solid rgba(74,222,128,.22);
    border-radius: 999px;
    font-size: .72rem;
    color: #b9e4c8;
    white-space: nowrap;
    line-height: 1.5;
  }
  #vibe-banner .vb-arrow { color: #4ade80; opacity: .55; margin: 0 .15rem; font-size: .7rem; }
  #vibe-banner .vb-actions {
    display: flex;
    gap: .4rem;
    align-items: center;
    flex-shrink: 0;
  }
  #vibe-banner .vb-btn {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    padding: .35rem .75rem;
    border-radius: 7px;
    border: 1px solid rgba(74,222,128,.3);
    background: rgba(74,222,128,.06);
    color: #4ade80;
    text-decoration: none;
    font-size: .78rem;
    font-weight: 600;
    white-space: nowrap;
    transition: all .15s;
  }
  #vibe-banner .vb-btn:hover {
    background: rgba(74,222,128,.14);
    border-color: rgba(74,222,128,.55);
    color: #86efac;
  }
  #vibe-banner .vb-btn-primary {
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    border-color: transparent;
    color: #08120c;
  }
  #vibe-banner .vb-btn-primary:hover {
    background: linear-gradient(135deg, #4ade80 0%, #22c55e 100%);
    color: #08120c;
  }
  #vibe-banner .vb-close {
    position: absolute;
    top: 50%;
    right: .7rem;
    transform: translateY(-50%);
    background: transparent;
    border: 1px solid rgba(255,255,255,.08);
    color: #8fb3a0;
    cursor: pointer;
    width: 28px; height: 28px;
    border-radius: 50%;
    font-size: 1.1rem;
    line-height: 1;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: .7;
    transition: all .15s;
  }
  #vibe-banner .vb-close:hover {
    opacity: 1;
    background: rgba(255,255,255,.06);
    color: #e6f4ec;
    border-color: rgba(255,255,255,.18);
  }

  /* Tablet: stack actions below text */
  @media (max-width: 900px) {
    #vibe-banner .vb-inner {
      grid-template-columns: auto 1fr;
      padding: .6rem 2.6rem .65rem 1rem;
    }
    #vibe-banner .vb-actions {
      grid-column: 2;
      margin-top: .15rem;
    }
  }

  /* Mobile: compact, hide pipeline chips (kept in /security), action row wraps */
  @media (max-width: 560px) {
    #vibe-banner { font-size: .78rem; }
    #vibe-banner .vb-inner {
      padding: .55rem 2.4rem .6rem .85rem;
      column-gap: .65rem;
    }
    #vibe-banner .vb-pipeline-inline { display: none; }
    #vibe-banner .vb-sub { font-size: .72rem; }
    #vibe-banner .vb-actions { flex-wrap: wrap; gap: .3rem; }
    #vibe-banner .vb-btn { padding: .3rem .6rem; font-size: .72rem; }
    #vibe-banner .vb-close { right: .45rem; width: 26px; height: 26px; }
  }

  /* ── Node homepage variants (main / dev / tor) ─────────────────────────── */
  body.home-node-dev .demo-wrap,
  body.home-node-dev #features,
  body.home-node-dev #privacy,
  body.home-node-dev #how,
  body.home-node-dev .opensource-section,
  body.home-node-dev #federation,
  body.home-node-tor .demo-wrap,
  body.home-node-tor #features,
  body.home-node-tor #privacy,
  body.home-node-tor #how,
  body.home-node-tor .opensource-section,
  body.home-node-tor #federation,
  body.home-node-tor .ft-downloads-section { display: none !important; }

  body.home-node-dev { --node-accent: #fbbf24; --node-accent-dim: rgba(251, 191, 36, 0.15); }
  body.home-node-tor { --node-accent: #a78bfa; --node-accent-dim: rgba(167, 139, 250, 0.15); }
  body.home-node-dev .hero-badge--role {
    background: var(--node-accent-dim); border-color: rgba(251, 191, 36, 0.4); color: #fde68a;
  }
  body.home-node-tor .hero-badge--role {
    background: var(--node-accent-dim); border-color: rgba(167, 139, 250, 0.4); color: #ddd6fe;
  }
  body.home-node-dev .node-identity-kicker { color: #fbbf24; }
  body.home-node-tor .node-identity-kicker { color: #c4b5fd; }
  body.home-node-dev .node-identity-actions a.primary {
    background: linear-gradient(135deg, #b45309, #d97706);
  }
  body.home-node-tor .node-identity-actions a.primary {
    background: linear-gradient(135deg, #6d28d9, #7c3aed);
  }

  .node-page-section { padding: 3rem 1.5rem; }
  .node-page-section .section-title { margin-bottom: .35rem; }
  .node-page-section .section-sub { max-width: 42rem; margin-left: auto; margin-right: auto; }

  .node-highlights-grid {
    display: grid; gap: 1rem;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    max-width: 1100px; margin: 0 auto;
  }
  .node-highlight-card {
    background: rgba(15, 23, 20, 0.9);
    border: 1px solid rgba(74, 222, 128, 0.12);
    border-radius: 14px; padding: 1.15rem 1.2rem;
    transition: border-color .2s, transform .2s;
  }
  body.home-node-dev .node-highlight-card { border-color: rgba(251, 191, 36, 0.15); }
  body.home-node-tor .node-highlight-card { border-color: rgba(167, 139, 250, 0.18); }
  .node-highlight-card:hover {
    border-color: rgba(74, 222, 128, 0.35);
    transform: translateY(-2px);
  }
  body.home-node-dev .node-highlight-card:hover { border-color: rgba(251, 191, 36, 0.45); }
  body.home-node-tor .node-highlight-card:hover { border-color: rgba(167, 139, 250, 0.45); }
  .node-highlight-card .nh-icon { font-size: 1.65rem; margin-bottom: .5rem; }
  .node-highlight-card h3 { margin: 0 0 .45rem; font-size: 1.05rem; color: #e8f5ec; }
  .node-highlight-card p { margin: 0; font-size: .88rem; line-height: 1.5; color: #9fb3a8; }

  .node-steps {
    max-width: 720px; margin: 0 auto;
    display: grid; gap: 1rem;
  }
  .node-step {
    display: grid; grid-template-columns: 2.5rem 1fr; gap: 1rem; align-items: start;
    padding: 1rem 1.15rem; border-radius: 12px;
    background: rgba(15, 23, 20, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.06);
  }
  body.home-node-dev .node-step { border-left: 3px solid #fbbf24; }
  body.home-node-tor .node-step { border-left: 3px solid #a78bfa; }
  .node-step-num {
    width: 2.5rem; height: 2.5rem; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: .95rem;
    background: rgba(74, 222, 128, 0.12); color: #7dcea0;
  }
  body.home-node-dev .node-step-num { background: rgba(251, 191, 36, 0.15); color: #fde68a; }
  body.home-node-tor .node-step-num { background: rgba(167, 139, 250, 0.15); color: #ddd6fe; }
  .node-step h3 { margin: 0 0 .35rem; font-size: 1rem; color: #e8f5ec; }
  .node-step p { margin: 0; font-size: .88rem; color: #9fb3a8; line-height: 1.5; }

  .tor-onion-panel {
    max-width: 640px; margin: 0 auto 1.5rem;
    padding: 1.25rem 1.35rem; border-radius: 14px;
    background: linear-gradient(145deg, rgba(46, 16, 78, 0.5), rgba(15, 23, 20, 0.9));
    border: 1px solid rgba(167, 139, 250, 0.35);
    text-align: center;
  }
  .tor-onion-panel code.tor-onion-host {
    display: block; margin: .75rem 0; padding: .65rem .85rem;
    font-size: .82rem; word-break: break-all;
    background: rgba(0, 0, 0, 0.35); border-radius: 8px; color: #ddd6fe;
  }
  .tor-onion-panel .tor-onion-hint { font-size: .85rem; color: #a8a29e; margin: 0; line-height: 1.5; }

  .node-fed-spotlight {
    max-width: 1100px; margin: 0 auto;
    display: grid; gap: 1.25rem;
    grid-template-columns: 1fr;
    padding: 1.5rem; border-radius: 16px;
    background: rgba(15, 23, 20, 0.85);
    border: 1px solid rgba(74, 222, 128, 0.15);
  }
  body.home-node-dev .node-fed-spotlight { border-color: rgba(251, 191, 36, 0.2); }
  body.home-node-tor .node-fed-spotlight { border-color: rgba(167, 139, 250, 0.25); }
  .node-fed-spotlight h3 { margin: 0 0 .5rem; font-size: 1.2rem; color: #e8f5ec; }
  .node-fed-spotlight p { margin: 0 0 1rem; color: #9fb3a8; font-size: .92rem; line-height: 1.55; }
  .node-fed-badges { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: 1rem; }
  .node-fed-badge {
    font-size: .72rem; padding: .25rem .55rem; border-radius: 6px;
    background: rgba(74, 222, 128, 0.1); color: #9fd9b8; border: 1px solid rgba(74, 222, 128, 0.2);
  }

  .node-privacy-band {
    max-width: 900px; margin: 0 auto 3rem;
    padding: 2rem 1.5rem; border-radius: 16px;
    background: linear-gradient(135deg, rgba(15, 35, 25, 0.95), rgba(10, 20, 16, 0.98));
    border: 1px solid rgba(74, 222, 128, 0.2);
    text-align: center;
  }
  body.home-node-tor .node-privacy-band {
    border-color: rgba(167, 139, 250, 0.25);
    background: linear-gradient(135deg, rgba(30, 15, 45, 0.9), rgba(10, 20, 16, 0.98));
  }
  .node-privacy-band h2 { margin: 0 0 .65rem; font-size: 1.5rem; color: #e8f5ec; }
  .node-privacy-band p { margin: 0 0 1rem; color: #9fb3a8; line-height: 1.55; max-width: 36rem; margin-left: auto; margin-right: auto; }
  .node-privacy-band ul {
    list-style: none; padding: 0; margin: 0 auto 1.25rem;
    max-width: 28rem; text-align: left;
  }
  .node-privacy-band li {
    padding: .35rem 0; font-size: .9rem; color: #b8cfc0;
  }
  .node-privacy-band li::before { content: "✓ "; color: #4ade80; }
  body.home-node-tor .node-privacy-band li::before { color: #a78bfa; }

  body.home-node-dev .cta-banner,
  body.home-node-tor .cta-banner {
    background: linear-gradient(180deg, rgba(15, 23, 20, 0.4), rgba(15, 23, 20, 0.95));
    /* Trim the dead gap under the privacy band (was 5rem) so the page
       doesn't end in a big empty void above the closing CTA. */
    padding-top: 3.25rem;
  }
  body.home-node-dev .cta-banner .btn-primary {
    background: linear-gradient(135deg, #b45309, #d97706);
  }
  body.home-node-tor .cta-banner .btn-primary {
    background: linear-gradient(135deg, #6d28d9, #7c3aed);
  }

  /* Dev/Tor node pages: tighter, comfortable spacing on phones so the
     privacy band + Docker CTA aren't edge-to-edge and the section gaps
     don't dominate the small viewport. */
  @media (max-width: 768px) {
    .node-page-section { padding: 2.25rem 1.1rem; }
    .node-privacy-band { padding: 1.5rem 1.15rem; }
    .ft-docker-cta { max-width: 100%; padding: 14px 14px !important; }
    body.home-node-dev .cta-banner,
    body.home-node-tor .cta-banner { padding: 2.5rem 1.1rem 3.25rem; }
  }

  /* "No central server" comparison section (home.html + home-tor.html). */
  #no-central-server .compare-grid,
  #tor-no-central .compare-grid {
    max-width: 1000px; margin: 2.5rem auto 0;
    display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem;
  }
  .compare-card {
    border: 1px solid var(--border); border-radius: 16px;
    padding: 1.5rem 1.5rem 1.6rem; text-align: left;
  }
  .compare-card--bad {
    border-color: rgba(248, 81, 73, .28);
    background: linear-gradient(160deg, rgba(40, 16, 16, .45), rgba(20, 12, 12, .35));
  }
  .compare-card--good {
    border-color: rgba(74, 222, 128, .30);
    background: linear-gradient(160deg, rgba(14, 32, 22, .55), rgba(10, 20, 16, .45));
  }
  .compare-head { margin-bottom: 1rem; }
  .compare-tag {
    display: inline-block; font-size: .72rem; font-weight: 700; letter-spacing: .5px;
    text-transform: uppercase; padding: 5px 11px; border-radius: 999px;
  }
  .compare-tag--bad { color: #ff9b94; background: rgba(248, 81, 73, .14); }
  .compare-tag--good { color: #6ee7a0; background: rgba(74, 222, 128, .14); }
  .compare-card ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: .7rem; }
  .compare-card li { position: relative; padding-left: 1.6rem; font-size: .92rem; line-height: 1.5; color: var(--text-muted); }
  .compare-card--bad li::before { content: "\2715"; position: absolute; left: 0; top: 0; color: var(--danger); font-weight: 700; }
  .compare-card--good li::before { content: "\2713"; position: absolute; left: 0; top: 0; color: var(--green); font-weight: 700; }
  .compare-card--good li strong { color: var(--text); }
  .central-note {
    max-width: 1000px; margin: 1.4rem auto 0; display: flex; gap: 1rem; align-items: flex-start; text-align: left;
    border: 1px solid rgba(74, 222, 128, .28); border-radius: 14px; padding: 1.1rem 1.3rem;
    background: linear-gradient(135deg, rgba(74, 222, 128, .08), transparent);
    font-size: .95rem; line-height: 1.55; color: var(--text-muted);
  }
  .central-note strong { color: var(--text); }
  .central-note-icon { font-size: 1.6rem; line-height: 1; flex-shrink: 0; }
  @media (max-width: 768px) {
    #no-central-server .compare-grid,
    #tor-no-central .compare-grid { grid-template-columns: 1fr; gap: 1rem; }
    .central-note { flex-direction: column; gap: .55rem; }
  }
  /* Subtle, theme-matched inline reference link (overrides default browser blue). */
  #no-central-server .section-sub a,
  #no-central-server .central-note a {
    color: #8fd7b0;
    font-weight: 500;
    text-decoration: underline;
    text-decoration-color: rgba(74, 222, 128, .35);
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
    transition: color .15s ease, text-decoration-color .15s ease;
  }
  #no-central-server .section-sub a:hover,
  #no-central-server .central-note a:hover {
    color: var(--green);
    text-decoration-color: var(--green);
  }

  .node-identity { padding-top: 0; margin-top: -1rem; }
  .node-identity-inner {
    max-width: 960px; margin: 0 auto;
    display: grid; gap: 1rem;
  }
  .node-identity-card {
    background: rgba(15, 23, 20, 0.85);
    border: 1px solid rgba(74, 222, 128, 0.18);
    border-radius: 14px;
    padding: 1.25rem 1.35rem;
  }
  .node-identity-card--warn { border-color: rgba(251, 191, 36, 0.35); }
  .node-identity-card--tor { border-color: rgba(168, 85, 247, 0.35); }
  .node-identity-kicker {
    display: block; font-size: .72rem; letter-spacing: .08em;
    text-transform: uppercase; color: #7dcea0; margin-bottom: .35rem;
  }
  .node-identity-card h2 {
    margin: 0 0 .65rem; font-size: 1.35rem; color: #e8f5ec; line-height: 1.25;
  }
  .node-identity-card h2 code {
    font-size: .92em; color: #9fd9b8; background: rgba(74,222,128,.08);
    padding: .1rem .35rem; border-radius: 6px;
  }
  .node-identity-card p { margin: 0 0 .75rem; color: #9fb3a8; line-height: 1.55; font-size: .92rem; }
  .node-identity-card p:last-child { margin-bottom: 0; }
  .node-identity-actions { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .85rem; }
  .node-identity-actions a {
    font-size: .82rem; padding: .45rem .85rem; border-radius: 999px;
    border: 1px solid rgba(74,222,128,.25); color: #cfe8d7; text-decoration: none;
  }
  .node-identity-actions a:hover { border-color: #4ade80; color: #fff; }
  .node-identity-actions a.primary {
    background: linear-gradient(135deg, #2d6a4f, #40916c); border-color: transparent; color: #fff;
  }
  .node-identity-grid {
    display: grid; gap: 1rem;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  }
  .node-compare-table { width: 100%; border-collapse: collapse; font-size: .85rem; margin-top: .5rem; }
  .node-compare-table th, .node-compare-table td {
    text-align: left; padding: .45rem .5rem; border-bottom: 1px solid rgba(255,255,255,.06);
    color: #b8cfc0;
  }
  .node-compare-table th { color: #7dcea0; font-weight: 600; }
  body.home-node-main .hero-badges .hero-badge--hub {
    background: rgba(74,222,128,.12); border-color: rgba(74,222,128,.35); color: #b9e4c8;
  }
