/* ═══════════════════════════════════════════════════════════════
   AIDC Total Solution — Style B  (Dark Editorial)
   ═══════════════════════════════════════════════════════════════ */

/* ── Reset ───────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
img, video, svg { display: block; max-width: 100%; }
a { text-decoration: none; }
button { cursor: pointer; border: none; background: none; font: inherit; }

/* ── Custom Properties ───────────────────────────────────────── */
:root {
  --bg-base:    #060D1A;
  --bg-surface: #0B1628;
  --bg-card:    rgba(255,255,255,0.045);
  --bg-card-h:  rgba(255,255,255,0.09);

  --blue:       #1A6BFF;
  --cyan:       #00D4FF;
  --purple:     #7C5CFC;
  --green:      #00C98D;

  --grad-main:  linear-gradient(135deg, #1A6BFF 0%, #00D4FF 100%);
  --grad-card:  linear-gradient(135deg, rgba(26,107,255,0.18) 0%, rgba(0,212,255,0.08) 100%);
  --grad-purple:linear-gradient(135deg, #7C5CFC 0%, #1A6BFF 100%);

  --text-1: #EEF4FF;
  --text-2: #8A9BBE;
  --text-3: #7085AB; /* was #4A5A7A — lifted for WCAG AA (5.2:1 on --bg-base, 4.9:1 on --bg-surface) */

  --border-1: rgba(255,255,255,0.08);
  --border-2: rgba(26,107,255,0.35);

  --radius-s: 10px;
  --radius-m: 18px;
  --radius-l: 28px;

  --ease: cubic-bezier(0.4,0,0.2,1);

  /* Fonts — Montserrat (display) + Inter (body); loaded via Google Fonts <link> in each page <head> */
  --font-display: 'Montserrat', 'Inter', system-ui, -apple-system, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, 'PingFang TC', 'Microsoft JhengHei', sans-serif;

  /* ── Fixed-px type scale (site-wide, fully consistent across pages) ──
     Hero 64 > Section 44 > Sub-title 20 > Body 16 > Chart 14 = Eyebrow 14.
     Big decorative stat/watermark numbers are exempt (kept large). */
  --fs-hero:      64px;   /* hero h1 only */
  --fs-section:   44px;   /* all section titles (centered + split) + CTA headlines */
  --fs-midtitle:  28px;   /* mid title — titles beside Chthonia product screenshots */
  --fs-subtitle:  20px;   /* card titles / sub-headings (小標題) */
  --fs-body:      16px;   /* body, card body, chips, badges, form hints, hero subtitle, buttons */
  --fs-chart:     14px;   /* charts / tables / diagram + stack labels only */
  --fs-eyebrow:   14px;   /* eyebrow */

  /* Back-compat aliases (already referenced across page CSS — repoint to fixed scale) */
  --fs-display:  var(--fs-hero);     /* hero h1 */
  --fs-h2:       var(--fs-section);  /* section title */
  --fs-h2-sm:    var(--fs-section);  /* split section title now equals section (44) */
  --fs-cta:      var(--fs-section);  /* CTA headline */
  --fs-lead:     var(--fs-body);     /* hero subtitle / lead = body 16 */
  --hero-sub-color: #AFC8F2;                       /* hero subtitle — AIDC light blue (index + service) */
  --hero-sub-shadow: 0 1px 12px rgba(0,0,0,0.55);  /* legibility on photo backgrounds */

  /* Shared card hover (one canonical lift + shadow for all content cards) */
  --shadow-hover: 0 14px 34px rgba(0,0,0,0.30);
}

/* Mobile type scale — fixed-px headings are too large on phones; scale the
   three big tiers down. Body/chart/eyebrow stay 16/14. Aliases (--fs-display/
   h2/h2-sm/cta) resolve var() at use time, so overriding the base tiers here
   cascades to every heading site-wide. */
@media (max-width: 640px) {
  :root {
    --fs-hero:     40px;   /* was 64. Unified mobile hero size for ALL pages (index/software/service/contact all resolve here via --fs-display) — keep them consistent; do not add per-page overrides. */
    --fs-section:  30px;   /* was 44 */
    --fs-midtitle: 22px;   /* was 28 */
  }
  /* Hero + CTA actions (Kuma 2026-06-29): stack the two buttons and give each
     the same 80% width so they read as a matched pair. Shared by every
     .hero-actions site-wide — index/software/service heroes plus index
     .final-cta and software .ch-cta. (service .sb-cta button is handled in
     styles-service.css — it isn't wrapped in .hero-actions.) */
  .hero-actions { flex-direction: column; align-items: center; gap: 12px; width: 100%; }
  .hero-actions .button { width: 80%; max-width: 360px; justify-content: center; }
  /* trim the index/contact hero's vertical footprint on phones */
  .hero { min-height: auto; }
  .hero-content { padding-top: 52px; padding-bottom: 60px; }
}

/* ── Base ────────────────────────────────────────────────────── */
html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg-base);
  color: var(--text-1);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

/* Headings use the display font site-wide (body/labels stay Inter; mono accents stay mono) */
h1, h2, h3, h4, h5, h6 { font-family: var(--font-display); }

/* ── Utility ─────────────────────────────────────────────────── */
.eyebrow {
  font-size: var(--fs-eyebrow);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  background: var(--grad-main);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.65rem;
}
.eyebrow.green {
  background: linear-gradient(135deg, #00C98D 0%, #00D4FF 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Buttons ─────────────────────────────────────────────────── */
.button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: 100px;
  font-size: 0.9rem;
  font-weight: 600;
  transition: all 0.25s var(--ease);
}
.button.primary {
  background: var(--grad-main);
  color: #fff;
  box-shadow: 0 0 30px rgba(0,212,255,0.25);
}
.button.primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 48px rgba(0,212,255,0.45);
}
.button.secondary {
  border: 1.5px solid rgba(255,255,255,0.2);
  color: var(--text-1);
  background: rgba(255,255,255,0.04);
}
.button.secondary:hover {
  border-color: var(--cyan);
  background: rgba(0,212,255,0.08);
  color: var(--cyan);
}

/* ════════════════════════════════════════════════════════════════
   HEADER
   ════════════════════════════════════════════════════════════════ */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 48px;
  height: 68px;
  background: rgba(6,13,26,0.75);
  backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--border-1);
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-1);
}
.brand img { display: none; }   /* Chthonia logo removed site-wide — text is the brand mark (Kuma 2026-06-22) */
.brand span { font-size: 1.4rem; font-weight: 800; letter-spacing: 0.01em; }

