/* ════════════════════════════════════════════════════════════
   SocioVerse2 marketing homepage — static, no build step.
   Brand tokens mirror web-based/socioverse2-project (DM Sans /
   Playfair Display, orange #e67e22 accent, glass cards).
   ════════════════════════════════════════════════════════════ */

:root {
  --accent: #e67e22;
  --accent-2: #f97316;
  --blue: #2563eb;
  --green: #059669;
  --purple: #7c3aed;
  --red: #dc2626;
  --grad-accent: linear-gradient(135deg, #e67e22 0%, #f97316 100%);
  --grad-blue: linear-gradient(135deg, #2563eb 0%, #4f46e5 100%);

  --font: 'DM Sans', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'Noto Sans CJK SC', sans-serif;
  --font-display: 'Playfair Display', 'Songti SC', 'STSong', 'Noto Serif CJK SC', 'SimSun', serif;
  --font-mono: 'JetBrains Mono', monospace;

  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 20px;

  --bg: #f8f9fc;
  --bg-card: rgba(255, 255, 255, 0.82);
  --bg-glass: rgba(0, 0, 0, 0.025);
  --bg-nav: rgba(248, 249, 252, 0.85);
  --bg-alt: #f1f3f9;
  --border: rgba(0, 0, 0, 0.08);
  --border-strong: rgba(0, 0, 0, 0.14);
  --text: #16181d;
  --text-2: #4b5160;
  --text-3: #8a90a0;
  --shadow: 0 10px 32px rgba(20, 24, 40, 0.08);
  --shadow-sm: 0 3px 12px rgba(20, 24, 40, 0.06);
  --hero-glow-1: rgba(230, 126, 34, 0.16);
  --hero-glow-2: rgba(37, 99, 235, 0.12);
}

[data-theme="dark"] {
  --bg: #0d1017;
  --bg-card: rgba(23, 27, 38, 0.82);
  --bg-glass: rgba(255, 255, 255, 0.04);
  --bg-nav: rgba(13, 16, 23, 0.82);
  --bg-alt: #11151f;
  --border: rgba(255, 255, 255, 0.09);
  --border-strong: rgba(255, 255, 255, 0.16);
  --text: #edeff4;
  --text-2: #a7adbd;
  --text-3: #6b7284;
  --shadow: 0 12px 36px rgba(0, 0, 0, 0.42);
  --shadow-sm: 0 3px 12px rgba(0, 0, 0, 0.3);
  --hero-glow-1: rgba(230, 126, 34, 0.14);
  --hero-glow-2: rgba(79, 70, 229, 0.16);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  transition: background 0.35s ease, color 0.35s ease;
}
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(120, 120, 140, 0.28); border-radius: 3px; }
::selection { background: rgba(230, 126, 34, 0.25); }

.container { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.mono { font-family: var(--font-mono); }
a { color: inherit; text-decoration: none; }
em { font-style: italic; }

/* ─────────────── reveal on scroll ─────────────── */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.in { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  * { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; }
}

/* ─────────────── nav ─────────────── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  background: var(--bg-nav);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.nav-inner { display: flex; align-items: center; gap: 28px; height: 62px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 17px; }
.logo sup { color: var(--accent); font-family: var(--font-display); font-style: italic; }
.logo-text .b2 { background: linear-gradient(135deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  font-weight: 800; font-size: 1.14em; margin-left: 1.5px; }
.logo-mark {
  display: inline-flex; align-items: center; justify-content: center;
  width: 30px; height: 30px; border-radius: 8px;
  background: var(--grad-accent); color: #fff;
  font-family: var(--font-display); font-weight: 800; font-size: 17px;
  box-shadow: 0 3px 10px rgba(230, 126, 34, 0.35);
}
.logo-mark-sm { width: 24px; height: 24px; font-size: 14px; border-radius: 6px; }
.nav-links { display: flex; gap: 22px; margin-left: auto; }
.nav-links a { font-size: 14.5px; color: var(--text-2); font-weight: 500; transition: color 0.2s; }
.nav-links a:hover { color: var(--accent); }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.nav-links + .nav-actions { margin-left: 0; }
.icon-btn {
  width: 34px; height: 34px; border-radius: 9px; border: 1px solid var(--border);
  background: var(--bg-glass); color: var(--text-2); cursor: pointer;
  font-size: 15px; font-family: var(--font); font-weight: 600;
  transition: all 0.2s; display: inline-flex; align-items: center; justify-content: center;
}
.icon-btn:hover { border-color: var(--accent); color: var(--accent); }
.nav-burger { display: none; }

/* mobile nav dropdown */
@media (max-width: 860px) {
  .nav-links {
    display: none; position: absolute; top: 62px; left: 0; right: 0;
    flex-direction: column; gap: 0; background: var(--bg-nav);
    backdrop-filter: blur(14px); border-bottom: 1px solid var(--border);
    padding: 8px 24px 14px;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 10px 0; border-bottom: 1px dashed var(--border); }
  .nav-links a:last-child { border-bottom: none; }
  .nav-burger { display: inline-flex; }
  #github-btn { display: none; }
}

/* ─────────────── buttons ─────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 24px; border-radius: var(--radius); border: 1px solid transparent;
  font-family: var(--font); font-size: 15px; font-weight: 600; cursor: pointer;
  transition: all 0.22s ease;
}
.btn-sm { padding: 7px 14px; font-size: 13.5px; border-radius: 9px; }
.btn-primary {
  background: var(--grad-accent); color: #fff;
  box-shadow: 0 6px 20px rgba(230, 126, 34, 0.35);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 26px rgba(230, 126, 34, 0.45); }
.btn-ghost { border-color: var(--border-strong); color: var(--text-2); background: var(--bg-glass); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn-block { width: 100%; }
.soon-chip {
  font-size: 10px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  padding: 2px 7px; border-radius: 999px;
  background: rgba(230, 126, 34, 0.14); color: var(--accent);
}

/* ─────────────── hero ─────────────── */
.hero { position: relative; padding: 150px 0 84px; overflow: hidden; }
.hero-bg {
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(46rem 30rem at 12% -8%, var(--hero-glow-1), transparent 60%),
    radial-gradient(42rem 30rem at 92% 12%, var(--hero-glow-2), transparent 62%);
}
.hero-grid {
  display: grid; grid-template-columns: 1.08fr 0.92fr;
  gap: 56px; align-items: center;
}
.badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px; border-radius: 999px; margin-bottom: 22px;
  border: 1px solid rgba(230, 126, 34, 0.35);
  background: rgba(230, 126, 34, 0.1);
  color: var(--accent); font-size: 13px; font-weight: 700; letter-spacing: 0.02em;
}
.badge::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent); animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse { 0%, 100% { opacity: 0.4; } 50% { opacity: 1; } }
.h1 {
  font-family: var(--font-display);
  font-size: clamp(38px, 5.2vw, 58px);
  line-height: 1.12; font-weight: 700; letter-spacing: -0.015em;
  margin-bottom: 22px;
}
.h1 em {
  background: var(--grad-accent);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.lead { font-size: 17.5px; color: var(--text-2); max-width: 54ch; margin-bottom: 30px; }
.lead strong { color: var(--text); font-weight: 600; }
.cta-row { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-note { margin-top: 18px; font-family: var(--font-mono); font-size: 12.5px; color: var(--text-3); }

/* hero visual */
.glass {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.hero-visual { padding: 18px 18px 16px; }

/* header strip: window dots · title · step counter · live dot */
.sim-head {
  display: flex; align-items: center; gap: 10px;
  font-size: 11.5px; color: var(--text-3); margin-bottom: 12px; padding: 0 4px;
}
.sim-dots { display: inline-flex; gap: 5px; }
.sim-dots i {
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--border-strong);
}
.sim-title { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sim-step { color: var(--text-3); }
.sim-step b { color: var(--accent); font-weight: 600; }
.dot-live {
  width: 8px; height: 8px; border-radius: 50%; background: var(--green);
  box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.18);
  animation: pulse 1.6s ease-in-out infinite;
}

/* the toy society */
.sim-stage {
  position: relative; aspect-ratio: 16 / 10; overflow: hidden;
  border: 1px solid var(--border); border-radius: 14px;
  background-image: radial-gradient(var(--border) 1px, transparent 1px);
  background-size: 20px 20px;
}
#sim-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
/* P legend — the three swatches name the three groups in the canvas */
.float-chip {
  position: absolute; z-index: 2;
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-mono); font-size: 10.5px; font-weight: 600;
  padding: 4px 11px; border-radius: 999px;
  background: var(--bg-card); border: 1px solid var(--border-strong);
  color: var(--text-2); box-shadow: var(--shadow-sm);
  animation: chipFloat 5.5s ease-in-out infinite;
}
.float-chip b {
  font-family: var(--font-display); font-style: italic;
  font-size: 12.5px; font-weight: 700; color: var(--accent);
}
.chip-p { top: 10px; left: 10px; }
.sw { display: inline-block; width: 7px; height: 7px; border-radius: 50%; }
.sw1 { background: #f43f5e; }
.sw2 { background: #3b82f6; }
.sw3 { background: #10b981; }
@keyframes chipFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

/* E tag — pops at the exact point where the event ripple starts */
.event-tag {
  position: absolute; z-index: 3; left: 50%; top: 40%;
  display: inline-flex; align-items: center; gap: 5px;
  font-family: var(--font-mono); font-size: 10.5px; font-weight: 600;
  padding: 4px 10px; border-radius: 999px;
  background: var(--bg-card); border: 1px solid var(--accent);
  color: var(--accent);
  box-shadow: 0 0 0 4px rgba(230, 126, 34, 0.14), var(--shadow-sm);
  transform: translate(-50%, -130%) scale(0.7);
  opacity: 0; pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.event-tag b {
  font-family: var(--font-display); font-style: italic;
  font-size: 12.5px; font-weight: 700;
}
.event-tag.show { opacity: 1; transform: translate(-50%, -130%) scale(1); }

/* P × E → B flow bar */
.flow-bar {
  position: relative;
  display: flex; align-items: center; justify-content: center; gap: 10px;
  margin-top: 16px; padding-bottom: 10px;
}
.flow-bar::after {
  content: ""; position: absolute; bottom: 0; left: 12%; right: 12%; height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, transparent 0%, var(--accent) 50%, transparent 100%);
  background-size: 45% 100%; background-repeat: no-repeat;
  animation: flowSweep 2.4s linear infinite;
  opacity: 0.75;
}
@keyframes flowSweep {
  0% { background-position: -80% 0; }
  100% { background-position: 180% 0; }
}
/* pills are deliberately neutral — group colors in the canvas mean
   groups of people, never the P/E/B concepts (accent letters only) */
.flow-node {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 6px 13px; border-radius: 999px;
  font-size: 12.5px; font-weight: 600; color: var(--text-2);
  border: 1px solid var(--border-strong); background: var(--bg-glass);
  transition: color 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.flow-node b {
  font-family: var(--font-display); font-style: italic;
  font-size: 15px; color: var(--accent);
}
.flow-e.ping {
  color: var(--accent); border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(230, 126, 34, 0.15);
}
.flow-op { color: var(--text-3); font-weight: 700; font-size: 15px; }

/* behavior ticker + self-drawing sparkline */
.sim-ticker {
  display: flex; align-items: center; gap: 10px;
  margin-top: 4px; padding: 12px 4px 0;
  border-top: 1px dashed var(--border);
  font-size: 11.5px; color: var(--text-2);
}
.tick-tag {
  flex-shrink: 0; width: 20px; height: 20px; border-radius: 6px;
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-style: italic; font-weight: 700; font-size: 12px;
  color: var(--accent); background: var(--bg-glass);
  border: 1px solid var(--border-strong);
}
#ticker-text { flex: 1; transition: opacity 0.28s ease; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.spark { width: 104px; height: 24px; flex-shrink: 0; }
.spark path {
  fill: none; stroke: var(--accent); stroke-width: 2; stroke-linecap: round;
  stroke-dasharray: 100 100;
  animation: sparkDraw 5s ease-in-out infinite;
}
@keyframes sparkDraw {
  0% { stroke-dashoffset: 100; opacity: 1; }
  55% { stroke-dashoffset: 0; opacity: 1; }
  88% { stroke-dashoffset: 0; opacity: 1; }
  97% { stroke-dashoffset: 0; opacity: 0; }
  100% { stroke-dashoffset: 100; opacity: 0; }
}

/* ─────────────── stats ─────────────── */
.stats { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: var(--bg-alt); }
.stats-row {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 18px; padding: 34px 24px;
}
.stat { text-align: center; }
.stat-num {
  display: block; font-family: var(--font-display); font-weight: 800;
  font-size: 40px; line-height: 1.1;
  background: var(--grad-accent);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.stat-label { font-size: 13.5px; color: var(--text-2); }

/* ─────────────── sections ─────────────── */
.section { padding: 92px 0; }
.section-alt { background: var(--bg-alt); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 54px; }
.kicker {
  display: inline-block; font-family: var(--font-mono); font-size: 12px; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); margin-bottom: 14px;
}
.h2 {
  font-family: var(--font-display); font-size: clamp(28px, 3.6vw, 40px);
  font-weight: 700; line-height: 1.18; letter-spacing: -0.01em; margin-bottom: 16px;
}
.h2 em {
  font-style: italic;
  background: var(--grad-accent);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.section-sub { color: var(--text-2); font-size: 16px; }

/* ─────────────── features ─────────────── */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 28px 26px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--border-strong); }
.feat-icon {
  width: 44px; height: 44px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; margin-bottom: 18px; color: var(--fi, var(--accent));
  background: color-mix(in srgb, var(--fi, var(--accent)) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--fi, var(--accent)) 28%, transparent);
}
.card h3 { font-size: 17.5px; font-weight: 700; margin-bottom: 10px; letter-spacing: -0.01em; }
.card p { font-size: 14.5px; color: var(--text-2); }

/* ─────────────── cases ─────────────── */
.case-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.case-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 30px 28px;
  box-shadow: var(--shadow-sm); position: relative; overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.case-card::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: var(--grad-accent); opacity: 0.85;
}
.case-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.case-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.case-domain { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.04em; color: var(--text-3); text-transform: uppercase; }
.path-badge {
  font-size: 11px; font-weight: 700; padding: 4px 10px; border-radius: 999px; white-space: nowrap;
}
.path-b { background: rgba(37, 99, 235, 0.12); color: var(--blue); }
.path-c { background: rgba(5, 150, 105, 0.12); color: var(--green); }
.case-card h3 { font-family: var(--font-display); font-size: 21px; font-weight: 700; line-height: 1.3; margin-bottom: 12px; }
.case-card > p { font-size: 14.5px; color: var(--text-2); margin-bottom: 18px; }
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; }
.case-demo { display: inline-block; margin-top: 16px; font-size: 14px; font-weight: 600; color: var(--accent); text-decoration: none; }
.case-demo:hover { text-decoration: underline; }
.chip {
  font-size: 11.5px; padding: 4px 10px; border-radius: 7px;
  background: var(--bg-glass); border: 1px solid var(--border); color: var(--text-2);
}

/* ─────────────── workflow ─────────────── */
.workflow-strip {
  display: flex; align-items: stretch; justify-content: center; gap: 10px;
  flex-wrap: wrap;
}
.step {
  flex: 1 1 150px; max-width: 200px;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 18px 16px;
  box-shadow: var(--shadow-sm); text-align: center;
  display: flex; flex-direction: column; gap: 8px;
  transition: border-color 0.25s ease, transform 0.25s ease;
}
.step:hover { border-color: var(--accent); transform: translateY(-3px); }
.step-cmd { font-size: 12.5px; font-weight: 600; color: var(--accent); word-break: break-all; }
.step-desc { font-size: 12.5px; color: var(--text-2); }
.step-arrow { align-self: center; color: var(--text-3); font-size: 18px; }
@media (max-width: 860px) { .step-arrow { display: none; } .step { max-width: none; } }

/* ─────────────── demo videos ─────────────── */
.demo-grid { display: block; }
.video-slot {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.video-slot:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.video-frame { position: relative; aspect-ratio: 16 / 9; background: var(--bg-alt); }
.video-frame video { width: 100%; height: 100%; display: block; object-fit: cover; }
.video-ph {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 10px;
  background:
    radial-gradient(24rem 14rem at 30% 20%, var(--hero-glow-1), transparent 65%),
    radial-gradient(22rem 14rem at 80% 90%, var(--hero-glow-2), transparent 65%);
}
.video-ph-play {
  width: 52px; height: 52px; border-radius: 50%;
  background: var(--bg-card); border: 1px solid var(--border-strong);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; color: var(--accent); box-shadow: var(--shadow-sm);
}
.video-ph-label {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--text-3);
}
.video-meta { padding: 18px 20px 20px; }
.video-meta h3 { font-size: 16px; font-weight: 700; margin-bottom: 6px; }
.video-meta p { font-size: 13.5px; color: var(--text-2); }

/* ─────────────── contact ─────────────── */
.contact-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.contact-copy .section-sub { margin-bottom: 26px; }
.contact-reg-note {
  margin-top: 26px; padding: 14px 16px; border-radius: var(--radius);
  border: 1px dashed var(--border-strong); background: var(--bg-glass);
  font-size: 13.5px; color: var(--text-2);
}
.form { padding: 30px 28px; }
.form-row { margin-bottom: 18px; }
.form-row label { display: block; font-size: 13.5px; font-weight: 600; margin-bottom: 7px; }
.form-row .opt { color: var(--text-3); font-weight: 400; }
.input {
  width: 100%; padding: 11px 14px; border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong); background: var(--bg);
  color: var(--text); font-family: var(--font); font-size: 14.5px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(230, 126, 34, 0.15); }
