/* ============================================
   CATIRA — Design System
   Minimal · Premium · Crypto-native
   ============================================ */

:root {
  --primary: #E3EF26;
  --bg: #06231D;
  --surface: #0C342C;
  --surface-2: #076653;
  --soft: #E2FBCE;
  --white: #FFFDEE;

  --grad-primary: linear-gradient(135deg, #E3EF26 0%, #076653 100%);
  --grad-hero: linear-gradient(135deg, #FFFDEE 0%, #E3EF26 100%);
  --grad-dark: linear-gradient(180deg, #076653 0%, #06231D 100%);
  --grad-card: linear-gradient(155deg, rgba(12, 52, 44, 0.72) 0%, rgba(7, 102, 83, 0.28) 100%);

  --radius: 24px;
  --radius-sm: 16px;
  --radius-xs: 12px;
  --radius-icon: 14px;

  --font: "Inter", system-ui, -apple-system, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;

  --glow: 0 0 32px rgba(227, 239, 38, 0.22);
  --glow-strong: 0 0 56px rgba(227, 239, 38, 0.35);
  --glass: rgba(12, 52, 44, 0.42);
  --glass-strong: rgba(12, 52, 44, 0.58);
  --glass-border: rgba(255, 253, 238, 0.1);
  --glass-border-strong: rgba(227, 239, 38, 0.18);
  --glass-highlight: rgba(255, 253, 238, 0.12);
  --shadow-sm: 0 4px 16px rgba(0, 0, 0, 0.18);
  --shadow-md: 0 12px 40px rgba(0, 0, 0, 0.28), 0 2px 8px rgba(0, 0, 0, 0.18);
  --shadow-lg: 0 24px 64px rgba(0, 0, 0, 0.38), 0 8px 20px rgba(0, 0, 0, 0.22);
  --shadow-inset: inset 0 1px 0 rgba(255, 253, 238, 0.1), inset 0 -1px 0 rgba(0, 0, 0, 0.18);
  --text-muted: rgba(255, 253, 238, 0.64);
  --text-dim: rgba(255, 253, 238, 0.4);

  --nav-h: 76px;
  --container: 1140px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --icon-sm: 18px;
  --icon-md: 22px;
  --icon-lg: 24px;
  --icon-shell: 44px;
  --logo-size: 40px;
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
html::-webkit-scrollbar {
  width: 0;
  height: 0;
  display: none;
}
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
  overflow-y: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body::-webkit-scrollbar {
  width: 0;
  height: 0;
  display: none;
}

/* Hide scrollbars everywhere; scroll still works where needed */
* {
  scrollbar-width: none;
  -ms-overflow-style: none;
}
*::-webkit-scrollbar {
  width: 0 !important;
  height: 0 !important;
  display: none !important;
  background: transparent;
}

a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
img { display: block; max-width: 100%; }
svg { display: block; max-width: 100%; }

.container {
  width: min(100% - 48px, var(--container));
  margin-inline: auto;
}

/* ============================================
   Background Layer
   ============================================ */
.bg-layer {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  contain: paint;
}
#grid-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.28;
}
.bg-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(130px);
  opacity: 0.28;
  animation: float-glow 22s ease-in-out infinite;
}
.bg-glow-1 {
  width: 560px; height: 560px;
  background: radial-gradient(circle, #076653 0%, transparent 70%);
  top: -12%; left: -6%;
}
.bg-glow-2 {
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(227, 239, 38, 0.2) 0%, transparent 70%);
  top: 38%; right: -8%;
  animation-delay: -6s;
}
.bg-glow-3 {
  width: 420px; height: 420px;
  background: radial-gradient(circle, #0C342C 0%, transparent 70%);
  bottom: 0%; left: 28%;
  animation-delay: -12s;
}
@keyframes float-glow {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -40px) scale(1.08); }
  66% { transform: translate(-20px, 20px) scale(0.95); }
}

/* Content above background */
main, .navbar, .footer { position: relative; z-index: 1; }
main { overflow-x: hidden; }
.glass,
.terminal,
.editor,
.agent-card,
.hero-visual,
.what-flow,
.economy-flow,
.cta-block {
  overflow: hidden;
}

/* ============================================
   Typography
   ============================================ */
.gradient-text {
  background: var(--grad-hero);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.section-label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 1.1rem;
}
.section-title {
  font-size: clamp(2rem, 4.2vw, 3.1rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.035em;
  margin-bottom: 1.25rem;
}
.section-desc {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 480px;
  margin-bottom: 2rem;
  line-height: 1.7;
}
.section-header {
  text-align: center;
  margin-bottom: 4rem;
}
.section-header .section-desc {
  margin-inline: auto;
}
.section {
  padding: 7.5rem 0;
}
.mono { font-family: var(--mono); font-size: 0.9rem; }
.up { color: var(--primary); }

/* ============================================
   Glass System
   ============================================ */
.glass {
  position: relative;
  background:
    linear-gradient(165deg, rgba(255, 253, 238, 0.045) 0%, transparent 42%),
    var(--glass);
  backdrop-filter: blur(22px) saturate(140%);
  -webkit-backdrop-filter: blur(22px) saturate(140%);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md), var(--shadow-inset);
  overflow: hidden;
}
.glass::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(255, 253, 238, 0.07) 0%, transparent 28%),
    radial-gradient(120% 80% at 10% 0%, rgba(227, 239, 38, 0.05), transparent 50%);
  opacity: 1;
}
.glass > * {
  position: relative;
  z-index: 1;
}

/* Shared icon shell */
.icon-shell {
  width: var(--icon-shell);
  height: var(--icon-shell);
  border-radius: var(--radius-icon);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--primary);
  background:
    linear-gradient(160deg, rgba(255, 253, 238, 0.08) 0%, transparent 55%),
    rgba(6, 35, 29, 0.55);
  border: 1px solid rgba(227, 239, 38, 0.16);
  box-shadow:
    var(--shadow-sm),
    inset 0 1px 0 rgba(255, 253, 238, 0.12),
    0 0 20px rgba(227, 239, 38, 0.06);
}
.icon-shell svg {
  width: var(--icon-lg);
  height: var(--icon-lg);
}

/* ============================================
   Buttons
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.95rem 1.85rem;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 999px;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s, border-color 0.25s;
  white-space: nowrap;
  line-height: 1;
}
.btn:hover { transform: translateY(-2px); }
.btn-glow {
  background: var(--primary);
  color: var(--bg);
  box-shadow: var(--glow), inset 0 1px 0 rgba(255, 255, 255, 0.28);
}
.btn-glow:hover {
  box-shadow: var(--glow-strong), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}
.btn-outline {
  background: rgba(255, 253, 238, 0.03);
  border: 1px solid rgba(255, 253, 238, 0.16);
  color: var(--white);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: inset 0 1px 0 rgba(255, 253, 238, 0.06);
}
.btn-outline:hover {
  border-color: rgba(255, 253, 238, 0.28);
  background: rgba(255, 253, 238, 0.06);
}
.btn-sm { padding: 0.7rem 1.3rem; font-size: 0.875rem; }
.btn-xs { padding: 0.45rem 0.95rem; font-size: 0.75rem; border-radius: 999px; }

/* ============================================
   Navbar
   ============================================ */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  z-index: 200;
  transition: background 0.35s, border-color 0.35s, backdrop-filter 0.35s, box-shadow 0.35s;
  border-bottom: 1px solid transparent;
}
.navbar.scrolled {
  background: rgba(6, 35, 29, 0.72);
  backdrop-filter: blur(22px) saturate(140%);
  -webkit-backdrop-filter: blur(22px) saturate(140%);
  border-bottom-color: rgba(255, 253, 238, 0.08);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.22);
}
.nav-inner {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 0.75rem 1rem;
  min-width: 0;
}
.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
  margin-left: 0.25rem;
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: 0.1em;
  line-height: 1;
}
.logo-mark {
  width: var(--logo-size);
  height: var(--logo-size);
  border-radius: 12px;
  flex-shrink: 0;
  overflow: hidden;
  display: grid;
  place-items: center;
  background:
    linear-gradient(160deg, rgba(255, 253, 238, 0.1) 0%, transparent 50%),
    rgba(6, 35, 29, 0.5);
  border: 1px solid rgba(227, 239, 38, 0.22);
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.2),
    0 6px 18px rgba(0, 0, 0, 0.28),
    0 0 24px rgba(227, 239, 38, 0.12),
    inset 0 1px 0 rgba(255, 253, 238, 0.18);
}
.logo-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.logo-text {
  transform: translateY(0.5px);
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 0.1rem 0.15rem;
  margin-left: auto;
  margin-right: 0;
  min-width: 0;
  flex-wrap: nowrap;
}
.nav-cta {
  display: none;
}
.nav-links a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.2s, background 0.2s;
  padding: 0.5rem 0.7rem;
  border-radius: 999px;
  line-height: 1;
  white-space: nowrap;
}
.nav-links a:hover {
  color: var(--white);
  background: rgba(255, 253, 238, 0.05);
}
.nav-links a.active-link {
  color: var(--white);
  background: rgba(227, 239, 38, 0.08);
}
.nav-toggle {
  display: none;
  position: relative;
  width: 40px;
  height: 40px;
  margin-left: 0;
  padding: 0;
  border-radius: 11px;
  background: rgba(255, 253, 238, 0.05);
  border: 1px solid rgba(255, 253, 238, 0.1);
  z-index: 220;
  flex-shrink: 0;
}
.nav-toggle span {
  position: absolute;
  left: 50%;
  width: 18px;
  height: 1.5px;
  background: var(--white);
  border-radius: 2px;
  transform: translateX(-50%);
  transition: top 0.25s var(--ease), transform 0.25s var(--ease), opacity 0.2s;
}
.nav-toggle span:nth-child(1) { top: 13px; }
.nav-toggle span:nth-child(2) { top: 19px; }
.nav-toggle span:nth-child(3) { top: 25px; }
.nav-toggle[aria-expanded="true"] span:nth-child(1),
body.nav-open .nav-toggle span:nth-child(1) {
  top: 19px;
  transform: translateX(-50%) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] span:nth-child(2),
