/**
 * Pantanal Protocol Site — Premium visual layer
 * Inspired by Sui / Solana / modern L1 protocol sites.
 * Loaded after main.css; scoped to .page-protocol
 */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500;600&family=Orbitron:wght@600;700&family=Space+Grotesk:wght@500;600;700&display=swap');

/* ================================================================== Tokens */
.page-protocol {
  --proto-bg: #030712;
  --proto-bg-2: #0a0f1a;
  --proto-bg-3: #111827;
  --proto-surface: rgba(15, 23, 42, 0.55);
  --proto-surface-hover: rgba(30, 41, 59, 0.65);
  --proto-border: rgba(148, 163, 184, 0.12);
  --proto-border-strong: rgba(148, 163, 184, 0.22);
  --proto-text: #f8fafc;
  --proto-text-muted: #94a3b8;
  --proto-blue: #3b82f6;
  --proto-blue-dark: #2563eb;
  --proto-cyan: #22d3ee;
  --proto-violet: #8b5cf6;
  --proto-amber: #f59e0b;
  --proto-glow-blue: rgba(59, 130, 246, 0.45);
  --proto-glow-cyan: rgba(34, 211, 238, 0.3);
  --proto-radius: 16px;
  --proto-radius-sm: 10px;
  --proto-font: 'Inter', var(--font-family);
  --proto-font-display: 'Orbitron', 'Space Grotesk', var(--font-family);
  --proto-font-mono: 'JetBrains Mono', ui-monospace, monospace;

  --color-bg: var(--proto-bg);
  --color-bg-secondary: var(--proto-bg-2);
  --color-bg-tertiary: var(--proto-bg-3);
  --color-text: var(--proto-text);
  --color-text-secondary: var(--proto-text-muted);
  --color-primary: var(--proto-blue);
  --color-primary-dark: var(--proto-blue-dark);
  --color-accent: var(--proto-cyan);
  --color-border: var(--proto-border);
  --color-card-bg: var(--proto-surface);

  font-family: var(--proto-font);
  background-color: var(--proto-bg);
  background-image:
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(59, 130, 246, 0.15), transparent),
    radial-gradient(ellipse 60% 40% at 100% 0%, rgba(139, 92, 246, 0.08), transparent);
}

.page-protocol::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    linear-gradient(rgba(59, 130, 246, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(59, 130, 246, 0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, black, transparent 75%);
}

.page-protocol::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.page-protocol > main,
.page-protocol > footer {
  position: relative;
  z-index: 1;
}

.page-protocol > header.site-header-shell {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1100;
}

@media (max-width: 968px) {
  .page-protocol > header.site-header-shell {
    position: relative;
    top: auto;
    left: auto;
    right: auto;
    z-index: 1301;
  }
}

/* ================================================================ Buttons */
.page-protocol .btn {
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.page-protocol .btn-primary {
  background: linear-gradient(135deg, var(--proto-blue) 0%, var(--proto-blue-dark) 100%);
  color: #fff;
  border: none;
  box-shadow: 0 4px 20px var(--proto-glow-blue);
}

.page-protocol .btn-primary:hover {
  background: linear-gradient(135deg, #60a5fa 0%, var(--proto-blue) 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px var(--proto-glow-blue);
}

.page-protocol .btn-secondary {
  background: rgba(255, 255, 255, 0.04);
  color: var(--proto-text);
  border: 1px solid var(--proto-border-strong);
  backdrop-filter: blur(8px);
}

.page-protocol .btn-secondary:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.25);
  transform: translateY(-2px);
}

.page-protocol .hero-buttons .btn-primary::before,
.page-protocol .btn-header.btn-primary::before {
  display: none !important;
}

/* ============================================================== Hero BG */
.hero-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.hero-bg__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(59, 130, 246, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(59, 130, 246, 0.06) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, black 20%, transparent 75%);
}

.hero-bg__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.55;
  animation: proto-float 12s ease-in-out infinite;
}

.hero-bg__orb--1 {
  width: 520px;
  height: 520px;
  top: -120px;
  left: 50%;
  transform: translateX(-60%);
  background: radial-gradient(circle, var(--proto-glow-blue), transparent 70%);
}

.hero-bg__orb--2 {
  width: 400px;
  height: 400px;
  top: 20%;
  right: -80px;
  background: radial-gradient(circle, var(--proto-glow-cyan), transparent 70%);
  animation-delay: -4s;
}

.hero-bg__orb--3 {
  width: 320px;
  height: 320px;
  bottom: -60px;
  left: -60px;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.35), transparent 70%);
  animation-delay: -8s;
}

@keyframes proto-float {
  0%, 100% { transform: translateY(0) translateX(0); }
  50% { transform: translateY(-24px) translateX(12px); }
}

@media (prefers-reduced-motion: reduce) {
  .hero-bg__orb { animation: none; }
}

/* ================================================================= Hero */
.page-protocol .hero-section {
  position: relative;
  overflow: hidden;
}

.page-protocol .hero-content,
.page-protocol .hero-section .hero-content {
  display: flex !important;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  grid-template-columns: none !important;
  gap: 24px;
  max-width: 820px;
  margin: 0 auto;
  text-align: center;
  width: 100%;
  position: relative;
  z-index: 2;
}

.page-protocol .hero-section--protocol {
  padding: 40px 0 56px;
  min-height: auto;
  display: flex;
  align-items: center;
}

.page-protocol .hero-section--compact {
  padding: 32px 0 48px;
  min-height: auto;
}

@media (min-width: 969px) {
  .page-protocol .hero-section--protocol {
    padding: 120px 0 100px;
    min-height: calc(100vh - var(--proto-header-h, 64px));
  }

  .page-protocol .hero-section--compact {
    padding: 100px 0 64px;
  }
}

.page-protocol .hero-section--compact .hero-title {
  font-size: clamp(2rem, 4vw, 2.75rem) !important;
  background: linear-gradient(135deg, #fff 30%, #cbd5e1 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.page-protocol .hero-lead {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  line-height: 1.7;
  color: var(--proto-text-muted);
  font-weight: 400;
  margin: 0;
  max-width: 640px;
}

.page-protocol .hero-section--protocol .hero-title {
  font-family: var(--proto-font-display);
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1.1;
  margin: 0;
  width: 100%;
  text-transform: uppercase;
  background: linear-gradient(120deg, #ffffff 0%, #e2e8f0 20%, var(--proto-cyan) 45%, var(--proto-blue) 65%, #c4b5fd 85%, #ffffff 100%);
  background-size: 250% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: proto-title-shimmer 8s linear infinite;
  filter: drop-shadow(0 0 40px rgba(34, 211, 238, 0.25));
}

.page-protocol .hero-section--protocol .hero-description {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--proto-text-muted);
  margin: 0;
  max-width: 560px;
}

.page-protocol .hero-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-top: 8px;
}

.page-protocol .hero-buttons .btn {
  min-width: 140px;
  padding: 14px 28px;
}

/* =============================================================== Header */
.page-protocol .logo-image {
  height: 50px;
  width: auto;
  max-width: 260px;
}

.page-protocol .site-header-shell {
  padding: 14px 0;
  background: rgba(3, 7, 18, 0.92);
  border-bottom: 1px solid var(--proto-border);
  overflow: visible;
}