.input.invalid { border-color: var(--red); }
.textarea { resize: vertical; min-height: 96px; }
.form-note { margin-top: 14px; font-size: 12.5px; color: var(--text-3); text-align: center; }

/* ─────────────── footer ─────────────── */
.footer { border-top: 1px solid var(--border); background: var(--bg-alt); }
.footer-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 30px 24px; flex-wrap: wrap;
}
.footer-brand { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 14.5px; }
.footer-brand sup { color: var(--accent); font-family: var(--font-display); font-style: italic; }
.footer-brand .mono { color: var(--text-3); font-size: 13px; }
.footer-links { display: flex; gap: 22px; font-size: 14px; color: var(--text-2); }
.footer-links a:hover { color: var(--accent); }
.footer-copy { font-size: 13px; color: var(--text-3); }

/* ─────────────── toast ─────────────── */
.toast {
  position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 16px);
  background: var(--text); color: var(--bg);
  padding: 12px 22px; border-radius: 999px; font-size: 14px; font-weight: 500;
  box-shadow: var(--shadow); opacity: 0; pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease; z-index: 90;
  max-width: min(90vw, 480px); text-align: center;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ─────────────── responsive ─────────────── */
@media (max-width: 1020px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .demo-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  .hero { padding: 120px 0 60px; }
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .stats-row { grid-template-columns: repeat(2, 1fr); }
  .case-grid { grid-template-columns: 1fr; }
  .contact-wrap { grid-template-columns: 1fr; gap: 36px; }
  .section { padding: 68px 0; }
}
@media (max-width: 560px) {
  .grid-3 { grid-template-columns: 1fr; }
  .demo-grid { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; text-align: center; }
}

