/* ─────────────────────────────────────────────────────────────────
   x402 Agentic · pages.css
   Shared styles for interior pages: about, ecosystem, blog, legal
   Requires: main.css loaded first
───────────────────────────────────────────────────────────────── */

/* ── PAGE HERO ─────────────────────────────────────────────────── */
.page-hero {
  padding: 72px 0 60px;
  border-bottom: 1px solid var(--border2);
  position: relative;
  overflow: hidden;
}
.page-hero-glow {
  position: absolute; top: -30%; left: 50%;
  transform: translateX(-50%);
  width: 700px; height: 400px;
  background: radial-gradient(ellipse at center,
    rgba(0,255,194,0.06) 0%, rgba(123,97,255,0.04) 50%, transparent 70%);
  pointer-events: none;
}
.page-hero-inner { position: relative; z-index: 1; }
.page-tag {
  font-family: var(--font-mono); font-size: 11px;
  color: var(--teal); letter-spacing: 0.14em;
  text-transform: uppercase; margin-bottom: 16px;
  display: flex; align-items: center; gap: 10px;
}
.page-tag::before {
  content: ''; width: 24px; height: 1px;
  background: var(--teal); flex-shrink: 0;
}
.page-h1 {
  font-size: clamp(30px, 5vw, 52px);
  font-weight: 800; letter-spacing: -0.03em;
  line-height: 1.08; margin-bottom: 18px;
}
.page-h1 .accent {
  background: linear-gradient(135deg, var(--teal) 0%, var(--blue) 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.page-lead {
  font-size: 17px; color: var(--text-muted);
  line-height: 1.75; max-width: 580px;
}

/* ── INTERIOR SECTION ──────────────────────────────────────────── */
.interior-section { padding: 80px 0; }
.interior-section + .interior-section { padding-top: 0; }
.interior-divider {
  height: 1px; background: var(--border2);
  margin: 0 0 80px;
}

/* ── TWO-COL PROSE ─────────────────────────────────────────────── */
.prose-grid {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 60px; align-items: start;
}
.prose-label {
  font-family: var(--font-mono); font-size: 10px;
  color: var(--text-dim); letter-spacing: 0.14em;
  text-transform: uppercase; margin-bottom: 12px;
}
.prose-h2 {
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 800; letter-spacing: -0.02em;
  line-height: 1.15; margin-bottom: 0;
}
.prose-h2 span { color: var(--teal); }
.prose-body p {
  font-size: 15px; color: var(--text-muted);
  line-height: 1.85; margin-bottom: 18px;
}
.prose-body p:last-child { margin-bottom: 0; }
.prose-body strong { color: var(--text); }
.prose-body a { color: var(--teal); text-decoration: none; border-bottom: 1px solid rgba(0,255,194,0.25); }
.prose-body a:hover { border-bottom-color: var(--teal); }

/* ── STAT ROW ──────────────────────────────────────────────────── */
.stat-row {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 2px; margin: 56px 0;
}
.stat-box {
  background: var(--bg2); border: 1px solid var(--border2);
  padding: 28px 24px; text-align: center;
  transition: border-color 0.2s;
}
.stat-box:first-child { border-radius: var(--radius) 0 0 var(--radius); }
.stat-box:last-child  { border-radius: 0 var(--radius) var(--radius) 0; }
.stat-box:hover { border-color: rgba(0,255,194,0.2); }
.stat-box-num {
  font-family: var(--font-mono); font-size: 28px;
  font-weight: 500; color: var(--teal);
  display: block; margin-bottom: 6px;
}
.stat-box-label {
  font-size: 12px; color: var(--text-dim);
  letter-spacing: 0.06em; text-transform: uppercase;
}

/* ── VALUE CARDS ───────────────────────────────────────────────── */
.value-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.value-card {
  background: var(--bg2); border: 1px solid var(--border2);
  border-radius: var(--radius); padding: 26px;
  transition: border-color 0.25s, transform 0.25s;
}
.value-card:hover { border-color: rgba(0,255,194,0.2); transform: translateY(-2px); }
.value-icon { font-size: 24px; margin-bottom: 14px; display: block; }
.value-title { font-size: 15px; font-weight: 700; margin-bottom: 8px; }
.value-desc  { font-size: 13px; color: var(--text-muted); line-height: 1.7; }

/* ── TIMELINE (about page) ─────────────────────────────────────── */
.timeline { position: relative; padding-left: 28px; margin: 40px 0; }
.timeline::before {
  content: ''; position: absolute; left: 6px; top: 8px; bottom: 8px;
  width: 1px; background: linear-gradient(to bottom, var(--teal), var(--violet), rgba(123,97,255,0.1));
}
.tl-item { position: relative; margin-bottom: 32px; }
.tl-dot {
  position: absolute; left: -26px; top: 6px;
  width: 12px; height: 12px; border-radius: 50%;
  border: 2px solid var(--teal); background: var(--bg);
  z-index: 1;
}
.tl-dot.filled { background: var(--teal); }
.tl-dot.current {
  background: var(--teal);
  box-shadow: 0 0 0 4px rgba(0,255,194,0.15);
  animation: pulse-tl 2s ease-in-out infinite;
}
@keyframes pulse-tl {
  0%, 100% { box-shadow: 0 0 0 4px rgba(0,255,194,0.15); }
  50%       { box-shadow: 0 0 0 8px rgba(0,255,194,0.05); }
}
.tl-date {
  font-family: var(--font-mono); font-size: 11px;
  color: var(--teal); letter-spacing: 0.08em;
  text-transform: uppercase; margin-bottom: 4px;
}
.tl-title { font-size: 16px; font-weight: 700; margin-bottom: 6px; }
.tl-body  { font-size: 13.5px; color: var(--text-muted); line-height: 1.7; }

/* ── PERSON CARDS ──────────────────────────────────────────────── */
.team-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 16px; margin-top: 40px;
}
.team-card {
  background: var(--bg2); border: 1px solid var(--border2);
  border-radius: var(--radius); padding: 26px; text-align: center;
  transition: border-color 0.25s, transform 0.25s;
}
.team-card:hover { border-color: rgba(0,255,194,0.2); transform: translateY(-3px); }
.team-avatar {
  width: 64px; height: 64px; border-radius: 50%;
  background: var(--bg3); border: 2px solid var(--border2);
  display: flex; align-items: center; justify-content: center;
  font-size: 26px; margin: 0 auto 14px;
}
.team-name  { font-size: 15px; font-weight: 700; margin-bottom: 4px; }
.team-role  { font-family: var(--font-mono); font-size: 11px; color: var(--teal); margin-bottom: 10px; }
.team-bio   { font-size: 12.5px; color: var(--text-muted); line-height: 1.65; }

/* ── CTA BAND ──────────────────────────────────────────────────── */
.cta-band {
  background: linear-gradient(135deg, rgba(0,255,194,0.06), rgba(123,97,255,0.06));
  border: 1px solid rgba(0,255,194,0.14);
  border-radius: 16px; padding: 48px;
  text-align: center; margin: 64px 0;
}
.cta-band h2 { font-size: clamp(22px, 3vw, 32px); font-weight: 800; margin-bottom: 12px; letter-spacing: -0.02em; }
.cta-band p  { font-size: 15px; color: var(--text-muted); margin-bottom: 28px; max-width: 480px; margin-left: auto; margin-right: auto; }
.cta-band-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ── LEGAL PROSE ───────────────────────────────────────────────── */
.legal-content {
  max-width: 720px; margin: 0 auto;
  padding: 56px 0 96px;
}
.legal-content h2 {
  font-size: 18px; font-weight: 700;
  margin: 40px 0 12px; padding-top: 8px;
  border-top: 1px solid var(--border2);
  color: var(--text);
}
.legal-content h2:first-of-type { border-top: none; margin-top: 0; }
.legal-content p, .legal-content li {
  font-size: 14.5px; color: var(--text-muted);
  line-height: 1.85; margin-bottom: 14px;
}
.legal-content ul  { padding-left: 20px; margin-bottom: 16px; }
.legal-content a   { color: var(--teal); text-decoration: none; border-bottom: 1px solid rgba(0,255,194,0.25); }
.legal-content a:hover { border-bottom-color: var(--teal); }
.legal-content strong  { color: var(--text); }
.legal-effective {
  font-family: var(--font-mono); font-size: 12px;
  color: var(--text-dim); margin-bottom: 36px;
  padding: 12px 16px; background: var(--bg2);
  border: 1px solid var(--border2); border-radius: 8px;
  display: inline-block;
}

/* ── ECOSYSTEM SPECIFIC ────────────────────────────────────────── */
.eco-map {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 14px; margin-top: 40px;
}
.eco-card {
  background: var(--bg2); border: 1px solid var(--border2);
  border-radius: var(--radius); padding: 22px;
  transition: border-color 0.25s, transform 0.25s;
}
.eco-card:hover { border-color: var(--cc, rgba(0,255,194,0.3)); transform: translateY(-2px); }
.eco-card-top {
  display: flex; align-items: center; gap: 12px; margin-bottom: 12px;
}
.eco-logo {
  width: 36px; height: 36px; border-radius: 8px;
  background: var(--bg3); border: 1px solid var(--border2);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; flex-shrink: 0;
}
.eco-name   { font-size: 14px; font-weight: 700; }
.eco-type   { font-family: var(--font-mono); font-size: 10px; color: var(--cc, var(--teal)); letter-spacing: 0.08em; }
.eco-desc   { font-size: 12.5px; color: var(--text-muted); line-height: 1.65; margin-bottom: 12px; }
.eco-status {
  font-family: var(--font-mono); font-size: 10px;
  letter-spacing: 0.08em; padding: 2px 9px;
  border-radius: 12px; width: fit-content;
}
.eco-live     { background: rgba(0,255,194,0.08);  color: var(--teal);       border: 1px solid rgba(0,255,194,0.2); }
.eco-building { background: rgba(245,200,66,0.08); color: var(--gold);       border: 1px solid rgba(245,200,66,0.2); }
.eco-planned  { background: rgba(61,90,120,0.2);   color: var(--text-muted); border: 1px solid rgba(61,90,120,0.3); }

/* ── BLOG ──────────────────────────────────────────────────────── */
.blog-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 20px; margin-top: 40px;
}
.blog-card {
  background: var(--bg2); border: 1px solid var(--border2);
  border-radius: var(--radius); overflow: hidden;
  text-decoration: none; display: flex; flex-direction: column;
  transition: border-color 0.25s, transform 0.25s;
}
.blog-card:hover { border-color: rgba(0,255,194,0.2); transform: translateY(-3px); }
.blog-card-img {
  height: 160px; background: var(--bg3);
  display: flex; align-items: center; justify-content: center;
  font-size: 40px; border-bottom: 1px solid var(--border2);
  position: relative; overflow: hidden;
}
.blog-card-img-bg {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, var(--cc, rgba(0,255,194,0.06)), transparent);
}
.blog-card-body { padding: 22px; flex: 1; display: flex; flex-direction: column; }
.blog-meta {
  display: flex; gap: 10px; align-items: center;
  margin-bottom: 10px; flex-wrap: wrap;
}
.blog-tag {
  font-family: var(--font-mono); font-size: 9px;
  letter-spacing: 0.1em; text-transform: uppercase;
  padding: 2px 9px; border-radius: 10px;
  background: rgba(0,255,194,0.08); color: var(--teal);
  border: 1px solid rgba(0,255,194,0.18);
}
.blog-date { font-family: var(--font-mono); font-size: 11px; color: var(--text-dim); }
.blog-title { font-size: 15px; font-weight: 700; color: var(--text); line-height: 1.35; margin-bottom: 8px; }
.blog-excerpt { font-size: 13px; color: var(--text-muted); line-height: 1.65; flex: 1; }
.blog-cta { font-family: var(--font-mono); font-size: 11px; color: var(--teal); margin-top: 14px; }