.site-nav { display: flex; align-items: center; gap: 36px; }
.site-nav a {
  font-size: 1.02rem;
  font-weight: 500;
  color: var(--text-2);
  transition: color 0.2s;
}
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--text-1); }
.nav-cta {
  background: var(--grad-main) !important;
  color: #fff !important;
  padding: 8px 22px;
  border-radius: 100px;
  font-size: 0.85rem !important;
  font-weight: 600 !important;
}
.nav-toggle { display: none; }

/* ════════════════════════════════════════════════════════════════
   HERO
   ════════════════════════════════════════════════════════════════ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: 68px;
  background: var(--bg-base);
}

/* hero background video */
.hero-bg-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  pointer-events: none;
}
/* darkening overlay over the video (matches former image gradient) */
.hero-bg-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(to bottom,
    rgba(4,10,28,0.82) 0%,
    rgba(4,10,28,0.55) 35%,
    rgba(4,10,28,0.70) 60%,
    rgba(4,10,28,0.96) 85%,
    rgba(4,10,28,1) 100%);
}

/* animated gradient mesh background */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 60% at 20% 40%, rgba(26,107,255,0.28) 0%, transparent 60%),
    radial-gradient(ellipse 50% 50% at 80% 20%, rgba(0,212,255,0.18) 0%, transparent 55%),
    radial-gradient(ellipse 60% 60% at 70% 80%, rgba(34,197,94,0.18) 0%, transparent 60%);
  z-index: 2;
  pointer-events: none;
}
/* grid overlay */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 60px 60px;
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 3;
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 80px 48px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 64px;
  justify-items: center;
  text-align: center;
  margin-bottom: 64px;
}

.hero-grid > div { max-width: 1100px; }
.hero h1 .nowrap { white-space: nowrap; display: inline-block; }
@media (max-width: 720px) {
  .hero h1 .nowrap { white-space: normal; display: inline; }
}

.hero-grid .hero-actions { justify-content: center; }

.hero h1 {
  font-size: var(--fs-display);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.03em;
  color: var(--text-1);
  margin-bottom: 20px;
}

/* gradient word highlight */
.hero h1 em {
  font-style: normal;
  background: var(--grad-main);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-copy {
  font-size: var(--fs-lead);
  color: var(--hero-sub-color);
  line-height: 1.7;
  margin-bottom: 36px;
  text-shadow: var(--hero-sub-shadow);
}

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

/* hero visual: glow card */
.hero-visual {
  position: relative;
}
.hero-visual::before {
  content: '';
  position: absolute;
  inset: -30px;
  background: radial-gradient(ellipse at center, rgba(0,212,255,0.12) 0%, transparent 70%);
  z-index: 0;
}
.hero-visual img {
  position: relative;
  z-index: 1;
  border-radius: var(--radius-m);
  border: 1px solid var(--border-2);
}

/* trust strip */
.trust-strip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  padding: 24px 0 0;
  border-top: none;
}
.trust-strip span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-2);
  padding: 6px 4px;
  border: none;
  background: transparent;
}
.trust-strip svg {
  width: 18px;
  height: 18px;
  color: var(--cyan);
  flex-shrink: 0;
}

