/* ==========================================================================
   Verbwire — Legacy Landing Page

   Nice. You're reading the CSS.
   The kind of person who inspects stylesheets is the kind of person we hire.
   Also: try the Konami code.
   ========================================================================== */

:root {
  --bg:        #09090b;
  --bg-soft:   #111113;
  --bg-card:   #16161a;
  --bg-code:   #0d0d11;
  --border:    #27272a;
  --border-hi: #3f3f46;

  --text:       #a1a1aa;
  --text-strong:#fafafa;
  --text-muted: #71717a;

  --accent:    #a78bfa;
  --accent-2:  #818cf8;
  --accent-dim:#7c3aed;
  --green:     #34d399;
  --amber:     #fbbf24;

  --section-y: clamp(3.5rem, 8vw, 6rem);

  --font-sans: "Inter", system-ui, -apple-system, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, monospace;

  --r-sm: 6px;
  --r: 10px;
  --r-lg: 14px;
  --r-xl: 20px;

  --ease: cubic-bezier(0.22, 0.68, 0, 1);
}

/* ---------- Reset -------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

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

::selection { background: rgba(167, 139, 250, 0.3); color: var(--text-strong); }

a { color: var(--accent); text-decoration: none; }
img { max-width: 100%; display: block; }
h1, h2, h3, h4 { margin: 0; color: var(--text-strong); font-weight: 700; letter-spacing: -0.02em; }
p { margin: 0; }
ol, ul { margin: 0; padding: 0; }

/* CRITICAL: constrain ALL SVGs globally so none blow up */
svg { display: block; flex-shrink: 0; overflow: visible; }

code {
  font-family: var(--font-mono);
  font-size: 0.82em;
  padding: 0.12em 0.4em;
  border-radius: 4px;
  background: rgba(167, 139, 250, 0.1);
  border: 1px solid rgba(167, 139, 250, 0.12);
  color: var(--accent);
}

.container {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Nav ---------------------------------------------------------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  backdrop-filter: blur(16px) saturate(1.6);
  -webkit-backdrop-filter: blur(16px) saturate(1.6);
  background: rgba(9, 9, 11, 0.8);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 52px;
}

.nav-logo {
  height: 24px;
  width: auto;
  filter: invert(1);
}

.nav-badge {
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  border: 1px solid rgba(167, 139, 250, 0.3);
  background: rgba(167, 139, 250, 0.08);
  padding: 2px 10px;
  border-radius: 999px;
}

/* ---------- Hero --------------------------------------------------------- */
.hero {
  position: relative;
  padding: calc(52px + clamp(3rem, 6vw, 5rem)) 0 clamp(1.5rem, 3vw, 2.5rem);
  overflow: hidden;
}

.hero-inner { position: relative; z-index: 1; text-align: center; }

.hero-eyebrow {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  margin-bottom: 1.25rem;
  padding: 4px 14px;
  border: 1px solid rgba(167, 139, 250, 0.25);
  background: rgba(167, 139, 250, 0.06);
  border-radius: 999px;
}

.hero-title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
  font-weight: 800;
  margin-bottom: 1.25rem;
}

.hero-title em { font-style: normal; color: var(--accent); }

