/* ─── Reset ─────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --orange: #FFA533;
  --orange-dark: #E8901A;
  --orange-light: #FFF7ED;
  --text: #0F172A;
  --text-2: #334155;
  --text-3: #64748B;
  --text-4: #94A3B8;
  --bg: #FFFFFF;
  --bg-alt: #F8FAFC;
  --border: #E2E8F0;
  --border-light: #F1F5F9;
  --radius: 12px;
  --radius-sm: 8px;
  --font: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --mono: 'SF Mono', 'Fira Code', 'Cascadia Code', 'Consolas', monospace;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ─── Nav ──────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: #fff;
  border-bottom: 1px solid var(--border);
  transition: background 0.3s, border-color 0.3s, box-shadow 0.3s;
}

.nav.scrolled {
  background: var(--orange);
  border-bottom-color: rgba(255,255,255,0.15);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
}

.nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text);
  transition: color 0.3s;
}

.nav.scrolled .nav-brand { color: #fff; }

.nav-logo {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  transition: border-radius 0.3s;
}

.nav-logo-scrolled {
  display: none;
}

.nav.scrolled .nav-logo-default {
  display: none;
}

.nav.scrolled .nav-logo-scrolled {
  display: block;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
  list-style: none;
}

.nav-links a {
  color: var(--text-3);
  font-size: 0.85rem;
  font-weight: 500;
  transition: color 0.3s;
}

.nav-links a:hover { color: var(--text); }
.nav.scrolled .nav-links a { color: #fff; }
.nav.scrolled .nav-links a:hover { color: #fff; }

.nav-cta {
  background: var(--text) !important;
  color: #fff !important;
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.85rem !important;
  font-weight: 600 !important;
  transition: background 0.3s, color 0.3s, opacity 0.15s;
}

.nav-cta:hover { opacity: 0.88; }
.nav.scrolled .nav-cta { background: #fff !important; color: var(--orange) !important; }
.nav.scrolled .nav-cta:hover { opacity: 0.92; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text);
  font-size: 1.3rem;
  cursor: pointer;
  padding: 4px;
  transition: color 0.3s;
}

.nav.scrolled .nav-toggle { color: #fff; }

/* ─── Hero ─────────────────────────────────────── */
.hero {
  padding: 116px 0 56px;
  position: relative;
  overflow: hidden;
  background: var(--orange);
  color: #fff;
}

.hero .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 20px;
  margin-bottom: 24px;
  border: 1px solid rgba(255, 255, 255, 0.5);
}

.hero-badge .pulse {
  width: 6px;
  height: 6px;
  background: #fff;
  border-radius: 50%;
  display: inline-block;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

.hero h1 {
  font-size: 3.4rem;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.035em;
  margin-bottom: 18px;
  text-shadow: 0 2px 12px rgba(0,0,0,0.12);
}

.hero-sub {
  font-size: 1.02rem;
  color: rgba(255,255,255,0.92);
  line-height: 1.7;
  margin-bottom: 28px;
  max-width: 460px;
}

.hero-buttons {
  display: flex;
  gap: 10px;
  margin-bottom: 32px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 11px 22px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.9rem;
  font-family: var(--font);
  transition: all 0.15s;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: var(--text);
  color: #fff;
}

.btn-primary:hover { background: #1E293B; color: #fff; }

.hero .btn-primary {
  background: #fff;
  color: var(--orange);
}

.hero .btn-primary:hover { background: rgba(255, 255, 255, 0.92); color: var(--orange-dark); }

.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1.5px solid var(--border);
}

.btn-outline:hover { border-color: var(--text-3); }

.hero .btn-outline {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.6);
}

.hero .btn-outline:hover { border-color: #fff; }

.hero-metrics {
  display: flex;
  gap: 32px;
  padding-top: 4px;
}

.metric .value {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.metric .label {
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.95);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 1px;
}

/* ─── Hero Avatars ─────────────────────────────── */
.hero-avatars {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 20px;
}

.avatar-stack {
  display: flex;
  flex-shrink: 0;
}

.avatar-stack img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid var(--orange);
  background: #fff;
  margin-left: -10px;
}

