/* ========================================
   SivooAssets — Palantir-Inspired Dark Theme
   Overseas Corporate Website
   ======================================== */

:root {
  /* Dark palette */
  --bg-primary: #0a0e17;
  --bg-secondary: #0f1420;
  --bg-tertiary: #151b2b;
  --bg-elevated: #1a2235;
  --bg-card: #111827;
  --bg-card-hover: #1e293b;

  /* Text hierarchy */
  --text-primary: #f1f5f9;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --text-dim: #475569;

  /* Accent */
  --accent: #3b82f6;
  --accent-bright: #60a5fa;
  --accent-dim: #1d4ed8;
  --accent-glow: rgba(59, 130, 246, 0.15);
  --accent-glow-strong: rgba(59, 130, 246, 0.25);

  /* Accent secondary */
  --teal: #14b8a6;
  --emerald: #10b981;

  /* Lines */
  --line: rgba(255, 255, 255, 0.06);
  --line-strong: rgba(255, 255, 255, 0.12);
  --line-accent: rgba(59, 130, 246, 0.3);

  /* Shadows */
  --shadow-glow: 0 0 60px rgba(59, 130, 246, 0.08);
  --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.4);
  --shadow-card-hover: 0 8px 40px rgba(0, 0, 0, 0.5);

  /* Layout */
  --max-width: 1440px;
  --header-height: 64px;
  --transition: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);

  /* Shared aliases used by detail/article components */
  --accent-color: var(--accent-bright);
  --border-color: var(--line-strong);
  --bg-surface: var(--bg-card);
}

*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  overflow-x: hidden;
}

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: var(--text-primary);
  background: var(--bg-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

ul, ol {
  list-style: none;
}

/* ========================================
   Header / Navigation — Palantir-style minimal
   ======================================== */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 48px;
  background: transparent;
  transition: background var(--transition), border-color var(--transition);
  border-bottom: 1px solid transparent;
}

.site-header.is-scrolled {
  background: rgba(10, 14, 23, 0.92);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom-color: var(--line);
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-mark {
  width: 120px;
  height: 120px;
  border-radius: 6px;
  overflow: hidden;
  display: grid;
  place-items: center;
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.brand-copy {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.brand-copy strong {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

.brand-copy span {
  font-size: 0.68rem;
  color: var(--text-muted);
  font-weight: 400;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 2px;
}

.site-nav a {
  padding: 8px 20px;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-secondary);
  border-radius: 4px;
  transition: all var(--transition-fast);
  letter-spacing: 0.01em;
}

.site-nav a:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.04);
}

.site-nav a.is-active {
  color: var(--text-primary);
}

.site-nav a.is-active::after {
  content: "";
  display: block;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--accent);
  margin: 4px auto 0;
}

/* Language switch (中文 / EN) — last item of the main nav */
.lang-switch {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: 14px;
  padding-left: 16px;
  border-left: 1px solid var(--line-strong);
}

.lang-switch .lang-item {
  padding: 5px 9px;
  border-radius: 4px;
  font-size: 0.82rem;
  font-weight: 500;
  line-height: 1.4;
  color: var(--text-muted);
  transition: all var(--transition-fast);
}

.lang-switch a.lang-item:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.04);
}

.lang-switch .lang-item.is-active {
  color: var(--text-primary);
  font-weight: 600;
}

.lang-switch .lang-sep {
  font-size: 0.78rem;
  color: var(--text-dim);
}

/* Tablet / narrow desktop: keep the header from crowding */
@media (max-width: 1024px) {
  .site-header {
    padding: 0 32px;
  }

  .lang-switch {
    margin-left: 10px;
    padding-left: 12px;
  }
}

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-secondary);
  transition: all var(--transition-fast);
}

/* ========================================
   Page Shell
   ======================================== */

.page-shell {
  width: 100%;
}

main {
  display: block;
  padding-top: 0;
}

section {
  position: relative;
  overflow: hidden;
}

/* ========================================
   Typography
   ======================================== */

.eyebrow {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-bright);
  margin-bottom: 16px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.eyebrow::before {
  content: "";
  display: inline-block;
  width: 24px;
  height: 1px;
  background: var(--accent);
}

h1, h2, h3, h4 {
  font-family: "Inter", sans-serif;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: var(--text-primary);
}

h1 {
  font-size: clamp(2.8rem, 6vw, 4.5rem);
  font-weight: 800;
  line-height: 1.05;
}

h2 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 700;
}

h3 {
  font-size: clamp(1.2rem, 2vw, 1.5rem);
  font-weight: 600;
}

h4 {
  font-size: 1.05rem;
  font-weight: 600;
}

p {
  margin: 0;
  line-height: 1.7;
}

.section-heading {
  max-width: 720px;
  margin-bottom: 56px;
}

.section-heading.centered {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.section-body {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-top: 20px;
  max-width: 640px;
}

.section-heading.centered .section-body {
  margin-left: auto;
  margin-right: auto;
}

.section-subtitle {
  font-size: 1rem;
  color: var(--text-muted);
  margin-top: 12px;
}

/* ========================================
   Buttons
   ======================================== */

.button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 32px;
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: 4px;
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  letter-spacing: 0.02em;
}

.button-primary {
  background: var(--accent);
  color: #fff;
}

.button-primary:hover {
  background: var(--accent-bright);
  box-shadow: 0 0 30px rgba(59, 130, 246, 0.3);
}

.button-secondary {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--line-strong);
}

.button-secondary:hover {
  border-color: var(--text-muted);
  background: rgba(255, 255, 255, 0.03);
}

.button-ghost {
  background: transparent;
  color: var(--accent-bright);
  padding: 10px 0;
  border: none;
  font-weight: 600;
  font-size: 0.88rem;
  letter-spacing: 0.02em;
}

.button-ghost::after {
  content: " →";
  transition: transform var(--transition-fast);
  display: inline-block;
}

.button-ghost:hover::after {
  transform: translateX(4px);
}

.button-ghost:hover {
  color: #fff;
}

/* ========================================
   HERO Section — Palantir cinematic style
   ======================================== */

.hero-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  padding: 120px 48px 80px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.15;
  filter: saturate(0.3) contrast(1.2);
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(10, 14, 23, 0.7) 0%,
    rgba(10, 14, 23, 0.35) 40%,
    rgba(10, 14, 23, 0.5) 70%,
    rgba(10, 14, 23, 0.85) 100%
  );
}

/* Geometric accent lines — Palantir signature */
.hero-geo {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}

.hero-geo::before {
  content: "";
  position: absolute;
  top: 20%;
  right: -10%;
  width: 600px;
  height: 600px;
  border: 1px solid var(--line-accent);
  border-radius: 50%;
  opacity: 0.4;
}

.hero-geo::after {
  content: "";
  position: absolute;
  bottom: 10%;
  left: -5%;
  width: 400px;
  height: 400px;
  border: 1px solid var(--line);
  border-radius: 50%;
  opacity: 0.3;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: var(--max-width);
  margin: 0 auto;
  width: 100%;
}

.hero-copy {
  max-width: 780px;
}

.hero-copy h1 {
  margin-bottom: 28px;
}

.hero-copy h1 .accent {
  color: var(--accent-bright);
}

.hero-body {
  font-size: 1.15rem;
  color: var(--text-secondary);
  max-width: 580px;
  margin-bottom: 16px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  margin-top: 40px;
  flex-wrap: wrap;
}

/* Metrics strip */
.hero-metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin-top: 72px;
  border-top: 1px solid var(--line);
  padding-top: 32px;
}

.hero-metric-item {
  padding: 8px 24px;
  position: relative;
}

.hero-metric-item:not(:last-child)::after {
  content: "";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 40px;
  background: var(--line);
}

.metric-number {
  font-size: 2rem;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1;
  margin-bottom: 6px;
  letter-spacing: -0.04em;
}

.metric-label {
  font-size: 0.72rem;
  color: var(--text-muted);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  line-height: 1.4;
}

/* ========================================
   Product Section
   ======================================== */

.product-section {
  padding: 60px 0;
  background: var(--bg-primary);
}

.product-section .section-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

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

.product-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 40px 32px;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

.product-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), transparent);
  opacity: 0;
  transition: opacity var(--transition);
}

.product-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--line-strong);
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-2px);
}

.product-card:hover::before {
  opacity: 1;
}

.product-card-index {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.product-card h3 {
  margin-bottom: 16px;
  color: var(--text-primary);
}

.product-card p {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

.product-card .card-image {
  margin-top: 24px;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid var(--line);
}

.product-card .card-image img {
  width: 100%;
  height: auto;
  transition: transform var(--transition);
}

.product-card:hover .card-image img {
  transform: scale(1.02);
}

/* ========================================
   Value Proposition Section
   ======================================== */

.value-section {
  padding: 120px 48px;
  background: var(--bg-secondary);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.value-section .section-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.value-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  background: var(--line);
  border-radius: 8px;
  overflow: hidden;
}

.value-card {
  background: var(--bg-secondary);
  padding: 48px 36px;
  transition: background var(--transition);
}

.value-card:hover {
  background: var(--bg-tertiary);
}

.value-card h4 {
  margin-bottom: 16px;
  color: var(--text-primary);
  font-size: 1.15rem;
}

.value-card p {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.75;
}

.value-card-icon {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: var(--accent-glow);
  color: var(--accent-bright);
  font-size: 1.2rem;
  margin-bottom: 20px;
}

/* ========================================
   CTA Section
   ======================================== */

.cta-section {
  padding: 120px 48px;
  background: var(--bg-primary);
  text-align: center;
}

.cta-section .section-inner {
  max-width: 680px;
  margin: 0 auto;
}

.cta-section h2 {
  margin-bottom: 20px;
}

.cta-section .section-body {
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 40px;
}

.cta-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ========================================
   Footer
   ======================================== */

.site-footer {
  background: var(--bg-primary);
  border-top: 1px solid var(--line);
  padding: 60px 48px 40px;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 48px;
}

.footer-brand p {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-top: 16px;
  max-width: 360px;
  line-height: 1.7;
}

.footer-links h4 {
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.footer-links a {
  display: block;
  font-size: 0.88rem;
  color: var(--text-secondary);
  padding: 4px 0;
  transition: color var(--transition-fast);
}

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

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-size: 0.8rem;
  color: var(--text-dim);
}

/* ========================================
   Solution Page
   ======================================== */

.solution-page {
  padding: 140px 48px 120px;
  background: var(--bg-primary);
}

.solution-page .section-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.scenario-nav a {
  padding: 8px 20px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
  border: 1px solid var(--line);
  border-radius: 4px;
  transition: all var(--transition-fast);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.scenario-nav a:hover {
  color: var(--text-primary);
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.03);
}

.solution-article:last-child {
  border-bottom: none;
}

.solution-article h2 {
  font-size: 1.6rem;
  font-weight: 700;
  line-height: 1.2;
}

.solution-point-list li {
  padding: 24px 28px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 6px;
  transition: all var(--transition);
  position: relative;
  padding-left: 40px;
}

.solution-point-list li::before {
  content: "";
  position: absolute;
  left: 28px;
  top: 32px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--accent);
}

.solution-point-list li:hover {
  background: var(--bg-card-hover);
  border-color: var(--line-strong);
}

.solution-point-list strong {
  display: block;
  color: var(--text-primary);
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 6px;
}

.solution-point-list li p,
.solution-point-list li {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ========================================
   Pricing Page
   ======================================== */

.pricing-page {
  padding: 140px 48px 120px;
  background: var(--bg-primary);
}

.pricing-page .section-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.pricing-intro {
  max-width: 640px;
  margin-bottom: 48px;
}

.pricing-intro p {
  font-size: 1.05rem;
  color: var(--text-secondary);
}

.pricing-features {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
  background: var(--line);
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 64px;
}

.feature-card {
  background: var(--bg-secondary);
  padding: 32px 24px;
  text-align: center;
  transition: background var(--transition);
}

.feature-card:hover {
  background: var(--bg-tertiary);
}

.feature-icon {
  font-size: 1.6rem;
  margin-bottom: 12px;
}

.feature-card h3 {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 6px;
}

.feature-card p {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.pricing-block {
  margin-bottom: 56px;
}

.pricing-block-title {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.pricing-block-title span {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--accent);
  min-width: 24px;
}

.pricing-block-title h3 {
  font-size: 1.2rem;
  font-weight: 600;
}

.pricing-table-wrap {
  overflow-x: auto;
  border-radius: 8px;
  border: 1px solid var(--line);
}

.pricing-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.pricing-table th {
  background: var(--bg-tertiary);
  padding: 14px 20px;
  font-weight: 600;
  font-size: 0.82rem;
  color: var(--text-secondary);
  text-align: left;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}

.pricing-table td {
  padding: 14px 20px;
  border-bottom: 1px solid var(--line);
  color: var(--text-secondary);
  background: var(--bg-card);
}

.pricing-table tr:last-child td {
  border-bottom: none;
}

.pricing-table td strong {
  color: var(--text-primary);
  font-weight: 700;
  font-size: 1rem;
}

.pricing-table .rate {
  font-size: 0.78rem;
  color: var(--text-dim);
}

.pricing-note {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 12px;
  padding-left: 4px;
}

.pricing-optional {
  margin-top: 20px;
  padding: 24px 28px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 6px;
}

.pricing-optional strong {
  color: var(--text-primary);
  font-size: 0.92rem;
}

.pricing-optional p {
  margin-top: 8px;
  font-size: 0.88rem;
  color: var(--text-secondary);
}

.pricing-divider {
  border: none;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--line-strong), transparent);
  margin: 48px 0;
}

/* ========================================
   About Page
   ======================================== */

.about-page {
  padding: 140px 48px 120px;
  background: var(--bg-primary);
  overflow: visible;
}

.about-page .section-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

/* Manifesto */
.about-manifesto {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 56px;
  padding: 72px 0;
  border-bottom: 1px solid var(--line);
  align-items: start;
}

.about-manifesto-lead h2 {
  font-size: 2rem;
  font-weight: 700;
  margin-top: 12px;
}

.about-manifesto-body p {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 20px;
}

/* Proof points */
.about-proof {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  background: var(--line);
  border-radius: 8px;
  overflow: hidden;
  margin: 72px 0;
}

.about-proof-item {
  background: var(--bg-secondary);
  padding: 48px 36px;
}

.about-proof-item span {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.12em;
  display: block;
  margin-bottom: 12px;
}

.about-proof-item strong {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-primary);
  display: block;
  margin-bottom: 12px;
}

