/* ============================================================
   CIPC — AI section page content (hero + sections + CTA).
   Loaded only on the AI pages. EVERY rule is scoped under
   `.ai-page` so the bespoke design system cannot collide with
   the Tailwind site. Dark hero/CTA, light content middle with
   soft transitions, per the approved "Clair" design.
   ============================================================ */

.ai-page {
  --blue:        oklch(0.64 0.17 252);
  --blue-bright: oklch(0.74 0.15 246);
  --blue-deep:   oklch(0.52 0.15 256);
  --blue-ink:    oklch(0.40 0.10 258);
  --red:         oklch(0.62 0.21 26);
  --bg:      oklch(0.165 0.022 258);
  --bg-2:    oklch(0.205 0.026 258);
  --card:    oklch(0.235 0.028 258);
  --card-2:  oklch(0.27 0.03 258);
  --line:    oklch(0.34 0.03 258);
  --line-2:  oklch(0.42 0.035 258);
  --ink:     oklch(0.98 0.004 258);
  --ink-2:   oklch(0.80 0.018 258);
  --ink-3:   oklch(0.64 0.02 258);
  --l-bg:     oklch(0.982 0.004 255);
  --l-panel:  oklch(0.958 0.007 255);
  --l-card:   oklch(1 0 0);
  --l-card-2: oklch(0.975 0.006 255);
  --l-line:   oklch(0.905 0.012 255);
  --l-line-2: oklch(0.855 0.016 255);
  --l-ink:    oklch(0.27 0.026 258);
  --l-ink-2:  oklch(0.45 0.022 258);
  --l-ink-3:  oklch(0.585 0.018 258);
  --maxw: 1280px;
  --radius: 14px;
  --radius-sm: 10px;
  --font-display: "Space Grotesk", "Manrope", system-ui, sans-serif;
  --font-body: "Manrope", system-ui, sans-serif;
  --shadow-glow: 0 0 0 1px oklch(0.64 0.17 252 / 0.25), 0 18px 60px -20px oklch(0.64 0.17 252 / 0.55);

  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  font-size: 17px;
  line-height: 1.6;
}
.ai-page *, .ai-page *::before, .ai-page *::after { box-sizing: border-box; }
.ai-page a { color: inherit; text-decoration: none; }
.ai-page img { display: block; max-width: 100%; }
.ai-page h1, .ai-page h2, .ai-page h3, .ai-page h4 { font-family: var(--font-display); font-weight: 600; line-height: 1.08; margin: 0; letter-spacing: -0.02em; }
.ai-page .container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 32px; }

/* placeholder */
.ai-page .ph {
  position: relative; border-radius: var(--radius-sm); background-color: var(--bg-2);
  background-image: repeating-linear-gradient(-45deg, oklch(0.64 0.17 252 / 0.10) 0 10px, transparent 10px 20px);
  border: 1px solid var(--line); display: grid; place-items: center; overflow: hidden; color: var(--ink-3);
}
.ai-page .ph::after {
  content: attr(data-label); font-family: "Space Grotesk", monospace; font-size: 12px; letter-spacing: .06em;
  text-transform: uppercase; color: var(--ink-3); padding: 6px 10px; border: 1px dashed var(--line-2);
  border-radius: 6px; background: oklch(0.165 0.022 258 / 0.6);
}

/* ---------- hero ---------- */
.ai-page .hero { position: relative; overflow: hidden; background: var(--bg); }
.ai-page .hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 60% 80% at 78% 30%, oklch(0.52 0.15 256 / 0.45), transparent 60%),
    radial-gradient(ellipse 50% 60% at 10% 90%, oklch(0.64 0.17 252 / 0.20), transparent 60%);
}
.ai-page .hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(oklch(0.64 0.17 252 / 0.06) 1px, transparent 1px),
    linear-gradient(90deg, oklch(0.64 0.17 252 / 0.06) 1px, transparent 1px);
  background-size: 46px 46px;
  -webkit-mask-image: radial-gradient(ellipse 70% 80% at 70% 40%, black, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 80% at 70% 40%, black, transparent 75%);
}
.ai-page .hero-inner { position: relative; z-index: 2; display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center; padding: 88px 0 96px; }
.ai-page .eyebrow {
  display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-display);
  font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--blue-bright);
  padding: 8px 16px; border: 1px solid var(--line-2); border-radius: 999px; background: oklch(0.64 0.17 252 / 0.08); margin-bottom: 26px;
}
.ai-page .eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--blue-bright); box-shadow: 0 0 10px var(--blue-bright); }
.ai-page .hero h1 { font-size: clamp(38px, 4.4vw, 60px); margin-bottom: 24px; color: var(--ink); }
.ai-page .hero h1 .accent { color: var(--blue-bright); }
.ai-page .hero-lead { font-size: 19px; color: var(--ink-2); max-width: 540px; margin-bottom: 36px; }
.ai-page .hero-actions { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }

.ai-page .btn {
  display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-display);
  font-weight: 600; font-size: 16px; padding: 15px 28px; border-radius: 999px; cursor: pointer;
  border: 1px solid transparent; transition: transform .15s, background .2s, box-shadow .2s, border-color .2s;
}
.ai-page .btn:hover { transform: translateY(-2px); }
.ai-page .btn-primary { background: var(--blue); color: #fff; box-shadow: 0 14px 36px -12px oklch(0.64 0.17 252 / 0.8); }
.ai-page .btn-primary:hover { background: var(--blue-bright); }
.ai-page .btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-2); }
.ai-page .btn-ghost:hover { border-color: var(--blue); background: oklch(0.64 0.17 252 / 0.10); }
.ai-page .btn svg { width: 18px; height: 18px; }

.ai-page .hero-visual { position: relative; }
.ai-page .hero-visual .ph { aspect-ratio: 4 / 3.4; width: 100%; box-shadow: var(--shadow-glow); }
.ai-page .hero-visual .hero-img {
  width: 100%; height: auto; aspect-ratio: 1402 / 1122; object-fit: cover;
  border-radius: var(--radius); border: 1px solid var(--line); box-shadow: var(--shadow-glow);
}
.ai-page .hero-stats {
  position: absolute; bottom: -64px; left: 50%; transform: translateX(-50%); display: flex;
  background: oklch(0.20 0.025 258 / 0.92); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 20px 40px -16px oklch(0 0 0 / 0.6); overflow: hidden;
}
.ai-page .hero-stats .stat { padding: 24px 42px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 13px; }
.ai-page .hero-stats .stat + .stat { border-left: 1px solid var(--line); }
.ai-page .hero-stats .stat-logo { display: inline-flex; align-items: center; justify-content: center; background: #000; border: 1px solid var(--line); border-radius: 10px; padding: 11px 22px; }
.ai-page .hero-stats .stat-logo img { height: 28px; width: auto; max-width: 160px; object-fit: contain; display: block; }
.ai-page .hero-stats .stat b { display: block; font-family: var(--font-display); font-size: 24px; color: var(--blue-bright); }
.ai-page .hero-stats .stat span { font-size: 14px; font-weight: 500; color: var(--ink); letter-spacing: .03em; }

/* ---------- sections ---------- */
.ai-page .section { padding: 92px 0; position: relative; }
.ai-page .section.panel { background: var(--bg-2); border-block: 1px solid var(--line); }
.ai-page .section-head { max-width: 760px; margin-bottom: 52px; }
.ai-page .section-head.center { margin-inline: auto; text-align: center; }
.ai-page .kicker { font-family: var(--font-display); font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--blue-bright); margin-bottom: 16px; display: block; }
.ai-page .section-head h2 { font-size: clamp(30px, 3.4vw, 44px); margin-bottom: 18px; color: var(--ink); }
.ai-page .section-head p { font-size: 18px; color: var(--ink-2); margin: 0; }