body.nav-open .nav-toggle span:nth-child(2) {
  opacity: 0;
}
.nav-toggle[aria-expanded="true"] span:nth-child(3),
body.nav-open .nav-toggle span:nth-child(3) {
  top: 19px;
  transform: translateX(-50%) rotate(-45deg);
}

/* ============================================
   Hero
   ============================================ */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: calc(var(--nav-h) + 3.5rem) 0 4.5rem;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 3.5rem 4.5rem;
  align-items: center;
}
.hero-content {
  max-width: 560px;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.5rem 1rem 0.5rem 0.75rem;
  border-radius: 999px;
  background:
    linear-gradient(160deg, rgba(255, 253, 238, 0.06) 0%, transparent 50%),
    rgba(7, 102, 83, 0.35);
  border: 1px solid rgba(227, 239, 38, 0.18);
  box-shadow: var(--shadow-sm), inset 0 1px 0 rgba(255, 253, 238, 0.1);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--soft);
  margin-bottom: 1.85rem;
  line-height: 1;
}
.pulse-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 0 3px rgba(227, 239, 38, 0.15), 0 0 12px var(--primary);
  animation: pulse 2s ease-in-out infinite;
  flex-shrink: 0;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.55; transform: scale(0.88); }
}
.hero-title {
  font-size: clamp(2.75rem, 5.8vw, 4.15rem);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -0.04em;
  margin-bottom: 1.4rem;
}
.hero-sub {
  font-size: 1.12rem;
  color: var(--text-muted);
  max-width: 460px;
  margin-bottom: 2.35rem;
  line-height: 1.72;
}
.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  align-items: center;
}

/* Hero Visual — Agent Card */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 460px;
  padding: 1rem 0;
}
.float-card {
  animation: float-y 6.5s ease-in-out infinite;
}
@keyframes float-y {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}
.agent-card {
  width: min(100%, 380px);
  padding: 1.35rem 1.35rem 1.25rem;
  background:
    linear-gradient(165deg, rgba(255, 253, 238, 0.07) 0%, transparent 40%),
    linear-gradient(160deg, rgba(12, 52, 44, 0.82) 0%, rgba(7, 102, 83, 0.38) 100%);
  backdrop-filter: blur(28px) saturate(150%);
  -webkit-backdrop-filter: blur(28px) saturate(150%);
  border: 1px solid rgba(227, 239, 38, 0.2);
  border-radius: var(--radius);
  box-shadow:
    var(--shadow-lg),
    0 0 0 1px rgba(0, 0, 0, 0.15),
    inset 0 1px 0 rgba(255, 253, 238, 0.14),
    0 0 60px rgba(227, 239, 38, 0.08);
  position: relative;
  z-index: 2;
  overflow: hidden;
}
.agent-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(80% 60% at 100% 0%, rgba(227, 239, 38, 0.08), transparent 55%);
}
.agent-card-header {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 1.25rem;
  position: relative;
  z-index: 1;
}
.agent-avatar {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  overflow: hidden;
  flex-shrink: 0;
  color: var(--primary);
  background:
    linear-gradient(160deg, rgba(255, 253, 238, 0.08), transparent),
    rgba(6, 35, 29, 0.55);
  border: 1px solid rgba(227, 239, 38, 0.2);
  box-shadow: inset 0 1px 0 rgba(255, 253, 238, 0.12), 0 4px 12px rgba(0, 0, 0, 0.2);
  display: grid;
  place-items: center;
}
.agent-avatar img,
.agent-avatar svg {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.agent-avatar svg {
  width: 26px;
  height: 26px;
}
.agent-meta {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}
.agent-name {
  font-weight: 700;
  font-size: 1.02rem;
  letter-spacing: -0.01em;
  line-height: 1.2;
}
.agent-status {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1;
}
.status-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 0 3px rgba(74, 222, 128, 0.15), 0 0 8px #4ade80;
  flex-shrink: 0;
}
.agent-deploy {
  margin-left: auto;
  padding: 0.5rem 0.95rem;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 999px;
  background: var(--primary);
  color: var(--bg);
  box-shadow: 0 0 18px rgba(227, 239, 38, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.25);
  transition: transform 0.2s, box-shadow 0.2s;
  line-height: 1;
  flex-shrink: 0;
}
.agent-deploy:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 26px rgba(227, 239, 38, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}
.agent-metrics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
  margin-bottom: 1.1rem;
  position: relative;
  z-index: 1;
}
.metric {
  padding: 0.8rem 0.85rem;
  background: rgba(6, 35, 29, 0.45);
  border-radius: var(--radius-xs);
  border: 1px solid rgba(255, 253, 238, 0.07);
  box-shadow: inset 0 1px 0 rgba(255, 253, 238, 0.05);
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  backdrop-filter: blur(8px);
}
.metric-label {
  font-size: 0.68rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 500;
  line-height: 1;
}
.metric-value {
  font-family: var(--mono);
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.15;
}
.agent-chart {
  height: 64px;
  opacity: 0.95;
  position: relative;
  z-index: 1;
  border-radius: var(--radius-xs);
  overflow: hidden;
  background: rgba(6, 35, 29, 0.25);
  border: 1px solid rgba(255, 253, 238, 0.05);
  padding: 0.35rem 0.4rem 0;
}
.agent-chart svg { width: 100%; height: 100%; }
.orbit-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(227, 239, 38, 0.1);
  z-index: 1;
  pointer-events: none;
}
.orbit-1 {
  width: 440px; height: 440px;
  animation: spin 40s linear infinite;
  box-shadow: inset 0 0 40px rgba(227, 239, 38, 0.03);
}
.orbit-2 {
  width: 520px; height: 520px;
  border-style: dashed;
  opacity: 0.45;
  animation: spin 60s linear infinite reverse;
}
@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ============================================
   Trust Bar
   ============================================ */
.trust-bar {
  padding: 0.5rem 0 3.5rem;
}
.trust-items {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.7rem;
  padding: 0.85rem;
  border-radius: calc(var(--radius) + 4px);
  background:
    linear-gradient(165deg, rgba(255, 253, 238, 0.04) 0%, transparent 50%),
    rgba(12, 52, 44, 0.35);
  border: 1px solid rgba(255, 253, 238, 0.08);
  box-shadow: var(--shadow-sm), inset 0 1px 0 rgba(255, 253, 238, 0.06);
  backdrop-filter: blur(16px) saturate(130%);
  -webkit-backdrop-filter: blur(16px) saturate(130%);
}
.trust-item {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.84rem;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.01em;
  line-height: 1;
  padding: 0.6rem 0.9rem 0.6rem 0.65rem;
  border-radius: 999px;
  background: rgba(6, 35, 29, 0.35);
  border: 1px solid rgba(255, 253, 238, 0.06);
  transition: border-color 0.25s, color 0.25s, background 0.25s;
}
.trust-item:hover {
  color: var(--white);
  border-color: rgba(227, 239, 38, 0.18);
  background: rgba(7, 102, 83, 0.28);
}
.trust-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 9px;
  color: var(--primary);
  flex-shrink: 0;
  background: rgba(227, 239, 38, 0.08);
  border: 1px solid rgba(227, 239, 38, 0.14);
  box-shadow: inset 0 1px 0 rgba(255, 253, 238, 0.08);
}
.trust-icon svg {
  width: var(--icon-sm);
  height: var(--icon-sm);
}

/* ============================================
   What is Catira
   ============================================ */
.what-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.15fr;
  gap: 3.5rem 4.5rem;
  align-items: center;
}
.what-flow {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  padding: 1.75rem 1.5rem;
  position: relative;
  background:
    linear-gradient(165deg, rgba(255, 253, 238, 0.05) 0%, transparent 40%),
    linear-gradient(180deg, rgba(12, 52, 44, 0.62) 0%, rgba(7, 102, 83, 0.22) 100%);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  box-shadow: var(--shadow-md), var(--shadow-inset);
  overflow: hidden;
}
.what-flow::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(80% 50% at 50% 0%, rgba(227, 239, 38, 0.06), transparent 60%);
}
.flow-node {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  width: 100%;
  max-width: 280px;
  padding: 0.85rem 1rem;
  background: rgba(6, 35, 29, 0.55);
  border: 1px solid rgba(255, 253, 238, 0.08);
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.94rem;
  line-height: 1.2;
  transition: border-color 0.3s, box-shadow 0.3s, transform 0.3s, background 0.3s;
  position: relative;
  z-index: 1;
  box-shadow: inset 0 1px 0 rgba(255, 253, 238, 0.05);
}
.flow-node:hover {
  transform: translateX(2px);
  border-color: rgba(227, 239, 38, 0.2);
}
.flow-node.highlight {
  border-color: rgba(227, 239, 38, 0.32);
  background:
    linear-gradient(160deg, rgba(227, 239, 38, 0.08), transparent 60%),
    rgba(7, 102, 83, 0.4);
  box-shadow:
    0 0 24px rgba(227, 239, 38, 0.08),
    inset 0 1px 0 rgba(255, 253, 238, 0.1);
}
.flow-icon {
  width: 36px;
  height: 36px;
  border-radius: 11px;
  color: var(--primary);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(227, 239, 38, 0.08);
  border: 1px solid rgba(227, 239, 38, 0.16);
  box-shadow: inset 0 1px 0 rgba(255, 253, 238, 0.1);
}
.flow-icon svg {
  width: var(--icon-md);
  height: var(--icon-md);
}
.flow-arrow {
  color: var(--primary);
  opacity: 0.5;
  width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
}
.flow-arrow svg {
  width: 100%;
  height: 100%;
}