/* ════════════════════════════════════════════════════════════════
   PAIN POINTS
   ════════════════════════════════════════════════════════════════ */
/* ════════════════════════════════════════════════════════════════
   PARTNERS BAND
   ════════════════════════════════════════════════════════════════ */
.partners-section {
  position: relative;
  padding: 36px 0;
  background: var(--bg-base);
  border-top: 1px solid var(--border-1);
  border-bottom: 1px solid var(--border-1);
  overflow: hidden;
}
.partners-inner {
  max-width: 1280px;
  margin: 0 auto;
}
.partners-marquee {
  position: relative;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.partners-track {
  display: flex;
  align-items: center;
  gap: 72px;
  width: max-content;
  animation: partners-scroll 40s linear infinite;
}
.partner-logo {
  height: 40px;
  width: auto;
  color: var(--text-2);
  opacity: 0.72;
  transition: opacity 0.25s, color 0.25s;
  flex-shrink: 0;
}
.partner-logo:hover {
  opacity: 1;
  color: var(--text-1);
}
@keyframes partners-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .partners-track { animation: none; }
  /* Disable the canonical card-lift for motion-sensitive users (covers all pages) */
  .pain-card:hover, .audience-card:hover,
  .ch-pillar-card:hover, .ch-cap-card:hover, .ch-problem-card:hover, .ch-leak:hover,
  .sb-card:hover, .sb-promise-grid article:hover { transform: none; }
}

.pain-section {
  position: relative;
  padding: 120px 48px;
  background: var(--bg-base);
  overflow: hidden;
}
.pain-section::before { display: none; }
/* large decorative number */
.pain-section .deco-num {
  position: absolute;
  top: 60px; right: -20px;
  font-size: clamp(140px, 16vw, 200px);
  font-weight: 900;
  color: rgba(255,255,255,0.025);
  line-height: 1;
  pointer-events: none;
  user-select: none;
  letter-spacing: -0.06em;
}

.pain-section .section-heading {
  max-width: 1280px;
  margin: 0 auto 56px;
  text-align: center;
}
.pain-section .section-heading h2 {
  font-size: var(--fs-h2);
  font-weight: 800;
  letter-spacing: -0.03em;
}

/* Pain cards */
.pain-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  max-width: 1280px;
  margin: 0 auto;
}

.pain-card {
  background: var(--bg-card);
  border: 1px solid var(--border-1);
  border-radius: var(--radius-m);
  padding: 32px 28px 36px;
  position: relative;
  overflow: hidden;
  transition: all 0.3s var(--ease);
}
.pain-card:hover {
  border-color: var(--border-2);
  background: var(--bg-card-h);
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}
.pain-card::before {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 2px;
  background: var(--grad-main);
  opacity: 0;
  transition: opacity 0.3s;
}
.pain-card:hover::before { opacity: 1; }

.pain-card-num {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--text-3);
  margin-bottom: 20px;
}
.pain-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}
.pain-icon svg { width: 24px; height: 24px; }

.pain-card:nth-child(1) .pain-icon { background: rgba(255,100,80,0.12); color: #FF6450; }
.pain-card:nth-child(2) .pain-icon { background: rgba(255,180,0,0.12); color: #FFB400; }
.pain-card:nth-child(3) .pain-icon { background: rgba(0,212,255,0.12); color: var(--cyan); }
.pain-card:nth-child(4) .pain-icon { background: rgba(124,92,252,0.12); color: var(--purple); }

.pain-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-1);
  margin-bottom: 10px;
}
.pain-card p {
  font-size: 0.88rem;
  color: var(--text-2);
  line-height: 1.65;
}

/* ════════════════════════════════════════════════════════════════
   APPROACH
   ════════════════════════════════════════════════════════════════ */
