/* self-hosted-fonts: served from this origin, never a third-party CDN.
 * These sites are mirrored as Tor onion services; a Google-hosted webfont
 * would leave the network through an exit node on every page load. Variable
 * fonts, so one file per subset covers every weight — one request, not five.
 * Inter / JetBrains Mono / Space Grotesk are OFL-1.1; see fonts/OFL.txt.
 */

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('fonts/inter-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('fonts/inter-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 100 800;
  font-display: swap;
  src: url('fonts/jetbrains-mono-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 100 800;
  font-display: swap;
  src: url('fonts/jetbrains-mono-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url('fonts/space-grotesk-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url('fonts/space-grotesk-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ============================================================
   DUCAT — ducatproject.org landing page
   palette: Catppuccin Mocha (default) / Latte · mauve accent
   fonts:   Inter · JetBrains Mono · Space Grotesk display
   ============================================================ */

* { box-sizing: border-box; }

:root {
  /* Catppuccin Mocha */
  --bg:           #11111b;   /* crust */
  --bg-2:         #181825;   /* mantle */
  --bg-3:         #1e1e2e;   /* base */
  --surface:      #1e1e2e;
  --surface-2:    #313244;   /* surface0 */
  --border:       #45475a;   /* surface1 */
  --border-soft:  #313244;

  --text:         #cdd6f4;
  --text-soft:    #bac2de;
  --text-muted:   #a6adc8;
  --text-dim:     #7f849c;

  --accent:       #cba6f7;   /* mauve */
  --accent-2:     #b4befe;   /* lavender — gradient pair */
  --accent-deep:  #9a6ff0;
  --ok:           #a6e3a1;   /* green */
  --warning:      #f9e2af;   /* yellow */
  --hot:          #fab387;   /* peach */
  --danger:       #f38ba8;   /* red */
  --blue:         #89b4fa;
  --teal:         #94e2d5;
  --pink:         #f5c2e7;

  --on-accent:    #11111b;

  --grad-brand:   linear-gradient(135deg, #cba6f7 0%, #b4befe 100%);
  --grad-word:    linear-gradient(180deg, #cdd6f4 0%, #cba6f7 65%, #9a6ff0 100%);
  --mesh-1:       rgba(203, 166, 247, 0.16);
  --mesh-2:       rgba(180, 190, 254, 0.13);
  --mesh-3:       rgba(245, 194, 231, 0.10);
  --glow:         rgba(203, 166, 247, 0.18);
  --nav-bg:       rgba(17, 17, 27, 0.72);
  --shell-bg:     rgba(24, 24, 37, 0.92);

  --sans:  "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --mono:  "JetBrains Mono", ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
  --display: "Space Grotesk", "Inter", -apple-system, sans-serif;

  --maxw:  1180px;
  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 18px;
  --shadow:    0 10px 40px -10px rgba(0, 0, 0, 0.6);
  --shadow-hi: 0 20px 60px -10px var(--glow), 0 10px 30px -10px rgba(0, 0, 0, 0.6);
}

[data-theme="latte"] {
  /* Catppuccin Latte */
  --bg:           #eff1f5;   /* base */
  --bg-2:         #e6e9ef;   /* mantle */
  --bg-3:         #dce0e8;   /* crust */
  --surface:      #ffffff;
  --surface-2:    #e6e9ef;
  --border:       #bcc0cc;   /* surface1 */
  --border-soft:  #ccd0da;   /* surface0 */

  --text:         #4c4f69;
  --text-soft:    #5c5f77;
  --text-muted:   #6c6f85;
  --text-dim:     #8c8fa1;

  --accent:       #8839ef;   /* mauve */
  --accent-2:     #7287fd;   /* lavender */
  --accent-deep:  #6f23d8;
  --ok:           #40a02b;
  --warning:      #df8e1d;
  --hot:          #fe640b;
  --danger:       #d20f39;
  --blue:         #1e66f5;
  --teal:         #179299;
  --pink:         #ea76cb;

  --on-accent:    #ffffff;

  --grad-brand:   linear-gradient(135deg, #8839ef 0%, #7287fd 100%);
  --grad-word:    linear-gradient(180deg, #4c4f69 0%, #8839ef 70%, #6f23d8 100%);
  --mesh-1:       rgba(136, 57, 239, 0.10);
  --mesh-2:       rgba(114, 135, 253, 0.09);
  --mesh-3:       rgba(234, 118, 203, 0.07);
  --glow:         rgba(136, 57, 239, 0.14);
  --nav-bg:       rgba(239, 241, 245, 0.78);
  --shell-bg:     rgba(255, 255, 255, 0.92);

  --shadow:    0 10px 40px -10px rgba(76, 79, 105, 0.25);
  --shadow-hi: 0 20px 60px -10px var(--glow), 0 10px 30px -10px rgba(76, 79, 105, 0.25);
}

html { scroll-behavior: smooth; }
html, body {
  margin: 0; padding: 0;
  background: var(--bg);
  color: var(--text-soft);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
body { transition: background .25s ease, color .25s ease; }

a { color: var(--accent); text-decoration: none; transition: color .15s ease; }
a:hover { color: var(--text); }

code, pre { font-family: var(--mono); font-size: 0.93em; }
:not(pre) > code {
  background: var(--surface-2);
  border: 1px solid var(--border-soft);
  border-radius: 4px;
  padding: 0.08em 0.42em;
  color: var(--accent);
  font-size: 0.86em;
}

.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ============================================================
   ANIMATED GRADIENT MESH BACKGROUND
   ============================================================ */
.bg-mesh {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  background: var(--bg);
}
.mesh-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.55;
  animation: drift 30s ease-in-out infinite alternate;
}
.mesh-blob-1 {
  width: 580px; height: 580px;
  background: radial-gradient(circle, var(--mesh-1), transparent 70%);
  top: -150px; left: -150px;
  animation-duration: 28s;
}
.mesh-blob-2 {
  width: 480px; height: 480px;
  background: radial-gradient(circle, var(--mesh-2), transparent 70%);
  top: 200px; right: -120px;
  animation-duration: 34s; animation-delay: -10s;
}
.mesh-blob-3 {
  width: 420px; height: 420px;
  background: radial-gradient(circle, var(--mesh-3), transparent 70%);
  top: 700px; left: 40%;
  animation-duration: 40s; animation-delay: -18s;
}
@keyframes drift {
  0%   { transform: translate3d(0, 0, 0)        rotate(0deg);   }
  50%  { transform: translate3d(80px, -40px, 0) rotate(120deg); }
  100% { transform: translate3d(-60px, 80px, 0) rotate(240deg); }
}
@media (prefers-reduced-motion: reduce) {
  .mesh-blob { animation: none; }
}

/* ============================================================
   TOP NAV
   ============================================================ */
.nav {
  position: sticky; top: 0; z-index: 50;
  padding: 0.85rem 0;
  background: var(--nav-bg);
  backdrop-filter: blur(14px) saturate(180%);
  -webkit-backdrop-filter: blur(14px) saturate(180%);
  border-bottom: 1px solid var(--border-soft);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-brand {
  font-family: var(--mono);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.06em;
  color: var(--text);
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
}
.nav-brand img {
  width: 26px; height: 26px;
  border-radius: 50%;
  display: block;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 1.4rem;
}
.nav-links a {
  font-size: 0.93rem;
  color: var(--text-muted);
  transition: color .15s ease;
}
.nav-links a:hover { color: var(--text); }
.nav-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px; height: 36px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  background: transparent;
  cursor: pointer;
  font-size: 1rem;
  padding: 0;
}
.nav-icon-btn:hover {
  color: var(--text);
  border-color: var(--accent);
}
#theme-toggle .tt-latte { display: none; }
#theme-toggle .tt-mocha { display: inline; }
[data-theme="latte"] #theme-toggle .tt-latte { display: inline; }
[data-theme="latte"] #theme-toggle .tt-mocha { display: none; }

@media (max-width: 780px) {
  .nav-links a:not(.nav-icon-btn) { display: none; }
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  padding: 4.5rem 0 4.5rem;
  text-align: center;
  position: relative;
}
.hero-inner { max-width: 900px; margin: 0 auto; }

.hero-mascot {
  width: 148px; height: 148px;
  margin: 0 auto 1.25rem;
  display: block;
  filter: drop-shadow(0 12px 32px var(--glow));
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: color-mix(in srgb, var(--accent) 9%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent);
  color: var(--accent);
  font-family: var(--mono);
  font-size: 0.8rem;
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  margin-bottom: 1.4rem;
}
.dot {
  display: inline-block;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
}
.dot-pulse { animation: pulse 2s infinite; }
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 var(--glow); }
  70%  { box-shadow: 0 0 0 10px transparent; }
  100% { box-shadow: 0 0 0 0 transparent; }
}

.hero-title {
  margin: 0 0 1.1rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
}
.display-wordmark {
  font-family: var(--display);
  font-size: clamp(3.2rem, 12vw, 7rem);
  letter-spacing: 0.06em;
  background: var(--grad-word);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  display: inline-block;
}

.hero-tag {
  font-size: clamp(1.05rem, 1.7vw, 1.3rem);
  color: var(--text-soft);
  margin: 0 auto 1.4rem;
  max-width: 740px;
}
.hero-tag strong { color: var(--text); }
.hero-tag .kw { color: var(--accent); font-weight: 600; }

.hero-sub {
  color: var(--text-muted);
  font-size: 0.98rem;
  max-width: 660px;
  margin: 0 auto 2rem;
}

.stats-row {
  display: flex; flex-wrap: wrap;
  gap: 0.6rem; justify-content: center;
  margin: 0 0 2rem;
}
.stat-chip {
  display: inline-flex;
  align-items: baseline;
  gap: 0.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.5rem 1.1rem;
  font-size: 0.88rem;
  color: var(--text-muted);
}
.stat-chip .num {
  font-family: var(--mono);
  font-weight: 700;
  color: var(--text);
  font-size: 1.05rem;
  font-variant-numeric: tabular-nums;
}
.stat-chip.stat-hi { border-color: color-mix(in srgb, var(--accent) 45%, transparent); }
.stat-chip.stat-hi .num { color: var(--accent); }

.cta-row {
  display: flex; gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.7rem 1.3rem;
  border-radius: var(--radius-sm);
  font-family: var(--sans);
  font-size: 0.95rem;
  font-weight: 500;
  border: 1px solid var(--border);
  color: var(--text);
  background: var(--surface);
  cursor: pointer;
  transition: all .2s ease;
}
.btn:hover {
  background: var(--surface-2);
  border-color: var(--text-muted);
  color: var(--text);
  text-decoration: none;
  transform: translateY(-1px);
}
.btn-primary {
  background: var(--grad-brand);
  border-color: transparent;
  color: var(--on-accent);
  font-weight: 600;
  box-shadow: 0 6px 20px -6px var(--glow);
}
.btn-primary:hover {
  filter: brightness(1.07);
  color: var(--on-accent);
  transform: translateY(-1px);
  box-shadow: 0 10px 30px -6px var(--glow);
}
.btn-ghost { background: transparent; }

.hero-warn {
  margin-top: 1.75rem;
  font-size: 0.85rem;
  color: var(--text-dim);
}
.hero-warn strong { color: var(--hot); font-weight: 600; }

/* ============================================================
   TRUST STRIP
   ============================================================ */
.trust-strip {
  padding: 1.8rem 0;
  background: var(--bg-2);
  border-top: 1px solid var(--border-soft);
  border-bottom: 1px solid var(--border-soft);
}
.trust-row {
  display: flex; align-items: center;
  gap: 1.5rem; flex-wrap: wrap;
  justify-content: center;
}
.trust-label {
  font-size: 0.78rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 500;
}
.trust-items {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
}
.trust-items li {
  font-family: var(--mono);
  font-size: 0.83rem;
  color: var(--text-soft);
  letter-spacing: 0.02em;
}

/* ============================================================
   SECTIONS
   ============================================================ */
.section { padding: 5.5rem 0; position: relative; }
.section-alt { background: var(--bg-2); border-top: 1px solid var(--border-soft); border-bottom: 1px solid var(--border-soft); }
.section-head { margin-bottom: 2.75rem; max-width: 780px; }
.section-head.centered { margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2 {
  font-family: var(--display);
  font-size: clamp(1.9rem, 4vw, 2.6rem);
  letter-spacing: -0.02em;
  line-height: 1.12;
  margin: 0.5rem 0 1rem;
  color: var(--text);
  font-weight: 700;
}
.section-head .lead {
  color: var(--text-soft);
  font-size: 1.05rem;
  margin: 0;
}
.section-head.centered .lead { margin: 0 auto; max-width: 700px; }
.section-tag {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--accent);
  padding: 0.3rem 0.7rem;
  border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent);
  border-radius: 999px;
  margin-bottom: 0.75rem;
}

/* scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .8s ease, transform .8s ease;
}
.reveal.in {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ============================================================
   PHONE SCREENSHOT ROWS
   ============================================================ */
.phone-row {
  display: flex;
  gap: 1.75rem;
  justify-content: center;
  flex-wrap: wrap;
  margin: 0 0 2rem;
}
.phone {
  width: 250px;
  max-width: 86vw;
  text-align: center;
}
.phone img {
  width: 100%;
  height: auto;
  border-radius: 22px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  display: block;
  background: var(--bg-3);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.phone:hover img {
  transform: translateY(-4px);
  border-color: color-mix(in srgb, var(--accent) 55%, transparent);
  box-shadow: var(--shadow-hi);
}
.phone figcaption {
  margin-top: 0.7rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}
.phone figcaption strong { color: var(--text); font-weight: 600; }
figure.phone { margin: 0; }

/* ---- Desk client shots -------------------------------------------------
   The desktop screenshots are landscape (1540x1384), so they cannot ride the
   .phone frame — two to a row on a wide screen, one on a narrow one, with the
   same border, shadow and hover the phones use so the two clients read as one
   product rather than two galleries. */
.desk-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.75rem;
  max-width: 940px;
  margin: 0 auto 2rem;
}
.desk {
  margin: 0;
  text-align: center;
  min-width: 0;
}
.desk img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  display: block;
  background: var(--bg-3);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.desk:hover img {
  transform: translateY(-4px);
  border-color: color-mix(in srgb, var(--accent) 55%, transparent);
  box-shadow: var(--shadow-hi);
}
.desk figcaption {
  margin-top: 0.7rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}
.desk figcaption strong { color: var(--text); font-weight: 600; }

/* split: text beside phones */
.feature-split {
  display: grid;
  grid-template-columns: minmax(300px, 1.05fr) minmax(280px, 1fr);
  gap: 3rem;
  align-items: center;
}
.feature-split.flip { direction: rtl; }
.feature-split.flip > * { direction: ltr; }
.feature-copy h3 {
  font-family: var(--display);
  font-size: 1.5rem;
  color: var(--text);
  margin: 0.4rem 0 0.9rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.feature-copy p { color: var(--text-soft); font-size: 0.98rem; margin: 0 0 0.9rem; }
.feature-copy p:last-child { margin-bottom: 0; }
.feature-copy strong { color: var(--text); }
.feature-copy .accent { color: var(--accent); font-weight: 600; }
.feature-list { list-style: none; padding: 0; margin: 0.75rem 0 0; }
.feature-list li {
  padding: 0.45rem 0 0.45rem 1.6rem;
  position: relative;
  color: var(--text-soft);
  font-size: 0.95rem;
}
.feature-list li::before {
  content: "◆";
  position: absolute; left: 0.2rem;
  color: var(--accent);
  font-size: 0.7rem;
  top: 0.72rem;
}
.feature-list strong { color: var(--text); }
@media (max-width: 860px) {
  .feature-split { grid-template-columns: 1fr; gap: 2rem; }
  .feature-split.flip { direction: ltr; }
}

/* ============================================================
   BENTO GRID
   ============================================================ */
.bento {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: minmax(190px, auto);
  gap: 1.25rem;
}
.bento-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem 1.6rem;
  position: relative;
  overflow: hidden;
  transition: border-color .25s ease, transform .25s ease, box-shadow .25s ease;
}
.bento-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 6%, transparent), transparent 50%);
  opacity: 0;
  transition: opacity .25s ease;
  pointer-events: none;
}
.bento-card:hover {
  border-color: var(--accent);
  transform: translateY(-3px);
  box-shadow: var(--shadow-hi);
}
.bento-card:hover::before { opacity: 1; }

.bento-lg { grid-column: span 2; }
.bento-icon {
  font-size: 1.4rem;
  margin-bottom: 0.6rem;
  width: 38px; height: 38px;
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  display: flex; align-items: center; justify-content: center;
}
.bento-card h3 {
  font-family: var(--display);
  font-size: 1.2rem;
  margin: 0 0 0.5rem;
  color: var(--text);
  font-weight: 600;
}
.bento-card p {
  color: var(--text-muted);
  font-size: 0.93rem;
  margin: 0 0 0.75rem;
}
.bento-card p:last-child { margin-bottom: 0; }
.bento-card strong { color: var(--text); }

.bento-code {
  background: var(--bg-2);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-sm);
  padding: 0.75rem 0.9rem;
  font-size: 0.78rem;
  color: var(--text-soft);
  margin: 0.75rem 0 0;
  white-space: pre;
  overflow-x: auto;
  font-family: var(--mono);
}

@media (max-width: 920px) {
  .bento { grid-template-columns: repeat(2, 1fr); }
  .bento-lg { grid-column: span 2; }
}
@media (max-width: 620px) {
  .bento { grid-template-columns: 1fr; }
  .bento-lg { grid-column: span 1; }
}

/* ============================================================
   STAKES DIAGRAM
   ============================================================ */
.stakes {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin: 2rem 0;
}
.stake-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.3rem 1.6rem;
  text-align: center;
  min-width: 170px;
  transition: border-color .25s ease, transform .25s ease;
}
.stake-card:hover { border-color: var(--accent); transform: translateY(-2px); }
.stake-pct {
  font-family: var(--mono);
  font-weight: 700;
  font-size: 2rem;
  color: var(--accent);
  display: block;
  line-height: 1.1;
}
.stake-card .stake-what { color: var(--text); font-weight: 600; display: block; margin-top: 0.3rem; }
.stake-card .stake-why { color: var(--text-dim); font-size: 0.82rem; display: block; margin-top: 0.25rem; }

