/* ═══════════════════════════════════════════
   INFINITE Protocol — Homepage Styles
   Page-specific CSS for site/index.html
   Requires: shared.css loaded first
   ═══════════════════════════════════════════ */

/* ─── Free Access Top Bar ─── */
.free-access-topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 10px 20px;
  background: linear-gradient(90deg, rgba(200, 255, 0, 0.15), rgba(200, 255, 0, 0.08));
  border-bottom: 1px solid rgba(200, 255, 0, 0.3);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  font-family: var(--font-mono);
  font-size: 13px;
  animation: freeBarPulse 3s ease-in-out infinite;
}

@keyframes freeBarPulse {
  0%, 100% { border-bottom-color: rgba(200, 255, 0, 0.3); }
  50% { border-bottom-color: rgba(200, 255, 0, 0.7); }
}

.free-access-topbar-pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  animation: live-pulse 2s ease-in-out infinite;
  flex-shrink: 0;
}

.free-access-topbar-text {
  color: var(--text-dim);
}

.free-access-topbar-text strong {
  color: var(--accent);
}

.free-access-topbar-btn {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 6px 16px;
  background: var(--accent);
  color: var(--bg);
  border-radius: 6px;
  text-decoration: none;
  font-weight: 700;
  white-space: nowrap;
  transition: background 0.2s;
}

.free-access-topbar-btn:hover { background: #fff; }

/* Shift nav down when free access bar is visible */
.free-access-topbar ~ nav {
  top: 41px;
}

.free-access-topbar ~ .hero {
  padding-top: 160px;
}

@media (max-width: 768px) {
  .free-access-topbar { font-size: 11px; gap: 10px; padding: 8px 12px; }
  .free-access-topbar ~ nav { top: 37px; }
  .free-access-topbar ~ .hero { padding-top: 140px; }
}

@media (max-width: 480px) {
  .free-access-topbar { font-size: 10px; gap: 8px; flex-wrap: wrap; justify-content: center; }
  .free-access-topbar-btn { font-size: 10px; padding: 4px 12px; }
  .free-access-topbar ~ nav { top: 37px; }
  .free-access-topbar ~ .hero { padding-top: 120px; }
}

/* ─── Page Overrides ─── */
body::after {
  content: '';
  position: fixed;
  top: -50%; left: -50%;
  width: 200%; height: 200%;
  background: repeating-conic-gradient(rgba(255,255,255,0.008) 0%, transparent 0.5%, transparent 1%);
  pointer-events: none;
  z-index: 9999;
  opacity: 0.6;
}

html { scroll-behavior: auto; }
[id] { scroll-margin-top: 80px; }

.section-label {
  letter-spacing: 4px;
  margin-bottom: 24px;
  gap: 12px;
}

.section-label::before { width: 40px; }

/* ─── Nav ─── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 20px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(10, 10, 10, 0.8);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}

.nav-cta.ghost {
  background: transparent !important;
  border: none !important;
  border-radius: 0 !important;
  padding: 0 !important;
  color: var(--text-dim) !important;
  font-weight: 400 !important;
}

.nav-cta.ghost:hover {
  background: transparent !important;
  color: var(--accent) !important;
  transform: none;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
}

.hamburger span {
  width: 24px;
  height: 2px;
  background: var(--text);
  transition: all 0.3s;
  display: block;
}

.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

.mobile-menu {
  display: none;
  position: fixed;
  top: 65px;
  left: 0; right: 0;
  background: rgba(10, 10, 10, 0.95);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 24px 40px;
  flex-direction: column;
  gap: 20px;
  z-index: 99;
}

.mobile-menu.open { display: flex; }

.mobile-menu a {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-dim);
  text-decoration: none;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  transition: color 0.3s;
}

.mobile-menu a:last-child { border-bottom: none; }
.mobile-menu a:hover { color: var(--accent); }

/* ─── Hero ─── */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 120px 40px 60px;
  position: relative;
  overflow: hidden;
}

