:root {
  color-scheme: dark;
  --bg: #070a0f;
  --bg-soft: #0d1219;
  --panel: rgba(18, 25, 37, 0.86);
  --panel-strong: rgba(24, 33, 48, 0.96);
  --line: rgba(156, 169, 194, 0.22);
  --text: #f7f9fd;
  --muted: #a8b2c3;
  --red: #ff3b4f;
  --cyan: #22d3ee;
  --blue: #4f8cff;
  --green: #40d98f;
  --orange: #ff9f32;
  --shadow: 0 28px 90px rgba(0, 0, 0, 0.4);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  background:
    radial-gradient(circle at 12% 8%, rgba(255, 59, 79, 0.16), transparent 30rem),
    radial-gradient(circle at 84% 10%, rgba(34, 211, 238, 0.11), transparent 32rem),
    var(--bg);
  color: var(--text);
}

a { color: inherit; }
.progress {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 40;
  width: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--red), var(--cyan));
}

.nav {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 14px 5vw;
  border-bottom: 1px solid var(--line);
  background: rgba(7, 10, 15, 0.78);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font-weight: 900;
}

.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 54px;
  height: 28px;
  border-radius: 6px;
  background: var(--red);
  color: #fff;
  font-size: 13px;
}

.nav-links {
  display: flex;
  gap: 18px;
  font-size: 14px;
  color: var(--muted);
}

.nav-links a {
  text-decoration: none;
}

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

.hero {
  position: relative;
  min-height: calc(100vh - 58px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) 420px;
  gap: 44px;
  align-items: center;
  padding: 7vh 5vw 7vh;
  overflow: hidden;
}