.about-proof-item p {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* Company Profile */
.about-profile {
  padding: 72px 0;
  border-bottom: 1px solid var(--line);
}

.about-profile-heading {
  margin-bottom: 24px;
}

.about-profile-body p {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.8;
  max-width: 720px;
}

/* Brand Pillars */
.brand-pillars {
  padding: 72px 0;
  border-bottom: 1px solid var(--line);
}

.brand-pillars-heading {
  margin-bottom: 40px;
}

.brand-pillars-heading h2 {
  margin-top: 8px;
}

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

.brand-pillar {
  padding: 36px 28px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 8px;
  transition: all var(--transition);
}

.brand-pillar:hover {
  border-color: var(--line-strong);
  background: var(--bg-card-hover);
}

.brand-pillar-index {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-bright);
  margin-bottom: 16px;
}

.brand-pillar h3 {
  font-size: 1.1rem;
  font-weight: 600;
  line-height: 1.4;
}

/* Timeline */
.about-timeline {
  padding: 72px 0;
  overflow: visible;
}

.about-timeline .section-heading {
  margin-bottom: 48px;
}

.timeline {
  position: relative;
  padding: 16px 0;
}

.timeline::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 140px;
  width: 1px;
  background: var(--line-strong);
}

.timeline-item {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 40px;
  margin-bottom: 40px;
  position: relative;
  align-items: start;
}

.timeline-item:last-child {
  margin-bottom: 0;
}

.timeline-dot {
  position: absolute;
  left: 133px;
  top: 12px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--bg-primary);
  border: 2px solid var(--accent);
  z-index: 1;
}

.timeline-year {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--text-primary);
  text-align: right;
  letter-spacing: -0.02em;
  padding-top: 4px;
}

.timeline-content {
  padding: 20px 28px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 6px;
  transition: all var(--transition);
  margin-left: 24px;
}

.timeline-content:hover {
  background: var(--bg-card-hover);
  border-color: var(--line-strong);
}

.timeline-content h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 6px;
}

.timeline-content p {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* Climbing timeline (desktop): items positioned by script.js,
   ascending from bottom-left to top-right along a polyline */
.timeline.is-climbing {
  padding: 0;
}

.timeline.is-climbing::before {
  display: none;
}

.timeline-polyline {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
  z-index: 0;
}

.timeline.is-climbing .timeline-item {
  position: absolute;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 0;
}

/* Milestone card sits above the line */
.timeline.is-climbing .timeline-content {
  width: 280px;
  margin-left: 0;
  padding: 16px 18px;
  text-align: center;
}

/* Stem connects the card to the dot on the line */
.timeline-stem {
  display: none;
}

.timeline.is-climbing .timeline-stem {
  display: block;
  width: 1px;
  height: 40px;
  background: var(--accent);
  margin: 12px 0;
  opacity: 0.6;
}

.timeline.is-climbing .timeline-dot {
  position: static;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent-bright);
  border: 0;
  box-shadow: 0 0 10px rgba(59, 130, 246, 0.7);
}

/* Year sits below the line */
.timeline.is-climbing .timeline-year {
  margin-top: 12px;
  padding-top: 0;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--accent-bright);
  text-align: center;
}

/* Contact inline */
.about-contact-inline {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 32px 0;
  margin-top: 48px;
  border-top: 1px solid var(--line);
  font-size: 0.88rem;
  flex-wrap: wrap;
}

.about-contact-inline span {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.about-contact-inline a {
  color: var(--accent-bright);
  transition: color var(--transition-fast);
}

.about-contact-inline a:hover {
  color: #fff;
}

/* Card label */
.card-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-bright);
  margin-bottom: 8px;
  display: block;
}

/* ========================================
   Reveal Animations
   ======================================== */

.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-stagger > * {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal-stagger.is-visible > * {
  opacity: 1;
  transform: translateY(0);
}

.reveal-stagger.is-visible > *:nth-child(1) { transition-delay: 0.05s; }
.reveal-stagger.is-visible > *:nth-child(2) { transition-delay: 0.12s; }
.reveal-stagger.is-visible > *:nth-child(3) { transition-delay: 0.19s; }
.reveal-stagger.is-visible > *:nth-child(4) { transition-delay: 0.26s; }
.reveal-stagger.is-visible > *:nth-child(5) { transition-delay: 0.33s; }
.reveal-stagger.is-visible > *:nth-child(6) { transition-delay: 0.40s; }
.reveal-stagger.is-visible > *:nth-child(7) { transition-delay: 0.47s; }

/* ========================================
   Geometric Decorations
   ======================================== */

.geo-line {
  position: absolute;
  pointer-events: none;
}

.geo-line-h {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line-accent), transparent);
}

.geo-circle {
  border: 1px solid var(--line);
  border-radius: 50%;
  opacity: 0.2;
}

/* Section divider accent */
.section-divider {
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    var(--line-strong) 20%,
    var(--line-accent) 50%,
    var(--line-strong) 80%,
    transparent 100%
  );
  margin: 0;
  border: none;
}

/* ========================================
   Responsive
   ======================================== */

