/* MotaCoin — Test Website — Black & White Shared Stylesheet */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  /* Dark neutral foundation — kept black so imagery pops */
  --bg-deep: #000000;
  --bg-primary: #070b08;
  --bg-secondary: #0c1410;
  --bg-card: #0f1a13;
  --bg-card-hover: #142318;
  --bg-code: #0a110d;
  --bg-terminal: #050907;

  /* MotaCoin green accent (echoes the logo's leaf-cross ring) */
  --accent: #3fbf5e;
  --accent-bright: #5ad982;
  --accent-deep: #1e7a38;
  --accent-gold: #d4a024;
  --accent-dim: #6b9b6e;
  --accent-glow: rgba(63, 191, 94, 0.15);
  --accent-glow-strong: rgba(63, 191, 94, 0.42);

  /* Text stays neutral white/gray — green is for accent, not body text */
  --text-primary: #f2f6f2;
  --text-secondary: #b8c6bb;
  --text-muted: #7e8c80;
  --text-dim: #4c5a4f;

  /* Borders — subtle green-tinted by default, full-glow on hover */
  --border: #1d2a21;
  --border-accent: rgba(63, 191, 94, 0.28);
  --border-glow: rgba(63, 191, 94, 0.62);

  --shadow-card: 0 8px 32px rgba(0, 0, 0, 0.72);
  --shadow-glow: 0 0 40px rgba(63, 191, 94, 0.14);

  --radius: 14px;
  --radius-sm: 8px;
  --max-w: 1200px;
  --ease: 0.35s cubic-bezier(0.2, 0.7, 0.2, 1);
}

html { scroll-behavior: smooth; scroll-padding-top: 90px; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 17px;
  line-height: 1.65;
  color: var(--text-primary);
  background: var(--bg-deep);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  min-height: 100vh;
}

/* Ambient background — subtle green glow layered on black */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 10%, rgba(63, 191, 94, 0.08), transparent 55%),
    radial-gradient(ellipse at 80% 85%, rgba(212, 160, 36, 0.05), transparent 55%),
    radial-gradient(ellipse at 50% 50%, rgba(63, 191, 94, 0.03), transparent 70%);
  pointer-events: none;
  z-index: 0;
}

main, nav, header, footer { position: relative; z-index: 1; }

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

code, pre, .mono { font-family: 'JetBrains Mono', Menlo, Consolas, monospace; }

