/* SubventionPilot — V2 advanced visual layer
 * Loaded ON TOP of landing.css for the upgraded landing
 */

/* ============== HERO V3 — 3D / cinetic ============== */
.hero-x {
  position: relative;
  padding: 0;
  min-height: 92vh;
  display: flex;
  align-items: stretch;
  overflow: hidden;
  border-bottom: 1px solid var(--rule);
  background: var(--bg);
}
.hero-x-canvas {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
.hero-x-grain {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)' opacity='0.5'/></svg>");
  opacity: 0.06;
  mix-blend-mode: overlay;
}
.hero-x-grid-overlay {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background-image:
    linear-gradient(to right, color-mix(in oklch, var(--ink) 4%, transparent) 1px, transparent 1px),
    linear-gradient(to bottom, color-mix(in oklch, var(--ink) 4%, transparent) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(circle at 50% 60%, black 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(circle at 50% 60%, black 30%, transparent 80%);
}

.hero-x-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  padding: clamp(56px, 8vw, 96px) 0 clamp(64px, 10vw, 120px);
}

/* Top corner labels — cinematic */
.hero-x-corners {
  position: absolute;
  inset: 24px;
  z-index: 3;
  pointer-events: none;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-muted);
}
.hero-x-corners > div { position: absolute; display: flex; gap: 8px; align-items: center; }
.hero-x-corners .tl { top: 0; left: 0; }
.hero-x-corners .tr { top: 0; right: 0; }
.hero-x-corners .bl { bottom: 0; left: 0; }
.hero-x-corners .br { bottom: 0; right: 0; }
.hero-x-corners .marker {
  width: 10px; height: 10px;
  border: 1px solid currentColor;
  position: relative;
}
.hero-x-corners .marker::before, .hero-x-corners .marker::after {
  content: ""; position: absolute; background: currentColor;
}
.hero-x-corners .marker::before { left: 4px; right: 4px; top: 50%; height: 1px; transform: translateY(-50%); }
.hero-x-corners .marker::after { top: 4px; bottom: 4px; left: 50%; width: 1px; transform: translateX(-50%); }
.hero-x-corners .live { display: inline-flex; align-items: center; gap: 6px; color: var(--positive); }
.hero-x-corners .live .led { width: 6px; height: 6px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 3px color-mix(in oklch, var(--positive) 30%, transparent); animation: pulse 2s infinite; }

@media (max-width: 720px) { .hero-x-corners .tr, .hero-x-corners .br { display: none; } }

/* Headline — kinetic */
.hero-x-headline {
  position: relative;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(44px, 8.5vw, 128px);
  line-height: 0.94;
  letter-spacing: -0.035em;
  margin: 0;
  color: var(--ink);
  font-variation-settings: "opsz" 144;
  text-wrap: balance;
}
.hero-x-headline .row { display: block; }
.hero-x-headline .num {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  background: linear-gradient(100deg, var(--brand), var(--accent) 60%, var(--brand-soft));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  display: inline-block;
  position: relative;
}
.hero-x-headline .num::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0.05em; height: 4px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0.6;
  filter: blur(6px);
}
.hero-x-headline .outline {
  -webkit-text-stroke: 1.5px var(--ink);
  color: transparent;
  font-style: italic;
  font-weight: 400;
}
[data-theme="dark"] .hero-x-headline .outline { -webkit-text-stroke-color: var(--ink); }

.hero-x-meta-row {
  display: grid;
  grid-template-columns: 1.2fr auto;
  gap: 64px;
  align-items: end;
  margin-top: clamp(32px, 5vw, 64px);
}
.hero-x-lede {
  font-family: var(--font-ui);
  font-size: clamp(16px, 1.5vw, 19px);
  line-height: 1.5;
  color: var(--ink-soft);
  max-width: 50ch;
  margin: 0;
}
.hero-x-lede b { color: var(--ink); font-weight: 500; }

.hero-x-cta-stack { display: flex; flex-direction: column; gap: 10px; align-items: flex-end; }
.hero-x-cta-stack .meta {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--ink-muted);
  text-transform: uppercase;
}
@media (max-width: 720px) {
  .hero-x-meta-row { grid-template-columns: 1fr; gap: 32px; }
  .hero-x-cta-stack { align-items: stretch; }
}