@media (max-width: 1024px) {
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .value-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .value-grid .value-card:last-child {
    grid-column: 1 / -1;
  }

  .footer-top {
    grid-template-columns: 1fr 1fr;
  }

  .about-manifesto {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .pricing-features {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .site-header {
    padding: 0 24px;
  }

  .nav-toggle {
    display: flex;
  }

  .site-nav {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: rgba(10, 14, 23, 0.98);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    flex-direction: column;
    padding: 24px;
    gap: 4px;
    border-bottom: 1px solid var(--line);
    display: none;
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    padding: 12px 16px;
    width: 100%;
    font-size: 0.95rem;
  }

  .lang-switch {
    width: 100%;
    margin: 12px 0 0;
    padding: 12px 16px 0;
    border-left: none;
    border-top: 1px solid var(--line);
  }

  .lang-switch .lang-item {
    width: auto;
    padding: 8px 14px;
    font-size: 0.9rem;
  }

  .hero-section {
    padding: 120px 24px 60px;
    min-height: auto;
  }

  h1 {
    font-size: clamp(2rem, 8vw, 2.8rem);
  }

  .hero-metrics {
    grid-template-columns: repeat(2, 1fr);
    gap: 0;
    margin-top: 48px;
  }

  .hero-metric-item:nth-child(2)::after {
    display: none;
  }

  .value-section,
  .cta-section,
  .solution-page,
  .pricing-page,
  .about-page,
  .product-section,
  .product-page {
    padding: 80px 24px;
  }

  .product-grid {
    grid-template-columns: 1fr;
  }

  .value-grid {
    grid-template-columns: 1fr;
  }

  .about-proof {
    grid-template-columns: 1fr;
  }

  .brand-pillars-strip {
    grid-template-columns: 1fr;
  }

  .timeline::before {
    left: 20px;
  }

  .timeline-item {
    grid-template-columns: 1fr;
    padding-left: 48px;
    gap: 8px;
  }

  .timeline-dot {
    left: 13px;
  }

  .timeline-year {
    text-align: left;
    font-size: 1.2rem;
  }

  .timeline-content {
    margin-left: 0;
  }

  .timeline-stem {
    display: none;
  }

  .footer-top {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }

  .site-footer {
    padding: 48px 24px 32px;
  }

  .pricing-features {
    grid-template-columns: 1fr 1fr;
  }

  .hero-actions {
    flex-direction: column;
    align-items: flex-start;
  }

  .cta-actions {
    flex-direction: column;
    align-items: center;
  }
}

@media (max-width: 480px) {
  .hero-metrics {
    grid-template-columns: 1fr;
  }

  .hero-metric-item::after {
    display: none !important;
  }

  .metric-number {
    font-size: 1.6rem;
  }

  .pricing-features {
    grid-template-columns: 1fr;
  }

  .scenario-nav a {
    padding: 6px 14px;
    font-size: 0.76rem;
  }
}

/* ========================================
   Minimal Hero — Palantir Slogan-Only
   ======================================== */

.hero-minimal {
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 48px;
}

.hero-minimal .hero-content {
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
}

.hero-slogan h1 {
  font-size: clamp(3.5rem, 8vw, 6.5rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.04em;
  color: var(--text-primary);
}

.hero-slogan h1 .accent {
  color: var(--accent-bright);
}

/* Scroll hint */
.hero-scroll-hint {
  position: absolute;
  bottom: 48px;
  left: 50%;
  transform: translateX(-50%);
}

.scroll-line {
  width: 1px;
  height: 64px;
  background: linear-gradient(to bottom, var(--accent), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% {
    opacity: 0.3;
    transform: scaleY(0.6);
    transform-origin: top;
  }
  50% {
    opacity: 1;
    transform: scaleY(1);
    transform-origin: top;
  }
}

/* ========================================
   Intro Section — Second Screen
   ======================================== */

.intro-section {
  padding: 120px 48px;
  background: var(--bg-primary);
  border-top: 1px solid var(--line);
}

.intro-section .section-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.intro-layout {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 64px;
  align-items: start;
  margin-bottom: 72px;
}

.intro-lead h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 700;
  line-height: 1.15;
}

.intro-body p {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 20px;
}

.intro-body .hero-actions {
  margin-top: 32px;
}

@media (max-width: 768px) {
  .hero-minimal {
    padding: 0 24px;
  }

  .hero-slogan h1 {
    font-size: clamp(2.5rem, 10vw, 4rem);
  }

  .intro-section {
    padding: 80px 24px;
  }

  .intro-layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .scroll-line {
    height: 48px;
  }
}

/* ========================================
   Hero Video Background & Outfit Font
   ======================================== */

.hero-bg video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.7;
  filter: saturate(0.5) contrast(1.05) brightness(0.8);
}

.hero-slogan h1 {
  font-family: "Outfit", "Inter", sans-serif;
  font-weight: 300;
  letter-spacing: -0.02em;
  line-height: 1.12;
}

.hero-slogan h1 .accent {
  font-weight: 600;
}

/* ========================================
   Product Carousel — Unified Q&A Layout
   ======================================== */

/* Palantir-style Full-Width Carousel */
.carousel {
  position: relative;
  width: 100vw;
  left: 50%;
  margin-left: -50vw;
  overflow: hidden;
  background: var(--bg-primary);
  /* 纵向滚动保留给页面，横向手势交给轮播做滑动切换 */
  touch-action: pan-y;
  cursor: grab;
  -webkit-user-select: none;
  user-select: none;
}

.carousel:active {
  cursor: grabbing;
}

.carousel-track {
  display: flex;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}

.carousel-slide {
  flex: 0 0 100%;
  overflow: hidden;
  padding: 48px 80px 80px;
  height: auto;
  min-height: 560px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Unified slide layout: question + answer + visual */
.slide-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 80px;
  align-items: center;
  width: 100%;
  max-width: 1600px;
  margin: 0 auto;
}

.slide-layout.full-width {
  grid-template-columns: 1fr;
  text-align: center;
}

.slide-layout.wide-visual {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

.slide-layout.wide-visual .slide-images {
  max-width: 100%;
}

.slide-layout.wide-visual .slide-images .img-main,
.slide-layout.wide-visual .slide-images .img-overlay {
  max-width: 50%;
}

.slide-layout.wide-visual .slide-image-full {
  max-width: 100%;
}

.slide-layout.wide-visual .slide-image-full.compact img {
  max-height: 360px;
}

.slide-layout.wide-visual .slide-image-full img {
  max-height: none;
}

.slide-header {
  margin-bottom: 24px;
}

.slide-index {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 8px;
}

.slide-header h3 {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

.slide-body {
  max-width: 640px;
}

.slide-body.centered {
  max-width: 720px;
  margin: 0 auto;
}

.slide-text {
  font-size: 1.1rem;
  color: var(--text-secondary);
  line-height: 1.85;
}

.slide-text.mb-24 {
  margin-bottom: 24px;
}

/* 左列文案块：限宽 + 列内水平居中，与右列图形共同构成对称构图 */
.slide-main {
  width: 100%;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

/* Slide 2: Pain points */
.pain-points {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.pain-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 6px;
  transition: all 0.2s;
}

.pain-item:hover {
  background: var(--bg-card-hover);
  border-color: var(--line-accent);
}

.pain-item strong {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--accent-bright);
  min-width: 100px;
}

.pain-item span {
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* Slide 3: Difficulty cards */
.difficulty-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.diff-card {
  padding: 14px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 6px;
  transition: all 0.2s;
}

.diff-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--line-accent);
}

.diff-num {
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.1em;
  margin-bottom: 4px;
}

.diff-card h4 {
  font-size: 0.88rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.diff-card p {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* Slide 5: Methodology layers */
.methodology-stack {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.method-layer {
  padding: 14px 16px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 6px;
  border-left: 3px solid var(--accent);
}

.method-level {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 2px;
}

.method-layer strong {
  font-size: 0.9rem;
  display: block;
  margin-bottom: 4px;
}

.method-layer p {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* Slide 6: Delivery cards */
.delivery-cards {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.delivery-card {
  padding: 16px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 6px;
  transition: all 0.2s;
}

.delivery-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--line-accent);
}

.dc-icon {
  font-size: 1.2rem;
  margin-bottom: 6px;
}

.delivery-card h4 {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.dc-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.dc-tags span {
  font-size: 0.68rem;
  padding: 3px 8px;
  background: var(--accent-glow);
  color: var(--accent-bright);
  border-radius: 3px;
  font-weight: 500;
}

/* Slide visuals (right side) */
.slide-side {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Slide 1: Dual images stacked */
.slide-images {
  display: flex;
  flex-direction: row;
  gap: 16px;
  width: 100%;
  max-width: 600px;
}

.slide-images .img-main,
.slide-images .img-overlay {
  flex: 1 1 0;
  width: auto;
  max-width: 50%;
  border-radius: 8px;
  border: 1px solid var(--line);
  object-fit: cover;
}

/* Slide 2: Icon grid */
.slide-icons {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  max-width: 320px;
}

.icon-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 16px 12px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 6px;
  transition: all 0.2s;
}

.icon-box:hover {
  background: var(--bg-card-hover);
  border-color: var(--line-accent);
}

.icon-box span {
  font-size: 1.4rem;
}

.icon-box p {
  font-size: 0.68rem;
  color: var(--text-muted);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Slide 3: Bar chart */
.slide-bars {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
  max-width: 420px;
}

.bar-item {
  display: flex;
  align-items: center;
  gap: 12px;
}

.bar-item span {
  font-size: 0.78rem;
  color: var(--text-muted);
  min-width: 90px;
  text-align: right;
}

.bar-fill {
  height: 6px;
  background: linear-gradient(90deg, var(--accent), var(--accent-bright));
  border-radius: 3px;
}

/* Slide 5: Pyramid image */
.slide-pyramid img {
  width: 100%;
  max-width: 420px;
  border-radius: 8px;
  border: 1px solid var(--line);
}

/* Slide 6: Platform blocks */
.platform-visual {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 360px;
}

.plat-block {
  padding: 20px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 6px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.2s;
}

.plat-block:hover {
  background: var(--bg-card-hover);
}

.plat-block.highlight {
  border-color: var(--accent);
  background: var(--accent-glow);
}

.plat-block span {
  font-size: 0.9rem;
  font-weight: 600;
}

.plat-dots {
  display: flex;
  gap: 4px;
}

.plat-dots i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--text-dim);
}

.plat-block.highlight .plat-dots i {
  background: var(--accent-bright);
}

/* Slide 4: Full-width image */
.slide-image-full {
  max-width: 800px;
  margin: 0 auto;
}

.slide-image-full img {
  width: 100%;
  border-radius: 8px;
  border: 1px solid var(--line);
}

.slide-image-full.compact {
  max-width: 100%;
}

.slide-image-full.compact img {
  max-height: 260px;
  object-fit: contain;
}

/* Carousel controls - Palantir style */
.carousel-controls {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  padding: 0;
  z-index: 10;
}

.carousel-btn {
  width: 36px;
  height: 36px;
  border: 1px solid var(--line-strong);
  background: var(--bg-card);
  color: var(--text-secondary);
  border-radius: 50%;
  cursor: pointer;
  font-size: 1rem;
  display: grid;
  place-items: center;
  transition: all 0.2s;
}

.carousel-btn:hover {
  background: var(--bg-card-hover);
  color: var(--text-primary);
  border-color: var(--accent);
}

.carousel-dots {
  display: flex;
  gap: 12px;
}

.dot {
  width: 32px;
  height: 3px;
  border-radius: 2px;
  border: none;
  background: rgba(255, 255, 255, 0.2);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 0;
}

.dot.is-active {
  background: var(--accent);
  width: 48px;
}

.dot:hover:not(.is-active) {
  background: rgba(255, 255, 255, 0.4);
}

.carousel-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: rgba(255, 255, 255, 0.1);
  margin: 0;
  border-radius: 0;
}

.carousel-progress-bar {
  height: 100%;
  background: var(--accent);
  border-radius: 0;
  width: 16.67%;
  transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Carousel Tab Bar — Palantir-style */
.carousel-tabs {
  display: flex;
  align-items: stretch;
  gap: 0;
  border-bottom: 1px solid var(--line);
  margin: 0 auto;
  padding: 0;
  position: relative;
  z-index: 5;
  max-width: var(--max-width);
}

.carousel-tab {
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 6px;
  padding: 20px 24px;
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  color: var(--text-muted);
  font-family: inherit;
  cursor: pointer;
  text-align: left;
  transition: color var(--transition-fast), background var(--transition-fast), border-color var(--transition-fast);
  position: relative;
  outline: none;
}

.carousel-tab + .carousel-tab {
  border-left: 1px solid var(--line);
}

.carousel-tab .tab-index {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  transition: color var(--transition-fast);
}

.carousel-tab .tab-label {
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--text-secondary);
  transition: color var(--transition-fast);
}

.carousel-tab:hover {
  background: rgba(255, 255, 255, 0.02);
}

.carousel-tab:hover .tab-label {
  color: var(--text-primary);
}

.carousel-tab:hover .tab-index {
  color: var(--accent-bright);
}

.carousel-tab.is-active {
  background: rgba(59, 130, 246, 0.04);
  border-bottom-color: var(--accent-bright);
}

.carousel-tab.is-active .tab-index {
  color: var(--accent-bright);
}

.carousel-tab.is-active .tab-label {
  color: var(--text-primary);
}

.carousel-tab:focus-visible {
  box-shadow: inset 0 0 0 2px var(--accent-bright);
}


/* Carousel Responsive */
@media (max-width: 1024px) {
  .carousel-tab {
    padding: 16px 16px;
  }

  .carousel-tab .tab-label {
    font-size: 0.8rem;
  }

  .slide-layout {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  
  .slide-layout.full-width {
    grid-template-columns: 1fr;
  }

  .slide-side {
    order: -1;
  }

  .slide-main {
    max-width: 100%;
  }

  .slide-images {
    max-width: 360px;
    margin: 0 auto;
  }

  .slide-pyramid img {
    max-width: 340px;
  }
  
  .slide-bars {
    max-width: 360px;
    margin: 0 auto;
  }

  .slide-icons {
    max-width: 280px;
    margin: 0 auto;
  }

  .platform-visual {
    max-width: 320px;
    margin: 0 auto;
  }
  
  .carousel-slide {
    padding: 40px 40px 60px;
    height: auto;
    min-height: 0;
    max-height: none;
  }

  .slide-header h3 {
    font-size: clamp(1.6rem, 4vw, 2.4rem);
  }

  .slide-body {
    max-width: 100%;
  }
}

@media (max-width: 768px) {
  .carousel-tabs {
    flex-wrap: wrap;
    border-bottom: none;
  }

  .carousel-tab {
    flex: 1 1 calc(33.333% - 1px);
    padding: 12px 12px;
    border-bottom: 1px solid var(--line);
    border-left: 1px solid var(--line);
  }

  .carousel-tab:nth-child(3n+1) {
    border-left: none;
  }

  .carousel-tab .tab-label {
    font-size: 0.72rem;
  }

  .carousel-slide {
    padding: 32px 20px 80px;
    height: auto;
    min-height: 0;
    max-height: none;
  }

  .difficulty-grid {
    grid-template-columns: 1fr;
  }

  .slide-icons {
    grid-template-columns: repeat(3, 1fr);
    max-width: 220px;
  }

  .carousel-controls {
    bottom: 30px;
  }

  .slide-layout {
    gap: 32px;
  }

  .slide-header h3 {
    font-size: clamp(1.3rem, 5vw, 1.8rem);
  }

  .slide-body {
    max-width: 100%;
  }

  .slide-text {
    font-size: 0.95rem;
  }

  .slide-images {
    max-width: 280px;
  }

  .slide-bars {
    max-width: 280px;
  }

  .slide-icons {
    max-width: 200px;
  }

  .platform-visual {
    max-width: 260px;
  }

  .delivery-cards {
    gap: 16px;
  }

  .method-layer {
    padding: 16px 20px;
  }
}

@media (max-width: 480px) {
  .carousel-slide {
    padding: 24px 16px 80px;
  }

  .carousel-tab {
    flex: 1 1 calc(50% - 1px);
    padding: 10px 8px;
  }

  .carousel-tab:nth-child(3n+1) {
    border-left: 1px solid var(--line);
  }

  .carousel-tab:nth-child(2n+1) {
    border-left: none;
  }

  .carousel-tab .tab-index {
    font-size: 0.65rem;
  }

  .carousel-tab .tab-label {
    font-size: 0.68rem;
  }

  .slide-layout {
    gap: 24px;
  }

  .slide-header h3 {
    font-size: clamp(1.1rem, 5.5vw, 1.5rem);
  }

  .slide-header {
    margin-bottom: 16px;
  }

  .slide-body {
    max-width: 100%;
  }

  .slide-text {
    font-size: 0.88rem;
    line-height: 1.7;
  }

  .slide-images {
    max-width: 220px;
  }

  .pain-points {
    gap: 12px;
  }

  .pain-item {
    padding: 12px 16px;
  }

  .diff-card {
    padding: 20px 16px;
  }

  .method-layer {
    padding: 12px 16px;
  }

  .delivery-card {
    padding: 20px 16px;
  }

  .pyramid-layer {
    padding: 16px 24px;
  }

  .carousel-controls {
    bottom: 20px;
  }
}

/* ========================================
   Scenario Cards — Q6 2x3 Grid
   ======================================== */

.scenarios-section {
  padding: 120px 48px;
  background: var(--bg-secondary);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.scenarios-section .section-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.scenario-card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.scenario-card {
  display: flex;
  flex-direction: column;
  border-radius: 10px;
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--line);
  transition: all var(--transition);
  text-decoration: none;
  position: relative;
}

.scenario-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 10px;
  border: 2px solid var(--accent);
  opacity: 0;
  transition: opacity var(--transition);
  pointer-events: none;
  z-index: 2;
}

.scenario-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card-hover), var(--shadow-glow);
}

.scenario-card:hover::before {
  opacity: 1;
}

.scenario-card-img {
  height: 180px;
  overflow: hidden;
  position: relative;
}

.scenario-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition);
  filter: saturate(0.7) brightness(0.85);
}

.scenario-card:hover .scenario-card-img img {
  transform: scale(1.05);
  filter: saturate(1) brightness(1);
}

.scenario-card-img::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60%;
  background: linear-gradient(to top, var(--bg-card), transparent);
  pointer-events: none;
}