/* ========== NAV ========== */
.nav {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(14px);
  background: rgba(0, 0, 0, 0.82);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: 1680px;
  margin: 0 auto;
  padding: 14px 40px;
  display: flex; align-items: center; justify-content: space-between; gap: 32px;
  min-height: 140px;
}
.nav-brand { display: flex; align-items: center; gap: 18px; font-weight: 800; font-size: 32px; color: var(--text-primary); white-space: nowrap; flex-shrink: 0; }
.nav-brand:hover { color: var(--text-primary); }
.nav-brand img { width: 112px; height: 112px; filter: drop-shadow(0 0 20px rgba(63, 191, 94, 0.55)); }
.nav-brand > span { letter-spacing: 0.5px; white-space: nowrap; }
.nav-brand .ticker { color: var(--accent); font-weight: 800; margin-left: 4px; letter-spacing: 1px; }
.nav-right { display: flex; align-items: center; gap: 16px; flex-wrap: nowrap; }
.nav-links { display: flex; gap: 4px; align-items: center; flex-wrap: nowrap; }
.nav-links a {
  color: var(--text-secondary);
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 500;
  transition: all var(--ease);
  white-space: nowrap;
}
.nav-links a:hover { color: var(--text-primary); background: var(--bg-secondary); }
.nav-links a.cta {
  background: var(--accent);
  color: #031108 !important;
  font-weight: 700;
}
.nav-links a.cta:hover { background: var(--accent-bright); box-shadow: 0 0 24px var(--accent-glow-strong); color: #031108 !important; }

/* (Language pill removed 2026-04-24 — site is English-only) */

/* ========== HERO ========== */
.hero {
  width: 100%;
  padding: 80px 0 90px;
  text-align: center;
  position: relative;
  overflow: hidden;
  min-height: 88vh;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}
body { overflow-x: hidden; }  /* belt-and-suspenders against any stray overflow */
.hero-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 40px;
  /* On wide viewports, left-align so astronaut has its own space on the right */
  text-align: left;
  margin-left: max(40px, calc((100vw - 1680px) / 2 + 40px));
  max-width: min(680px, calc(100% - 80px));
}
.hero-inner .hero-logo { margin-left: 0; }
.hero-inner .hero-cta { justify-content: flex-start; }
@media (max-width: 900px) {
  .hero { justify-content: center; }
  .hero-inner {
    text-align: center;
    margin-left: auto; margin-right: auto;
    max-width: var(--max-w);
    padding: 0 28px;
  }
  .hero-inner .hero-logo { margin-left: auto; margin-right: auto; }
  .hero-inner .hero-cta { justify-content: center; }
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('../img/hero-splash.jpg');
  background-size: cover;
  background-position: center center;
  filter: brightness(0.95) contrast(1.05) saturate(1.1);
  z-index: 0;
  opacity: 1;
}
/* Text-readability vignette — dark at left where hero content sits, lighter on right where astronaut is */
.hero::after {
  content: '';
  position: absolute; inset: 0;
  background:
    linear-gradient(100deg, rgba(0,0,0,0.72) 0%, rgba(0,0,0,0.45) 40%, rgba(0,0,0,0.25) 70%, rgba(0,0,0,0.4) 100%),
    radial-gradient(ellipse at 30% 55%, rgba(0,0,0,0.35), transparent 60%);
  z-index: 0;
  pointer-events: none;
}
@media (max-width: 900px) {
  /* On narrow viewports center the mask so astronaut shows under logo */
  .hero::after {
    background: linear-gradient(180deg, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.4) 50%, rgba(0,0,0,0.55) 100%);
  }
}
.hero-logo {
  width: clamp(320px, 34vw, 520px); height: clamp(320px, 34vw, 520px);
  margin: 0 0 40px;
  filter: drop-shadow(0 0 100px rgba(63, 191, 94, 0.7)) drop-shadow(0 0 32px rgba(0, 0, 0, 0.9));
  animation: float 5s ease-in-out infinite;
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
.hero h1 {
  font-size: clamp(22px, 5.2vw, 68px);
  font-weight: 800;
  line-height: 1.12;
  margin-bottom: 20px;
  background: linear-gradient(135deg, #ffffff 0%, var(--accent) 55%, var(--accent-gold) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  letter-spacing: -0.01em;
}
.hero .tagline {
  font-size: clamp(17px, 2vw, 22px);
  color: var(--text-secondary);
  max-width: 760px; margin: 0 auto 14px;
  font-weight: 400;
}
.hero .subtag {
  font-size: 14.5px;
  color: var(--text-muted);
  max-width: 680px; margin: 0 auto 42px;
  font-family: 'JetBrains Mono', monospace;
}
.hero-cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  transition: all var(--ease);
  border: 1px solid transparent;
  cursor: pointer;
  border-bottom: none;
}
.btn-primary {
  background: var(--accent);
  color: #031108;
  box-shadow: 0 4px 24px var(--accent-glow-strong);
}
.btn-primary:hover {
  background: var(--accent-bright); color: #031108;
  transform: translateY(-2px);
  box-shadow: 0 8px 32px var(--accent-glow-strong);
}
.btn-secondary {
  background: transparent;
  color: var(--text-primary);
  border-color: var(--border-accent);
}
.btn-secondary:hover {
  border-color: var(--border-glow);
  background: var(--bg-secondary);
  color: var(--accent-bright);
  transform: translateY(-2px);
}

/* ========== STATS STRIP ========== */
.stats {
  max-width: var(--max-w);
  margin: 20px auto 80px;
  padding: 0 28px;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.stat {
  background: var(--bg-primary);
  padding: 22px 18px;
  text-align: center;
}
.stat-label {
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-dim);
  font-weight: 600;
  margin-bottom: 8px;
}
.stat-value {
  font-size: 22px;
  font-weight: 700;
  color: var(--accent-bright);
  font-family: 'JetBrains Mono', monospace;
}

/* ========== SECTIONS ========== */
section {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 70px 28px;
}
.section-head { text-align: center; margin-bottom: 52px; }
.section-eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 3px;
  color: var(--accent);
  text-transform: uppercase;
  padding: 6px 14px;
  background: var(--accent-glow);
  border: 1px solid var(--border-accent);
  border-radius: 999px;
  margin-bottom: 18px;
}
.section-head h2 {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 800;
  letter-spacing: -0.01em;
  margin-bottom: 14px;
}
.section-head p {
  color: var(--text-secondary);
  max-width: 680px; margin: 0 auto;
  font-size: 17px;
}