.hero-grid-bg {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background-image:
    linear-gradient(rgba(200, 255, 0, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(200, 255, 0, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  -webkit-mask-image: radial-gradient(ellipse at 50% 50%, black 20%, transparent 70%);
  mask-image: radial-gradient(ellipse at 50% 50%, black 20%, transparent 70%);
}

.hero-glow {
  position: absolute;
  width: 800px;
  height: 800px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(200, 255, 0, 0.04) 0%, transparent 70%);
  top: -200px;
  right: -200px;
  animation: pulse-glow 8s ease-in-out infinite;
}

@keyframes pulse-glow {
  0%, 100% { opacity: 0.5; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.1); }
}

.hero-content {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 40px;
}

.hero-text { position: relative; z-index: 2; }

.globe-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

#cobeGlobe {
  width: 100%;
  max-width: 580px;
  aspect-ratio: 1;
  opacity: 0.85;
}
.hero-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 32px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.hero-label::before {
  content: '';
  width: 40px;
  height: 1px;
  background: var(--accent);
}

.hero-headline {
  font-family: var(--font-display);
  font-size: clamp(40px, 6vw, 76px);
  line-height: 0.95;
  letter-spacing: -2px;
  margin-bottom: 28px;
  max-width: 900px;
}

.hero-headline .accent {
  color: var(--accent);
  font-style: italic;
}

.hero-headline .thin {
  font-weight: 400;
  color: var(--text-dim);
}

.hero-sub {
  font-size: 16px;
  color: var(--text-dim);
  max-width: 560px;
  line-height: 1.7;
  margin-bottom: 36px;
  font-weight: 300;
}

.hero-actions {
  display: flex;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

/* ─── Hero CA Strip ─── */
.hero-ca {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  max-width: fit-content;
}

.hero-ca .ca-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-muted);
  flex-shrink: 0;
}

.hero-ca .ca-address {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent);
  word-break: break-all;
}

.hero-ca .ca-copy {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 1px;
  padding: 6px 12px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--text-dim);
  cursor: pointer;
  transition: all 0.2s;
  flex-shrink: 0;
}

.hero-ca .ca-copy:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.hero-ca .ca-buy {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 1px;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  background: var(--accent);
  color: var(--bg);
  text-decoration: none;
  font-weight: 600;
  flex-shrink: 0;
  transition: background 0.2s;
}

.hero-ca .ca-buy:hover { background: #fff; }

.hero-ca.pending {
  animation: caPulse 3s ease-in-out infinite;
}

@keyframes caPulse {
  0%, 100% { border-color: var(--border); }
  50% { border-color: rgba(200, 255, 0, 0.3); }
}

/* ─── Value Hooks ─── */
.hooks-section {
  padding: 0 40px 40px;
  position: relative;
  margin-top: -60px;
  z-index: 10;
}

.hooks-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.hook-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 40px 32px;
  position: relative;
  transition: all 0.4s;
  overflow: hidden;
}

.hook-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--accent);
  opacity: 0;
  transition: opacity 0.4s;
}

.hook-card:hover {
  border-color: var(--accent);
  background: var(--surface-2);
  transform: translateY(-4px);
}

.hook-card:hover::before {
  opacity: 1;
}

.hook-pill {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--bg);
  background: var(--accent);
  padding: 4px 14px;
  border-radius: var(--radius-pill);
  margin-bottom: 20px;
}

.hook-title {
  font-family: var(--font-display);
  font-size: 28px;
  line-height: 1.15;
  margin-bottom: 16px;
}

.hook-title span {
  color: var(--accent);
  font-style: italic;
}

.hook-desc {
  font-size: 14px;
  color: var(--text-dim);
  line-height: 1.7;
  font-weight: 300;
  margin-bottom: 24px;
}

.hook-link {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 1px;
  color: var(--accent);
  text-decoration: none;
  transition: opacity 0.3s;
}

.hook-link:hover {
  opacity: 0.7;
}

/* Hook card mouse-tracking glow */
.hook-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(
    600px circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
    rgba(200, 255, 0, 0.06),
    transparent 40%
  );
  opacity: 0;
  transition: opacity 0.4s;
  pointer-events: none;
}