@media (min-width: 969px) {
  .page-protocol .site-header-shell {
    background: rgba(3, 7, 18, 0.75);
    backdrop-filter: blur(20px) saturate(1.2);
    -webkit-backdrop-filter: blur(20px) saturate(1.2);
  }
}

.page-protocol .site-header-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 20px;
  overflow: visible;
}

.page-protocol .header-left { grid-column: 1; }

.page-protocol .header-nav {
  grid-column: 2;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 32px;
  flex: none;
  min-width: 0;
  overflow: visible;
}

.page-protocol .header-right {
  grid-column: 3;
  display: flex;
  align-items: center;
  gap: 10px;
  position: static;
  transform: none;
}

.page-protocol .mobile-menu-toggle { display: none; }

.page-protocol .header-nav > a,
.page-protocol .nav-dropdown-toggle,
.page-protocol .nav-text-toggle {
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  color: var(--proto-text-muted);
  transition: color 0.2s ease;
}

.page-protocol .header-nav > a:hover,
.page-protocol .nav-dropdown-toggle:hover {
  color: var(--proto-text);
}

.page-protocol .header-nav > a::after { display: none; }

.page-protocol .header-nav > a.nav-active,
.page-protocol .nav-dropdown.nav-active > .nav-dropdown-toggle {
  color: var(--proto-blue);
}

.page-protocol .nav-dropdown.nav-active > .nav-dropdown-toggle::after {
  width: auto;
  background: none;
}

.page-protocol .btn-header {
  min-width: auto;
  padding: 8px 18px;
  font-size: 13px;
  border-radius: 999px;
}

.page-protocol .nav-dropdown--mobile-group,
.page-protocol .header-mobile-actions { display: none; }

.page-protocol .nav-dropdown--desktop-dev { display: block; }

.page-protocol .language-select {
  min-width: 72px;
  font-size: 13px;
  padding: 6px 28px 6px 10px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--proto-border);
  color: var(--proto-text);
}

.page-protocol main { margin-top: var(--proto-header-h, 64px); }

body.mobile-nav-open {
  overflow: hidden;
}

/* ============================================================= Sections */
.page-protocol .container {
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.page-protocol .section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 48px;
}

.page-protocol .section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--proto-font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--proto-cyan);
  margin-bottom: 14px;
}

.page-protocol .section-eyebrow::before,
.page-protocol .section-eyebrow::after {
  content: '';
  width: 28px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--proto-cyan));
}

.page-protocol .section-eyebrow::after {
  background: linear-gradient(90deg, var(--proto-cyan), transparent);
}

.page-protocol .section-title {
  font-family: var(--proto-font-display);
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 700;
  margin: 0;
  letter-spacing: -0.03em;
  color: var(--proto-text);
}

.page-protocol .section-header .section-title {
  margin-bottom: 12px;
}

.page-protocol .section-desc {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--proto-text-muted);
  margin: 0;
}

.page-protocol .section-subtitle {
  color: var(--proto-text-muted);
  margin: 8px 0 0;
  font-size: 15px;
}

.page-protocol .protocol-dual-section,
.page-protocol .principles-section,
.page-protocol .layer-stack-section,
.page-protocol .network-metrics-section,
.page-protocol .spec-section {
  padding: 96px 0;
  position: relative;
}

.page-protocol .spec-section--alt,
.page-protocol .layer-stack-section,
.page-protocol .protocol-dual-section {
  background: linear-gradient(180deg, transparent 0%, rgba(15, 23, 42, 0.4) 50%, transparent 100%);
}

.page-protocol .protocol-dual-section::before,
.page-protocol .layer-stack-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(600px, 80%);
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--proto-border-strong), transparent);
}

/* ========================================================= Protocol cards */
.page-protocol .protocol-dual-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.page-protocol .protocol-card {
  position: relative;
  background: var(--proto-surface);
  border: 1px solid var(--proto-border);
  border-radius: var(--proto-radius);
  padding: 32px;
  height: 100%;
  display: flex;
  flex-direction: column;
  backdrop-filter: blur(12px);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
  overflow: hidden;
}

.page-protocol .protocol-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(255,255,255,0.1), transparent 50%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.page-protocol .protocol-card:hover {
  transform: translateY(-4px);
  border-color: var(--proto-border-strong);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
}

.page-protocol .protocol-card--gas:hover {
  box-shadow: 0 20px 60px rgba(245, 158, 11, 0.12);
}

.page-protocol .protocol-card--ai:hover {
  box-shadow: 0 20px 60px var(--proto-glow-blue);
}

.page-protocol .protocol-card-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--proto-text);
}

.page-protocol .protocol-card--gas .protocol-card-icon {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.2), rgba(245, 158, 11, 0.05));
  border: 1px solid rgba(245, 158, 11, 0.25);
}

.page-protocol .protocol-card--ai .protocol-card-icon {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.25), rgba(34, 211, 238, 0.08));
  border: 1px solid rgba(59, 130, 246, 0.3);
}

.page-protocol .protocol-card-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0 0 12px;
  letter-spacing: -0.02em;
}

.page-protocol .protocol-card-desc {
  font-size: 14px;
  line-height: 1.7;
  color: var(--proto-text-muted);
  margin: 0 0 20px;
  flex: 1;
}

.page-protocol .protocol-card-modules {
  list-style: none;
  margin: 0 0 24px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.page-protocol .protocol-card-modules li {
  font-size: 12px;
  font-family: ui-monospace, 'SF Mono', Monaco, Consolas, monospace;
  color: var(--proto-text-muted);
  padding: 10px 12px;
  background: rgba(0, 0, 0, 0.25);
  border-radius: 8px;
  border: 1px solid var(--proto-border);
}

.page-protocol .protocol-card-link {
  color: var(--proto-blue);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: gap 0.2s ease, color 0.2s ease;
}

.page-protocol .protocol-card-link:hover {
  color: var(--proto-cyan);
  gap: 10px;
}

/* =========================================================== Principles */
.page-protocol .principles-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin: 0;
  padding: 0;
  list-style: none;
  max-width: none;
  counter-reset: proto-principle;
}

.page-protocol .principles-list li {
  position: relative;
  padding: 28px 24px 28px 56px;
  background: linear-gradient(145deg, rgba(15, 23, 42, 0.7), rgba(15, 23, 42, 0.35));
  border: 1px solid var(--proto-border);
  border-radius: var(--proto-radius-sm);
  color: var(--proto-text);
  font-size: 15px;
  line-height: 1.65;
  font-weight: 500;
  backdrop-filter: blur(8px);
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
  counter-increment: proto-principle;
  overflow: hidden;
}

.page-protocol .principles-list li::before {
  content: counter(proto-principle, decimal-leading-zero);
  position: absolute;
  left: 20px;
  top: 24px;
  font-family: var(--proto-font-mono);
  font-size: 11px;
  font-weight: 600;
  color: var(--proto-cyan);
  letter-spacing: 0.05em;
}

.page-protocol .principles-list li::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--proto-cyan), transparent);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.page-protocol .principles-list li:hover {
  border-color: rgba(34, 211, 238, 0.35);
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(34, 211, 238, 0.08);
}

.page-protocol .principles-list li:hover::after {
  opacity: 1;
}

/* ========================================================= Layer stack */
.page-protocol .layer-stack {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 900px;
  margin: 0 auto;
  position: relative;
  padding-left: 8px;
}

