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

:root {
  --bg-deep: #0a0414;
  --bg-primary: #12081f;
  --bg-secondary: #1a0e2b;
  --bg-card: #1c1030;
  --bg-card-hover: #241540;
  --bg-code: #0d0618;
  --bg-terminal: #080310;
  --accent: #8b5cf6;
  --accent-bright: #a78bfa;
  --accent-purple: #6b3fa0;
  --accent-gold: #d4a024;
  --accent-dim: #3d2060;
  --accent-glow: rgba(139, 92, 246, 0.18);
  --accent-glow-strong: rgba(139, 92, 246, 0.4);
  --text-primary: #eee0ff;
  --text-secondary: #c4b5e0;
  --text-muted: #9a8cc0;
  --text-dim: #6b5f90;
  --border: #2a1847;
  --border-accent: #8b5cf644;
  --border-glow: #8b5cf688;
  --shadow-card: 0 8px 32px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 40px rgba(139, 92, 246, 0.12);
  --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; }

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

/* True viewport-fixed bg layer — mirrors wallet's Stack+Positioned.fill.
   Mobile Safari/Chrome ignore `background-attachment: fixed` and fall back
   to `scroll`, which made the bg only cover the first viewport-height.
   `position: fixed` on the pseudo-element pins the bg to the viewport
   regardless of body height. */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 20% 10%, rgba(139, 92, 246, 0.11), transparent 55%),
    radial-gradient(ellipse at 80% 85%, rgba(167, 139, 250, 0.08), transparent 55%),
    radial-gradient(ellipse at 50% 50%, rgba(107, 63, 160, 0.05), transparent 70%),
    linear-gradient(rgba(10, 4, 20, 0.35), rgba(10, 4, 20, 0.35)),
    url("../img/cool-maryj-bg.jpg") center / cover no-repeat;
}
/* Phone portrait: 480×752 center-crop. */
@media (max-width: 600px) {
  body::before {
    background:
      radial-gradient(ellipse at 20% 10%, rgba(139, 92, 246, 0.11), transparent 55%),
      radial-gradient(ellipse at 80% 85%, rgba(167, 139, 250, 0.08), transparent 55%),
      radial-gradient(ellipse at 50% 50%, rgba(107, 63, 160, 0.05), transparent 70%),
      linear-gradient(rgba(10, 4, 20, 0.35), rgba(10, 4, 20, 0.35)),
      url("../img/cool-maryj-bg-mobile.jpg") center / cover no-repeat;
  }
}

/* (legacy double-::before stub removed — bg+glow now combined above.) */

/* Photo-bg readability: WHOLE SECTIONS get a 20%-opaque backdrop with HEAVY
   blur so the cannabis bg shines through but text stays crisp. */
#timeline,
#features,
#tools,
#tutorials,
.download-section {
  background: rgba(10, 4, 20, 0.20);
  -webkit-backdrop-filter: blur(20px) saturate(1.15);
  backdrop-filter: blur(20px) saturate(1.15);
  border: 1px solid var(--border);
  border-radius: 22px;
  margin: 60px auto !important;
  max-width: var(--max-w);
  padding: 64px clamp(24px, 4vw, 56px) !important;
}

/* Per-card overlays — slightly more opaque than parent for cards-on-cards depth. */
.stat,
.bridge-card,
.tool,
.feature,
.timeline-item,
.tutorial-card,
.cta-band,
.ca-hero-inner,
.market-section .section-head + div {
  background-color: rgba(10, 4, 20, 0.32) !important;
  backdrop-filter: blur(14px) saturate(1.15);
  -webkit-backdrop-filter: blur(14px) saturate(1.15);
}

/* CTA band — needs its own backdrop card on the photo */
.cta-band {
  border-radius: 22px;
  border: 1px solid var(--border);
  margin: 60px auto !important;
  max-width: var(--max-w);
  padding: 60px clamp(24px, 4vw, 56px) !important;
}