.hook-card:hover::after {
  opacity: 1;
}

/* ─── Protocol Stats ─── */
.protocol-stats {
  padding: 80px 40px;
  position: relative;
}

.protocol-stats::before {
  content: '';
  position: absolute;
  top: 0;
  left: 10%;
  right: 10%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(200, 255, 0, 0.12) 20%, rgba(200, 255, 0, 0.3) 50%, rgba(200, 255, 0, 0.12) 80%, transparent);
}

.protocol-stats-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.protocol-stats-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 40px;
}

.protocol-stats-header h2 {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.1;
}

.live-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent);
  padding: 8px 16px;
  border: 1px solid rgba(200, 255, 0, 0.2);
  border-radius: var(--radius-pill);
  background: rgba(200, 255, 0, 0.04);
}

.live-badge .pulse {
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
  animation: live-pulse 2s ease-in-out infinite;
}

@keyframes live-pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(200, 255, 0, 0.4); }
  50% { opacity: 0.6; box-shadow: 0 0 0 6px rgba(200, 255, 0, 0); }
}

/* Hero stats row */
.stats-hero-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 12px;
}

.stats-hero-row.triple {
  grid-template-columns: 1fr 1fr 1fr;
}

.stats-hero-block.saved {
  border-color: rgba(200, 255, 0, 0.2);
  background: rgba(200, 255, 0, 0.03);
}

.stats-hero-block.saved .stats-hero-number {
  color: #fff;
  text-shadow: 0 0 30px rgba(200, 255, 0, 0.3);
}

.stats-hero-block {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 40px 32px;
  text-align: center;
  position: relative;
  transition: all 0.4s;
  overflow: hidden;
}

.stats-hero-block::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(200, 255, 0, 0.04) 0%, transparent 60%);
  pointer-events: none;
}

.stats-hero-block:hover {
  border-color: var(--accent);
  background: var(--surface-2);
}

.stats-hero-number {
  font-family: var(--font-mono);
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 12px;
  letter-spacing: -1px;
}

.stats-hero-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-muted);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.stat-block {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 32px 24px;
  transition: all 0.4s;
  position: relative;
}

.stat-block:hover {
  border-color: var(--accent);
  background: var(--surface-2);
}

.stat-block .stat-number {
  font-family: var(--font-mono);
  font-size: 32px;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 8px;
  line-height: 1;
}

.stat-block .stat-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.stat-block .stat-sub {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-dim);
}

.stat-block .stat-icon {
  position: absolute;
  top: 16px;
  right: 16px;
  font-size: 16px;
  opacity: 0.3;
}

/* ─── How It Works ─── */
.how-section {
  padding: 140px 40px;
  max-width: 1200px;
  margin: 0 auto;
}

.how-headline {
  font-family: var(--font-display);
  font-size: clamp(36px, 5vw, 64px);
  line-height: 1.1;
  margin-bottom: 80px;
  max-width: 700px;
}

.how-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.how-step {
  background: var(--surface);
  padding: 48px 40px;
  position: relative;
  transition: all 0.4s;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}

.how-step:hover {
  background: var(--surface-2);
  border-color: var(--accent);
}

.step-number {
  font-family: var(--font-mono);
  font-size: 64px;
  font-weight: 700;
  color: var(--border);
  line-height: 1;
  margin-bottom: 24px;
  transition: color 0.4s;
}

.how-step:hover .step-number { color: var(--accent); }

.step-title {
  font-family: var(--font-display);
  font-size: 28px;
  margin-bottom: 16px;
}

.step-desc {
  font-size: 14px;
  color: var(--text-dim);
  line-height: 1.7;
  font-weight: 300;
}

/* ─── Tools Section ─── */
.tools-section {
  padding: 140px 40px;
  position: relative;
}

.tools-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.tools-headline {
  font-family: var(--font-display);
  font-size: clamp(36px, 5vw, 64px);
  line-height: 1.1;
  margin-bottom: 16px;
}