.hero-grid {
  position: absolute;
  inset: 0;
  opacity: 0.34;
  background-image:
    linear-gradient(rgba(255,255,255,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.06) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(circle at 55% 40%, #000, transparent 72%);
}

.hero-copy,
.hero-panel,
.section {
  position: relative;
  z-index: 1;
}

.eyebrow,
.section-kicker {
  margin: 0 0 14px;
  color: var(--cyan);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1, h2, h3, p { margin-top: 0; }
h1 {
  margin-bottom: 24px;
  max-width: 980px;
  font-size: clamp(48px, 6.5vw, 96px);
  line-height: 1.02;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 14px;
  font-size: clamp(30px, 4vw, 56px);
  line-height: 1.1;
}

h3 { line-height: 1.28; }
.subtitle,
.section-head p {
  max-width: 820px;
  color: #c8d1df;
  font-size: 18px;
  line-height: 1.8;
}

.contact-title {
  margin: -8px 0 18px;
  color: #d7deea;
  font-size: 18px;
  line-height: 1.7;
  font-weight: 700;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

.hero-why {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 34px;
}

.hero-why article {
  min-height: 168px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(18, 25, 37, 0.7);
}

.hero-why span {
  display: block;
  margin-bottom: 14px;
  color: var(--red);
  font-weight: 900;
}

.hero-why h3 {
  margin-bottom: 8px;
  font-size: 18px;
}

.hero-why p,
.signal-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}

.primary-btn,
.ghost-btn,
.scene-btn,
.video-chip {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 7px;
  font-weight: 900;
  text-decoration: none;
  cursor: pointer;
}

.primary-btn {
  padding: 0 24px;
  background: linear-gradient(135deg, var(--red), #b832ff);
  color: #fff;
}

.ghost-btn {
  padding: 0 22px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
}

.hero-panel {
  display: grid;
  gap: 18px;
}

.signal-card,
.metric-strip div,
.pain-grid article,
.theme-summary,
.scene-card,
.customer-card,
.finance-map,
.modal-card {
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: var(--shadow);
}

.signal-card {
  padding: 28px;
  border-radius: 8px;
}

.signal-card span {
  display: block;
  margin-bottom: 12px;
  color: var(--red);
  font-weight: 900;
}

.signal-card strong {
  display: block;
  margin-bottom: 14px;
  font-size: 24px;
  line-height: 1.55;
}

.metric-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.metric-strip div {
  min-height: 116px;
  padding: 18px 14px;
  border-radius: 8px;
}

.metric-strip b {
  display: block;
  color: var(--cyan);
  font-size: 34px;
}

.metric-strip span {
  display: block;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.section {
  padding: 88px 5vw;
}

.section-head {
  margin-bottom: 34px;
}

.section-head.compact {
  margin-bottom: 24px;
}

.pain-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.pain-grid article {
  min-height: 220px;
  padding: 26px;
  border-radius: 8px;
}

.pain-grid span {
  display: block;
  margin-bottom: 24px;
  color: var(--red);
  font-weight: 900;
}

.pain-grid p {
  color: var(--muted);
  line-height: 1.7;
}

.map-section {
  background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.04));
}

.map-workspace {
  display: grid;
  grid-template-columns: minmax(300px, 1fr) minmax(620px, 2fr);
  gap: 24px;
  align-items: stretch;
}

.finance-map {
  position: relative;
  min-height: 760px;
  border-radius: 10px;
  overflow: hidden;
  background:
    linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px),
    radial-gradient(circle at 50% 48%, rgba(34, 211, 238, 0.16), transparent 24rem),
    rgba(11, 16, 24, 0.9);
  background-size: 42px 42px, 42px 42px, auto, auto;
}

.map-core {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 2;
  width: 150px;
  min-height: 118px;
  transform: translate(-50%, -50%);
  display: grid;
  place-items: center;
  align-content: center;
  text-align: center;
  padding: 18px;
  border-radius: 10px;
  border: 1px solid rgba(34, 211, 238, 0.42);
  background: rgba(7, 12, 20, 0.92);
  box-shadow: 0 0 60px rgba(34, 211, 238, 0.18);
}

.core-ring {
  position: absolute;
  inset: -10px;
  border: 1px dashed rgba(34, 211, 238, 0.38);
  border-radius: 14px;
  animation: pulse 2.7s ease-in-out infinite;
}

.map-core strong {
  font-size: 18px;
}

.map-core span {
  margin-top: 10px;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.6;
}

.map-node {
  position: absolute;
  z-index: 3;
  width: 148px;
  min-height: 112px;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 8px;
  text-align: left;
  color: var(--text);
  background: rgba(20, 29, 44, 0.9);
  box-shadow: 0 18px 60px rgba(0,0,0,0.28);
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.map-node:hover,
.map-node.active {
  transform: translateY(-5px);
  border-color: rgba(255, 59, 79, 0.72);
  background: rgba(35, 42, 58, 0.96);
}

.map-node span {
  display: block;
  color: var(--cyan);
  font-weight: 900;
  font-size: 13px;
}

.map-node b {
  display: block;
  margin: 6px 0;
  font-size: 16px;
}

.map-node small {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
}

.node-gl { left: 5%; top: 9%; }
.node-treasury { right: 5%; top: 11%; }
.node-ar { left: 5%; bottom: 14%; }
.node-ap { right: 5%; bottom: 14%; }
.line {
  position: absolute;
  z-index: 1;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(34, 211, 238, 0.7), transparent);
  transform-origin: center;
}

.line-gl { width: 170px; left: 24%; top: 33%; transform: rotate(31deg); }
.line-treasury { width: 170px; right: 24%; top: 33%; transform: rotate(-31deg); }
.line-ar { width: 170px; left: 24%; bottom: 32%; transform: rotate(-31deg); }
.line-ap { width: 170px; right: 24%; bottom: 32%; transform: rotate(31deg); }

.scene-panel {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 18px;
  min-height: 760px;
}

.theme-summary {
  padding: 22px 24px;
  border-radius: 8px;
  min-height: 0;
}

.case-area {
  min-height: 0;
}

.theme-summary .tag {
  display: inline-flex;
  margin-bottom: 12px;
  padding: 7px 11px;
  border-radius: 999px;
  color: #fff;
  background: rgba(255, 59, 79, 0.18);
  border: 1px solid rgba(255, 59, 79, 0.38);
  font-weight: 900;
}

.theme-summary h3 {
  margin-bottom: 10px;
  font-size: 22px;
}

.theme-summary p {
  margin-bottom: 8px;
  color: var(--muted);
  line-height: 1.55;
}

.theme-summary ul {
  margin: 0;
  padding-left: 18px;
}

.theme-summary li {
  color: var(--muted);
  line-height: 1.5;
  margin: 2px 0;
}

.case-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.scene-card {
  display: flex;
  flex-direction: column;
  min-height: 240px;
  padding: 18px;
  border-radius: 8px;
}

.scene-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
  color: var(--cyan);
  font-size: 13px;
  font-weight: 900;
}

.scene-card h3 {
  margin-bottom: 12px;
  font-size: 20px;
}

.scene-card p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

.scene-values {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: auto 0 18px;
}

.scene-values span {
  padding: 7px 10px;
  border-radius: 999px;
  color: #dbeafe;
  background: rgba(79, 140, 255, 0.13);
  border: 1px solid rgba(79, 140, 255, 0.26);
  font-size: 13px;
}

.scene-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.scene-btn {
  border: 0;
  padding: 0 16px;
  color: #fff;
  background: var(--red);
}

.scene-btn.secondary {
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--line);
}

