/* ═══════════════════════════════════════
   ClawTanTan — OpenClaw 驱动的智能社交
   ═══════════════════════════════════════ */

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

:root {
  --green:    #6CFF32;
  --green2:   #4DFFD2;
  --glow:     rgba(108,255,50,0.2);
  --bg:       #080B10;
  --bg-card:  #0D1117;
  --bg-2:     #111620;
  --bg-input: #080B10;
  --border:   rgba(255,255,255,0.07);
  --border2:  rgba(108,255,50,0.2);
  --text:     #FFFFFF;
  --text-2:   #8892A4;
  --text-3:   #454D5E;
  --red:      #FF4560;
  --yellow:   #FFD641;
  --radius:   16px;
  --pill:     9999px;
  --mono:     'JetBrains Mono', monospace;
  --sans:     'Inter', sans-serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
}

#particleCanvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.4;
}

/* ─── scrollbar ─── */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: rgba(108,255,50,0.2); border-radius: 3px; }

/* ─── util ─── */
.schema-badge {
  font-size: 10px; font-weight: 700;
  color: var(--green); background: rgba(108,255,50,0.1);
  border: 1px solid var(--border2);
  padding: 2px 7px; border-radius: var(--pill);
  font-family: var(--mono);
}
.schema-badge-sm {
  font-size: 10px; font-weight: 600;
  color: var(--green2); background: rgba(77,255,210,0.08);
  border: 1px solid rgba(77,255,210,0.2);
  padding: 1px 6px; border-radius: var(--pill);
  font-family: var(--mono);
}
.schema-mini {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text-2);
  padding: 12px;
  line-height: 1.7;
}
.schema-header-mini {
  display: flex; justify-content: space-between; align-items: center;
  padding: 6px 12px;
  border-bottom: 1px solid var(--border);
  font-size: 11px; color: var(--text-3);
}

/* ═══════════════ HEADER ═══════════════ */
.header {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(8,11,16,0.8);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  max-width: 1280px; margin: 0 auto;
  padding: 0 24px; height: 64px;
  display: flex; align-items: center; justify-content: space-between;
}
.logo {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none; color: var(--text);
}
.logo-icon-wrap {
  position: relative; width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
}
.logo-lobster { font-size: 24px; z-index: 1; position: relative; }
.logo-img { width: 36px; height: 36px; border-radius: 8px; object-fit: cover; z-index: 1; position: relative; }
.logo-pulse {
  position: absolute; inset: -4px;
  border-radius: 10px;
  border: 1.5px solid var(--green);
  animation: logoPulse 2.5s ease-in-out infinite;
}
@keyframes logoPulse {
  0%,100% { transform: scale(1); opacity: 0.6; }
  50%      { transform: scale(1.15); opacity: 0.2; }
}
.logo-text-wrap { display: flex; flex-direction: column; line-height: 1.1; }
.logo-main { font-size: 16px; font-weight: 800; letter-spacing: -0.3px; }
.logo-sub  { font-size: 10px; color: var(--green); font-weight: 500; letter-spacing: 0.3px; font-family: var(--mono); }

.nav { display: flex; gap: 4px; }
.nav-link {
  padding: 7px 14px;
  color: var(--text-2); font-size: 14px; font-weight: 500;
  text-decoration: none; border-radius: 10px;
  transition: all 0.15s;
}
.nav-link:hover, .nav-link.active { color: var(--text); background: rgba(255,255,255,0.06); }
.nav-link.active { color: var(--green); }

.header-right { display: flex; align-items: center; gap: 12px; }
.agent-status { display: flex; align-items: center; gap: 6px; }
.agent-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--green); box-shadow: 0 0 8px var(--green);
  animation: pulse 2s infinite;
}
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:0.4} }
.agent-text { font-size: 12px; color: var(--text-2); font-family: var(--mono); }

.btn-login {
  padding: 8px 16px;
  background: rgba(108,255,50,0.1);
  border: 1px solid var(--border2);
  color: var(--green);
  border-radius: 10px;
  font-size: 13px; font-weight: 600;
  cursor: pointer; transition: all 0.15s;
}
.btn-login:hover { background: rgba(108,255,50,0.18); transform: translateY(-1px); }

.avatar-btn {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, #1a2a1a, #0d3a1a);
  border: 2px solid var(--border2);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; font-size: 18px;
  transition: all 0.15s;
}
.avatar-btn:hover { border-color: var(--green); transform: scale(1.05); }