/* ========== FEATURE GRID ========== */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(310px, 1fr));
  gap: 22px;
}
.feature {
  display: flex; flex-direction: column;
  background: linear-gradient(180deg, var(--bg-card) 0%, var(--bg-primary) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: all var(--ease);
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
  color: var(--text-primary);
}
.feature::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(600px circle at var(--mx, 50%) var(--my, 0%), var(--accent-glow), transparent 40%);
  opacity: 0; transition: opacity var(--ease);
  pointer-events: none;
}
.feature:hover {
  transform: translateY(-4px);
  border-color: var(--border-glow);
  box-shadow: var(--shadow-card), var(--shadow-glow);
  color: var(--text-primary);
}
.feature:hover::before { opacity: 1; }
.feature-icon {
  width: 60px; height: 60px;
  border-radius: 14px;
  background: var(--accent-glow);
  border: 1px solid var(--border-accent);
  display: flex; align-items: center; justify-content: center;
  font-size: 28px;
  margin-bottom: 22px;
}
.feature-tag {
  display: inline-block;
  font-size: 10.5px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 10px;
}
.feature h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}
.feature p {
  color: var(--text-secondary);
  font-size: 15px;
  flex: 1;
  margin-bottom: 18px;
}
.feature-link {
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
  display: inline-flex; align-items: center; gap: 6px;
  transition: gap var(--ease);
}
.feature:hover .feature-link { gap: 10px; }

/* ========== CTA BAND ========== */
.cta-band {
  background: linear-gradient(135deg, var(--bg-card) 0%, var(--bg-secondary) 100%);
  border: 1px solid var(--border-accent);
  border-radius: var(--radius);
  padding: 50px 28px;
  text-align: center;
  margin: 0 28px 70px;
  max-width: calc(var(--max-w) - 56px);
  margin-left: auto; margin-right: auto;
  box-shadow: var(--shadow-glow);
}
.cta-band h2 { font-size: 30px; margin-bottom: 10px; font-weight: 800; }
.cta-band p { color: var(--text-secondary); margin-bottom: 28px; }

/* ========== FOOTER ========== */
footer {
  border-top: 1px solid var(--border);
  background: var(--bg-primary);
  padding: 40px 28px;
  text-align: center;
  color: var(--text-muted);
  font-size: 13.5px;
}
footer a { color: var(--text-secondary); margin: 0 10px; }
footer a:hover { color: var(--accent-bright); }