.approach-section {
  position: relative;
  padding: 120px 48px;
  background:
    radial-gradient(ellipse 60% 50% at 15% 20%, rgba(26,107,255,0.10) 0%, transparent 60%),
    radial-gradient(ellipse 50% 50% at 85% 80%, rgba(34,197,94,0.08) 0%, transparent 60%),
    var(--bg-surface);
  overflow: hidden;
}
.approach-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at center, rgba(123,180,255,0.34) 1.1px, transparent 1.7px);
  background-size: 28px 28px;
  background-position: 0 0, 0 0, 0 0;
  mask-image: radial-gradient(ellipse 90% 80% at center, #000 50%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 90% 80% at center, #000 50%, transparent 100%);
  pointer-events: none;
  z-index: 0;
}
.approach-inner {
  position: relative;
  z-index: 1;
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 80px;
  align-items: center;
}
.approach-copy .eyebrow { margin-bottom: 12px; }
.approach-copy h2 {
  font-size: var(--fs-h2-sm);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
  line-height: 1.2;
}
.approach-copy p {
  font-size: 0.95rem;
  color: var(--text-2);
  line-height: 1.75;
}
.approach-flow-visual {
  position: relative;
}
.approach-flow-visual::before {
  content: '';
  position: absolute;
  inset: -20px;
  background: radial-gradient(ellipse at 50% 50%, rgba(26,107,255,0.1) 0%, transparent 70%);
}
.approach-flow-visual img {
  position: relative;
  width: 100%;
  aspect-ratio: 1200/620;
  object-fit: cover;
}

/* ════════════════════════════════════════════════════════════════
   INTEGRATED SERVICE MODEL
   ════════════════════════════════════════════════════════════════ */
.visual-proof-section {
  background:
    radial-gradient(ellipse 55% 50% at 80% 20%, rgba(26,107,255,0.10) 0%, transparent 60%),
    radial-gradient(ellipse 50% 50% at 20% 90%, rgba(34,197,94,0.08) 0%, transparent 60%),
    var(--bg-surface);
  padding: 100px 48px;
  position: relative;
  overflow: hidden;
}
.visual-proof-section::before {
  content: '';
  display: block;
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at center, rgba(123,180,255,0.34) 1.1px, transparent 1.7px);
  background-size: 28px 28px;
  mask-image: radial-gradient(ellipse 90% 80% at center, #000 50%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 90% 80% at center, #000 50%, transparent 100%);
  pointer-events: none;
  z-index: 0;
}
.visual-proof { position: relative; z-index: 1; }
.visual-proof {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 7fr 5fr;
  gap: 80px;
  align-items: center;
}
.visual-proof img {
  border-radius: var(--radius-m);
}
.visual-proof > div h2 {
  font-size: clamp(1.7rem, 2.5vw, 2.2rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
  line-height: 1.2;
}
.visual-proof > div p {
  font-size: 0.93rem;
  color: var(--text-2);
  line-height: 1.75;
}

/* ════════════════════════════════════════════════════════════════
   CHTHONIA
   ════════════════════════════════════════════════════════════════ */
.chthonia-section {
  padding: 120px 48px;
  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("網站用提供素材/chthonia-bg.png") center/cover no-repeat fixed,
    var(--bg-base);
  position: relative;
  overflow: hidden;
}
.chthonia-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 10% 50%, rgba(0,201,141,0.18) 0%, transparent 60%),
    radial-gradient(ellipse 40% 60% at 90% 30%, rgba(0,212,255,0.16) 0%, transparent 60%);
  pointer-events: none;
}

.split {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 72px;
  align-items: start;
  position: relative;
  z-index: 1;
}
.split-copy h2 {
  font-size: var(--fs-h2-sm);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
  line-height: 1.2;
}
.split-copy > p {
  font-size: 0.92rem;
  color: var(--text-2);
  line-height: 1.75;
  margin-bottom: 32px;
}

/* tabs */
.tab-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.tab-button {
  text-align: left;
  padding: 14px 22px;
  border-radius: 100px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-1);
  border: 1.5px solid rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.04);
  cursor: pointer;
  transition: all 0.25s var(--ease);
}
.tab-button:hover {
  border-color: var(--cyan);
  background: rgba(0,212,255,0.08);
  color: var(--cyan);
  transform: translateY(-1px);
}
.tab-button.active {
  background: linear-gradient(135deg, rgba(0,201,141,0.22) 0%, rgba(0,212,255,0.16) 100%);
  border-color: rgba(0,201,141,0.55);
  color: #00C98D;
  box-shadow: 0 0 24px rgba(0,201,141,0.18);
}