.page-protocol .layer-stack::before {
  content: '';
  position: absolute;
  left: 22px;
  top: 12px;
  bottom: 12px;
  width: 2px;
  background: linear-gradient(180deg, var(--proto-violet), var(--proto-blue), var(--proto-cyan), var(--proto-amber));
  border-radius: 2px;
  opacity: 0.5;
}

.page-protocol .layer-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 18px 24px;
  background: var(--proto-surface);
  border: 1px solid var(--proto-border);
  border-radius: var(--proto-radius-sm);
  font-size: 14px;
  backdrop-filter: blur(8px);
  transition: border-color 0.2s ease, background 0.2s ease;
  border-left: 3px solid var(--proto-blue);
}

.page-protocol .layer-item:nth-child(1) { border-left-color: var(--proto-violet); }
.page-protocol .layer-item:nth-child(2) { border-left-color: #6366f1; }
.page-protocol .layer-item:nth-child(3) { border-left-color: var(--proto-blue); }
.page-protocol .layer-item:nth-child(4) { border-left-color: var(--proto-cyan); }
.page-protocol .layer-item:nth-child(5) { border-left-color: var(--proto-amber); }

.page-protocol .layer-item:hover {
  background: var(--proto-surface-hover);
  border-color: var(--proto-border-strong);
}

.page-protocol .layer-name {
  font-weight: 600;
  flex-shrink: 0;
}

.page-protocol .layer-desc {
  color: var(--proto-text-muted);
  font-family: ui-monospace, 'SF Mono', Monaco, Consolas, monospace;
  font-size: 12px;
  text-align: right;
}

.page-protocol .section-cta {
  margin-top: 32px;
  text-align: center;
}

.page-protocol .section-cta a {
  color: var(--proto-blue);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  transition: color 0.2s ease;
}

.page-protocol .section-cta a:hover { color: var(--proto-cyan); }

/* ============================================================== Metrics */
.page-protocol .metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.page-protocol .metrics-grid--2 {
  grid-template-columns: repeat(2, 1fr);
  max-width: 560px;
}

.page-protocol .metric-card {
  position: relative;
  background: var(--proto-surface);
  border: 1px solid var(--proto-border);
  border-radius: var(--proto-radius);
  padding: 32px 20px;
  text-align: center;
  backdrop-filter: blur(8px);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  overflow: hidden;
}

.page-protocol .metric-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.08), transparent);
  animation: proto-scan 6s ease-in-out infinite;
}

.page-protocol .metric-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(59, 130, 246, 0.15);
  border-color: rgba(59, 130, 246, 0.3);
}

.page-protocol .metric-value {
  font-size: 2rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--proto-blue), var(--proto-cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-family: ui-monospace, monospace;
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}

.page-protocol .metric-label {
  font-size: 12px;
  font-weight: 500;
  color: var(--proto-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* ========================================================= Spec pages */
.page-protocol .spec-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.page-protocol .spec-grid--3 { grid-template-columns: repeat(3, 1fr); }

.page-protocol .spec-card {
  background: var(--proto-surface);
  border: 1px solid var(--proto-border);
  border-radius: var(--proto-radius-sm);
  padding: 24px;
  backdrop-filter: blur(8px);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.page-protocol .spec-card:hover {
  transform: translateY(-2px);
  border-color: var(--proto-border-strong);
}

.page-protocol .spec-card h3 {
  font-size: 14px;
  font-weight: 700;
  margin: 0 0 10px;
  font-family: ui-monospace, monospace;
  color: var(--proto-cyan);
}

.page-protocol .spec-card p {
  font-size: 13px;
  color: var(--proto-text-muted);
  line-height: 1.6;
  margin: 0;
}

.page-protocol .spec-text {
  font-size: 16px;
  line-height: 1.8;
  color: var(--proto-text-muted);
  max-width: 800px;
  margin: 0;
}

.page-protocol .spec-text--note {
  margin-top: 20px;
  font-size: 14px;
  font-style: italic;
  opacity: 0.85;
}

.page-protocol .spec-quote {
  margin: 24px 0 0;
  padding: 20px 24px;
  border-left: 3px solid var(--proto-cyan);
  background: rgba(34, 211, 238, 0.06);
  border-radius: 0 var(--proto-radius-sm) var(--proto-radius-sm) 0;
  font-size: 15px;
  line-height: 1.7;
  color: var(--proto-text);
  max-width: 800px;
}

.page-protocol .spec-list--numbered {
  list-style: decimal;
  padding-left: 22px;
  max-width: 800px;
  margin: 20px 0;
}

.page-protocol .spec-list--numbered li {
  padding: 8px 0;
  color: var(--proto-text-muted);
  line-height: 1.65;
}

.page-protocol .code-block--tall {
  max-width: 100%;
  font-size: 12px;
  line-height: 1.55;
}

.page-protocol .boundary-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  max-width: 900px;
}

.page-protocol .boundary-card {
  background: var(--proto-surface);
  border: 1px solid var(--proto-border);
  border-radius: var(--proto-radius-sm);
  padding: 24px;
  backdrop-filter: blur(8px);
}

.page-protocol .boundary-card h3 {
  font-family: var(--proto-font-mono);
  font-size: 13px;
  font-weight: 600;
  color: var(--proto-cyan);
  margin: 0 0 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.page-protocol .boundary-card p {
  font-size: 13px;
  line-height: 1.65;
  color: var(--proto-text-muted);
  margin: 0;
  font-family: var(--proto-font-mono);
}

.page-protocol .boundary-card--chain {
  border-color: rgba(59, 130, 246, 0.3);
}

.page-protocol .boundary-card--exec {
  border-color: rgba(34, 211, 238, 0.25);
}

@media (max-width: 768px) {
  .page-protocol .boundary-grid {
    grid-template-columns: 1fr;
  }
}

.page-protocol .spec-list li,
.page-protocol .principles-ordered-list li {
  padding: 14px 0;
  border-bottom: 1px solid var(--proto-border);
  color: var(--proto-text-muted);
  font-size: 15px;
  line-height: 1.65;
}

.page-protocol .principles-ordered-list {
  margin: 0;
  padding-left: 20px;
  max-width: 800px;
}

.page-protocol .code-block {
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--proto-border);
  border-radius: var(--proto-radius-sm);
  padding: 20px;
  font-family: ui-monospace, monospace;
  font-size: 13px;
  line-height: 1.65;
  color: var(--proto-cyan);
  overflow-x: auto;
  white-space: pre-wrap;
  margin: 16px 0 0;
}

.page-protocol .flow-list {
  margin: 0;
  padding-left: 20px;
  max-width: 800px;
}

.page-protocol .flow-list li {
  padding: 10px 0;
  color: var(--proto-text-muted);
  line-height: 1.65;
}

.page-protocol .spec-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  border-radius: var(--proto-radius-sm);
  overflow: hidden;
}

.page-protocol .spec-table th,
.page-protocol .spec-table td {
  padding: 14px 18px;
  border: 1px solid var(--proto-border);
  text-align: left;
}

.page-protocol .spec-table th {
  background: var(--proto-bg-3);
  font-weight: 600;
  width: 180px;
}

.page-protocol .arch-layer-list {
  border: 1px solid var(--proto-border);
  border-radius: var(--proto-radius);
  overflow: hidden;
}

.page-protocol .arch-layer-row {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 16px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--proto-border);
  background: var(--proto-surface);
  font-size: 14px;
}