/* ========== BRIDGE HEADLINE SECTION ========== */
.bridge-section {
  position: relative;
  margin: 30px auto 60px;
  max-width: var(--max-w);
  padding: 0 28px;
}
.bridge-card {
  background:
    radial-gradient(circle at 0% 0%, rgba(63, 191, 94, 0.14), transparent 50%),
    radial-gradient(circle at 100% 100%, rgba(212, 160, 36, 0.09), transparent 50%),
    linear-gradient(180deg, var(--bg-card) 0%, var(--bg-primary) 100%);
  border: 1px solid var(--border-accent);
  border-radius: var(--radius);
  padding: 50px 40px;
  box-shadow: var(--shadow-card), var(--shadow-glow);
  position: relative;
  overflow: hidden;
}
.bridge-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(800px circle at 50% 0%, var(--accent-glow), transparent 60%);
  pointer-events: none;
}
.bridge-eyebrow {
  display: inline-block;
  font-size: 11px; font-weight: 700; letter-spacing: 3px;
  color: var(--accent); text-transform: uppercase;
  padding: 5px 12px;
  background: var(--accent-glow);
  border: 1px solid var(--border-accent);
  border-radius: 999px;
  margin-bottom: 16px;
  position: relative; z-index: 1;
}
.bridge-card h2 {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 800;
  letter-spacing: -0.01em;
  margin-bottom: 12px;
  position: relative; z-index: 1;
}
.bridge-card .lede {
  color: var(--text-secondary);
  font-size: 17px;
  max-width: 720px;
  margin-bottom: 32px;
  position: relative; z-index: 1;
}
.bridge-illustration {
  display: block;
  max-width: min(760px, 100%);
  margin: 0 auto 32px;
  position: relative; z-index: 1;
  filter: drop-shadow(0 0 32px rgba(63, 191, 94, 0.18));
}

.bridge-flow {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 18px;
  align-items: stretch;
  margin: 32px 0;
  position: relative; z-index: 1;
}
.bridge-side {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 22px;
}
.bridge-side .chain-tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 6px;
}
.bridge-side h3 {
  font-size: 18px; font-weight: 700;
  margin-bottom: 14px;
  letter-spacing: -0.01em;
}
.bridge-side ul { list-style: none; padding: 0; margin: 0; }
.bridge-side ul li {
  font-size: 14px;
  color: var(--text-secondary);
  padding: 4px 0 4px 18px;
  position: relative;
}
.bridge-side ul li::before {
  content: '▸'; color: var(--accent);
  position: absolute; left: 0;
}
.bridge-arrows {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  font-family: 'JetBrains Mono', monospace;
  color: var(--accent-bright);
  font-size: 28px;
  font-weight: 700;
  padding: 0 6px;
  text-shadow: 0 0 20px var(--accent-glow-strong);
}
.bridge-arrows .lbl {
  font-size: 9px;
  letter-spacing: 2px;
  color: var(--text-muted);
  font-weight: 600;
  margin: 4px 0;
  text-shadow: none;
}
.bridge-cta {
  display: flex; gap: 14px; flex-wrap: wrap;
  margin-top: 28px;
  position: relative; z-index: 1;
}
.bridge-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 14px;
  margin-top: 28px;
  position: relative; z-index: 1;
}
.bridge-stat {
  background: var(--bg-deep);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  text-align: left;
}
.bridge-stat .lbl {
  font-size: 10px; letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-muted); font-weight: 600;
  margin-bottom: 5px;
}
.bridge-stat .val {
  font-family: 'JetBrains Mono', monospace;
  font-size: 18px;
  color: var(--accent-bright);
  font-weight: 700;
}

@media (max-width: 720px) {
  .bridge-flow { grid-template-columns: 1fr; }
  .bridge-arrows { transform: rotate(90deg); padding: 10px 0; }
  .bridge-card { padding: 32px 22px; }
}