.hero-gradient {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 40%, var(--green) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-lead {
  font-size: clamp(0.9rem, 1vw + 0.4rem, 1.05rem);
  max-width: 600px;
  margin: 0 auto;
  color: var(--text);
  line-height: 1.7;
}

.hero-glow {
  position: absolute;
  top: -200px; left: 50%; transform: translateX(-50%);
  width: 800px; height: 500px;
  background: radial-gradient(ellipse, rgba(167, 139, 250, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

/* ---------- Impact strip ------------------------------------------------- */
.impact {
  padding: 24px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg-soft);
}

.impact-grid {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.impact-item {
  text-align: center;
  flex: 1 1 0;
  min-width: 100px;
}

.impact-value {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-strong);
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.impact-label {
  font-size: 0.65rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-top: 2px;
  white-space: nowrap;
}

@media (max-width: 640px) {
  .impact-grid { justify-content: center; gap: 20px 32px; }
  .impact-item { flex: 0 0 auto; min-width: 80px; }
}

/* ---------- Section headers ---------------------------------------------- */
.section-header {
  text-align: center;
  margin-bottom: clamp(1.5rem, 3vw, 2.5rem);
}

.section-eyebrow {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--green);
  margin-bottom: 0.75rem;
  padding: 3px 12px;
  border: 1px solid rgba(52, 211, 153, 0.2);
  background: rgba(52, 211, 153, 0.06);
  border-radius: 999px;
}

.section-title {
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  line-height: 1.2;
  margin-bottom: 0.6rem;
}

.section-lead {
  font-size: clamp(0.88rem, 0.9vw + 0.4rem, 0.98rem);
  color: var(--text);
  max-width: 520px;
  margin: 0 auto;
  line-height: 1.6;
}

/* ---------- Code showcase ------------------------------------------------ */
.code-section { padding: var(--section-y) 0; }
.code-showcase { max-width: 680px; margin: 0 auto; }

.code-tabs {
  display: flex;
  gap: 2px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-bottom: none;
  border-radius: var(--r-lg) var(--r-lg) 0 0;
  padding: 4px 4px 0;
  overflow-x: auto;
  scrollbar-width: none;
}
.code-tabs::-webkit-scrollbar { display: none; }

.code-tab {
  flex: 0 0 auto;
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 500;
  padding: 6px 12px;
  cursor: pointer;
  border-radius: var(--r-sm) var(--r-sm) 0 0;
  transition: color 0.15s, background 0.15s;
  white-space: nowrap;
}

.code-tab:hover { color: var(--text); background: rgba(255,255,255,0.03); }
.code-tab.active { color: var(--accent); background: var(--bg-code); }

.code-window {
  position: relative;
  background: var(--bg-code);
  border: 1px solid var(--border);
  border-top: none;
  border-radius: 0 0 var(--r-lg) var(--r-lg);
  overflow: hidden;
}

.code-chrome {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  background: rgba(255,255,255,0.015);
}

.code-chrome .dot {
  width: 10px; height: 10px; border-radius: 50%;
  display: inline-block;
}
.dot.red    { background: #ff5f57; }
.dot.yellow { background: #febc2e; }
.dot.green  { background: #28c840; }

.code-filename {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--text-muted);
}

.code-block {
  margin: 0;
  padding: 16px 20px 20px;
  font-family: var(--font-mono);
  font-size: clamp(0.72rem, 0.8vw, 0.82rem);
  line-height: 1.8;
  color: var(--text);
  min-height: 220px;
  overflow-x: auto;
  tab-size: 2;
}

.code-block .kw    { color: #c084fc; }
.code-block .fn    { color: #818cf8; }
.code-block .str   { color: #34d399; }
.code-block .cm    { color: #52525b; font-style: italic; }
.code-block .prop  { color: #f9a8d4; }
.code-block .num   { color: #fbbf24; }
.code-block .op    { color: #71717a; }
.code-block .flag  { color: #67e8f9; }

.code-cursor {
  position: absolute;
  width: 2px; height: 1.15em;
  background: var(--accent);
  pointer-events: none;
}
.code-cursor.blink { animation: blink 1s steps(2) infinite; }
@keyframes blink { 0%,100% { opacity: 1; } 50% { opacity: 0; } }

/* ---------- Wallet-as-a-Service ------------------------------------------ */
.wallet-section {
  padding: var(--section-y) 0;
  background: var(--bg);
}

.wallet-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  max-width: 960px;
  margin: 0 auto;
}

@media (max-width: 800px) {
  .wallet-layout { grid-template-columns: 1fr; gap: 32px; }
}

.wallet-copy .section-title {
  text-align: left;
  font-size: clamp(1.25rem, 2vw, 1.65rem);
  margin-bottom: 0.85rem;
}

.wallet-lead {
  font-size: 0.88rem;
  color: var(--text);
  line-height: 1.65;
  margin-bottom: 1rem;
}

.wallet-highlight {
  display: flex;
  gap: 12px;
  padding: 14px 16px;
  background: rgba(167, 139, 250, 0.06);
  border: 1px solid rgba(167, 139, 250, 0.15);
  border-radius: var(--r);
  margin-bottom: 1rem;
  font-size: 0.82rem;
  line-height: 1.55;
  color: var(--text);
}

.wallet-highlight strong {
  color: var(--text-strong);
  display: block;
  margin-bottom: 2px;
}

.wallet-highlight-icon {
  width: 32px; height: 32px;
  min-width: 32px; min-height: 32px;
  max-width: 32px; max-height: 32px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 8px;
  background: rgba(167, 139, 250, 0.12);
  color: var(--accent);
  margin-top: 2px;
}

.wallet-highlight-icon svg {
  width: 16px; height: 16px;
  min-width: 16px; min-height: 16px;
  max-width: 16px; max-height: 16px;
}

.wallet-features {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.wallet-features li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  color: var(--text);
}

/* Explicit SVG sizing for wallet feature checkmarks */
.wallet-features li svg {
  width: 16px;
  height: 16px;
  min-width: 16px;
  min-height: 16px;
  max-width: 16px;
  max-height: 16px;
  color: var(--green);
}

/* Wallet demo cards */
.wallet-card-stack {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.w-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 16px 20px;
}

.w-card--send {
  transition: opacity 0.4s var(--ease), border-color 0.3s, box-shadow 0.3s;
}

.w-card--send.active {
  border-color: rgba(167, 139, 250, 0.35);
  box-shadow: 0 0 30px -8px rgba(167, 139, 250, 0.15);
}

.w-card--send.fade-out { opacity: 0.3; }

.w-card--done {
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease), border-color 0.3s, box-shadow 0.3s;
}

.w-card--done.show {
  opacity: 1;
  transform: translateY(0);
  border-color: rgba(52, 211, 153, 0.35);
  box-shadow: 0 0 30px -8px rgba(52, 211, 153, 0.15);
}

.w-card--done.fade-out { opacity: 0; transform: translateY(6px); }

.w-card-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.w-card-icon {
  width: 32px;
  height: 32px;
  min-width: 32px;
  min-height: 32px;
  max-width: 32px;
  max-height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* Explicit SVG sizing inside card icons */
.w-card-icon svg {
  width: 16px;
  height: 16px;
  min-width: 16px;
  min-height: 16px;
  max-width: 16px;
  max-height: 16px;
}

.w-card-icon--send {
  background: rgba(167, 139, 250, 0.12);
  border: 1px solid rgba(167, 139, 250, 0.2);
  color: var(--accent);
}

.w-card-icon--done {
  background: rgba(52, 211, 153, 0.12);
  border: 1px solid rgba(52, 211, 153, 0.2);
  color: var(--green);
}

.w-card-title {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-strong);
}

.w-send-details {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-bottom: 12px;
}

.w-send-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 0;
  border-bottom: 1px solid rgba(255,255,255,0.04);
}
.w-send-row:last-child { border-bottom: none; }

.w-send-label {
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.w-send-value {
  font-size: 0.8rem;
  color: var(--text-strong);
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 6px;
}

.w-send-email {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--green);
}

.chain-dot-sm {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--c);
  display: inline-block;
}

.w-progress {
  height: 2px;
  background: rgba(255,255,255,0.06);
  border-radius: 1px;
  overflow: hidden;
  margin-bottom: 8px;
}

.w-progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--accent), var(--green));
  border-radius: 1px;
  transition: width 0.1s linear;
  position: relative;
  overflow: hidden;
}

.w-progress-bar::after {
  content: '';
  position: absolute;
  top: 0; left: -50%; width: 50%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  animation: shimmer 1.2s ease infinite;
}

@keyframes shimmer {
  0% { left: -50%; }
  100% { left: 150%; }
}

.w-send-recipient {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--green);
  min-height: 1.2em;
}

.w-send-recipient .cursor {
  display: inline-block;
  width: 1px;
  height: 1em;
  background: var(--green);
  margin-left: 1px;
  vertical-align: text-bottom;
  animation: blink 0.8s steps(2) infinite;
}

.w-status {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  color: var(--text-muted);
}

.w-status-dot {
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--amber);
  display: inline-block;
  animation: pulse-dot 1.5s ease infinite;
}

.w-status.done .w-status-dot { background: var(--green); animation: none; }
.w-status.done { color: var(--green); }

@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

.w-done-msg {
  font-size: 0.8rem;
  color: var(--text);
  line-height: 1.5;
  margin-bottom: 6px;
}

.w-done-hash {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--text-muted);
  padding: 3px 8px;
  background: rgba(255,255,255,0.03);
  border-radius: 4px;
  display: inline-block;
}

/* ---------- Capabilities ------------------------------------------------- */
.capabilities { padding: var(--section-y) 0; }

.cap-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
}

@media (max-width: 768px) {
  .cap-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
  .cap-grid { grid-template-columns: 1fr; }
}

.cap-card {
  background: var(--bg-soft);
  padding: 20px;
  transition: background 0.2s;
}

.cap-card:hover { background: var(--bg-card); }

.cap-card--featured {
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.06), var(--bg-soft));
}