.page-protocol .arch-layer-row:last-child { border-bottom: none; }

.page-protocol .arch-layer-components {
  color: var(--proto-text-muted);
  font-family: ui-monospace, monospace;
  font-size: 12px;
}

/* ============================================================= Roadmap */
.page-protocol .roadmap-list {
  border: 1px solid var(--proto-border);
  border-radius: var(--proto-radius);
  overflow: hidden;
}

.page-protocol .roadmap-item {
  display: grid;
  grid-template-columns: 100px 1fr auto;
  gap: 16px;
  align-items: center;
  padding: 18px 22px;
  border-bottom: 1px solid var(--proto-border);
  background: var(--proto-surface);
  font-size: 14px;
  transition: background 0.2s ease;
}

.page-protocol .roadmap-item:hover { background: var(--proto-surface-hover); }
.page-protocol .roadmap-item:last-child { border-bottom: none; }

.page-protocol .roadmap-date {
  font-family: ui-monospace, monospace;
  font-size: 12px;
  color: var(--proto-text-muted);
}

.page-protocol .roadmap-status {
  font-size: 11px;
  font-weight: 600;
  padding: 5px 10px;
  border-radius: 999px;
  white-space: nowrap;
}

.page-protocol .roadmap-item[data-status="completed"] .roadmap-status {
  background: rgba(34, 197, 94, 0.15);
  color: #4ade80;
}

.page-protocol .roadmap-item[data-status="inProgress"] .roadmap-status {
  background: rgba(245, 158, 11, 0.15);
  color: #fbbf24;
}

.page-protocol .roadmap-item[data-status="planned"] .roadmap-status,
.page-protocol .roadmap-item[data-status="future"] .roadmap-status {
  background: rgba(148, 163, 184, 0.12);
  color: #94a3b8;
}

/* =============================================================== Team */
.page-protocol .team-grid--compact {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.page-protocol .team-grid--compact .team-member {
  background: var(--proto-surface);
  border: 1px solid var(--proto-border);
  border-radius: var(--proto-radius);
  padding: 28px 20px;
  text-align: center;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.page-protocol .team-grid--compact .team-member:hover {
  transform: translateY(-3px);
  border-color: var(--proto-border-strong);
}

.page-protocol .team-grid--compact .member-photo img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--proto-border-strong);
}

.page-protocol .member-name {
  font-size: 16px;
  font-weight: 600;
  margin: 14px 0 4px;
}

.page-protocol .member-title {
  font-size: 12px;
  color: var(--proto-blue);
  margin-bottom: 10px;
  font-weight: 500;
}

.page-protocol .member-description {
  font-size: 13px;
  color: var(--proto-text-muted);
  line-height: 1.55;
}

/* ============================================================== Footer */
.page-protocol .site-footer {
  padding: 64px 0 40px;
  margin-top: 0;
  background: linear-gradient(180deg, transparent, rgba(15, 23, 42, 0.5));
  border-top: 1px solid var(--proto-border);
}

.page-protocol .footer-logo-image {
  height: 90px;
  width: auto;
  max-width: 360px;
}

.page-protocol .footer-content.footer-content--protocol {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 48px;
  align-items: start;
}

.page-protocol .footer-content--protocol .footer-columns {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.page-protocol .footer-column h4 {
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--proto-text-muted);
}

.page-protocol .footer-column a {
  font-size: 13px;
  color: var(--proto-text-muted);
  transition: color 0.2s ease;
}

.page-protocol .footer-column a:hover { color: var(--proto-text); }

.page-protocol .footer-copyright {
  font-size: 12px;
  margin-top: 12px;
  color: var(--proto-text-muted);
}

/* ======================================================== Nav dropdown */
.page-protocol .nav-dropdown { position: relative; }

.page-protocol .nav-dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%);
  min-width: 320px;
  background: rgba(15, 23, 42, 0.95);
  border: 1px solid var(--proto-border-strong);
  border-radius: var(--proto-radius-sm);
  padding: 8px;
  z-index: 1200;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(20px);
}

.page-protocol .nav-dropdown-menu--right {
  left: auto;
  right: 0;
  transform: none;
}

.page-protocol .nav-dropdown.open .nav-dropdown-menu { display: block; }

.page-protocol .nav-dropdown-toggle {
  position: relative;
  padding-right: 16px;
  background: none;
  border: none;
  cursor: pointer;
  color: inherit;
  font: inherit;
}

.page-protocol .nav-dropdown-toggle::after {
  content: '▾';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  font-size: 10px;
  opacity: 0.6;
  width: auto;
  height: auto;
  background: none;
}

.page-protocol .nav-dropdown-item {
  display: block;
  padding: 14px 16px;
  border-radius: 8px;
  text-decoration: none;
  color: var(--proto-text);
  transition: background 0.15s ease;
}

.page-protocol .nav-dropdown-item:hover { background: rgba(255, 255, 255, 0.05); }

.page-protocol .nav-dropdown-item-title {
  display: block;
  font-weight: 600;
  font-size: 13px;
  margin-bottom: 4px;
}

.page-protocol .nav-dropdown-item-desc {
  display: block;
  font-size: 12px;
  color: var(--proto-text-muted);
  line-height: 1.45;
}