/* ========== TOOLS / SERVICES GRID ========== */
.tool-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
}
.tool {
  display: flex; flex-direction: column;
  background: linear-gradient(180deg, var(--bg-card) 0%, var(--bg-primary) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  transition: all var(--ease);
  position: relative; overflow: hidden;
}
.tool:hover {
  transform: translateY(-3px);
  border-color: var(--border-glow);
  box-shadow: var(--shadow-card), var(--shadow-glow);
}
.tool-host {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: var(--accent);
  letter-spacing: 1px;
  margin-bottom: 8px;
  word-break: break-all;
}
.tool h3 {
  font-size: 19px; font-weight: 700;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}
.tool p {
  color: var(--text-secondary);
  font-size: 14.5px;
  flex: 1;
  margin-bottom: 16px;
}
.tool-actions {
  display: flex; gap: 10px; flex-wrap: wrap;
}
.tool-actions a {
  font-size: 13px; font-weight: 600;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--border-accent);
  color: var(--text-primary);
  transition: all var(--ease);
}
.tool-actions a:hover {
  background: var(--accent-glow);
  border-color: var(--border-glow);
  color: var(--accent-bright);
}
.tool-actions a.primary {
  background: var(--accent);
  color: #031108;
  border-color: var(--accent);
}
.tool-actions a.primary:hover {
  background: var(--accent-bright);
  color: #031108;
  box-shadow: 0 0 20px var(--accent-glow-strong);
}

/* ========== TIMELINE ========== */
.timeline {
  position: relative;
  max-width: 820px;
  margin: 0 auto;
  padding-left: 34px;
  border-left: 2px solid var(--border);
}
.timeline-item {
  position: relative;
  padding: 0 0 40px 30px;
}
.timeline-item:last-child { padding-bottom: 0; }
.timeline-item::before {
  content: ''; position: absolute;
  left: -42px; top: 4px;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--bg-deep);
  border: 3px solid var(--accent);
  box-shadow: 0 0 16px var(--accent-glow-strong);
}
.timeline-block {
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  color: var(--accent);
  font-weight: 700;
  letter-spacing: 1px;
  margin-bottom: 6px;
}
.timeline-item h4 { font-size: 18px; margin-bottom: 6px; font-weight: 700; }
.timeline-item p { color: var(--text-secondary); font-size: 14.5px; }

/* ========== ADOPTION / IDENTITY IMAGE BLOCK ========== */
.identity-block {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 40px;
  align-items: center;
  margin: 40px 0 20px;
}
.identity-block img {
  width: 100%;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}
.identity-block h3 { font-size: 24px; margin-bottom: 14px; font-weight: 800; letter-spacing: -0.01em; }
.identity-block p { color: var(--text-secondary); margin-bottom: 12px; }
.identity-block .eyebrow {
  display: inline-block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 2px;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 12px;
}
@media (max-width: 720px) {
  .identity-block { grid-template-columns: 1fr; }
}

/* ========== FAQ ========== */
.faq-list {
  max-width: 820px;
  margin: 0 auto;
}
.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  margin-bottom: 14px;
  overflow: hidden;
}
.faq-item summary {
  padding: 18px 22px;
  cursor: pointer;
  font-weight: 600;
  font-size: 16px;
  color: var(--text-primary);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background var(--ease);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  font-family: 'JetBrains Mono', monospace;
  font-size: 22px;
  color: var(--accent-dim);
  font-weight: 400;
  transition: transform var(--ease);
}
.faq-item[open] summary {
  background: var(--bg-card-hover);
  border-bottom: 1px solid var(--border);
  color: var(--accent);
}
.faq-item[open] summary::after { content: '−'; color: var(--accent); }
.faq-item summary:hover { background: var(--bg-card-hover); }
.faq-item .faq-body {
  padding: 0 22px 20px;
  color: var(--text-secondary);
  font-size: 15px;
}
.faq-item .faq-body p { margin-bottom: 10px; }
.faq-item .faq-body p:last-child { margin-bottom: 0; }

