/* ===== Tokens ===== */
:root {
  --brand: #2f55ef;
  --brand-2: #4f7fff;
  --brand-deep: #1e3bb8;
  --cyan: #22d3ee;
  --green: #10b981;
  --amber: #f59e0b;
  --violet: #8b5cf6;

  --bg-0: #05071a;
  --bg-1: #0a0e27;
  --bg-2: #0f1433;
  --bg-3: #151b42;
  --surface: rgba(255, 255, 255, 0.03);
  --surface-2: rgba(255, 255, 255, 0.06);
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);
  --border-brand: rgba(47, 85, 239, 0.4);

  --text-0: #ffffff;
  --text-1: #e6e9f5;
  --text-2: #9ba3c4;
  --text-3: #6b7498;
  --text-4: #4a527a;

  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 18px;
  --radius-xl: 28px;

  --font-sans: "Inter", "PingFang SC", -apple-system, BlinkMacSystemFont, "Helvetica Neue", "Microsoft YaHei", sans-serif;
  --font-mono: "JetBrains Mono", "SF Mono", ui-monospace, Menlo, monospace;
  --font-display: "Inter", "PingFang SC", sans-serif;

  --shadow-glow: 0 0 0 1px rgba(47, 85, 239, 0.3), 0 20px 60px -20px rgba(47, 85, 239, 0.5);
  --shadow-card: 0 20px 60px -30px rgba(0, 0, 0, 0.6), 0 8px 24px -12px rgba(0, 0, 0, 0.4);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body { overflow-x: hidden; }
body {
  font-family: var(--font-sans);
  background: var(--bg-0);
  color: var(--text-1);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  line-height: 1.5;
}

/* ===== Background ===== */
.bg-stage {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(1100px 600px at 15% -10%, rgba(47, 85, 239, 0.35), transparent 60%),
    radial-gradient(900px 500px at 90% 0%, rgba(34, 211, 238, 0.12), transparent 60%),
    radial-gradient(800px 600px at 50% 100%, rgba(139, 92, 246, 0.1), transparent 60%),
    linear-gradient(180deg, #05071a 0%, #07091f 60%, #05071a 100%);
}
.bg-grid {
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse at 50% 0%, black 10%, transparent 65%);
  pointer-events: none;
}

/* ===== Typography ===== */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-2);
  font-weight: 500;
  font-family: var(--font-mono);
}
.eyebrow::before {
  content: "";
  width: 6px; height: 6px;
  background: var(--brand);
  border-radius: 50%;
  box-shadow: 0 0 12px var(--brand);
}
h1, h2, h3, h4 { margin: 0; color: var(--text-0); letter-spacing: -0.02em; font-weight: 600; }
h1 { font-size: clamp(44px, 5.4vw, 78px); line-height: 1.02; letter-spacing: -0.035em; font-weight: 700; }
h2 { font-size: clamp(32px, 3.4vw, 52px); line-height: 1.08; letter-spacing: -0.03em; }
h3 { font-size: 22px; line-height: 1.3; }
p { color: var(--text-2); }
.mono { font-family: var(--font-mono); }

/* ===== Layout ===== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
}
section { position: relative; }

/* ===== NAV ===== */
.nav {
  position: sticky;
  top: 0;
  z-index: 70;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: rgba(5, 7, 26, 0.65);
  border-bottom: 1px solid transparent;
  transition: border-color 200ms;
}
.nav.scrolled { border-color: var(--border); }
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text-0);
  font-weight: 600;
  font-size: 17px;
  letter-spacing: -0.01em;
}
.logo img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(47, 85, 239, 0.35);
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  color: var(--text-2);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color 160ms;
}
.nav-links a:hover { color: var(--text-0); }
.nav-right { display: flex; align-items: center; gap: 14px; }

/* Lang switch */
.lang {
  display: inline-flex;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 3px;
  font-size: 12px;
  font-family: var(--font-mono);
}
.lang button {
  background: transparent;
  border: none;
  color: var(--text-3);
  padding: 5px 12px;
  border-radius: 999px;
  cursor: pointer;
  font: inherit;
  transition: all 160ms;
}
.lang button.on {
  background: var(--surface-2);
  color: var(--text-0);
}

/* ===== Button ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 160ms, background 160ms, border-color 160ms, box-shadow 200ms;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: linear-gradient(180deg, #4670ff 0%, var(--brand) 100%);
  color: #fff;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.2) inset, 0 10px 30px -10px rgba(47, 85, 239, 0.7);
}
.btn-primary:hover {
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.25) inset, 0 16px 40px -10px rgba(47, 85, 239, 0.9);
}
.btn-ghost {
  background: transparent;
  color: var(--text-1);
  border-color: var(--border-strong);
}
.btn-ghost:hover { background: var(--surface); border-color: var(--text-3); }
.btn-lg { padding: 15px 26px; font-size: 15px; border-radius: 12px; }
.btn-sm { padding: 8px 14px; font-size: 13px; }

/* ===== Hero ===== */
.hero {
  padding-top: 64px;
  padding-bottom: 40px;
  position: relative;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 56px;
  align-items: center;
  min-height: 620px;
}
.hero-text h1 {
  font-size: clamp(40px, 4.2vw, 64px);
  line-height: 1.06;
}
.hero h1.hero-h1 {
  word-break: keep-all;
  overflow-wrap: break-word;
}
.hero h1.hero-h1 > span { display: block; }
.hero h1.hero-h1 > span.underline { display: inline-block; }
.hero h1.hero-h1 > span.underline-wrap { display: block; }
@media (max-width: 960px) {
  .hero { overflow: hidden; }
  .hero-text h1 { font-size: clamp(36px, 5.6vw, 52px); }
}
.hero-visual {
  position: relative;
  width: 100%;
  aspect-ratio: 1/0.86;
  min-height: 520px;
}
@media (max-width: 960px) {
  .hero-visual { min-height: 0; aspect-ratio: 1/0.7; }
}
@media (max-width: 600px) {
  .hero-visual { aspect-ratio: 1/0.62; }
}

/* ===== Hero proof row ===== */
.hero-proof {
  margin-top: 40px;
  padding-top: 28px;
  border-top: 1px solid var(--border);
  display: flex; align-items: center; gap: 16px;
}
.hp-avatars { display: flex; }
.hp-avatar {
  width: 32px; height: 32px;
  border-radius: 50%;
  border: 2px solid var(--bg-0);
  margin-left: -8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.4);
}
.hp-avatar:first-child { margin-left: 0; }
.hp-text .hp-stars {
  color: var(--amber);
  font-size: 13px;
  letter-spacing: 0.04em;
}
.hp-text .hp-stars b {
  color: var(--text-0);
  margin-left: 6px;
  font-weight: 600;
}
.hp-text .hp-sub {
  color: var(--text-3);
  font-size: 12px;
  margin-top: 2px;
}

/* ===== Browser-workbench hero visual ===== */
.hero-viz {
  position: relative;
  width: 100%; height: 100%;
}
.hero-viz .hv-glow {
  position: absolute;
  inset: -10% -10% auto auto;
  width: 500px; height: 500px;
  background:
    radial-gradient(circle, rgba(47,85,239,0.35), transparent 55%),
    radial-gradient(circle at 70% 70%, rgba(139,92,246,0.25), transparent 60%);
  filter: blur(30px);
  pointer-events: none;
  z-index: 0;
}