/* Floating data plates — interact with cursor parallax */
.hero-x-plates {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}
.plate {
  position: absolute;
  background: color-mix(in oklch, var(--surface) 70%, transparent);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 14px 18px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--ink-soft);
  box-shadow: var(--shadow-2);
  transition: transform .6s cubic-bezier(.2,.8,.2,1);
  pointer-events: auto;
}
.plate .l { color: var(--ink-muted); font-size: 9px; letter-spacing: 0.14em; text-transform: uppercase; margin-bottom: 6px; display: block; }
.plate .v { font-family: var(--font-display); font-size: 22px; font-weight: 500; color: var(--ink); letter-spacing: -0.02em; line-height: 1; }
.plate .v small { font-family: var(--font-mono); font-size: 11px; color: var(--ink-muted); margin-left: 3px; letter-spacing: 0.04em; font-weight: 500; }
.plate .v b { color: var(--brand); font-weight: 500; }
.plate-1 { top: 12%; left: 5%; }
.plate-2 { top: 22%; right: 6%; }
.plate-3 { bottom: 18%; left: 8%; }
.plate-4 { bottom: 24%; right: 4%; }

@media (max-width: 1100px) {
  .plate-1 { top: 8%; left: 3%; }
  .plate-2 { top: 12%; right: 3%; }
  .plate-3, .plate-4 { display: none; }
}
@media (max-width: 720px) {
  .hero-x-plates { display: none; }
}

/* Scroll cue */
.scroll-cue {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-muted);
}
.scroll-cue .line {
  width: 1px;
  height: 36px;
  background: linear-gradient(to bottom, transparent, var(--ink-muted));
  position: relative;
  overflow: hidden;
}
.scroll-cue .line::after {
  content: "";
  position: absolute;
  top: -36px; left: 0; right: 0; height: 18px;
  background: linear-gradient(to bottom, transparent, var(--accent));
  animation: scroll-down 2.4s infinite;
}
@keyframes scroll-down { to { top: 100%; } }

/* ============== MARQUEE ============== */
.marquee-band {
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  background: var(--bg-sunken);
  padding: 22px 0;
  overflow: hidden;
  position: relative;
}
.marquee-band::before, .marquee-band::after {
  content: "";
  position: absolute;
  top: 0; bottom: 0; width: 80px;
  z-index: 2;
  pointer-events: none;
}
.marquee-band::before { left: 0; background: linear-gradient(to right, var(--bg-sunken), transparent); }
.marquee-band::after { right: 0; background: linear-gradient(to left, var(--bg-sunken), transparent); }
.marquee {
  display: flex;
  gap: 56px;
  animation: marquee 40s linear infinite;
  width: max-content;
}
.marquee-item {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--ink-soft);
  white-space: nowrap;
}
.marquee-item .dot {
  width: 6px; height: 6px;
  background: var(--accent);
  border-radius: 50%;
}
.marquee-item b { color: var(--ink); font-weight: 600; font-family: var(--font-display); font-size: 18px; letter-spacing: -0.01em; margin-right: 4px; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ============== DISPOSITIFS — bento grid (replaces flat grid) ============== */
.bento {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-auto-rows: 200px;
  gap: 12px;
}
.bento-cell {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 24px;
  overflow: hidden;
  transition: border-color .2s, transform .25s cubic-bezier(.2,.8,.2,1);
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
}
.bento-cell::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at var(--mx, 50%) var(--my, 50%), color-mix(in oklch, var(--brand) 12%, transparent), transparent 60%);
  opacity: 0;
  transition: opacity .3s;
  pointer-events: none;
}
.bento-cell:hover { border-color: var(--brand); transform: translateY(-2px); }
.bento-cell:hover::before { opacity: 1; }