/* ═══════════════ HERO ═══════════════ */
.hero {
  position: relative; z-index: 1;
  padding: 120px 24px 80px;
  max-width: 1280px; margin: 0 auto;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px; align-items: center;
}

.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px;
  background: rgba(108,255,50,0.08);
  border: 1px solid var(--border2);
  border-radius: var(--pill);
  font-size: 12px; font-weight: 600; color: var(--green);
  margin-bottom: 20px;
}
.badge-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--green); box-shadow: 0 0 6px var(--green);
  animation: pulse 2s infinite;
}

.hero-title {
  font-size: 52px; font-weight: 800;
  letter-spacing: -1.5px; line-height: 1.1;
  margin-bottom: 16px;
}
.hero-accent {
  background: linear-gradient(135deg, var(--green), var(--green2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-desc {
  font-size: 16px; color: var(--text-2); line-height: 1.7;
  margin-bottom: 28px; max-width: 480px;
}

.hero-stats {
  display: flex; align-items: center; gap: 0;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 28px;
  width: fit-content;
}
.h-stat { padding: 14px 24px; }
.h-stat-val { display: block; font-size: 20px; font-weight: 700; color: var(--green); font-family: var(--mono); }
.h-stat-label { font-size: 11px; color: var(--text-3); text-transform: uppercase; letter-spacing: 0.5px; }
.h-stat-divider { width: 1px; height: 36px; background: var(--border); }

.hero-actions { display: flex; gap: 12px; }

.btn-primary {
  background: var(--green);
  color: #000; border: none;
  padding: 10px 20px;
  border-radius: var(--pill);
  font-weight: 700; font-size: 14px;
  cursor: pointer; transition: all 0.15s;
}
.btn-primary.large { padding: 14px 28px; font-size: 15px; }
.btn-primary:hover { background: #80FF4A; transform: translateY(-2px); box-shadow: 0 6px 24px var(--glow); }
.btn-primary.full-w { width: 100%; padding: 14px; font-size: 15px; border-radius: 12px; margin-top: 4px; }

.btn-ghost {
  background: transparent;
  color: var(--text-2); border: 1px solid var(--border);
  padding: 10px 20px; border-radius: var(--pill);
  font-weight: 600; font-size: 14px;
  cursor: pointer; transition: all 0.15s;
}
.btn-ghost.large { padding: 14px 28px; font-size: 15px; }
.btn-ghost:hover { color: var(--text); border-color: rgba(255,255,255,0.2); background: rgba(255,255,255,0.04); }

/* ─── Match Card Stack ─── */
.hero-visual { position: relative; display: flex; gap: 20px; align-items: flex-start; justify-content: center; }

.match-card-stack { position: relative; width: 280px; height: 420px; flex-shrink: 0; }

.match-card {
  position: absolute; inset: 0;
  border-radius: 24px;
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--border);
  display: flex; flex-direction: column;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}
.mc-3 { transform: rotate(-6deg) translateY(12px) scale(0.92); z-index: 1; }
.mc-2 { transform: rotate(-2deg) translateY(6px) scale(0.96); z-index: 2; }
.mc-1 { transform: rotate(0); z-index: 3; border-color: var(--border2); }
.mc-1:hover { transform: translateY(-4px); box-shadow: 0 24px 80px rgba(108,255,50,0.15); }

.mc-img {
  height: 160px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 64px; position: relative;
}
.mc-agent-badge {
  position: absolute; bottom: 12px; left: 12px;
  display: flex; align-items: center; gap: 5px;
  background: rgba(8,11,16,0.8); backdrop-filter: blur(8px);
  border: 1px solid var(--border2);
  padding: 5px 10px; border-radius: var(--pill);
  font-size: 11px; font-weight: 600; color: var(--green);
}
.mc-agent-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--green); box-shadow: 0 0 6px var(--green);
  animation: pulse 2s infinite;
}
.mc-info { padding: 14px; }
.mc-name { font-size: 17px; font-weight: 700; margin-bottom: 4px; }
.mc-age  { font-size: 14px; font-weight: 400; color: var(--text-2); }
.mc-sub  { font-size: 12px; color: var(--text-2); margin-bottom: 8px; }
.mc-caps { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 10px; }
.mc-cap  {
  font-size: 11px; padding: 3px 9px;
  background: rgba(108,255,50,0.08);
  border: 1px solid var(--border2);
  color: var(--green); border-radius: var(--pill);
}
.mc-match-score {
  display: flex; justify-content: space-between; align-items: center; margin-bottom: 5px;
}
.score-label { font-size: 11px; color: var(--text-3); }
.score-val   { font-size: 13px; font-weight: 700; color: var(--green); font-family: var(--mono); }
.mc-progress { height: 4px; background: rgba(255,255,255,0.06); border-radius: 2px; overflow: hidden; }
.mc-progress-fill { height: 100%; background: linear-gradient(90deg, var(--green), var(--green2)); border-radius: 2px; box-shadow: 0 0 6px var(--glow); }

.mc-actions {
  display: flex; justify-content: center; gap: 16px;
  padding: 12px 14px 16px;
  border-top: 1px solid var(--border);
  margin-top: auto;
}
.mc-btn-wrap {
  display: flex; flex-direction: column; align-items: center; gap: 5px;
}
.mc-btn-label {
  font-size: 10px; color: var(--text-3); font-weight: 500; letter-spacing: 0.3px;
}
.mc-btn {
  width: 48px; height: 48px; border-radius: 50%;
  border: none; font-size: 20px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.2s; box-shadow: 0 4px 16px rgba(0,0,0,0.4);
}
.mc-skip  { background: var(--bg); color: var(--red); border: 2px solid rgba(255,69,96,0.3); }
.mc-super { background: var(--bg); color: var(--yellow); border: 2px solid rgba(255,214,65,0.3); width: 42px; height: 42px; font-size: 16px; }
.mc-like  { background: var(--green); color: #000; border: none; }
.mc-btn:hover { transform: scale(1.15); }

/* Agent Panel */
.agent-panel {
  background: var(--bg-card);
  border: 1px solid var(--border2);
  border-radius: var(--radius);
  overflow: hidden;
  width: 220px;
  box-shadow: 0 0 40px rgba(108,255,50,0.05);
  flex-shrink: 0;
}
.ap-header {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  background: rgba(108,255,50,0.04);
}
.ap-icon { font-size: 16px; }
.ap-title { font-size: 12px; font-weight: 600; flex: 1; }
.ap-live {
  font-size: 9px; font-weight: 700; letter-spacing: 0.5px;
  color: var(--green); background: rgba(108,255,50,0.1);
  border: 1px solid var(--border2);
  padding: 2px 6px; border-radius: var(--pill);
  animation: pulse 1.5s infinite;
}
.ap-log { padding: 10px; display: flex; flex-direction: column; gap: 6px; }
.ap-line { display: flex; justify-content: space-between; align-items: center; gap: 6px; }
.ap-key  { font-size: 10px; color: var(--text-3); font-family: var(--mono); white-space: nowrap; }
.ap-val  { font-size: 10px; color: var(--text-2); font-family: var(--mono); text-align: right; }
.ap-val.green { color: var(--green); }
.ap-val.typing::after { content: '|'; animation: blink 1s infinite; }
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:0} }
.ap-footer {
  padding: 8px 12px;
  border-top: 1px solid var(--border);
  background: var(--bg-input);
}
.ap-endpoint { font-size: 10px; color: var(--green); font-family: var(--mono); }