/* windows */
.hv-win {
  position: absolute;
  background: linear-gradient(180deg, #121735 0%, #0c1028 100%);
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 30px 80px -20px rgba(0,0,0,0.7), 0 10px 30px -10px rgba(0,0,0,0.5);
}
.hv-win.back-1 {
  top: -2%; right: -6%;
  width: 62%; height: 54%;
  transform: rotate(4deg);
  opacity: 0.5;
  z-index: 1;
}
.hv-win.back-2 {
  top: 10%; left: -8%;
  width: 48%; height: 40%;
  transform: rotate(-6deg);
  opacity: 0.35;
  z-index: 1;
}

/* real product screenshot */
.hv-shot {
  position: absolute;
  left: 2%; right: 2%;
  top: 8%;
  z-index: 3;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--border-strong);
  background: #0d1026;
  box-shadow:
    0 40px 100px -20px rgba(0,0,0,0.8),
    0 20px 40px -10px rgba(47,85,239,0.25),
    0 0 0 1px rgba(255,255,255,0.04) inset;
  animation: hvMain 6s ease-in-out infinite;
}
.hv-shot img {
  display: block;
  width: 100%;
  height: auto;
}
@keyframes hvMain {
  0%,100% { transform: translateY(0); }
  50%     { transform: translateY(-6px); }
}

/* window bars */
.hv-win-bar {
  display: flex; align-items: center; gap: 6px;
  padding: 10px 12px;
  background: rgba(255,255,255,0.03);
  border-bottom: 1px solid var(--border);
  font-size: 11px; color: var(--text-3);
}
.hv-win-bar > span:not(.wb-dot) {
  width: 8px; height: 8px; border-radius: 50%;
  background: rgba(255,255,255,0.15);
}
.hv-win-bar em {
  font-style: normal;
  margin-left: 10px;
  font-family: var(--font-mono);
  color: var(--text-3);
  font-size: 10px;
}
.wb-dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
.wb-dot.r { background: #ff5f56; }
.wb-dot.y { background: #ffbd2e; }
.wb-dot.g { background: #27c93f; }
.wb-tabs {
  display: flex; gap: 4px;
  margin-left: 12px; flex: 1;
  overflow: hidden;
}
.wb-tab {
  padding: 6px 12px;
  background: rgba(255,255,255,0.03);
  border: 1px solid transparent;
  border-radius: 6px 6px 0 0;
  font-size: 11px;
  color: var(--text-3);
  white-space: nowrap;
  font-family: var(--font-mono);
}
.wb-tab.on {
  background: #0c1028;
  color: var(--text-0);
  border-color: var(--border);
  border-bottom-color: transparent;
}
.wb-tab.add { color: var(--text-3); padding: 6px 10px; background: transparent; }

/* url bar */
.hv-win-url {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px;
  background: rgba(255,255,255,0.02);
  border-bottom: 1px solid var(--border);
  font-size: 12px;
  font-family: var(--font-mono);
}
.wb-lock { font-size: 11px; }
.wb-url { color: var(--text-1); flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wb-pill {
  padding: 3px 10px;
  background: rgba(16,185,129,0.12);
  color: var(--green);
  border: 1px solid rgba(16,185,129,0.25);
  border-radius: 999px;
  font-size: 10px; white-space: nowrap;
}

/* window body */
.hv-win-body {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  height: calc(100% - 74px);
}
.hv-win-body.hv-body-b {
  height: calc(100% - 34px);
  background:
    linear-gradient(180deg, rgba(47,85,239,0.08), transparent),
    repeating-linear-gradient(180deg, transparent 0, transparent 18px, rgba(255,255,255,0.04) 18px, rgba(255,255,255,0.04) 19px);
}
.hv-panel-l {
  padding: 14px;
  border-right: 1px solid var(--border);
  display: flex; flex-direction: column; gap: 4px;
  overflow: hidden;
}
.hv-panel-r {
  padding: 14px;
  display: flex; flex-direction: column;
  overflow: hidden;
}

/* env rows */
.hv-row {
  display: grid;
  grid-template-columns: 1.1fr 1fr 0.8fr 0.7fr;
  gap: 8px;
  padding: 9px 8px;
  border-radius: 6px;
  font-size: 11px;
  color: var(--text-2);
  align-items: center;
}
.hv-row-head {
  color: var(--text-3);
  font-size: 10px;
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--border);
  border-radius: 0;
}
.hv-row.on {
  background: rgba(47,85,239,0.12);
  color: var(--text-0);
  border: 1px solid var(--border-brand);
}
.hv-env {
  display: flex; align-items: center; gap: 8px;
  font-family: var(--font-mono);
  font-size: 10px;
}
.hv-env i { width: 8px; height: 8px; border-radius: 2px; flex-shrink: 0; }
.hv-status.ok { color: var(--green); }
.hv-status.run { color: var(--brand-2); }

/* fingerprint card */
.hv-fp-card {
  background: linear-gradient(160deg, rgba(47,85,239,0.18), rgba(139,92,246,0.12));
  border: 1px solid var(--border-brand);
  border-radius: 10px;
  padding: 14px;
  display: flex; flex-direction: column; gap: 12px;
  height: 100%;
}
.hv-fp-head { display: flex; align-items: center; gap: 10px; }
.hv-fp-head img {
  width: 32px; height: 32px;
  filter: drop-shadow(0 4px 12px rgba(139,92,246,0.6));
}
.hv-fp-title { color: var(--text-0); font-size: 13px; font-weight: 600; }
.hv-fp-sub { color: var(--text-3); font-size: 10px; margin-top: 1px; }
.hv-fp-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px 12px;
  font-size: 10px;
}
.hv-fp-grid > div {
  display: flex; justify-content: space-between;
  padding: 5px 0;
  border-bottom: 1px dashed rgba(255,255,255,0.06);
}
.hv-fp-grid span { color: var(--text-3); }
.hv-fp-grid b { color: var(--text-0); font-weight: 500; font-size: 10px; }
.hv-fp-bar {
  margin-top: auto;
  position: relative;
  height: 20px;
  background: rgba(255,255,255,0.05);
  border-radius: 4px;
  overflow: hidden;
  display: flex; align-items: center; justify-content: flex-end;
  padding-right: 8px;
}
.hv-fp-bar-fill {
  position: absolute; left: 0; top: 0; bottom: 0;
  width: 98%;
  background: linear-gradient(90deg, var(--brand), var(--violet));
  border-radius: 4px;
}
.hv-fp-bar span {
  position: relative; color: #fff; font-size: 9px; z-index: 1;
}

/* floating chips on top */
.hv-chip-fp, .hv-chip-sync {
  position: absolute; z-index: 5;
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px;
  background: rgba(12,16,40,0.92);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  box-shadow: 0 20px 40px -10px rgba(0,0,0,0.6);
  animation: floatY 6s ease-in-out infinite;
}
.hv-chip-fp { top: 2%; left: -4%; animation-delay: -2s; }
.hv-chip-sync { bottom: 4%; right: -4%; }

/* live status pill */
.hv-chip-live {
  position: absolute;
  z-index: 5;
  bottom: 16%; left: -6%;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px;
  background: rgba(12,16,40,0.92);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(16,185,129,0.3);
  border-radius: 999px;
  font-size: 11px;
  color: var(--text-1);
  box-shadow: 0 10px 30px -10px rgba(0,0,0,0.6);
}
.hv-live-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 10px var(--green);
  animation: liveBlink 1.6s ease-in-out infinite;
}
@keyframes liveBlink {
  0%,100% { opacity: 1; }
  50%     { opacity: 0.4; }
}
.hv-chip-ic {
  width: 32px; height: 32px; border-radius: 8px;
  background: rgba(47,85,239,0.18);
  color: var(--brand-2);
  display: grid; place-items: center;
  border: 1px solid var(--border-brand);
}
.hv-chip-ic.g { background: rgba(16,185,129,0.15); color: var(--green); border-color: rgba(16,185,129,0.3); }
.hv-chip-t { color: var(--text-0); font-size: 12px; font-weight: 600; }
.hv-chip-s { color: var(--text-3); font-size: 10px; margin-top: 2px; font-family: var(--font-mono); }

@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; gap: 48px; min-height: 0; text-align: center; }
  .hero-text { display: flex; flex-direction: column; align-items: center; }
  .hero-text .hero-badge { justify-content: center; }
  .hero-text .hero-cta { justify-content: center; }
  .hero-text .hero-meta { justify-content: center; flex-wrap: wrap; }
  .hero-text .hero-proof { justify-content: center; }
  .hero-visual { max-width: 560px; margin: 0 auto; width: 100%; }
  .hv-chip-fp, .hv-chip-sync, .hv-chip-live { display: none; }
}
@media (max-width: 600px) {
  .hv-win.back-1, .hv-win.back-2 { display: none; }
  .hero-visual { max-width: 100%; padding: 0; }
  .hv-shot { left: 0 !important; right: 0 !important; }
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px 6px 6px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  font-size: 13px;
  color: var(--text-1);
  margin-bottom: 28px;
}
.hero-badge .pill {
  background: var(--brand);
  color: white;
  font-size: 11px;
  padding: 3px 9px;
  border-radius: 999px;
  font-weight: 600;
  font-family: var(--font-mono);
  letter-spacing: 0.02em;
}
.hero-badge .arrow { color: var(--text-3); }
.hero h1 .accent {
  background: linear-gradient(180deg, #8eadff 0%, var(--brand) 90%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero h1 .underline {
  position: relative;
  display: inline-block;
}
.hero h1 .underline::after {
  content: "";
  position: absolute;
  left: 0; right: 0;
  bottom: 4px;
  height: 8px;
  background: rgba(47, 85, 239, 0.25);
  border-radius: 8px;
  z-index: -1;
}
.hero-sub {
  margin-top: 22px;
  font-size: 18px;
  max-width: 580px;
  color: var(--text-2);
  line-height: 1.6;
}
.hero-cta {
  margin-top: 34px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.hero-meta {
  margin-top: 24px;
  display: flex;
  gap: 20px;
  font-size: 13px;
  color: var(--text-3);
  flex-wrap: wrap;
}
.hero-meta span { display: flex; align-items: center; gap: 6px; }
.hero-meta .dot { color: var(--green); }

/* Hero canvas */
.hero-stage {
  position: relative;
  margin-top: 64px;
  padding: 20px;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(47, 85, 239, 0.12) 0%, rgba(47, 85, 239, 0) 100%);
  border: 1px solid var(--border);
  overflow: hidden;
}
.hero-stage::before {
  content: "";
  position: absolute;
  inset: -40%;
  background: radial-gradient(600px 200px at 50% 0%, rgba(47, 85, 239, 0.3), transparent 60%);
  pointer-events: none;
}
.hero-screenshot-wrap {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow-card);
  background: #0d1026;
}
.hero-screenshot-wrap img {
  display: block;
  width: 100%;
  height: auto;
}
.floating-card {
  position: absolute;
  background: rgba(15, 20, 51, 0.9);
  backdrop-filter: blur(14px);
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  padding: 14px 16px;
  box-shadow: var(--shadow-card);
  font-size: 13px;
  color: var(--text-1);
  animation: floatY 6s ease-in-out infinite;
}
@keyframes floatY {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
.floating-card.left {
  left: -12px;
  top: 22%;
  animation-delay: -2s;
}
.floating-card.right {
  right: -18px;
  bottom: 22%;
}
.floating-card .row {
  display: flex; align-items: center; gap: 10px;
}
.floating-card .dot-lg {
  width: 36px; height: 36px; border-radius: 10px;
  display: grid; place-items: center;
  font-size: 16px;
}
.floating-card .dot-lg.b { background: rgba(47, 85, 239, 0.18); color: #8eadff; }
.floating-card .dot-lg.g { background: rgba(16, 185, 129, 0.15); color: var(--green); }
.floating-card .title { font-weight: 600; color: var(--text-0); }
.floating-card .sub { font-size: 11px; color: var(--text-3); font-family: var(--font-mono); }

/* ===== Logo cloud / stats ===== */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  padding: 48px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin-top: 96px;
}
.stat { text-align: left; padding: 0 28px; border-right: 1px solid var(--border); }
.stat:last-child { border-right: none; }
.stat .num {
  font-size: 42px;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--text-0);
  line-height: 1;
  font-family: var(--font-display);
}
.stat .num .unit { color: var(--brand-2); margin-left: 2px; }
.stat .label { margin-top: 10px; font-size: 13px; color: var(--text-3); }