/* ========================================================== Responsive */
@media (max-width: 1100px) {
  .page-protocol .site-header-inner {
    grid-template-columns: auto 1fr auto;
    gap: 12px;
  }

  .page-protocol .header-nav { gap: 16px; }
  .page-protocol #header-whitepaper-btn { display: none; }

  .page-protocol .protocol-dual-grid,
  .page-protocol .spec-grid--3,
  .page-protocol .principles-list {
    grid-template-columns: 1fr;
  }

  .page-protocol .metrics-grid { grid-template-columns: repeat(2, 1fr); }
  .page-protocol .team-grid--compact { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 968px) {
  .page-protocol {
    --proto-header-h: 60px;
  }

  .page-protocol main {
    margin-top: 0;
  }

  .page-protocol .site-header-shell {
    padding: 10px 0;
    background: rgba(3, 7, 18, 0.98);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  .page-protocol .site-header-inner {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 12px;
  }

  .page-protocol .header-left {
    flex: 1;
    min-width: 0;
  }

  .page-protocol .mobile-menu-toggle {
    display: flex;
    flex-shrink: 0;
    position: relative;
    z-index: 1302;
  }

  .page-protocol .header-right {
    flex-shrink: 0;
    position: static;
    transform: none;
  }

  .page-protocol .header-nav {
    display: none;
    flex: none;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    align-content: flex-start;
    position: fixed;
    inset: 0;
    width: 100%;
    max-width: none;
    margin: 0;
    background: rgba(3, 7, 18, 0.98);
    padding: var(--proto-header-h, 56px) 24px 24px;
    padding-bottom: max(24px, env(safe-area-inset-bottom));
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    z-index: 1290;
    border-top: none;
    gap: 0;
    box-sizing: border-box;
    transform: none;
    opacity: 1;
    visibility: visible;
  }

  .page-protocol .header-nav.mobile-menu-open {
    display: flex;
    transform: none;
    opacity: 1;
    visibility: visible;
  }

  .page-protocol .header-nav > a {
    padding: 16px 0;
    border-bottom: 1px solid var(--proto-border);
  }

  .page-protocol .nav-dropdown--mobile-group,
  .page-protocol .header-mobile-actions {
    display: block;
    width: 100%;
  }

  .page-protocol .nav-dropdown--desktop-dev { display: none; }
  .page-protocol .header-right .btn-header { display: none; }

  .page-protocol .nav-dropdown-menu {
    position: static;
    transform: none;
    box-shadow: none;
    border: none;
    background: transparent;
    padding: 0 0 8px;
    min-width: 100%;
  }

  .page-protocol .header-mobile-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding-top: 24px;
  }

  .page-protocol .btn-header--block {
    width: 100%;
    text-align: center;
    display: block;
  }

  .page-protocol .footer-content.footer-content--protocol { grid-template-columns: 1fr; }
  .page-protocol .footer-content.footer-content--protocol {
    grid-template-areas:
      "columns"
      "brand";
  }
  .page-protocol .footer-right { grid-area: columns; }
  .page-protocol .footer-left { grid-area: brand; }
  .page-protocol .footer-content--protocol .footer-columns { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 600px) {
  .page-protocol:not(.page-download) .container { padding: 0 20px; }
  .page-protocol.page-download .container { padding: 0 16px; }

  .page-protocol:not(.page-download) .protocol-dual-section,
  .page-protocol:not(.page-download) .spec-section,
  .page-protocol:not(.page-download) .principles-section,
  .page-protocol:not(.page-download) .layer-stack-section,
  .page-protocol:not(.page-download) .network-metrics-section {
    padding: 56px 0;
  }

  .page-protocol .spec-grid,
  .page-protocol .metrics-grid,
  .page-protocol .team-grid--compact {
    grid-template-columns: 1fr;
  }

  .page-protocol .layer-item {
    flex-direction: column;
    align-items: flex-start;
  }

  .page-protocol .layer-desc { text-align: left; }

  .page-protocol .arch-layer-row,
  .page-protocol .roadmap-item {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .hero-visual { display: none; }
}

/* ========================================================= Tech layer */
@keyframes proto-title-shimmer {
  0% { background-position: 0% center; }
  100% { background-position: 200% center; }
}

@keyframes proto-scan {
  0%, 100% { left: -100%; }
  50% { left: 140%; }
}

@keyframes proto-orbit-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes proto-orbit-spin-rev {
  from { transform: rotate(360deg); }
  to { transform: rotate(0deg); }
}

@keyframes proto-pulse-ring {
  0%, 100% { transform: scale(1); opacity: 0.6; }
  50% { transform: scale(1.04); opacity: 1; }
}

@keyframes proto-scanline-move {
  0% { transform: translateY(-100%); }
  100% { transform: translateY(100vh); }
}

.hero-bg__scanline {
  position: absolute;
  left: 0;
  right: 0;
  height: 120px;
  background: linear-gradient(180deg, transparent, rgba(59, 130, 246, 0.04), transparent);
  animation: proto-scanline-move 8s linear infinite;
  pointer-events: none;
}

.hero-visual {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  z-index: 1;
  opacity: 0.42;
  transform: translateY(6%);
}

.hero-orbit-system {
  position: relative;
  width: min(520px, 90vw);
  height: min(520px, 90vw);
  transition: transform 0.15s ease-out;
}

.hero-orbit {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid rgba(59, 130, 246, 0.15);
}

.hero-orbit--outer {
  inset: 0;
  border-color: rgba(139, 92, 246, 0.2);
  animation: proto-orbit-spin 40s linear infinite;
}

.hero-orbit--mid {
  inset: 14%;
  border-color: rgba(59, 130, 246, 0.25);
  animation: proto-orbit-spin-rev 28s linear infinite;
}

.hero-orbit--inner {
  inset: 28%;
  border-color: rgba(34, 211, 238, 0.3);
  animation: proto-orbit-spin 20s linear infinite;
}

.hero-orbit--outer::before,
.hero-orbit--mid::before {
  content: '';
  position: absolute;
  top: -3px;
  left: 50%;
  width: 6px;
  height: 6px;
  margin-left: -3px;
  border-radius: 50%;
  background: var(--proto-cyan);
  box-shadow: 0 0 12px var(--proto-cyan);
}

.hero-core {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 88px;
  height: 88px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at 30% 30%, rgba(59, 130, 246, 0.5), rgba(15, 23, 42, 0.9));
  border: 1px solid rgba(59, 130, 246, 0.5);
  box-shadow: 0 0 40px rgba(59, 130, 246, 0.35), inset 0 0 20px rgba(34, 211, 238, 0.15);
  animation: proto-pulse-ring 4s ease-in-out infinite;
}

.hero-core span {
  font-family: var(--proto-font-mono);
  font-size: 14px;
  font-weight: 600;
  color: var(--proto-cyan);
  letter-spacing: 0.1em;
}

.hero-node {
  position: absolute;
  padding: 6px 12px;
  border-radius: 999px;
  font-family: var(--proto-font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--proto-text);
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid var(--proto-border-strong);
  backdrop-filter: blur(8px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.hero-node--1 { top: 8%; left: 50%; transform: translateX(-50%); border-color: rgba(245, 158, 11, 0.4); }
.hero-node--2 { bottom: 18%; left: 6%; border-color: rgba(59, 130, 246, 0.45); }
.hero-node--3 { bottom: 22%; right: 4%; border-color: rgba(34, 211, 238, 0.45); }

.hero-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px 6px 10px;
  border-radius: 999px;
  font-family: var(--proto-font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--proto-text-muted);
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid var(--proto-border-strong);
  backdrop-filter: blur(8px);
}

.hero-status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--proto-cyan);
  box-shadow: 0 0 10px var(--proto-cyan);
  animation: proto-pulse-ring 2s ease-in-out infinite;
}

.page-protocol .hero-section--protocol .hero-content {
  z-index: 3;
}

.page-protocol .protocol-card-title {
  font-family: var(--proto-font-display);
}

.page-protocol .protocol-card-modules li {
  font-family: var(--proto-font-mono);
  transition: border-color 0.2s ease, background 0.2s ease;
}

.page-protocol .protocol-card:hover .protocol-card-modules li {
  border-color: rgba(59, 130, 246, 0.2);
}

.page-protocol .protocol-card--gas:hover .protocol-card-modules li:first-child,
.page-protocol .protocol-card--ai:hover .protocol-card-modules li:first-child {
  border-color: rgba(34, 211, 238, 0.35);
  background: rgba(59, 130, 246, 0.08);
}

.page-protocol .layer-name {
  font-family: var(--proto-font-display);
}

.page-protocol .layer-desc {
  font-family: var(--proto-font-mono);
}

.page-protocol .metric-value {
  font-family: var(--proto-font-mono);
}

.proto-reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.proto-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .page-protocol .hero-section--protocol .hero-title,
  .hero-bg__scanline,
  .hero-orbit--outer,
  .hero-orbit--mid,
  .hero-orbit--inner,
  .hero-core,
  .hero-status-dot,
  .page-protocol .metric-card::after,
  .hero-wire,
  .hero-hex-plane,
  .proto-aurora__blob,
  .hero-bg__aurora {
    animation: none;
  }

  .proto-reveal {
    opacity: 1;
    transform: none;
  }

  .proto-particles { display: none; }

  .page-protocol .btn-primary::after,
  .page-protocol .protocol-card::after {
    animation: none;
  }
}