.tools-sub {
  font-size: 16px;
  color: var(--text-dim);
  margin-bottom: 64px;
  font-weight: 300;
  max-width: 600px;
}

.tools-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.tool-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 40px;
  transition: all 0.4s;
  cursor: default;
  position: relative;
}

.tool-card:hover {
  background: var(--surface-2);
  border-color: var(--border-light);
}

.tool-preview {
  background: linear-gradient(135deg, var(--bg) 0%, var(--surface-2) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 28px;
  margin-bottom: 24px;
  min-height: 100px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  overflow: hidden;
}

.tool-preview-icon {
  font-family: var(--font-mono);
  font-size: 24px;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
  letter-spacing: 2px;
  text-shadow: 0 0 20px rgba(200, 255, 0, 0.3);
}

.tool-preview-label {
  font-family: var(--font-body);
  font-size: 12px;
  color: var(--text-muted);
  text-align: center;
}

.tool-icon {
  font-size: 32px;
  margin-bottom: 20px;
  display: block;
}

.tool-name {
  font-family: var(--font-display);
  font-size: 24px;
  margin-bottom: 8px;
}

.tool-tag {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
  display: inline-block;
}

.tool-desc {
  font-size: 14px;
  color: var(--text-dim);
  line-height: 1.7;
  font-weight: 300;
}

/* Chat preview */
.chat-bubble {
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 12px;
  line-height: 1.5;
  max-width: 85%;
}

.chat-bubble.user {
  background: var(--surface-2);
  color: var(--text);
  align-self: flex-end;
  border: 1px solid var(--border-light);
}

.chat-bubble.ai {
  background: rgba(200, 255, 0, 0.08);
  color: var(--text-dim);
  border: 1px solid rgba(200, 255, 0, 0.15);
}

.chat-bubble .model-tag {
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--accent);
  letter-spacing: 1px;
  margin-bottom: 4px;
  display: block;
}

/* Bot preview */
.bot-signal {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border: 1px solid var(--border);
  background: var(--surface);
  font-family: var(--font-mono);
  font-size: 11px;
}

.bot-signal .dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}

.bot-signal .dot.green { background: var(--green); }
.bot-signal .dot.yellow { background: #febc2e; }

.bot-signal .token { color: var(--text); font-weight: 500; }
.bot-signal .action { color: var(--accent); }
.bot-signal .detail { color: var(--text-muted); }

/* Image preview */
.img-preview-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}

.img-preview-box {
  aspect-ratio: 1;
  border: 1px solid var(--border);
  background: linear-gradient(135deg, var(--surface) 0%, var(--surface-2) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  position: relative;
  overflow: hidden;
}

.img-preview-box::after {
  content: '';
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
  background: linear-gradient(135deg, rgba(200,255,0,0.05), transparent);
}

/* Research preview */
.research-item {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 6px 0;
}

.research-item .r-icon {
  color: var(--accent);
  font-size: 14px;
  flex-shrink: 0;
  margin-top: 2px;
}

.research-item .r-text {
  font-size: 11px;
  color: var(--text-dim);
  line-height: 1.5;
}

.research-item .r-text strong {
  color: var(--text);
  font-weight: 500;
}

/* ─── Live Demo ─── */
.demo-section {
  padding: 140px 40px;
  position: relative;
}

.demo-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 10%;
  right: 10%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(200, 255, 0, 0.12) 20%, rgba(200, 255, 0, 0.3) 50%, rgba(200, 255, 0, 0.12) 80%, transparent);
}

.demo-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.demo-headline {
  font-family: var(--font-display);
  font-size: clamp(36px, 5vw, 64px);
  line-height: 1.1;
  margin-bottom: 16px;
}

.demo-sub {
  font-size: 16px;
  color: var(--text-dim);
  margin-bottom: 40px;
  font-weight: 300;
  max-width: 600px;
}

.demo-prompts {
  display: flex;
  gap: 12px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}

.demo-chip {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 1px;
  padding: 10px 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  color: var(--text-dim);
  cursor: pointer;
  transition: all 0.3s;
}