/* ═══════════════ SECTIONS ═══════════════ */
section { position: relative; z-index: 1; }

.section-inner {
  max-width: 1280px; margin: 0 auto;
  padding: 80px 24px;
}
.section-header { text-align: center; margin-bottom: 48px; }
.section-tag {
  display: inline-block;
  font-size: 11px; font-weight: 700; letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--green); background: rgba(108,255,50,0.08);
  border: 1px solid var(--border2);
  padding: 5px 14px; border-radius: var(--pill);
  margin-bottom: 14px;
}
.section-title { font-size: 36px; font-weight: 800; letter-spacing: -0.8px; margin-bottom: 12px; }
.section-sub { font-size: 16px; color: var(--text-2); }

/* ═══════════════ HOW IT WORKS ═══════════════ */
.how-section { background: linear-gradient(180deg, transparent, rgba(108,255,50,0.02), transparent); }

.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.step-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  transition: all 0.2s;
  position: relative;
  overflow: hidden;
}
.step-card::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(108,255,50,0.03) 0%, transparent 60%);
  pointer-events: none;
}
.step-card:hover { border-color: var(--border2); transform: translateY(-4px); box-shadow: 0 12px 40px rgba(0,0,0,0.3); }
.step-num { font-size: 11px; font-weight: 700; color: var(--green); font-family: var(--mono); margin-bottom: 12px; }
.step-icon { font-size: 32px; margin-bottom: 12px; }
.step-title { font-size: 15px; font-weight: 700; margin-bottom: 8px; }
.step-desc { font-size: 13px; color: var(--text-2); line-height: 1.6; margin-bottom: 14px; }
.step-code {
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 12px;
}
.step-code code { font-size: 11px; color: var(--green); font-family: var(--mono); line-height: 1.6; }