/* ============================================================
   CALLOUTS
   ============================================================ */
.callout {
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--accent) 8%, transparent), color-mix(in srgb, var(--accent-2) 5%, transparent)),
    var(--surface);
  border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent);
  border-radius: var(--radius-lg);
  padding: 2rem 2.25rem;
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
  box-shadow: 0 20px 50px -20px var(--glow);
}
.callout + .callout { margin-top: 1.25rem; }
.callout-mark {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--grad-brand);
  color: var(--on-accent);
  font-size: 1.3rem;
  font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.callout h3 {
  font-family: var(--display);
  font-size: 1.3rem;
  margin: 0 0 0.5rem;
  color: var(--text);
  font-weight: 700;
}
.callout p {
  color: var(--text-soft);
  margin: 0 0 0.6rem;
  font-size: 0.96rem;
}
.callout p:last-child { margin-bottom: 0; }
.callout strong { color: var(--accent); }
.callout.callout-warn {
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--hot) 8%, transparent), color-mix(in srgb, var(--warning) 5%, transparent)),
    var(--surface);
  border-color: color-mix(in srgb, var(--hot) 40%, transparent);
  box-shadow: 0 20px 50px -20px color-mix(in srgb, var(--hot) 20%, transparent);
}
.callout.callout-warn .callout-mark { background: linear-gradient(135deg, var(--hot), var(--warning)); }
.callout.callout-warn strong { color: var(--hot); }
@media (max-width: 600px) {
  .callout { flex-direction: column; gap: 1rem; padding: 1.5rem; }
}