/* product panel */
.product-panel {
  position: relative;
}
.tab-panel { display: none; }
.tab-panel.active { display: block; }
.tab-panel .glass-frame {
  position: relative;
  border-radius: var(--radius-m);
  padding: 10px;
  margin-bottom: 24px;
  background: linear-gradient(135deg, rgba(255,255,255,0.40) 0%, rgba(255,255,255,0.10) 100%);
  border: 1.5px solid rgba(255,255,255,0.45);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  box-shadow:
    0 30px 80px rgba(0,0,0,0.5),
    inset 0 1px 0 rgba(255,255,255,0.4),
    inset 0 -1px 0 rgba(255,255,255,0.08);
}
.tab-panel .glass-frame img {
  width: 100%;
  display: block;
  border-radius: 10px;
}
.tab-panel h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-1);
  margin-bottom: 10px;
}
.tab-panel p {
  font-size: 0.9rem;
  color: var(--text-2);
  line-height: 1.7;
}

/* ════════════════════════════════════════════════════════════════
   LIFECYCLE
   ════════════════════════════════════════════════════════════════ */
.lifecycle-section {
  background: var(--bg-surface);
  padding: 120px 48px;
  position: relative;
  overflow: hidden;
}
.lifecycle-section::before {
  content: '';
  position: absolute;
  top: -60px; left: 0; right: 0;
  height: 120px;
  background: var(--bg-surface);
  clip-path: polygon(0 60px, 100% 0, 100% 100%, 0 100%);
}

.lifecycle-section .section-heading {
  max-width: 1280px;
  margin: 0 auto 64px;
  text-align: center;
}
.lifecycle-section .section-heading h2 {
  font-size: var(--fs-h2);
  font-weight: 800;
  letter-spacing: -0.03em;
}

.timeline {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  max-width: 1280px;
  margin: 0 auto 72px;
  position: relative;
}
/* connecting line */
.timeline::before {
  content: '';
  position: absolute;
  top: 80px;
  left: 10%;
  right: 10%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-2), var(--cyan), var(--border-2), transparent);
  z-index: 0;
}

.timeline article {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  z-index: 1;
  padding: 0 16px;
}

/* step circle icon */
.timeline article figure {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid var(--border-2);
  margin-bottom: 24px;
  flex-shrink: 0;
  position: relative;
}
.timeline article figure::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0,212,255,0.08);
}
.timeline article figure img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: brightness(0.7) saturate(0.6);
}
.timeline article figure.lifecycle-icon {
  background:
    radial-gradient(circle at 50% 40%, rgba(0,212,255,0.18) 0%, rgba(0,201,141,0.08) 60%, transparent 100%),
    var(--bg-base);
  display: flex;
  align-items: center;
  justify-content: center;
  border-color: rgba(0,212,255,0.4);
}
.timeline article figure.lifecycle-icon::after { display: none; }
.timeline article figure.lifecycle-icon svg {
  width: 56%;
  height: 56%;
  color: var(--cyan);
  filter: drop-shadow(0 0 8px rgba(0,212,255,0.45));
}

/* step number badge */
.timeline article .step-num {
  position: absolute;
  top: -6px;
  left: 50%;
  transform: translateX(-50%);
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--grad-main);
  font-size: 0.78rem;
  font-weight: 800;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  box-shadow: 0 0 12px rgba(0,212,255,0.5);
}

.timeline article h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-1);
  margin-bottom: 8px;
}
.timeline article p {
  font-size: 0.82rem;
  color: var(--text-2);
  line-height: 1.6;
}

/* metrics */
.metric-row {
  display: grid;
  grid-template-columns: repeat(4,1fr);
  gap: 1px;
  max-width: 1280px;
  margin: 0 auto;
  background: var(--border-1);
  border-radius: var(--radius-m);
  overflow: hidden;
}
.metric-row > div {
  background: var(--bg-card);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.metric-row strong {
  display: flex;
  align-items: baseline;
  gap: 4px;
}
.metric-number {
  font-size: 2.4rem;
  font-weight: 800;
  background: var(--grad-main);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}
.metric-unit {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-2);
}
.metric-plus {
  font-size: 1.4rem;
  font-weight: 800;
  background: var(--grad-main);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.metric-row > div > span {
  font-size: 0.92rem;
  color: var(--text-1);
  font-weight: 500;
  letter-spacing: 0.01em;
}

/* ════════════════════════════════════════════════════════════════
   AUDIENCE
   ════════════════════════════════════════════════════════════════ */
.audience-section {
  padding: 120px 48px;
  background: var(--bg-base);
  position: relative;
  overflow: hidden;
}
.audience-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 40% at 50% 50%, rgba(26,107,255,0.06) 0%, transparent 70%);
  pointer-events: none;
}

.audience-section .section-heading {
  max-width: 1280px;
  margin: 0 auto 56px;
  text-align: center;
}
.audience-section .section-heading h2 {
  font-size: var(--fs-h2);
  font-weight: 800;
  letter-spacing: -0.03em;
}

.audience-grid {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 24px;
  max-width: 1280px;
  margin: 0 auto;
}