.scenario-card-body {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.scenario-card-label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-bright);
  margin-bottom: 8px;
}

.scenario-card-body h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--text-primary);
  transition: color var(--transition-fast);
}

.scenario-card:hover .scenario-card-body h3 {
  color: var(--accent-bright);
}

.scenario-card-body p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.65;
  flex: 1;
}

/* ========================================
   Solution Page
   ======================================== */

.solution-page {
  padding: 140px 48px 120px;
  background: var(--bg-primary);
}

.solution-page .section-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.scenario-nav a {
  padding: 8px 20px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
  border: 1px solid var(--line);
  border-radius: 4px;
  transition: all var(--transition-fast);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.scenario-nav a:hover {
  color: var(--text-primary);
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.03);
}

.solution-article:last-child {
  border-bottom: none;
}

.solution-article h2 {
  font-size: 1.6rem;
  font-weight: 700;
  line-height: 1.2;
}

.solution-point-list li {
  padding: 24px 28px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 6px;
  transition: all var(--transition);
  position: relative;
  padding-left: 40px;
}

.solution-point-list li::before {
  content: "";
  position: absolute;
  left: 28px;
  top: 32px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--accent);
}

.solution-point-list li:hover {
  background: var(--bg-card-hover);
  border-color: var(--line-strong);
}

.solution-point-list strong {
  display: block;
  color: var(--text-primary);
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 6px;
}

.solution-point-list li p,
.solution-point-list li {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ========================================
   Pricing Page
   ======================================== */

.pricing-page {
  padding: 140px 48px 120px;
  background: var(--bg-primary);
}

.pricing-page .section-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.pricing-intro {
  max-width: 640px;
  margin-bottom: 48px;
}

.pricing-intro p {
  font-size: 1.05rem;
  color: var(--text-secondary);
}

.pricing-features {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
  background: var(--line);
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 64px;
}

.feature-card {
  background: var(--bg-secondary);
  padding: 32px 24px;
  text-align: center;
  transition: background var(--transition);
}

.feature-card:hover {
  background: var(--bg-tertiary);
}

.feature-icon {
  font-size: 1.6rem;
  margin-bottom: 12px;
}

.feature-card h3 {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 6px;
}

.feature-card p {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.pricing-block {
  margin-bottom: 56px;
}

.pricing-block-title {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.pricing-block-title span {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--accent);
  min-width: 24px;
}

.pricing-block-title h3 {
  font-size: 1.2rem;
  font-weight: 600;
}

.pricing-table-wrap {
  overflow-x: auto;
  border-radius: 8px;
  border: 1px solid var(--line);
}

.pricing-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.pricing-table th {
  background: var(--bg-tertiary);
  padding: 14px 20px;
  font-weight: 600;
  font-size: 0.82rem;
  color: var(--text-secondary);
  text-align: left;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}

.pricing-table td {
  padding: 14px 20px;
  border-bottom: 1px solid var(--line);
  color: var(--text-secondary);
  background: var(--bg-card);
}

.pricing-table tr:last-child td {
  border-bottom: none;
}

.pricing-table td strong {
  color: var(--text-primary);
  font-weight: 700;
  font-size: 1rem;
}

.pricing-table .rate {
  font-size: 0.78rem;
  color: var(--text-dim);
}

.pricing-note {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 12px;
  padding-left: 4px;
}

.pricing-optional {
  margin-top: 20px;
  padding: 24px 28px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 6px;
}

.pricing-optional strong {
  color: var(--text-primary);
  font-size: 0.92rem;
}

.pricing-optional p {
  margin-top: 8px;
  font-size: 0.88rem;
  color: var(--text-secondary);
}

.pricing-divider {
  border: none;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--line-strong), transparent);
  margin: 48px 0;
}

/* ========================================
   About Page
   ======================================== */

.about-page {
  padding: 140px 48px 120px;
  background: var(--bg-primary);
  overflow: visible;
}

.about-page .section-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

/* Manifesto */
.about-manifesto {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 56px;
  padding: 72px 0;
  border-bottom: 1px solid var(--line);
  align-items: start;
}

.about-manifesto-lead h2 {
  font-size: 2rem;
  font-weight: 700;
  margin-top: 12px;
}

.about-manifesto-body p {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 20px;
}

/* Proof points */
.about-proof {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  background: var(--line);
  border-radius: 8px;
  overflow: hidden;
  margin: 72px 0;
}

.about-proof-item {
  background: var(--bg-secondary);
  padding: 48px 36px;
}

.about-proof-item span {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.12em;
  display: block;
  margin-bottom: 12px;
}

.about-proof-item strong {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-primary);
  display: block;
  margin-bottom: 12px;
}

.about-proof-item p {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* Company Profile */
.about-profile {
  padding: 72px 0;
  border-bottom: 1px solid var(--line);
}

.about-profile-heading {
  margin-bottom: 24px;
}

.about-profile-body p {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.8;
  max-width: 720px;
}

/* Brand Pillars */
.brand-pillars {
  padding: 72px 0;
  border-bottom: 1px solid var(--line);
}

.brand-pillars-heading {
  margin-bottom: 40px;
}

.brand-pillars-heading h2 {
  margin-top: 8px;
}

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

.brand-pillar {
  padding: 36px 28px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 8px;
  transition: all var(--transition);
}

.brand-pillar:hover {
  border-color: var(--line-strong);
  background: var(--bg-card-hover);
}

.brand-pillar-index {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-bright);
  margin-bottom: 16px;
}

.brand-pillar h3 {
  font-size: 1.1rem;
  font-weight: 600;
  line-height: 1.4;
}

/* Timeline */
.about-timeline {
  padding: 72px 0;
  overflow: visible;
}

.about-timeline .section-heading {
  margin-bottom: 48px;
}

.timeline {
  position: relative;
  padding: 16px 0;
}

.timeline::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 140px;
  width: 1px;
  background: var(--line-strong);
}

.timeline-item {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 40px;
  margin-bottom: 40px;
  position: relative;
  align-items: start;
}

.timeline-item:last-child {
  margin-bottom: 0;
}

.timeline-dot {
  position: absolute;
  left: 133px;
  top: 12px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--bg-primary);
  border: 2px solid var(--accent);
  z-index: 1;
}

.timeline-year {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--text-primary);
  text-align: right;
  letter-spacing: -0.02em;
  padding-top: 4px;
}

.timeline-content {
  padding: 20px 28px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 6px;
  transition: all var(--transition);
  margin-left: 24px;
}

.timeline-content:hover {
  background: var(--bg-card-hover);
  border-color: var(--line-strong);
}

.timeline-content h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 6px;
}

.timeline-content p {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* Climbing timeline (desktop): items positioned by script.js,
   ascending from bottom-left to top-right along a polyline */
.timeline.is-climbing {
  padding: 0;
}

.timeline.is-climbing::before {
  display: none;
}

.timeline-polyline {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
  z-index: 0;
}

.timeline.is-climbing .timeline-item {
  position: absolute;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 0;
}

/* Milestone card sits above the line */
.timeline.is-climbing .timeline-content {
  width: 280px;
  margin-left: 0;
  padding: 16px 18px;
  text-align: center;
}

/* Stem connects the card to the dot on the line */
.timeline-stem {
  display: none;
}

.timeline.is-climbing .timeline-stem {
  display: block;
  width: 1px;
  height: 40px;
  background: var(--accent);
  margin: 12px 0;
  opacity: 0.6;
}

.timeline.is-climbing .timeline-dot {
  position: static;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent-bright);
  border: 0;
  box-shadow: 0 0 10px rgba(59, 130, 246, 0.7);
}

/* Year sits below the line */
.timeline.is-climbing .timeline-year {
  margin-top: 12px;
  padding-top: 0;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--accent-bright);
  text-align: center;
}

/* Contact inline */
.about-contact-inline {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 32px 0;
  margin-top: 48px;
  border-top: 1px solid var(--line);
  font-size: 0.88rem;
  flex-wrap: wrap;
}

.about-contact-inline span {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.about-contact-inline a {
  color: var(--accent-bright);
  transition: color var(--transition-fast);
}

.about-contact-inline a:hover {
  color: #fff;
}

/* Card label */
.card-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-bright);
  margin-bottom: 8px;
  display: block;
}

/* ========================================
   Reveal Animations
   ======================================== */