/* ═══════════════ RADAR / NEARBY ═══════════════ */
.discover-section { background: var(--bg-2); }

.radar-wrap {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 40px; align-items: center;
}

.radar {
  width: 320px; height: 320px;
  position: relative;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(108,255,50,0.05) 0%, rgba(108,255,50,0.02) 50%, transparent 70%);
  border: 1px solid rgba(108,255,50,0.15);
}
.radar-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(108,255,50,0.1);
  top: 50%; left: 50%;
  transform: translate(-50%,-50%);
}
.r1 { width: 33%; height: 33%; }
.r2 { width: 66%; height: 66%; }
.r3 { width: 100%; height: 100%; border-color: rgba(108,255,50,0.2); }

.radar-sweep {
  position: absolute;
  width: 50%; height: 50%;
  top: 50%; left: 50%;
  transform-origin: 0 0;
  background: conic-gradient(from 0deg, transparent 70%, rgba(108,255,50,0.3) 100%);
  border-radius: 0 100% 0 0;
  animation: radarSpin 3s linear infinite;
}
@keyframes radarSpin { to { transform: rotate(360deg); } }

.radar-center {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%,-50%);
  font-size: 24px; z-index: 2;
}

.radar-blip {
  position: absolute;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 10px var(--green);
  transform: translate(-50%,-50%);
  animation: blipPulse 2s ease-in-out infinite;
}
.b1 { animation-delay: 0s; }
.b2 { animation-delay: 0.4s; }
.b3 { animation-delay: 0.8s; }
.b4 { animation-delay: 1.2s; }
.b5 { animation-delay: 1.6s; background: var(--green2); box-shadow: 0 0 10px var(--green2); }
@keyframes blipPulse {
  0%,100% { opacity: 1; transform: translate(-50%,-50%) scale(1); }
  50%      { opacity: 0.4; transform: translate(-50%,-50%) scale(0.6); }
}