.bento-cell .c-head { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: auto; }
.bento-cell .c-code { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.12em; color: var(--ink-muted); text-transform: uppercase; }
.bento-cell .c-icon { width: 28px; height: 28px; color: var(--brand); display: grid; place-items: center; border: 1px solid var(--border); border-radius: 4px; background: var(--bg-sunken); }
.bento-cell .c-icon svg { width: 14px; height: 14px; }
.bento-cell .c-amount { font-family: var(--font-display); font-size: clamp(38px, 4vw, 56px); font-weight: 500; line-height: 0.95; letter-spacing: -0.03em; color: var(--ink); margin-bottom: 6px; font-variation-settings: "opsz" 144; }
.bento-cell .c-amount small { font-family: var(--font-mono); font-size: 11px; color: var(--ink-muted); margin-left: 4px; letter-spacing: 0.04em; font-weight: 500; vertical-align: top; }
.bento-cell .c-name { font-size: 14px; font-weight: 600; letter-spacing: -0.005em; }
.bento-cell .c-desc { font-size: 12px; color: var(--ink-muted); margin-top: 4px; line-height: 1.45; }

.bento-cell.large { grid-column: span 3; grid-row: span 2; padding: 32px; }
.bento-cell.medium { grid-column: span 3; }
.bento-cell.small { grid-column: span 2; }
.bento-cell.large .c-amount { font-size: clamp(60px, 8vw, 96px); }

/* Special "brand" intro cell */
.bento-cell.intro {
  grid-column: span 3; grid-row: span 1;
  background: var(--brand);
  color: var(--brand-ink);
  border-color: var(--brand-deep);
  padding: 28px;
  justify-content: space-between;
}
.bento-cell.intro .c-icon { background: color-mix(in oklch, var(--brand-ink) 15%, transparent); border-color: color-mix(in oklch, var(--brand-ink) 30%, transparent); color: var(--brand-ink); }
.bento-cell.intro .c-code { color: color-mix(in oklch, var(--brand-ink) 75%, transparent); }
.bento-cell.intro .title {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin: auto 0 8px;
  font-variation-settings: "opsz" 96;
}
.bento-cell.intro .meta { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em; opacity: 0.8; }

@media (max-width: 1000px) {
  .bento { grid-template-columns: repeat(4, 1fr); grid-auto-rows: 180px; }
  .bento-cell.large { grid-column: span 4; grid-row: span 2; }
  .bento-cell.medium { grid-column: span 2; }
  .bento-cell.small { grid-column: span 2; }
  .bento-cell.intro { grid-column: span 4; }
}
@media (max-width: 600px) {
  .bento { grid-template-columns: 1fr; grid-auto-rows: minmax(180px, auto); }
  .bento-cell, .bento-cell.large, .bento-cell.medium, .bento-cell.small, .bento-cell.intro { grid-column: span 1; grid-row: auto; }
}

/* ============== MAGIPA STRATEGIC PARTNER BAND ============== */
.magipa-band {
  position: relative;
  padding: clamp(64px, 8vw, 120px) 0;
  background: var(--bg-sunken);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  overflow: hidden;
}
.magipa-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 80% 20%, color-mix(in oklch, var(--brand-soft) 20%, transparent), transparent 50%),
    radial-gradient(ellipse at 10% 90%, color-mix(in oklch, var(--accent) 15%, transparent), transparent 45%);
  opacity: 0.5;
  pointer-events: none;
}
.magipa-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 64px;
  align-items: center;
}
.magipa-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 24px;
}
.magipa-eyebrow .arrow {
  display: inline-block;
  width: 24px; height: 1px; background: var(--brand);
  position: relative;
}
.magipa-eyebrow .arrow::after {
  content: ""; position: absolute; right: 0; top: -3px;
  width: 7px; height: 7px;
  border-top: 1px solid var(--brand);
  border-right: 1px solid var(--brand);
  transform: rotate(45deg);
}
.magipa-band h2 {
  font-family: var(--font-display);
  font-size: clamp(34px, 4.2vw, 60px);
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1.04;
  margin: 0 0 24px;
  font-variation-settings: "opsz" 144;
  max-width: 16ch;
}
.magipa-band h2 em {
  font-style: italic;
  font-weight: 400;
  background: linear-gradient(110deg, var(--brand), var(--accent));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.magipa-band > .magipa-grid > div > p {
  font-size: 17px; color: var(--ink-soft); line-height: 1.55; max-width: 46ch; margin: 0 0 28px;
}

/* Split MAGIPA / GIGARUN — strategy → execution */
.magipa-split {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 12px;
  align-items: stretch;
  margin-bottom: 28px;
}
.magipa-split .split-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 18px 18px 20px;
  display: flex;
  flex-direction: column;
}
.magipa-split .split-card .role {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  color: var(--brand);
  text-transform: uppercase;
}
.magipa-split .split-card.alt .role { color: var(--accent-deep); }
.magipa-split .split-card .t {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.018em;
  margin: 6px 0 8px;
  font-variation-settings: "opsz" 96;
}
.magipa-split .split-card .d {
  font-size: 13px;
  color: var(--ink-soft);
  line-height: 1.5;
  margin: 0;
}
.magipa-split .split-card .d b { color: var(--ink); font-weight: 600; }
.magipa-split .split-arrow {
  display: grid;
  place-items: center;
  width: 32px;
  color: var(--ink-muted);
}
.magipa-split .split-arrow svg { width: 16px; height: 16px; }
@media (max-width: 540px) {
  .magipa-split { grid-template-columns: 1fr; }
  .magipa-split .split-arrow { transform: rotate(90deg); }
}