/* ============================================================
   DOWNLOADS
   ============================================================ */
.dl-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}
.dl-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem 1.6rem;
  transition: border-color .25s ease, transform .25s ease, box-shadow .25s ease;
}
.dl-card:hover {
  border-color: var(--accent);
  transform: translateY(-3px);
  box-shadow: var(--shadow-hi);
}
.dl-card h3 {
  font-family: var(--display);
  font-size: 1.2rem;
  margin: 0 0 0.35rem;
  color: var(--text);
  font-weight: 600;
  display: flex; align-items: center; gap: 0.55rem;
}
.dl-os { font-size: 1.25rem; }
.dl-card > p { color: var(--text-muted); font-size: 0.9rem; margin: 0 0 1rem; }
.dl-links { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.dl-links a {
  font-family: var(--mono);
  font-size: 0.83rem;
  padding: 0.4rem 0.8rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-soft);
  background: var(--bg-2);
  transition: all .15s ease;
}
.dl-links a:hover {
  color: var(--accent);
  border-color: var(--accent);
  transform: translateY(-1px);
}
.dl-note {
  margin-top: 1.5rem;
  font-size: 0.88rem;
  color: var(--text-muted);
  text-align: center;
}
.dl-note strong { color: var(--hot); }
@media (max-width: 720px) { .dl-grid { grid-template-columns: 1fr; } }