.avatar-stack img:first-child {
  margin-left: 0;
}

.avatar-label {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 500;
  line-height: 1.3;
}

/* ─── Chat Mockup ──────────────────────────────── */
.hero-visual {
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.chat-mockup {
  background: var(--bg);
  color: var(--text);
  border: none;
  border-radius: 16px;
  overflow: hidden;
  box-shadow:
    0 12px 48px rgba(0, 0, 0, 0.18),
    0 4px 16px rgba(0, 0, 0, 0.08);
  width: 100%;
  max-width: 400px;
}

.chat-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-alt);
}

.chat-header img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
}

.chat-header .name {
  font-weight: 700;
  font-size: 0.9rem;
}

.chat-header .status {
  font-size: 0.7rem;
  color: #16A34A;
  margin-left: auto;
  font-weight: 500;
}

.chat-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.msg {
  max-width: 82%;
  padding: 10px 14px;
  border-radius: 14px;
  font-size: 0.84rem;
  line-height: 1.5;
}

.msg-user {
  background: var(--text);
  color: #fff;
  align-self: flex-end;
  border-bottom-right-radius: 4px;
  font-weight: 500;
}

.msg-bot {
  background: var(--bg-alt);
  color: var(--text);
  align-self: flex-start;
  border: 1px solid var(--border);
  border-bottom-left-radius: 4px;
}

.msg-row { margin-bottom: 3px; }
.msg-row:last-child { margin-bottom: 0; }
.msg-bot strong { font-weight: 700; }
.msg-cost { font-weight: 600; color: var(--text-2); font-size: 0.82rem; }
.msg-confirm { color: var(--orange); font-weight: 600; margin-top: 6px; }
.msg-success { color: #16A34A; font-weight: 700; }
.msg-tx { font-family: var(--mono); font-size: 0.72rem; color: var(--text-4); }

/* Voice message bubble */
.msg-voice {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 160px;
}

.voice-bars {
  display: flex;
  align-items: center;
  gap: 2px;
  flex: 1;
}

.voice-bars span {
  width: 3px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.7);
  animation: voice-wave 1.2s ease-in-out infinite;
}

.voice-bars span:nth-child(1) { height: 8px; animation-delay: 0s; }
.voice-bars span:nth-child(2) { height: 14px; animation-delay: 0.1s; }
.voice-bars span:nth-child(3) { height: 10px; animation-delay: 0.2s; }
.voice-bars span:nth-child(4) { height: 18px; animation-delay: 0.3s; }
.voice-bars span:nth-child(5) { height: 12px; animation-delay: 0.4s; }
.voice-bars span:nth-child(6) { height: 16px; animation-delay: 0.5s; }
.voice-bars span:nth-child(7) { height: 9px; animation-delay: 0.6s; }
.voice-bars span:nth-child(8) { height: 13px; animation-delay: 0.7s; }

@keyframes voice-wave {
  0%, 100% { transform: scaleY(1); }
  50% { transform: scaleY(0.5); }
}

.voice-dur {
  font-size: 0.72rem;
  font-weight: 600;
  opacity: 0.8;
  flex-shrink: 0;
}

/* ─── Sections ─────────────────────────────────── */
section { padding: 80px 0; }

.section-header { text-align: center; margin-bottom: 48px; }

.section-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--orange);
  margin-bottom: 10px;
}

.section-title {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.025em;
  margin-bottom: 10px;
}

.section-desc {
  color: var(--text-2);
  font-size: 1rem;
  max-width: 480px;
  margin: 0 auto;
  line-height: 1.7;
}