/* ===== Section heads ===== */
.section-head { max-width: 760px; margin: 0 auto 64px; text-align: center; }
.section-head .eyebrow { justify-content: center; }
.section-head h2 { margin-top: 16px; }
.section-head p { margin-top: 16px; font-size: 17px; color: var(--text-2); }

section.block { padding-top: 120px; padding-bottom: 120px; }

/* ===== Features (asymmetric bento) ===== */
.features {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
}
.feature {
  position: relative;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.04) 0%, rgba(255,255,255,0.015) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  overflow: hidden;
  transition: border-color 200ms, transform 200ms, background 200ms;
  display: flex;
  flex-direction: column;
}
.feature:hover {
  border-color: var(--border-brand);
  transform: translateY(-2px);
  background:
    linear-gradient(180deg, rgba(47,85,239,0.06) 0%, rgba(47,85,239,0.01) 100%);
}
.feature.span-2 { grid-column: span 2; }
.feature.span-3 { grid-column: span 3; }
.feature.span-4 { grid-column: span 4; }
.feature.f-tall  { min-height: 440px; }
.feature.f-win,
.feature.f-rpa,
.feature.f-team,
.feature.f-proxy { min-height: 360px; }

.f-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 18px;
}
.feature .icon {
  width: 40px; height: 40px;
  border-radius: 10px;
  display: grid; place-items: center;
  background: rgba(47, 85, 239, 0.15);
  color: var(--brand-2);
  border: 1px solid var(--border-brand);
}
.f-tag {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  color: var(--text-3);
  padding: 4px 10px;
  border: 1px solid var(--border);
  border-radius: 999px;
}
.feature h3 { color: var(--text-0); font-size: 20px; letter-spacing: -0.01em; }
.feature > p { margin-top: 8px; color: var(--text-2); font-size: 14px; line-height: 1.6; max-width: 440px; }

/* F1 — fingerprint */
.f-fp .fp-viz-mini {
  margin-top: auto;
  padding-top: 24px;
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 20px;
  align-items: center;
}
.fp-rings {
  position: relative;
  width: 160px; height: 160px;
}
.fp-r {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(47, 85, 239, 0.25);
  animation: fpPulse 3s ease-in-out infinite;
}
.fp-r.r1 { inset: 0; border-color: rgba(47, 85, 239, 0.15); }
.fp-r.r2 { inset: 22px; border-color: rgba(47, 85, 239, 0.3); animation-delay: -1s; }
.fp-r.r3 { inset: 44px; border-color: rgba(47, 85, 239, 0.55); animation-delay: -2s; }
.fp-dot {
  position: absolute;
  inset: 66px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--brand), var(--brand-deep));
  box-shadow: 0 0 40px rgba(47, 85, 239, 0.7);
}
@keyframes fpPulse {
  0%,100% { transform: scale(1); opacity: 1; }
  50%     { transform: scale(1.06); opacity: 0.6; }
}
.fp-tags {
  display: flex; flex-wrap: wrap; gap: 6px;
}
.fp-tags span {
  font-family: var(--font-mono);
  font-size: 11px;
  padding: 5px 10px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text-2);
}
.fp-tags span:last-child {
  background: rgba(47,85,239,0.15);
  color: var(--brand-2);
  border-color: var(--border-brand);
}