/* ======================================================= Future layer */
@property --proto-angle {
  syntax: '<angle>';
  initial-value: 0deg;
  inherits: false;
}

@keyframes proto-aurora-drift {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(4%, -3%) scale(1.08); }
  66% { transform: translate(-3%, 2%) scale(0.95); }
}

@keyframes proto-hex-scroll {
  0% { background-position: 0 0; }
  100% { background-position: 0 56px; }
}

@keyframes proto-wire-dash {
  to { stroke-dashoffset: -24; }
}

@keyframes proto-wire-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes proto-border-spin {
  to { --proto-angle: 360deg; }
}

@keyframes proto-aurora-hero {
  0%, 100% { opacity: 0.5; transform: scale(1) rotate(0deg); }
  50% { opacity: 0.85; transform: scale(1.1) rotate(3deg); }
}

/* Global aurora + particles */
.proto-aurora {
  position: fixed;
  inset: -20%;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.proto-aurora__blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  animation: proto-aurora-drift 18s ease-in-out infinite;
}

.proto-aurora__blob--1 {
  width: 55vw;
  height: 55vw;
  top: -10%;
  left: -10%;
  background: rgba(59, 130, 246, 0.14);
}

.proto-aurora__blob--2 {
  width: 45vw;
  height: 45vw;
  top: 30%;
  right: -15%;
  background: rgba(139, 92, 246, 0.12);
  animation-delay: -6s;
}

.proto-aurora__blob--3 {
  width: 40vw;
  height: 40vw;
  bottom: -10%;
  left: 25%;
  background: rgba(34, 211, 238, 0.1);
  animation-delay: -12s;
}

.proto-particles {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  opacity: 0.7;
}

/* Hero atmosphere */
.hero-bg__aurora {
  position: absolute;
  inset: -30%;
  background:
    radial-gradient(ellipse 50% 40% at 30% 40%, rgba(139, 92, 246, 0.22), transparent 60%),
    radial-gradient(ellipse 45% 35% at 70% 30%, rgba(34, 211, 238, 0.18), transparent 55%),
    radial-gradient(ellipse 40% 30% at 50% 80%, rgba(59, 130, 246, 0.15), transparent 50%);
  filter: blur(30px);
  animation: proto-aurora-hero 12s ease-in-out infinite;
}

.hero-bg__vignette {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 60% at 50% 45%, transparent 30%, rgba(3, 7, 18, 0.85) 100%);
  pointer-events: none;
}

.hero-hex-field {
  position: absolute;
  bottom: -10%;
  left: -25%;
  width: 150%;
  height: 55%;
  perspective: 320px;
  mask-image: linear-gradient(180deg, transparent 0%, black 35%, transparent 100%);
  pointer-events: none;
}

.hero-hex-plane {
  width: 100%;
  height: 100%;
  transform: rotateX(68deg);
  transform-origin: center top;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='100' viewBox='0 0 56 100'%3E%3Cpath d='M28 0 L56 16 L56 50 L28 66 L0 50 L0 16 Z' fill='none' stroke='rgba(34,211,238,0.12)' stroke-width='0.8'/%3E%3Cpath d='M28 34 L56 50 L56 84 L28 100 L0 84 L0 50 Z' fill='none' stroke='rgba(59,130,246,0.1)' stroke-width='0.8'/%3E%3C/svg%3E");
  background-size: 56px 100px;
  animation: proto-hex-scroll 4s linear infinite;
  opacity: 0.7;
}

.hero-wireframe {
  position: absolute;
  width: min(640px, 95vw);
  height: min(640px, 95vw);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  opacity: 0.35;
  animation: proto-wire-spin 80s linear infinite;
}

.hero-wire {
  stroke-dasharray: 6 10;
  animation: proto-wire-dash 3s linear infinite;
}

.hero-wire--2 { animation-delay: -0.5s; }
.hero-wire--3 { animation-delay: -1s; }
.hero-wire--4 { animation-delay: -1.5s; }
.hero-wire--5 { animation-delay: -2s; }
.hero-wire--6 { animation-delay: -2.5s; }

.hero-visual {
  opacity: 0.72;
  transform: translateY(4%);
}

.hero-orbit--outer,
.hero-orbit--mid,
.hero-orbit--inner {
  box-shadow: 0 0 30px rgba(59, 130, 246, 0.08), inset 0 0 20px rgba(34, 211, 238, 0.04);
}

.hero-core {
  box-shadow:
    0 0 60px rgba(59, 130, 246, 0.5),
    0 0 120px rgba(34, 211, 238, 0.2),
    inset 0 0 30px rgba(34, 211, 238, 0.25);
}

.hero-node {
  box-shadow: 0 0 20px rgba(34, 211, 238, 0.15);
}

.hero-status {
  border-color: rgba(34, 211, 238, 0.35);
  box-shadow: 0 0 24px rgba(34, 211, 238, 0.12), inset 0 0 12px rgba(34, 211, 238, 0.06);
}

/* Holographic cards */
.page-protocol .protocol-card {
  background: linear-gradient(155deg, rgba(15, 23, 42, 0.75) 0%, rgba(8, 12, 24, 0.55) 100%);
}

.page-protocol .protocol-card::after {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: conic-gradient(from var(--proto-angle), transparent 20%, var(--proto-cyan) 35%, var(--proto-blue) 50%, var(--proto-violet) 65%, transparent 80%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0.35;
  animation: proto-border-spin 6s linear infinite;
  pointer-events: none;
  z-index: 0;
}

.page-protocol .protocol-card:hover::after {
  opacity: 0.85;
}

.page-protocol .protocol-card--gas::after {
  background: conic-gradient(from var(--proto-angle), transparent 20%, #f59e0b 40%, var(--proto-cyan) 60%, transparent 80%);
}

.page-protocol .protocol-card > * {
  position: relative;
  z-index: 1;
}

.page-protocol .protocol-card-icon {
  box-shadow: 0 0 24px rgba(59, 130, 246, 0.2);
}

/* Glowing layer stack */
.page-protocol .layer-item {
  background: linear-gradient(90deg, rgba(15, 23, 42, 0.8), rgba(15, 23, 42, 0.45));
  box-shadow: inset 0 0 20px rgba(59, 130, 246, 0.03);
}

.page-protocol .layer-item:hover {
  box-shadow: 0 0 30px rgba(59, 130, 246, 0.12), inset 0 0 20px rgba(34, 211, 238, 0.06);
}

/* Metrics HUD style */
.page-protocol .metric-card {
  background: linear-gradient(160deg, rgba(15, 23, 42, 0.85), rgba(8, 12, 24, 0.6));
  border-color: rgba(59, 130, 246, 0.2);
}

.page-protocol .metric-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 16px;
  right: 16px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--proto-cyan), transparent);
  opacity: 0.6;
}

.page-protocol .metric-value {
  text-shadow: 0 0 30px rgba(34, 211, 238, 0.4);
}

/* Header glow line */
.page-protocol .site-header-shell::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 10%;
  right: 10%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(34, 211, 238, 0.5), rgba(59, 130, 246, 0.5), transparent);
}

/* Compact hero (subpages) */
.page-protocol .hero-section--compact::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 50% 0%, rgba(59, 130, 246, 0.12), transparent 70%),
    radial-gradient(ellipse 40% 30% at 80% 20%, rgba(139, 92, 246, 0.08), transparent 60%);
  pointer-events: none;
}