.nearby-list { display: flex; flex-direction: column; gap: 10px; }
.nearby-item {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer; transition: all 0.15s;
}
.nearby-item:hover { border-color: var(--border2); background: rgba(108,255,50,0.03); transform: translateX(4px); }
.ni-avatar {
  width: 44px; height: 44px; border-radius: 50%;
  background: linear-gradient(135deg,#0d2a1a,#0f3d26);
  border: 2px solid var(--border2);
  display: flex; align-items: center; justify-content: center; font-size: 22px;
  flex-shrink: 0;
}
.ni-info { flex: 1; }
.ni-name { font-size: 14px; font-weight: 600; display: flex; align-items: center; gap: 6px; }
.ni-online { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 6px var(--green); animation: pulse 2s infinite; }
.ni-meta { font-size: 11px; color: var(--text-3); margin: 2px 0 6px; font-family: var(--mono); }
.ni-caps { display: flex; gap: 4px; }
.ni-caps span { font-size: 10px; padding: 2px 8px; background: rgba(255,255,255,0.04); border: 1px solid var(--border); border-radius: var(--pill); color: var(--text-2); }
.ni-score { text-align: right; }
.ni-pct { font-size: 15px; font-weight: 700; color: var(--green); font-family: var(--mono); margin-bottom: 4px; }
.ni-bar { width: 60px; height: 3px; background: rgba(255,255,255,0.06); border-radius: 2px; overflow: hidden; }
.ni-bar div { height: 100%; background: linear-gradient(90deg,var(--green),var(--green2)); border-radius: 2px; }

/* ═══════════════ CHAT ═══════════════ */
.chat-demo {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 24px;
  overflow: hidden;
}
.chat-window { display: flex; flex-direction: column; }
.chat-header-bar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  background: rgba(108,255,50,0.02);
}
.chat-user { display: flex; align-items: center; gap: 12px; }
.chat-avatar {
  width: 38px; height: 38px; border-radius: 50%;
  background: linear-gradient(135deg,#0d2a1a,#0f3d26);
  border: 2px solid var(--border2);
  display: flex; align-items: center; justify-content: center; font-size: 20px;
}
.chat-name { font-size: 15px; font-weight: 600; }
.chat-status { font-size: 11px; color: var(--green); font-family: var(--mono); }
.chat-actions { display: flex; gap: 6px; }
.chat-icon-btn {
  width: 34px; height: 34px; border-radius: 50%;
  background: rgba(255,255,255,0.05); border: 1px solid var(--border);
  font-size: 14px; cursor: pointer; transition: all 0.15s;
}
.chat-icon-btn:hover { background: rgba(255,255,255,0.1); border-color: var(--border2); }
.chat-messages { flex: 1; padding: 20px; display: flex; flex-direction: column; gap: 12px; min-height: 240px; overflow-y: auto; }
.chat-msg { display: flex; flex-direction: column; max-width: 70%; }
.chat-msg.received { align-self: flex-start; }
.chat-msg.sent     { align-self: flex-end; align-items: flex-end; }
.msg-bubble {
  padding: 10px 14px;
  border-radius: 16px;
  font-size: 14px; line-height: 1.5;
}
.received .msg-bubble { background: var(--bg-2); border: 1px solid var(--border); border-bottom-left-radius: 4px; }
.sent     .msg-bubble { background: var(--green); color: #000; font-weight: 500; border-bottom-right-radius: 4px; }
.msg-time { font-size: 10px; color: var(--text-3); margin-top: 3px; font-family: var(--mono); }
.chat-input-wrap {
  display: flex; gap: 8px;
  padding: 14px 16px;
  border-top: 1px solid var(--border);
}
.chat-input {
  flex: 1; background: var(--bg-2); border: 1px solid var(--border);
  color: var(--text); padding: 10px 14px;
  border-radius: var(--pill); font-size: 14px; font-family: var(--sans);
}
.chat-input:focus { outline: none; border-color: var(--border2); }
.chat-send {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--green); border: none; font-size: 18px;
  cursor: pointer; transition: all 0.15s; flex-shrink: 0;
}
.chat-send:hover { background: #80FF4A; transform: scale(1.1); }

.agent-assist {
  border-left: 1px solid var(--border);
  display: flex; flex-direction: column;
}
.aa-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  font-size: 13px; font-weight: 600;
  background: rgba(108,255,50,0.03);
}
.aa-live {
  font-size: 9px; font-weight: 700; letter-spacing: 0.5px;
  color: var(--green); background: rgba(108,255,50,0.1);
  border: 1px solid var(--border2);
  padding: 2px 6px; border-radius: var(--pill);
  animation: pulse 1.5s infinite;
}
.aa-tips { padding: 12px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.aa-tip {
  display: flex; gap: 10px; align-items: flex-start;
  padding: 10px;
  background: var(--bg-2); border: 1px solid var(--border);
  border-radius: 10px; cursor: pointer; transition: all 0.15s;
  opacity: 0.5;
}
.aa-tip.active { opacity: 1; border-color: var(--border2); background: rgba(108,255,50,0.04); }
.aa-tip:hover { opacity: 0.8; border-color: var(--border2); }
.tip-score {
  font-size: 12px; font-weight: 700; color: var(--green);
  font-family: var(--mono); flex-shrink: 0;
}
.tip-text { font-size: 12px; color: var(--text-2); line-height: 1.5; }
.aa-schema {
  border-top: 1px solid var(--border);
  background: var(--bg-input);
  overflow: hidden;
}

/* ═══════════════ INTEGRATION ═══════════════ */
.integration-section { background: linear-gradient(180deg, transparent, rgba(108,255,50,0.02), transparent); }

.integration-grid {
  display: grid;
  grid-template-columns: repeat(4,1fr);
  gap: 16px;
}
.int-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  transition: all 0.2s;
}
.int-card:hover { border-color: var(--border2); transform: translateY(-4px); }
.int-icon { font-size: 28px; margin-bottom: 12px; }
.int-card h3 { font-size: 15px; font-weight: 700; margin-bottom: 8px; }
.int-card p  { font-size: 13px; color: var(--text-2); line-height: 1.6; margin-bottom: 14px; }
.int-code {
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: 8px; overflow: hidden;
}
.int-code pre { padding: 12px; font-family: var(--mono); font-size: 11px; color: var(--green2); line-height: 1.6; }

/* ═══════════════ FOOTER ═══════════════ */
.footer {
  position: relative; z-index: 1;
  border-top: 1px solid var(--border);
  background: var(--bg-card);
}
.footer-inner {
  max-width: 1280px; margin: 0 auto;
  padding: 48px 24px;
  display: flex; justify-content: space-between; gap: 40px;
}
.footer-brand p { font-size: 13px; color: var(--text-2); margin-top: 10px; max-width: 240px; line-height: 1.6; }
.footer-links { display: flex; gap: 48px; }
.fl-col { display: flex; flex-direction: column; gap: 10px; }
.fl-title { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; color: var(--text-2); margin-bottom: 4px; }
.fl-col a { font-size: 14px; color: var(--text-3); text-decoration: none; transition: color 0.15s; }
.fl-col a:hover { color: var(--green); }
.footer-bottom {
  max-width: 1280px; margin: 0 auto;
  padding: 16px 24px;
  border-top: 1px solid var(--border);
  display: flex; justify-content: space-between; align-items: center;
  font-size: 12px; color: var(--text-3);
}
.footer-version { font-family: var(--mono); font-size: 11px; color: var(--green); }

/* ═══════════════ MODAL ═══════════════ */
.modal-overlay {
  display: none; position: fixed; inset: 0;
  background: rgba(0,0,0,0.75); backdrop-filter: blur(6px);
  z-index: 500;
  align-items: center; justify-content: center; padding: 24px;
}
.modal-overlay.open { display: flex; }
.modal {
  background: var(--bg-card);
  border: 1px solid var(--border2);
  border-radius: 24px;
  width: 100%; max-width: 440px;
  box-shadow: 0 24px 80px rgba(0,0,0,0.6), 0 0 60px var(--glow);
  overflow: hidden;
}
.modal-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 24px 16px;
  border-bottom: 1px solid var(--border);
}
.modal-title { font-size: 17px; font-weight: 700; }
.modal-close {
  width: 28px; height: 28px;
  background: rgba(255,255,255,0.05); border: 1px solid var(--border);
  border-radius: 8px; color: var(--text-2);
  font-size: 12px; cursor: pointer; transition: all 0.15s;
  display: flex; align-items: center; justify-content: center;
}
.modal-close:hover { color: var(--text); border-color: rgba(255,255,255,0.2); }
.modal-body { padding: 20px 24px 24px; }
.modal-desc { font-size: 13px; color: var(--text-2); line-height: 1.6; margin-bottom: 20px; }