/* ============================================
   Products
   ============================================ */
.products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.15rem;
}
.product-card {
  padding: 1.6rem 1.5rem 1.7rem;
  transition: transform 0.35s var(--ease), border-color 0.3s, box-shadow 0.35s;
  min-height: 100%;
}
.product-card:hover {
  transform: translateY(-5px);
  border-color: rgba(227, 239, 38, 0.22);
  box-shadow: var(--shadow-lg), 0 0 40px rgba(227, 239, 38, 0.06), var(--shadow-inset);
}
.product-card.featured {
  border-color: rgba(227, 239, 38, 0.2);
  box-shadow: var(--shadow-md), 0 0 36px rgba(227, 239, 38, 0.07), var(--shadow-inset);
}
.product-icon {
  width: var(--icon-shell);
  height: var(--icon-shell);
  color: var(--primary);
  margin-bottom: 1.2rem;
  border-radius: var(--radius-icon);
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    linear-gradient(160deg, rgba(255, 253, 238, 0.08) 0%, transparent 55%),
    rgba(6, 35, 29, 0.5);
  border: 1px solid rgba(227, 239, 38, 0.16);
  box-shadow: var(--shadow-sm), inset 0 1px 0 rgba(255, 253, 238, 0.12);
}
.product-icon svg {
  width: var(--icon-lg);
  height: var(--icon-lg);
}
.product-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.95rem;
  letter-spacing: -0.02em;
  line-height: 1.2;
}
.product-list {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}
.product-list li {
  font-size: 0.9rem;
  color: var(--text-muted);
  padding-left: 1rem;
  position: relative;
  line-height: 1.4;
}
.product-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.55em;
  width: 4px; height: 4px;
  border-radius: 50%;
  background: rgba(227, 239, 38, 0.45);
  box-shadow: 0 0 6px rgba(227, 239, 38, 0.25);
}

/* ============================================
   How It Works — Timeline
   ============================================ */
.timeline {
  position: relative;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 0.5rem 0 1rem;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.timeline::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}
.timeline-track {
  position: absolute;
  top: 30px;
  left: 6%;
  right: 6%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(7, 102, 83, 0.8), rgba(227, 239, 38, 0.55), rgba(7, 102, 83, 0.8), transparent);
  opacity: 0.7;
}
.timeline-steps {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem;
  min-width: 860px;
  position: relative;
}
.timeline-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1.15rem;
}
.step-num {
  width: 56px; height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background:
    linear-gradient(160deg, rgba(255, 253, 238, 0.08), transparent 50%),
    rgba(12, 52, 44, 0.85);
  border: 1px solid rgba(227, 239, 38, 0.22);
  font-family: var(--mono);
  font-weight: 600;
  font-size: 0.8rem;
  color: var(--primary);
  z-index: 1;
  box-shadow:
    var(--shadow-sm),
    inset 0 1px 0 rgba(255, 253, 238, 0.12),
    0 0 20px rgba(227, 239, 38, 0.08);
  backdrop-filter: blur(10px);
}
.step-card {
  padding: 1.4rem 1.15rem 1.5rem;
  width: 100%;
  transition: transform 0.35s var(--ease), border-color 0.3s, box-shadow 0.3s;
}
.step-card:hover {
  transform: translateY(-5px);
  border-color: rgba(227, 239, 38, 0.24);
  box-shadow: var(--shadow-lg), 0 0 30px rgba(227, 239, 38, 0.05), var(--shadow-inset);
}
.step-card h4 {
  font-size: 0.98rem;
  font-weight: 700;
  margin-bottom: 0.45rem;
  letter-spacing: -0.015em;
}
.step-card p {
  font-size: 0.84rem;
  color: var(--text-muted);
  line-height: 1.55;
}

/* ============================================
   Marketplace Terminal
   ============================================ */
.terminal {
  overflow: hidden;
  box-shadow: var(--shadow-lg), 0 0 50px rgba(0, 0, 0, 0.15);
}
.terminal-header {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 0.95rem 1.35rem;
  background:
    linear-gradient(180deg, rgba(255, 253, 238, 0.04), transparent),
    rgba(6, 35, 29, 0.72);
  border-bottom: 1px solid rgba(255, 253, 238, 0.08);
}
.terminal-dots {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-shrink: 0;
}
.terminal-dots span {
  width: 11px; height: 11px;
  border-radius: 50%;
  background: rgba(255, 253, 238, 0.15);
  box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.2);
}
.terminal-dots span:nth-child(1) { background: #ff5f57; }
.terminal-dots span:nth-child(2) { background: #febc2e; }
.terminal-dots span:nth-child(3) { background: #28c840; }
.terminal-title {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-family: var(--mono);
  line-height: 1;
}
.terminal-live {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.74rem;
  color: var(--primary);
  font-weight: 600;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  background: rgba(227, 239, 38, 0.08);
  border: 1px solid rgba(227, 239, 38, 0.16);
  line-height: 1;
}
.terminal-body {
  padding: 0.35rem 0 0.5rem;
}
.agent-row {
  display: grid;
  grid-template-columns: 2fr 2.4fr auto;
  gap: 1rem;
  align-items: center;
  padding: 0.95rem 1.4rem;
  border-bottom: 1px solid rgba(255, 253, 238, 0.05);
  transition: background 0.2s;
  min-height: 58px;
}
.agent-row:last-child { border-bottom: none; }
.agent-row:not(.header-row):hover {
  background: rgba(227, 239, 38, 0.035);
}
.header-row {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-dim);
  font-weight: 600;
  padding-top: 0.7rem;
  padding-bottom: 0.7rem;
  min-height: 0;
}
.header-row .agent-stats span {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-dim);
  font-weight: 600;
}
.agent-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.5rem;
  align-items: center;
}
.agent-stats .mono {
  text-align: left;
}
.agent-info {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  min-width: 0;
}
.agent-dot {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--c, var(--primary));
  box-shadow: 0 0 0 3px rgba(227, 239, 38, 0.14), 0 0 10px var(--c, var(--primary));
  flex-shrink: 0;
}
.agent-ticker {
  font-weight: 700;
  font-size: 0.94rem;
  letter-spacing: -0.01em;
}
.agent-change {
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.22rem 0.5rem;
  border-radius: 7px;
  background: rgba(227, 239, 38, 0.1);
  border: 1px solid rgba(227, 239, 38, 0.12);
  line-height: 1;
}

/* ============================================
   Playground Editor
   ============================================ */
.editor {
  overflow: hidden;
  box-shadow: var(--shadow-lg), 0 0 50px rgba(0, 0, 0, 0.15);
}
.editor-tabs {
  display: flex;
  gap: 0;
  padding: 0 0.65rem;
  background:
    linear-gradient(180deg, rgba(255, 253, 238, 0.04), transparent),
    rgba(6, 35, 29, 0.78);
  border-bottom: 1px solid rgba(255, 253, 238, 0.08);
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.editor-tabs::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}
.tab {
  padding: 1rem 1.15rem;
  font-size: 0.84rem;
  font-weight: 500;
  color: var(--text-dim);
  border-bottom: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
  white-space: nowrap;
  line-height: 1;
}
.tab:hover { color: var(--text-muted); }
.tab.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
  background: linear-gradient(180deg, rgba(227, 239, 38, 0.06), transparent);
}
.editor-body {
  display: grid;
  grid-template-columns: 168px 1fr;
  min-height: 340px;
}
.editor-sidebar {
  background: rgba(6, 35, 29, 0.55);
  border-right: 1px solid rgba(255, 253, 238, 0.06);
  padding: 0.85rem 0.4rem;
}
.sidebar-item {
  padding: 0.6rem 0.85rem;
  font-family: var(--mono);
  font-size: 0.74rem;
  color: var(--text-dim);
  cursor: pointer;
  transition: color 0.2s, background 0.2s;
  border-radius: 8px;
  line-height: 1.3;
}
.sidebar-item:hover,
.sidebar-item.active {
  color: var(--soft);
  background: rgba(227, 239, 38, 0.07);
}
.editor-code {
  padding: 1.5rem 1.6rem;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  -ms-overflow-style: none;
  background:
    linear-gradient(180deg, rgba(4, 20, 17, 0.35), rgba(4, 20, 17, 0.65));
}
.editor-code::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}
.editor-code pre {
  font-family: var(--mono);
  font-size: 0.82rem;
  line-height: 1.72;
  color: var(--soft);
}
.code-kw { color: #c792ea; }
.code-str { color: #c3e88d; }
.code-fn { color: #82aaff; }
.editor-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 1rem 1.4rem;
  background: rgba(6, 35, 29, 0.72);
  border-top: 1px solid rgba(255, 253, 238, 0.08);
}
.deploy-flow {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.82rem;
  font-weight: 500;
}
.deploy-step {
  color: var(--text-dim);
  padding: 0.4rem 0.8rem;
  border-radius: 999px;
  border: 1px solid transparent;
  line-height: 1;
}
.deploy-step.active {
  color: var(--primary);
  border-color: rgba(227, 239, 38, 0.28);
  background: rgba(227, 239, 38, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 253, 238, 0.08);
}
.deploy-arrow { color: rgba(7, 102, 83, 0.9); }

/* ============================================
   Infrastructure
   ============================================ */
.infra-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.15rem;
}
.infra-card {
  padding: 1.55rem 1.45rem 1.65rem;
  transition: transform 0.35s var(--ease), border-color 0.3s, box-shadow 0.35s;
  min-height: 100%;
}
.infra-card:hover {
  transform: translateY(-5px);
  border-color: rgba(227, 239, 38, 0.22);
  box-shadow: var(--shadow-lg), 0 0 36px rgba(227, 239, 38, 0.05), var(--shadow-inset);
}
.infra-icon {
  width: var(--icon-shell);
  height: var(--icon-shell);
  color: var(--primary);
  margin-bottom: 1.15rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-icon);
  background:
    linear-gradient(160deg, rgba(255, 253, 238, 0.08) 0%, transparent 55%),
    rgba(6, 35, 29, 0.5);
  border: 1px solid rgba(227, 239, 38, 0.16);
  box-shadow: var(--shadow-sm), inset 0 1px 0 rgba(255, 253, 238, 0.12);
}
.infra-icon svg {
  width: var(--icon-lg);
  height: var(--icon-lg);
}
.infra-card h3 {
  font-size: 1.08rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  letter-spacing: -0.015em;
  line-height: 1.2;
}
.infra-card p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ============================================
   Community Economy
   ============================================ */