.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-stagger > * {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal-stagger.is-visible > * {
  opacity: 1;
  transform: translateY(0);
}

.reveal-stagger.is-visible > *:nth-child(1) { transition-delay: 0.05s; }
.reveal-stagger.is-visible > *:nth-child(2) { transition-delay: 0.12s; }
.reveal-stagger.is-visible > *:nth-child(3) { transition-delay: 0.19s; }
.reveal-stagger.is-visible > *:nth-child(4) { transition-delay: 0.26s; }
.reveal-stagger.is-visible > *:nth-child(5) { transition-delay: 0.33s; }
.reveal-stagger.is-visible > *:nth-child(6) { transition-delay: 0.40s; }
.reveal-stagger.is-visible > *:nth-child(7) { transition-delay: 0.47s; }

/* ========================================
   Geometric Decorations
   ======================================== */

.geo-line {
  position: absolute;
  pointer-events: none;
}

.geo-line-h {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line-accent), transparent);
}

.geo-circle {
  border: 1px solid var(--line);
  border-radius: 50%;
  opacity: 0.2;
}

/* Section divider accent */
.section-divider {
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    var(--line-strong) 20%,
    var(--line-accent) 50%,
    var(--line-strong) 80%,
    transparent 100%
  );
  margin: 0;
  border: none;
}

/* ========================================
   Responsive
   ======================================== */

@media (max-width: 1024px) {
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .value-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .value-grid .value-card:last-child {
    grid-column: 1 / -1;
  }

  .footer-top {
    grid-template-columns: 1fr 1fr;
  }

  .about-manifesto {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .pricing-features {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .site-header {
    padding: 0 24px;
  }

  .nav-toggle {
    display: flex;
  }

  .site-nav {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: rgba(10, 14, 23, 0.98);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    flex-direction: column;
    padding: 24px;
    gap: 4px;
    border-bottom: 1px solid var(--line);
    display: none;
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    padding: 12px 16px;
    width: 100%;
    font-size: 0.95rem;
  }

  .hero-section {
    padding: 120px 24px 60px;
    min-height: auto;
  }

  h1 {
    font-size: clamp(2rem, 8vw, 2.8rem);
  }

  .hero-metrics {
    grid-template-columns: repeat(2, 1fr);
    gap: 0;
    margin-top: 48px;
  }

  .hero-metric-item:nth-child(2)::after {
    display: none;
  }

  .value-section,
  .cta-section,
  .solution-page,
  .pricing-page,
  .about-page,
  .product-section,
  .product-page {
    padding: 80px 24px;
  }

  .product-grid {
    grid-template-columns: 1fr;
  }

  .value-grid {
    grid-template-columns: 1fr;
  }

  .about-proof {
    grid-template-columns: 1fr;
  }

  .brand-pillars-strip {
    grid-template-columns: 1fr;
  }

  .timeline::before {
    left: 20px;
  }

  .timeline-item {
    grid-template-columns: 1fr;
    padding-left: 48px;
    gap: 8px;
  }

  .timeline-dot {
    left: 13px;
  }

  .timeline-year {
    text-align: left;
    font-size: 1.2rem;
  }

  .timeline-content {
    margin-left: 0;
  }

  .timeline-stem {
    display: none;
  }

  .footer-top {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }

  .site-footer {
    padding: 48px 24px 32px;
  }

  .pricing-features {
    grid-template-columns: 1fr 1fr;
  }

  .hero-actions {
    flex-direction: column;
    align-items: flex-start;
  }

  .cta-actions {
    flex-direction: column;
    align-items: center;
  }
}

@media (max-width: 480px) {
  .hero-metrics {
    grid-template-columns: 1fr;
  }

  .hero-metric-item::after {
    display: none !important;
  }

  .metric-number {
    font-size: 1.6rem;
  }

  .pricing-features {
    grid-template-columns: 1fr;
  }

  .scenario-nav a {
    padding: 6px 14px;
    font-size: 0.76rem;
  }
}

/* ========================================
   Minimal Hero — Palantir Slogan-Only
   ======================================== */

.hero-minimal {
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 48px;
}

.hero-minimal .hero-content {
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
}

.hero-slogan h1 {
  font-size: clamp(3.5rem, 8vw, 6.5rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.04em;
  color: var(--text-primary);
}

.hero-slogan h1 .accent {
  color: var(--accent-bright);
}

/* Scroll hint */
.hero-scroll-hint {
  position: absolute;
  bottom: 48px;
  left: 50%;
  transform: translateX(-50%);
}

.scroll-line {
  width: 1px;
  height: 64px;
  background: linear-gradient(to bottom, var(--accent), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% {
    opacity: 0.3;
    transform: scaleY(0.6);
    transform-origin: top;
  }
  50% {
    opacity: 1;
    transform: scaleY(1);
    transform-origin: top;
  }
}

/* ========================================
   Intro Section — Second Screen
   ======================================== */

.intro-section {
  padding: 120px 48px;
  background: var(--bg-primary);
  border-top: 1px solid var(--line);
}

.intro-section .section-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.intro-layout {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 64px;
  align-items: start;
  margin-bottom: 72px;
}

.intro-lead h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 700;
  line-height: 1.15;
}

.intro-body p {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 20px;
}

.intro-body .hero-actions {
  margin-top: 32px;
}

@media (max-width: 768px) {
  .hero-minimal {
    padding: 0 24px;
  }

  .hero-slogan h1 {
    font-size: clamp(2.5rem, 10vw, 4rem);
  }

  .intro-section {
    padding: 80px 24px;
  }

  .intro-layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .scroll-line {
    height: 48px;
  }
}

/* ========================================
   Hero Video Background & Outfit Font
   ======================================== */

.hero-bg video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.7;
  filter: saturate(0.5) contrast(1.05) brightness(0.8);
}

.hero-slogan h1 {
  font-family: "Outfit", "Inter", sans-serif;
  font-weight: 300;
  letter-spacing: -0.02em;
  line-height: 1.12;
}

.hero-slogan h1 .accent {
  font-weight: 600;
}

/* ========================================
   Product Carousel — Unified Q&A Layout
   ======================================== */

/* Palantir-style Full-Width Carousel */
.carousel {
  position: relative;
  width: 100vw;
  left: 50%;
  margin-left: -50vw;
  overflow: hidden;
  background: var(--bg-primary);
  /* 纵向滚动保留给页面，横向手势交给轮播做滑动切换 */
  touch-action: pan-y;
  cursor: grab;
  -webkit-user-select: none;
  user-select: none;
}

.carousel:active {
  cursor: grabbing;
}

.carousel-track {
  display: flex;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}

.carousel-slide {
  flex: 0 0 100%;
  overflow: hidden;
  padding: 48px 80px 80px;
  height: auto;
  min-height: 560px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Unified slide layout: question + answer + visual */
.slide-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 80px;
  align-items: center;
  width: 100%;
  max-width: 1600px;
  margin: 0 auto;
}

.slide-layout.full-width {
  grid-template-columns: 1fr;
  text-align: center;
}

.slide-header {
  margin-bottom: 24px;
}

.slide-index {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 8px;
}

.slide-header h3 {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

.slide-body {
  max-width: 640px;
}

.slide-body.centered {
  max-width: 720px;
  margin: 0 auto;
}

.slide-text {
  font-size: 1.1rem;
  color: var(--text-secondary);
  line-height: 1.85;
}

.slide-text.mb-24 {
  margin-bottom: 24px;
}

/* Slide 2: Pain points */
.pain-points {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.pain-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 6px;
  transition: all 0.2s;
}

.pain-item:hover {
  background: var(--bg-card-hover);
  border-color: var(--line-accent);
}

.pain-item strong {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--accent-bright);
  min-width: 100px;
}

.pain-item span {
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* Slide 3: Difficulty cards */
.difficulty-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.diff-card {
  padding: 14px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 6px;
  transition: all 0.2s;
}

.diff-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--line-accent);
}

.diff-num {
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.1em;
  margin-bottom: 4px;
}

.diff-card h4 {
  font-size: 0.88rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.diff-card p {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* Slide 5: Methodology layers */
.methodology-stack {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.method-layer {
  padding: 14px 16px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 6px;
  border-left: 3px solid var(--accent);
}

.method-level {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 2px;
}

.method-layer strong {
  font-size: 0.9rem;
  display: block;
  margin-bottom: 4px;
}

.method-layer p {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* Slide 6: Delivery cards */
.delivery-cards {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.delivery-card {
  padding: 16px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 6px;
  transition: all 0.2s;
}

.delivery-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--line-accent);
}

.dc-icon {
  font-size: 1.2rem;
  margin-bottom: 6px;
}

.delivery-card h4 {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.dc-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.dc-tags span {
  font-size: 0.68rem;
  padding: 3px 8px;
  background: var(--accent-glow);
  color: var(--accent-bright);
  border-radius: 3px;
  font-weight: 500;
}

/* Slide visuals (right side) */
.slide-side {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Slide 1: Dual images side-by-side */
.slide-images {
  display: flex;
  flex-direction: row;
  gap: 16px;
  width: 100%;
  max-width: 600px;
}

.slide-images .img-main,
.slide-images .img-overlay {
  flex: 1 1 0;
  width: auto;
  max-width: 50%;
  border-radius: 8px;
  border: 1px solid var(--line);
  object-fit: cover;
}

/* Slide 2: Icon grid */
.slide-icons {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  max-width: 320px;
}

.icon-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 16px 12px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 6px;
  transition: all 0.2s;
}

.icon-box:hover {
  background: var(--bg-card-hover);
  border-color: var(--line-accent);
}

.icon-box span {
  font-size: 1.4rem;
}

.icon-box p {
  font-size: 0.68rem;
  color: var(--text-muted);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Slide 3: Bar chart */
.slide-bars {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
  max-width: 420px;
}

.bar-item {
  display: flex;
  align-items: center;
  gap: 12px;
}

.bar-item span {
  font-size: 0.78rem;
  color: var(--text-muted);
  min-width: 90px;
  text-align: right;
}

.bar-fill {
  height: 6px;
  background: linear-gradient(90deg, var(--accent), var(--accent-bright));
  border-radius: 3px;
}

/* Slide 5: Pyramid image */
.slide-pyramid img {
  width: 100%;
  max-width: 420px;
  border-radius: 8px;
  border: 1px solid var(--line);
}

/* Slide 6: Platform blocks */
.platform-visual {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 360px;
}

.plat-block {
  padding: 20px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 6px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.2s;
}

.plat-block:hover {
  background: var(--bg-card-hover);
}

.plat-block.highlight {
  border-color: var(--accent);
  background: var(--accent-glow);
}

.plat-block span {
  font-size: 0.9rem;
  font-weight: 600;
}

.plat-dots {
  display: flex;
  gap: 4px;
}

.plat-dots i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--text-dim);
}

.plat-block.highlight .plat-dots i {
  background: var(--accent-bright);
}

/* Slide 4: Full-width image */
.slide-image-full {
  max-width: 800px;
  margin: 0 auto;
}

.slide-image-full img {
  width: 100%;
  border-radius: 8px;
  border: 1px solid var(--line);
}

/* Carousel controls - Palantir style */
.carousel-controls {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  padding: 0;
  z-index: 10;
}

.carousel-btn {
  width: 36px;
  height: 36px;
  border: 1px solid var(--line-strong);
  background: var(--bg-card);
  color: var(--text-secondary);
  border-radius: 50%;
  cursor: pointer;
  font-size: 1rem;
  display: grid;
  place-items: center;
  transition: all 0.2s;
}

.carousel-btn:hover {
  background: var(--bg-card-hover);
  color: var(--text-primary);
  border-color: var(--accent);
}

.carousel-dots {
  display: flex;
  gap: 12px;
}

.dot {
  width: 32px;
  height: 3px;
  border-radius: 2px;
  border: none;
  background: rgba(255, 255, 255, 0.2);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 0;
}

.dot.is-active {
  background: var(--accent);
  width: 48px;
}

.dot:hover:not(.is-active) {
  background: rgba(255, 255, 255, 0.4);
}

.carousel-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: rgba(255, 255, 255, 0.1);
  margin: 0;
  border-radius: 0;
}

.carousel-progress-bar {
  height: 100%;
  background: var(--accent);
  border-radius: 0;
  width: 16.67%;
  transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Carousel Responsive */
@media (max-width: 1024px) {
  .slide-layout {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  
  .slide-layout.full-width {
    grid-template-columns: 1fr;
  }

  .slide-side {
    order: -1;
  }

  .slide-images {
    max-width: 360px;
    margin: 0 auto;
  }

  .slide-pyramid img {
    max-width: 340px;
  }
  
  .slide-bars {
    max-width: 360px;
    margin: 0 auto;
  }

  .slide-icons {
    max-width: 280px;
    margin: 0 auto;
  }

  .platform-visual {
    max-width: 320px;
    margin: 0 auto;
  }
  
  .carousel-slide {
    padding: 80px 40px;
    height: auto;
    min-height: 0;
    max-height: none;
  }

  .slide-header h3 {
    font-size: clamp(1.6rem, 4vw, 2.4rem);
  }

  .slide-body {
    max-width: 100%;
  }
}

@media (max-width: 768px) {
  .carousel-slide {
    padding: 60px 20px 100px;
    height: auto;
    min-height: 0;
    max-height: none;
  }

  .difficulty-grid {
    grid-template-columns: 1fr;
  }

  .slide-icons {
    grid-template-columns: repeat(3, 1fr);
    max-width: 220px;
  }

  .carousel-controls {
    bottom: 30px;
  }

  .slide-layout {
    gap: 32px;
  }

  .slide-header h3 {
    font-size: clamp(1.3rem, 5vw, 1.8rem);
  }

  .slide-body {
    max-width: 100%;
  }

  .slide-images {
    max-width: 280px;
  }

  .slide-bars {
    max-width: 280px;
  }

  .platform-visual {
    max-width: 260px;
  }
}

/* ========================================
   Carousel + Scenarios Responsive
   ======================================== */

@media (max-width: 1024px) {
  .slide-content {
    grid-template-columns: 1fr;
    gap: 32px;
    min-height: auto;
  }

  .slide-visual {
    order: -1;
  }

  .slide-image-pair {
    max-width: 280px;
    margin: 0 auto;
  }

  .slide-full-img {
    max-width: 320px;
    margin: 0 auto;
  }

  .scenario-card-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .carousel-slide {
    padding: 32px 24px;
  }

  .slide-points {
    grid-template-columns: 1fr;
  }

  .slide-icon-grid {
    grid-template-columns: repeat(3, 1fr);
    max-width: 260px;
  }

  .carousel-progress {
    margin: 0 24px;
  }

  .scenarios-section {
    padding: 80px 24px;
  }

  .scenario-card-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .scenario-card-img {
    height: 150px;
  }
}

/* ========================================
   Solution Page — Alternating Layout + Detail
   ======================================== */

.solution-page {
  padding: 140px 48px 120px;
  background: var(--bg-primary);
}

.solution-page .section-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

/* Alternating list */
.solution-list {
  display: flex;
  flex-direction: column;
  gap: 80px;
}

.solution-item {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  cursor: pointer;
  transition: all var(--transition);
}

.solution-item.reverse {
  direction: rtl;
}

.solution-item.reverse > * {
  direction: ltr;
}

.solution-item:hover {
  transform: translateY(-2px);
}

.solution-item-text {
  padding: 20px 0;
}

.solution-item-text .solution-card-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-bright);
  margin-bottom: 12px;
}

.solution-item-text h3 {
  font-size: clamp(1.4rem, 2.5vw, 1.8rem);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 16px;
  line-height: 1.3;
  transition: color var(--transition-fast);
}

.solution-item:hover .solution-item-text h3 {
  color: var(--accent-bright);
}

.solution-item-text > p {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 20px;
}

.solution-card-link {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent-bright);
  letter-spacing: 0.02em;
  transition: color var(--transition-fast);
}

.solution-item:hover .solution-card-link {
  color: #fff;
}

.solution-item-img {
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  height: 320px;
  border: 1px solid var(--line);
  transition: all var(--transition);
}

.solution-item-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition);
  filter: saturate(0.7) brightness(0.85);
  display: block;
}