.audience-card {
  background: var(--bg-card);
  border: 1px solid var(--border-1);
  border-radius: var(--radius-m);
  padding: 36px 32px;
  position: relative;
  overflow: hidden;
  transition: all 0.3s var(--ease);
  text-align: left;
}
.audience-card::before {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 2px;
  background: var(--grad-main);
  opacity: 0;
  transition: opacity 0.3s;
}
.audience-card:hover {
  border-color: var(--border-2);
  background: var(--bg-card-h);
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}
.audience-card:hover::before { opacity: 1; }

/* large decorative icon */
.audience-deco {
  position: absolute;
  bottom: -10px; right: -10px;
  opacity: 0.04;
  pointer-events: none;
}
.audience-deco svg { width: 120px; height: 120px; }

.audience-icon-wrap {
  width: 52px; height: 52px;
  border-radius: var(--radius-s);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  background: var(--grad-card);
  border: 1px solid var(--border-2);
}
.audience-icon-wrap svg { width: 26px; height: 26px; stroke: var(--cyan); }

.audience-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-1);
  margin-bottom: 10px;
}
.audience-card p {
  font-size: 0.88rem;
  color: var(--text-2);
  line-height: 1.65;
}

/* ════════════════════════════════════════════════════════════════
   ABOUT
   ════════════════════════════════════════════════════════════════ */
.about-section {
  background: var(--bg-surface);
  padding: 100px 48px;
  position: relative;
  overflow: hidden;
}
.about-section::before {
  content: '';
  position: absolute;
  top: -60px; left: 0; right: 0;
  height: 120px;
  background: var(--bg-surface);
  clip-path: polygon(0 60px, 100% 0, 100% 100%, 0 100%);
}

.about-layout {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
  position: relative;
  z-index: 1;
}
.about-layout .eyebrow { display: block; }
.about-layout h2 {
  font-size: var(--fs-h2-sm);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
  line-height: 1.2;
}
.about-layout p {
  font-size: 0.93rem;
  color: var(--text-2);
  line-height: 1.75;
  margin-bottom: 14px;
}

.about-proof {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.proof-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-m);
  border: 1px solid var(--border-1);
  background: rgba(255,255,255,0.02);
  padding: 20px 24px;
  display: flex;
  align-items: center;
  gap: 18px;
  transition: border-color 0.3s, background 0.3s;
}
.proof-card:hover {
  border-color: rgba(0,212,255,0.35);
  background: rgba(0,212,255,0.04);
}
.proof-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(0,212,255,0.18) 0%, rgba(0,201,141,0.12) 100%);
  border: 1px solid rgba(0,212,255,0.35);
  color: var(--cyan);
}
.proof-icon svg {
  width: 26px;
  height: 26px;
}
.proof-text { display: flex; flex-direction: column; }
.proof-card strong {
  display: block;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-1);
  margin-bottom: 4px;
}
.proof-card span {
  font-size: 0.8rem;
  color: var(--text-2);
}

/* vertical accent line */
.about-line {
  display: none;
}

/* ════════════════════════════════════════════════════════════════
   FINAL CTA
   ════════════════════════════════════════════════════════════════ */
.final-cta {
  position: relative;
  padding: 100px 48px;
  text-align: center;
  overflow: hidden;
  background: var(--bg-base);
}
.final-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 60% at 50% 50%, rgba(26,107,255,0.15) 0%, transparent 70%),
    var(--bg-base);
}
/* large decorative text */
.final-cta::after {
  content: 'AIDC';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 22vw;
  font-weight: 900;
  color: rgba(255,255,255,0.07);
  letter-spacing: -0.05em;
  pointer-events: none;
  white-space: nowrap;
}