.economy-flow {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 2.75rem 2rem;
  gap: 0;
  max-width: 440px;
  margin-inline: auto;
  position: relative;
  overflow: hidden;
}
.economy-flow::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at center, rgba(227, 239, 38, 0.07) 0%, transparent 68%),
    linear-gradient(180deg, rgba(255, 253, 238, 0.03), transparent 30%);
  pointer-events: none;
}
.eco-node { position: relative; z-index: 1; }
.eco-circle {
  min-width: 200px;
  text-align: center;
  padding: 0.95rem 1.5rem;
  border-radius: 999px;
  background:
    linear-gradient(160deg, rgba(255, 253, 238, 0.06), transparent 50%),
    rgba(6, 35, 29, 0.72);
  border: 1px solid rgba(255, 253, 238, 0.1);
  font-weight: 600;
  font-size: 0.94rem;
  line-height: 1.2;
  transition: border-color 0.3s, box-shadow 0.3s, transform 0.3s;
  box-shadow: var(--shadow-sm), inset 0 1px 0 rgba(255, 253, 238, 0.08);
  backdrop-filter: blur(10px);
}
.eco-circle:hover {
  transform: scale(1.02);
}
.eco-circle.accent {
  border-color: rgba(227, 239, 38, 0.35);
  color: var(--primary);
  background:
    linear-gradient(160deg, rgba(227, 239, 38, 0.1), transparent 55%),
    rgba(7, 102, 83, 0.42);
  box-shadow: var(--shadow-sm), 0 0 24px rgba(227, 239, 38, 0.08), inset 0 1px 0 rgba(255, 253, 238, 0.1);
}
.eco-circle.glow {
  border-color: rgba(227, 239, 38, 0.55);
  box-shadow: var(--glow), inset 0 1px 0 rgba(255, 253, 238, 0.14);
  background:
    linear-gradient(145deg, rgba(227, 239, 38, 0.16), rgba(7, 102, 83, 0.42));
  color: var(--primary);
}
.eco-arrow {
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 34px;
  justify-content: center;
  position: relative;
  z-index: 1;
}
.eco-line {
  position: absolute;
  width: 1px;
  height: 100%;
  background: linear-gradient(180deg, var(--surface-2), var(--primary));
  opacity: 0.55;
  animation: flow-pulse 2s ease-in-out infinite;
}
.eco-label {
  color: var(--primary);
  position: relative;
  z-index: 1;
  opacity: 0.85;
  width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(6, 35, 29, 0.65);
  border: 1px solid rgba(227, 239, 38, 0.2);
  box-shadow: 0 0 12px rgba(227, 239, 38, 0.08);
}
.eco-label svg {
  width: 12px;
  height: 12px;
}
@keyframes flow-pulse {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 0.85; }
}

/* ============================================
   Whitepaper CTA
   ============================================ */
.whitepaper-cta {
  padding-top: 4.5rem;
  padding-bottom: 4.5rem;
}
.cta-block {
  text-align: center;
  padding: 5.5rem 2.5rem;
  border-radius: var(--radius);
  background:
    linear-gradient(165deg, rgba(255, 253, 238, 0.05) 0%, transparent 42%),
    linear-gradient(160deg, rgba(12, 52, 44, 0.65) 0%, rgba(7, 102, 83, 0.28) 55%, rgba(6, 35, 29, 0.7) 100%);
  border: 1px solid rgba(255, 253, 238, 0.1);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-lg), var(--shadow-inset);
  backdrop-filter: blur(22px) saturate(140%);
  -webkit-backdrop-filter: blur(22px) saturate(140%);
}
.cta-glow {
  position: absolute;
  width: 420px; height: 420px;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(227, 239, 38, 0.1) 0%, transparent 70%);
  pointer-events: none;
}
.cta-block .section-label {
  position: relative;
  z-index: 1;
}
.cta-block .section-title {
  position: relative;
  z-index: 1;
  margin-bottom: 1rem;
}
.cta-block .section-desc {
  margin-inline: auto;
  position: relative;
  z-index: 1;
  max-width: 440px;
}
.cta-buttons {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
  position: relative;
  z-index: 1;
}

/* ============================================
   Roadmap
   ============================================ */
.roadmap-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.15rem;
}
.roadmap-phase {
  padding: 1.55rem 1.4rem 1.7rem;
  transition: transform 0.35s var(--ease), border-color 0.3s, box-shadow 0.35s;
  min-height: 270px;
  display: flex;
  flex-direction: column;
}
.roadmap-phase:hover {
  transform: translateY(-5px);
  border-color: rgba(227, 239, 38, 0.22);
  box-shadow: var(--shadow-lg), 0 0 36px rgba(227, 239, 38, 0.05), var(--shadow-inset);
}
.phase-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1.35rem;
  min-height: 28px;
}
.phase-num {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-dim);
  font-family: var(--mono);
  line-height: 1;
}
.phase-status {
  font-size: 0.68rem;
  font-weight: 700;
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
  letter-spacing: 0.05em;
  line-height: 1;
  text-transform: uppercase;
}
.phase-status.current {
  color: var(--bg);
  background: var(--primary);
  box-shadow: var(--glow), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}
.phase-title {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 1.15rem;
  line-height: 1.2;
}
.phase-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: auto;
}
.phase-list li {
  font-size: 0.9rem;
  color: var(--text-muted);
  padding-left: 0.9rem;
  position: relative;
}
.phase-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(255, 253, 238, 0.28);
}
.roadmap-phase.reveal:nth-child(1) { transition-delay: 0.05s; }
.roadmap-phase.reveal:nth-child(2) { transition-delay: 0.12s; }
.roadmap-phase.reveal:nth-child(3) { transition-delay: 0.19s; }
.roadmap-phase.reveal:nth-child(4) { transition-delay: 0.26s; }

/* ============================================
   Launch Section
   ============================================ */
.launch-section {
  padding-top: 1.5rem;
  padding-bottom: 6rem;
}
.launch-card {
  text-align: center;
  padding: 4.25rem 2rem;
}
.launch-card h2 {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 700;
  margin-bottom: 0.85rem;
  letter-spacing: -0.025em;
}
.launch-card p {
  color: var(--text-muted);
  margin-bottom: 1.85rem;
  font-size: 1.05rem;
  max-width: 420px;
  margin-inline: auto;
  line-height: 1.65;
}

/* ============================================
   Footer — thin modern bar
   ============================================ */
.footer {
  border-top: 1px solid rgba(255, 253, 238, 0.06);
  padding: 0;
  background: rgba(4, 18, 15, 0.55);
}
.footer-bar {
  display: flex;
  align-items: center;
  gap: 1rem 1.5rem;
  min-height: 56px;
  padding: 0.65rem 0;
  flex-wrap: wrap;
}
.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 800;
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  line-height: 1;
  flex-shrink: 0;
}
.footer-logo .logo-mark {
  width: 24px;
  height: 24px;
  border-radius: 7px;
}
.footer-logo .logo-text {
  transform: none;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.1rem 0.15rem;
  margin-left: auto;
}
.footer-nav a {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-dim);
  transition: color 0.2s;
  padding: 0.35rem 0.55rem;
  border-radius: 6px;
  line-height: 1;
}
.footer-nav a:hover {
  color: var(--white);
  background: transparent;
}
.footer-sep {
  width: 1px;
  height: 12px;
  background: rgba(255, 253, 238, 0.12);
  margin: 0 0.35rem;
  flex-shrink: 0;
}
.footer-copy {
  font-size: 0.72rem;
  color: var(--text-dim);
  white-space: nowrap;
  flex-shrink: 0;
  opacity: 0.85;
}

/* ============================================
   Whitepaper Page
   ============================================ */
