/* ============================================================
   THROME 索摩 — Design Tokens
   骨架: Ashby / 配色与产品展示: Runway / 插画叙事: Teenage Engineering
   ============================================================ */
:root {
  --bg: #FAF9F7;
  --bg-soft: #F3F1EC;
  --ink: #17151F;
  --ink-soft: #55515E;
  --ink-faint: #9B96A6;
  --violet: #6B5CE7;
  --violet-deep: #5546CC;
  --violet-soft: #EEEBFD;
  --green: #7BC9A6;
  --line: #E5E1D8;
  --card: #FFFFFF;

  --font-display: "Anton", "Noto Sans SC", sans-serif;
  --font-body: "Noto Sans SC", "PingFang SC", sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;

  --radius: 14px;
  --radius-lg: 22px;
  --shadow-card: 0 1px 2px rgba(23, 21, 31, 0.04), 0 12px 40px -12px rgba(23, 21, 31, 0.12);
  --shadow-window: 0 2px 4px rgba(23, 21, 31, 0.05), 0 32px 80px -24px rgba(85, 70, 204, 0.25);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.container { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.mono { font-family: var(--font-mono); letter-spacing: 0.08em; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-weight: 700; font-size: 15px; line-height: 1;
  padding: 15px 28px; border-radius: 999px;
  transition: transform 0.25s cubic-bezier(0.2, 0.8, 0.3, 1), box-shadow 0.25s, background 0.25s, color 0.25s;
}
.btn-primary {
  background: var(--ink); color: var(--bg);
  box-shadow: 0 8px 24px -8px rgba(23, 21, 31, 0.4);
}
.btn-primary:hover { background: var(--violet); transform: translateY(-2px); box-shadow: 0 14px 32px -8px rgba(107, 92, 231, 0.5); }
.btn-ghost { color: var(--ink-soft); border: 1px solid var(--line); background: transparent; }
.btn-ghost:hover { border-color: var(--ink); color: var(--ink); transform: translateY(-2px); }
.btn-sm { padding: 11px 20px; font-size: 14px; }
.btn-lg { padding: 18px 36px; font-size: 17px; }

/* ---------- Nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  transition: background 0.3s, box-shadow 0.3s, backdrop-filter 0.3s;
}
.nav.scrolled {
  background: rgba(250, 249, 247, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 var(--line);
}
.nav-inner {
  max-width: 1120px; margin: 0 auto; padding: 14px 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.nav-brand { display: flex; align-items: center; gap: 10px; }
.nav-logo { width: 46px; height: auto; }
.nav-wordmark { font-family: var(--font-mono); font-weight: 500; font-size: 15px; letter-spacing: 0.12em; }
.nav-wordmark i { font-style: normal; color: var(--ink-faint); margin-left: 8px; font-family: var(--font-body); font-weight: 500; letter-spacing: 0.3em; }
.nav-links { display: flex; align-items: center; gap: 32px; font-size: 15px; font-weight: 700; color: var(--ink-soft); }
.nav-links > a {
  display: inline-flex; align-items: center;
  padding: 8px 4px; color: var(--ink-soft);
  transition: color 0.2s;
}
.nav-links > a:hover { color: var(--ink); }
.nav-links > a.active { color: var(--ink); }
.nav-dropdown { position: relative; }
.nav-dropdown-trigger {
  display: inline-flex; align-items: center; gap: 6px;
  font: inherit; font-weight: 700; color: var(--ink-soft);
  background: transparent; border: 0; padding: 8px 12px; border-radius: 10px;
  cursor: pointer; transition: color 0.2s, background 0.2s;
}
.nav-dropdown-trigger:hover,
.nav-dropdown.open .nav-dropdown-trigger { color: var(--ink); background: rgba(23, 21, 31, 0.05); }
.nav-chevron { transition: transform 0.2s; }
.nav-dropdown.open .nav-chevron { transform: rotate(180deg); }
.nav-dropdown-panel {
  position: absolute; top: calc(100% + 14px); left: 50%;
  transform: translateX(-50%) translateY(6px);
  width: 360px; padding: 18px;
  background: #fff; border: 1px solid var(--line); border-radius: 18px;
  box-shadow: 0 4px 8px rgba(23, 21, 31, 0.04), 0 24px 48px -16px rgba(23, 21, 31, 0.18);
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
}
.nav-dropdown-panel::before {
  content: ""; position: absolute; top: -6px; left: 50%; margin-left: -6px;
  width: 12px; height: 12px; background: #fff; border-left: 1px solid var(--line); border-top: 1px solid var(--line);
  transform: rotate(45deg);
}
.nav-dropdown.open .nav-dropdown-panel {
  opacity: 1; visibility: visible; pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}
.nav-dropdown-label {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em;
  color: var(--ink-faint); text-transform: uppercase; margin-bottom: 12px; padding: 0 6px;
}
.nav-dropdown-grid { display: grid; grid-template-columns: 1fr; gap: 4px; }
.nav-product {
  display: flex; align-items: center; gap: 14px;
  padding: 10px 8px; border-radius: 12px; transition: background 0.2s;
}
.nav-product:hover { background: var(--bg-soft); }
.nav-product-icon {
  width: 44px; height: 44px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: var(--violet-soft); border-radius: 12px;
}
.nav-product-icon svg { width: 28px; height: 28px; }
.nav-product-copy { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.nav-product-copy b { font-size: 15px; font-weight: 700; color: var(--ink); letter-spacing: 0.02em; }
.nav-product-copy i { font-style: normal; font-size: 12.5px; color: var(--ink-faint); }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  text-align: center; padding: 140px 24px 80px; overflow: hidden;
}
.hero-inner { position: relative; z-index: 2; max-width: 880px; }
.pill {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 13.5px; font-weight: 500; color: var(--ink-soft);
  border: 1px solid var(--line); background: var(--card);
  padding: 8px 18px 8px 8px; border-radius: 999px; margin-bottom: 36px;
  transition: border-color 0.25s, transform 0.25s;
}
.pill:hover { border-color: var(--violet); transform: translateY(-1px); }
.pill-tag {
  background: var(--violet); color: #fff; font-family: var(--font-mono);
  font-size: 11px; padding: 4px 10px; border-radius: 999px; letter-spacing: 0.1em;
}
.pill-arrow { color: var(--violet); }
.hero-title {
  font-size: clamp(52px, 9vw, 108px); font-weight: 900; line-height: 1.08;
  letter-spacing: -0.02em; margin-bottom: 28px;
}
.hero-title em { font-style: normal; color: var(--violet); position: relative; white-space: nowrap; }
.hero-title em::after {
  content: ""; position: absolute; left: 2%; bottom: 6%; width: 96%; height: 10%;
  background: var(--violet); opacity: 0.18; border-radius: 4px; z-index: -1;
}
.hero-sub { font-size: clamp(16px, 2vw, 19px); color: var(--ink-soft); margin-bottom: 40px; }
.hero-cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-bottom: 56px; }
.hero-bg-word {
  position: absolute; bottom: -4vw; left: 50%; transform: translateX(-50%);
  font-family: var(--font-display); font-size: 22vw; line-height: 1;
  color: var(--ink); opacity: 0.035; letter-spacing: 0.02em;
  user-select: none; pointer-events: none; white-space: nowrap;
}

/* ---------- Trust ---------- */
.trust { padding: 40px 0 110px; }
.trust-stats {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
  max-width: 760px; margin: 0 auto 72px; text-align: center;
}
.stat-num, .stat-plus {
  font-family: var(--font-display); font-size: clamp(40px, 5vw, 64px); line-height: 1;
  color: var(--ink);
}
.stat-plus { color: var(--violet); }
.stat-label { display: block; margin-top: 10px; font-size: 14px; color: var(--ink-soft); }
.trust-note { text-align: center; font-size: 12px; color: var(--ink-faint); margin-bottom: 28px; }
.logo-wall {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 20px 52px;
  max-width: 860px; margin: 0 auto;
}
.client-logo {
  font-family: var(--font-mono); font-weight: 500; font-size: 16px; letter-spacing: 0.14em;
  color: var(--ink-faint); transition: color 0.25s;
}
.client-logo:hover { color: var(--ink); }

/* ---------- Chapters (shared) ---------- */
.chapter { padding: 110px 0; }
.chapter-head { text-align: center; max-width: 720px; margin: 0 auto 72px; }
.chapter-tag { font-size: 13px; color: var(--violet); margin-bottom: 20px; }
.chapter-title {
  font-size: clamp(32px, 4.6vw, 52px); font-weight: 900; line-height: 1.2;
  letter-spacing: -0.01em; margin-bottom: 18px;
}
.chapter-title em { font-style: normal; color: var(--violet); }
.chapter-display {
  font-family: var(--font-display); font-size: clamp(56px, 10vw, 128px); line-height: 0.95;
  letter-spacing: 0.01em; margin-bottom: 22px; color: var(--ink);
}
.chapter-lede { font-size: 17px; color: var(--ink-soft); }

/* ---------- Chapter 01 · Storybook ---------- */
.chapter-story { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.ep {
  display: grid; grid-template-columns: 7fr 4fr; gap: 56px; align-items: center;
  margin-bottom: 96px;
}
.ep:last-child { margin-bottom: 0; }
.ep-right { grid-template-columns: 4fr 7fr; }
.ep-right .ep-figure { order: 2; }
.ep-right .ep-copy { order: 1; text-align: right; }
.ep-figure {
  border: 2px solid var(--ink); border-radius: var(--radius-lg); overflow: hidden;
  background: #fff; box-shadow: 8px 8px 0 var(--violet-soft), 8px 8px 0 1px var(--line);
  transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.3, 1), box-shadow 0.35s;
}
.ep-figure:hover { transform: translate(-4px, -4px); box-shadow: 14px 14px 0 var(--violet-soft), 14px 14px 0 1px var(--line); }
.ep-title { font-size: clamp(26px, 3vw, 36px); font-weight: 900; margin-bottom: 14px; letter-spacing: -0.01em; }
.ep-text { font-size: 16px; color: var(--ink-soft); }

/* ---------- Product Window (Runway style) ---------- */
.product-window {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-window); overflow: hidden; margin-bottom: 64px;
}
.pw-titlebar {
  display: flex; align-items: center; gap: 8px;
  padding: 14px 20px; border-bottom: 1px solid var(--line); background: var(--bg);
}
.pw-dot { width: 11px; height: 11px; border-radius: 50%; background: var(--line); }
.pw-titlebar .pw-dot:first-child { background: #F4B8C9; }
.pw-title { font-size: 12px; color: var(--ink-faint); margin-left: 10px; }
.pw-tabs { margin-left: auto; display: flex; gap: 6px; }
.pw-tab {
  font-size: 12.5px; font-weight: 500; color: var(--ink-faint);
  padding: 6px 14px; border-radius: 999px;
}
.pw-tab.active { background: var(--violet-soft); color: var(--violet-deep); }
.pw-body { display: grid; grid-template-columns: 180px 1fr; min-height: 420px; }
.pw-sidebar { border-right: 1px solid var(--line); padding: 20px 0; background: var(--bg); }
.pw-side-item {
  font-size: 13.5px; font-weight: 500; color: var(--ink-soft);
  padding: 10px 22px; cursor: default;
}
.pw-side-item.active {
  color: var(--violet-deep); background: var(--violet-soft);
  border-right: 2px solid var(--violet);
}
.pw-main { padding: 26px 28px; }
.pw-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 26px; }
.pw-kpi {
  border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 18px;
  display: flex; flex-direction: column; gap: 4px; background: #fff;
}
.pw-kpi-label { font-size: 12px; color: var(--ink-faint); }
.pw-kpi-num { font-size: 24px; font-weight: 900; letter-spacing: -0.01em; }

/* Gantt */
.gantt { display: flex; flex-direction: column; gap: 12px; margin-bottom: 28px; }
.gantt-row { display: grid; grid-template-columns: 72px 1fr; align-items: center; gap: 14px; }
.gantt-label { font-size: 11.5px; color: var(--ink-faint); }
.gantt-track {
  height: 26px; background: var(--bg-soft); border-radius: 8px; position: relative; overflow: hidden;
  background-image: repeating-linear-gradient(90deg, transparent 0 calc(100% / 7 - 1px), var(--line) calc(100% / 7 - 1px) calc(100% / 7));
}
.gantt-bar {
  position: absolute; top: 4px; bottom: 4px; left: var(--x); width: var(--w);
  border-radius: 6px; transform-origin: left; transform: scaleX(0);
}
.gantt-bar.animated { animation: growBar 0.9s cubic-bezier(0.2, 0.8, 0.3, 1) forwards; }
@keyframes growBar { to { transform: scaleX(1); } }
.bar-a { background: linear-gradient(90deg, var(--violet), #8D7FF0); }
.bar-b { background: linear-gradient(90deg, var(--green), #A3DCC2); }
.bar-c { background: linear-gradient(90deg, #F4B8C9, #F9D2DD); }

/* Area chart */
.pw-chart-title { font-size: 11.5px; color: var(--ink-faint); margin-bottom: 12px; }
.area-chart { width: 100%; height: 120px; }
.area-chart .line { stroke-dasharray: 1400; stroke-dashoffset: 1400; }
.area-chart .line.animated { animation: drawLine 1.6s ease-out forwards; }
@keyframes drawLine { to { stroke-dashoffset: 0; } }
.area-chart .area { opacity: 0; transition: opacity 0.8s ease 0.6s; }
.area-chart .area.animated { opacity: 1; }

/* ---------- Recruiting Dashboard (Suite) ---------- */
.db-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; margin-bottom: 22px; flex-wrap: wrap;
}
.db-title { font-size: 20px; font-weight: 900; letter-spacing: -0.01em; }
.db-tabs { display: flex; gap: 4px; font-size: 12px; }
.db-tab { padding: 6px 12px; border-radius: 999px; color: var(--ink-faint); }
.db-tab.active { background: var(--violet-soft); color: var(--violet-deep); }
.db-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.db-card {
  border: 1px solid var(--line); border-radius: var(--radius);
  background: #fff; padding: 18px 20px;
}
.db-card-title {
  font-size: 11.5px; color: var(--ink-faint); margin-bottom: 16px;
  display: flex; align-items: center; justify-content: space-between;
}
.db-badge {
  background: var(--bg-soft); border-radius: 999px; padding: 1px 10px;
  font-size: 10.5px; color: var(--ink-soft);
}
.db-bars {
  display: grid; grid-template-columns: repeat(8, 1fr); gap: 10px;
  align-items: end; height: 200px;
}
.db-bar-col { display: flex; flex-direction: column; align-items: center; gap: 8px; height: 100%; }
.db-bar-track {
  flex: 1; width: 100%; max-width: 26px; display: flex; align-items: flex-end;
  background: var(--bg-soft); border-radius: 7px;
}
.db-bar {
  width: 100%; height: var(--h); border-radius: 7px;
  background: linear-gradient(180deg, #8D7FF0, var(--violet));
  transform-origin: bottom; transform: scaleY(0);
}
.db-bar.animated { animation: growBarY 0.9s cubic-bezier(0.2, 0.8, 0.3, 1) forwards; }
@keyframes growBarY { to { transform: scaleY(1); } }
.db-bar-hot { background: linear-gradient(180deg, #A3DCC2, var(--green)); }
.db-bar-label { font-size: 10.5px; color: var(--ink-faint); white-space: nowrap; }
.db-big-num {
  font-family: var(--font-display); font-size: 44px; line-height: 1;
  color: var(--violet); margin-bottom: 12px;
}
.db-big-unit {
  font-family: var(--font-body); font-size: 13px; color: var(--ink-faint);
  font-weight: 500; margin-left: 10px; letter-spacing: 0;
}
.db-funnel { height: 132px; }
.db-funnel-labels {
  display: flex; justify-content: space-between;
  font-size: 10px; color: var(--ink-faint); margin-top: 8px;
}

/* ---------- Features ---------- */
.feature-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.feature {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 30px 28px; transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.3, 1), box-shadow 0.3s;
}
.feature:hover { transform: translateY(-4px); box-shadow: var(--shadow-card); }
.feature-title { font-size: 18px; font-weight: 900; margin-bottom: 10px; }
.feature-title::before {
  content: ""; display: block; width: 28px; height: 4px; border-radius: 2px;
  background: var(--violet); margin-bottom: 16px;
}
.feature-text { font-size: 14.5px; color: var(--ink-soft); }

/* ---------- Chapter backgrounds ---------- */
.chapter-aps { background: var(--bg); }
.chapter-suite { background: #fff; border-top: 1px solid var(--line); }

/* ---------- CTA ---------- */
.cta {
  padding: 140px 0; text-align: center;
  background: var(--ink); color: var(--bg);
  position: relative; overflow: hidden;
}
.cta::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(ellipse 60% 50% at 50% 110%, rgba(107, 92, 231, 0.45), transparent 70%);
}
.cta .container { position: relative; }
.cta-display {
  font-family: var(--font-display); font-size: clamp(72px, 14vw, 180px); line-height: 0.95;
  color: var(--bg); margin-bottom: 20px;
}
.cta-sub { font-size: 18px; color: rgba(250, 249, 247, 0.65); margin-bottom: 44px; }
.cta-actions { display: flex; gap: 14px; justify-content: center; align-items: center; flex-wrap: wrap; }
.cta .btn-primary { background: var(--violet); color: #fff; }
.cta .btn-primary:hover { background: var(--violet-deep); }
.cta .btn-ghost,
.resources-contact .btn-ghost,
.checklist-contact .btn-ghost,
.pricing-cta .btn-ghost,
.careers-contact .btn-ghost {
  border-color: rgba(250, 249, 247, 0.25);
  color: rgba(250, 249, 247, 0.75);
}
.cta .btn-ghost:hover,
.resources-contact .btn-ghost:hover,
.checklist-contact .btn-ghost:hover,
.pricing-cta .btn-ghost:hover,
.careers-contact .btn-ghost:hover {
  border-color: var(--bg);
  color: var(--bg);
}

/* ---------- Footer ---------- */
.footer { background: var(--ink); border-top: 1px solid rgba(250, 249, 247, 0.1); padding: 28px 0; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.footer-brand { display: flex; align-items: center; gap: 12px; color: rgba(250, 249, 247, 0.7); font-size: 13px; }
.footer-logo { width: 38px; height: auto; }
.footer-note { font-size: 12px; color: rgba(250, 249, 247, 0.4); }

/* ---------- Reveal (GSAP hooks) ---------- */
.reveal { opacity: 0; transform: translateY(28px); }
.no-js .reveal, .reveal.shown { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
.mobile-br { display: none; }
@media (max-width: 900px) {
  .nav-links { display: none; }
  .ep, .ep-right { grid-template-columns: 1fr; gap: 24px; }
  .ep-right .ep-figure { order: 1; }
  .ep-right .ep-copy { order: 2; text-align: left; }
  .ep { margin-bottom: 72px; }
  .pw-body { grid-template-columns: 1fr; }
  .pw-sidebar { display: none; }
  .db-grid { grid-template-columns: 1fr; }
  .feature-row { grid-template-columns: 1fr; }
  .desktop-br { display: none; }
  .mobile-br { display: inline; }
  .pw-tabs { display: none; }
}
@media (max-width: 560px) {
  .trust-stats { grid-template-columns: repeat(3, 1fr); gap: 8px; }
}
