/* ============ D3 final — animations + polish ============ */
.d3-final {
  --bg: #fafaf7;
  --surface: #ffffff;
  --surface-2: #f3f3ee;
  --border: rgba(0, 0, 0, 0.08);
  --border-bright: rgba(0, 0, 0, 0.16);
  --text: #0a0a0b;
  --text-2: #4a4a52;
  --text-3: #8a8a92;
  --accent: oklch(0.55 0.22 280);
  --accent-soft: oklch(0.92 0.06 280);
  --accent-2: oklch(0.7 0.18 200);

  font-family: 'Geist', sans-serif;
  background: var(--bg);
  color: var(--text);
  position: relative;
  min-height: 100vh;
  overflow-x: hidden;
}
.d3-final, .d3-final * { box-sizing: border-box; }

.d3-final .mono { font-family: 'Geist Mono', monospace; }
.d3-final .serif { font-family: 'Instrument Serif', serif; font-style: italic; }

/* mesh background animé */
.d3-final .mesh-bg {
  position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background:
    radial-gradient(ellipse 900px 600px at 15% 5%, oklch(0.92 0.10 280 / 0.55), transparent 60%),
    radial-gradient(ellipse 700px 500px at 90% 25%, oklch(0.90 0.10 200 / 0.45), transparent 60%),
    radial-gradient(ellipse 600px 500px at 50% 110%, oklch(0.92 0.10 50 / 0.4), transparent 60%);
  animation: meshFloat 18s ease-in-out infinite alternate;
}
@keyframes meshFloat {
  0%   { transform: translate(0, 0) scale(1); }
  50%  { transform: translate(-20px, 20px) scale(1.05); }
  100% { transform: translate(20px, -10px) scale(1); }
}

.d3-final .grain {
  position: fixed; inset: 0; pointer-events: none; z-index: 1; opacity: 0.4;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 0.04 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  mix-blend-mode: multiply;
}

.d3-final main { position: relative; z-index: 2; }

/* tags & buttons */
.d3-final .tag {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: 'Geist Mono', monospace;
  font-size: 11px; font-weight: 500; letter-spacing: 0.02em;
  padding: 5px 11px; border-radius: 999px;
  border: 1px solid var(--border-bright);
  color: var(--text-2); background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(8px);
}
.d3-final .tag-dot::before {
  content: ''; width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent); box-shadow: 0 0 8px var(--accent);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%,100% { box-shadow: 0 0 6px var(--accent); }
  50%     { box-shadow: 0 0 14px var(--accent); }
}

.d3-final .tbtn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: 'Geist', sans-serif; font-weight: 500; font-size: 14px;
  padding: 12px 20px; border-radius: 10px;
  border: 1px solid var(--border-bright); background: rgba(255,255,255,0.7);
  color: var(--text); cursor: pointer; transition: all 0.2s ease;
  backdrop-filter: blur(8px);
}
.d3-final .tbtn:hover { transform: translateY(-1px); box-shadow: 0 8px 20px rgba(0,0,0,0.06); }
.d3-final .tbtn-primary {
  background: var(--accent); border-color: var(--accent);
  color: #fff; font-weight: 600;
  box-shadow: 0 4px 16px oklch(0.55 0.22 280 / 0.35);
}
.d3-final .tbtn-primary:hover { background: oklch(0.5 0.22 280); box-shadow: 0 8px 24px oklch(0.55 0.22 280 / 0.45); }
.d3-final .tbtn-ghost { background: transparent; border-color: var(--border); }
.d3-final .tbtn-lg { padding: 14px 22px; font-size: 15px; }

.d3-final .tcard {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: 16px;
  transition: all 0.2s ease;
}
.d3-final .tcard-hover:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.06);
  border-color: var(--border-bright);
}

.d3-final .codeblk {
  font-family: 'Geist Mono', monospace; font-size: 12px;
  background: var(--surface-2); border: 1px solid var(--border);
  border-radius: 10px; padding: 14px 16px;
  color: var(--text-2); line-height: 1.7;
}

.d3-final .row { display: flex; }
.d3-final .col { display: flex; flex-direction: column; }
.d3-final .center { align-items: center; justify-content: center; }
.d3-final .between { justify-content: space-between; }
.d3-final .text-c { text-align: center; }

/* fade-in on scroll */
.d3-final .fade-in {
  opacity: 0; transform: translateY(20px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.d3-final .fade-in.visible { opacity: 1; transform: translateY(0); }

/* floating animation for cards */
@keyframes float1 {
  0%,100% { transform: translateY(0px) rotate(-2deg); }
  50%     { transform: translateY(-10px) rotate(-2deg); }
}
@keyframes float2 {
  0%,100% { transform: translateY(0px) rotate(2deg); }
  50%     { transform: translateY(-12px) rotate(2deg); }
}
@keyframes float3 {
  0%,100% { transform: translateY(0px) rotate(-1deg); }
  50%     { transform: translateY(-8px) rotate(-1deg); }
}
.d3-final .float-1 { animation: float1 6s ease-in-out infinite; }
.d3-final .float-2 { animation: float2 7s ease-in-out infinite; }
.d3-final .float-3 { animation: float3 5s ease-in-out infinite; }

/* number ticker for hero KPIs */
@keyframes shine {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}
.d3-final .shine {
  background: linear-gradient(90deg, var(--accent) 0%, var(--accent-2) 50%, var(--accent) 100%);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: shine 4s linear infinite;
}

/* marquee for logos */
.d3-final .marquee {
  display: flex; gap: 60px; animation: marquee 30s linear infinite;
}
@keyframes marquee {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* nav blur on scroll */
.d3-final .nav-sticky {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(16px);
  background: rgba(250, 250, 247, 0.7);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}
.d3-final .nav-sticky.scrolled { border-bottom-color: var(--border); }

/* details/summary */
.d3-final details summary { list-style: none; cursor: pointer; }
.d3-final details summary::-webkit-details-marker { display: none; }
.d3-final details[open] .faq-plus { transform: rotate(45deg); }
.d3-final .faq-plus { transition: transform 0.2s; }

/* hero scroll indicator */
@keyframes scrollDown {
  0%   { transform: translateY(0); opacity: 0.6; }
  50%  { transform: translateY(8px); opacity: 1; }
  100% { transform: translateY(0); opacity: 0.6; }
}
.d3-final .scroll-ind { animation: scrollDown 2s ease-in-out infinite; }

body { background: #fafaf7; margin: 0; }