/* ============================================================
   SPEC / REPO
   ============================================================ */
.repo-tree {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.3rem 1.5rem;
  font-family: var(--mono);
  font-size: 0.84rem;
  line-height: 1.75;
  color: var(--text-soft);
  overflow-x: auto;
  margin: 0;
  white-space: pre;
}
.repo-tree .rt-dir  { color: var(--accent); font-weight: 700; }
.repo-tree .rt-desc { color: var(--text-dim); }
.repo-tree .rt-star { color: var(--warning); }

.check-list { list-style: none; padding: 0; margin: 1.25rem 0 0; }
.check-list li {
  padding: 0.5rem 0 0.5rem 1.9rem;
  position: relative;
  color: var(--text-soft);
  font-size: 0.95rem;
  border-bottom: 1px solid var(--border-soft);
}
.check-list li:last-child { border-bottom: none; }
.check-list li::before {
  content: "✓";
  position: absolute; left: 0.25rem;
  color: var(--ok);
  font-weight: 700;
}
.check-list code { font-size: 0.82em; }

/* proven / not-proven split */
.proof-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}
.proof-col {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem 1.6rem;
  position: relative;
  overflow: hidden;
}
.proof-col::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 4px; height: 100%;
}
.proof-yes::before { background: var(--ok); }
.proof-no::before  { background: var(--hot); }
.proof-tag {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  margin-bottom: 1rem;
}
.proof-yes .proof-tag { background: color-mix(in srgb, var(--ok) 12%, transparent); color: var(--ok); }
.proof-no  .proof-tag { background: color-mix(in srgb, var(--hot) 12%, transparent); color: var(--hot); }
.proof-col ul { list-style: none; padding: 0; margin: 0; }
.proof-col li {
  padding: 0.5rem 0;
  font-size: 0.9rem;
  color: var(--text-soft);
  border-bottom: 1px solid var(--border-soft);
}
.proof-col li:last-child { border-bottom: none; }
.proof-col li strong { color: var(--text); }
@media (max-width: 860px) {
  .proof-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  margin-top: 4rem;
  padding-top: 3rem;
  border-top: 1px solid var(--border-soft);
  background: linear-gradient(180deg, transparent 0%, color-mix(in srgb, var(--accent) 4%, transparent) 100%);
}
.footer-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 2rem;
  padding-bottom: 3rem;
}
.footer-brand {
  font-family: var(--mono);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--text);
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 0.75rem;
}
.footer-brand img { width: 24px; height: 24px; border-radius: 50%; }
.footer-tag {
  color: var(--text-muted);
  font-size: 0.9rem;
  max-width: 320px;
}
.footer-col h4 {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--text-dim);
  margin: 0.4rem 0 0.9rem;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: 0.6rem; }