.final-cta > div:first-child,
.final-cta > .hero-actions {
  position: relative;
  z-index: 1;
}
.final-cta > div:first-child { margin-bottom: 36px; }
.final-cta h2 {
  font-size: var(--fs-cta);
  font-weight: 800;
  letter-spacing: -0.04em;
  margin-bottom: 16px;
  line-height: 1.1;
}
.final-cta p {
  font-size: 1rem;
  color: var(--text-2);
  max-width: 520px;
  margin: 0 auto;
  line-height: 1.7;
}
.final-cta .hero-actions { justify-content: center; }
.final-cta .button.primary.light { background: var(--grad-main); color: #fff; }
.final-cta .button.secondary.light {
  border-color: rgba(255,255,255,0.2);
  color: var(--text-2);
  background: rgba(255,255,255,0.04);
}
.final-cta .button.secondary.light:hover {
  border-color: var(--cyan);
  color: var(--cyan);
}

/* ════════════════════════════════════════════════════════════════
   FOOTER
   ════════════════════════════════════════════════════════════════ */
.site-footer {
  background: var(--bg-surface);
  border-top: 1px solid var(--border-1);
  padding: 40px 48px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}
.site-footer strong { display: block; font-size: 0.9rem; margin-bottom: 4px; }
.site-footer p { font-size: 0.8rem; color: var(--text-3); }
.site-footer nav { display: flex; gap: 28px; }
.site-footer nav a { font-size: 0.82rem; color: var(--text-2); }
.site-footer nav a:hover { color: var(--cyan); }

/* ════════════════════════════════════════════════════════════════
   MARKET REQUIREMENTS (Bridge section)
   ════════════════════════════════════════════════════════════════ */
.market-req-section {
  padding: 120px 48px;
  background: var(--bg-base);
  position: relative;
  overflow: hidden;
}
.market-req-section .section-heading {
  max-width: 1280px;
  margin: 0 auto 56px;
  text-align: center;
}
.market-req-section .section-heading h2 {
  font-size: var(--fs-h2);
  font-weight: 800;
  letter-spacing: -0.03em;
}
.market-req-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  max-width: 1280px;
  margin: 0 auto;
}
.market-req-group {
  background: var(--bg-card);
  border: 1px solid var(--border-1);
  border-radius: var(--radius-m);
  padding: 36px 32px;
  position: relative;
  overflow: hidden;
  transition: all 0.3s var(--ease);
}
.market-req-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 24px;
}
.market-req-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.market-req-list li {
  padding-left: 20px;
  position: relative;
  color: var(--text-2);
  font-size: 0.95rem;
  line-height: 1.55;
}
.market-req-list li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--blue);
  font-size: 0.85rem;
}
.market-req-bridge {
  max-width: 660px;
  margin: 48px auto 0;
  text-align: center;
  color: var(--text-2);
  font-size: 1rem;
  line-height: 1.65;
}
.market-req-bridge strong {
  color: var(--text-1);
}

/* ════════════════════════════════════════════════════════════════
   DESIGN FIXES — Homepage visual consistency (2026-06-09)
   ════════════════════════════════════════════════════════════════ */

/* ① Visual Proof H2：align with other split-layout sections (Chthonia / About) */
.visual-proof > div h2 {
  font-size: var(--fs-h2-sm);
}

/* ② Market Req group hover：add missing hover state (transition was defined, rules were not) */
.market-req-group:hover {
  border-color: var(--border-2);
  background: var(--bg-card-h);
  transform: translateY(-4px);
}

/* ③ Market Req section background：bg-surface to visually separate from adjacent Pain section */
.market-req-section {
  background: var(--bg-surface);
}