.magipa-band .actions { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.magipa-band .actions .meta {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--ink-muted);
  text-transform: uppercase;
}
.flag-cta.alt { background: var(--brand); color: var(--brand-ink); }
.flag-cta.alt .arrow-wrap { background: var(--brand-ink); color: var(--brand); }
.flag-cta.alt:hover { box-shadow: 0 8px 24px color-mix(in oklch, var(--brand) 35%, transparent); }

/* MAGIPA flow visual — 4 nodes */
.magipa-flow {
  position: relative;
  padding: 24px 0;
  display: flex;
  flex-direction: column;
  gap: 32px;
}
.flow-row {
  display: flex;
  align-items: center;
  gap: 16px;
}
.flow-row.offset { padding-left: 64px; }
.flow-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, var(--border-strong), transparent);
  position: relative;
}
.flow-line::after {
  content: "";
  position: absolute;
  right: 0; top: -3px;
  width: 7px; height: 7px;
  border-top: 1px solid var(--ink-muted);
  border-right: 1px solid var(--ink-muted);
  transform: rotate(45deg);
}
.flow-node {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 16px 18px 18px;
  min-width: 200px;
  box-shadow: var(--shadow-2);
  position: relative;
  transition: transform .25s, box-shadow .25s;
}
.flow-node:hover { transform: translateY(-2px); box-shadow: var(--shadow-3); }
.flow-node .l {
  display: block;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  color: var(--ink-muted);
  text-transform: uppercase;
}
.flow-node .t {
  display: block;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 500;
  letter-spacing: -0.015em;
  margin: 6px 0 4px;
  color: var(--ink);
  font-variation-settings: "opsz" 72;
}
.flow-node .d {
  display: block;
  font-size: 12px;
  color: var(--ink-soft);
  line-height: 1.45;
}
.flow-node.brand {
  background: var(--brand);
  border-color: var(--brand-deep);
  color: var(--brand-ink);
}
.flow-node.brand .l { color: color-mix(in oklch, var(--brand-ink) 70%, transparent); }
.flow-node.brand .t { color: var(--brand-ink); }
.flow-node.brand .d { color: color-mix(in oklch, var(--brand-ink) 85%, transparent); }

@media (max-width: 900px) {
  .magipa-grid { grid-template-columns: 1fr; gap: 40px; }
  .flow-row.offset { padding-left: 0; }
  .flow-node { min-width: 0; flex: 1; }
}