.demo-chip:hover { border-color: var(--border-light); color: var(--text); }

.demo-chip.active {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(200, 255, 0, 0.06);
  box-shadow: 0 0 20px rgba(200, 255, 0, 0.08);
}

.demo-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.demo-pane {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  min-height: 280px;
  display: flex;
  flex-direction: column;
}

.demo-pane-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
}

.demo-model {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 8px;
}

.demo-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.demo-dot.claude { background: #a855f7; }
.demo-dot.gemini { background: #3b82f6; }

.demo-timer {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
}

.demo-response {
  padding: 20px;
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.7;
  color: var(--text-dim);
  flex: 1;
  white-space: pre-wrap;
  overflow-y: auto;
  max-height: 320px;
}

.demo-cursor {
  display: inline-block;
  width: 2px;
  height: 14px;
  background: var(--accent);
  margin-left: 2px;
  vertical-align: middle;
  animation: blink-cursor 0.8s steps(1) infinite;
}

@keyframes blink-cursor {
  0%, 50% { opacity: 1; }
  51%, 100% { opacity: 0; }
}

/* ─── Access Tiers ─── */
.tiers-section {
  padding: 140px 40px;
  position: relative;
}

.tiers-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.tiers-headline {
  font-family: var(--font-display);
  font-size: clamp(36px, 5vw, 64px);
  line-height: 1.1;
  margin-bottom: 16px;
}

.tiers-sub {
  font-size: 16px;
  color: var(--text-dim);
  margin-bottom: 64px;
  font-weight: 300;
}

.tiers-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.tier-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 48px 36px;
  display: flex;
  flex-direction: column;
  transition: all 0.4s;
  position: relative;
}

.tier-card:hover {
  border-color: var(--accent);
  background: var(--surface-2);
}

.tier-card.featured {
  border-color: var(--accent);
  background: var(--surface-2);
}

.tier-card.featured::before {
  content: 'MOST POPULAR';
  position: absolute;
  top: -1px; left: 36px;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 2px;
  background: var(--accent);
  color: var(--bg);
  padding: 4px 12px;
  font-weight: 700;
}

.tier-name {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.tier-amount {
  font-family: var(--font-display);
  font-size: 42px;
  color: var(--text);
  margin-bottom: 8px;
}

.tier-amount span {
  font-size: 16px;
  color: var(--text-dim);
  font-family: var(--font-body);
}

.tier-desc {
  font-size: 14px;
  color: var(--text-dim);
  margin-bottom: 32px;
  font-weight: 300;
  line-height: 1.6;
}

.tier-features {
  list-style: none;
  flex: 1;
  margin-bottom: 32px;
}

.tier-features li {
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--text-dim);
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 10px;
}

.tier-features li::before {
  content: '>';
  color: var(--accent);
  font-weight: 700;
}

.tier-btn {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 16px 32px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--text);
  cursor: pointer;
  transition: all 0.3s;
  text-align: center;
  width: 100%;
}

.tier-btn:hover {
  background: var(--accent);
  color: var(--bg);
  border-color: var(--accent);
}

.tier-card.featured .tier-btn {
  background: var(--accent);
  color: var(--bg);
  border-color: var(--accent);
}

.tier-card.featured .tier-btn:hover { background: #fff; }

/* ─── How It's Funded ─── */
.funded-section {
  padding: 140px 40px;
  position: relative;
  background: var(--surface);
}

.funded-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.funded-headline {
  font-family: var(--font-display);
  font-size: clamp(36px, 4vw, 56px);
  line-height: 1.1;
  margin-bottom: 24px;
}

.funded-sub {
  font-size: 16px;
  color: var(--text-dim);
  max-width: 640px;
  line-height: 1.8;
  margin-bottom: 64px;
  font-weight: 300;
}

.funded-flow {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 48px;
}

.funded-step {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 40px 32px;
  transition: all 0.4s;
  position: relative;
}

.funded-step:hover { border-color: var(--accent); }

.funded-step-icon {
  font-size: 32px;
  margin-bottom: 16px;
  display: block;
}

.funded-step-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 8px;
}