.blog-featured {
  background: var(--bg2); border: 1px solid rgba(0,255,194,0.15);
  border-radius: var(--radius); padding: 36px;
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 36px; align-items: center; margin-bottom: 32px;
  transition: border-color 0.25s; text-decoration: none;
}
.blog-featured:hover { border-color: rgba(0,255,194,0.3); }
.blog-featured-eyebrow {
  font-family: var(--font-mono); font-size: 10px;
  color: var(--teal); letter-spacing: 0.12em;
  text-transform: uppercase; margin-bottom: 12px;
}
.blog-featured-title {
  font-size: clamp(20px, 3vw, 26px); font-weight: 800;
  letter-spacing: -0.02em; line-height: 1.2;
  color: var(--text); margin-bottom: 12px;
}
.blog-featured-excerpt { font-size: 14px; color: var(--text-muted); line-height: 1.75; margin-bottom: 20px; }
.blog-featured-img {
  height: 200px; background: var(--bg3);
  border-radius: 10px; border: 1px solid var(--border2);
  display: flex; align-items: center; justify-content: center;
  font-size: 56px; position: relative; overflow: hidden;
}

/* ── RESPONSIVE ────────────────────────────────────────────────── */
@media (max-width: 960px) {
  .prose-grid   { grid-template-columns: 1fr; gap: 28px; }
  .stat-row     { grid-template-columns: repeat(2, 1fr); }
  .stat-box:first-child { border-radius: var(--radius) var(--radius) 0 0; }
  .stat-box:last-child  { border-radius: 0 0 var(--radius) var(--radius); }
  .value-grid   { grid-template-columns: 1fr 1fr; }
  .team-grid    { grid-template-columns: 1fr 1fr; }
  .eco-map      { grid-template-columns: 1fr 1fr; }
  .blog-grid    { grid-template-columns: 1fr 1fr; }
  .blog-featured { grid-template-columns: 1fr; }
  .blog-featured-img { height: 140px; }
}
@media (max-width: 600px) {
  .interior-section  { padding: 48px 0; }
  .page-hero         { padding: 48px 0 40px; }
  .cta-band          { padding: 32px 20px; }
  .value-grid        { grid-template-columns: 1fr; }
  .team-grid         { grid-template-columns: 1fr; }
  .eco-map           { grid-template-columns: 1fr; }
  .blog-grid         { grid-template-columns: 1fr; }
  .stat-row          { grid-template-columns: 1fr 1fr; }
  .legal-content     { padding: 36px 0 64px; }
}