/* F6 — encryption */
.f-enc { background: linear-gradient(170deg, rgba(139,92,246,0.08), rgba(47,85,239,0.04) 50%, transparent); }
.enc-visual {
  margin-top: auto;
  padding-top: 20px;
  display: flex; flex-direction: column; gap: 12px;
}
.enc-key-line {
  display: flex; align-items: center; gap: 8px;
}
.enc-key-line .enc-k {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--text-0);
  padding: 6px 12px;
  background: rgba(47, 85, 239, 0.15);
  border: 1px solid var(--border-brand);
  border-radius: 6px;
}
.enc-hex {
  font-size: 11px;
  color: var(--text-3);
  line-height: 1.8;
  background: rgba(0,0,0,0.25);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 14px;
  letter-spacing: 0.05em;
}
.enc-hex div:nth-child(odd) { color: var(--brand-2); }
.enc-foot {
  display: flex; align-items: center; gap: 8px;
  font-size: 12px; color: var(--text-2);
}
.enc-foot .dot.g { color: var(--green); font-size: 8px; }

/* F2 — multi windows */
.f-win { position: relative; }
.win-stats {
  display: flex; gap: 28px;
  margin-top: 20px;
}
.win-stats > div { display: flex; flex-direction: column; gap: 4px; }
.win-stats .num {
  font-size: 28px; font-weight: 700;
  color: var(--text-0);
  letter-spacing: -0.02em;
  line-height: 1;
  font-family: var(--font-display);
}
.win-stats .num em {
  font-style: normal;
  color: var(--brand-2);
  font-size: 20px;
  margin-left: 2px;
}
.win-stats span {
  font-size: 11px;
  color: var(--text-3);
  font-family: var(--font-mono);
}
.win-stack {
  margin-top: auto;
  padding-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.win-card {
  position: relative;
  background: linear-gradient(180deg, rgba(15,20,51,0.85), rgba(10,14,39,0.9));
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  transform: translateX(calc(var(--wi) * 8px));
  opacity: calc(1 - var(--wi) * 0.08);
  transition: transform 260ms, opacity 260ms;
  animation: winSlide 3.6s ease-in-out infinite;
  animation-delay: var(--wd);
}
.f-win:hover .win-card {
  transform: translateX(0);
  opacity: 1;
}
.win-chrome {
  display: flex; align-items: center; gap: 10px;
  padding: 6px 10px;
  background: rgba(255,255,255,0.03);
  border-bottom: 1px solid var(--border);
  font-size: 10px;
}
.win-chrome .wc-dots { display: flex; gap: 3px; }
.win-chrome .wc-dots i {
  width: 6px; height: 6px; border-radius: 50%;
  background: rgba(255,255,255,0.15);
}
.win-chrome .wc-dots i:nth-child(1) { background: var(--wc); box-shadow: 0 0 6px var(--wc); }
.win-chrome .wc-url {
  flex: 1;
  color: var(--text-2);
  font-size: 10px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.win-chrome .wc-tag {
  color: var(--wc);
  font-size: 9px;
  padding: 2px 6px;
  background: color-mix(in srgb, var(--wc) 12%, transparent);
  border-radius: 3px;
  letter-spacing: 0.05em;
}
.win-body {
  padding: 8px 10px 10px;
  display: flex; flex-direction: column; gap: 4px;
}
.wb-line {
  height: 3px;
  background: linear-gradient(90deg, var(--wc), transparent);
  opacity: 0.5;
  border-radius: 2px;
}
.win-pulse {
  position: absolute;
  right: 10px; top: 50%;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--wc);
  box-shadow: 0 0 0 0 var(--wc);
  animation: winPulse 1.8s ease-out infinite;
  animation-delay: var(--wd);
}
@keyframes winSlide {
  0%, 100% { transform: translateX(calc(var(--wi) * 8px)); }
  50%      { transform: translateX(calc(var(--wi) * 4px)); }
}
@keyframes winPulse {
  0%   { box-shadow: 0 0 0 0 color-mix(in srgb, var(--wc) 60%, transparent); }
  70%  { box-shadow: 0 0 0 10px transparent; }
  100% { box-shadow: 0 0 0 0 transparent; }
}

/* F4 — RPA */
.rpa-panel {
  margin-top: auto;
  padding-top: 20px;
  display: flex; flex-direction: column;
  gap: 12px;
}
.rpa-panel-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 8px 12px;
  background: rgba(15,20,51,0.8);
  border: 1px solid var(--border);
  border-radius: 8px 8px 0 0;
  border-bottom: none;
  font-size: 11px;
}
.rpa-ph-name { color: var(--text-1); letter-spacing: 0.02em; }
.rpa-ph-run {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--brand-2);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
}
.rpa-ph-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--brand-2);
  box-shadow: 0 0 8px var(--brand-2);
  animation: rpaDot 1.4s ease-in-out infinite;
}
@keyframes rpaDot {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.4; }
}
.rpa-progress {
  position: relative;
  height: 4px;
  background: rgba(255,255,255,0.05);
  border-radius: 2px;
  overflow: hidden;
  margin-top: -12px;
}
.rpa-progress-fill {
  position: absolute; inset: 0;
  width: 63%;
  background: linear-gradient(90deg, var(--brand-2), var(--cyan));
  border-radius: 2px;
  animation: rpaFill 2.4s ease-in-out infinite;
}
.rpa-progress-fill::after {
  content: "";
  position: absolute; right: -6px; top: 50%;
  transform: translateY(-50%);
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 14px var(--cyan);
}
@keyframes rpaFill {
  0%,100% { width: 60%; }
  50%     { width: 66%; }
}
.rpa-progress-label {
  position: absolute;
  right: 0; top: -18px;
  font-size: 10px;
  color: var(--text-3);
}
.rpa-steps {
  display: flex; flex-direction: column;
  gap: 6px;
}
.rpa-row {
  display: grid;
  grid-template-columns: 24px 3px 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 9px 12px;
  background: rgba(15,20,51,0.6);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 12px;
  transition: all 200ms;
}
.rpa-row-i {
  color: var(--text-4);
  font-size: 10px;
  letter-spacing: 0.05em;
}
.rpa-row-bar {
  width: 3px;
  height: 16px;
  border-radius: 2px;
  background: var(--text-4);
}
.rpa-row-t {
  color: var(--text-2);
}
.rpa-row-d {
  font-size: 10px;
  color: var(--text-3);
}
.rpa-row.done {
  background: rgba(16,185,129,0.06);
  border-color: rgba(16,185,129,0.22);
}
.rpa-row.done .rpa-row-i { color: var(--green); }
.rpa-row.done .rpa-row-bar {
  background: var(--green);
  box-shadow: 0 0 8px rgba(16,185,129,0.5);
}
.rpa-row.done .rpa-row-t { color: var(--text-1); }
.rpa-row.done .rpa-row-d { color: var(--green); }
.rpa-row.run {
  background: linear-gradient(90deg, rgba(47,85,239,0.14), rgba(79,127,255,0.04));
  border-color: var(--border-brand);
  box-shadow: 0 0 0 1px rgba(79,127,255,0.15), 0 4px 20px -10px rgba(47,85,239,0.6);
}
.rpa-row.run .rpa-row-i { color: var(--brand-2); }
.rpa-row.run .rpa-row-bar {
  background: var(--brand-2);
  box-shadow: 0 0 10px var(--brand-2);
  animation: rpaBarRun 1s ease-in-out infinite;
}
.rpa-row.run .rpa-row-t { color: var(--text-0); font-weight: 500; }
.rpa-row.run .rpa-row-d { color: var(--brand-2); }
.rpa-row.idle { opacity: 0.5; }
@keyframes rpaBarRun {
  0%, 100% { height: 16px; }
  50%      { height: 10px; }
}