/* ========== MOTACUP GALLERY ========== */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
  margin: 28px 0;
}
.gallery-item {
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-card);
  position: relative;
  transition: all var(--ease);
}
.gallery-item:hover {
  transform: translateY(-3px);
  border-color: var(--border-glow);
  box-shadow: var(--shadow-card);
}
.gallery-item img {
  width: 100%;
  height: 340px;
  object-fit: cover;
  display: block;
  transition: transform var(--ease);
}
.gallery-item:hover img { transform: scale(1.03); }
.gallery-item .cap {
  padding: 12px 16px;
  font-size: 13px;
  color: var(--text-secondary);
  font-family: 'JetBrains Mono', monospace;
  border-top: 1px solid var(--border);
}

.press-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin: 28px 0;
  align-items: start;
}
.press-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 18px;
  text-align: center;
}
.press-card img {
  width: 100%;
  max-height: 380px;
  object-fit: contain;
  border-radius: var(--radius-sm);
  margin-bottom: 14px;
}
.press-card h4 {
  font-size: 15px; font-weight: 700;
  margin-bottom: 6px;
}
.press-card p { font-size: 13px; color: var(--text-muted); }

/* ========== TUTORIAL LAYOUT ========== */
.tutorial-hero {
  padding: 70px 28px 40px;
  max-width: var(--max-w);
  margin: 0 auto;
  text-align: center;
}
.tutorial-hero .breadcrumb {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 20px;
  font-family: 'JetBrains Mono', monospace;
}
.tutorial-hero .breadcrumb a { color: var(--text-secondary); }
.tutorial-hero h1 {
  font-size: clamp(30px, 5vw, 52px);
  font-weight: 800;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, #ffffff 0%, var(--accent) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.emoji {
  -webkit-background-clip: initial;
  background-clip: initial;
  -webkit-text-fill-color: initial;
  background: none;
  color: initial;
  display: inline-block;
  margin-right: 6px;
}
.tutorial-hero .lede {
  color: var(--text-secondary);
  font-size: 18px;
  max-width: 720px;
  margin: 0 auto;
}

.tutorial-body {
  max-width: 860px;
  margin: 0 auto;
  padding: 40px 28px 80px;
}
.tutorial-body h2 {
  font-size: 28px;
  margin: 54px 0 18px;
  font-weight: 800;
  letter-spacing: -0.01em;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}
.tutorial-body h2:first-child { margin-top: 0; }
.tutorial-body h3 {
  font-size: 20px;
  margin: 34px 0 14px;
  color: var(--text-primary);
  font-weight: 700;
}
.tutorial-body p { margin-bottom: 16px; color: var(--text-secondary); }
.tutorial-body p strong { color: var(--text-primary); }
.tutorial-body ul, .tutorial-body ol { margin: 0 0 20px 22px; }
.tutorial-body li { margin-bottom: 8px; color: var(--text-secondary); }
.tutorial-body li strong { color: var(--text-primary); }