.input-group { margin-bottom: 16px; }
.input-label { display: block; font-size: 12px; color: var(--text-2); margin-bottom: 6px; font-weight: 500; }
.modal-input {
  width: 100%; background: var(--bg-input); border: 1px solid var(--border);
  color: var(--text); padding: 11px 14px;
  border-radius: 12px; font-size: 13px; font-family: var(--mono);
  transition: all 0.15s;
}
.modal-input:focus { outline: none; border-color: var(--border2); background: rgba(108,255,50,0.03); }

.divider-or {
  display: flex; align-items: center; gap: 12px;
  color: var(--text-3); font-size: 12px; margin: 16px 0;
}
.divider-or::before,.divider-or::after { content:''; flex:1; height:1px; background:var(--border); }

.btn-openclaw-connect {
  width: 100%; padding: 12px;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  background: rgba(108,255,50,0.08);
  border: 1px solid var(--border2);
  color: var(--green); font-size: 14px; font-weight: 600;
  border-radius: 12px; cursor: pointer; transition: all 0.15s;
  margin-bottom: 16px;
}
.btn-openclaw-connect:hover { background: rgba(108,255,50,0.15); }

.schema-box {
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: 10px; overflow: hidden;
  margin-bottom: 16px;
}

/* ═══════════════ RESPONSIVE ═══════════════ */
@media (max-width:1024px) {
  .hero-inner      { grid-template-columns:1fr; }
  .hero-visual     { justify-content:flex-start; flex-wrap:wrap; }
  .steps-grid      { grid-template-columns:repeat(2,1fr); }
  .integration-grid{ grid-template-columns:repeat(2,1fr); }
  .radar-wrap      { grid-template-columns:1fr; }
  .radar           { margin:0 auto; }
  .chat-demo       { grid-template-columns:1fr; }
  .agent-assist    { border-left:none; border-top:1px solid var(--border); }
}
@media (max-width:640px) {
  .hero-title      { font-size:36px; }
  .steps-grid      { grid-template-columns:1fr; }
  .integration-grid{ grid-template-columns:1fr; }
  .nav             { display:none; }
  .footer-inner    { flex-direction:column; }
  .footer-links    { flex-wrap:wrap; gap:28px; }
}