/* Market widget caption strip — give it a backdrop so SPL mint + links read */
.market-section > p:last-child {
  background: rgba(10, 4, 20, 0.84);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 18px 24px;
  margin: 16px auto 0 !important;
  max-width: 1100px;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

/* Secondary button — was transparent → invisible on neon photo. Opaque now. */
.btn-secondary {
  background: rgba(10, 4, 20, 0.72) !important;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

/* Section heads — bigger so taglines are readable, brighter color */
.section-head h2 {
  font-size: clamp(34px, 4.6vw, 56px) !important;
}
.section-head p {
  font-size: clamp(16px, 1.5vw, 19px) !important;
  color: var(--text-primary) !important;
  opacity: 0.92;
}

/* Section eyebrows — bigger + bolder pills */
.section-eyebrow,
.bridge-eyebrow {
  font-size: 13px !important;
  letter-spacing: 0.22em !important;
  background: rgba(10, 4, 20, 0.72);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid var(--accent-bright);
  color: var(--accent-bright) !important;
  font-weight: 700;
}

/* Body text in cards — bigger + brighter so 14.5px purple isn't the rule */
.timeline-item p,
.tool p,
.feature p,
.tutorial-card p,
.bridge-card p,
.bridge-card li,
.download-section p {
  font-size: 16px !important;
  color: var(--text-primary) !important;
  opacity: 0.95;
}
.timeline-item h4,
.tool h3,
.feature h3 {
  font-size: 22px !important;
}
.timeline-block,
.tool-host {
  font-size: 12.5px !important;
  letter-spacing: 0.16em !important;
  color: var(--accent-bright) !important;
  font-weight: 700;
}

/* CA RARITY STAT CARD */
.ca-rarity {
  margin-top: 8px;
}
.ca-rarity-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
  margin-bottom: 24px;
}
.ca-rarity-stat {
  background: rgba(10, 4, 20, 0.72);
  border: 1px solid var(--border-accent);
  border-radius: 12px;
  padding: 18px 16px;
  text-align: center;
}
.ca-rarity-stat-hero {
  background: linear-gradient(135deg, rgba(212, 160, 36, 0.18) 0%, rgba(139, 92, 246, 0.18) 100%);
  border-color: var(--accent-gold);
}
.ca-rarity-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: clamp(18px, 2.2vw, 26px);
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.01em;
  margin-bottom: 4px;
}
.ca-rarity-stat-hero .ca-rarity-num {
  background: linear-gradient(135deg, var(--accent-gold) 0%, var(--accent-bright) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.ca-rarity-lbl {
  font-size: 13px;
  color: var(--text-secondary);
  letter-spacing: 0.04em;
}
section, header.hero, footer {
  position: relative;
  z-index: 1;
}

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; }

/* ========== BRAND BANNER STRIP (matches whitepaper) ========== */
.brand-banner-link {
  display: block;
  width: 100%;
  line-height: 0;
  text-decoration: none;
  border-bottom: 1px solid var(--border-accent);
  position: relative;
  z-index: 2;
}
.brand-banner {
  display: block;
  width: 100%;
  max-height: 180px;
  object-fit: cover;
  object-position: center;
}
@media (max-width: 600px) {
  .brand-banner { max-height: 120px; }
}

/* ========== NAV ========== */
.nav {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(14px);
  background: rgba(10, 4, 20, 0.75);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 16px 28px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.nav-brand { display: flex; align-items: center; gap: 12px; font-weight: 700; font-size: 18px; color: var(--text-primary); }
.nav-brand img { width: 34px; height: 34px; filter: drop-shadow(0 0 10px var(--accent-glow-strong)); }
.nav-brand span { letter-spacing: 0.5px; }
.nav-brand .ticker { color: var(--accent); font-weight: 800; }
.nav-links { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.nav-links a {
  color: var(--text-secondary);
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-size: 14.5px;
  font-weight: 500;
  transition: all var(--ease);
}
.nav-links a:hover { color: var(--text-primary); background: var(--bg-secondary); }
.nav-links a.cta {
  background: var(--accent);
  color: #051805 !important;
  font-weight: 700;
}
.nav-links a.cta:hover { background: var(--accent-bright); box-shadow: 0 0 24px var(--accent-glow-strong); }

/* ========== HERO ========== */
.hero {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 90px 28px 60px;
  text-align: center;
  position: relative;
}
.hero-logo {
  width: clamp(220px, 32vw, 420px);
  height: clamp(220px, 32vw, 420px);
  margin: 0 auto 32px;
  filter: drop-shadow(0 0 60px var(--accent-glow-strong));
  animation: float 5s ease-in-out infinite;
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
.hero h1 {
  font-size: clamp(36px, 6vw, 68px);
  font-weight: 800;
  line-height: 1.05;
  margin-bottom: 24px;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, #eee0ff 0%, var(--accent-bright) 55%, var(--accent-gold) 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
/* Hero body text — backdrop pill so tagline + subtag stay readable on photo */
.hero .tagline,
.hero .subtag {
  background: rgba(10, 4, 20, 0.74);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border);
  padding: 14px 22px;
  border-radius: 14px;
}
.hero .tagline {
  font-size: clamp(17px, 2vw, 22px);
  color: var(--text-primary);
  max-width: 760px; margin: 0 auto 14px;
  font-weight: 500;
}
.hero .subtag {
  font-size: 14.5px;
  color: var(--accent-bright);
  max-width: 680px; margin: 0 auto 42px;
  font-family: 'JetBrains Mono', monospace;
  font-weight: 600;
}
.hero-cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ============== HERO LIVE-LAUNCH BANNER ==============
   Same dark-pill treatment as .hero .tagline / .hero .subtag so it stays
   readable against the photo background. Sits above the headline. */
.hero-launch-banner {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  justify-content: center;
  max-width: 880px;
  margin: 0 auto 32px;
  padding: 18px 26px;
  background: rgba(10, 4, 20, 0.78);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border: 1.5px solid var(--accent-gold);
  border-radius: 18px;
  text-decoration: none !important;
  transition: transform var(--ease), box-shadow var(--ease), border-color var(--ease);
  box-shadow: 0 0 32px rgba(212, 160, 36, 0.28);
}
.hero-launch-banner:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 48px rgba(212, 160, 36, 0.45);
  border-color: var(--accent-bright);
}
.hero-launch-dot {
  width: 12px; height: 12px;
  border-radius: 50%;
  background: #ff4d4d;
  box-shadow: 0 0 14px #ff4d4d, 0 0 28px rgba(255, 77, 77, 0.7);
  animation: pulse 1.4s ease-in-out infinite;
  flex-shrink: 0;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.55; transform: scale(0.80); }
}
.hero-launch-text {
  font-size: 16px;
  color: var(--text-primary);
  line-height: 1.55;
  flex: 1 1 360px;
  min-width: 0;
  font-weight: 500;
}
.hero-launch-text strong {
  color: var(--accent-gold);
  letter-spacing: 0.04em;
  font-weight: 800;
}
.hero-launch-cta {
  font-size: 14px;
  color: #051805;
  background: var(--accent-gold);
  font-weight: 800;
  letter-spacing: 0.05em;
  white-space: nowrap;
  padding: 9px 18px;
  border-radius: 999px;
  flex-shrink: 0;
  transition: all var(--ease);
}
.hero-launch-banner:hover .hero-launch-cta {
  background: var(--accent-bright);
}

/* ============== SHIP STATUS / "BUILT FIRST" TIMELINE ============== */
.ship-status {
  background: rgba(10, 4, 20, 0.84);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border);
  border-radius: 22px;
  margin: 60px auto !important;
  max-width: var(--max-w);
  padding: 64px clamp(24px, 4vw, 56px);
}
.ship-timeline {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 8px;
}
.ship-row {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 20px;
  background: rgba(10, 4, 20, 0.65);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent-bright);
  border-radius: 14px;
  padding: 22px 24px;
}
.ship-row-launch {
  background: linear-gradient(135deg, rgba(212, 160, 36, 0.14) 0%, rgba(139, 92, 246, 0.14) 100%);
  border-left-color: var(--accent-gold);
  border-color: var(--accent-gold);
}
.ship-date-day {
  font-size: 22px;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}