/* ============== GIGARUN PARTNER BAND ============== */
.gigarun-band {
  position: relative;
  padding: clamp(64px, 8vw, 120px) 0;
  background: var(--bg);
  overflow: hidden;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.gigarun-canvas {
  position: absolute; inset: 0; z-index: 0; pointer-events: none; opacity: 0.5;
}
.gigarun-grid {
  position: relative; z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.gigarun-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-deep);
  margin-bottom: 24px;
}
.gigarun-eyebrow .arrow {
  display: inline-block;
  width: 24px; height: 1px; background: var(--accent);
  position: relative;
}
.gigarun-eyebrow .arrow::after {
  content: ""; position: absolute; right: 0; top: -3px;
  width: 7px; height: 7px;
  border-top: 1px solid var(--accent);
  border-right: 1px solid var(--accent);
  transform: rotate(45deg);
}
.gigarun-band h2 {
  font-family: var(--font-display);
  font-size: clamp(36px, 4.5vw, 64px);
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1.02;
  margin: 0 0 24px;
  font-variation-settings: "opsz" 144;
  max-width: 14ch;
}
.gigarun-band h2 em {
  font-style: italic;
  font-weight: 400;
  background: linear-gradient(110deg, var(--brand), var(--accent));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.gigarun-band p { font-size: 17px; color: var(--ink-soft); line-height: 1.55; max-width: 46ch; margin: 0 0 32px; }
.gigarun-band .actions { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.gigarun-band .ext-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-muted);
}
.gigarun-band .ext-link svg { width: 11px; height: 11px; }

/* Gigarun visual — 3D card stack */
.gigarun-visual {
  position: relative;
  aspect-ratio: 1;
  perspective: 1200px;
}
.gigarun-card {
  position: absolute;
  inset: 12% 8%;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 28px;
  box-shadow: var(--shadow-3);
  transform-style: preserve-3d;
  transition: transform 1.2s cubic-bezier(.2,.8,.2,1);
}
.gigarun-card.c1 { transform: rotateX(8deg) rotateY(-8deg) translateZ(0px); z-index: 3; background: var(--surface); }
.gigarun-card.c2 { transform: rotateX(8deg) rotateY(-8deg) translateZ(-40px) translateX(-30px) translateY(20px); z-index: 2; opacity: 0.85; }
.gigarun-card.c3 { transform: rotateX(8deg) rotateY(-8deg) translateZ(-80px) translateX(-60px) translateY(40px); z-index: 1; opacity: 0.6; }
.gigarun-band:hover .gigarun-card.c1 { transform: rotateX(4deg) rotateY(-4deg) translateZ(20px); }
.gigarun-card .h {
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.12em;
  color: var(--ink-muted); text-transform: uppercase; margin-bottom: 16px;
  display: flex; justify-content: space-between; align-items: center;
}
.gigarun-card .h .pill { padding: 3px 8px; background: var(--brand-bg); color: var(--brand); border-radius: 100px; font-size: 9px; }
.gigarun-card .title { font-family: var(--font-display); font-size: 22px; font-weight: 500; letter-spacing: -0.015em; margin-bottom: 10px; line-height: 1.15; }
.gigarun-card .desc { font-size: 13px; color: var(--ink-soft); line-height: 1.5; margin: 0 0 24px; }
.gigarun-card .stats {
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px;
  padding-top: 20px; border-top: 1px solid var(--rule);
}
.gigarun-card .stats .s .n { font-family: var(--font-display); font-size: 28px; font-weight: 500; line-height: 1; letter-spacing: -0.02em; color: var(--brand); }
.gigarun-card .stats .s .l { font-family: var(--font-mono); font-size: 9px; letter-spacing: 0.1em; color: var(--ink-muted); text-transform: uppercase; margin-top: 4px; }

@media (max-width: 900px) {
  .gigarun-grid { grid-template-columns: 1fr; gap: 40px; }
  .gigarun-visual { max-width: 480px; margin: 0 auto; }
}

/* ============== FLAG ribbon for hero CTA ============== */
.flag-cta {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 24px;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 500;
  font-size: 16px;
  border-radius: 8px;
  border: 0;
  cursor: pointer;
  text-decoration: none;
  transition: transform .2s, box-shadow .2s;
  box-shadow: 0 0 0 0 color-mix(in oklch, var(--accent) 50%, transparent);
}
.flag-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px color-mix(in oklch, var(--accent) 35%, transparent);
}
.flag-cta .arrow-wrap {
  width: 28px; height: 28px;
  background: var(--accent-ink);
  color: var(--accent);
  border-radius: 50%;
  display: grid; place-items: center;
  transition: transform .2s;
}
.flag-cta:hover .arrow-wrap { transform: rotate(-45deg); }
.flag-cta .arrow-wrap svg { width: 14px; height: 14px; }