/* F5 — Team */
.team-mini {
  margin-top: auto;
  padding-top: 20px;
  display: flex; flex-direction: column; gap: 8px;
}
.tm-row {
  display: grid;
  grid-template-columns: 28px 1fr auto auto;
  gap: 12px;
  align-items: center;
  padding: 10px 14px;
  background: rgba(15,20,51,0.55);
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 13px;
}
.tm-av {
  width: 28px; height: 28px;
  border-radius: 50%;
  display: grid; place-items: center;
  color: #fff;
  font-size: 12px;
  font-weight: 600;
}
.tm-n { color: var(--text-0); font-weight: 500; }
.tm-r { color: var(--text-3); font-size: 11px; }
.tm-perm {
  font-family: var(--font-mono);
  font-size: 10px;
  padding: 3px 8px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.tm-perm.admin { background: rgba(47,85,239,0.2); color: var(--brand-2); }
.tm-perm.edit  { background: rgba(16,185,129,0.15); color: var(--green); }
.tm-perm.view  { background: rgba(255,255,255,0.05); color: var(--text-3); }

/* F3 — Proxy */
.proxy-card {
  margin-top: auto;
  padding-top: 20px;
  display: flex; flex-direction: column;
  gap: 12px;
}
.proxy-globe {
  position: relative;
  height: 120px;
  background:
    radial-gradient(circle at 30% 30%, rgba(47,85,239,0.18), transparent 60%),
    linear-gradient(180deg, rgba(15,20,51,0.7), rgba(10,14,39,0.4));
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  display: grid; place-items: center;
}
.pg-svg {
  width: 110px; height: 110px;
  filter: drop-shadow(0 4px 20px rgba(79,127,255,0.35));
}
.pg-node {
  animation: pgPulse 2s ease-out infinite;
  transform-origin: center;
}
@keyframes pgPulse {
  0%, 100% { opacity: 0.6; r: 1.2; }
  50%      { opacity: 1;   r: 1.8; }
}
.proxy-pool {
  display: flex; flex-direction: column;
  gap: 5px;
}
.pp-row {
  display: grid;
  grid-template-columns: 28px 1fr auto auto;
  gap: 10px;
  align-items: center;
  padding: 8px 10px;
  background: rgba(15,20,51,0.5);
  border: 1px solid var(--border);
  border-radius: 7px;
  font-size: 11px;
  transition: all 180ms;
}
.pp-cc {
  color: var(--brand-2);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.05em;
  padding: 3px 6px;
  background: rgba(47,85,239,0.12);
  border: 1px solid var(--border-brand);
  border-radius: 4px;
  text-align: center;
}
.pp-city {
  color: var(--text-2);
  font-size: 11px;
}
.pp-type {
  color: var(--text-3);
  font-size: 9px;
  letter-spacing: 0.05em;
}
.pp-ping {
  color: var(--text-1);
  font-size: 11px;
  min-width: 40px;
  text-align: right;
}
.pp-ping em {
  font-style: normal;
  color: var(--text-4);
  font-size: 9px;
  margin-left: 1px;
}
.pp-row.on {
  background: linear-gradient(90deg, rgba(47,85,239,0.16), rgba(79,127,255,0.04));
  border-color: var(--border-brand);
  box-shadow: 0 0 0 1px rgba(79,127,255,0.1), 0 4px 16px -8px rgba(47,85,239,0.6);
}
.pp-row.on .pp-city { color: var(--text-0); font-weight: 500; }
.pp-row.on .pp-ping { color: var(--brand-2); }
.pp-row.on::after {
  content: "";
  position: absolute;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--brand-2);
  box-shadow: 0 0 8px var(--brand-2);
  animation: ppLive 1.4s ease-in-out infinite;
}
.pp-row { position: relative; }
.pp-row.on::after {
  right: 6px; top: 6px;
}
@keyframes ppLive {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.3; }
}

@media (max-width: 1100px) {
  .features { grid-template-columns: repeat(6, 1fr); }
  .feature.span-4, .feature.span-3, .feature.span-2 { grid-column: span 6; }
  .feature.f-tall { min-height: 380px; }
}
@media (max-width: 700px) {
  .f-fp .fp-viz-mini { grid-template-columns: 1fr; }
  .fp-rings { margin: 0 auto; }
}

.feature .visual {
  position: absolute;
  right: 0; bottom: 0;
  width: 70%;
  height: 60%;
  pointer-events: none;
}

/* Feature visual: fingerprint grid */
.visual-fp {
  position: absolute;
  inset: auto -10% -20% auto;
  width: 70%;
  aspect-ratio: 1;
  background:
    radial-gradient(circle, rgba(47,85,239,0.3), transparent 70%);
  opacity: 0.9;
}

/* tiny windows visual */
.mini-windows {
  position: absolute;
  right: -20px; bottom: -20px;
  display: grid;
  grid-template-columns: repeat(3, 70px);
  grid-template-rows: repeat(2, 48px);
  gap: 8px;
  transform: rotate(-6deg);
}
.mini-windows .mw {
  background: rgba(15, 20, 51, 0.8);
  border: 1px solid var(--border);
  border-radius: 6px;
  position: relative;
  overflow: hidden;
}
.mini-windows .mw::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 10px;
  background: rgba(255,255,255,0.04);
  border-bottom: 1px solid var(--border);
}
.mini-windows .mw::after {
  content: "";
  position: absolute;
  top: 3px; left: 4px;
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--brand);
  box-shadow: 7px 0 0 rgba(255,255,255,0.2), 14px 0 0 rgba(255,255,255,0.2);
}

/* ===== Tab demo ===== */
.tabs-demo {
  margin-top: 72px;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  background: linear-gradient(180deg, rgba(47,85,239,0.04), rgba(0,0,0,0));
  overflow: hidden;
}
.tabs-head {
  display: flex;
  gap: 4px;
  padding: 8px;
  border-bottom: 1px solid var(--border);
  background: rgba(255,255,255,0.015);
  overflow-x: auto;
}
.tab-btn {
  flex-shrink: 0;
  background: transparent;
  border: 1px solid transparent;
  padding: 10px 18px;
  border-radius: 10px;
  color: var(--text-2);
  cursor: pointer;
  font: inherit;
  font-size: 14px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 160ms;
  white-space: nowrap;
}
.tab-btn:hover { color: var(--text-1); }
.tab-btn.on {
  background: var(--surface-2);
  color: var(--text-0);
  border-color: var(--border);
}
.tab-btn .tnum { font-family: var(--font-mono); font-size: 11px; color: var(--text-3); }
.tab-btn.on .tnum { color: var(--brand-2); }

.tab-body {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  min-height: 460px;
}
.tab-copy {
  padding: 48px 44px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-right: 1px solid var(--border);
}
.tab-copy h3 {
  font-size: 28px;
  letter-spacing: -0.02em;
  font-weight: 600;
}
.tab-copy p { margin-top: 14px; font-size: 15px; line-height: 1.65; }
.tab-copy ul {
  margin: 24px 0 0; padding: 0; list-style: none;
  display: flex; flex-direction: column; gap: 10px;
}
.tab-copy li {
  display: flex; gap: 10px; align-items: flex-start;
  font-size: 14px; color: var(--text-1);
}
.tab-copy li .check {
  width: 18px; height: 18px;
  border-radius: 50%;
  background: rgba(16, 185, 129, 0.15);
  color: var(--green);
  display: grid; place-items: center;
  flex-shrink: 0;
  margin-top: 2px;
}

.tab-visual {
  padding: 40px;
  background:
    radial-gradient(500px 300px at 50% 50%, rgba(47, 85, 239, 0.15), transparent 70%);
  position: relative;
  overflow: hidden;
  display: grid;
  place-items: center;
}

/* Demo: fingerprint ring */
.fp-viz {
  width: 320px; height: 320px;
  position: relative;
}
.fp-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid var(--border-strong);
}
.fp-ring.r2 { inset: 30px; border-color: var(--border-brand); }
.fp-ring.r3 { inset: 60px; border-color: rgba(47, 85, 239, 0.5); }
.fp-ring.r4 { inset: 90px; border-color: rgba(47, 85, 239, 0.8); }
.fp-center {
  position: absolute;
  inset: 120px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--brand), var(--brand-deep));
  display: grid; place-items: center;
  color: #fff;
  box-shadow: 0 0 60px rgba(47, 85, 239, 0.6);
}
.fp-tag {
  position: absolute;
  background: rgba(15, 20, 51, 0.95);
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  padding: 6px 10px;
  font-size: 11px;
  font-family: var(--font-mono);
  color: var(--text-1);
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 6px;
}
.fp-tag .tdot { width: 6px; height: 6px; border-radius: 50%; background: var(--cyan); }