.ship-row-launch .ship-date-day { color: var(--accent-gold); }
.ship-date-tag {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-bright);
  font-weight: 700;
  margin-top: 4px;
}
.ship-row-launch .ship-date-tag { color: var(--accent-gold); }
.ship-body h3 {
  font-size: 20px;
  font-weight: 800;
  color: var(--text-primary);
  margin: 0 0 8px;
  letter-spacing: -0.01em;
}
.ship-body p {
  font-size: 15px;
  line-height: 1.65;
  color: var(--text-secondary);
  margin: 0;
}
.ship-body code {
  background: rgba(139, 92, 246, 0.15);
  padding: 1px 6px;
  border-radius: 4px;
  color: var(--accent-bright);
  font-size: 0.92em;
}

@media (max-width: 720px) {
  .ship-row { grid-template-columns: 1fr; gap: 8px; }
  .hero-launch-banner { padding: 12px 18px; }
  .hero-launch-text { font-size: 13px; }
}
.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;
}
.btn-primary {
  background: var(--accent);
  color: #051805;
  box-shadow: 0 4px 24px var(--accent-glow-strong);
}
.btn-primary:hover {
  background: var(--accent-bright); color: #051805;
  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);
}

/* ========== CA HERO STRIP ========== */
.ca-hero {
  margin: 0 auto 64px;
  padding: 0 28px;
  max-width: var(--max-w);
}
.ca-hero-inner {
  position: relative;
  padding: 36px clamp(20px, 4vw, 56px);
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.18) 0%, rgba(212, 160, 36, 0.10) 100%);
  border: 1.5px solid var(--accent-bright);
  border-radius: 18px;
  text-align: center;
  box-shadow: 0 0 60px var(--accent-glow-strong);
  overflow: hidden;
}
.ca-hero-eyebrow {
  display: flex; gap: 12px; justify-content: center; align-items: center;
  flex-wrap: wrap;
  margin-bottom: 18px;
}
.ca-vanity-pill {
  display: inline-block;
  padding: 6px 14px;
  background: rgba(212, 160, 36, 0.18);
  border: 1px solid var(--accent-gold);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--accent-gold);
  text-transform: uppercase;
}
.ca-eyebrow-label {
  font-size: 11px;
  letter-spacing: 0.22em;
  color: var(--text-muted);
  text-transform: uppercase;
  font-weight: 600;
}
.ca-hero-address {
  display: block;
  font-family: 'JetBrains Mono', Menlo, Consolas, monospace;
  font-size: clamp(14px, 2.4vw, 28px);
  font-weight: 700;
  color: var(--text-primary);
  word-break: break-all;
  letter-spacing: 0.01em;
  padding: 18px 12px;
  margin: 0 auto 12px;
  background: rgba(10, 4, 20, 0.55);
  border: 1px solid var(--border-accent);
  border-radius: 12px;
  user-select: all;
  cursor: text;
}
.ca-hero-decoded {
  font-family: 'JetBrains Mono', monospace;
  font-size: clamp(12px, 1.6vw, 16px);
  color: var(--text-muted);
  word-break: break-all;
  letter-spacing: 0.01em;
  margin-bottom: 24px;
  opacity: 0.9;
}
.ca-mark {
  color: #ffffff;
  font-weight: 800;
  padding: 0 2px;
}
.ca-hero-actions {
  display: flex; gap: 12px; justify-content: center; flex-wrap: wrap;
  margin-bottom: 24px;
}
.ca-hero-actions .btn {
  font-size: 14px;
  padding: 12px 22px;
}
.ca-hero-flex {
  font-size: clamp(13px, 1.5vw, 15.5px);
  line-height: 1.65;
  color: var(--text-secondary);
  max-width: 880px;
  margin: 0 auto;
  text-align: left;
}
.ca-hero-flex code {
  background: rgba(139, 92, 246, 0.18);
  padding: 1px 6px;
  border-radius: 4px;
  color: var(--accent-bright);
  font-size: 0.92em;
}
.ca-hero-flex strong { color: var(--text-primary); }
.ca-copy:active { transform: scale(0.98); }

