/* ============================================================
   SPECTRA — stylesheet
   The Swiss Army Knife of Crypto Wallets
   ============================================================ */

:root {
  --bg: #0a0a0b;
  --bg-2: #111113;
  --bg-3: #16161a;
  --line: #1f1f24;
  --line-2: #2a2a30;
  --fg: #f3f3f1;
  --fg-2: #b6b6b0;
  --fg-3: #6e6e68;
  --green: #4ade80;
  --yellow: #facc15;
  --serif: 'Space Grotesk', system-ui, -apple-system, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;
  --max: 1280px;
  --pad: clamp(20px, 4vw, 64px);

  /* Spectrum palette — muted, easy on the eyes */
  --rainbow: linear-gradient(90deg, #b3005e, #b33000, #8f7000, #007a44, #0070a8, #6600aa);
  --rainbow-diag: linear-gradient(135deg, #b3005e 0%, #b33000 20%, #8f7000 40%, #007a44 60%, #0070a8 80%, #6600aa 100%);
  --s-pink:   #b3005e;
  --s-orange: #b33000;
  --s-yellow: #8f7000;
  --s-green:  #007a44;
  --s-blue:   #0070a8;
  --s-violet: #7733aa;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

/* ============================================================
   Crypto-icon background grid with cursor bulge
   ============================================================ */
.crypto-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  --mx: 50vw;
  --my: 50vh;
}
.crypto-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    420px circle at var(--mx) var(--my),
    rgba(255,255,255,0.035),
    transparent 70%
  );
  transition: background .2s ease;
}
.crypto-cell {
  position: absolute;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform .6s cubic-bezier(0.2, 0.9, 0.2, 1),
              opacity .5s ease,
              filter .5s ease;
  will-change: transform, opacity;
  opacity: 0.09;
  filter: grayscale(1) brightness(0.85) blur(0.4px);
  animation: cell-drift 14s ease-in-out infinite;
}
.crypto-cell img {
  width: 28px;
  height: 28px;
  display: block;
  pointer-events: none;
  user-select: none;
}
@keyframes cell-drift {
  0%, 100% { transform: translate(0, 0); }
  50%      { transform: translate(var(--dx, 0px), var(--dy, 0px)); }
}
body > main, body > nav, body > footer, body > section, body > .lang-switcher {
  position: relative;
  z-index: 1;
}

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--serif);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  position: relative;
}

a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
button { font: inherit; cursor: pointer; }

/* ============================================================
   GRAIN + CURSOR GLOW
   ============================================================ */
.grain {
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 1000;
  opacity: .035;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.cursor-glow {
  position: fixed;
  top: 0; left: 0;
  width: 520px; height: 520px;
  border-radius: 50%;
  background: radial-gradient(circle, hsla(300,80%,40%,0.15) 0%, transparent 65%);
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 1;
  transition: opacity .4s ease;
  filter: blur(24px) hue-rotate(0deg);
  will-change: transform;
  animation: rainbow-glow 5s linear infinite;
}
@keyframes rainbow-glow {
  to { filter: blur(24px) hue-rotate(360deg); }
}

/* ============================================================
   BRAND MARK
   ============================================================ */
.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px; height: 28px;
  background: linear-gradient(135deg, #b3005e, #b33000, #8f7000, #007a44, #0070a8, #7733aa, #b3005e);
  background-size: 800% 800%;
  animation: spectrum-shift var(--spec-dur, 40s) cubic-bezier(0.65, 0.05, 0.35, 0.95) infinite var(--spec-delay, 0s);
  color: #fff;
  font-weight: 900;
  font-size: 16px;
  letter-spacing: -0.02em;
  border-radius: 5px;
  flex-shrink: 0;
}
.brand-mark--lg {
  width: 32px; height: 32px;
  font-size: 18px;
  border-radius: 6px;
}

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px var(--pad);
  background: rgba(10,10,11,0.72);
  backdrop-filter: blur(12px) saturate(140%);
  -webkit-backdrop-filter: blur(12px) saturate(140%);
  border-bottom: 1px solid var(--line);
}