/* Windows grid for tab 2 */
.windows-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  width: 100%;
  max-width: 480px;
}
.mini-win {
  aspect-ratio: 4/3;
  background: linear-gradient(180deg, rgba(15,20,51,0.9), rgba(10,14,39,0.9));
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0;
  position: relative;
  overflow: hidden;
  transition: transform 200ms;
}
.mini-win:hover { transform: translateY(-3px); border-color: var(--border-brand); }
.mini-win .mw-head {
  height: 20px;
  background: rgba(255,255,255,0.04);
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; gap: 4px;
  padding: 0 8px;
}
.mini-win .mw-head::before,
.mini-win .mw-head::after,
.mini-win .mw-head span {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
}
.mini-win .mw-head::before { background: #ff5f56; }
.mini-win .mw-head::after { background: #ffbd2e; }
.mini-win .mw-head span { background: #27c93f; }
.mini-win .mw-body { padding: 10px; font-size: 10px; font-family: var(--font-mono); color: var(--text-3); }
.mini-win .mw-body .line {
  height: 4px; background: rgba(255,255,255,0.08); border-radius: 2px; margin-bottom: 4px;
}
.mini-win .mw-body .line.b { background: rgba(47,85,239,0.3); width: 60%; }
.mini-win .mw-body .line.s { width: 40%; }
.mini-win .mw-flag {
  position: absolute; top: 28px; right: 8px;
  font-size: 9px; font-family: var(--font-mono);
  padding: 2px 6px; border-radius: 4px;
  background: rgba(47, 85, 239, 0.2);
  color: var(--brand-2);
}

/* Team viz */
.team-viz {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  max-width: 420px;
}
.team-row {
  display: flex; align-items: center; gap: 12px;
  background: rgba(15,20,51,0.6);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 14px;
}
.team-avatar {
  width: 32px; height: 32px; border-radius: 50%;
  display: grid; place-items: center;
  color: #fff; font-weight: 600; font-size: 13px;
  flex-shrink: 0;
}
.team-meta { flex: 1; }
.team-meta .n { color: var(--text-0); font-size: 13px; font-weight: 500; }
.team-meta .r { color: var(--text-3); font-size: 11px; font-family: var(--font-mono); }
.team-perm {
  font-size: 10px; padding: 3px 8px;
  border-radius: 4px;
  font-family: var(--font-mono);
}
.team-perm.admin { background: rgba(47,85,239,0.18); color: var(--brand-2); }
.team-perm.edit { background: rgba(16,185,129,0.15); color: var(--green); }
.team-perm.view { background: rgba(255,255,255,0.05); color: var(--text-3); }

/* Proxy/RPA viz */
.rpa-viz {
  width: 100%; max-width: 440px;
  background: rgba(15,20,51,0.8);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 16px;
  font-family: var(--font-mono);
  font-size: 12px;
}
.rpa-header {
  display: flex; justify-content: space-between;
  color: var(--text-3); font-size: 11px;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}
.rpa-step {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 10px;
  border-radius: 6px;
  margin-bottom: 4px;
}
.rpa-step.done { background: rgba(16,185,129,0.08); color: var(--text-1); }
.rpa-step.run { background: rgba(47,85,239,0.12); color: var(--text-0); }
.rpa-step.idle { color: var(--text-3); }
.rpa-step .num {
  width: 18px; height: 18px; border-radius: 50%;
  display: grid; place-items: center; font-size: 10px;
  background: rgba(255,255,255,0.05);
  flex-shrink: 0;
}
.rpa-step.done .num { background: var(--green); color: #fff; }
.rpa-step.run .num { background: var(--brand); color: #fff; }
.rpa-step .dur { margin-left: auto; font-size: 10px; color: var(--text-3); }

/* ===== Scenes ===== */
.scenes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
/* v2 — featured e-commerce scene */
.scenes-v2 {
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.scene-hero {
  grid-column: span 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  padding: 40px;
  background: linear-gradient(135deg, rgba(47,85,239,0.04) 0%, rgba(139,92,246,0.03) 100%);
  border: 1px solid var(--border-brand);
}
.scene-hero:hover { transform: none; }
.scene-hero-left { display: flex; flex-direction: column; }
.scene-hero .scene-tag {
  display: inline-block;
  align-self: flex-start;
  padding: 3px 10px;
  background: var(--brand);
  color: white;
  font-size: 10px;
  font-family: var(--font-mono);
  letter-spacing: 0.1em;
  border-radius: 4px;
  margin-bottom: 14px;
  text-transform: uppercase;
}
.scene-hero h3 {
  font-size: 28px !important;
  letter-spacing: -0.02em;
}
.scene-hero > .scene-hero-left > p {
  margin-top: 14px;
  font-size: 14.5px;
  line-height: 1.7;
  color: var(--text-2);
}
.scene-plats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
}
.scene-plat {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 11.5px;
  color: var(--text-1);
  font-weight: 500;
}
.scene-plat i {
  width: 8px; height: 8px;
  border-radius: 50%;
  display: inline-block;
}
.scene-hero .scene-stats { margin-top: auto; padding-top: 24px; }

/* Hero right — store matrix */
.scene-hero-right {
  display: flex; align-items: stretch;
}
.scene-mx {
  flex: 1;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  font-size: 12px;
  display: flex;
  flex-direction: column;
}
.scene-mx-head {
  display: grid;
  grid-template-columns: 1.6fr 0.8fr 0.9fr;
  gap: 10px;
  padding: 10px 14px;
  background: rgba(15,20,51,0.03);
  color: var(--text-3);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-family: var(--font-mono);
  border-bottom: 1px solid var(--border);
}
.scene-mx-row {
  display: grid;
  grid-template-columns: 1.6fr 0.8fr 0.9fr;
  gap: 10px;
  padding: 11px 14px;
  border-bottom: 1px solid var(--border);
  align-items: center;
  color: var(--text-1);
}
.scene-mx-row:last-of-type { border-bottom: none; }
.scene-mx-row .mx-name {
  display: flex; align-items: center; gap: 8px;
  color: var(--text-0);
  font-weight: 500;
  font-size: 12.5px;
}
.scene-mx-row .mx-av {
  width: 22px; height: 22px;
  border-radius: 5px;
  display: grid; place-items: center;
  color: white;
  font-size: 10px;
  font-weight: 700;
  font-family: var(--font-mono);
  flex-shrink: 0;
}
.scene-mx-row .mx-loc {
  color: var(--text-2);
  font-family: var(--font-mono);
  font-size: 11px;
}
.scene-mx-row .mx-gmv {
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 600;
  color: var(--green);
  text-align: right;
}
.scene-mx-row .mx-gmv.st-warn { color: var(--amber); }
.scene-mx-row .mx-gmv.st-idle { color: var(--text-3); }
.scene-mx-foot {
  margin-top: auto;
  display: flex; justify-content: space-between; align-items: center;
  padding: 10px 14px;
  background: rgba(15,20,51,0.02);
  border-top: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-3);
}
.mx-live { display: inline-flex; align-items: center; gap: 6px; color: var(--green); }
.mx-live i {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--green) 20%, transparent);
  animation: mxPulse 1.6s ease-in-out infinite;
}
@keyframes mxPulse { 50% { box-shadow: 0 0 0 6px color-mix(in srgb, var(--green) 0%, transparent); } }

@media (max-width: 960px) {
  .scenes-v2 { grid-template-columns: 1fr; }
  .scene-hero { grid-column: span 1; grid-template-columns: 1fr; gap: 28px; padding: 28px; }
  .scene-hero h3 { font-size: 24px !important; }
}
.scene {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  position: relative;
  overflow: hidden;
  transition: all 200ms;
}
.scene:hover {
  border-color: var(--border-brand);
  background: linear-gradient(180deg, rgba(47,85,239,0.06), rgba(47,85,239,0));
}
.scene .scene-icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  display: grid; place-items: center;
  font-size: 20px;
  background: rgba(47,85,239,0.15);
  border: 1px solid var(--border-brand);
  color: var(--brand-2);
  margin-bottom: 20px;
}
.scene h3 { font-size: 20px; }
.scene p { margin-top: 8px; font-size: 14px; line-height: 1.6; }
.scene .scene-stats {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  display: flex;
  gap: 24px;
}
.scene .scene-stats > div .v {
  color: var(--text-0); font-size: 20px; font-weight: 600; font-family: var(--font-display);
  letter-spacing: -0.02em;
}
.scene .scene-stats > div .l {
  color: var(--text-3); font-size: 11px; font-family: var(--font-mono);
  margin-top: 4px;
}

/* ===== Pricing ===== */
.pricing-toggle {
  display: inline-flex;
  padding: 4px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  gap: 4px;
  margin-bottom: 40px;
}
.pricing-toggle button {
  background: transparent; border: none;
  color: var(--text-2); cursor: pointer;
  padding: 8px 18px; border-radius: 999px;
  font: inherit; font-size: 13px; font-weight: 500;
  transition: all 160ms;
  display: flex; align-items: center; gap: 8px;
}
.pricing-toggle button.on {
  background: var(--surface-2); color: var(--text-0);
}
.pricing-toggle .save {
  font-size: 10px;
  background: var(--green); color: #fff;
  padding: 2px 6px; border-radius: 4px;
  font-family: var(--font-mono);
}

.plans {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  align-items: stretch;
}
.plan {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 30px;
  display: flex; flex-direction: column;
  position: relative;
  transition: all 200ms;
}
.plan:hover { border-color: var(--border-strong); }
.plan.featured {
  border-color: var(--brand);
  background: linear-gradient(180deg, rgba(47,85,239,0.1), rgba(47,85,239,0));
  box-shadow: 0 0 0 1px var(--brand), 0 20px 60px -20px rgba(47,85,239,0.4);
}
.plan .plan-tag {
  position: absolute;
  top: -10px; left: 28px;
  background: var(--brand);
  color: #fff;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  font-family: var(--font-mono);
}
.plan .plan-name {
  font-size: 14px; color: var(--text-2);
  font-family: var(--font-mono); letter-spacing: 0.06em;
  text-transform: uppercase; font-weight: 500;
}
.plan .plan-price {
  margin-top: 14px;
  display: flex; align-items: baseline; gap: 4px;
}
.plan .plan-price .amt {
  font-size: 44px; font-weight: 700;
  color: var(--text-0); letter-spacing: -0.03em;
  line-height: 1;
}
.plan .plan-price .per { font-size: 13px; color: var(--text-3); }
.plan .plan-desc {
  margin-top: 14px; font-size: 13px;
  color: var(--text-2); min-height: 40px;
}
.plan .btn { margin-top: 22px; width: 100%; }
.plan .plan-features {
  margin-top: 26px; padding-top: 22px;
  border-top: 1px solid var(--border);
  list-style: none; padding-left: 0;
  display: flex; flex-direction: column; gap: 12px;
  font-size: 13px; color: var(--text-1);
}
.plan .plan-features li {
  display: flex; gap: 10px; align-items: flex-start;
}
.plan .plan-features li .c {
  color: var(--green); flex-shrink: 0;
  margin-top: 2px;
}
.plan .plan-features li.muted { color: var(--text-3); }
.plan .plan-features li.muted .c { color: var(--text-4); }

/* ===== FAQ ===== */
.faq {
  max-width: 860px; margin: 0 auto;
  display: flex; flex-direction: column;
  gap: 10px;
}
.faq-item {
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface);
  overflow: hidden;
  transition: border-color 200ms;
}
.faq-item.open { border-color: var(--border-brand); }
.faq-q {
  width: 100%; text-align: left;
  display: flex; justify-content: space-between; align-items: center;
  padding: 22px 26px;
  background: transparent; border: none;
  color: var(--text-0); font: inherit;
  font-size: 16px; font-weight: 500;
  cursor: pointer;
  letter-spacing: -0.01em;
}
.faq-q .plus {
  width: 24px; height: 24px;
  display: grid; place-items: center;
  color: var(--text-2);
  transition: transform 240ms;
}
.faq-item.open .plus { transform: rotate(45deg); color: var(--brand-2); }
.faq-a {
  max-height: 0; overflow: hidden;
  transition: max-height 280ms ease, padding 280ms ease;
  padding: 0 26px;
  color: var(--text-2); font-size: 14px; line-height: 1.7;
}
.faq-item.open .faq-a {
  max-height: 400px; padding: 0 26px 22px;
}