.cap-icon {
  width: 36px;
  height: 36px;
  min-width: 36px;
  min-height: 36px;
  max-width: 36px;
  max-height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: rgba(167, 139, 250, 0.1);
  border: 1px solid rgba(167, 139, 250, 0.12);
  color: var(--accent);
  margin-bottom: 12px;
  overflow: hidden;
}

/* Explicit SVG sizing for capability icons */
.cap-icon svg {
  width: 18px;
  height: 18px;
  min-width: 18px;
  min-height: 18px;
  max-width: 18px;
  max-height: 18px;
}

.cap-card h3 {
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 6px;
}

.cap-card p {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.55;
}

/* ---------- Chains ------------------------------------------------------- */
.chains { padding: var(--section-y) 0; }

.network-wrap {
  position: relative;
  width: 100%;
  max-width: 700px;
  margin: 0 auto 28px;
  aspect-ratio: 7 / 4;
}

#network-canvas {
  width: 100%;
  height: 100%;
  display: block;
}

.chain-code {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.chain-code code { font-size: 0.82rem; padding: 6px 12px; }
.chain-code .kw { color: #c084fc; }
.chain-code .op { color: #71717a; }
.chain-code .str { color: #34d399; }

.chain-arrow {
  width: 18px; height: 18px;
  min-width: 18px; min-height: 18px;
  max-width: 18px; max-height: 18px;
  color: var(--text-muted);
}

.chain-code-label {
  width: 100%;
  text-align: center;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 6px;
}

/* ---------- Architecture ------------------------------------------------- */
.arch { padding: var(--section-y) 0; }

.arch-compare {
  display: grid;
  grid-template-columns: 1fr 40px 1fr;
  gap: 0;
  align-items: center;
  max-width: 680px;
  margin: 0 auto;
}

@media (max-width: 640px) {
  .arch-compare { grid-template-columns: 1fr; gap: 12px; }
  .arch-vs { justify-self: center; }
}

.arch-col {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 20px;
}

.arch-col h3 {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 16px;
  font-weight: 600;
}

.arch-col ol { list-style: none; counter-reset: step; }

.arch-col ol li {
  counter-increment: step;
  position: relative;
  padding-left: 28px;
  margin-bottom: 6px;
  font-size: 0.82rem;
  color: var(--text);
}

.arch-col ol li::before {
  content: counter(step);
  position: absolute; left: 0;
  font-size: 0.65rem; font-weight: 700;
  width: 20px; height: 20px;
  text-align: center; line-height: 20px;
  border-radius: 50%;
  border: 1px solid var(--border);
  color: var(--text-muted);
}

.arch-col ol li code { font-size: 0.78em; padding: 1px 5px; }

.arch-col--old ol li {
  color: var(--text-muted);
  text-decoration: line-through;
  text-decoration-color: rgba(113,113,122,0.3);
}
.arch-col--old ol li::before { border-color: #3f3f46; color: #52525b; }

.arch-col--new ol li { color: var(--text-strong); }
.arch-col--new ol li::before {
  border-color: var(--accent-dim);
  color: var(--accent);
  background: rgba(167, 139, 250, 0.1);
}

.arch-col--new {
  border-color: rgba(167, 139, 250, 0.25);
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.06), var(--bg-card));
}

.arch-vs {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  align-self: center;
  justify-self: center;
}

.arch-time {
  margin-top: 16px; padding-top: 12px;
  border-top: 1px solid var(--border);
  font-size: 0.82rem; color: var(--text-muted); font-weight: 500;
}

.arch-time--fast { color: var(--green); }

/* ---------- Engineering / Under the hood --------------------------------- */
.eng { padding: var(--section-y) 0; }

.eng-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
}

@media (max-width: 640px) {
  .eng-grid { grid-template-columns: 1fr; }
}

.eng-category {
  background: var(--bg-soft);
  padding: 20px;
}

.eng-category h3 {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-bottom: 10px;
  font-weight: 600;
}

.eng-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.eng-pill {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  padding: 3px 8px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text-muted);
  white-space: nowrap;
  transition: border-color 0.15s, color 0.15s;
}

.eng-pill:hover {
  border-color: var(--border-hi);
  color: var(--text);
}

/* ---------- Community ---------------------------------------------------- */
.community { padding: var(--section-y) 0; }

.community-card {
  max-width: 580px;
  margin: 0 auto;
  text-align: center;
  padding: 28px 32px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
}

.community-icon {
  width: 36px;
  height: 36px;
  min-width: 36px;
  min-height: 36px;
  max-width: 36px;
  max-height: 36px;
  margin: 0 auto 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: rgba(167, 139, 250, 0.1);
  border: 1px solid rgba(167, 139, 250, 0.12);
  color: var(--accent);
  overflow: hidden;
}

/* Explicit SVG sizing for community icon */
.community-icon svg {
  width: 18px;
  height: 18px;
  min-width: 18px;
  min-height: 18px;
  max-width: 18px;
  max-height: 18px;
}

.community-card h2 {
  font-size: 1.1rem;
  margin-bottom: 10px;
}

.community-card p {
  font-size: 0.88rem;
  color: var(--text);
  line-height: 1.7;
  max-width: 500px;
  margin: 0 auto;
}

/* ---------- Letter ------------------------------------------------------- */
.letter { padding: var(--section-y) 0; }

.letter-card {
  max-width: 580px;
  margin: 0 auto;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 28px 32px;
}

.letter-card h2 { font-size: 1.1rem; margin-bottom: 16px; }
.letter-card p { color: var(--text); line-height: 1.7; margin-bottom: 14px; font-size: 0.9rem; }
.letter-card p:last-of-type { margin-bottom: 0; }

.letter-signoff {
  font-size: 1rem;
  font-weight: 700;
  font-style: italic;
  color: var(--text-strong);
  margin-top: 8px;
  margin-bottom: 0;
  background: linear-gradient(135deg, var(--accent), var(--green));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.founders {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.founder {
  display: flex;
  align-items: center;
  gap: 12px;
}

.founder-photo {
  width: 48px;
  height: 48px;
  min-width: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--border);
}

.founder-info {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.founder-info strong {
  font-size: 0.88rem;
  color: var(--text-strong);
  line-height: 1.2;
}

.founder-info span {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.founder-links {
  display: flex;
  gap: 8px;
  margin-top: 4px;
}

.founder-links a {
  color: var(--text-muted);
  transition: color 0.15s;
  display: flex;
  align-items: center;
}

.founder-links a:hover { color: var(--text-strong); }

.founder-links a svg {
  width: 14px; height: 14px;
  min-width: 14px; min-height: 14px;
  max-width: 14px; max-height: 14px;
}

/* ---------- Footer ------------------------------------------------------- */
.footer { border-top: 1px solid var(--border); padding: 20px 0; }

.footer-inner {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 12px;
}

.footer-logo { height: 18px; width: auto; opacity: 0.35; filter: invert(1); }
.footer-copy { font-size: 0.75rem; color: var(--text-muted); }
.footer-links a { font-size: 0.75rem; color: var(--text-muted); }
.footer-links a:hover { color: var(--text-strong); }

/* ---------- Reveal animations -------------------------------------------- */
.reveal {
  opacity: 0; transform: translateY(20px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}
.reveal.visible { opacity: 1; transform: translateY(0); }

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

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

/* ---------- Konami overlay ----------------------------------------------- */
.konami-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(9, 9, 11, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  align-items: center;
  justify-content: center;
}

.konami-overlay.active { display: flex; }

.konami-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--accent);
  border-radius: var(--r-xl);
  padding: 40px 36px;
  max-width: 420px;
  text-align: center;
  box-shadow: 0 0 60px -10px rgba(167, 139, 250, 0.3);
  animation: konami-in 0.4s var(--ease) both;
}

@keyframes konami-in {
  from { opacity: 0; transform: scale(0.92) translateY(20px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.konami-close {
  position: absolute;
  top: 14px; right: 18px;
  font-size: 1.4rem;
  color: var(--text-muted);
  cursor: pointer;
  line-height: 1;
  transition: color 0.15s;
}
.konami-close:hover { color: var(--text-strong); }

.konami-art {
  font-family: var(--font-mono);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--accent);
  margin: 0 0 16px;
  line-height: 1;
}

.konami-card h2 {
  font-size: 1.25rem;
  margin-bottom: 12px;
}

.konami-card p {
  font-size: 0.88rem;
  color: var(--text);
  line-height: 1.6;
  margin-bottom: 10px;
}

.konami-links {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-top: 16px;
}

.konami-links a {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--accent);
  padding: 6px 14px;
  border: 1px solid rgba(167, 139, 250, 0.25);
  border-radius: 999px;
  transition: background 0.15s, border-color 0.15s;
}

.konami-links a:hover {
  background: rgba(167, 139, 250, 0.1);
  border-color: var(--accent);
}