/* ========== FULL-BLEED MARKET SECTION ========== */
.market-section {
  max-width: 100% !important;
  width: 100%;
  padding: 60px 28px;
  margin: 40px 0;
  background: linear-gradient(180deg, transparent 0%, rgba(139, 92, 246, 0.04) 50%, transparent 100%);
}
.market-section .section-head {
  max-width: var(--max-w);
  margin: 0 auto 8px;
}
.market-section iframe {
  max-width: none !important;
}

/* ========== 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;
}
.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);
}
.feature:hover::before { opacity: 1; }
.feature-icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  background: var(--accent-glow);
  border: 1px solid var(--border-accent);
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
  margin-bottom: 20px;
}
.feature-icon.purple { background: rgba(155, 89, 255, 0.12); border-color: rgba(155, 89, 255, 0.35); }
.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; }

/* ========== 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; }

/* ========== 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(139, 92, 246, 0.14), transparent 50%),
    radial-gradient(circle at 100% 100%, rgba(212, 160, 36, 0.10), 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-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: #051805;
  border-color: var(--accent);
}
.tool-actions a.primary:hover {
  background: var(--accent-bright);
  color: #051805;
  box-shadow: 0 0 20px var(--accent-glow-strong);
}

/* ========== 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, #eee0ff 0%, var(--accent-bright) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
/* Color emojis disappear inside text-fill: transparent. Restore them. */
.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: #ffb84d; }
.callout.warn strong { color: #ffb84d; }
.callout.info { border-left-color: var(--accent-purple); }
.callout.info strong { color: var(--accent-purple); }
.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: #e8d9ff;
  position: relative;
}
pre .prompt { color: var(--accent); user-select: none; }
pre .comment { color: var(--text-dim); }
pre .str { color: #ffd97a; }
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);
}
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: #051805;
  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(139, 92, 246, 0.04); }

@media (max-width: 720px) {
  .nav-links a:not(.cta) { display: none; }
  .hero { padding-top: 50px; }
  /* .hero-logo size deliberately removed — let the clamp(220px, 32vw, 420px)
     in the desktop rule control mobile too, matching whitepaper parity. */
  section { padding: 50px 20px; }
  .feature { padding: 22px; }
}