.brand {
  display: flex; align-items: center; gap: 10px;
  font-weight: 800;
  letter-spacing: 0.18em;
  font-size: 14px;
}

.nav-links {
  display: flex; gap: 28px;
  align-items: center;
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: 0.04em;
}

.nav-links a {
  color: var(--fg-2);
  transition: color .2s ease;
}
.nav-links a:hover { color: var(--fg); }

.nav-cta {
  padding: 8px 16px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  color: var(--fg) !important;
  transition: all .2s ease;
}
.nav-cta:hover {
  background: linear-gradient(135deg, #b3005e, #b33000, #8f7000, #007a44, #0070a8, #7733aa, #b3005e);
  background-size: 800% 800%;
  animation: spectrum-shift var(--spec-dur, 40s) cubic-bezier(0.65, 0.05, 0.35, 0.95) infinite var(--spec-delay, 0s);
  border-color: transparent;
}

.lang-picker {
  position: relative;
  margin-left: 4px;
}

.lang-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background: transparent;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  color: var(--fg-3);
  font-size: 12px;
  font-weight: 600;
  font-family: var(--mono);
  letter-spacing: 0.1em;
  cursor: pointer;
  transition: all .2s ease;
}
.lang-toggle:hover {
  color: var(--fg);
  border-color: var(--fg-3);
}
.lang-toggle:active { transform: scale(0.95); }

.lang-chevron {
  font-size: 10px;
  opacity: .6;
  transition: transform .2s ease;
}
.lang-toggle[aria-expanded="true"] .lang-chevron {
  transform: rotate(180deg);
}

.lang-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: var(--bg-2);
  border: 1px solid var(--line-2);
  border-radius: 10px;
  padding: 6px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 160px;
  box-shadow: 0 16px 40px rgba(0,0,0,.5);
  z-index: 200;
}
.lang-dropdown[hidden] { display: none; }

.lang-option {
  display: block;
  width: 100%;
  padding: 9px 14px;
  background: transparent;
  border: none;
  border-radius: 6px;
  color: var(--fg-2);
  font-size: 13px;
  font-family: var(--mono);
  letter-spacing: 0.06em;
  text-align: left;
  cursor: pointer;
  transition: all .15s ease;
}
.lang-option:hover {
  background: var(--bg-3);
  color: var(--fg);
}
.lang-option--active {
  color: var(--fg);
  background: linear-gradient(135deg, #b3005e, #b33000, #8f7000, #007a44, #0070a8, #7733aa, #b3005e);
  background-size: 800% 800%;
  animation: spectrum-shift var(--spec-dur, 40s) cubic-bezier(0.65, 0.05, 0.35, 0.95) infinite var(--spec-delay, 0s);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 700;
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  padding: clamp(60px, 10vw, 140px) var(--pad) clamp(60px, 8vw, 100px);
  max-width: var(--max);
  margin: 0 auto;
  position: relative;
}
/* techy grid backdrop on hero */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 56px 56px;
  background-position: -1px -1px;
  -webkit-mask-image: radial-gradient(ellipse 80% 80% at 15% 30%, black 0%, transparent 75%);
          mask-image: radial-gradient(ellipse 80% 80% at 15% 30%, black 0%, transparent 75%);
  pointer-events: none;
  z-index: 0;
}
.hero > * { position: relative; z-index: 1; }

.hero-meta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--fg-3);
  letter-spacing: 0.12em;
  padding: 7px 16px;
  background: rgba(17,17,19,0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--line-2);
  border-radius: 999px;
  margin-bottom: 32px;
  box-shadow: 0 1px 0 rgba(255,255,255,0.03) inset;
}
.hm-label {
  color: var(--fg-3);
  opacity: 0.65;
  font-size: 10px;
}
.hm-val {
  color: var(--fg-2);
  font-weight: 600;
}
.hm-val--ok {
  color: var(--green);
  text-shadow: 0 0 12px rgba(74,222,128,0.35);
}
.hm-val--down {
  color: #f87171;
  text-shadow: 0 0 12px rgba(248,113,113,0.35);
}
.hero-meta.is-down .dot {
  background: #f87171;
  box-shadow: 0 0 10px rgba(248,113,113,.6);
}
.hm-sep {
  width: 3px; height: 3px;
  border-radius: 50%;
  background: var(--line-2);
}

.dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 10px rgba(74, 222, 128, .6);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  50% { opacity: .35; }
}

.hero-title {
  font-size: clamp(56px, 11vw, 168px);
  font-weight: 900;
  line-height: 0.92;
  letter-spacing: -0.045em;
  margin-bottom: 36px;
}
.hero-title .accent {
  filter: drop-shadow(0 0 40px rgba(179,0,94,0.25));
}

/* Gradient text for .accent */
.accent {
  background: linear-gradient(135deg, #b3005e, #b33000, #8f7000, #007a44, #0070a8, #7733aa, #b3005e);
  background-size: 800% 800%;
  animation: spectrum-shift var(--spec-dur, 40s) cubic-bezier(0.65, 0.05, 0.35, 0.95) infinite var(--spec-delay, 0s);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.muted { color: var(--fg-3); }

.hero-sub {
  font-size: clamp(18px, 1.6vw, 22px);
  color: var(--fg-2);
  max-width: 620px;
  margin-bottom: 44px;
  line-height: 1.5;
}

.hero-trust {
  font-size: 15px;
  color: var(--fg-3);
  line-height: 1.65;
  max-width: 580px;
  margin-bottom: 36px;
  padding-left: 16px;
  border-left: 2px solid transparent;
  border-image: var(--rainbow) 1;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 80px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 28px;
  font-weight: 600;
  font-size: 14.5px;
  letter-spacing: 0.02em;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  transition: all .25s ease;
}
.btn-primary {
  background: linear-gradient(135deg, #b3005e, #b33000, #8f7000, #007a44, #0070a8, #7733aa, #b3005e);
  background-size: 800% 800%;
  animation: spectrum-shift var(--spec-dur, 40s) cubic-bezier(0.65, 0.05, 0.35, 0.95) infinite var(--spec-delay, 0s);
  border-color: transparent;
  color: #fff;
  position: relative;
  box-shadow: 0 0 0 1px rgba(255,255,255,0.08) inset;
}
.btn-primary::before {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  background: inherit;
  background-size: 800% 800%;
  animation: inherit;
  filter: blur(18px);
  opacity: 0.45;
  z-index: -1;
  transition: opacity .3s ease;
}
.btn-primary:hover::before { opacity: 0.7; }

/* ============================================================
   Shared spectrum animation — used by every spectrum-themed
   surface and text gradient across the site. Each selector that
   opts in sets its own animation-delay so the page is never all
   one color at once.
   ============================================================ */
@keyframes spectrum-shift {
  0%   { background-position:   0%  50%; }
  20%  { background-position:  55%  15%; }
  40%  { background-position: 100%  55%; }
  60%  { background-position:  70%  95%; }
  80%  { background-position:  20%  65%; }
  100% { background-position:   0%  50%; }
}
.btn-primary:hover {
  transform: translateY(-2px);
  filter: brightness(1.08);
}
.btn-ghost {
  background: transparent;
  color: var(--fg-2);
}
.btn-ghost:hover {
  color: var(--fg);
  border-color: var(--fg);
  transform: translateY(-2px);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  padding-top: 40px;
  border-top: 1px solid var(--line);
}
.hero-stats > div {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.hero-stats b {
  font-size: clamp(28px, 3vw, 44px);
  font-weight: 800;
  letter-spacing: -0.02em;
}
.hero-stats span {
  font-size: 12.5px;
  color: var(--fg-3);
  font-family: var(--mono);
  letter-spacing: 0.02em;
  line-height: 1.3;
}

/* ============================================================
   MARQUEE
   ============================================================ */
.marquee {
  border-block: 1px solid var(--line);
  background: var(--bg-2);
  overflow: hidden;
  padding: 22px 0;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, black 8%, black 92%, transparent 100%);
          mask-image: linear-gradient(90deg, transparent 0%, black 8%, black 92%, transparent 100%);
}
.marquee-track {
  display: flex;
  gap: 36px;
  white-space: nowrap;
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.18em;
  color: var(--fg-3);
  animation: scroll 60s linear infinite;
  width: max-content;
}
.marquee-track span:nth-child(odd) { color: var(--fg-2); }
@keyframes scroll {
  to { transform: translateX(-50%); }
}

/* ============================================================
   SECTION SHELL
   ============================================================ */
.section {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(80px, 12vw, 160px) var(--pad);
  position: relative;
}

.section-label {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--fg-3);
  letter-spacing: 0.18em;
  margin-bottom: 32px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
  position: relative;
}
.section-label::after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 80px;
  height: 1px;
  background: linear-gradient(90deg, var(--s-pink), var(--s-violet), transparent);
  opacity: 0.6;
}
.section-label.dark {
  color: rgba(255,255,255,.5);
  border-color: rgba(255,255,255,.15);
}

.section-title {
  font-size: clamp(38px, 5.5vw, 84px);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.035em;
  margin-bottom: 28px;
}

.section-lead {
  font-size: clamp(17px, 1.4vw, 20px);
  color: var(--fg-2);
  max-width: 720px;
  margin-bottom: 56px;
}

/* ============================================================
   ETHOS
   ============================================================ */
.ethos-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: clamp(32px, 6vw, 80px);
}
.ethos-text h2 {
  font-size: clamp(36px, 5vw, 72px);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.035em;
  margin-bottom: 32px;
}
.strike { text-decoration: line-through; text-decoration-thickness: 4px; color: var(--fg-3); }
.ethos-text p {
  color: var(--fg-2);
  font-size: 17px;
  margin-bottom: 18px;
  max-width: 56ch;
}