.solution-item:hover .solution-item-img {
  border-color: var(--line-accent);
  box-shadow: var(--shadow-card-hover), var(--shadow-glow);
}

.solution-item:hover .solution-item-img img {
  transform: scale(1.03);
  filter: saturate(1) brightness(1);
}

/* ========================================
   Lifecycle Line — scrollytelling
   ======================================== */

.solution-list.lifecycle {
  position: relative;
  gap: 72px;
}

/* Faint full path + glowing lit path (drawn by script.js) */
.lifecycle-line {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
  overflow: visible;
}

.lifecycle-line .lifecycle-track {
  fill: none;
  stroke: rgba(255, 255, 255, 0.06);
  stroke-width: 2;
  stroke-linecap: round;
}

.lifecycle-line .lifecycle-progress {
  fill: none;
  stroke: url(#lifecycleGradient);
  stroke-width: 2;
  stroke-linecap: round;
  filter: drop-shadow(0 0 6px rgba(96, 165, 250, 0.5));
}

/* Every stage is a node centered on the line */
.solution-list.lifecycle .solution-item {
  display: block;
  width: min(900px, 100%);
  margin: 0 auto;
  position: relative;
  z-index: 2;
  transition: opacity 0.5s ease, filter 0.5s ease;
}

/* Node head: dot on the line + prominent stage label */
.solution-node-head {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-bottom: 22px;
}

.lifecycle-dot {
  flex: none;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--bg-primary);
  border: 2px solid var(--text-dim);
  transition: all 0.45s ease;
}

.solution-node-label {
  font-size: 2.05rem;
  font-weight: 800;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--text-muted);
  transition: color 0.45s ease, text-shadow 0.45s ease;
}

/* Stage image — the resting (unfocused) state of a node */
.solution-item-media {
  position: relative;
  height: 600px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--line);
  transition: border-color var(--transition), box-shadow var(--transition);
}

.solution-item-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(0.7) brightness(0.8);
  transition: filter var(--transition), transform var(--transition);
}

.solution-item:hover .solution-item-media {
  border-color: var(--line-accent);
}

/* Floating content layer above the image */
.solution-item-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 21px;
  padding: 54px 66px;
  background: linear-gradient(180deg, rgba(10, 14, 23, 0.35) 0%, rgba(10, 14, 23, 0.88) 100%);
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.45s ease, transform 0.45s ease;
  pointer-events: none;
}

.solution-item-overlay h3 {
  font-size: clamp(1.5rem, 3.6vw, 1.8rem);
  font-weight: 700;
  line-height: 1.3;
  color: var(--text-primary);
}

.solution-item-overlay p {
  max-width: 600px;
  font-size: 1.4rem;
  line-height: 1.7;
  color: var(--text-secondary);
}

/* Focused node: label lights up, content floats above the image */
.solution-item.is-active .solution-node-label {
  color: var(--accent-bright);
  text-shadow: 0 0 20px rgba(96, 165, 250, 0.8);
}

.solution-item.is-active .lifecycle-dot {
  border-color: var(--accent-bright);
  background: var(--accent-bright);
  animation: lifecyclePulse 2.4s ease-in-out infinite;
}

.solution-item.is-active .solution-item-media {
  border-color: var(--line-accent);
  box-shadow: var(--shadow-card-hover), var(--shadow-glow);
}

.solution-item.is-active .solution-item-media img {
  filter: saturate(1) brightness(1);
  transform: scale(1.02);
}

.solution-item.is-active .solution-item-overlay,
.solution-item:hover .solution-item-overlay {
  opacity: 1;
  transform: translateY(0);
}

/* Stages the reader has moved past recede */
.solution-list.lifecycle .solution-item.is-past {
  opacity: 0.5;
  filter: saturate(0.7);
}

.solution-list.lifecycle .solution-item.is-past:hover {
  opacity: 0.9;
}

@keyframes lifecyclePulse {
  0%, 100% {
    box-shadow: 0 0 0 6px rgba(59, 130, 246, 0.18), 0 0 22px rgba(96, 165, 250, 0.85);
  }
  50% {
    box-shadow: 0 0 0 11px rgba(59, 130, 246, 0.06), 0 0 32px rgba(96, 165, 250, 0.95);
  }
}

/* Closed-loop statement under Recycle */
.lifecycle-loop {
  position: relative;
  z-index: 3;
  max-width: 560px;
  margin: 8px auto 0;
  padding: 36px 44px;
  text-align: center;
  border: 1px dashed rgba(96, 165, 250, 0.35);
  border-radius: 14px;
  background: radial-gradient(ellipse at center, rgba(59, 130, 246, 0.1), transparent 72%);
}

.lifecycle-loop-icon {
  display: block;
  font-size: 1.7rem;
  line-height: 1;
  color: var(--accent-bright);
  text-shadow: 0 0 18px rgba(96, 165, 250, 0.75);
  margin-bottom: 14px;
}

.lifecycle-loop-text {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text-primary);
}

.lifecycle-loop-sub {
  margin-top: 8px;
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* Solution Responsive */
@media (max-width: 1024px) {
  .solution-item {
    gap: 32px;
  }

  .solution-item-img {
    height: 260px;
  }
}

@media (max-width: 768px) {
  .solution-page {
    padding: 100px 24px 80px;
  }

  .solution-list {
    gap: 48px;
  }

  /* Lifecycle nodes on mobile */
  .solution-list.lifecycle {
    gap: 56px;
  }

  .solution-node-label {
    font-size: 0.9rem;
    letter-spacing: 0.26em;
  }

  .solution-item-media {
    height: 420px;
  }

  .solution-item-overlay {
    padding: 30px;
    gap: 15px;
  }

  .solution-item-overlay h3 {
    font-size: 1.5rem;
  }

  .solution-item-overlay p {
    font-size: 1.1rem;
  }

  .lifecycle-loop {
    padding: 28px 20px;
    margin-top: 0;
  }

  .solution-item,
  .solution-item.reverse {
    grid-template-columns: 1fr;
    direction: ltr;
    gap: 20px;
  }

  .solution-item.reverse > * {
    direction: ltr;
  }

  .solution-item-img {
    height: 220px;
    order: -1;
  }

  .solution-item-text {
    padding: 0;
  }


  .detail-body {
    padding: 24px 20px 36px;
  }

  .detail-body h2 {
    font-size: 1.3rem;
  }
}


/* ========================================
   Full-Screen Detail Page
   ======================================== */

.detail-page {
  position: fixed;
  inset: 0;
  background: var(--bg-primary);
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  overflow-y: auto;
  overflow-x: hidden;
}

.detail-page.is-open {
  opacity: 1;
  visibility: visible;
}

.detail-page-inner {
  max-width: 800px;
  margin: 0 auto;
  padding: 48px 24px 120px;
  position: relative;
}

.detail-close {
  position: sticky;
  top: 24px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  color: var(--text-secondary);
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-bottom: 48px;
  z-index: 10;
}

.detail-close:hover {
  background: var(--bg-hover);
  color: var(--text-primary);
  border-color: var(--border-hover);
}

.detail-close span {
  font-size: 1.25rem;
  line-height: 1;
}

.detail-content {
  min-height: 400px;
}

.detail-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px 0;
  font-size: 1.125rem;
  color: var(--text-secondary);
}

