/* ─── Reset + base ─────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.55;
  color: #E6E8EE;
  background: #0B0D12;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
h1, h2, h3, h4 { font-weight: 700; line-height: 1.2; margin: 0 0 0.5em; color: #F5F6FA; }
h1 { font-size: clamp(40px, 6vw, 60px); letter-spacing: -0.02em; }
h2 { font-size: clamp(28px, 4vw, 36px); letter-spacing: -0.015em; }
h3 { font-size: clamp(18px, 2.2vw, 22px); }
p { margin: 0 0 1em; color: #C7CBD6; }
a { color: #2EE6E2; text-decoration: none; }
a:hover { color: #A78BFA; }
code, pre { font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 14px; }
section { max-width: 1200px; margin: 0 auto; padding: 96px 24px; }
@media (max-width: 720px) { section { padding: 56px 20px; } }

/* ─── Nav ────────────────────────────────────────────────────── */
.nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 24px;
  background: rgba(11, 13, 18, 0.82);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.brand {
  font-weight: 700; font-size: 18px;
  background: linear-gradient(135deg, #2EE6E2 0%, #A78BFA 100%);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}
.nav-links { display: flex; gap: 24px; align-items: center; }
.nav-links a { color: #9CA0AB; font-size: 15px; font-weight: 500; }
.nav-links a:hover { color: #F5F6FA; }
@media (max-width: 540px) {
  .nav-links a:not([aria-label]) { display: none; }
}

/* ─── Hero ───────────────────────────────────────────────────── */
.hero {
  position: relative; overflow: hidden;
  text-align: center;
  padding: 112px 24px 88px;
}
.hero-bg {
  position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(ellipse at 30% 0%, rgba(46, 230, 226, 0.14) 0%, transparent 55%),
              radial-gradient(ellipse at 70% 30%, rgba(167, 139, 250, 0.14) 0%, transparent 55%),
              linear-gradient(180deg, #0B0D12 0%, #0B0D12 70%, #0E1018 100%);
  pointer-events: none;
}
.hero-content { max-width: 820px; margin: 0 auto; }
.hero h1 {
  background: linear-gradient(135deg, #2EE6E2 0%, #A78BFA 100%);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}
.tagline { font-size: clamp(20px, 3vw, 26px); font-weight: 600; color: #F5F6FA; margin: 0.3em 0 1em; }
.lede { font-size: clamp(16px, 1.8vw, 19px); color: #B2B7C2; max-width: 680px; margin: 0 auto 0.8em; }
.lede strong { color: #F5F6FA; font-weight: 600; }
.lede.subtle { font-size: 15px; opacity: 0.82; }

.status-pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 16px; margin: 24px 0 8px;
  background: rgba(20, 23, 31, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 13px; color: #C7CBD6;
}
.pulse {
  width: 8px; height: 8px; border-radius: 50%;
  background: #34D399;
  box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.6);
  animation: pulse 2s infinite ease-out;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.6); }
  70% { box-shadow: 0 0 0 14px rgba(52, 211, 153, 0); }
  100% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0); }
}

.cta-row { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 32px; }
.btn {
  display: inline-block; padding: 12px 24px; border-radius: 12px;
  font-weight: 600; font-size: 15px; cursor: pointer;
  transition: transform 120ms ease, box-shadow 200ms ease, background-color 160ms ease, border-color 160ms ease, color 160ms ease;
  border: 1.5px solid transparent;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: #2EE6E2; color: #0B0D12; box-shadow: 0 10px 26px -12px rgba(46, 230, 226, 0.6); }
.btn-primary:hover { background: #6FF1EE; color: #0B0D12; box-shadow: 0 14px 32px -12px rgba(46, 230, 226, 0.7); }
.btn-secondary { background: rgba(255, 255, 255, 0.03); color: #F5F6FA; border-color: rgba(46, 230, 226, 0.55); }
.btn-secondary:hover { background: rgba(46, 230, 226, 0.08); color: #F5F6FA; border-color: #2EE6E2; }

/* ─── Why ─────────────────────────────────────────────────── */
.why h2 { text-align: center; margin-bottom: 56px; }
.why-cards {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}
@media (max-width: 880px) { .why-cards { grid-template-columns: 1fr; } }
.card {
  background: #14171F; padding: 32px;
  border-radius: 16px; border: 1px solid rgba(255, 255, 255, 0.06);
  transition: transform 200ms ease, box-shadow 200ms ease, border-color 200ms ease;
}
.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 40px -16px rgba(0, 0, 0, 0.7);
  border-color: rgba(46, 230, 226, 0.4);
}
.card-icon {
  width: 48px; height: 48px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(46, 230, 226, 0.14);
  color: #2EE6E2;
  margin-bottom: 20px;
}
.card h3 { margin-bottom: 12px; color: #F5F6FA; }
.card p { color: #B2B7C2; font-size: 15.5px; margin: 0; }

/* ─── Critical infrastructure ────────────────────────────── */
.critical {
  background: linear-gradient(180deg, #0E1018 0%, #0B0D12 100%);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  max-width: none;
  padding: 96px 24px;
}
.critical .section-head { max-width: 760px; margin: 0 auto 48px; text-align: center; }
.critical .section-head h2 { background: linear-gradient(135deg, #2EE6E2 0%, #A78BFA 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.critical .section-head p { color: #B2B7C2; font-size: 16.5px; }
.critical-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
  max-width: 1200px; margin: 0 auto;
}
@media (max-width: 880px) { .critical-grid { grid-template-columns: 1fr; } }
.critical-item {
  background: #14171F; padding: 28px;
  border: 1px solid rgba(255, 255, 255, 0.06); border-radius: 16px;
  transition: transform 200ms ease, border-color 200ms ease, box-shadow 200ms ease;
}
.critical-item:hover { transform: translateY(-2px); border-color: rgba(46, 230, 226, 0.5); box-shadow: 0 14px 36px -16px rgba(0, 0, 0, 0.7); }
.critical-item h3 { margin-bottom: 12px; color: #F5F6FA; font-size: 18px; }
.critical-item p { color: #B2B7C2; font-size: 14.5px; line-height: 1.6; margin: 0; }

/* ─── Builders + Validators (two-column) ─────────────────────── */
.audience {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px;
}
@media (max-width: 880px) { .audience { grid-template-columns: 1fr; } }
.audience-card {
  background: #14171F;
  border: 1px solid rgba(255, 255, 255, 0.06); border-radius: 20px;
  padding: 40px 36px;
  transition: transform 200ms ease, border-color 200ms ease, box-shadow 200ms ease;
}
.audience-card:hover { transform: translateY(-2px); border-color: rgba(167, 139, 250, 0.45); box-shadow: 0 16px 40px -18px rgba(0, 0, 0, 0.7); }
.audience-card .audience-label {
  display: inline-block; padding: 4px 12px; border-radius: 999px;
  font-family: 'JetBrains Mono', monospace; font-size: 11.5px; letter-spacing: 0.08em;
  text-transform: uppercase; margin-bottom: 18px;
}
.audience-card.builders .audience-label { background: rgba(46, 230, 226, 0.14); color: #2EE6E2; }
.audience-card.validators .audience-label { background: rgba(167, 139, 250, 0.14); color: #A78BFA; }
.audience-card h2 { font-size: clamp(22px, 3vw, 28px); margin-bottom: 14px; }
.audience-card p { color: #B2B7C2; }
.audience-card ul { color: #C7CBD6; list-style: none; padding: 0; margin: 18px 0 24px; }
.audience-card ul li {
  padding: 8px 0 8px 26px; position: relative;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 14.5px;
}
.audience-card ul li::before {
  content: "→"; position: absolute; left: 0; top: 6px;
  font-family: 'JetBrains Mono', monospace; font-weight: 600;
}
.audience-card.builders ul li::before { color: #2EE6E2; }
.audience-card.validators ul li::before { color: #A78BFA; }

/* ─── Subnets band ────────────────────────────────────────────── */
.subnets {
  background: #0E1018;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  max-width: none;
  padding: 96px 24px;
}
.subnets .section-head { max-width: 760px; margin: 0 auto 48px; text-align: center; }
.subnets .section-head h2 { background: linear-gradient(135deg, #2EE6E2 0%, #A78BFA 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.subnets-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
  max-width: 1200px; margin: 0 auto;
}
@media (max-width: 880px) { .subnets-grid { grid-template-columns: 1fr; } }
.subnet-item {
  position: relative;
  background: linear-gradient(180deg, #14171F 0%, #0F1219 100%);
  border: 1px solid rgba(255, 255, 255, 0.06); border-radius: 16px;
  padding: 28px;
  overflow: hidden;
}
.subnet-item::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
}
.subnet-item.storage::before { background: linear-gradient(180deg, #2EE6E2 0%, #34D399 100%); }
.subnet-item.financial::before { background: linear-gradient(180deg, #A78BFA 0%, #F472B6 100%); }
.subnet-item.ai::before { background: linear-gradient(180deg, #FBBF24 0%, #F472B6 100%); }
.subnet-item h3 { color: #F5F6FA; font-size: 19px; margin-bottom: 8px; }
.subnet-item .subnet-tag {
  display: inline-block;
  font-family: 'JetBrains Mono', monospace; font-size: 11px;
  color: #6B7280; letter-spacing: 0.08em; text-transform: uppercase;
  margin-bottom: 14px;
}
.subnet-item p { color: #B2B7C2; font-size: 14.5px; line-height: 1.55; margin: 0; }

/* ─── Apps gallery ──────────────────────────────────────────── */
.section-head { text-align: center; margin-bottom: 32px; }
.section-head p { color: #B2B7C2; margin: 8px auto 0; max-width: 580px; }

.filter-row {
  display: flex; gap: 8px; flex-wrap: wrap; justify-content: center;
  margin-bottom: 32px;
}
.filter-pill {
  padding: 8px 18px; border-radius: 999px;
  background: #14171F; border: 1px solid rgba(255, 255, 255, 0.08);
  font-family: inherit; font-size: 14px; font-weight: 500; color: #B2B7C2;
  cursor: pointer; transition: all 160ms ease;
}
.filter-pill:hover { color: #F5F6FA; border-color: rgba(46, 230, 226, 0.55); }
.filter-pill.active { background: #2EE6E2; color: #0B0D12; border-color: #2EE6E2; }

.grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}
@media (max-width: 1023px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid { grid-template-columns: 1fr; } }

.tile {
  background: #14171F; border-radius: 16px; border: 1px solid rgba(255, 255, 255, 0.06);
  overflow: hidden;
  transition: transform 200ms ease, box-shadow 200ms ease, border-color 200ms ease;
  display: flex; flex-direction: column;
  position: relative;
}
.tile::before {
  /* 1px top accent — cyan default; rotates to amethyst / jade / gold
     across the grid so the page breathes without a heavy thumb. */
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px;
  background: linear-gradient(90deg, transparent, #2EE6E2 30%, #2EE6E2 70%, transparent);
  opacity: 0.55;
  pointer-events: none;
  transition: opacity 200ms ease;
}
.tile:nth-child(4n+2)::before {
  background: linear-gradient(90deg, transparent, #A78BFA 30%, #A78BFA 70%, transparent);
}
.tile:nth-child(4n+3)::before {
  background: linear-gradient(90deg, transparent, #62A18A 30%, #62A18A 70%, transparent);
}
.tile:nth-child(4n+4)::before {
  background: linear-gradient(90deg, transparent, #D4A44B 30%, #D4A44B 70%, transparent);
}
.tile.filtered-out { display: none; }
.tile:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 40px -18px rgba(0, 0, 0, 0.8);
  border-color: rgba(46, 230, 226, 0.45);
}
.tile:hover::before { opacity: 1; }
.tile-body { padding: 28px 24px 24px; flex: 1; display: flex; flex-direction: column; }
.tile-body h3 { margin: 0 0 12px; font-size: 19px; color: #F5F6FA; letter-spacing: -0.005em; }
.tile-body p { color: #B2B7C2; font-size: 14.5px; margin: 0 0 18px; flex: 1; line-height: 1.6; }
.tile-pills { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 16px; }
.tile-actions { display: flex; gap: 8px; }
.tile-actions a {
  padding: 8px 14px; border-radius: 8px;
  font-size: 13px; font-weight: 500;
  background: rgba(255, 255, 255, 0.03); color: #E6E8EE; border: 1px solid rgba(255, 255, 255, 0.08);
  transition: all 140ms ease;
}
.tile-actions a:hover { background: rgba(46, 230, 226, 0.12); color: #2EE6E2; border-color: rgba(46, 230, 226, 0.55); }
.tile-actions a.primary { background: #2EE6E2; color: #0B0D12; border-color: #2EE6E2; }
.tile-actions a.primary:hover { background: #6FF1EE; color: #0B0D12; }
.tile-actions a.disabled {
  background: rgba(255, 255, 255, 0.02); color: #6B7280; border-color: rgba(255, 255, 255, 0.06); cursor: not-allowed;
  pointer-events: none;
}

/* Pills */
.pill {
  display: inline-block; padding: 3px 10px; border-radius: 999px;
  font-size: 11.5px; font-weight: 500; letter-spacing: 0.01em;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
}
.pill-hosting { background: rgba(46, 230, 226, 0.14); color: #2EE6E2; }
.pill-database { background: rgba(167, 139, 250, 0.14); color: #A78BFA; }
.pill-auth { background: rgba(251, 191, 36, 0.14); color: #FBBF24; }
.pill-interop { background: rgba(52, 211, 153, 0.14); color: #34D399; }

/* ─── Legend ─────────────────────────────────────────────── */
.legend { padding-top: 40px; padding-bottom: 40px; }
.legend h2 { text-align: center; margin-bottom: 40px; }
.legend-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; max-width: 880px; margin: 0 auto; }
@media (max-width: 720px) { .legend-list { grid-template-columns: 1fr; } }
.legend-list > div {
  display: flex; gap: 16px; padding: 22px;
  background: #14171F; border-radius: 12px; border: 1px solid rgba(255, 255, 255, 0.06);
}
.legend-list dt { margin-top: 2px; }
.legend-list dd { margin: 0; color: #B2B7C2; font-size: 14.5px; line-height: 1.55; }
.legend-note { text-align: center; color: #B2B7C2; margin-top: 32px; font-size: 14.5px; }

/* ─── Dev (terminal) ─────────────────────────────────────── */
.dev {
  background: #06080C;
  max-width: none; margin: 0;
  padding: 96px 24px;
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}
.dev h2 { color: #F5F6FA; margin-bottom: 32px; max-width: 720px; margin-left: auto; margin-right: auto; }
.dev p.lede { color: #B2B7C2; max-width: 640px; margin: 0 auto 28px; }
.terminal {
  max-width: 760px; margin: 0 auto 32px;
  background: #050709; border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 14px; padding: 26px;
  text-align: left; overflow-x: auto;
  font-size: 13.5px; line-height: 1.6;
  box-shadow: 0 28px 70px -28px rgba(0, 0, 0, 0.9);
}
.terminal code { color: #E6E8EE; white-space: pre; }
.terminal .prompt { color: #34D399; }
.terminal .dim { color: #6B7280; }
.terminal .ok { color: #34D399; }
.terminal .hi { color: #FBBF24; font-weight: 600; }

/* ─── Cluster diagram ─────────────────────────────────────── */
.cluster {
  display: grid; grid-template-columns: 1fr 1fr; gap: 56px;
  align-items: center;
}
@media (max-width: 880px) { .cluster { grid-template-columns: 1fr; } }
.cluster-copy p { color: #B2B7C2; font-size: 16.5px; }
.cluster-copy p em { color: #F5F6FA; font-style: normal; font-weight: 600; }
.cluster-diagram { display: flex; justify-content: center; }
.cluster-diagram svg { max-width: 380px; width: 100%; height: auto; }

/* ─── Footer ─────────────────────────────────────────────── */
.footer {
  max-width: 1200px; margin: 0 auto;
  padding: 48px 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 16px;
}
.footer .brand { font-size: 16px; }
.footer-note { color: #9CA0AB; font-size: 13.5px; margin: 0; flex: 1; min-width: 220px; padding: 0 16px; }
.footer-note code { font-size: 12px; background: #14171F; padding: 2px 6px; border-radius: 4px; color: #C7CBD6; }
.footer-links { display: flex; gap: 20px; }
.footer-links a { color: #9CA0AB; font-size: 14px; }
.footer-links a:hover { color: #2EE6E2; }