/* ── nav account avatar + hover panel ─────────────────────── */
.acct { position: relative; display: flex; align-items: center; }
/* 透明桥：跨过头像与悬浮卡之间的空隙，鼠标移动过去时 .acct:hover 不断 */
.acct::after { content: ""; position: absolute; top: 100%; right: 0; width: 60px; height: 16px; }
.acct-avatar {
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--grad-accent); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 15px; text-decoration: none;
  box-shadow: 0 2px 8px rgba(230, 126, 34, 0.35);
  transition: transform .15s ease, box-shadow .15s ease;
  user-select: none;
}
.acct-avatar:hover { transform: translateY(-1px); box-shadow: 0 5px 14px rgba(230, 126, 34, 0.45); }
.acct-avatar.signin { background: var(--bg-glass); color: var(--text-2); border: 1px solid var(--border-strong); font-size: 13px; box-shadow: none; }
.acct-pop {
  position: absolute; right: 0; top: calc(100% + 10px); min-width: 230px;
  background: var(--bg-card); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.16);
  padding: 13px 15px; z-index: 60;
  opacity: 0; visibility: hidden; transform: translateY(-4px);
  /* 隐藏时延迟 0.35s，给鼠标从头像移到卡片的时间；显示时无延迟 */
  transition: opacity .16s ease .35s, transform .16s ease .35s, visibility 0s .51s;
  pointer-events: none; font-size: 13px;
}
.acct:hover .acct-pop, .acct:focus-within .acct-pop {
  opacity: 1; visibility: visible; transform: translateY(0); pointer-events: auto;
  transition-delay: 0s;
}
.acct-pop .ap-mail { font-weight: 600; color: var(--text); margin-bottom: 9px; word-break: break-all; }
.acct-pop .ap-row { display: flex; justify-content: space-between; gap: 12px; color: var(--text-2); padding: 3px 0; }
.acct-pop .ap-row b { color: var(--text); font-variant-numeric: tabular-nums; }
.acct-pop .ap-sep { border-top: 1px solid var(--border); margin: 9px 0; }
.acct-pop .ap-links { display: flex; justify-content: space-between; align-items: center; }
.acct-pop .ap-links a, .acct-pop .ap-links button {
  font-size: 12.5px; color: var(--accent); text-decoration: none; background: none; border: none; cursor: pointer; padding: 0;
}
.acct-pop .ap-links .ap-logout { color: var(--red); opacity: .85; }