.ghost-cta {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 16px 20px;
  border: 1px solid var(--border-strong);
  background: transparent;
  color: var(--ink);
  font-size: 14px;
  border-radius: 8px;
  font-family: inherit;
  text-decoration: none;
  font-weight: 500;
  transition: border-color .15s, background .15s;
}
.ghost-cta:hover { border-color: var(--ink); background: var(--bg-sunken); }

/* ============== METHOD reimagined: vertical stepper ============== */
.method-x { padding: clamp(56px, 8vw, 112px) 0; }
.method-x-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: 64px; }
.method-x-side h2 { position: sticky; top: 96px; }
.method-x-list { position: relative; }
.method-x-step {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 32px;
  padding: 32px 0;
  border-top: 1px solid var(--rule);
}
.method-x-step:last-child { border-bottom: 1px solid var(--rule); }
.method-x-step .num {
  font-family: var(--font-display);
  font-size: 56px;
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 0.95;
  color: var(--brand);
  font-variation-settings: "opsz" 144;
}
.method-x-step h3 {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 500;
  letter-spacing: -0.018em;
  margin: 0 0 6px;
  font-variation-settings: "opsz" 96;
}
.method-x-step .meta {
  display: flex; gap: 14px; font-family: var(--font-mono); font-size: 11px;
  letter-spacing: 0.06em; color: var(--ink-muted); text-transform: uppercase;
  margin-bottom: 14px;
}
.method-x-step .meta b { color: var(--accent-deep); }
.method-x-step p { margin: 0; font-size: 15px; color: var(--ink-soft); line-height: 1.55; max-width: 50ch; }

@media (max-width: 900px) { .method-x-grid { grid-template-columns: 1fr; gap: 32px; } .method-x-side h2 { position: static; } }

/* ============== KPI BAND v2 — radial dials  ============== */
.kpi-x {
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  background: var(--bg-sunken);
  padding: 56px 0;
}
.kpi-x-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.kpi-x-cell {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 18px;
  align-items: center;
}
.kpi-x-dial {
  position: relative;
  width: 64px; height: 64px;
}
.kpi-x-dial svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.kpi-x-dial .track { stroke: var(--border); }
.kpi-x-dial .fill { stroke: var(--brand); transition: stroke-dashoffset 1.6s cubic-bezier(.2,.8,.2,1); }
.kpi-x-dial .pct {
  position: absolute; inset: 0; display: grid; place-items: center;
  font-family: var(--font-mono); font-size: 11px; font-weight: 600; letter-spacing: 0.02em;
  color: var(--brand); font-variant-numeric: tabular-nums;
}
.kpi-x-cell .info .l { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.12em; color: var(--ink-muted); text-transform: uppercase; }
.kpi-x-cell .info .v { font-family: var(--font-display); font-size: 28px; font-weight: 500; letter-spacing: -0.02em; line-height: 1; margin: 4px 0 4px; font-variation-settings: "opsz" 144; }
.kpi-x-cell .info .v small { font-family: var(--font-mono); font-size: 11px; color: var(--ink-muted); margin-left: 3px; letter-spacing: 0.04em; font-weight: 500; }
.kpi-x-cell .info .d { font-size: 12px; color: var(--ink-soft); }

@media (max-width: 900px) { .kpi-x-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 540px) { .kpi-x-grid { grid-template-columns: 1fr; } }

/* ============== Reveal animation — DISABLED (was causing render issues) ============== */
[data-reveal] { opacity: 1; }

/* ============================================================
   PARTNERS BAND — refonte sobre Magipa + Gigarun (2026-04-25)
   Triptyque narratif + splitscreen contraste outremer/crème
   ============================================================ */
.partners-band {
  padding: clamp(64px, 8vw, 120px) 0;
  background: var(--bg-elev);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}