.section-alt {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

/* ─── Features ─────────────────────────────────── */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.feature-card {
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
  background: var(--bg);
}

.feature-card:hover {
  border-color: var(--text-4);
  box-shadow: 0 4px 16px rgba(0,0,0,0.06);
  transform: translateY(-2px);
}

.feature-icon {
  width: 36px;
  height: 36px;
  background: var(--orange-light);
  color: var(--orange);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}

.feature-card h3 {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.feature-card p {
  color: var(--text-2);
  font-size: 0.88rem;
  line-height: 1.6;
}

/* ─── Brands Strip ─────────────────────────────── */
.brands-strip {
  padding: 40px 0;
  overflow: hidden;
  border-top: 1px solid var(--border);
  background: var(--bg);
}

.brands-label {
  text-align: center;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-4);
  margin-bottom: 20px;
}

.brands-marquee {
  overflow: hidden;
  margin-bottom: 10px;
  -webkit-mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
  mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
}

.brands-marquee:last-child { margin-bottom: 0; }

.brands-track {
  display: flex;
  gap: 10px;
  width: max-content;
  animation: marquee 40s linear infinite;
}

.brands-marquee-reverse .brands-track {
  animation: marquee-reverse 35s linear infinite;
}

@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

@keyframes marquee-reverse {
  0% { transform: translateX(-50%); }
  100% { transform: translateX(0); }
}

.brand-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 16px;
  border: 1px solid var(--border);
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-2);
  white-space: nowrap;
  background: var(--bg);
  transition: border-color 0.2s, color 0.2s;
  flex-shrink: 0;
}

.brand-pill img {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  object-fit: contain;
}

.brand-pill:hover {
  border-color: var(--orange);
  color: var(--orange-dark);
}

/* ─── Steps ────────────────────────────────────── */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  position: relative;
}

/* Connecting line between steps */
.steps::before {
  content: '';
  position: absolute;
  top: 46px;
  left: calc(16.67% + 40px);
  right: calc(16.67% + 40px);
  height: 2px;
  background: linear-gradient(to right, var(--orange), var(--orange-dark), var(--orange));
  opacity: 0.3;
  z-index: 0;
}

.step {
  text-align: center;
  padding: 32px 20px;
  position: relative;
  z-index: 1;
}

.step-num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--orange);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}