.detail-loading::before {
  content: '';
  width: 24px;
  height: 24px;
  border: 3px solid var(--border-color);
  border-top-color: var(--accent-color);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin-right: 12px;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.detail-error {
  padding: 48px;
  text-align: center;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  color: var(--text-secondary);
  font-size: 1rem;
}

.detail-article {
  animation: fadeInUp 0.4s ease;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.detail-article h1 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 24px;
  color: var(--text-primary);
  line-height: 1.2;
}

.detail-article h2 {
  font-size: 1.75rem;
  font-weight: 600;
  margin-top: 48px;
  margin-bottom: 24px;
  color: var(--text-primary);
  line-height: 1.3;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--border-color);
}

.detail-article h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-top: 32px;
  margin-bottom: 12px;
  color: var(--accent-color);
  line-height: 1.4;
}

.detail-article p {
  font-size: 1.0625rem;
  line-height: 1.8;
  color: var(--text-secondary);
  margin-bottom: 16px;
}

.detail-article ul {
  margin: 16px 0 24px;
  padding-left: 24px;
}

.detail-article li {
  font-size: 1.0625rem;
  line-height: 1.8;
  color: var(--text-secondary);
  margin-bottom: 12px;
}

.detail-article li::marker {
  color: var(--accent-color);
}

.detail-article .detail-img {
  margin: 20px 0;
  text-align: center;
}

.detail-article .detail-img img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
}

/* Multiple images container - side by side */
.detail-article .detail-img-container {
  display: flex;
  gap: 16px;
  margin: 20px 0;
  justify-content: center;
  flex-wrap: wrap;
}

.detail-article .detail-img-container img {
  flex: 0 0 auto;
  max-width: 52%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
  object-fit: contain;
}

/* Single image in container - enlarge */
.detail-article .detail-img-container:has(img:only-child) img {
  max-width: 80%;
}

.detail-article .detail-video-container {
  display: flex;
  justify-content: center;
  margin: 24px 0;
}

.detail-article .detail-video-container video {
  width: 100%;
  max-width: 80%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
  background: #000;
}

/* ========================================
   Product Page — rendered markdown doc
   Palantir-inspired: structured, type-led, hairline dividers
   ======================================== */

.product-page {
  padding: 140px 48px 120px;
  background: var(--bg-primary);
  overflow: visible;
}

.product-page .section-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.product-doc-wrap {
  margin-top: 56px;
  min-width: 0;
}

.product-doc {
  --accent-color: var(--accent-bright);
  --border-color: var(--line-strong);
  max-width: 100%;
  margin: 0;
}

/* Lead paragraph (section intro) */
.product-doc .doc-lead {
  font-size: 1.25rem;
  line-height: 1.8;
  color: var(--text-secondary);
  margin-bottom: 28px;
  max-width: 820px;
  font-weight: 400;
}

/* Section headings — big, tight, hairline divider (Palantir style) */
.product-doc h2 {
  font-size: clamp(1.9rem, 3.4vw, 2.7rem);
  font-weight: 700;
  margin-top: 84px;
  margin-bottom: 26px;
  padding-top: 44px;
  border-top: 1px solid var(--line);
  color: var(--text-primary);
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.product-doc h2:first-of-type {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

.product-doc h3 {
  font-size: clamp(1.2rem, 2vw, 1.5rem);
  font-weight: 600;
  margin-top: 40px;
  margin-bottom: 16px;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

.product-doc h2,
.product-doc h3 {
  scroll-margin-top: 96px;
}

/* Fallback kicker */
.product-doc .doc-kicker {
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-bright);
  margin: 4px 0 18px;
}

/* ---- Capability cards (core features) ---- */
.doc-capability {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 32px 34px 36px;
  margin-bottom: 24px;
  transition: border-color var(--transition), transform var(--transition);
}

.doc-capability:hover {
  border-color: var(--line-strong);
  transform: translateY(-2px);
}

.doc-capability-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 4px;
}

/* Number badge — 01, 02, 03 … */
.doc-capability-num {
  flex: 0 0 auto;
  font-family: "Inter", monospace;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--accent-bright);
  background: var(--accent-glow);
  border: 1px solid var(--line-accent);
  border-radius: 8px;
  padding: 6px 10px;
  line-height: 1;
}

.doc-capability-header h3 {
  margin: 0;
  font-size: clamp(1.3rem, 2.4vw, 1.75rem);
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

.doc-capability .doc-capability-subtitle {
  font-size: 1rem;
  color: var(--text-muted);
  margin-bottom: 22px;
  font-style: italic;
}

/* Three-column capability layout: Description | Video | Value
   (Palantir "Our Software" style) */
.doc-capability-body {
  margin-top: 6px;
}

.doc-cap-3col {
  display: grid;
  grid-template-columns: 1fr 1.25fr 1fr;
  gap: 28px;
  align-items: center;
  margin-top: 14px;
}

.doc-cap-col {
  min-width: 0;
}

.doc-cap-col-head {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.doc-cap-col-kicker {
  flex: 0 0 auto;
  font-family: "Inter", monospace;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--accent-bright);
  background: var(--accent-glow);
  border: 1px solid var(--line-accent);
  border-radius: 6px;
  padding: 4px 7px;
  line-height: 1;
}

/* Left column — Functional Architecture (功能描述) */
.doc-cap-desc .doc-cap-col-head {
  color: var(--accent-bright);
}

.doc-cap-desc ul {
  margin: 0;
  padding-left: 0;
  list-style: none;
}

.doc-cap-desc li {
  position: relative;
  padding-left: 22px;
  margin-bottom: 13px;
  font-size: 0.98rem;
  line-height: 1.7;
  color: var(--text-secondary);
}

.doc-cap-desc li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 11px;
  width: 6px;
  height: 6px;
  border-radius: 2px;
  background: var(--accent);
}

/* Middle column — Live Preview (视频) */
.doc-cap-media .doc-media-grid {
  margin-top: 0;
  gap: 14px;
}

/* Right column — Value (优势) */
.doc-cap-val {
  background: rgba(16, 185, 129, 0.06);
  border: 1px solid rgba(16, 185, 129, 0.25);
  border-radius: 14px;
  padding: 20px 22px 22px;
}

.doc-cap-val .doc-cap-col-head {
  color: var(--emerald);
  border-bottom-color: rgba(16, 185, 129, 0.25);
}

.doc-cap-val ul {
  margin: 0;
  padding-left: 0;
  list-style: none;
}

.doc-cap-val li {
  position: relative;
  padding-left: 24px;
  margin-bottom: 13px;
  font-size: 0.98rem;
  line-height: 1.7;
  color: var(--text-secondary);
}

.doc-cap-val li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  top: 1px;
  width: auto;
  height: auto;
  border-radius: 0;
  background: none;
  color: var(--emerald);
  font-weight: 700;
  font-size: 0.9rem;
}

/* Media — videos grouped into a clean responsive grid */
.doc-media-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 18px;
  margin-top: 26px;
}

.doc-media {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  background: #000;
  box-shadow: var(--shadow-card);
  transition: border-color var(--transition);
}

.doc-media:hover {
  border-color: var(--line-strong);
}

.doc-media video {
  display: block;
  width: 100%;
  height: auto;
  background: #000;
}

.doc-media .doc-media-caption {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  text-align: center;
  background: rgba(0, 0, 0, 0.45);
  color: #fff;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  margin: 0;
  opacity: 0;
  transition: opacity var(--transition);
  pointer-events: none;
}

.doc-media:hover .doc-media-caption {
  opacity: 1;
}

/* ---- Five basic questions → bento cards ---- */
.doc-gap-cards {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
  margin: 28px 0 36px;
}

.doc-gap-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 20px 18px;
  transition: border-color var(--transition), transform var(--transition), background var(--transition);
}

.doc-gap-card:hover {
  border-color: var(--line-strong);
  background: var(--bg-card-hover);
  transform: translateY(-3px);
}

.doc-gap-tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent-bright);
  background: var(--accent-glow);
  border: 1px solid var(--line-accent);
  border-radius: 6px;
  padding: 4px 9px;
  margin-bottom: 14px;
}

.doc-gap-q {
  font-size: 0.92rem;
  line-height: 1.6;
  color: var(--text-secondary);
  margin: 0;
}

/* ---- Methodology → layered pyramid ---- */
.doc-methodology {
  margin: 24px 0 8px;
}

.doc-methodology > p {
  max-width: 820px;
  margin-bottom: 22px;
  color: var(--text-secondary);
  font-size: 1.05rem;
}

.doc-pyramid {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin: 8px 0 4px;
}

.doc-pyramid-tier {
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  border: 1px solid var(--line-strong);
  background: var(--bg-card);
  box-shadow: var(--shadow-card);
  transition: transform var(--transition), border-color var(--transition);
}

.doc-pyramid-tier:hover {
  transform: translateY(-3px);
  border-color: var(--accent);
}

.doc-pyramid-tier.layer-3 {
  width: 50%;
  background: linear-gradient(135deg, var(--accent-glow), var(--bg-card));
}

.doc-pyramid-tier.layer-2 {
  width: 74%;
}

.doc-pyramid-tier.layer-1 {
  width: 100%;
}

.doc-pyramid-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 18px 22px;
  gap: 5px;
}

.doc-pyramid-step {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-bright);
}

.doc-pyramid-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
}

.doc-pyramid-desc {
  font-size: 0.86rem;
  line-height: 1.5;
  color: var(--text-muted);
  max-width: 460px;
}

/* Inline emphasis */
.product-doc strong {
  color: var(--text-primary);
  font-weight: 600;
}

.product-doc em {
  color: var(--text-muted);
  font-style: italic;
}

.product-doc p {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--text-secondary);
  margin-bottom: 16px;
}

/* Data table (kept for safety) */
.product-doc .product-table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0 32px;
  font-size: 0.96rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
}

.product-doc .product-table th {
  text-align: left;
  padding: 14px 18px;
  background: var(--bg-tertiary);
  color: var(--text-secondary);
  font-weight: 600;
  border-bottom: 1px solid var(--line);
  letter-spacing: 0.03em;
}

.product-doc .product-table td {
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  color: var(--text-secondary);
}

.product-doc .product-table tr:last-child td {
  border-bottom: none;
}

.product-doc .product-table tbody tr:hover td {
  background: var(--bg-card);
}

/* Pull quote */
.product-doc blockquote {
  margin: 32px 0;
  padding: 24px 28px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: 0 12px 12px 0;
  color: var(--text-primary);
  font-size: 1.25rem;
  font-style: italic;
  line-height: 1.6;
}

.product-doc a {
  color: var(--accent-bright);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.product-doc a:hover {
  color: #fff;
}

.product-doc hr {
  border: none;
  height: 1px;
  background: var(--line);
  margin: 48px 0;
}

/* Product highlights — core selling points (hero strip) */
.product-highlights {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin: 44px 0 8px;
}

.highlight-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 24px 22px;
  transition: border-color var(--transition), transform var(--transition), background var(--transition);
}

.highlight-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--line-strong);
  transform: translateY(-3px);
}

.highlight-icon {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: var(--accent-glow);
  color: var(--accent-bright);
  margin-bottom: 16px;
}