/* ── intro video：置顶大卡 + 居中弹窗 ─────────────────────── */
.video-featured {
  position: relative; max-width: 980px; margin: 0 auto; aspect-ratio: 16 / 9;
  border-radius: var(--radius-lg); overflow: hidden; cursor: pointer;
  border: 1px solid var(--border); box-shadow: var(--shadow); background: var(--bg-alt);
}
.video-featured .vf-poster {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform 0.4s ease;
}
.video-featured:hover .vf-poster { transform: scale(1.025); }
.video-featured::after {           /* 轻压暗让播放键始终可读 */
  content: ""; position: absolute; inset: 0; background: rgba(0, 0, 0, 0.10);
  transition: background 0.25s ease;
}
.video-featured:hover::after { background: rgba(0, 0, 0, 0.16); }
.vf-play {
  position: absolute; inset: 0; margin: auto; width: 92px; height: 92px; z-index: 2;
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  background: rgba(255, 255, 255, 0.94); color: #e67e22;
  box-shadow: 0 12px 44px rgba(0, 0, 0, 0.35);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}
.vf-play svg { margin-left: 5px; }
.video-featured:hover .vf-play { transform: scale(1.08); box-shadow: 0 16px 54px rgba(0, 0, 0, 0.4); }

#video-modal { position: fixed; inset: 0; z-index: 1200; display: flex; align-items: center; justify-content: center; }
.vm-backdrop {
  position: absolute; inset: 0; background: rgba(18, 16, 13, 0.78);
  backdrop-filter: blur(7px); -webkit-backdrop-filter: blur(7px);
  animation: vmFade 0.25s ease;
}
.vm-body {
  position: relative; width: min(1100px, 90vw); animation: vmPop 0.28s cubic-bezier(0.2, 0.9, 0.3, 1.2);
}
.vm-body video {
  width: 100%; max-height: 82vh; display: block; background: #000;
  border-radius: 16px; box-shadow: 0 34px 110px rgba(0, 0, 0, 0.55);
}
.vm-close {
  position: absolute; top: -46px; right: -4px; width: 36px; height: 36px;
  border: none; border-radius: 50%; cursor: pointer; font-size: 15px;
  background: rgba(255, 255, 255, 0.16); color: #fff;
  transition: background 0.2s ease, transform 0.2s ease;
}
.vm-close:hover { background: rgba(255, 255, 255, 0.3); transform: scale(1.08); }
@keyframes vmFade { from { opacity: 0; } }
@keyframes vmPop { from { opacity: 0; transform: scale(0.94) translateY(10px); } }
@media (max-width: 860px) {
  .vf-play { width: 68px; height: 68px; }
  .vm-close { top: auto; bottom: -50px; right: calc(50% - 18px); }
}