.step h3 {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.step p {
  color: var(--text-2);
  font-size: 0.88rem;
  line-height: 1.6;
}

/* ─── Agent ────────────────────────────────────── */
.agent-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.agent-text h2 {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.025em;
  margin-bottom: 12px;
}

.agent-text > p {
  color: var(--text-2);
  margin-bottom: 24px;
  line-height: 1.7;
}

.agent-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.agent-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.agent-list .check {
  width: 20px;
  height: 20px;
  background: var(--orange-light);
  color: var(--orange);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
  font-size: 0.65rem;
  font-weight: 700;
}

.agent-list strong {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 2px;
}

.agent-list span {
  color: var(--text-2);
  font-size: 0.85rem;
  line-height: 1.5;
}

/* ─── Terminal ─────────────────────────────────── */
.terminal {
  background: #0F172A;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.12);
}

.terminal-bar {
  display: flex;
  gap: 6px;
  padding: 12px 16px;
  background: #1E293B;
}

.terminal-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.terminal-dot:nth-child(1) { background: #EF4444; }
.terminal-dot:nth-child(2) { background: #F59E0B; }
.terminal-dot:nth-child(3) { background: #22C55E; }

.terminal-body {
  padding: 20px;
  font-family: var(--mono);
  font-size: 0.76rem;
  line-height: 1.9;
  color: #94A3B8;
}

.terminal-body .orange { color: var(--orange); }
.terminal-body .green { color: #4ADE80; }
.terminal-body .dim { color: #475569; }

/* ─── Group Wallets ───────────────────────────────── */
.group-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.group-text h2 {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.025em;
  margin-bottom: 12px;
}

.group-text > p {
  color: var(--text-2);
  margin-bottom: 24px;
  line-height: 1.7;
}

.chat-mockup-group {
  max-width: 420px;
}

.chat-header-group {
  gap: 10px;
}

.chat-group-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--orange-light);
  color: var(--orange);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.chat-members {
  display: block;
  font-size: 0.68rem;
  color: var(--text-4);
  font-weight: 400;
}

.msg-user-alt {
  background: #EFF6FF;
  color: var(--text);
  align-self: flex-end;
  border-bottom-right-radius: 4px;
}

.msg-sender {
  display: block;
  font-size: 0.7rem;
  font-weight: 700;
  color: #3B82F6;
  margin-bottom: 2px;
}

.msg-poll {
  background: #fff;
  border: 1.5px solid var(--orange);
}

.msg-poll-title {
  font-weight: 700;
  font-size: 0.84rem;
  margin-bottom: 8px;
}

.poll-bar {
  position: relative;
  background: var(--bg-alt);
  border-radius: 6px;
  height: 28px;
  margin-bottom: 6px;
  overflow: hidden;
}

.poll-fill {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  background: rgba(255, 165, 51, 0.15);
  border-radius: 6px;
  transition: width 0.6s ease;
}

.poll-fill-no {
  background: rgba(239, 68, 68, 0.1);
}

.poll-label {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  height: 100%;
  padding: 0 10px;
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--text-2);
}

.msg-poll-status {
  font-size: 0.72rem;
  color: #16A34A;
  font-weight: 600;
  margin-top: 4px;
}

/* ─── Use Cases / Examples ─────────────────────── */
.examples-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.example-card {
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg);
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}

.example-card:hover {
  border-color: var(--text-4);
  box-shadow: 0 4px 16px rgba(0,0,0,0.06);
  transform: translateY(-2px);
}

.example-msg {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.5;
  margin-bottom: 12px;
  padding: 12px 16px;
  background: var(--bg-alt);
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--orange);
}

.example-result {
  font-size: 0.82rem;
  color: var(--text-2);
  line-height: 1.6;
}

.example-tag {
  display: inline-block;
  background: var(--orange-light);
  color: var(--orange-dark);
  font-size: 0.68rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
  margin-right: 6px;
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-family: var(--mono);
  vertical-align: middle;
}

/* ─── Protocol Section ─────────────────────────── */
.protocol-hero {
  background: var(--text);
  border-radius: var(--radius);
  padding: 40px;
  margin-bottom: 20px;
  color: #fff;
}

.protocol-hero-top {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.protocol-tag {
  font-family: var(--mono);
  font-size: 1rem;
  font-weight: 800;
  color: var(--orange);
  background: rgba(255, 165, 51, 0.12);
  border: 1px solid rgba(255, 165, 51, 0.3);
  padding: 4px 14px;
  border-radius: 6px;
  letter-spacing: 0.02em;
}

.protocol-tag-sub {
  font-size: 0.82rem;
  color: var(--text-4);
  font-weight: 500;
}

.protocol-hero-desc {
  font-size: 0.95rem;
  color: #94A3B8;
  line-height: 1.7;
  max-width: 640px;
  margin-bottom: 32px;
}

.protocol-flow {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr;
  align-items: center;
  gap: 0;
}

.flow-step {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-sm);
}

.flow-num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--orange);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.flow-text strong {
  display: block;
  font-size: 0.82rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 1px;
}

.flow-text span {
  font-size: 0.72rem;
  color: var(--text-4);
  font-weight: 400;
}

.flow-line {
  width: 24px;
  height: 2px;
  background: linear-gradient(to right, var(--orange), rgba(255, 165, 51, 0.3));
  margin: 0 2px;
  flex-shrink: 0;
}

.protocol-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.protocol-card {
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg);
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}

.protocol-card:hover {
  border-color: var(--text-4);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
  transform: translateY(-2px);
}