/* ===== CTA ===== */
.cta {
  position: relative;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 72px 48px;
  text-align: center;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(47,85,239,0.18), rgba(47,85,239,0.02));
}
.cta::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(500px 300px at 50% 0%, rgba(47,85,239,0.35), transparent 70%);
  pointer-events: none;
}
.cta h2 { position: relative; }
.cta p { position: relative; margin: 16px auto 32px; max-width: 520px; font-size: 16px; }
.cta .ctas { position: relative; display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }

/* ===== Footer ===== */
footer {
  border-top: 1px solid var(--border);
  padding: 72px 0 40px;
  margin-top: 60px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--border);
}
.footer-grid-slim {
  grid-template-columns: 2fr 1fr 1fr 1fr;
}
.footer-brand p {
  margin-top: 16px; font-size: 13px; max-width: 280px;
}
.footer-col h4 {
  font-size: 12px;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-family: var(--font-mono);
  font-weight: 500;
  margin-bottom: 16px;
}
.footer-col a {
  display: block;
  color: var(--text-2);
  text-decoration: none;
  font-size: 14px;
  margin-bottom: 10px;
  transition: color 160ms;
}
.footer-col a:hover { color: var(--text-0); }
.footer-bottom {
  padding-top: 28px;
  display: flex; justify-content: space-between;
  color: var(--text-3); font-size: 13px;
  flex-wrap: wrap; gap: 16px;
}

/* ===== Tweaks panel host styles ===== */
.tweaks-root { position: fixed; z-index: 100; }

/* ===== Reveal ===== */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 600ms, transform 600ms;
}
.reveal.in { opacity: 1; transform: translateY(0); }

/* ===== Hamburger (mobile nav) ===== */
.nav-burger {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
  cursor: pointer;
  padding: 0;
  color: var(--text-0);
}
.nav-burger svg { width: 22px; height: 22px; }

/* Drawer backdrop — sits behind the drawer, covers page below nav */
.nav-backdrop {
  display: none;
  position: fixed;
  inset: 68px 0 0 0;
  background: rgba(5, 7, 26, 0.5);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  z-index: 55;
  animation: navBdFade 180ms ease;
}
.nav-backdrop.open { display: block; }
@keyframes navBdFade { from { opacity: 0; } to { opacity: 1; } }