.page-whitepaper .bg-glow-2 { opacity: 0.12; }
.wp-main {
  padding: calc(var(--nav-h) + 3.5rem) 0 5rem;
}
.wp-layout {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
  gap: 4rem;
  align-items: start;
}
.wp-toc {
  position: sticky;
  top: calc(var(--nav-h) + 1.5rem);
  padding: 0;
}
.wp-toc-label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 1rem;
}
.wp-toc nav {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}
.wp-toc a {
  display: flex;
  align-items: baseline;
  gap: 0.65rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  padding: 0.45rem 0;
  border-left: 1px solid transparent;
  padding-left: 0.75rem;
  margin-left: -0.75rem;
  transition: color 0.2s, border-color 0.2s;
}
.wp-toc a span {
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--text-dim);
  min-width: 1.4rem;
}
.wp-toc a:hover {
  color: var(--white);
  border-left-color: rgba(227, 239, 38, 0.45);
}
.nav-links a.active-link { color: var(--white); }

.wp-hero {
  margin-bottom: 4.5rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255, 253, 238, 0.06);
}
.wp-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.08;
  margin-bottom: 1.25rem;
}
.wp-lead {
  font-size: 1.2rem;
  color: var(--text-muted);
  max-width: 540px;
  line-height: 1.7;
}
.wp-section {
  margin-bottom: 4.5rem;
  padding-bottom: 4rem;
  border-bottom: 1px solid rgba(255, 253, 238, 0.05);
}
.wp-section:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}
.wp-section-num {
  font-family: var(--mono);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--primary);
  letter-spacing: 0.08em;
  margin-bottom: 0.75rem;
}
.wp-section h2 {
  font-size: clamp(1.6rem, 3vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  margin-bottom: 1.75rem;
}
.wp-block {
  margin-bottom: 1.75rem;
}
.wp-block h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--white);
}
.wp-block p,
.wp-after,
.wp-points li p {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.75;
  max-width: 640px;
}
.wp-points {
  display: flex;
  flex-direction: column;
  gap: 1.35rem;
  max-width: 640px;
}
.wp-points li {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.75;
  padding-left: 1.15rem;
  position: relative;
}
.wp-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.7em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--primary);
  opacity: 0.7;
}
.wp-points strong {
  color: var(--white);
  font-weight: 600;
}
.wp-pill-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-bottom: 1.5rem;
}
.wp-pill {
  padding: 0.55rem 1rem;
  border-radius: 999px;
  border: 1px solid var(--glass-border);
  background: rgba(12, 52, 44, 0.5);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--soft);
}
.wp-arch {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
  margin-bottom: 1.5rem;
  max-width: 560px;
}
.wp-arch-item {
  padding: 1rem 1.15rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--glass-border);
  background: rgba(12, 52, 44, 0.4);
  font-weight: 500;
  font-size: 0.95rem;
}
.wp-token-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  max-width: 640px;
}
.wp-token-card {
  padding: 1.35rem 1.25rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--glass-border);
  background: rgba(12, 52, 44, 0.35);
}
.wp-token-card h3 {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
}
.wp-token-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.55;
}
.wp-roadmap-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0;
  max-width: 560px;
  border-left: 1px solid rgba(255, 253, 238, 0.08);
  margin-left: 0.6rem;
}
.wp-roadmap-list li {
  display: flex;
  gap: 1.25rem;
  padding: 0 0 1.75rem 1.5rem;
  position: relative;
}
.wp-roadmap-list li:last-child { padding-bottom: 0; }
.wp-rm-phase {
  position: absolute;
  left: -0.55rem;
  top: 0.15rem;
  width: 1.1rem;
  height: 1.1rem;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid rgba(227, 239, 38, 0.45);
  font-size: 0;
}
.wp-roadmap-list strong {
  display: block;
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 0.3rem;
  color: var(--white);
}
.wp-roadmap-list p {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
}
.wp-vision .wp-quote {
  font-size: clamp(1.25rem, 2.5vw, 1.55rem);
  font-weight: 500;
  line-height: 1.55;
  letter-spacing: -0.02em;
  color: var(--white);
  max-width: 560px;
  border-left: 2px solid var(--primary);
  padding-left: 1.5rem;
  margin: 0 0 2.5rem;
}
.wp-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

/* ============================================
   Scroll Reveal
   ============================================ */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.timeline-step.reveal:nth-child(1) { transition-delay: 0.05s; }
.timeline-step.reveal:nth-child(2) { transition-delay: 0.12s; }
.timeline-step.reveal:nth-child(3) { transition-delay: 0.19s; }
.timeline-step.reveal:nth-child(4) { transition-delay: 0.26s; }
.timeline-step.reveal:nth-child(5) { transition-delay: 0.33s; }
.product-card.reveal:nth-child(1) { transition-delay: 0.05s; }
.product-card.reveal:nth-child(2) { transition-delay: 0.12s; }
.product-card.reveal:nth-child(3) { transition-delay: 0.19s; }
.product-card.reveal:nth-child(4) { transition-delay: 0.26s; }
.infra-card.reveal:nth-child(1) { transition-delay: 0.03s; }
.infra-card.reveal:nth-child(2) { transition-delay: 0.08s; }
.infra-card.reveal:nth-child(3) { transition-delay: 0.13s; }
.infra-card.reveal:nth-child(4) { transition-delay: 0.18s; }
.infra-card.reveal:nth-child(5) { transition-delay: 0.23s; }
.infra-card.reveal:nth-child(6) { transition-delay: 0.28s; }
.infra-card.reveal:nth-child(7) { transition-delay: 0.33s; }
.infra-card.reveal:nth-child(8) { transition-delay: 0.38s; }

/* ============================================
   Responsive
   ============================================ */

/* Tablet */
@media (max-width: 1024px) {
  :root {
    --nav-h: 68px;
    --logo-size: 36px;
  }

  .container {
    width: min(100% - 40px, var(--container));
  }

  .section {
    padding: 5.5rem 0;
  }

  .section-header {
    margin-bottom: 3rem;
  }

  .hero {
    min-height: auto;
    padding: calc(var(--nav-h) + 2.5rem) 0 3rem;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 2.75rem;
    text-align: center;
  }

  .hero-content {
    max-width: 560px;
    margin-inline: auto;
  }

  .hero-sub {
    margin-inline: auto;
  }

  .hero-cta {
    justify-content: center;
  }

  .hero-visual {
    min-height: 0;
    padding: 0.25rem 0 0.5rem;
  }

  .agent-card {
    width: min(100%, 380px);
    margin-inline: auto;
  }

  .orbit-1,
  .orbit-2 {
    display: none;
  }

  .what-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .what-content {
    text-align: center;
  }

  .what-content .section-desc {
    margin-inline: auto;
  }

  .what-flow {
    max-width: 420px;
    margin-inline: auto;
  }

  .products-grid,
  .infra-grid,
  .roadmap-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }

  .timeline-steps {
    min-width: 720px;
    gap: 0.85rem;
  }

  .wp-layout {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }

  .wp-toc {
    position: static;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 253, 238, 0.06);
    margin-bottom: 0.5rem;
  }

  .wp-toc nav {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.35rem 0.65rem;
  }

  .wp-toc a {
    border-left: none;
    margin-left: 0;
    padding: 0.45rem 0.7rem;
    border-radius: 999px;
    background: rgba(12, 52, 44, 0.45);
    border: 1px solid rgba(255, 253, 238, 0.07);
  }
}