.funded-step h3 {
  font-family: var(--font-display);
  font-size: 24px;
  margin-bottom: 12px;
}

.funded-step p {
  font-size: 13px;
  color: var(--text-dim);
  line-height: 1.7;
  font-weight: 300;
}

.funded-note {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
  text-align: center;
  line-height: 1.8;
}

.funded-note a {
  color: var(--accent);
  text-decoration: none;
}

/* ─── Agent Access ─── */
.agent-section {
  padding: 140px 40px;
  position: relative;
}

.agent-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 10%;
  right: 10%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(200, 255, 0, 0.12) 20%, rgba(200, 255, 0, 0.3) 50%, rgba(200, 255, 0, 0.12) 80%, transparent);
}

.agent-inner {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
}

.agent-headline {
  font-family: var(--font-display);
  font-size: clamp(36px, 5vw, 56px);
  line-height: 1.1;
  margin-bottom: 16px;
}

.agent-headline .accent {
  color: var(--accent);
  font-style: italic;
}

.agent-sub {
  font-size: 16px;
  color: var(--text-dim);
  line-height: 1.7;
  margin-bottom: 40px;
  font-weight: 300;
}

/* Toggle buttons */
.agent-toggle {
  display: flex;
  justify-content: center;
  gap: 0;
  margin-bottom: 32px;
}

.agent-toggle-btn {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 1px;
  padding: 14px 32px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-dim);
  cursor: pointer;
  transition: all 0.3s;
}

.agent-toggle-btn:first-child {
  border-radius: var(--radius-md) 0 0 var(--radius-md);
  border-right: none;
}

.agent-toggle-btn:last-child {
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

.agent-toggle-btn.active {
  background: var(--accent);
  color: var(--bg);
  border-color: var(--accent);
  font-weight: 700;
}

.agent-toggle-btn:hover:not(.active) {
  border-color: var(--border-light);
  color: var(--text);
}

/* Tabs */
.agent-tab {
  display: none;
}

.agent-tab.active {
  display: block;
}

/* Card */
.agent-card {
  background: var(--surface);
  border: 1px solid var(--accent);
  border-radius: var(--radius-md);
  padding: 40px 36px;
  text-align: left;
  box-shadow: 0 0 40px rgba(200, 255, 0, 0.04);
}

.agent-card h3 {
  font-family: var(--font-display);
  font-size: 24px;
  margin-bottom: 28px;
  text-align: center;
}

/* Skill URL box */
.agent-skill-url {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  margin-bottom: 28px;
  font-size: 14px;
  color: var(--text-dim);
  line-height: 1.8;
}

.agent-skill-url code {
  display: block;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--accent);
  background: rgba(200, 255, 0, 0.06);
  border: 1px solid rgba(200, 255, 0, 0.15);
  border-radius: var(--radius-sm);
  padding: 10px 16px;
  margin: 8px 0;
  word-break: break-all;
  user-select: all;
}

.agent-skill-label {
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--text-dim);
}

/* Step list */
.agent-step-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 32px;
}

.agent-step-item {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 14px;
  color: var(--text-dim);
  font-weight: 300;
}

.agent-step-num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  color: var(--accent);
  flex-shrink: 0;
}

.agent-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.agent-note {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
  text-align: center;
  margin-top: 24px;
}

.agent-note a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
}

/* ─── FAQ ─── */
.faq-section {
  padding: 140px 40px;
  position: relative;
}

.faq-inner {
  max-width: 800px;
  margin: 0 auto;
}

.faq-headline {
  font-family: var(--font-display);
  font-size: clamp(36px, 5vw, 56px);
  margin-bottom: 64px;
}

.faq-item {
  border-bottom: 1px solid var(--border);
}

.faq-question {
  width: 100%;
  background: none;
  border: none;
  padding: 24px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  gap: 20px;
}

.faq-question span {
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--text);
  text-align: left;
  font-weight: 400;
}