.page-protocol .hero-section--compact .hero-title {
  font-family: var(--proto-font-display);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  filter: drop-shadow(0 0 30px rgba(34, 211, 238, 0.2));
}

/* Section beam divider */
.page-protocol .section-header::after {
  content: '';
  display: block;
  width: 1px;
  height: 32px;
  margin: 20px auto 0;
  background: linear-gradient(180deg, var(--proto-cyan), transparent);
  opacity: 0.5;
}

/* Primary button glow pulse */
.page-protocol .btn-primary {
  position: relative;
  overflow: hidden;
}

.page-protocol .btn-primary::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 40%, rgba(255, 255, 255, 0.2) 50%, transparent 60%);
  transform: translateX(-100%);
  animation: proto-btn-sheen 4s ease-in-out infinite;
}

@keyframes proto-btn-sheen {
  0%, 70%, 100% { transform: translateX(-100%); }
  85% { transform: translateX(100%); }
}

/* ================================================= Home / Arch shared */
.page-protocol .protocol-card-path {
  margin: 0 0 16px;
  padding: 10px 12px;
  font-family: var(--proto-font-mono);
  font-size: 11px;
  line-height: 1.5;
  color: var(--proto-cyan);
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--proto-border);
  border-radius: 8px;
}

.page-protocol .protocol-card--gas .protocol-card-path {
  color: #fbbf24;
  border-color: rgba(245, 158, 11, 0.2);
}

.page-protocol .arch-split {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 20px;
  align-items: stretch;
  margin-top: 8px;
}

.page-protocol .arch-split-panel {
  padding: 28px 24px;
  background: var(--proto-surface);
  border: 1px solid var(--proto-border);
  border-radius: var(--proto-radius);
  backdrop-filter: blur(8px);
}

.page-protocol .arch-split-panel--chain {
  border-top: 2px solid var(--proto-blue);
}

.page-protocol .arch-split-panel--offchain {
  border-top: 2px solid var(--proto-violet);
}

.page-protocol .arch-split-panel__label {
  font-family: var(--proto-font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--proto-cyan);
  margin-bottom: 12px;
}

.page-protocol .arch-split-panel__text {
  margin: 0;
  font-family: var(--proto-font-mono);
  font-size: 12px;
  line-height: 1.8;
  color: var(--proto-text-muted);
}

.page-protocol .arch-split-divider {
  display: flex;
  align-items: center;
  justify-content: center;
}

.page-protocol .arch-split-divider span {
  font-family: var(--proto-font-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--proto-text-muted);
  padding: 8px 12px;
  border: 1px solid var(--proto-border);
  border-radius: 999px;
  background: var(--proto-bg-2);
  white-space: nowrap;
}

.page-protocol .payment-dual-grid,
.page-protocol .boundary-dual-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.page-protocol .payment-path-card,
.page-protocol .boundary-panel {
  padding: 24px;
  background: var(--proto-surface);
  border: 1px solid var(--proto-border);
  border-radius: var(--proto-radius-sm);
  backdrop-filter: blur(8px);
}

.page-protocol .payment-path-card--gas { border-top: 2px solid var(--proto-amber); }
.page-protocol .payment-path-card--ai { border-top: 2px solid var(--proto-blue); }

.page-protocol .payment-path-card h3 {
  margin: 0 0 14px;
  font-size: 14px;
  font-weight: 600;
}

.page-protocol .payment-path-card code {
  display: block;
  font-family: var(--proto-font-mono);
  font-size: 12px;
  line-height: 1.7;
  color: var(--proto-text-muted);
  white-space: pre-wrap;
  word-break: break-word;
}

.page-protocol .boundary-panel--onchain { border-top: 2px solid var(--proto-cyan); }
.page-protocol .boundary-panel--offchain { border-top: 2px solid var(--proto-violet); }

.page-protocol .boundary-panel__label {
  font-family: var(--proto-font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  margin-bottom: 12px;
  color: var(--proto-cyan);
}

.page-protocol .boundary-panel--offchain .boundary-panel__label { color: var(--proto-violet); }

.page-protocol .boundary-panel p {
  margin: 0;
  font-family: var(--proto-font-mono);
  font-size: 12px;
  line-height: 1.8;
  color: var(--proto-text-muted);
}

.page-protocol .proto-mono-panel {
  margin: 0;
  padding: 24px 28px;
  font-family: var(--proto-font-mono);
  font-size: 13px;
  line-height: 1.75;
  color: var(--proto-text-muted);
  background: var(--proto-surface);
  border: 1px solid var(--proto-border);
  border-radius: var(--proto-radius);
  white-space: pre-wrap;
  word-break: break-word;
  overflow-x: auto;
}

.page-protocol .layer-stack--six .layer-item:nth-child(6) { border-left-color: #10b981; }

@media (max-width: 900px) {
  .page-protocol .arch-split,
  .page-protocol .payment-dual-grid,
  .page-protocol .boundary-dual-grid {
    grid-template-columns: 1fr;
  }

  .page-protocol .arch-split-divider {
    padding: 8px 0;
  }
}

/* Mobile nav: hard overrides against legacy main.css rules */
@media (max-width: 968px) {
  body.page-protocol #headerNav {
    position: fixed !important;
    inset: 0 !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100% !important;
    max-width: none !important;
    flex: none !important;
    flex-direction: column !important;
    justify-content: flex-start !important;
    align-items: stretch !important;
    align-content: flex-start !important;
    transform: none !important;
    opacity: 1 !important;
    visibility: visible !important;
    margin: 0 !important;
  }

  body.page-protocol #headerNav:not(.mobile-menu-open) {
    display: none !important;
  }

  body.page-protocol #headerNav.mobile-menu-open {
    display: flex !important;
  }
}

/* ==================================================================
   Mobile breathing room (all protocol pages except download)
   ================================================================== */