.ethos-list {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 32px;
}
.ethos-list h3 {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fg-3);
  margin-bottom: 16px;
}
.ethos-list h3:not(:first-child) { margin-top: 32px; }
.ethos-list ul { list-style: none; }
.ethos-list li {
  font-size: 15px;
  padding: 8px 0 8px 28px;
  position: relative;
  color: var(--fg);
  border-bottom: 1px solid var(--line);
}
.ethos-list li:last-child { border-bottom: 0; }
.ethos-list .check li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 8px;
  color: var(--green);
  font-weight: 700;
}
.ethos-list .cross li::before {
  content: "✕";
  position: absolute;
  left: 0;
  top: 8px;
  color: var(--s-pink);
  font-weight: 700;
}

/* ============================================================
   FEATURES
   ============================================================ */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  margin-top: 56px;
}
.feature {
  background: var(--bg);
  padding: 36px 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 240px;
  transition: background .25s ease;
  position: relative;
  overflow: hidden;
}
.feature::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(179,0,94,0.5), rgba(119,51,170,0.5), transparent);
  opacity: 0;
  transition: opacity .3s ease;
}
.feature:hover { background: var(--bg-2); }
.feature:hover::before { opacity: 1; }
.feature:hover .feature-num {
  background: linear-gradient(135deg, #b3005e, #b33000, #8f7000, #007a44, #0070a8, #7733aa, #b3005e);
  background-size: 800% 800%;
  animation: spectrum-shift var(--spec-dur, 40s) cubic-bezier(0.65, 0.05, 0.35, 0.95) infinite var(--spec-delay, 0s);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.feature-num {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--fg-3);
  transition: color .25s ease;
}
.feature h3 {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.2;
}
.feature p {
  font-size: 14.5px;
  color: var(--fg-2);
  line-height: 1.55;
}

/* ============================================================
   MULTI-CHAIN
   ============================================================ */
.mc-header {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 80px);
  align-items: start;
  margin-bottom: 56px;
}
.mc-lead {
  font-size: clamp(16px, 1.3vw, 19px);
  color: var(--fg-2);
  line-height: 1.6;
  padding-top: 12px;
}