.ai-page .spec-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.ai-page .spec-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; display: flex; flex-direction: column; transition: transform .2s, border-color .2s, background .2s; position: relative; overflow: hidden; }
.ai-page .spec-card::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: linear-gradient(90deg, var(--blue), var(--blue-bright)); transform: scaleX(0); transform-origin: left; transition: transform .3s ease; }
.ai-page .spec-card:hover { transform: translateY(-4px); border-color: var(--line-2); background: var(--card-2); }
.ai-page .spec-card:hover::before { transform: scaleX(1); }
.ai-page .spec-icon { width: 46px; height: 46px; border-radius: 12px; background: oklch(0.64 0.17 252 / 0.14); border: 1px solid oklch(0.64 0.17 252 / 0.3); display: grid; place-items: center; margin-bottom: 18px; color: var(--blue-bright); }
.ai-page .spec-icon svg { width: 24px; height: 24px; }
.ai-page .spec-card h3 { font-size: 21px; margin-bottom: 10px; color: var(--ink); }
.ai-page .spec-card p { color: var(--ink-2); font-size: 15px; margin: 0 0 18px; }
.ai-page .spec-card ul { list-style: none; margin: auto 0 0; padding: 0; display: flex; flex-direction: column; gap: 9px; }
.ai-page .spec-card li { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--ink-2); }
.ai-page .spec-card li svg { width: 17px; height: 17px; color: var(--blue-bright); flex-shrink: 0; margin-top: 2px; }

.ai-page .partner-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.ai-page .partner-grid .ph { height: 88px; border-radius: var(--radius-sm); background-color: var(--card); }
.ai-page .partner-grid .ph::after { font-size: 11px; }
.ai-page .partner-tile {
  height: 88px; display: grid; place-items: center; padding: 18px 26px;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-sm);
  transition: transform .2s, border-color .2s, box-shadow .2s;
}
.ai-page .partner-tile img { max-height: 38px; max-width: 80%; width: auto; object-fit: contain; }

.ai-page .dgx { margin-top: 32px; display: grid; grid-template-columns: 1fr 1fr; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: linear-gradient(140deg, var(--blue-ink), oklch(0.165 0.022 258)); }
.ai-page .dgx .ph { min-height: 360px; border: none; border-radius: 0; border-right: 1px solid var(--line); }
.ai-page .dgx .dgx-img { width: 100%; height: 100%; min-height: 360px; object-fit: cover; display: block; border-right: 1px solid var(--line); }
.ai-page .dgx-body { padding: 52px; display: flex; flex-direction: column; justify-content: center; }
.ai-page .dgx-tag { align-self: flex-start; font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #fff; background: var(--red); padding: 6px 14px; border-radius: 999px; margin-bottom: 22px; }
.ai-page .dgx-body h3 { font-size: clamp(28px, 3vw, 40px); margin-bottom: 16px; color: var(--ink); }
.ai-page .dgx-body p { color: var(--ink-2); font-size: 17px; margin: 0 0 28px; max-width: 460px; }

/* ---------- contact CTA ---------- */
.ai-page .cta { position: relative; overflow: visible; background: var(--bg); }
.ai-page .cta::before {
  content: ""; position: absolute; left: 0; right: 0; top: -160px; bottom: -40px;
  pointer-events: none; z-index: 0;
  background: radial-gradient(ellipse 62% 64% at 50% 32%, oklch(0.52 0.15 256 / 0.34), transparent 70%);
}
.ai-page .cta-inner { position: relative; z-index: 2; text-align: center; padding: 90px 0; }
.ai-page .cta-inner h2 { font-size: clamp(30px, 3.6vw, 46px); margin-bottom: 18px; color: var(--ink); }
.ai-page .cta-inner > p { font-size: 19px; color: var(--ink-2); max-width: 560px; margin: 0 auto 48px; }
.ai-page .contact-methods { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; max-width: 920px; margin: 0 auto; }
.ai-page .contact-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px 26px; display: flex; flex-direction: column; align-items: center; gap: 14px; transition: transform .2s, border-color .2s; }
.ai-page .contact-card:hover { transform: translateY(-4px); border-color: var(--blue); }
.ai-page .contact-card .c-icon { width: 54px; height: 54px; border-radius: 14px; background: oklch(0.64 0.17 252 / 0.14); border: 1px solid oklch(0.64 0.17 252 / 0.3); display: grid; place-items: center; color: var(--blue-bright); }
.ai-page .contact-card .c-icon svg { width: 26px; height: 26px; }
.ai-page .contact-card h4 { font-size: 15px; color: var(--ink-3); font-weight: 500; letter-spacing: .04em; text-transform: uppercase; font-family: var(--font-body); }
.ai-page .contact-card .c-value { font-family: var(--font-display); font-size: 20px; font-weight: 600; color: var(--ink); }
.ai-page .contact-card .c-sub { font-size: 14px; color: var(--ink-2); }

