/* ═══════════════════════════════════════════════════════════════
   index.html page-specific overrides (Kuma 2026-06-23)
   Loaded AFTER styles-v2.css so these win — keeps the shared base
   (styles-v2.css, read-only) untouched. index has no body page-class,
   so selectors are scoped by section/element classes.
   ═══════════════════════════════════════════════════════════════ */

/* 1 · halve the gap between Approach and Integrated Service Model
   (was 120 bottom + 100 top = 220 → now 60 + 50 = 110) */
.approach-section { padding-bottom: 60px; }
.visual-proof-section { padding-top: 50px; }
/* 2 · Chthonia heading — brand-green accent on the "Chthonia" name */
.chthonia-section h2 .ch-name { color: var(--green); }
/* re-point the chthonia-section bg into assets/ (styles-v2.css [read-only]
   still references the old 網站用提供素材/ path; override the full background
   shorthand here so the deployed site finds the image). Kuma 2026-06-23. */
.chthonia-section {
  background:
    linear-gradient(to bottom,
      rgba(4,10,28,0.85) 0%, rgba(4,10,28,0.45) 18%, rgba(4,10,28,0.2) 50%,
      rgba(4,10,28,0.55) 88%, rgba(4,10,28,1) 100%),
    url("assets/home/chthonia-bg.webp") center/cover no-repeat fixed,
    var(--bg-base);
}

/* 3 · final CTA → match the service CTA: full-bleed saturated blue→cyan
   "jump" band, dark inverted copy, white pill (black label) + white outline.
   Overrides the dark base + the giant "AIDC" watermark. */
.final-cta {
  background:
    linear-gradient(118deg, rgba(26,107,255,0.56) 0%, rgba(31,168,242,0.44) 52%, rgba(0,212,255,0.50) 100%),
    linear-gradient(180deg, rgba(7,14,28,0.70) 0%, rgba(7,14,28,0.32) 34%, rgba(7,14,28,0.34) 66%, rgba(7,14,28,0.82) 100%),
    url('assets/visuals/CTA_BG_02.jpg') center / cover no-repeat,
    #0A1426;
}
.final-cta::before {                 /* gentle top sheen */
  background: radial-gradient(ellipse 70% 60% at 50% 10%, rgba(255,255,255,0.12) 0%, transparent 60%);
}
.final-cta::after { content: none; } /* remove the giant AIDC watermark */
.final-cta h2 { color: #fff; }
.final-cta p  { color: rgba(255,255,255,0.85); }
.final-cta .button.primary.light {
  background: #fff; color: #0A0A0A; border: none;
  box-shadow: 0 12px 30px rgba(0,20,45,0.28);
}
.final-cta .button.primary.light:hover {
  background: #fff; color: #0A0A0A; transform: translateY(-2px);
  box-shadow: 0 16px 40px rgba(0,20,45,0.35);
}
.final-cta .button.secondary.light {
  background: rgba(255,255,255,0.16);
  border-color: rgba(255,255,255,0.55);
  color: #fff;
}
.final-cta .button.secondary.light:hover {
  background: rgba(255,255,255,0.28);
  border-color: rgba(255,255,255,0.85);
  color: #fff;
}

/* Integrated-model diagram: horizontal SVG on desktop, vertical SVG on mobile */
.visual-proof .model-img--v { display: none; }

/* Lifecycle timeline: when the 5 steps stack (≤1024) gap:0 makes them touch.
   Scoped to the stacked range only so the desktop single-row layout is
   untouched (no risk of shifting larger viewports). */
@media (max-width: 1024px) {
  .timeline { row-gap: 44px; }
}

/* ── Mobile (≤768px) ──────────────────────────────────────────── */
@media (max-width: 768px) {
  /* (hero title size is unified site-wide via --fs-hero in styles-v2.css — no
     per-page override here, so all four pages stay consistent.) */
  /* metric strip → 2×2 grid (was forced to 1 column) */
  .metric-row { grid-template-columns: repeat(2, 1fr) !important; }
  .metric-row > div { padding: 22px 16px; }
  .metric-number { font-size: 2rem; }
  /* swap the integrated-model diagram to the vertical, legible version */
  .visual-proof { grid-template-columns: 1fr; gap: 32px; }
  .visual-proof .model-img--h { display: none; }
  .visual-proof .model-img--v { display: block; width: 100%; max-width: 360px; margin: 0 auto; }
  /* "We Start From Outcomes": the shared ≤1024 rule collapses .approach-SECTION,
     but the grid lives on .approach-INNER — so it stayed 2-col and squeezed the
     diagram into a ~200px column (hence "too small to read"). Stack it here,
     then let the wide 1200×620 graphic keep a legible min-width and scroll
     horizontally instead of being cover-cropped. */
  .approach-inner { grid-template-columns: 1fr; gap: 28px; }
  .approach-flow-visual { overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: var(--radius-m); }
  .approach-flow-visual img { aspect-ratio: auto; min-width: 600px; }
  /* Chthonia pillars: keep the 3 tabs on one row as a segmented control */
  .tab-list { flex-direction: row; flex-wrap: nowrap; gap: 6px; }
  .tab-button {
    flex: 1; min-width: 0; text-align: center;
    padding: 10px 6px; font-size: 0.72rem; border-radius: 12px;
  }
}