.faq-question .faq-toggle {
  font-family: var(--font-mono);
  font-size: 20px;
  color: var(--accent);
  flex-shrink: 0;
  transition: transform 0.3s;
  width: 24px;
  text-align: center;
}

.faq-answer {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.4s ease;
  overflow: hidden;
}

.faq-answer.open {
  grid-template-rows: 1fr;
  padding-bottom: 24px;
}

.faq-answer > p {
  min-height: 0;
  overflow: hidden;
}

.faq-answer p {
  font-size: 14px;
  color: var(--text-dim);
  line-height: 1.8;
  font-weight: 300;
}

.faq-item.active .faq-toggle { transform: rotate(45deg); }

/* ─── CTA ─── */
.cta-section {
  padding: 140px 40px;
  position: relative;
  overflow: hidden;
}

.cta-glow {
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(200, 255, 0, 0.06) 0%, transparent 70%);
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
}

.cta-inner {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
  text-align: center;
}

.cta-section h2 {
  font-family: var(--font-display);
  font-size: clamp(48px, 7vw, 100px);
  line-height: 0.95;
  margin-bottom: 24px;
}

.cta-section h2 .accent {
  color: var(--accent);
  font-style: italic;
}

.cta-section .cta-sub {
  font-size: 18px;
  color: var(--text-dim);
  margin-bottom: 48px;
  font-weight: 300;
}

.cta-links {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ─── Footer ─── */
footer {
  border-top: 1px solid var(--border);
  padding: 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-left {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 1px;
}

.footer-links {
  display: flex;
  gap: 24px;
}

.footer-links a {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
  text-decoration: none;
  letter-spacing: 1px;
  transition: color 0.3s;
}

.footer-links a:hover { color: var(--accent); }

.footer-compliance {
  width: 100%;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-muted);
  letter-spacing: 0.5px;
  text-align: center;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}

/* ─── Visual Effects ─── */
#bgCanvas {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  z-index: -1;
}

/* Hero entrance */
.hero-text > * {
  opacity: 0;
  animation: heroEnter 0.9s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.hero-text > *:nth-child(1) { animation-delay: 0.1s; }
.hero-text > *:nth-child(2) { animation-delay: 0.3s; }
.hero-text > *:nth-child(3) { animation-delay: 0.55s; }
.hero-text > *:nth-child(4) { animation-delay: 0.75s; }
.hero-text > *:nth-child(5) { animation-delay: 0.9s; }

.globe-wrap {
  opacity: 0;
  animation: heroEnter 1.2s cubic-bezier(0.16, 1, 0.3, 1) 0.4s forwards;
}

@keyframes heroEnter {
  from { opacity: 0; transform: translateY(30px); filter: blur(4px); }
  to { opacity: 1; transform: translateY(0); filter: blur(0); }
}

.hero-headline .accent {
  text-shadow: 0 0 60px rgba(200, 255, 0, 0.25), 0 0 120px rgba(200, 255, 0, 0.1);
}

/* Gradient section dividers */
.tools-section,
.tiers-section,
.faq-section,
.cta-section,
.funded-section,
.demo-section,
.agent-section {
  border-top: none;
}

.tools-section::before,
.tiers-section::before,
.faq-section::before,
.cta-section::before,
.funded-section::before,
.agent-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 10%;
  right: 10%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(200, 255, 0, 0.12) 20%, rgba(200, 255, 0, 0.3) 50%, rgba(200, 255, 0, 0.12) 80%, transparent);
}

/* Scroll reveal */
.scroll-reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.scroll-reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger children inside revealed sections */
.scroll-reveal > *:nth-child(1) { transition-delay: 0s; }
.scroll-reveal > *:nth-child(2) { transition-delay: 0.08s; }
.scroll-reveal > *:nth-child(3) { transition-delay: 0.16s; }
.scroll-reveal > *:nth-child(4) { transition-delay: 0.24s; }
.scroll-reveal > *:nth-child(5) { transition-delay: 0.32s; }