/* Mobile */
@media (max-width: 768px) {
  :root {
    --nav-h: 56px;
    --logo-size: 30px;
    --icon-shell: 36px;
    --icon-lg: 18px;
    --radius: 16px;
    --radius-sm: 12px;
    --radius-xs: 10px;
    --radius-icon: 11px;
  }

  .container {
    width: min(100% - 24px, var(--container));
  }

  .section {
    padding: 2.75rem 0;
  }

  .section-header {
    margin-bottom: 1.35rem;
  }

  .section-title {
    font-size: clamp(1.55rem, 6.4vw, 2rem);
    margin-bottom: 0.55rem;
    line-height: 1.15;
  }

  .section-title br {
    display: none;
  }

  .section-desc {
    font-size: 0.9rem;
    margin-bottom: 0;
    line-height: 1.55;
    color: rgba(255, 253, 238, 0.7);
  }

  .section-label {
    margin-bottom: 0.45rem;
    font-size: 0.62rem;
    letter-spacing: 0.14em;
    color: rgba(227, 239, 38, 0.75);
  }

  /* Navbar + mobile menu */
  .navbar {
    height: var(--nav-h);
    padding-top: env(safe-area-inset-top, 0);
  }

  .navbar.scrolled {
    background: rgba(6, 35, 29, 0.92);
  }

  .nav-inner {
    gap: 0.5rem;
  }

  .logo {
    gap: 0.45rem;
    font-size: 0.88rem;
    letter-spacing: 0.08em;
  }

  .logo-mark {
    border-radius: 9px;
    box-shadow:
      0 0 0 1px rgba(0, 0, 0, 0.2),
      0 4px 12px rgba(0, 0, 0, 0.25),
      0 0 16px rgba(227, 239, 38, 0.1),
      inset 0 1px 0 rgba(255, 253, 238, 0.16);
  }

  .nav-toggle {
    display: block;
    margin-left: 0.15rem;
  }

  .nav-actions {
    margin-left: auto;
  }

  .nav-launch-desktop {
    display: none !important;
  }

  .nav-links {
    display: flex;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0.35rem;
    margin: 0;
    padding:
      calc(var(--nav-h) + env(safe-area-inset-top, 0px) + 1rem)
      1.15rem
      calc(1.25rem + env(safe-area-inset-bottom, 0px));
    background: rgba(5, 28, 23, 0.98);
    backdrop-filter: blur(28px) saturate(150%);
    -webkit-backdrop-filter: blur(28px) saturate(150%);
    border-bottom: none;
    transform: translateY(-12px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: transform 0.28s var(--ease), opacity 0.22s ease, visibility 0.22s;
    z-index: 210;
    overflow-y: auto;
  }

  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .nav-links a {
    font-size: 1rem;
    padding: 0.95rem 1rem;
    border-radius: 14px;
    color: var(--white);
    border: 1px solid rgba(255, 253, 238, 0.06);
    background: rgba(12, 52, 44, 0.4);
  }

  .nav-links a:hover,
  .nav-links a:active {
    background: rgba(227, 239, 38, 0.1);
    border-color: rgba(227, 239, 38, 0.16);
  }

  .nav-links .nav-cta {
    margin-top: 0.5rem;
    text-align: center;
    justify-content: center;
    background: var(--primary) !important;
    color: var(--bg) !important;
    border-color: transparent !important;
    box-shadow: 0 0 28px rgba(227, 239, 38, 0.25);
    font-weight: 700;
  }

  .nav-links .nav-cta:hover,
  .nav-links .nav-cta:active {
    background: var(--primary) !important;
    color: var(--bg) !important;
  }

  .nav-launch-desktop {
    display: none;
  }

  body.nav-open {
    overflow: hidden;
    touch-action: none;
  }

  body.nav-open .navbar {
    background: rgba(5, 28, 23, 0.98);
    border-bottom-color: rgba(255, 253, 238, 0.06);
  }

  .nav-cta {
    display: inline-flex !important;
  }

  /* Hero — compact above the fold */
  .hero {
    min-height: auto;
    padding: calc(var(--nav-h) + 1.15rem) 0 1.25rem;
  }

  .hero-grid {
    gap: 1.25rem;
  }

  .hero-title {
    font-size: clamp(1.85rem, 8.2vw, 2.35rem);
    margin-bottom: 0.65rem;
    letter-spacing: -0.035em;
    line-height: 1.08;
  }

  .hero-sub {
    font-size: 0.9rem;
    margin-bottom: 1.1rem;
    max-width: 22rem;
    line-height: 1.55;
    color: rgba(255, 253, 238, 0.72);
  }

  .hero-cta {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: stretch;
    justify-content: center;
    gap: 0.55rem;
  }

  .hero-cta .btn {
    flex: 1 1 calc(50% - 0.35rem);
    min-width: 0;
    min-height: 44px;
    padding: 0.75rem 0.85rem;
    font-size: 0.88rem;
  }

  .agent-card {
    width: 100%;
    max-width: 360px;
    padding: 0.95rem;
    border-radius: 18px;
  }

  .agent-card-header {
    gap: 0.55rem;
    margin-bottom: 0.75rem;
  }

  .agent-avatar {
    width: 36px;
    height: 36px;
    border-radius: 10px;
  }

  .agent-name {
    font-size: 0.9rem;
  }

  .agent-status {
    font-size: 0.7rem;
  }

  .agent-deploy {
    padding: 0.4rem 0.7rem;
    min-height: 32px;
    font-size: 0.7rem;
  }

  .agent-metrics {
    gap: 0.4rem;
    margin-bottom: 0.65rem;
  }

  .metric {
    padding: 0.55rem 0.6rem;
    gap: 0.15rem;
  }

  .metric-label {
    font-size: 0.6rem;
  }

  .metric-value {
    font-size: 0.84rem;
  }

  .agent-chart {
    height: 44px;
    padding: 0.2rem 0.3rem 0;
  }

  /* Trust bar — compact horizontal chips */
  .trust-bar {
    padding: 0 0 1.5rem;
  }

  .trust-items {
    gap: 0.4rem;
    padding: 0.45rem;
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    justify-content: flex-start;
    -webkit-overflow-scrolling: touch;
  }

  .trust-item {
    font-size: 0.72rem;
    padding: 0.4rem 0.55rem 0.4rem 0.4rem;
    flex: 0 0 auto;
    min-width: 0;
    white-space: nowrap;
  }

  .trust-icon {
    width: 22px;
    height: 22px;
    border-radius: 7px;
  }

  .trust-icon svg {
    width: 13px;
    height: 13px;
  }

  /* What is */
  .what-grid {
    gap: 1.35rem;
  }

  .what-flow {
    padding: 0.85rem 0.75rem;
    width: 100%;
    max-width: none;
    gap: 0.15rem;
  }

  .flow-node {
    max-width: none;
    padding: 0.65rem 0.75rem;
    font-size: 0.84rem;
    gap: 0.6rem;
    border-radius: 12px;
  }

  .flow-icon {
    width: 30px;
    height: 30px;
    border-radius: 9px;
  }

  .flow-icon svg {
    width: 16px;
    height: 16px;
  }

  .flow-arrow {
    width: 14px;
    height: 14px;
    opacity: 0.45;
  }

  .what-content .btn {
    margin-top: 1rem;
    width: 100%;
  }

  /* Products / infra / roadmap — denser 2-col where possible */
  .products-grid,
  .infra-grid {
    grid-template-columns: 1fr 1fr;
    gap: 0.6rem;
  }

  .roadmap-grid {
    grid-template-columns: 1fr 1fr;
    gap: 0.6rem;
  }

  .product-card,
  .infra-card,
  .roadmap-phase {
    padding: 0.95rem 0.85rem 1rem;
    border-radius: 16px;
  }

  .product-icon,
  .infra-icon {
    margin-bottom: 0.7rem;
  }

  .product-card h3,
  .infra-card h3 {
    font-size: 0.92rem;
    margin-bottom: 0.55rem;
  }

  .product-list {
    gap: 0.28rem;
  }

  .product-list li,
  .infra-card p,
  .phase-list li {
    font-size: 0.78rem;
    line-height: 1.35;
  }

  .infra-card p {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .roadmap-phase {
    min-height: 0;
  }

  .phase-top {
    margin-bottom: 0.7rem;
    min-height: 0;
  }

  .phase-num {
    font-size: 0.64rem;
  }

  .phase-status {
    font-size: 0.6rem;
    padding: 0.22rem 0.45rem;
  }

  .phase-title {
    font-size: 0.95rem;
    margin-bottom: 0.65rem;
  }

  .phase-list {
    gap: 0.32rem;
  }

  /* How it works — compact vertical */
  .timeline {
    overflow: visible;
    padding: 0;
  }

  .timeline-track {
    display: none;
  }

  .timeline-steps {
    display: flex;
    flex-direction: column;
    min-width: 0;
    width: 100%;
    gap: 0.5rem;
  }

  .timeline-step {
    flex-direction: row;
    align-items: stretch;
    text-align: left;
    gap: 0.65rem;
  }

  .step-num {
    width: 38px;
    height: 38px;
    min-width: 38px;
    font-size: 0.66rem;
    align-self: center;
  }

  .step-card {
    flex: 1;
    padding: 0.8rem 0.85rem;
    text-align: left;
    border-radius: 14px;
  }

  .step-card h4 {
    font-size: 0.88rem;
    margin-bottom: 0.25rem;
  }

  .step-card p {
    font-size: 0.76rem;
    line-height: 1.45;
  }

  /* Marketplace */
  .terminal {
    border-radius: 16px;
  }

  .terminal-header {
    padding: 0.7rem 0.85rem;
    gap: 0.5rem;
    flex-wrap: nowrap;
  }

  .terminal-dots {
    display: none;
  }

  .terminal-title {
    font-size: 0.68rem;
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .terminal-live {
    margin-left: 0;
    padding: 0.28rem 0.55rem;
    font-size: 0.68rem;
    flex-shrink: 0;
  }

  .terminal-body {
    padding: 0.55rem;
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
  }

  .agent-row.header-row {
    display: none;
  }

  .agent-row {
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "info open"
      "stats stats";
    gap: 0.55rem;
    align-items: center;
    padding: 0.75rem 0.8rem;
    min-height: 0;
    border: 1px solid rgba(255, 253, 238, 0.08);
    border-radius: 12px;
    background: rgba(6, 35, 29, 0.42);
  }

  .agent-row:last-child {
    border-bottom: 1px solid rgba(255, 253, 238, 0.08);
  }

  .agent-row .agent-info {
    grid-area: info;
    flex-wrap: wrap;
    gap: 0.35rem 0.45rem;
  }

  .agent-row > .btn,
  .agent-row > a.btn {
    grid-area: open;
    justify-self: end;
    align-self: center;
    min-height: 32px;
    min-width: 56px;
    padding: 0.4rem 0.7rem;
    font-size: 0.72rem;
  }

  .agent-stats {
    grid-area: stats;
    grid-template-columns: 1fr 1fr;
    gap: 0.35rem;
  }

  .agent-stats .mono {
    display: flex;
    flex-direction: column;
    gap: 0.12rem;
    padding: 0.4rem 0.45rem;
    border-radius: 8px;
    background: rgba(6, 35, 29, 0.5);
    border: 1px solid rgba(255, 253, 238, 0.06);
    font-size: 0.76rem;
    line-height: 1.15;
  }

  .agent-stats .mono::before {
    content: attr(data-label);
    font-family: var(--font);
    font-size: 0.58rem;
    font-weight: 600;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: var(--text-dim);
  }

  .agent-ticker {
    font-size: 0.86rem;
  }

  .agent-change {
    font-size: 0.66rem;
    padding: 0.18rem 0.4rem;
  }

  /* Playground editor */
  .editor {
    border-radius: 16px;
  }

  .editor-tabs {
    padding: 0 0.25rem;
  }

  .tab {
    padding: 0.75rem 0.7rem;
    font-size: 0.76rem;
    min-height: 40px;
  }

  .editor-body {
    grid-template-columns: 1fr;
    min-height: 210px;
  }

  .editor-sidebar {
    display: flex;
    gap: 0.2rem;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 0.45rem 0.4rem;
    border-right: none;
    border-bottom: 1px solid rgba(255, 253, 238, 0.08);
  }

  .sidebar-item {
    flex: 0 0 auto;
    white-space: nowrap;
    padding: 0.45rem 0.6rem;
    font-size: 0.68rem;
  }

  .editor-code {
    padding: 0.85rem 0.8rem;
  }

  .editor-code pre {
    font-size: 0.7rem;
    line-height: 1.55;
  }

  .editor-footer {
    flex-direction: column;
    align-items: stretch;
    gap: 0.65rem;
    padding: 0.75rem 0.85rem;
  }

  .deploy-flow {
    justify-content: center;
    flex-wrap: wrap;
    font-size: 0.7rem;
    gap: 0.25rem;
  }

  .deploy-step {
    padding: 0.32rem 0.5rem;
  }

  .deploy-arrow {
    opacity: 0.55;
  }

  .editor-footer .btn {
    width: 100%;
    min-height: 42px;
  }

  /* Economy */
  .economy-flow {
    max-width: none;
    width: 100%;
    padding: 1.15rem 0.75rem;
  }

  .eco-circle {
    min-width: 0;
    width: min(100%, 210px);
    padding: 0.7rem 1rem;
    font-size: 0.84rem;
  }

  .eco-arrow {
    height: 26px;
  }

  .eco-label {
    width: 16px;
    height: 16px;
  }

  .eco-label svg {
    width: 10px;
    height: 10px;
  }

  /* CTA / launch */
  .whitepaper-cta {
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
  }

  .cta-block {
    padding: 1.85rem 1.1rem;
    border-radius: 18px;
  }

  .cta-block .section-title {
    margin-bottom: 0.5rem;
  }

  .cta-block .section-desc {
    margin-bottom: 1.1rem;
  }

  .cta-buttons .btn {
    width: 100%;
    max-width: 280px;
  }

  .launch-section {
    padding-top: 0.25rem;
    padding-bottom: 2.5rem;
  }

  .launch-card {
    padding: 1.65rem 1.1rem;
    border-radius: 18px;
  }

  .launch-card h2 {
    font-size: 1.35rem;
    margin-bottom: 0.45rem;
  }

  .launch-card p {
    font-size: 0.9rem;
    margin-bottom: 1.1rem;
  }

  .launch-card .btn {
    width: 100%;
    max-width: 280px;
    min-height: 44px;
  }

  /* Footer — compact single stack */
  .footer {
    padding-bottom: env(safe-area-inset-bottom, 0px);
  }

  .footer-bar {
    min-height: 0;
    padding: 0.85rem 0;
    gap: 0.65rem 0.85rem;
    justify-content: space-between;
  }

  .footer-nav {
    order: 3;
    width: 100%;
    margin-left: 0;
    gap: 0.15rem 0.1rem;
    padding-top: 0.35rem;
    border-top: 1px solid rgba(255, 253, 238, 0.05);
  }

  .footer-nav a {
    padding: 0.4rem 0.45rem;
    font-size: 0.74rem;
  }

  .footer-sep {
    display: none;
  }

  .footer-copy {
    font-size: 0.68rem;
    margin-left: auto;
  }

  /* Buttons */
  .btn {
    min-height: 42px;
    font-size: 0.9rem;
  }

  .btn-sm {
    min-height: 36px;
  }

  .btn-xs {
    min-height: 32px;
  }

  /* Whitepaper page */
  .wp-main {
    padding: calc(var(--nav-h) + 1.15rem) 0 2.25rem;
  }

  .wp-hero {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
  }

  .wp-title {
    font-size: clamp(1.75rem, 7.5vw, 2.2rem);
    margin-bottom: 0.7rem;
  }

  .wp-lead {
    font-size: 0.95rem;
    line-height: 1.55;
  }

  .wp-section {
    margin-bottom: 2rem;
    padding-bottom: 1.65rem;
  }

  .wp-section h2 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
  }

  .wp-block p,
  .wp-after,
  .wp-points li {
    font-size: 0.92rem;
    line-height: 1.6;
  }

  .wp-arch,
  .wp-token-grid {
    grid-template-columns: 1fr;
    gap: 0.55rem;
  }

  .wp-token-card,
  .wp-arch-item {
    padding: 0.85rem 0.9rem;
  }

  .wp-pill-grid {
    gap: 0.4rem;
  }

  .wp-pill {
    font-size: 0.78rem;
    padding: 0.4rem 0.7rem;
  }

  .wp-cta-row {
    flex-direction: column;
  }

  .wp-cta-row .btn {
    width: 100%;
  }

  .wp-toc {
    padding-bottom: 0.75rem;
  }

  .wp-toc a {
    font-size: 0.76rem;
    padding: 0.4rem 0.6rem;
  }

  .wp-quote {
    font-size: 1.05rem;
    padding-left: 1rem;
    margin-bottom: 1.5rem;
  }
}

/* Small phones */
@media (max-width: 480px) {
  .container {
    width: min(100% - 20px, var(--container));
  }

  .section {
    padding: 2.35rem 0;
  }

  .section-header {
    margin-bottom: 1.15rem;
  }

  .hero {
    padding: calc(var(--nav-h) + 0.95rem) 0 1rem;
  }

  .hero-grid {
    gap: 1rem;
  }

  .hero-title {
    font-size: clamp(1.7rem, 8.8vw, 2.05rem);
  }

  .hero-sub {
    font-size: 0.86rem;
    margin-bottom: 0.95rem;
  }

  .hero-cta {
    flex-direction: column;
  }

  .hero-cta .btn {
    flex: 1 1 auto;
    width: 100%;
  }

  .agent-card {
    padding: 0.85rem;
  }

  .agent-deploy {
    margin-left: auto;
  }

  .products-grid,
  .infra-grid {
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
  }

  .roadmap-grid {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }

  .product-card,
  .infra-card {
    padding: 0.85rem 0.75rem 0.9rem;
  }

  .product-list li {
    font-size: 0.74rem;
  }

  .infra-card p {
    font-size: 0.74rem;
    -webkit-line-clamp: 2;
  }

  .agent-stats {
    grid-template-columns: 1fr 1fr;
  }

  .deploy-arrow {
    display: none;
  }

  .editor-code pre {
    font-size: 0.66rem;
  }

  .eco-circle {
    width: 100%;
  }

  .cta-block {
    padding: 1.5rem 0.95rem;
  }

  .launch-card {
    padding: 1.4rem 0.95rem;
  }
}

/* Very small */
@media (max-width: 380px) {
  .logo-text {
    font-size: 0.82rem;
  }

  .hero-title {
    font-size: 1.6rem;
  }

  .products-grid,
  .infra-grid {
    grid-template-columns: 1fr;
  }

  .trust-item {
    font-size: 0.68rem;
  }

  .metric-value {
    font-size: 0.78rem;
  }
}

/* Reduce motion */
@media (prefers-reduced-motion: reduce) {
  .float-card,
  .orbit-1,
  .orbit-2,
  .bg-glow,
  .pulse-dot {
    animation: none !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* Touch devices: remove sticky hover lift quirks */
@media (hover: none) {
  .product-card:hover,
  .infra-card:hover,
  .roadmap-phase:hover,
  .step-card:hover,
  .btn:hover {
    transform: none;
  }

  .btn:active {
    transform: scale(0.98);
  }

  .float-card {
    animation: none;
  }

  .reveal {
    transform: translateY(16px);
  }
}

/* ============================================
   Bagworker Round (/bagwork)
   ============================================ */
.page-bagwork .bw-main {
  position: relative;
  z-index: 1;
  padding-top: var(--nav-h);
}
.bw-hero {
  padding: 3.5rem 0 2.5rem;
}
.bw-hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.95fr;
  gap: 2.5rem 3rem;
  align-items: start;
}
.bw-live-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.4rem 0.75rem 0.4rem 0.55rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--primary);
  background: rgba(227, 239, 38, 0.08);
  border: 1px solid rgba(227, 239, 38, 0.2);
  margin-bottom: 1.25rem;
  line-height: 1;
}
.bw-live-pill.sm {
  margin-bottom: 0;
  font-size: 0.68rem;
  padding: 0.35rem 0.65rem 0.35rem 0.5rem;
}
.bw-title {
  font-size: clamp(2.4rem, 5.5vw, 3.75rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.05;
  margin-bottom: 1.15rem;
}
.bw-lead {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 440px;
  line-height: 1.7;
  margin-bottom: 1.5rem;
}
.bw-reserve {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  padding: 1.1rem 1.2rem;
  margin-bottom: 1.5rem;
  max-width: 420px;
}
.bw-reserve-value {
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--primary);
  letter-spacing: -0.02em;
}
.bw-reserve-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}
.bw-reserve-pct {
  color: var(--soft);
  font-weight: 500;
}
.bw-hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* Round card */
.bw-round-card {
  padding: 1.35rem 1.35rem 1.4rem;
  position: sticky;
  top: calc(var(--nav-h) + 1rem);
}
.bw-round-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
  padding-bottom: 1.1rem;
  border-bottom: 1px solid rgba(255, 253, 238, 0.08);
}
.bw-round-label {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 0.35rem;
}
.bw-round-title {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.bw-round-rows {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.bw-round-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid rgba(255, 253, 238, 0.06);
}
.bw-round-row:last-child {
  border-bottom: none;
}
.bw-round-row.accent {
  background: linear-gradient(90deg, rgba(227, 239, 38, 0.06), transparent);
  margin: 0 -0.35rem;
  padding-left: 0.35rem;
  padding-right: 0.35rem;
  border-radius: 8px;
}
.bw-k {
  font-size: 0.82rem;
  color: var(--text-dim);
  font-weight: 500;
}
.bw-v {
  font-size: 0.9rem;
  font-weight: 600;
  text-align: right;
  color: var(--white);
}
.bw-v em {
  font-style: normal;
  font-weight: 500;
  color: var(--text-dim);
  font-size: 0.72rem;
  margin-left: 0.25rem;
}
.bw-mini-bar {
  height: 6px;
  border-radius: 999px;
  background: rgba(6, 35, 29, 0.7);
  border: 1px solid rgba(255, 253, 238, 0.06);
  overflow: hidden;
  margin: 0.5rem 0 1.15rem;
}
.bw-mini-fill {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #076653, var(--primary));
  box-shadow: 0 0 12px rgba(227, 239, 38, 0.35);
  transition: width 0.8s var(--ease);
}
.bw-round-cta {
  width: 100%;
}

/* Stats strip */
.bw-stats-section {
  padding: 0 0 1rem;
}
.bw-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.85rem;
}
.bw-stat {
  padding: 1.15rem 1.1rem;
  text-align: center;
}
.bw-stat-value {
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 0.35rem;
  opacity: 0.92;
  transition: opacity 0.4s, transform 0.4s;
  transform: translateY(4px);
}
.bw-stat-value.visible {
  opacity: 1;
  transform: none;
}
.bw-stat-label {
  font-size: 0.75rem;
  color: var(--text-dim);
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* Calculator */
.bw-calc-section {
  padding-top: 4rem;
}
.bw-calc-grid {
  display: grid;
  grid-template-columns: 1.35fr 0.85fr;
  gap: 1.25rem;
  align-items: start;
}
.bw-calc {
  padding: 1.5rem 1.4rem 1.5rem;
}
.bw-field {
  display: block;
  margin-bottom: 1.25rem;
}
.bw-field-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 0.55rem;
}
.bw-input-wrap {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  border-radius: var(--radius-sm);
  background: rgba(6, 35, 29, 0.55);
  border: 1px solid rgba(227, 239, 38, 0.16);
  box-shadow: inset 0 1px 0 rgba(255, 253, 238, 0.06);
}
.bw-input-wrap:focus-within {
  border-color: rgba(227, 239, 38, 0.4);
  box-shadow: 0 0 0 3px rgba(227, 239, 38, 0.08), inset 0 1px 0 rgba(255, 253, 238, 0.06);
}
.bw-input-wrap input {
  flex: 1;
  min-width: 0;
  background: transparent;
  border: none;
  outline: none;
  color: var(--white);
  font-family: var(--mono);
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.bw-input-wrap input::-webkit-outer-spin-button,
.bw-input-wrap input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.bw-input-wrap input[type=number] {
  -moz-appearance: textfield;
  appearance: textfield;
}
.bw-input-suffix {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.04em;
}
.bw-calc-flow {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-bottom: 1.35rem;
}
.bw-flow-step {
  padding: 0.9rem 1rem;
  border-radius: var(--radius-sm);
  background: rgba(6, 35, 29, 0.4);
  border: 1px solid rgba(255, 253, 238, 0.06);
}
.bw-flow-step.highlight {
  border-color: rgba(227, 239, 38, 0.22);
  background: linear-gradient(160deg, rgba(227, 239, 38, 0.08), rgba(6, 35, 29, 0.45));
}
.bw-flow-k {
  display: block;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 0.3rem;
}
.bw-flow-v {
  font-size: 1rem;
  font-weight: 600;
  color: var(--white);
}
.bw-flow-arrow {
  width: 18px;
  height: 18px;
  color: var(--primary);
  opacity: 0.55;
  margin: 0.1rem auto;
}
.bw-flow-arrow svg {
  width: 100%;
  height: 100%;
}
.bw-flow-metrics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.55rem;
  margin-top: 0.35rem;
}
.bw-metric-tile {
  padding: 0.85rem 0.9rem;
  border-radius: var(--radius-sm);
  background: rgba(6, 35, 29, 0.45);
  border: 1px solid rgba(255, 253, 238, 0.06);
}
.bw-calc-cta {
  width: 100%;
  min-height: 48px;
}
.bw-calc-cta.is-pulse {
  opacity: 0.85;
}
.bw-calc-note {
  margin-top: 0.85rem;
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-dim);
  line-height: 1.45;
}
.bw-calc-side {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}
.bw-side-card {
  padding: 1.2rem 1.15rem;
}
.bw-side-card h3 {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 0.9rem;
  letter-spacing: -0.015em;
}
.bw-side-list {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}
.bw-side-list li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.88rem;
  color: var(--text-muted);
  padding-bottom: 0.55rem;
  border-bottom: 1px solid rgba(255, 253, 238, 0.05);
}
.bw-side-list li:last-child {
  border-bottom: none;
  padding-bottom: 0;
}
.bw-side-list strong {
  color: var(--white);
  font-weight: 600;
}