.nav-drawer {
  display: none;
  position: fixed;
  inset: 68px 0 auto 0;
  background: var(--bg-0);
  border-bottom: 1px solid var(--border);
  padding: 18px;
  z-index: 60;
  flex-direction: column;
  gap: 2px;
  max-height: calc(100vh - 68px);
  overflow-y: auto;
  animation: navDrawerIn 200ms ease;
}
@keyframes navDrawerIn { from { transform: translateY(-8px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
.nav-drawer a {
  display: block;
  padding: 14px 8px;
  min-height: 48px;
  color: var(--text-0);
  text-decoration: none;
  font-size: 16px;
  font-weight: 500;
  border-bottom: 1px solid var(--border);
}
.nav-drawer a:last-of-type { border-bottom: none; }
.nav-drawer .btn { margin-top: 14px; width: 100%; min-height: 48px; }
.nav-drawer.open { display: flex; }

/* Body scroll lock when drawer is open */
body.nav-open { overflow: hidden; }

/* ===== Responsive — tablet ≤1100 ===== */
@media (max-width: 1100px) {
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat { border-right: none; padding: 20px 0; }
  .stat:nth-child(odd) { border-right: 1px solid var(--border); }
  .plans { grid-template-columns: repeat(2, 1fr); }
  .tab-body { grid-template-columns: 1fr; }
  .tab-copy { border-right: none; border-bottom: 1px solid var(--border); }
  .scenes { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

/* ===== Responsive — tablet ≤960 ===== */
@media (max-width: 960px) {
  .container { padding: 0 28px; }
  .nav-links { display: none; }
  .nav-burger { display: inline-flex; }
  .nav-right .lang { display: none; }
  .nav-right .btn { padding: 10px 14px; font-size: 13px; }

  /* Download page */
  .dl-showcase { grid-template-columns: 1fr; gap: 32px; }
  .dl-security-head { grid-template-columns: 1fr; gap: 20px; }
  .dl-sec-grid { grid-template-columns: repeat(2, 1fr); }
  .dl-trust { grid-template-columns: repeat(4, 1fr); gap: 12px; }
  .dl-ts-grid, .dl-req-grid { grid-template-columns: 1fr; }
  .dl-steps { grid-template-columns: 1fr; }
  .dl-card-row { grid-template-columns: 1fr; }
  .dl-head { grid-template-columns: 1fr; gap: 32px; }

  /* Pricing page */
  .pricing-grid, .plans { grid-template-columns: 1fr; max-width: 480px; margin-left: auto; margin-right: auto; }
  .pricing-compare { overflow-x: auto; }
  .pricing-compare table { min-width: 640px; }
}

/* ===== Responsive — tablet ≤900 (legacy block kept minimal) ===== */

/* ===== Responsive — mobile ≤600 ===== */
@media (max-width: 600px) {
  :root { }
  .container { padding: 0 28px; }
  h1 { font-size: 34px !important; line-height: 1.1; letter-spacing: -0.02em; word-break: break-word; overflow-wrap: anywhere; hyphens: auto; }
  h2 { font-size: 26px !important; line-height: 1.18; letter-spacing: -0.02em; word-break: break-word; }
  h3 { font-size: 19px; }
  .hero { padding: 32px 0 20px; }
  .hero-text h1 { font-size: 34px !important; }
  .hero h1.hero-h1 > span.underline-wrap { display: block; }
  .hero h1.hero-h1 > span.underline { display: inline; }
  .hero-sub { font-size: 15.5px; margin-top: 16px; }
  .hero-cta { margin-top: 24px; gap: 10px; }
  .hero-cta .btn { width: 100%; justify-content: center; min-height: 48px; }
  .hero-meta { font-size: 12px; gap: 12px; }
  section.block { padding-top: 60px; padding-bottom: 60px; }
  .section-head { margin-bottom: 40px; }
  .section-head p { font-size: 15px; }
  .floating-card { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px 20px; }

  /* Buttons — comfortable touch target */
  .btn { padding: 12px 18px; font-size: 14px; min-height: 44px; }
  .btn-lg { min-height: 48px; }
  .btn-sm { min-height: 40px; }

  /* Download page */
  .dl-hero-badges { flex-direction: column; gap: 10px; align-items: flex-start; }
  .dl-hero-badges .dl-badge { font-size: 12px; }
  .dl-trust { grid-template-columns: repeat(2, 1fr); gap: 20px 12px; padding: 20px 16px; }
  .dl-trust .t-num { font-size: 24px; }
  .dl-trust .t-lbl { font-size: 11px; }
  .dl-sec-grid { grid-template-columns: 1fr; }
  .dl-hash-row { grid-template-columns: 1fr !important; gap: 8px; padding: 14px 16px; }
  .dl-hash-row .file { font-size: 13px; }
  .dl-hash-row .hash { font-size: 11px; word-break: break-all; }
  .dl-hash-row .copy { align-self: flex-start; }

  /* dl-mock — collapse env rows to single-column card */
  .dl-mock { font-size: 12px; }
  .dl-mock-side { display: none; }
  .dl-mock-inner { grid-template-columns: 1fr !important; gap: 12px; }
  .dl-mock-env {
    grid-template-columns: 32px 1fr auto !important;
    gap: 10px !important;
    padding: 10px 12px !important;
    row-gap: 4px;
  }
  .dl-mock-env .avatar { width: 28px !important; height: 28px !important; }
  .dl-mock-env .name-col { min-width: 0; }
  .dl-mock-env .name-col .n { font-size: 13px; }
  .dl-mock-env .name-col .s { font-size: 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .dl-mock-env .cell { display: none !important; }
  .dl-mock-env .status {
    grid-column: 2 / 3;
    justify-self: start;
    font-size: 9px !important;
    padding: 2px 6px !important;
  }
  .dl-mock-env .more { align-self: center; }
  .dl-showcase-list li { font-size: 14px; }

  /* Pricing page — compare table to card stack */
  .plans { grid-template-columns: 1fr; }
  .plan { padding: 28px 22px; }
  .pr-table-wrap {
    overflow: visible !important;
    background: transparent !important;
    border: none !important;
  }
  .pr-table {
    min-width: 0 !important;
    display: block;
    font-size: 13px;
  }
  .pr-table thead { display: none; }
  .pr-table tbody,
  .pr-table tr { display: block; }
  .pr-table .sect-row td {
    display: block;
    padding: 20px 0 10px !important;
    background: transparent !important;
    border: none !important;
    font-size: 11px;
    color: var(--brand);
    letter-spacing: 0.1em;
  }
  .pr-table tbody tr:not(.sect-row) {
    display: block;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 14px 16px;
    margin-bottom: 10px;
    box-shadow: 0 1px 2px rgba(15, 27, 74, 0.04);
  }
  .pr-table tbody tr:not(.sect-row) td {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0 !important;
    border: none !important;
    border-bottom: 1px dashed var(--border) !important;
    color: var(--text-1);
    gap: 12px;
  }
  .pr-table tbody tr:not(.sect-row) td:last-child { border-bottom: none !important; }
  .pr-table tbody tr:not(.sect-row) td:first-child {
    font-weight: 600;
    color: var(--text-0);
    border-bottom: 1px solid var(--border) !important;
    padding-bottom: 10px !important;
    margin-bottom: 4px;
    justify-content: flex-start;
  }
  .pr-table tbody tr:not(.sect-row) td:not(:first-child)::before {
    content: attr(data-plan);
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-3);
    font-weight: 500;
  }
  .pr-table td.featured { background: transparent !important; }

  /* Tab content (index) */
  .tab-copy { padding: 24px 18px; }
  .tab-visual { padding: 24px 18px; }
  .tabs-nav { flex-wrap: wrap; gap: 8px; padding: 10px; }
  .tabs-nav button { flex: 1 1 40%; font-size: 13px; }

  /* Features page */
  .features { grid-template-columns: 1fr !important; }
  .feature { grid-column: span 1 !important; padding: 28px 22px; }
  .feature.f-tall { min-height: auto; }

  /* Nav burger bigger */
  .nav-burger { width: 44px; height: 44px; }
}

/* ===== Very small phones ===== */
@media (max-width: 380px) {
  .container { padding: 0 20px; }
  h1 { font-size: 32px !important; }
  h2 { font-size: 24px !important; }
  .dl-trust { grid-template-columns: repeat(2, 1fr); }
  .hero-badge { flex-wrap: wrap; font-size: 11px; }
}