/* Triptyque narratif — chaîne de valeur SubventionPilot → MAGIPA → Gigarun */
.trio {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 18px;
  margin-bottom: clamp(40px, 6vw, 72px);
  flex-wrap: wrap;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
}
.trio-step {
  display: flex;
  align-items: baseline;
  gap: 10px;
  white-space: nowrap;
}
.trio-num {
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--ink-muted);
  font-weight: 500;
}
.trio-label {
  font-family: var(--font-display);
  font-size: clamp(15px, 1.4vw, 17px);
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.trio-role {
  color: var(--ink-soft);
  font-style: italic;
}
.trio-arrow {
  color: var(--accent);
  font-size: 14px;
}
@media (max-width: 700px) {
  .trio { gap: 8px; flex-direction: column; align-items: flex-start; }
  .trio-step { font-size: 12px; }
  .trio-arrow { transform: rotate(90deg); padding: 0; margin-left: 8px; }
}

/* Splitscreen MAGIPA / Gigarun */
.partners-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
@media (max-width: 820px) {
  .partners-split { grid-template-columns: 1fr; gap: 12px; }
}

.partner-card {
  padding: clamp(28px, 4vw, 48px);
  border-radius: var(--r-lg);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  min-height: 420px;
}

.partner-magipa {
  background: var(--brand);
  color: var(--brand-ink);
}
.partner-gigarun {
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--border);
}

/* Decoration : grand chiffre en filigrane */
.partner-card::before {
  position: absolute;
  top: -8px;
  right: -16px;
  font-family: var(--font-display);
  font-size: clamp(120px, 18vw, 240px);
  font-weight: 500;
  line-height: 0.8;
  letter-spacing: -0.05em;
  pointer-events: none;
  font-variation-settings: "opsz" 144;
}
.partner-magipa::before {
  content: "02";
  color: rgba(243, 237, 224, 0.06);
}
.partner-gigarun::before {
  content: "03";
  color: rgba(184, 115, 31, 0.10);
}

.pc-eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 24px;
  position: relative;
  z-index: 1;
}
.partner-magipa .pc-eyebrow {
  color: var(--accent-soft);
}
.partner-gigarun .pc-eyebrow {
  color: var(--accent-deep);
}

.partner-card h3 {
  font-family: var(--font-display);
  font-size: clamp(26px, 3.2vw, 36px);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.06;
  margin: 0 0 18px;
  max-width: 18ch;
  position: relative;
  z-index: 1;
}

.partner-card > p {
  font-size: 15px;
  line-height: 1.6;
  margin: 0 0 28px;
  max-width: 38ch;
  position: relative;
  z-index: 1;
}
.partner-magipa > p { color: rgba(243, 237, 224, 0.85); }
.partner-gigarun > p { color: var(--ink-soft); }
.partner-magipa > p b { color: var(--brand-ink); font-weight: 600; }
.partner-gigarun > p b { color: var(--ink); font-weight: 600; }

.partner-card ul {
  list-style: none;
  padding: 0;
  margin: 0 0 36px;
  display: grid;
  gap: 10px;
  position: relative;
  z-index: 1;
}
.partner-card ul li {
  font-size: 14px;
  line-height: 1.45;
  position: relative;
  padding-left: 22px;
}
.partner-card ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.65em;
  width: 12px;
  height: 1px;
  background: currentColor;
  opacity: 0.45;
}
.partner-magipa ul li { color: rgba(243, 237, 224, 0.82); }
.partner-gigarun ul li { color: var(--ink-soft); }

.pc-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  font-weight: 500;
  margin-top: auto;
  font-family: var(--font-display);
  letter-spacing: -0.005em;
  text-decoration: none;
  padding-bottom: 6px;
  width: max-content;
  max-width: 100%;
  position: relative;
  z-index: 1;
  border-bottom: 1px solid currentColor;
  transition: gap 0.2s ease, color 0.15s ease, border-color 0.15s ease;
}
.partner-magipa .pc-cta {
  color: var(--accent-soft);
  border-bottom-color: rgba(217, 154, 79, 0.6);
}
.partner-magipa .pc-cta:hover {
  color: #fff5e8;
  border-bottom-color: #fff5e8;
  gap: 12px;
}
.partner-gigarun .pc-cta {
  color: var(--brand);
  border-bottom-color: rgba(30, 58, 138, 0.5);
}
.partner-gigarun .pc-cta:hover {
  color: var(--brand-deep);
  border-bottom-color: var(--brand-deep);
  gap: 12px;
}

.pc-meta {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-top: 14px;
  position: relative;
  z-index: 1;
}
.partner-magipa .pc-meta { color: rgba(243, 237, 224, 0.6); }
.partner-gigarun .pc-meta { color: var(--ink-muted); }