/* Checks */
.bw-check-list {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}
.bw-check-list li {
  position: relative;
  padding-left: 1.6rem;
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.45;
}
.bw-check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.35em;
  width: 14px;
  height: 14px;
  border-radius: 4px;
  background: rgba(227, 239, 38, 0.12);
  border: 1px solid rgba(227, 239, 38, 0.35);
  box-shadow: inset 0 0 0 1px transparent;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23E3EF26' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3.5 8.5l3 3 6-6'/%3E%3C/svg%3E");
  background-size: 10px 10px;
  background-repeat: no-repeat;
  background-position: center;
}
.bw-check-list.compact li {
  font-size: 0.88rem;
  gap: 0.55rem;
}

/* Allocation */
.bw-alloc {
  padding: 1.75rem 1.6rem;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 2rem;
  align-items: center;
}
.bw-alloc .section-desc {
  margin-bottom: 0;
  max-width: none;
}
.bw-alloc .section-desc strong {
  color: var(--white);
  font-weight: 600;
}
.bw-progress-block {
  padding: 1.25rem 1.2rem;
  border-radius: var(--radius-sm);
  background: rgba(6, 35, 29, 0.45);
  border: 1px solid rgba(255, 253, 238, 0.07);
}
.bw-progress-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.85rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
}
.bw-progress-track {
  height: 12px;
  border-radius: 999px;
  background: rgba(4, 20, 17, 0.7);
  border: 1px solid rgba(255, 253, 238, 0.06);
  overflow: hidden;
  margin-bottom: 0.75rem;
}
.bw-progress-fill {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #076653 0%, var(--primary) 100%);
  box-shadow: 0 0 20px rgba(227, 239, 38, 0.35);
  transition: width 1s var(--ease);
}
.bw-progress-meta {
  font-size: 0.82rem;
  color: var(--text-muted);
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

/* Why */
.bw-why-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.95fr;
  gap: 2.5rem;
  align-items: center;
}
.bw-benefits {
  padding: 1.5rem 1.4rem;
}
.bw-benefits h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 1.1rem;
  letter-spacing: -0.015em;
}
.bw-final {
  padding-top: 2rem;
  padding-bottom: 4rem;
}