/* Chthonia H2 brand name accent — green gradient on merged "Chthonia." em */
.chthonia-section h2 em {
  font-style: normal;
  background: linear-gradient(135deg, #00C98D 0%, #00D4FF 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Lifecycle timeline connector — solid across all 5 circles (was transparent at ends) */
.timeline::before {
  left: 9%;
  right: 9%;
  background: linear-gradient(90deg,
    var(--border-2) 0%,
    var(--cyan) 50%,
    var(--border-2) 100%);
}

/* ════════════════════════════════════════════════════════════════
   MARKET REQ — Option A visual enhancement
   ════════════════════════════════════════════════════════════════ */
.market-req-providers { border-top: 2px solid rgba(26,107,255,0.55); }
.market-req-endusers  { border-top: 2px solid rgba(0,201,141,0.55); }

.market-req-card-icon {
  width: 60px; height: 60px;
  border-radius: var(--radius-s);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
}
.market-req-card-icon svg { width: 36px; height: 36px; }
.market-req-providers .market-req-card-icon { background: rgba(26,107,255,0.12); color: var(--blue); }
.market-req-endusers  .market-req-card-icon { background: rgba(0,201,141,0.10); color: var(--green); }
.market-req-endusers  .market-req-label { color: var(--green); }

.market-req-list li { padding-left: 0; display: flex; align-items: flex-start; gap: 12px; }
.market-req-list li::before { display: none; }
.req-icon { flex-shrink: 0; width: 18px; height: 18px; margin-top: 2px; }
.req-icon svg { width: 18px; height: 18px; }
.market-req-providers .req-icon { color: var(--blue); }
.market-req-endusers  .req-icon { color: var(--green); }

/* Client type label — override small tag style with prominent heading */
h3.market-req-label {
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  text-transform: none;
  margin-bottom: 24px;
}

/* ── Option B: illustration zone (image) ───────────────────────── */
.market-req-group { padding: 0; }
.market-req-illustration {
  height: 190px;
  position: relative;
  overflow: hidden;
}
.market-req-illustration img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
/* brand-color tint overlay keeps blue / green identity over the photo */
.market-req-illustration::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
}
.market-req-providers .market-req-illustration::after {
  background: linear-gradient(135deg, rgba(26,107,255,0.42) 0%, rgba(6,13,26,0.30) 100%);
}
.market-req-endusers .market-req-illustration::after {
  background: linear-gradient(135deg, rgba(0,201,141,0.40) 0%, rgba(6,13,26,0.30) 100%);
}
.market-req-content { padding: 28px 32px 36px; }

/* client type title — white text */
h3.market-req-label,
.market-req-endusers h3.market-req-label { color: var(--text-1); }

/* ════════════════════════════════════════════════════════════════
   RESPONSIVE
   ════════════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .hero-grid,
  .split,
  .approach-section,
  .visual-proof,
  .about-layout { grid-template-columns: 1fr; gap: 48px; }
  .hero-grid > div { max-width: 100%; }
  .pain-grid { grid-template-columns: repeat(2,1fr); }
  .market-req-grid { grid-template-columns: 1fr; }
  .timeline { grid-template-columns: 1fr; }
  .timeline::before { display: none; }
  .metric-row { grid-template-columns: repeat(2,1fr); }
  .audience-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .site-header { padding: 0 20px; }
  .site-nav { display: none; }
  .site-nav.open {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    position: fixed;
    top: 68px; left: 0; right: 0;
    background: rgba(6,13,26,0.97);
    backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid var(--border-1);
    padding: 16px 20px 20px;
    z-index: 99;
  }
  .site-nav.open a {
    width: 100%;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-1);
    font-size: 1rem;
  }
  .site-nav.open .nav-cta {
    margin-top: 12px;
    border-radius: 100px;
    text-align: center;
    padding: 10px 22px;
    border-bottom: none;
  }
  .nav-toggle {
    display: block;
    color: var(--text-2);
    padding: 8px;
    line-height: 0;
  }
  .nav-toggle svg { width: 26px; height: 26px; }
  .nav-toggle .nav-icon-close { display: none; }
  .nav-toggle[aria-expanded="true"] .nav-icon-open { display: none; }
  .nav-toggle[aria-expanded="true"] .nav-icon-close { display: block; }
  .hero-content, .pain-section, .approach-section,
  .visual-proof-section, .chthonia-section, .lifecycle-section,
  .audience-section, .about-section, .final-cta, .site-footer,
  .market-req-section {
    padding-left: 20px;
    padding-right: 20px;
  }
  .pain-grid { grid-template-columns: 1fr; }
  .metric-row { grid-template-columns: 1fr 1fr; }
  .tab-list { flex-direction: row; flex-wrap: wrap; gap: 8px; }
  .site-footer { flex-direction: column; text-align: center; }
}

/* ═══════════════════════════════════════════════════════════════
   FIXED TYPE-SCALE ENFORCEMENT (2026-06-23) — normalises scattered sizes
   Hero 64 / Section 44 / Sub-title 20 / Body 16 / Chart·Eyebrow 14 (px).
   Exempt (kept large): .metric-number / .metric-plus / big watermark numbers.
   ═══════════════════════════════════════════════════════════════ */
/* 28px — mid title (title beside Chthonia product screenshots) */
.tab-panel h3 { font-size: var(--fs-midtitle); }
/* 20px — card / sub-headings */
.pain-card h3, .audience-card h3,
.timeline article h3, h3.market-req-label { font-size: var(--fs-subtitle); }
/* 16px — body / paragraphs / lists / buttons / nav links */
.button, .nav-cta, .site-nav a, .site-nav.open a,
.pain-card p, .approach-copy p, .visual-proof > div p, .split-copy > p,
.tab-panel p, .audience-card p, .about-layout p, .final-cta p,
.timeline article p,
.market-req-list li, .market-req-bridge, .proof-card strong { font-size: var(--fs-body); }
/* 14px — micro labels / captions */
.pain-card-num, .timeline article .step-num,
.metric-unit, .metric-row > div > span, .market-req-label,
.proof-card span, .trust-strip span { font-size: var(--fs-chart); }
/* Hero + section titles — Montserrat 600 (800 too heavy at display sizes) */
.hero h1,
.pain-section .section-heading h2, .lifecycle-section .section-heading h2,
.audience-section .section-heading h2, .market-req-section .section-heading h2,
.approach-copy h2, .split-copy h2, .about-layout h2, .visual-proof > div h2,
.final-cta h2 { font-weight: 600; }
