:root {
  --bg: #0b1020;
  --panel: #111827;
  --panel-2: #0f172a;
  --text: #e5e7eb;
  --muted: #94a3b8;
  --line: #263244;
  --blue: #3b82f6;
  --orange: #f59e0b;
  --purple: #8b5cf6;
  --green: #10b981;
  --red: #ef4444;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  background: radial-gradient(circle at top left, rgba(59,130,246,.20), transparent 32rem), var(--bg);
  color: var(--text);
  line-height: 1.65;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; }

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 32px;
  background: rgba(11,16,32,.82);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.brand { font-weight: 800; letter-spacing: .02em; }
.nav { display: flex; gap: 18px; color: var(--muted); font-size: 14px; }
.nav a:hover { color: var(--text); }

main { max-width: 1220px; margin: 0 auto; padding: 0 28px 64px; }
.hero {
  min-height: 78vh;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, .95fr);
  gap: 36px;
  align-items: center;
  padding: 64px 0 40px;
}
.eyebrow {
  margin: 0 0 10px;
  color: #93c5fd;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
}
h1, h2, h3 { line-height: 1.2; margin: 0; }
h1 { font-size: clamp(38px, 6vw, 68px); letter-spacing: -.05em; }
h2 { font-size: clamp(28px, 4vw, 42px); letter-spacing: -.04em; margin-bottom: 22px; }
h3 { font-size: 18px; margin-bottom: 10px; }
.lead { color: #cbd5e1; font-size: 18px; max-width: 720px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 20px; }
.primary, .secondary {
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 12px 18px;
  cursor: pointer;
  transition: transform .18s ease, border-color .18s ease, background .18s ease;
}
.primary { background: var(--blue); color: white; font-weight: 800; }
.secondary { background: rgba(255,255,255,.06); color: var(--text); border-color: var(--line); }
.primary:hover, .secondary:hover { transform: translateY(-1px); }
.primary:disabled { opacity: .6; cursor: wait; transform: none; }
.trust-list { list-style: none; padding: 0; margin: 0; color: var(--muted); display: grid; gap: 8px; }
.trust-list li::before { content: "✓"; color: var(--green); margin-right: 8px; }

.hero-panel {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.mini-tile {
  min-height: 210px;
  text-align: left;
  color: var(--text);
  border: 1px solid var(--line);
  border-left-width: 8px;
  border-radius: 24px;
  padding: 20px;
  background: linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.02));
  cursor: pointer;
}
.mini-tile span { display: block; color: var(--muted); font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.mini-tile strong { display: block; margin: 14px 0 10px; font-size: 24px; line-height: 1.15; }
.mini-tile small { color: var(--muted); }
.mini-tile.blue { border-left-color: var(--blue); box-shadow: inset 0 0 60px rgba(59,130,246,.10); }
.mini-tile.orange { border-left-color: var(--orange); box-shadow: inset 0 0 60px rgba(245,158,11,.10); }
.mini-tile.purple { border-left-color: var(--purple); box-shadow: inset 0 0 60px rgba(139,92,246,.10); }
.mini-tile.green { border-left-color: var(--green); box-shadow: inset 0 0 60px rgba(16,185,129,.10); }
.mini-tile:hover { transform: translateY(-2px); border-color: currentColor; }

.section { padding: 72px 0; border-top: 1px solid rgba(148,163,184,.16); }
.feature-grid, .boundary-grid, .security-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.feature-card, .boundary-card, .security-grid > div {
  background: rgba(255,255,255,.045);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 20px;
}
.feature-card p, .boundary-card li, .security-grid span { color: var(--muted); }

.timeline { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; counter-reset: step; }
.timeline li { position: relative; padding: 18px 14px 14px; border: 1px solid var(--line); border-radius: 16px; background: var(--panel-2); }
.timeline li::before { counter-increment: step; content: counter(step); display: inline-flex; width: 26px; height: 26px; align-items: center; justify-content: center; border-radius: 50%; background: var(--blue); color: white; font-weight: 900; margin-bottom: 12px; }
.timeline strong { display: block; margin-bottom: 6px; }
.timeline span { color: var(--muted); font-size: 14px; }

.demo { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 24px; align-items: start; }
.demo-copy p:not(.eyebrow) { color: var(--muted); }
.demo-panel { background: #020617; border: 1px solid var(--line); border-radius: 22px; overflow: hidden; }
.demo-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; padding: 16px; border-bottom: 1px solid var(--line); }
.demo-step { color: var(--muted); border: 1px solid var(--line); border-radius: 12px; padding: 10px; font-size: 13px; }
.demo-step.active { color: var(--text); border-color: var(--blue); background: rgba(59,130,246,.12); }
.demo-step.done { color: #bbf7d0; border-color: rgba(16,185,129,.5); background: rgba(16,185,129,.10); }
.terminal {
  min-height: 360px;
  margin: 0;
  padding: 18px;
  white-space: pre-wrap;
  color: #a7f3d0;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 13px;
}

.boundary-card ul { margin: 0; padding-left: 20px; }
.boundary-card.ok { border-color: rgba(16,185,129,.45); background: rgba(16,185,129,.08); }
.boundary-card.no { border-color: rgba(239,68,68,.45); background: rgba(239,68,68,.08); }
.security-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.security-grid strong { display: block; margin-bottom: 8px; }
.security-grid span { font-size: 14px; }

.sample-head { display: flex; justify-content: space-between; gap: 20px; align-items: end; margin-bottom: 18px; }
.sample-head p:not(.eyebrow) { color: var(--muted); max-width: 760px; }
.sample-frame { width: 100%; height: 760px; border: 1px solid var(--line); border-radius: 22px; background: white; }
.footer { border-top: 1px solid var(--line); color: var(--muted); text-align: center; padding: 28px; }

@media (max-width: 980px) {
  .hero, .demo { grid-template-columns: 1fr; }
  .feature-grid, .security-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .timeline { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 680px) {
  .topbar { padding: 14px 18px; }
  .nav { display: none; }
  main { padding: 0 16px 48px; }
  .hero-panel, .feature-grid, .boundary-grid, .security-grid, .timeline, .demo-steps { grid-template-columns: 1fr; }
  .sample-head { align-items: start; flex-direction: column; }
  .sample-frame { height: 620px; }
}