@media (max-width: 1024px) {
  .bw-hero-grid,
  .bw-calc-grid,
  .bw-alloc,
  .bw-why-grid {
    grid-template-columns: 1fr;
  }
  .bw-round-card {
    position: static;
    max-width: 480px;
  }
  .bw-stats {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .bw-hero {
    padding: 1.5rem 0 1.25rem;
  }
  .bw-title {
    font-size: clamp(1.85rem, 8vw, 2.4rem);
    margin-bottom: 0.75rem;
  }
  .bw-lead {
    font-size: 0.92rem;
    margin-bottom: 1.1rem;
  }
  .bw-reserve {
    padding: 0.9rem 1rem;
    margin-bottom: 1.1rem;
  }
  .bw-reserve-value {
    font-size: 1.1rem;
  }
  .bw-hero-cta {
    flex-direction: column;
  }
  .bw-hero-cta .btn {
    width: 100%;
  }
  .bw-round-card {
    max-width: none;
    padding: 1.1rem 1rem 1.15rem;
  }
  .bw-stats {
    gap: 0.5rem;
  }
  .bw-stat {
    padding: 0.9rem 0.75rem;
  }
  .bw-stat-value {
    font-size: 1.1rem;
  }
  .bw-calc {
    padding: 1.15rem 1rem;
  }
  .bw-input-wrap input {
    font-size: 1.15rem;
  }
  .bw-flow-metrics {
    grid-template-columns: 1fr;
  }
  .bw-alloc {
    padding: 1.2rem 1rem;
    gap: 1.25rem;
  }
  .bw-final {
    padding-bottom: 2.5rem;
  }
}

@media (max-width: 480px) {
  .bw-stats {
    grid-template-columns: 1fr 1fr;
  }
  .bw-round-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
    padding: 0.7rem 0;
  }
  .bw-v {
    text-align: left;
  }
}