.callout {
  background: var(--bg-card);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius-sm);
  padding: 18px 22px;
  margin: 24px 0;
  font-size: 15.5px;
}
.callout.warn { border-left-color: #e0c878; }
.callout.warn strong { color: #e0c878; }
.callout.info { border-left-color: var(--accent-dim); }
.callout.info strong { color: var(--accent-dim); }
.callout strong { color: var(--accent); display: block; margin-bottom: 4px; font-size: 13px; letter-spacing: 1px; text-transform: uppercase; }

pre {
  background: var(--bg-terminal);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 18px 20px;
  overflow-x: auto;
  margin: 18px 0 22px;
  font-size: 14px;
  line-height: 1.55;
  color: #c8e0cc;
  position: relative;
}
pre .prompt { color: var(--accent); user-select: none; }
pre .comment { color: var(--text-dim); }
pre .str { color: #e0c878; }
pre .key { color: var(--accent-bright); }
code {
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 2px 7px;
  border-radius: 5px;
  font-size: 13.5px;
  color: var(--accent-bright);
  max-width: 100%;
  word-break: break-all;
  overflow-wrap: anywhere;
}
/* Flex/grid children hold long hashes — let them shrink */
.bridge-card *, .bridge-side *, .tool *, .bridge-flow * { min-width: 0; }
pre code { background: none; border: none; padding: 0; color: inherit; }

.step-list { counter-reset: step; list-style: none; margin-left: 0; }
.step-list > li {
  counter-increment: step;
  position: relative;
  padding: 18px 18px 18px 72px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  margin-bottom: 14px;
}
.step-list > li::before {
  content: counter(step);
  position: absolute;
  left: 18px; top: 18px;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--accent);
  color: #031108;
  font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  font-family: 'JetBrains Mono', monospace;
}

.nav-next {
  display: flex; justify-content: space-between; gap: 16px;
  margin-top: 60px; padding-top: 28px;
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
}
.nav-next a {
  flex: 1; min-width: 240px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  transition: all var(--ease);
}
.nav-next a:hover { border-color: var(--border-glow); background: var(--bg-card-hover); }
.nav-next .dir { font-size: 11px; letter-spacing: 2px; text-transform: uppercase; color: var(--text-muted); font-weight: 600; }
.nav-next .title { color: var(--text-primary); font-weight: 600; font-size: 15px; margin-top: 4px; }

table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0 26px;
  font-size: 14.5px;
}
th, td {
  padding: 11px 14px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}
th {
  background: var(--bg-card);
  color: var(--accent);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
}
td { color: var(--text-secondary); }
tr:hover td { background: rgba(63, 191, 94, 0.04); }

@media (max-width: 1180px) {
  .nav-brand img { width: 96px; height: 96px; }
  .nav-brand { font-size: 24px; gap: 14px; }
  .nav-inner { min-height: 118px; gap: 16px; }
  .nav-links { gap: 2px; }
  .nav-links a { font-size: 13px; padding: 5px 8px; }
  .nav-links a.cta { padding: 8px 14px; }
}
/* Very small: hide MOTA ticker, shrink everything to fit 360px */
@media (max-width: 400px) {
  .nav-brand .ticker { display: none; }
  .nav-brand img { width: 48px; height: 48px; }
  .nav-brand { font-size: 15px; gap: 8px; }
  .nav-inner { min-height: 68px; padding: 6px 10px; }
  .nav-links a.cta { font-size: 11.5px; padding: 6px 10px; }
  .hero h1 { font-size: 20px; line-height: 1.18; }
  .hero-logo { width: 200px !important; height: 200px !important; }
}
@media (max-width: 900px) {
  /* Swap some link labels for icons to fit on one line */
  .nav-links { gap: 0px; }
  .nav-links a { font-size: 12.5px; padding: 5px 7px; }
  .nav-brand { font-size: 20px; }
  .nav-brand img { width: 80px; height: 80px; }
  .nav-inner { min-height: 104px; }
}
@media (max-width: 720px) {
  /* Collapse most nav-links; keep CTA visible */
  .nav-links a:not(.cta) { display: none; }
  .nav-inner { min-height: 80px; padding: 8px 12px; gap: 10px; }
  .nav-brand img { width: 56px; height: 56px; }
  .nav-brand { font-size: 17px; gap: 10px; }
  .nav-brand .ticker { font-size: 13px; }
  .nav-links a.cta { font-size: 12.5px; padding: 7px 12px; white-space: nowrap; }
  .hero-inner { padding: 0 16px; }
  .hero .tagline { font-size: 14.5px; }
  .hero .subtag { font-size: 11.5px; }
  .hero { min-height: 80vh; padding: 60px 0 70px; }
  .hero-logo { width: 240px; height: 240px; margin-bottom: 28px; }
  section { padding: 50px 20px; }
  .feature { padding: 22px; }
  .feature-icon { width: 52px; height: 52px; font-size: 24px; }
}