/* ---------- light zone (content middle) ---------- */
.ai-page .lz {
  --ink: var(--l-ink); --ink-2: var(--l-ink-2); --ink-3: var(--l-ink-3);
  --card: var(--l-card); --card-2: var(--l-card-2); --line: var(--l-line); --line-2: var(--l-line-2);
  --bg-2: var(--l-panel); color: var(--ink);
}
.ai-page .lz .kicker { color: var(--blue-deep); }
.ai-page .lz .ph { background-color: var(--l-panel); border-color: var(--l-line); }
.ai-page .lz .ph::after { color: var(--l-ink-3); border-color: var(--l-line-2); background: oklch(1 0 0 / 0.7); }
.ai-page .lz .spec-card { box-shadow: 0 1px 2px oklch(0.27 0.03 258 / 0.04); }
.ai-page .lz .spec-card:hover { box-shadow: 0 18px 40px -22px oklch(0.40 0.10 258 / 0.45); background: var(--l-card); }

/* INTRO — light-gray step right after the dark hero; glow straddles the seam */
.ai-page .section.lz.intro { background: var(--l-panel); position: relative; overflow: visible; padding-top: 104px; }
.ai-page .section.lz.intro::before {
  content: ""; position: absolute; left: 0; right: 0; top: -188px; height: 376px;
  pointer-events: none; z-index: 0;
  background: radial-gradient(ellipse 52% 100% at 50% 50%, oklch(0.55 0.16 256 / 0.28), transparent 72%);
}
.ai-page .section.lz.intro > .container { position: relative; z-index: 1; }

/* CONFIGURATIONS — the white section */
.ai-page .section.panel.lz { background: var(--l-card); border-block: none; }

/* MARQUES — light-gray step before the dark CTA */
.ai-page .section.lz.marques { background: var(--l-panel); padding-bottom: 96px; }
.ai-page .section.lz.marques .dgx { border-color: oklch(0.45 0.06 258 / 0.5); box-shadow: 0 30px 70px -34px oklch(0.40 0.10 258 / 0.5); }
.ai-page .section.lz.marques .dgx .ph { background-color: oklch(0.22 0.03 258); }
.ai-page .section.lz.marques .dgx-body h3 { color: var(--l-card); }
.ai-page .section.lz.marques .dgx-body p { color: oklch(0.86 0.02 258); }
.ai-page .section.lz.marques .partner-grid .ph { background-color: var(--l-card); box-shadow: 0 1px 2px oklch(0.27 0.03 258 / 0.04); }
.ai-page .section.lz.marques .partner-tile { background: var(--l-card); border-color: var(--l-line); box-shadow: 0 1px 2px oklch(0.27 0.03 258 / 0.04); }
.ai-page .section.lz.marques .partner-tile:hover { transform: translateY(-3px); border-color: var(--blue); box-shadow: 0 14px 30px -18px oklch(0.40 0.10 258 / 0.4); }

@media (max-width: 1080px) {
  .ai-page .hero-inner { grid-template-columns: 1fr; gap: 40px; padding: 56px 0 76px; }
  .ai-page .hero-visual { max-width: 560px; }
  .ai-page .spec-grid { grid-template-columns: 1fr; }
  .ai-page .partner-grid { grid-template-columns: repeat(2, 1fr); }
  .ai-page .dgx { grid-template-columns: 1fr; }
  .ai-page .dgx .ph,
  .ai-page .dgx .dgx-img { border-right: none; border-bottom: 1px solid var(--line); min-height: 260px; }
  .ai-page .contact-methods { grid-template-columns: 1fr; max-width: 440px; }
}
@media (max-width: 760px) {
  .ai-page .container { padding-inline: 20px; }
}