.customer-section {
  background:
    radial-gradient(circle at 18% 24%, rgba(255, 59, 79, 0.12), transparent 28rem),
    radial-gradient(circle at 82% 18%, rgba(64, 217, 143, 0.1), transparent 30rem);
}

.customer-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  align-items: stretch;
}

.customer-card {
  display: flex;
  flex-direction: column;
  min-height: 560px;
  padding: 26px;
  border-radius: 8px;
}

.customer-meta {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
  color: var(--cyan);
  font-size: 13px;
  font-weight: 900;
}

.customer-meta b {
  color: var(--muted);
}

.customer-card h3 {
  margin-bottom: 18px;
  font-size: 25px;
}

.customer-card p {
  color: var(--muted);
  line-height: 1.78;
}

.customer-card .scene-values {
  margin-top: auto;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  padding: 32px;
}

.modal.show {
  display: grid;
  place-items: center;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.76);
  backdrop-filter: blur(10px);
}

.modal-card {
  position: relative;
  width: min(1380px, 96vw);
  max-height: 92vh;
  overflow: hidden;
  border-radius: 10px;
  background: var(--panel-strong);
}

.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 22px;
  border-bottom: 1px solid var(--line);
}

.modal-head span {
  color: var(--cyan);
  font-weight: 900;
  font-size: 13px;
}

.modal-head h3 {
  margin: 4px 0 0;
  font-size: 24px;
}

.close-btn {
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255,255,255,0.08);
  color: #fff;
  font-size: 28px;
  cursor: pointer;
}

.modal-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 420px;
  gap: 18px;
  padding: 18px;
}

.slide-frame {
  min-height: 68vh;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: #111;
}

.slide-frame iframe {
  width: 100%;
  height: 68vh;
  border: 0;
  background: #111;
}

.video-panel {
  display: grid;
  align-content: start;
  gap: 12px;
}

.video-panel.empty {
  display: none;
}

.video-panel video {
  width: 100%;
  max-height: 48vh;
  border-radius: 8px;
  background: #000;
}

.video-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.video-chip {
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.06);
  color: var(--text);
}

.video-chip.active {
  border-color: rgba(255, 59, 79, 0.7);
  background: rgba(255, 59, 79, 0.18);
}

@keyframes pulse {
  50% { transform: scale(1.04); opacity: 0.65; }
}

@media (max-width: 900px) {
  .nav { align-items: flex-start; flex-direction: column; }
  .nav-links { flex-wrap: wrap; }
  .hero { grid-template-columns: 1fr; }
  .hero-why { grid-template-columns: 1fr; }
  .pain-grid,
  .case-grid,
  .customer-grid,
  .map-workspace,
  .scene-panel,
  .modal-body { grid-template-columns: 1fr; }
  .theme-summary { position: static; }
  .finance-map { min-height: 980px; }
  .map-node { left: 50%; right: auto; width: min(82vw, 320px); transform: translateX(-50%); }
  .map-node:hover,
  .map-node.active { transform: translate(-50%, -4px); }
  .node-gl { top: 40px; }
  .node-treasury { top: 210px; }
  .node-ar { top: 380px; bottom: auto; }
  .node-ap { top: 550px; bottom: auto; }
  .map-core { top: auto; bottom: 38px; }
  .line { display: none; }
  .customer-card { min-height: auto; }
}