.protocol-card h3 {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.protocol-card p {
  color: var(--text-2);
  font-size: 0.85rem;
  line-height: 1.6;
}

.protocol-icon {
  width: 36px;
  height: 36px;
  background: var(--orange-light);
  color: var(--orange);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}

/* ─── Developer Cards ──────────────────────────── */
.dev-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.dev-card {
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
  background: var(--bg);
}

.dev-card:hover {
  border-color: var(--text-4);
  box-shadow: 0 4px 16px rgba(0,0,0,0.06);
  transform: translateY(-2px);
}

.dev-card .badge {
  display: inline-block;
  background: var(--orange-light);
  color: var(--orange-dark);
  font-size: 0.68rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-family: var(--mono);
}

.dev-card h3 {
  font-size: 0.92rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.dev-card p {
  color: var(--text-2);
  font-size: 0.82rem;
  line-height: 1.6;
  margin-bottom: 12px;
}

.dev-card code {
  display: block;
  background: var(--bg-alt);
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 0.73rem;
  color: var(--text-3);
  font-family: var(--mono);
  border: 1px solid var(--border-light);
}

/* ─── Playground ───────────────────────────────── */
.pg {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg);
}

.pg-tabs {
  display: flex;
  gap: 0;
  border-bottom: 1px solid var(--border);
  background: var(--bg-alt);
  overflow-x: auto;
}

.pg-tab {
  padding: 12px 20px;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  font-family: var(--font);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-3);
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s;
}

.pg-tab:hover { color: var(--text); }
.pg-tab.active { color: var(--text); border-bottom-color: var(--orange); background: var(--bg); }

.pg-main { padding: 0; }

.pg-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border-bottom: 1px solid var(--border);
}

.pg-method-display {
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
  background: #DBEAFE;
  color: #1D4ED8;
  flex-shrink: 0;
}

.pg-url {
  font-family: var(--mono);
  font-size: 0.76rem;
  color: var(--text-2);
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pg-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  flex-shrink: 0;
}

.pg-select {
  font-family: var(--font);
  font-size: 0.8rem;
  font-weight: 500;
  padding: 5px 10px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--bg);
  color: var(--text);
  cursor: pointer;
  outline: none;
}

.pg-select:focus { border-color: var(--orange); }

.btn-sm {
  padding: 6px 14px;
  font-size: 0.78rem;
}

.pg-response-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border-light);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-3);
}

.pg-response-bar > span:first-child { margin-right: auto; }

.pg-status {
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
}

.pg-status.s200 { background: #D1FAE5; color: #047857; }
.pg-status.s500 { background: #FEE2E2; color: #991B1B; }

.pg-count {
  font-size: 0.72rem;
  color: var(--text-4);
  font-weight: 500;
}

.pg-response-body {
  padding: 0;
  max-height: 360px;
  overflow-y: auto;
}

.pg-placeholder {
  padding: 48px 16px;
  text-align: center;
  color: var(--text-4);
  font-size: 0.85rem;
}

.pg-loading {
  padding: 48px 16px;
  text-align: center;
  color: var(--text-4);
  font-size: 0.85rem;
}

.pg-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}

.pg-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-light);
  transition: background 0.1s;
}

.pg-card:last-child { border-bottom: none; }
.pg-card:hover { background: var(--bg-alt); }

.pg-card-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  object-fit: contain;
  background: var(--bg-alt);
  flex-shrink: 0;
}

.pg-card-info { flex: 1; min-width: 0; }