/* Mouse-tracking card glow */
.tool-card::after,
.how-step::after,
.tier-card::after,
.funded-step::after,
.stat-block::after,
.stats-hero-block::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(
    600px circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
    rgba(200, 255, 0, 0.06),
    transparent 40%
  );
  opacity: 0;
  transition: opacity 0.4s;
  pointer-events: none;
}

.tool-card:hover::after,
.how-step:hover::after,
.tier-card:hover::after,
.funded-step:hover::after,
.stat-block:hover::after,
.stats-hero-block:hover::after {
  opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
  .hero-text > *, .globe-wrap { animation: none; opacity: 1; }
  .scroll-reveal { transition: none; opacity: 1; transform: none; }
  #bgCanvas { display: none; }
}

/* ─── Responsive ─── */
@media (max-width: 1024px) {
  .tools-grid { grid-template-columns: repeat(2, 1fr); }
  .tiers-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-hero-row, .stats-hero-row.triple { grid-template-columns: 1fr; }
  .stats-hero-number { font-size: 36px; }
  .stats-hero-block { padding: 28px 24px; }
}

@media (max-width: 768px) {
  nav { padding: 16px 20px; }
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .mobile-menu { padding: 16px 20px; }
  .hero { padding: 100px 20px 50px; }
  .hero-content { grid-template-columns: 1fr; }
  .globe-wrap { display: none; }
  .hero-ca { flex-wrap: wrap; }
  .hooks-section { padding: 0 20px 20px; margin-top: -30px; }
  .hooks-inner { grid-template-columns: 1fr; gap: 12px; }
  .hook-card { padding: 28px 24px; }
  .hook-title { font-size: 24px; }
  .how-steps { grid-template-columns: 1fr; }
  .tools-grid { grid-template-columns: 1fr; }
  .tiers-grid { grid-template-columns: 1fr; }
  .funded-flow { grid-template-columns: 1fr; }
  .demo-grid { grid-template-columns: 1fr; }
  .agent-card { padding: 28px 20px; }
  .agent-toggle-btn { padding: 12px 24px; font-size: 12px; }
  .cta-links { flex-direction: column; align-items: center; }
  .how-section, .tools-section, .tiers-section, .funded-section, .faq-section, .cta-section, .demo-section, .agent-section {
    padding: 90px 20px;
  }
  .tiers-grid { gap: 16px; }
  .btn-primary, .btn-secondary { padding: 12px 24px; }
  footer { flex-direction: column; gap: 20px; }
  .img-preview-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 480px) {
  nav { padding: 12px 16px; }
  .hero { padding: 80px 16px 40px; }
  .hooks-section { padding: 0 16px 16px; margin-top: -20px; }
  .hook-card { padding: 24px 20px; }
  .hook-title { font-size: 22px; }
  .hero-headline { letter-spacing: -1px; }
  .stats-hero-row { grid-template-columns: 1fr; }
  .stats-hero-number { font-size: 28px; }
  .stats-hero-block { padding: 24px 20px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-block { padding: 20px 16px; }
  .stat-block .stat-number { font-size: 24px; }
  .protocol-stats { padding: 60px 16px; }
  .protocol-stats-header { flex-direction: column; gap: 16px; align-items: flex-start; }
  .faq-question { gap: 12px; }
  .faq-question .faq-toggle { min-width: 24px; }
  .how-section, .tools-section, .tiers-section, .funded-section, .faq-section, .cta-section, .demo-section, .agent-section {
    padding: 60px 16px;
  }
  .tiers-grid { gap: 16px; }
  .btn-primary, .btn-secondary { padding: 12px 24px; }
  .hero-ca {
    flex-wrap: wrap;
    gap: 8px;
  }
  .hero-ca .ca-address {
    font-size: 10px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 180px;
  }
  .demo-prompts { gap: 8px; }
  .demo-chip { font-size: 11px; padding: 8px 14px; }
  .demo-response { font-size: 12px; padding: 16px; }
  .img-preview-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .tier-card { padding: 24px 20px; }
  .tool-card { padding: 20px 16px; }
}