.footer-col a {
  color: var(--text-muted);
  font-size: 0.93rem;
}
.footer-col a:hover { color: var(--text); }
.footer-bottom {
  border-top: 1px solid var(--border-soft);
  padding: 2rem 1.5rem;
  color: var(--text-dim);
  font-size: 0.86rem;
  text-align: center;
}
.footer-bottom p { margin: 0.5rem 0; }

@media (max-width: 800px) {
  .footer-inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 500px) {
  .footer-inner { grid-template-columns: 1fr; }
}

::selection { background: color-mix(in srgb, var(--accent) 35%, transparent); color: var(--text); }

/* Tor onion mirror. currentColor + opacity so this inherits each footer's own
   colour rather than needing per-site theme variables. user-select:all lets one
   click grab the whole 56-character address; word-break stops it overflowing on
   a phone. No JS, so it still works at Tor Browser's Safest level. */
.onion-line {
  margin-top: 1.1em;
  font-size: 0.72rem;
  line-height: 1.55;
}
.onion-line .onion-label {
  display: block;
  opacity: 0.55;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.onion-line a {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  word-break: break-all;
  -webkit-user-select: all;
  user-select: all;
  color: currentColor;
  opacity: 0.75;
  text-decoration: none;
}
.onion-line a:hover { opacity: 1; text-decoration: underline; }

/* ---- Language switcher --------------------------------------------------
   Plain links, no JS. Tor Browser at its Safest level runs no script, and a
   reader who needs a language other than English is exactly the person who may
   be browsing that way. Each language names itself: a switcher that says
   "German" in English is no use to someone who does not read English. */
.langs {
  margin: 0 0 1.5rem;
}
.langs ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.3rem 0.9rem;
  font-size: 0.82rem;
  line-height: 1.6;
}
.langs a {
  color: var(--text-dim);
  text-decoration: none;
}
.langs a:hover {
  color: var(--accent);
}
.langs a[aria-current] {
  color: var(--accent);
  font-weight: 600;
}

/* ---- Right-to-left (Arabic, Farsi) --------------------------------------
   The layout is flex and grid throughout, so it mirrors on its own once
   dir="rtl" is set. Only the absolutely positioned list markers and the accent
   bar carry a physical side and have to be moved. The mesh blobs are
   decorative background and are deliberately left where they are. */
[dir="rtl"] .feature-list li {
  padding-left: 0;
  padding-right: 1.6rem;
}
[dir="rtl"] .feature-list li::before {
  left: auto;
  right: 0.2rem;
}
[dir="rtl"] .check-list li {
  padding-left: 0;
  padding-right: 1.9rem;
}
[dir="rtl"] .check-list li::before {
  left: auto;
  right: 0.25rem;
}
[dir="rtl"] .proof-col::before {
  left: auto;
  right: 0;
}