.pg-card-name {
  font-size: 0.85rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pg-card-detail {
  font-size: 0.75rem;
  color: var(--text-3);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pg-card-badge {
  font-size: 0.68rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 4px;
  background: var(--orange-light);
  color: var(--orange-dark);
  flex-shrink: 0;
  font-family: var(--mono);
}

.pg-raw-toggle {
  font-family: var(--font);
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--text-4);
  background: none;
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 2px 8px;
  cursor: pointer;
  transition: all 0.15s;
}

.pg-raw-toggle:hover { color: var(--text-2); border-color: var(--text-4); }
.pg-raw-toggle.active { background: var(--text); color: #fff; border-color: var(--text); }

.pg-raw {
  margin: 0;
  padding: 16px;
  font-family: var(--mono);
  font-size: 0.72rem;
  line-height: 1.6;
  color: var(--text-2);
  white-space: pre-wrap;
  word-break: break-word;
}

/* ─── Coverage / Flag Grid ─────────────────────── */
.coverage-section {
  position: relative;
  overflow: hidden;
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.flag-grid-bg {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  z-index: 1;
  opacity: 0.18;
  pointer-events: none;
  overflow: hidden;
  -webkit-mask-image:
    linear-gradient(to right, transparent, black 15%, black 85%, transparent),
    linear-gradient(to bottom, transparent, black 20%, black 80%, transparent);
  -webkit-mask-composite: destination-in;
  mask-image:
    linear-gradient(to right, transparent, black 15%, black 85%, transparent),
    linear-gradient(to bottom, transparent, black 20%, black 80%, transparent);
  mask-composite: intersect;
}

.flag-row {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
}

.flag-row:nth-child(even) {
  transform: translateX(-4%);
}

.flag-grid-bg img {
  width: calc(100% / 11);
  flex-shrink: 0;
  height: auto;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: 5px;
  display: block;
}

.stats-row {
  display: flex;
  justify-content: center;
  gap: 48px;
}

.stat { text-align: center; }

.stat .number {
  font-size: 2.5rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.stat .label {
  font-size: 0.8rem;
  color: var(--text-4);
  font-weight: 500;
}

/* ─── CTA ──────────────────────────────────────── */
.cta {
  text-align: center;
  padding: 72px 0;
  background: var(--text);
  color: #fff;
}

.cta h2 {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 12px;
  letter-spacing: -0.025em;
}

.cta p {
  color: #94A3B8;
  font-size: 1rem;
  margin-bottom: 28px;
}

.cta .btn-primary {
  background: var(--orange);
  color: #fff;
}

.cta .btn-primary:hover {
  background: var(--orange-dark);
  color: #fff;
}

/* ─── Footer ───────────────────────────────────── */
.footer {
  border-top: 1px solid var(--border);
  padding: 48px 0 0;
  overflow: hidden;
}

.footer .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
}

.footer-built {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
}

.sponsor-logo {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  opacity: 0.5;
  transition: opacity 0.2s;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-3);
  text-decoration: none;
  white-space: nowrap;
}

.sponsor-logo:hover { opacity: 1; text-decoration: none; }

.sponsor-sep {
  width: 1px;
  height: 20px;
  background: var(--border);
  margin: 0 4px;
  flex-shrink: 0;
}

.sponsor-logo img {
  width: 22px;
  height: 22px;
  object-fit: contain;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 16px 24px;
  list-style: none;
  flex-wrap: wrap;
  justify-content: center;
}

.footer-links a {
  color: var(--text-3);
  font-size: 0.82rem;
  font-weight: 500;
  transition: color 0.15s;
}

.footer-links a:hover { color: var(--text); }

/* Footer watermark logo */
.footer-watermark {
  display: flex;
  justify-content: center;
  margin-top: 32px;
  pointer-events: none;
  user-select: none;
  line-height: 0;
}

.footer-watermark svg {
  width: 100%;
  height: auto;
  opacity: 0.13;
  color: var(--orange);
  display: block;
  margin-bottom: -7%;
}

/* ─── Animations ───────────────────────────────── */
.fade-in {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ─── Mobile ───────────────────────────────────── */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 56px;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    padding: 16px 24px;
    gap: 12px;
  }
  .nav-links.open a { color: var(--text-3) !important; }
  .nav-links.open a:hover { color: var(--text) !important; }
  .nav-links.open .nav-cta { background: var(--text) !important; color: #fff !important; }
  .nav-toggle { display: block; }

  .hero { padding: 96px 0 40px; }
  .hero .container { grid-template-columns: 1fr; gap: 0; }
  .hero h1 { font-size: 2.5rem; text-align: center; }
  .hero-visual { display: none; }
  .hero-content { text-align: center; }
  .hero-sub { margin: 0 auto 28px; }
  .hero-buttons { justify-content: center; }
  .hero-metrics { justify-content: center; flex-wrap: wrap; gap: 20px; }
  .hero-avatars { justify-content: center; }
  .hero-badge { margin: 0 auto 24px; }

  .brands-strip { padding: 28px 0; }
  .brand-pill { padding: 5px 12px; font-size: 0.72rem; }

  .features-grid { grid-template-columns: 1fr; }
  .feature-card { text-align: center; }
  .feature-icon { margin: 0 auto 14px; }

  .group-grid { grid-template-columns: 1fr; }
  .group-text { text-align: center; order: -1; }
  .group-text .section-label { text-align: center; }
  .group-text .agent-list { align-items: center; }
  .group-text .agent-list li { text-align: left; }
  .chat-mockup-group { margin: 0 auto; }

  .examples-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; gap: 8px; }
  .steps::before { display: none; }
  .step { padding: 20px; }

  .agent-grid { grid-template-columns: 1fr; }
  .agent-text { text-align: center; }
  .agent-text .section-label { text-align: center; }
  .agent-list { align-items: center; }
  .agent-list li { text-align: left; }
  .terminal { display: none; }

  .protocol-hero { padding: 28px 20px; text-align: center; }
  .protocol-hero-top { justify-content: center; }
  .protocol-hero-desc { margin: 0 auto 28px; }
  .protocol-flow { grid-template-columns: 1fr 1fr; gap: 8px; }
  .flow-line { display: none; }
  .flow-step { justify-content: center; }
  .protocol-cards { grid-template-columns: 1fr; }
  .protocol-card { text-align: center; }
  .protocol-icon { margin: 0 auto 12px; }

  .dev-grid { grid-template-columns: 1fr; }
  .dev-card { text-align: center; }

  .pg-bar { flex-wrap: wrap; gap: 8px; }
  .pg-url { width: 100%; order: 3; }
  .pg-controls { width: 100%; order: 4; }
  .pg-method-display { order: 1; }

  .stats-row { gap: 20px; }
  .stat .number { font-size: 1.5rem; }
  .stat .label { font-size: 0.7rem; }

  .flag-grid-bg img { width: calc(100% / 6); border-radius: 3px; }
  .flag-grid-bg { gap: 4px; }
  .flag-row { gap: 4px; }

  .footer .container { flex-direction: column; gap: 24px; text-align: center; }
  .footer-links { flex-wrap: wrap; justify-content: center; gap: 14px 24px; }
  .footer-built { gap: 16px; justify-content: center; flex-wrap: wrap; }
  .footer-watermark { margin-top: 24px; }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 2rem; }
  .hero-metrics { gap: 16px; }
  .metric .value { font-size: 1.1rem; }
  .metric .label { font-size: 0.62rem; }
  .hero-avatars { flex-direction: column; align-items: center; gap: 8px; }
  .protocol-flow { grid-template-columns: 1fr; }
  .avatar-label { font-size: 0.72rem; }

  .stats-row { gap: 12px; }
  .stat .number { font-size: 1.2rem; }
  .stat .label { font-size: 0.65rem; }

  .flag-grid-bg img { width: calc(100% / 4); }

  .protocol-hero { padding: 24px 16px; }
  .protocol-hero-desc { font-size: 0.85rem; }
  .flow-step { padding: 12px; gap: 10px; }
  .flow-text strong { font-size: 0.78rem; }
  .flow-text span { font-size: 0.68rem; }
  .section-title { font-size: 1.6rem; }
}