.highlight-card h4 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.highlight-card p {
  font-size: 0.86rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* ============ Responsive ============ */
@media (max-width: 1024px) {
  .product-highlights {
    grid-template-columns: repeat(2, 1fr);
  }
  .doc-gap-cards {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 1080px) {
  .doc-cap-3col {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .doc-cap-media {
    order: 2;
  }
  .doc-cap-val {
    order: 3;
  }
  .doc-cap-desc {
    order: 1;
  }
}

@media (max-width: 768px) {
  .product-page {
    padding: 110px 24px 80px;
  }
  .product-doc-wrap {
    margin-top: 40px;
  }
  .product-highlights {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .product-doc h2 {
    margin-top: 56px;
    padding-top: 36px;
  }
  .doc-capability {
    padding: 24px 20px 28px;
  }
  .doc-capability-header {
    gap: 12px;
  }
  .doc-capability-num {
    font-size: 0.78rem;
    padding: 5px 9px;
  }
  .doc-media-grid {
    grid-template-columns: 1fr;
  }
  .doc-pyramid-tier.layer-3 { width: 80%; }
  .doc-pyramid-tier.layer-2 { width: 92%; }
}

@media (max-width: 560px) {
  .doc-gap-cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 420px) {
  .product-doc .doc-lead {
    font-size: 1.05rem;
  }
  .doc-gap-cards {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .detail-article .detail-img-container img {
    max-width: 90%;
  }
  .detail-article .detail-img-container:has(img:only-child) img {
    max-width: 95%;
  }
  .detail-article .detail-video-container video {
    max-width: 95%;
  }
}

@media (max-width: 768px) {
  .detail-page-inner {
    padding: 32px 16px 80px;
  }
  
  .detail-article h1 {
    font-size: 2rem;
  }
  
  .detail-article h2 {
    font-size: 1.5rem;
  }
  
  .detail-close {
    position: static;
  }
}

/* Pyramid Structure for Slide 5 */
.pyramid {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 20px 0;
  width: 100%;
  max-width: 400px;
}

.pyramid-layer {
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  cursor: pointer;
}

.pyramid-layer.layer-3 {
  width: 60%;
  height: 90px;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.9) 0%, rgba(59, 130, 246, 0.6) 100%);
  border: 2px solid var(--accent-color);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.2);
}

.pyramid-layer.layer-2 {
  width: 80%;
  height: 90px;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.7) 0%, rgba(59, 130, 246, 0.4) 100%);
  border: 2px solid rgba(59, 130, 246, 0.8);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.15);
}

.pyramid-layer.layer-1 {
  width: 100%;
  height: 90px;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.5) 0%, rgba(59, 130, 246, 0.2) 100%);
  border: 2px solid rgba(59, 130, 246, 0.6);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.1);
}

.pyramid-layer:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 12px 32px rgba(59, 130, 246, 0.4);
}

.pyramid-layer:hover.layer-3 {
  background: linear-gradient(135deg, var(--accent-color) 0%, rgba(59, 130, 246, 0.8) 100%);
}

.pyramid-layer:hover.layer-2 {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.9) 0%, rgba(59, 130, 246, 0.7) 100%);
}

.pyramid-layer:hover.layer-1 {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.8) 0%, rgba(59, 130, 246, 0.5) 100%);
}

.pyramid-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  z-index: 1;
  padding: 0 20px;
}

.pyramid-label {
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.8);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 6px;
}

.pyramid-title {
  font-size: 1.15rem;
  color: #ffffff;
  font-weight: 700;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.pyramid-layer:hover .pyramid-title {
  color: #ffffff;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

@media (max-width: 768px) {
  .pyramid {
    max-width: 320px;
  }
  
  .pyramid-layer.layer-3 {
    width: 65%;
    height: 80px;
  }
  
  .pyramid-layer.layer-2 {
    width: 82%;
    height: 80px;
  }
  
  .pyramid-layer.layer-1 {
    width: 100%;
    height: 80px;
  }
  
  .pyramid-title {
    font-size: 1rem;
  }
  
  .pyramid-label {
    font-size: 0.65rem;
  }
}

/* Flat Design Icons */
.flat-icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-color);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.flat-icon svg {
  width: 100%;
  height: 100%;
}

.icon-box:hover .flat-icon {
  transform: scale(1.1);
  color: var(--accent-bright);
}

.icon-box:hover .flat-icon rect:first-child {
  fill: rgba(59, 130, 246, 0.2);
}

@media (max-width: 768px) {
  .flat-icon {
    width: 48px;
    height: 48px;
  }
}

/* ========================================
   Contact Us — Lead Capture
   ======================================== */

/* Floating action button (all pages) */
.contact-fab {
  position: fixed;
  right: 28px;
  bottom: 28px;
  z-index: 90;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 22px;
  border: none;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 0.9rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  box-shadow: 0 8px 28px rgba(59, 130, 246, 0.4);
  transition: transform var(--transition-fast), background var(--transition-fast), box-shadow var(--transition-fast);
}

.contact-fab:hover {
  background: var(--accent-bright);
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(59, 130, 246, 0.5);
}

/* Overlay & modal */
.contact-overlay {
  position: fixed;
  inset: 0;
  /* 必须高于 .site-header / .detail-page（z-index: 1000），保证弹框在最上层 */
  z-index: 3000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 32px 24px;
}

/* 遮罩底色与模糊放到伪元素上：backdrop-filter 挂在遮罩本身时，
   部分浏览器（Safari 等）会出现子元素（关闭按钮）消失或错位的缺陷 */
.contact-overlay::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(5, 8, 14, 0.72);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.contact-overlay.is-open {
  display: flex;
}

.contact-modal {
  position: relative;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  width: 100%;
  max-width: 880px;
  max-height: calc(100vh - 64px);
  overflow-y: auto;
  background: var(--bg-secondary);
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  box-shadow: var(--shadow-card-hover);
  animation: fadeInUp 0.35s ease;
}

.contact-close {
  /* 默认贴在弹框卡片右上角；小屏/矮屏弹框全屏时改为 fixed 吸附视口，
     内容滚动时关闭按钮不滚出视野（backdrop-filter 已在 ::before 上，不会劫持 fixed） */
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 3;
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--bg-card);
  color: var(--text-secondary);
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.contact-close:hover {
  color: var(--text-primary);
  border-color: var(--line-strong);
}

.contact-form-panel {
  padding: 40px 36px 32px;
}

.contact-form-panel > .eyebrow {
  margin-bottom: 8px;
}

.contact-form-panel h3 {
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin-bottom: 24px;
}

/* Right privacy panel */
.contact-side {
  padding: 48px 32px;
  background: var(--bg-tertiary);
  border-left: 1px solid var(--line);
  border-radius: 0 14px 14px 0;
}

.contact-side h4 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 14px;
}

.contact-side p {
  font-size: 0.9rem;
  line-height: 1.7;
  color: var(--text-secondary);
  margin-bottom: 22px;
}

.contact-side ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.contact-side li {
  position: relative;
  padding-left: 22px;
  font-size: 0.85rem;
  line-height: 1.6;
  color: var(--text-secondary);
}

.contact-side li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  color: var(--emerald);
  font-weight: 700;
}

/* 矮屏桌面（如笔记本小窗）：压缩留白、放大弹框可用高度，减少内容被裁切 */
@media (min-width: 769px) and (max-height: 760px) {
  .contact-overlay {
    padding: 16px;
  }

  .contact-close {
    position: fixed;
  }

  .contact-modal {
    max-height: calc(100vh - 32px);
  }

  .contact-form-panel {
    padding: 32px 28px 24px;
  }

  .contact-form-panel h3 {
    margin-bottom: 16px;
  }

  .contact-side {
    padding: 32px 24px;
  }
}

/* Form fields */
.lead-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.lead-form[hidden],
.contact-thanks[hidden],
.lead-form-thanks[hidden] {
  display: none;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-field label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.form-field label .req {
  color: var(--accent-bright);
}

.form-field input,
.form-field select {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: var(--bg-primary);
  color: var(--text-primary);
  font-size: 0.92rem;
  font-family: inherit;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.form-field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%2394a3b8' stroke-width='2' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
  cursor: pointer;
}

.form-field input::placeholder {
  color: var(--text-dim);
}

.form-field input:focus,
.form-field select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

.form-field input.is-invalid,
.form-field select.is-invalid {
  border-color: #f87171;
}

.form-error {
  min-height: 1em;
  font-size: 0.75rem;
  color: #f87171;
}

.form-submit-error {
  margin: 8px 0 0;
  font-size: 0.8rem;
  line-height: 1.5;
  color: #f87171;
  text-align: center;
}

.form-submit {
  margin-top: 4px;
  justify-content: center;
  width: 100%;
}

.form-privacy-note {
  font-size: 0.75rem;
  line-height: 1.6;
  color: var(--text-muted);
  text-align: center;
}

/* Thank you state */
.contact-thanks {
  padding: 24px 0 8px;
  text-align: center;
}

.thanks-icon {
  display: inline-grid;
  place-items: center;
  width: 56px;
  height: 56px;
  margin-bottom: 16px;
  border-radius: 50%;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.35);
  color: var(--emerald);
  font-size: 1.5rem;
  font-weight: 700;
}

.contact-thanks h3 {
  margin-bottom: 10px;
}

.contact-thanks p {
  font-size: 0.92rem;
  line-height: 1.7;
  color: var(--text-secondary);
  margin-bottom: 24px;
}

.contact-thanks .button {
  display: inline-flex;
  width: auto;
}

/* Solutions page — embedded form + sidebar */
.contact-section {
  margin-top: 96px;
}

.contact-layout {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 32px;
  align-items: start;
  margin-top: 32px;
}

.contact-embed {
  padding: 36px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 12px;
}

.contact-embed h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 20px;
}

.contact-sidebar {
  position: sticky;
  top: calc(var(--header-height) + 24px);
  padding: 32px;
  background: var(--bg-tertiary);
  border: 1px solid var(--line);
  border-radius: 12px;
}

.contact-sidebar h4 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.contact-sidebar > p {
  font-size: 0.88rem;
  line-height: 1.7;
  color: var(--text-secondary);
  margin-bottom: 20px;
}

.contact-sidebar-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.contact-sidebar-list div {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.contact-sidebar-list span {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.contact-sidebar-list a,
.contact-sidebar-list strong {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
  text-decoration: none;
}

.contact-sidebar-list a:hover {
  color: var(--accent-bright);
}

.lead-form-thanks {
  padding: 24px;
  text-align: center;
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: 10px;
}

.lead-form-thanks h4 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--emerald);
  margin-bottom: 8px;
}

.lead-form-thanks p {
  font-size: 0.88rem;
  line-height: 1.7;
  color: var(--text-secondary);
}

/* About page contact CTA */
.about-contact-cta {
  margin-left: auto;
}

/* Contact modal & embedded form — responsive */
@media (max-width: 768px) {
  .contact-fab {
    right: 16px;
    bottom: 16px;
    padding: 11px 18px;
    font-size: 0.85rem;
  }

  .contact-overlay {
    padding: 0;
  }

  .contact-modal {
    grid-template-columns: 1fr;
    max-width: none;
    height: 100%;
    max-height: none;
    border: none;
    border-radius: 0;
  }

  .contact-form-panel {
    display: flex;
    flex-direction: column;
    padding: 72px 20px 24px;
  }

  .contact-form-panel .form-submit {
    position: sticky;
    bottom: 0;
    z-index: 2;
    box-shadow: 0 -12px 24px rgba(10, 14, 23, 0.9);
  }

  .contact-side {
    padding: 28px 20px;
    border-left: none;
    border-top: 1px solid var(--line);
    border-radius: 0;
  }

  .contact-close {
    position: fixed;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .contact-layout {
    grid-template-columns: 1fr;
  }

  .contact-embed {
    padding: 24px 20px;
  }

  .contact-sidebar {
    position: static;
  }
}