.mc-chain-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 64px;
}
.mc-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px 7px 8px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  color: var(--fg-2);
  transition: all .2s ease;
  cursor: default;
}
.mc-chip:hover {
  color: var(--fg);
  background: var(--bg-3);
  border-color: var(--line-2);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0,0,0,.4), 0 0 24px rgba(119,51,170,0.08);
}
.mc-icon {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.mc-pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.mc-pillar {
  background: var(--bg);
  padding: 40px 32px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: background .2s ease;
}
.mc-pillar:hover { background: var(--bg-2); }
.mc-pillar-num {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, #b3005e, #b33000, #8f7000, #007a44, #0070a8, #7733aa, #b3005e);
  background-size: 800% 800%;
  animation: spectrum-shift var(--spec-dur, 40s) cubic-bezier(0.65, 0.05, 0.35, 0.95) infinite var(--spec-delay, 0s);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.mc-pillar p {
  font-size: 15px;
  color: var(--fg-2);
  line-height: 1.6;
}

@media (max-width: 1024px) {
  .mc-header   { grid-template-columns: 1fr; }
  .mc-pillars  { grid-template-columns: 1fr; }
}

/* ============================================================
   DIAGNOSTICS / TERMINAL
   ============================================================ */
.diag-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: start;
}
.diag-text h2 {
  font-size: clamp(34px, 4.5vw, 64px);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.035em;
  margin-bottom: 28px;
}
.diag-text p {
  color: var(--fg-2);
  margin-bottom: 24px;
  font-size: 16px;
}
.diag-list {
  list-style: none;
  border-top: 1px solid var(--line);
}
.diag-list li {
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  color: var(--fg-2);
  font-size: 15px;
}
.diag-list b { color: var(--fg); font-weight: 600; }

.terminal {
  background: #0c0c0e;
  border: 1px solid var(--line-2);
  border-radius: 10px;
  overflow: hidden;
  position: relative;
  box-shadow:
    0 1px 0 rgba(255,255,255,0.04) inset,
    0 30px 80px rgba(0,0,0,.6),
    0 0 60px rgba(119,51,170,0.08);
}
.terminal::after {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    180deg,
    transparent 0px,
    transparent 2px,
    rgba(255,255,255,0.018) 2px,
    rgba(255,255,255,0.018) 3px
  );
  pointer-events: none;
  border-radius: inherit;
}
.terminal-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: #15151a;
  border-bottom: 1px solid var(--line-2);
}
.tdot { width: 12px; height: 12px; border-radius: 50%; }
.tdot-r { background: #ff5f56; }
.tdot-y { background: #ffbd2e; }
.tdot-g { background: #27c93f; }
.terminal-title {
  margin-left: 14px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--fg-3);
}
.terminal-body {
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.65;
  padding: 24px;
  color: #d4d4d2;
  min-height: 360px;
  white-space: pre-wrap;
  word-break: break-word;
}
.t-prompt { color: var(--s-violet); }
.t-ok     { color: var(--green); }
.t-warn   { color: var(--yellow); }
.t-dim    { color: var(--fg-3); }
.t-key    { color: #7dd3fc; }
.cursor-blink::after {
  content: "▍";
  color: var(--s-violet);
  animation: blink 1s steps(2) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

/* ============================================================
   LEGACY
   ============================================================ */
.legacy-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.legacy-card {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 32px 26px;
  transition: all .25s ease;
  position: relative;
  overflow: hidden;
}
.legacy-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(119,51,170,0.6), transparent);
  opacity: 0;
  transition: opacity .3s ease;
}
.legacy-card:hover {
  border-color: var(--line-2);
  box-shadow: 0 12px 40px rgba(0,0,0,0.4), 0 0 32px rgba(119,51,170,0.08);
  transform: translateY(-4px);
}
.legacy-card:hover::before { opacity: 1; }
.legacy-num {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.15em;
  margin-bottom: 18px;
  background: linear-gradient(135deg, #b3005e, #b33000, #8f7000, #007a44, #0070a8, #7733aa, #b3005e);
  background-size: 800% 800%;
  animation: spectrum-shift var(--spec-dur, 40s) cubic-bezier(0.65, 0.05, 0.35, 0.95) infinite var(--spec-delay, 0s);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.legacy-card h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}
.legacy-card p {
  font-size: 14px;
  color: var(--fg-2);
  line-height: 1.55;
}

/* ============================================================
   DOWNLOAD
   ============================================================ */
.download-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 40px;
}
.dl-card {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 36px 28px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: all .25s ease;
  position: relative;
  overflow: hidden;
}
.dl-card::after {
  content: "↓";
  position: absolute;
  top: 24px; right: 24px;
  font-size: 22px;
  color: var(--fg-3);
  transition: all .25s ease;
}
.dl-card:hover {
  background: linear-gradient(135deg, #b3005e, #b33000, #8f7000, #007a44, #0070a8, #7733aa, #b3005e);
  background-size: 800% 800%;
  animation: spectrum-shift var(--spec-dur, 40s) cubic-bezier(0.65, 0.05, 0.35, 0.95) infinite var(--spec-delay, 0s);
  border-color: transparent;
  transform: translateY(-4px);
}
.dl-card:hover .dl-meta,
.dl-card:hover .dl-size { color: rgba(255,255,255,.85); }
.dl-card:hover::after {
  color: #fff;
  transform: translateY(4px);
}
.dl-os {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}
.dl-meta {
  font-size: 13px;
  color: var(--fg-2);
}
.dl-size {
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--fg-3);
  margin-top: auto;
  padding-top: 16px;
}

.verify {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px 24px;
  display: flex;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
}
.verify-label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  background: linear-gradient(135deg, #b3005e, #b33000, #8f7000, #007a44, #0070a8, #7733aa, #b3005e);
  background-size: 800% 800%;
  animation: spectrum-shift var(--spec-dur, 40s) cubic-bezier(0.65, 0.05, 0.35, 0.95) infinite var(--spec-delay, 0s);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.verify code {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--fg-2);
}

/* ============================================================
   DONATE
   ============================================================ */
.donate {
  padding-top: 0;
}
.donate-card {
  background: linear-gradient(135deg, #b3005e, #b33000, #8f7000, #007a44, #0070a8, #7733aa, #b3005e);
  background-size: 800% 800%;
  animation: spectrum-shift var(--spec-dur, 40s) cubic-bezier(0.65, 0.05, 0.35, 0.95) infinite var(--spec-delay, 0s);
  border-radius: 16px;
  padding: clamp(48px, 6vw, 80px);
  color: #fff;
  position: relative;
  overflow: hidden;
}
.donate-card::before {
  content: "";
  position: absolute;
  top: -50%; right: -20%;
  width: 700px; height: 700px;
  background:
    repeating-linear-gradient(45deg, transparent 0 14px, rgba(255,255,255,0.05) 14px 16px);
  pointer-events: none;
}
.donate-card h2 {
  position: relative;
  font-size: clamp(34px, 5vw, 72px);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.035em;
  margin-bottom: 28px;
}
/* Override gradient text inside donate card — white on rainbow bg */
.donate-card .accent {
  background: none;
  -webkit-background-clip: unset;
  background-clip: unset;
  -webkit-text-fill-color: #fff;
  color: #fff;
}
.donate-card p {
  position: relative;
  font-size: 17px;
  max-width: 60ch;
  margin-bottom: 40px;
  color: rgba(255,255,255,.92);
}

.donate-soon {
  margin-top: 8px;
  padding: 22px 24px;
  border: 1px dashed rgba(255,255,255,0.18);
  border-radius: 10px;
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  text-align: center;
}
.donate-addresses {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.addr {
  display: flex;
  align-items: center;
  gap: 18px;
  background: rgba(0,0,0,0.28);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 8px;
  padding: 16px 22px;
  backdrop-filter: blur(8px);
}
.addr-label {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  padding: 4px 10px;
  background: #fff;
  color: #000;
  border-radius: 4px;
  flex-shrink: 0;
}
.addr code {
  font-family: var(--mono);
  font-size: 13px;
  color: rgba(255,255,255,.92);
  word-break: break-all;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  border-top: 1px solid var(--line);
  padding: 80px var(--pad) 32px;
  max-width: var(--max);
  margin: 0 auto;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 56px;
}
.footer-brand p {
  font-weight: 800;
  letter-spacing: 0.18em;
  font-size: 14px;
  margin: 12px 0 6px;
}
.footer-brand small {
  color: var(--fg-3);
  font-size: 13px;
}
.footer h4 {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fg-3);
  margin-bottom: 18px;
}
.footer a {
  display: block;
  padding: 6px 0;
  color: var(--fg-2);
  font-size: 14px;
  transition: all .2s ease;
}
.footer a:hover {
  background: linear-gradient(135deg, #b3005e, #b33000, #8f7000, #007a44, #0070a8, #7733aa, #b3005e);
  background-size: 800% 800%;
  animation: spectrum-shift var(--spec-dur, 40s) cubic-bezier(0.65, 0.05, 0.35, 0.95) infinite var(--spec-delay, 0s);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  padding-top: 28px;
  border-top: 1px solid var(--line);
  color: var(--fg-3);
  font-size: 12.5px;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-bottom .mono { font-family: var(--mono); }

/* ============================================================
   PROTOCOLS
   ============================================================ */
.proto-header {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 80px);
  align-items: start;
  margin-bottom: 56px;
}
.proto-lead {
  font-size: clamp(16px, 1.3vw, 19px);
  color: var(--fg-2);
  line-height: 1.6;
  padding-top: 12px;
}

.proto-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.proto-card {
  background: var(--bg);
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: background .2s ease;
  position: relative;
  overflow: hidden;
}
.proto-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0,112,168,0.5), rgba(119,51,170,0.5), transparent);
  opacity: 0;
  transition: opacity .3s ease;
}
.proto-card:hover { background: var(--bg-2); }
.proto-card:hover::before { opacity: 1; }
.proto-chain-tag {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  color: var(--fg-3);
  background: var(--bg-3);
  border: 1px solid var(--line-2);
  border-radius: 4px;
  padding: 3px 8px;
  display: inline-block;
  width: fit-content;
}
.proto-name {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
  background: linear-gradient(135deg, #b3005e, #b33000, #8f7000, #007a44, #0070a8, #7733aa, #b3005e);
  background-size: 800% 800%;
  animation: spectrum-shift var(--spec-dur, 40s) cubic-bezier(0.65, 0.05, 0.35, 0.95) infinite var(--spec-delay, 0s);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.proto-card p {
  font-size: 14.5px;
  color: var(--fg-2);
  line-height: 1.6;
}

@media (max-width: 1024px) {
  .proto-header { grid-template-columns: 1fr; }
  .proto-grid   { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .proto-grid   { grid-template-columns: 1fr; }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .legacy-grid  { grid-template-columns: repeat(2, 1fr); }
  .download-grid{ grid-template-columns: repeat(2, 1fr); }
  .ethos-grid   { grid-template-columns: 1fr; }
  .diag-grid    { grid-template-columns: 1fr; }
  .footer-grid  { grid-template-columns: 1fr 1fr; }
  .hero-stats   { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .nav-links a:not(.nav-cta) { display: none; }
  .feature-grid { grid-template-columns: 1fr; }
  .legacy-grid  { grid-template-columns: 1fr; }
  .download-grid{ grid-template-columns: 1fr; }
  .footer-grid  { grid-template-columns: 1fr; }
  .hero-stats   { grid-template-columns: 1fr; gap: 20px; }
  .footer-bottom { flex-direction: column; }
}