@media (max-width: 768px) {
  .page-protocol:not(.page-download) {
    --proto-mobile-section-y: 52px;
    --proto-mobile-block-gap: 20px;
    --proto-mobile-card-gap: 16px;
  }

  .page-protocol:not(.page-download) .container {
    padding-left: 20px;
    padding-right: 20px;
  }

  .page-protocol:not(.page-download) .ai-block,
  .page-protocol:not(.page-download) .gas-block,
  .page-protocol:not(.page-download) .arch-block,
  .page-protocol:not(.page-download) .protocol-dual-section,
  .page-protocol:not(.page-download) .spec-section,
  .page-protocol:not(.page-download) .principles-section,
  .page-protocol:not(.page-download) .layer-stack-section,
  .page-protocol:not(.page-download) .network-metrics-section,
  .page-protocol:not(.page-download) .rm-section {
    padding-top: var(--proto-mobile-section-y);
    padding-bottom: var(--proto-mobile-section-y);
  }

  .page-protocol:not(.page-download) .ai-block__header,
  .page-protocol:not(.page-download) .gas-block__header,
  .page-protocol:not(.page-download) .arch-block__header,
  .page-protocol:not(.page-download) .section-header {
    margin-bottom: 28px;
  }

  .page-protocol:not(.page-download) .ai-block__title,
  .page-protocol:not(.page-download) .gas-block__title,
  .page-protocol:not(.page-download) .arch-block__title,
  .page-protocol:not(.page-download) .section-title {
    font-size: clamp(1.25rem, 5vw, 1.5rem);
    margin-bottom: 14px;
  }

  .page-protocol:not(.page-download) .ai-block__lead,
  .page-protocol:not(.page-download) .gas-block__lead,
  .page-protocol:not(.page-download) .arch-block__lead,
  .page-protocol:not(.page-download) .section-desc,
  .page-protocol:not(.page-download) .section-subtitle {
    font-size: 15px;
    line-height: 1.75;
  }

  .page-protocol:not(.page-download) .ai-quote-panel,
  .page-protocol:not(.page-download) .gas-quote-panel {
    margin-top: 24px;
    padding: 20px 18px;
    font-size: 14px;
    line-height: 1.75;
  }

  .page-protocol:not(.page-download) .ai-flow-banner,
  .page-protocol:not(.page-download) .gas-flow-banner {
    margin-top: 20px;
    padding: 16px 14px;
    font-size: 12px;
    line-height: 1.85;
    text-align: left;
    white-space: normal;
    word-break: break-word;
    overflow-wrap: anywhere;
  }

  .page-protocol:not(.page-download) .ai-problem-grid,
  .page-protocol:not(.page-download) .gas-scenario-grid {
    gap: var(--proto-mobile-card-gap);
    margin-top: 24px;
    margin-bottom: 24px;
  }

  .page-protocol:not(.page-download) .ai-problem-card,
  .page-protocol:not(.page-download) .gas-scenario-card {
    padding: 18px 16px;
  }

  .page-protocol:not(.page-download) .ai-problem-card p,
  .page-protocol:not(.page-download) .gas-scenario-card p {
    font-size: 14px;
    line-height: 1.65;
  }

  .page-protocol:not(.page-download) .protocol-dual-grid,
  .page-protocol:not(.page-download) .metrics-grid,
  .page-protocol:not(.page-download) .spec-grid,
  .page-protocol:not(.page-download) .layer-stack,
  .page-protocol:not(.page-download) .team-grid--compact {
    gap: var(--proto-mobile-block-gap);
  }

  .page-protocol:not(.page-download) .protocol-dual-grid {
    grid-template-columns: 1fr;
  }

  .page-protocol:not(.page-download) .protocol-card,
  .page-protocol:not(.page-download) .metric-card,
  .page-protocol:not(.page-download) .spec-card {
    padding: 24px 20px;
  }

  .page-protocol:not(.page-download) .hero-section--protocol {
    padding: 48px 0 40px;
  }

  .page-protocol:not(.page-download) .ai-hero,
  .page-protocol:not(.page-download) .gas-hero,
  .page-protocol:not(.page-download) .arch-hero {
    padding: 36px 0 44px;
  }

  .page-protocol:not(.page-download) .ai-hero__inner,
  .page-protocol:not(.page-download) .gas-hero__inner,
  .page-protocol:not(.page-download) .arch-hero__inner {
    gap: 32px;
  }

  .page-protocol:not(.page-download) .ai-bento,
  .page-protocol:not(.page-download) .gas-bento,
  .page-protocol:not(.page-download) .arch-bento,
  .page-protocol:not(.page-download) .arch-bento--ai {
    gap: var(--proto-mobile-card-gap);
    margin-top: 24px;
  }

  .page-protocol:not(.page-download) .ai-module,
  .page-protocol:not(.page-download) .gas-module,
  .page-protocol:not(.page-download) .arch-module {
    padding: 20px 18px;
  }

  .page-protocol:not(.page-download) .ai-arch-panel,
  .page-protocol:not(.page-download) .gas-arch-panel,
  .page-protocol:not(.page-download) .arch-arch-panel,
  .page-protocol:not(.page-download) .ai-token-card,
  .page-protocol:not(.page-download) .gas-token-card,
  .page-protocol:not(.page-download) .ai-boundary-panel,
  .page-protocol:not(.page-download) .gas-boundary-panel {
    padding: 22px 18px;
  }

  .page-protocol:not(.page-download) .ai-pill-row,
  .page-protocol:not(.page-download) .gas-pill-row,
  .page-protocol:not(.page-download) .arch-pill-row {
    gap: 10px;
    margin-top: 20px;
  }

  .page-protocol:not(.page-download) .layer-item {
    padding: 18px 16px;
    gap: 12px;
  }

  .page-protocol:not(.page-download) .roadmap-item,
  .page-protocol:not(.page-download) .arch-layer-row {
    gap: 12px;
    padding: 16px 0;
  }

  .page-protocol:not(.page-download) .code-block,
  .page-protocol:not(.page-download) .proto-mono-panel {
    padding: 16px 14px;
    font-size: 12px;
    line-height: 1.75;
  }

  .page-protocol:not(.page-download) .ai-pipeline,
  .page-protocol:not(.page-download) .gas-pipeline {
    gap: 10px;
    margin-top: 20px;
  }

  .page-protocol:not(.page-download) .ai-pipeline__node,
  .page-protocol:not(.page-download) .gas-pipeline__node {
    min-height: 48px;
    padding: 12px 10px;
    font-size: 11px;
  }

  .page-protocol:not(.page-download) .ai-payment-steps,
  .page-protocol:not(.page-download) .gas-payment-steps,
  .page-protocol:not(.page-download) .ai-phase-track,
  .page-protocol:not(.page-download) .gas-phase-track,
  .page-protocol:not(.page-download) .ai-role-grid,
  .page-protocol:not(.page-download) .gas-role-grid {
    gap: var(--proto-mobile-card-gap);
    margin-top: 24px;
  }

  .page-home.page-protocol:not(.page-download) .architecture-grid,
  .page-home.page-protocol:not(.page-download) .ecosystem-grid,
  .page-home.page-protocol:not(.page-download) .stats-grid,
  .page-home.page-protocol:not(.page-download) .partners-grid,
  .page-home.page-protocol:not(.page-download) .features-section .features-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

/* Footer mobile layout */
@media (max-width: 768px) {
  .page-protocol .site-footer {
    padding: 48px 0 32px;
  }

  .page-protocol .footer-content.footer-content--protocol {
    grid-template-columns: 1fr;
    grid-template-areas:
      "columns"
      "brand";
    gap: 36px;
    width: 100%;
  }

  .page-protocol .footer-right {
    grid-area: columns;
    width: 100%;
    min-width: 0;
  }

  .page-protocol .footer-left {
    grid-area: brand;
    width: 100%;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .page-protocol .footer-logo {
    justify-content: center;
    margin-bottom: 12px;
  }

  .page-protocol .footer-logo-image {
    height: 72px;
    max-width: 260px;
  }

  .page-protocol .footer-copyright {
    margin-top: 8px;
  }

  .page-protocol .footer-content--protocol .footer-columns {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px 24px;
    width: 100%;
  }

  .page-protocol .footer-column h4 {
    margin-bottom: 12px;
  }

  .page-protocol .footer-column li {
    margin-bottom: 10px;
  }

  .page-protocol .footer-column li:last-child {
    margin-bottom: 0;
  }
}

@media (max-width: 480px) {
  .page-protocol:not(.page-download) .container {
    padding-left: 18px;
    padding-right: 18px;
  }

  .page-protocol .footer-content--protocol .footer-columns {
    gap: 24px 16px;
  }

  .page-protocol .footer-logo-image {
    height: 64px;
  }
}
