/* =================================================
   OWLHUB — styles.css
   Main stylesheet (2025)
   ================================================= */

* { box-sizing: border-box }
html, body { height: 100% }
body {
  margin: 0;
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  overflow-x: hidden;
}

/* =================================================
   THEME SYSTEM
   ================================================= */

:root {
  --bg: #ffffff;
  --text: #0a0a0a;
  --text-2: #4b5563;
  --surface: #f9fafb;
  --surface-2: #f3f4f6;
  --border: rgba(0,0,0,0.08);
  --muted: #6b7280;
  --code: #1f2937;
  --accent: #2563eb;
  --accent-soft: rgba(37, 99, 235, 0.15);

  --a1: #2563eb;
  --a2: #7c3aed;
  --a3: #2563eb;
  --a4: #7c3aed;

  --shadow-color: rgba(0,0,0,0.08);
  --shadow-sm: 0 1px 3px var(--shadow-color);
  --shadow-md: 0 4px 12px var(--shadow-color);
  --shadow-lg: 0 12px 40px var(--shadow-color);

  --radius-lg: 20px;
  --radius-xl: 24px;

  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --container: 1200px;
  --gutter: 24px;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

html[data-theme="dark"] {
  --bg: #0b0f14;
  --text: #e5e7eb;
  --text-2: #d1d5db;
  --surface: #111827;
  --surface-2: #1f2937;
  --border: rgba(255,255,255,0.08);
  --muted: #9ca3af;
  --code: #e5e7eb;
  --accent: #60a5fa;
  --accent-soft: rgba(96, 165, 250, 0.18);
  --shadow-color: rgba(0,0,0,0.25);
}

/* =================================================
   BACKGROUND FX
   ================================================= */

#bg-fx {
  position: fixed;
  inset: 0;
  z-index: -3;
  pointer-events: none;
}

#particles-canvas {
  width: 100%;
  height: 100%;
  display: block;
}

body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 100vh;
  z-index: -4;
  pointer-events: none;
  background:
    radial-gradient(40vw 40vw at 5% 5%, color-mix(in oklab, var(--a3), transparent 82%) 0%, transparent 45%),
    radial-gradient(35vw 35vw at 95% 10%, color-mix(in oklab, var(--a4), transparent 85%) 0%, transparent 45%);
  filter: blur(60px) saturate(90%);
  opacity: 0.5;
}

body::after {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 100vh;
  z-index: -4;
  pointer-events: none;
  background:
    radial-gradient(30vw 30vw at 10% 70%, color-mix(in oklab, var(--a2), transparent 88%) 0%, transparent 40%),
    radial-gradient(35vw 35vw at 90% 60%, color-mix(in oklab, var(--a3), transparent 90%) 0%, transparent 40%);
  filter: blur(70px) saturate(80%);
  opacity: 0.35;
}

/* =================================================
   LAYOUT HELPERS
   ================================================= */

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.section {
  padding: 72px 0;
}

.grid {
  display: grid;
  gap: 22px;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  opacity: 0.92;
}

/* =================================================
   FOCUS VISIBLE - Accessibility
   ================================================= */

/* Global focus outline for keyboard navigation */
:focus-visible {
  outline: 2px solid var(--a3);
  outline-offset: 2px;
  border-radius: 4px;
}

/* Remove default outline for mouse users */
:focus:not(:focus-visible) {
  outline: none;
}

/* Links focus */
a:focus-visible {
  outline: 2px solid var(--a3);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Buttons focus */
button:focus-visible,
.btn:focus-visible {
  outline: 2px solid var(--a3);
  outline-offset: 2px;
  box-shadow: 0 0 0 4px var(--accent-soft);
}

/* Form inputs focus */
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 2px solid var(--a3);
  outline-offset: 0;
  border-color: var(--a3);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

/* Cards and interactive elements */
.card:focus-visible,
[tabindex="0"]:focus-visible {
  outline: 2px solid var(--a3);
  outline-offset: 3px;
  border-radius: var(--radius-lg);
}

/* Nav links focus */
.nav__links a:focus-visible {
  outline: 2px solid var(--a3);
  outline-offset: 4px;
  border-radius: 8px;
}

/* Theme toggle focus */
.theme-toggle:focus-visible {
  outline: 2px solid var(--a3);
  outline-offset: 3px;
  border-radius: 16px;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 10px;
  padding: 10px 12px;
  border-radius: 999px;
  background: var(--surface-2);
  border: 1px solid var(--border);
}

.skip-link:focus {
  left: 10px;
  z-index: 10;
}

/* =================================================
   HEADER / NAV
   ================================================= */

.header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: color-mix(in oklab, var(--bg), transparent 25%);
  border-bottom: 1px solid color-mix(in oklab, var(--border), transparent 30%);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.brand__mark {
  width: 28px;
  height: 28px;
  color: color-mix(in oklab, var(--text), var(--a4) 18%);
}

.brand__name strong {
  font-weight: 800;
}

.nav {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav__links {
  display: flex;
  gap: 10px;
}

.nav__links a {
  padding: 10px 14px;
  border-radius: 12px;
  color: var(--text-2);
  font-weight: 600;
  transition: color 0.2s, background 0.2s;
}

.nav__links a:hover {
  color: var(--text);
  background: var(--surface);
}

.nav__links a.active,
.nav__links a[aria-current="page"] {
  color: var(--text);
  background: var(--surface-2);
}

/* Active page indicator - underline */
.nav__links a {
  position: relative;
}

.nav__links a[aria-current="page"]::after {
  content: "";
  position: absolute;
  bottom: 4px;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 3px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--a3), var(--a4));
  animation: navIndicatorIn 0.3s var(--ease-out);
}

@keyframes navIndicatorIn {
  from { width: 0; opacity: 0; }
  to { width: 20px; opacity: 1; }
}

/* Theme toggle button redesign */
.theme-toggle {
  position: relative;
  width: 56px;
  height: 32px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: var(--surface);
  cursor: pointer;
  overflow: hidden;
  transition: all 0.3s ease;
}

.theme-toggle:hover {
  border-color: var(--a3);
  box-shadow: 0 0 20px color-mix(in oklab, var(--a3), transparent 70%);
}

.theme-toggle__track {
  position: absolute;
  inset: 2px;
  border-radius: 14px;
  background: var(--surface-2);
  transition: background 0.3s ease;
}

.theme-toggle__thumb {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--a3), var(--a4));
  display: grid;
  place-items: center;
  transition: transform 0.3s var(--ease-out), background 0.3s ease;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.theme-toggle__thumb svg {
  width: 14px;
  height: 14px;
  color: white;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.theme-toggle__thumb .sun-icon {
  position: absolute;
  opacity: 0;
  transform: rotate(-90deg) scale(0.5);
}

.theme-toggle__thumb .moon-icon {
  position: absolute;
  opacity: 1;
  transform: rotate(0deg) scale(1);
}

html[data-theme="light"] .theme-toggle__thumb {
  transform: translateX(24px);
  background: linear-gradient(135deg, #f59e0b, #f97316);
}

html[data-theme="light"] .theme-toggle__thumb .sun-icon {
  opacity: 1;
  transform: rotate(0deg) scale(1);
}

html[data-theme="light"] .theme-toggle__thumb .moon-icon {
  opacity: 0;
  transform: rotate(90deg) scale(0.5);
}

/* Loader screen styles */
/* =================================================
   SITE LOADER - Owl Animation
   ================================================= */

.site-loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}

.site-loader.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

/* Loader container with owl and ring */
.loader-container {
  position: relative;
  width: 280px;
  height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Owl image */
.loader-owl {
  width: 140px;
  height: auto;
  position: relative;
  z-index: 2;
  animation: owlFloat 2.5s ease-in-out infinite;
  filter: drop-shadow(0 5px 20px rgba(0, 0, 0, 0.2));
}

/* Invert owl in dark mode */
html[data-theme="dark"] .loader-owl {
  filter: invert(1) drop-shadow(0 5px 25px rgba(255, 255, 255, 0.15));
}

@keyframes owlFloat {
  0%, 100% {
    transform: translateY(0) scale(1);
  }
  50% {
    transform: translateY(-10px) scale(1.02);
  }
}

/* Circular progress ring */
.loader-ring {
  position: absolute;
  width: 260px;
  height: 260px;
  border-radius: 50%;
}

.loader-ring svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.loader-ring__bg {
  fill: none;
  stroke: var(--surface-2);
  stroke-width: 3;
}

.loader-ring__progress {
  fill: none;
  stroke: url(#loaderGradient);
  stroke-width: 4;
  stroke-linecap: round;
  stroke-dasharray: 754;
  stroke-dashoffset: 754;
  animation: ringProgress 0.9s ease-out forwards;
}

@keyframes ringProgress {
  0% { stroke-dashoffset: 754; }
  100% { stroke-dashoffset: 0; }
}

/* Glowing dots orbiting */
.loader-orbit {
  position: absolute;
  width: 100%;
  height: 100%;
  animation: orbitSpin 3s linear infinite;
}

.loader-orbit::before,
.loader-orbit::after {
  content: '';
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--a3);
  box-shadow: 0 0 15px var(--a3), 0 0 30px var(--a3);
}

.loader-orbit::before {
  top: 0;
  left: 50%;
  transform: translateX(-50%);
}

.loader-orbit::after {
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  background: var(--a4);
  box-shadow: 0 0 15px var(--a4), 0 0 30px var(--a4);
}

@keyframes orbitSpin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* Floating data particles */
.loader-particles {
  position: absolute;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.loader-particle {
  position: absolute;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  color: var(--text-2);
  opacity: 0;
  animation: particleFloat 3s ease-in-out infinite;
}

.loader-particle:nth-child(1) { top: 10%; left: 5%; animation-delay: 0s; }
.loader-particle:nth-child(2) { top: 20%; right: 0%; animation-delay: 0.5s; }
.loader-particle:nth-child(3) { bottom: 25%; left: 0%; animation-delay: 1s; }
.loader-particle:nth-child(4) { bottom: 15%; right: 5%; animation-delay: 1.5s; }
.loader-particle:nth-child(5) { top: 50%; left: -5%; animation-delay: 0.75s; }
.loader-particle:nth-child(6) { top: 45%; right: -5%; animation-delay: 1.25s; }

@keyframes particleFloat {
  0%, 100% {
    opacity: 0;
    transform: translateY(10px) scale(0.8);
  }
  20%, 80% {
    opacity: 0.6;
    transform: translateY(0) scale(1);
  }
  50% {
    opacity: 1;
    transform: translateY(-5px) scale(1.1);
  }
}

/* Progress bar under loader */
.loader-progress {
  width: 200px;
  height: 4px;
  border-radius: 4px;
  background: var(--surface-2);
  overflow: hidden;
  position: relative;
}

.loader-progress__bar {
  height: 100%;
  width: 0%;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--a3), var(--a4));
  animation: loaderProgress 0.9s ease-out forwards;
}

@keyframes loaderProgress {
  0% { width: 0%; }
  30% { width: 40%; }
  60% { width: 75%; }
  100% { width: 100%; }
  100% { width: 100%; }
}

/* Loading text */
.loader-text {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-2);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 8px;
}

.loader-text__dots {
  display: flex;
  gap: 4px;
}

.loader-text__dots span {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--a3);
  animation: dotBounce 1.4s ease-in-out infinite;
}

.loader-text__dots span:nth-child(1) { animation-delay: 0s; }
.loader-text__dots span:nth-child(2) { animation-delay: 0.2s; }
.loader-text__dots span:nth-child(3) { animation-delay: 0.4s; }

@keyframes dotBounce {
  0%, 80%, 100% {
    transform: scale(1);
    opacity: 0.5;
  }
  40% {
    transform: scale(1.5);
    opacity: 1;
  }
}

/* Pulse glow behind owl */
.loader-glow {
  position: absolute;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--a3) 0%, transparent 70%);
  opacity: 0.3;
  animation: glowPulse 2s ease-in-out infinite;
  z-index: 1;
}

@keyframes glowPulse {
  0%, 100% {
    transform: scale(1);
    opacity: 0.2;
  }
  50% {
    transform: scale(1.3);
    opacity: 0.4;
  }
}

.burger {
  display: none;
  width: 40px;
  height: 40px;
  place-items: center;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface);
  cursor: pointer;
}

.burger svg {
  width: 20px;
  height: 20px;
}

.nav__drawer {
  display: none;
}

@media (max-width: 920px) {
  .nav__links {
    display: none;
  }

  .burger {
    display: grid;
  }

  .nav__drawer {
    position: fixed;
    top: 66px;
    left: 16px;
    right: 16px;
    border-radius: 18px;
    background: color-mix(in oklab, var(--bg), transparent 8%);
    border: 1px solid var(--border);
    box-shadow: 0 20px 60px var(--shadow-color);
    padding: 12px;
    display: none;
  }

  .nav__drawer.open {
    display: block;
  }

  .nav__drawer a {
    display: flex;
    padding: 12px;
    border-radius: 14px;
    border: 1px solid transparent;
    color: var(--text-2);
  }

  .nav__drawer a:hover {
    border-color: var(--border);
    background: var(--surface);
    color: var(--text);
  }
}

/* =================================================
   BUTTONS
   ================================================= */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 14px;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.12);
}

.btn--sm {
  padding: 8px 14px;
  font-size: 13px;
}

.btn--ghost {
  background: transparent;
  border-color: transparent;
}

.btn--ghost:hover {
  background: var(--surface);
  border-color: var(--border);
}

/* Primary Button — Light Mode */
html[data-theme="light"] .btn--primary,
html[data-theme="light"] .btn-primary {
  border: none;
  background:
    radial-gradient(120% 120% at 20% 20%, color-mix(in oklab, var(--a4), transparent 45%) 0%, transparent 55%),
    linear-gradient(135deg, color-mix(in oklab, var(--a3), transparent 30%), color-mix(in oklab, var(--a4), transparent 25%));
  color: #ffffff;
  box-shadow: 0 10px 30px rgba(37,99,235,0.30);
}

html[data-theme="light"] .btn--primary:hover,
html[data-theme="light"] .btn-primary:hover {
  filter: brightness(1.05);
  box-shadow: 0 14px 40px rgba(124,58,237,0.40);
  transform: translateY(-2px);
}

/* Primary Button — Dark Mode */
html[data-theme="dark"] .btn--primary,
html[data-theme="dark"] .btn-primary {
  border: none;
  background:
    radial-gradient(120% 120% at 25% 25%, rgba(236,72,153,0.55) 0%, transparent 55%),
    radial-gradient(100% 100% at 75% 75%, rgba(251,146,60,0.50) 0%, transparent 50%),
    linear-gradient(135deg, #f97316 0%, #ec4899 50%, #a855f7 100%);
  color: #ffffff;
  box-shadow: 0 10px 30px rgba(249,115,22,0.35);
}

html[data-theme="dark"] .btn--primary:hover,
html[data-theme="dark"] .btn-primary:hover {
  filter: brightness(1.08);
  box-shadow: 0 14px 40px rgba(236,72,153,0.45);
  transform: translateY(-2px);
}

/* =================================================
   CHIPS / TAGS
   ================================================= */

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  border: 1px solid var(--border);
  background: color-mix(in oklab, var(--surface), transparent 10%);
  cursor: default;
}

button.chip {
  appearance: none;
  cursor: pointer;
}

button.chip:hover {
  background: color-mix(in oklab, var(--surface-2), transparent 10%);
}

button.chip:focus-visible {
  outline: 3px solid color-mix(in oklab, var(--a4), transparent 55%);
  outline-offset: 2px;
}

.chip strong {
  color: var(--text);
}

/* =================================================
   TOOLTIPS (data-tooltip)
   ================================================= */

.chip[data-tooltip],
.tag[data-tooltip],
span[data-tooltip],
[data-tooltip] {
  position: relative !important;
  cursor: help;
}

[data-tooltip]::before {
  content: attr(data-tooltip);
  position: absolute !important;
  bottom: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%) translateY(4px);

  background: var(--surface-2);
  color: var(--text);
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 0.813rem;
  font-weight: 500;
  line-height: 1.4;
  text-align: center;
  max-width: 260px;
  white-space: normal;

  border: 1px solid var(--border);
  box-shadow: 0 6px 20px rgba(0,0,0,0.15);

  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 9999 !important;
}

[data-tooltip]::after {
  content: "";
  position: absolute !important;
  bottom: calc(100% + 4px);
  left: 50%;
  transform: translateX(-50%);

  border: 6px solid transparent;
  border-top-color: var(--surface-2);

  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.2s ease;
  z-index: 9999 !important;
}

[data-tooltip]:hover::before {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

[data-tooltip]:hover::after {
  opacity: 1;
  visibility: visible;
}

html[data-theme="dark"] [data-tooltip]::before {
  background: var(--surface-2);
  border-color: var(--border);
  box-shadow: 0 6px 24px rgba(0,0,0,0.5);
}

html[data-theme="dark"] [data-tooltip]::after {
  border-top-color: var(--surface-2);
}

html[data-theme="light"] [data-tooltip]::before {
  background: #ffffff;
  border-color: rgba(0,0,0,0.1);
  box-shadow: 0 6px 20px rgba(0,0,0,0.12);
}

html[data-theme="light"] [data-tooltip]::after {
  border-top-color: #ffffff;
}

/* =================================================
   HERO
   ================================================= */

.hero {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  position: relative;
  overflow: hidden;
}

.hero__grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
  min-height: 70vh;
  padding: 60px 0;
}

@media (max-width: 960px) {
  .hero__grid {
    grid-template-columns: 1fr;
    min-height: auto;
    padding: 40px 0;
  }
}

.kicker {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.h1 {
  font-size: clamp(34px, 4vw, 54px);
  line-height: 1.05;
  letter-spacing: -0.04em;
  margin: 16px 0 14px;
}

.lead {
  font-size: clamp(15px, 1.6vw, 18px);
  color: var(--text-2);
  max-width: 55ch;
}

.cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 18px;
  background: none !important;
  border: none !important;
  box-shadow: none !important;
}

.cta:hover {
  background: none !important;
  box-shadow: none !important;
  transform: none !important;
}

@media (min-width: 1200px) {
  .hero .container {
    max-width: 1360px;
  }
}

/* =================================================
   HERO PANEL (Preview)
   ================================================= */

.hero__panel {
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
  background: color-mix(in oklab, var(--surface), transparent 6%);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  position: relative;
}

.hero__panel::before {
  content: "";
  position: absolute;
  inset: -40%;
  background:
    radial-gradient(40% 40% at 30% 40%, color-mix(in oklab, var(--a4), transparent 55%) 0%, transparent 62%),
    radial-gradient(40% 40% at 70% 55%, color-mix(in oklab, var(--a1), transparent 68%) 0%, transparent 62%);
  filter: blur(28px);
  opacity: 0.9;
}

.hero__panel-inner {
  position: relative;
  padding: 16px;
}

.preview {
  border-radius: 18px;
  border: 1px solid color-mix(in oklab, var(--border), transparent 12%);
  background: color-mix(in oklab, var(--bg), transparent 18%);
  overflow: hidden;
}

.preview__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px;
  border-bottom: 1px solid var(--border);
  background: color-mix(in oklab, var(--surface), transparent 5%);
}

.dots {
  display: flex;
  gap: 8px;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: color-mix(in oklab, var(--muted), transparent 30%);
}

.preview__body {
  padding: 14px;
}

.mini-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.9fr;
  gap: 12px;
}

@media (max-width: 480px) {
  .mini-grid {
    grid-template-columns: 1fr;
  }
}

.mini-card {
  border-radius: 16px;
  border: 1px solid var(--border);
  background: color-mix(in oklab, var(--surface), transparent 10%);
  padding: 12px;
}

.mini-title {
  font-weight: 700;
  font-size: 13px;
  color: var(--text-2);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.mini-title span {
  font-family: var(--font-mono);
  font-weight: 600;
  color: var(--muted);
}

.sparkline {
  width: 100%;
  height: 44px;
}

.code {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--code);
  background: color-mix(in oklab, var(--bg), transparent 12%);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 12px;
  overflow: hidden;
}

.code .fade {
  color: var(--muted);
}

/* =================================================
   SECTION TITLES
   ================================================= */

.section__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 20px;
  margin-bottom: 22px;
}

.h2 {
  font-size: clamp(22px, 2.6vw, 34px);
  margin: 0;
  letter-spacing: -0.03em;
}

.p {
  color: var(--text-2);
  margin: 8px 0 0;
  max-width: 70ch;
}

.section__head .meta {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

/* =================================================
   CARDS / FEATURE GRID
   ================================================= */

.cards {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 18px;
}

.card {
  grid-column: span 4;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: color-mix(in oklab, var(--surface), transparent 10%);
  padding: 18px;
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: "";
  position: absolute;
  inset: -60%;
  background: radial-gradient(40% 40% at 40% 50%, color-mix(in oklab, var(--a3), transparent 82%) 0%, transparent 62%);
  filter: blur(22px);
  opacity: 0.8;
}

.card > * {
  position: relative;
}

.card h3 {
  margin: 0 0 10px;
  letter-spacing: -0.02em;
}

.card p {
  margin: 0;
  color: var(--text-2);
}

.card .icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  border: 1px solid var(--border);
  display: grid;
  place-items: center;
  background: color-mix(in oklab, var(--surface-2), transparent 10%);
  margin-bottom: 12px;
}

@media (max-width: 960px) {
  .card {
    grid-column: span 6;
  }
}

@media (max-width: 620px) {
  .card {
    grid-column: span 12;
  }
}

/* =================================================
   SCROLLYTELLING LANE
   ================================================= */

.lane {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 24px;
  align-items: start;
}

@media (max-width: 980px) {
  .lane {
    grid-template-columns: 1fr;
  }
}

.sticky {
  position: sticky;
  top: 92px;
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
  background: color-mix(in oklab, var(--surface), transparent 10%);
  padding: 18px;
  box-shadow: var(--shadow-sm);
}

.step {
  padding: 12px;
  border-radius: 16px;
  border: 1px solid transparent;
  transition: background 0.25s var(--ease-out), border-color 0.25s var(--ease-out);
}

.step.active {
  background: color-mix(in oklab, var(--surface-2), transparent 6%);
  border-color: var(--border);
}

.step .k {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
}

.step .t {
  font-weight: 800;
  letter-spacing: -0.02em;
}

.step .d {
  margin-top: 6px;
  color: var(--text-2);
  font-size: 14px;
}

.story {
  display: grid;
  gap: 18px;
}

.panel {
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
  background: color-mix(in oklab, var(--surface), transparent 10%);
  padding: 18px;
  box-shadow: var(--shadow-sm);
}

.panel h3 {
  margin: 0 0 8px;
}

.panel p {
  margin: 0;
  color: var(--text-2);
}

.badge-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 12px;
}

/* =================================================
   PRICING
   ================================================= */

.prices {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

@media (max-width: 960px) {
  .prices {
    grid-template-columns: 1fr;
  }
}

.price {
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
  background: color-mix(in oklab, var(--surface), transparent 10%);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  transition: none !important;
}

.price:hover {
  box-shadow: none !important;
  border-color: var(--border) !important;
  transform: none !important;
}

.price::before {
  display: none !important;
}

.price.featured {
  border-color: var(--a4);
  box-shadow: 0 0 0 1px var(--a4), var(--shadow-md);
}

.price.featured:hover {
  box-shadow: 0 0 0 1px var(--a4), var(--shadow-md) !important;
  transform: none !important;
}

.price h3 {
  margin: 0 0 8px;
}

.price .amount {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.price ul {
  list-style: none;
  padding: 0;
  margin: 16px 0;
}

.price li {
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  color: var(--text-2);
}

.price li:last-child {
  border-bottom: none;
}

/* =================================================
   FORMS
   ================================================= */

.form {
  max-width: 560px;
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
  background: color-mix(in oklab, var(--surface), transparent 10%);
  padding: 18px;
  box-shadow: var(--shadow-sm);
}

.field {
  display: grid;
  gap: 8px;
  margin-bottom: 14px;
}

label {
  font-weight: 700;
  font-size: 13px;
  color: var(--text-2);
}

input,
textarea {
  font-family: var(--font-sans);
  border-radius: 14px;
  border: 1px solid var(--border);
  background: color-mix(in oklab, var(--bg), transparent 6%);
  color: var(--text);
  padding: 12px;
  outline: none;
}

textarea {
  min-height: 140px;
  resize: vertical;
}

input:focus,
textarea:focus {
  border-color: color-mix(in oklab, var(--a4), var(--border) 35%);
  box-shadow: 0 0 0 4px color-mix(in oklab, var(--a4), transparent 84%);
}

/* =================================================
   FOOTER
   ================================================= */

.footer {
  padding: 48px 0;
  border-top: 1px solid var(--border);
  background: color-mix(in oklab, var(--surface), transparent 10%);
}

.footer__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}

@media (max-width: 768px) {
  .footer__grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 480px) {
  .footer__grid {
    grid-template-columns: 1fr;
  }
}

.footer h4 {
  margin: 0 0 12px;
  font-size: 14px;
  color: var(--text);
}

.footer a {
  display: block;
  padding: 6px 0;
  color: var(--text-2);
  font-size: 14px;
}

.footer a:hover {
  color: var(--text);
}

/* =================================================
   MICRO ANIMATIONS
   ================================================= */

.reveal {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
}

.reveal.in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

/* =================================================
   THEME TOGGLE ICONS
   ================================================= */

.theme-icon svg {
  display: none;
}

html[data-theme="dark"] .theme-icon svg:last-child {
  display: block;
}

html[data-theme="light"] .theme-icon svg:first-child {
  display: block;
}

/* =================================================
   LIGHT MODE OVERLAYS
   ================================================= */

html[data-theme="light"] body {
  background: #ffffff;
  color: #0a0a0a;
}

html[data-theme="light"] canvas {
  opacity: 0.15;
  filter: grayscale(1);
}

html[data-theme="light"] .overlay-a::before {
  background: radial-gradient(
    ellipse at left,
    rgba(255,255,255,0.97) 0%,
    rgba(255,255,255,0.92) 45%,
    rgba(255,255,255,0.82) 70%,
    rgba(255,255,255,0.65) 100%
  );
}

/* =================================================
   DARK MODE SAFETY
   ================================================= */

html[data-theme="dark"] .cta-group,
html[data-theme="dark"] .hero-actions,
html[data-theme="dark"] .btn-group,
html[data-theme="dark"] .actions {
  background: none !important;
}

/* =================================================
   SECTION RESPONSIVE
   ================================================= */

@media (max-width: 820px) {
  .section {
    padding: 56px 0;
  }
}
/* =================================================
   LOGO — AUTO THEME SWITCH
   ================================================= */

.brand__mark,
.logo,
.logo svg,
.brand svg {
  transition: filter 0.3s ease;
}

/* Dark mode : logo en blanc */
html[data-theme="dark"] .brand__mark,
html[data-theme="dark"] .logo,
html[data-theme="dark"] .logo svg,
html[data-theme="dark"] .brand svg {
  filter: brightness(0) invert(1);
}

/* Light mode : logo normal (noir/couleur) */
html[data-theme="light"] .brand__mark,
html[data-theme="light"] .logo,
html[data-theme="light"] .logo svg,
html[data-theme="light"] .brand svg {
  filter: none;
}

/* =================================================
   INTERACTIVE KPI DASHBOARD
   ================================================= */

/* Month Slider Container */
.month-slider-container {
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.month-slider-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.month-label {
  font-weight: 700;
  font-size: 14px;
  color: var(--text);
  transition: opacity 0.2s ease;
}

.month-nav {
  display: flex;
  gap: 6px;
}

.month-nav-btn {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-2);
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: all 0.2s ease;
}

.month-nav-btn:hover {
  background: var(--surface-2);
  color: var(--text);
}

/* Month Slider */
.month-slider-track {
  position: relative;
  width: 100%;
  height: 6px;
  background: var(--surface-2);
  border-radius: 3px;
}

.month-slider-fill {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--a3), var(--a4));
  border-radius: 3px;
  width: 0%;
  transition: width 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
}

.month-slider {
  position: relative;
  width: 100%;
  height: 6px;
  -webkit-appearance: none;
  appearance: none;
  background: transparent;
  border-radius: 3px;
  outline: none;
  cursor: pointer;
  margin-top: -6px;
}

.month-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--a3), var(--a4));
  cursor: grab;
  box-shadow: 0 2px 10px rgba(99, 102, 241, 0.4), 0 0 0 3px rgba(99, 102, 241, 0.1);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 2px solid rgba(255,255,255,0.2);
}

.month-slider::-webkit-slider-thumb:hover {
  transform: scale(1.2);
  box-shadow: 0 2px 16px rgba(99, 102, 241, 0.5), 0 0 0 5px rgba(99, 102, 241, 0.15);
}

.month-slider:active::-webkit-slider-thumb {
  cursor: grabbing;
  transform: scale(1.15);
  box-shadow: 0 0 20px rgba(99, 102, 241, 0.6), 0 0 0 6px rgba(99, 102, 241, 0.2);
}

.month-slider::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--a3), var(--a4));
  cursor: grab;
  border: 2px solid rgba(255,255,255,0.2);
  box-shadow: 0 2px 10px rgba(99, 102, 241, 0.4), 0 0 0 3px rgba(99, 102, 241, 0.1);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.month-slider::-moz-range-thumb:hover {
  transform: scale(1.2);
  box-shadow: 0 2px 16px rgba(99, 102, 241, 0.5), 0 0 0 5px rgba(99, 102, 241, 0.15);
}

.month-slider:active::-moz-range-thumb {
  cursor: grabbing;
  box-shadow: 0 0 20px rgba(99, 102, 241, 0.6), 0 0 0 6px rgba(99, 102, 241, 0.2);
}

.month-ticks {
  display: flex;
  justify-content: space-between;
  margin-top: 6px;
  font-size: 9px;
  color: var(--muted);
  padding: 0 2px;
}

.slider-hint {
  text-align: center;
  font-size: 10px;
  color: var(--muted);
  margin-top: 8px;
  opacity: 0.7;
  font-style: italic;
  animation: hint-pulse 2s ease-in-out infinite;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

@keyframes hint-pulse {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 0.9; }
}

/* KPI Grid */
.kpi-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.kpi-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.kpi-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.kpi-value-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin-top: 6px;
}

.kpi-value {
  font-size: 22px;
  font-weight: 900;
  letter-spacing: -0.03em;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.kpi-variation {
  padding: 4px 8px;
  font-size: 11px;
  transition: all 0.3s ease;
}

.kpi-variation.positive {
  background: color-mix(in oklab, #10b981, transparent 85%);
  color: #10b981;
  border-color: color-mix(in oklab, #10b981, transparent 70%);
}

.kpi-variation.negative {
  background: color-mix(in oklab, #ef4444, transparent 85%);
  color: #ef4444;
  border-color: color-mix(in oklab, #ef4444, transparent 70%);
}

.kpi-variation.stable {
  background: color-mix(in oklab, var(--muted), transparent 85%);
  color: var(--text-2);
}

/* YTD Summary */
.ytd-summary {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 12px;
  padding: 12px;
  background: var(--surface);
  border-radius: 12px;
  border: 1px solid var(--border);
}

.ytd-item {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
}

.ytd-label {
  font-size: 11px;
  color: var(--muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.ytd-value {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
}

.ytd-separator {
  width: 1px;
  height: 24px;
  background: var(--border);
}

.ytd-progress {
  flex: 1;
  height: 6px;
  background: var(--surface-2);
  border-radius: 3px;
  overflow: hidden;
  min-width: 60px;
}

.ytd-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--a3), var(--a4));
  border-radius: 3px;
  transition: width 0.5s ease;
}

/* Animation for value changes */
@keyframes pulse-value {
  0% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.7; transform: scale(1.02); }
  100% { opacity: 1; transform: scale(1); }
}

.kpi-value.updating {
  animation: pulse-value 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.kpi-variation {
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.sparkline path {
  transition: d 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.ytd-progress-bar {
  transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Responsive */
@media (max-width: 480px) {
  .kpi-grid {
    grid-template-columns: 1fr;
  }

  .ytd-summary {
    flex-direction: column;
    gap: 8px;
  }

  .ytd-separator {
    width: 100%;
    height: 1px;
  }

  .ytd-item {
    width: 100%;
    justify-content: space-between;
  }
}

/* =================================================
   MICRO-ANIMATIONS & ICON EFFECTS
   ================================================= */

/* Icon container animations */
.card .icon,
.panel .icon,
.price .icon {
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.card:hover .icon,
.panel:hover .icon {
  transform: scale(1.1) rotate(5deg);
  background: color-mix(in oklab, var(--a3), transparent 70%);
  border-color: color-mix(in oklab, var(--a4), transparent 50%);
}

.card .icon svg,
.panel .icon svg {
  transition: all 0.3s ease;
}

.card:hover .icon svg,
.panel:hover .icon svg {
  stroke: var(--a4);
  transform: scale(1.1);
}

/* Floating animation for icons on scroll */
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 0 0 color-mix(in oklab, var(--a4), transparent 70%); }
  50% { box-shadow: 0 0 20px 4px color-mix(in oklab, var(--a4), transparent 50%); }
}

@keyframes spin-slow {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  25% { transform: translateY(-4px); }
  75% { transform: translateY(2px); }
}

.icon-float {
  animation: float 3s ease-in-out infinite;
}

.icon-pulse {
  animation: pulse-glow 2s ease-in-out infinite;
}

.icon-bounce {
  animation: bounce 2s ease-in-out infinite;
}

/* Chip hover effects */
.chip {
  transition: all 0.3s ease;
}

.chip:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px color-mix(in oklab, var(--a4), transparent 80%);
  border-color: color-mix(in oklab, var(--a4), transparent 50%);
}

/* Button enhanced hover */
.btn {
  position: relative;
  overflow: hidden;
}

.btn::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: color-mix(in oklab, white, transparent 90%);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.6s ease, height 0.6s ease;
}

.btn:hover::after {
  width: 300px;
  height: 300px;
}

.btn span,
.btn svg {
  position: relative;
  z-index: 1;
}

/* Card tilt effect on hover */
.card {
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  transform-style: preserve-3d;
}

.card:hover {
  transform: translateY(-8px) rotateX(2deg) rotateY(-2deg);
  box-shadow:
    0 20px 40px color-mix(in oklab, var(--shadow-color), transparent 30%),
    0 0 0 1px color-mix(in oklab, var(--a4), transparent 80%);
}

/* Panel hover glow */
.panel {
  transition: all 0.4s ease;
}

.panel:hover {
  box-shadow:
    var(--shadow-md),
    0 0 30px color-mix(in oklab, var(--a4), transparent 85%);
}

/* Text reveal animation */
@keyframes text-reveal {
  from {
    opacity: 0;
    transform: translateY(20px);
    filter: blur(4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

.text-reveal {
  animation: text-reveal 0.8s ease forwards;
}

/* Stagger children animation */
.stagger-reveal > * {
  opacity: 0;
  transform: translateY(20px);
}

.stagger-reveal.in > *:nth-child(1) { animation: text-reveal 0.5s ease 0.1s forwards; }
.stagger-reveal.in > *:nth-child(2) { animation: text-reveal 0.5s ease 0.2s forwards; }
.stagger-reveal.in > *:nth-child(3) { animation: text-reveal 0.5s ease 0.3s forwards; }
.stagger-reveal.in > *:nth-child(4) { animation: text-reveal 0.5s ease 0.4s forwards; }
.stagger-reveal.in > *:nth-child(5) { animation: text-reveal 0.5s ease 0.5s forwards; }
.stagger-reveal.in > *:nth-child(6) { animation: text-reveal 0.5s ease 0.6s forwards; }

/* Gradient text animation */
@keyframes gradient-shift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.gradient-text {
  background: linear-gradient(135deg, var(--a3), var(--a4), var(--a3));
  background-size: 200% 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradient-shift 4s ease infinite;
}

/* Underline animation on hover */
.link-underline {
  position: relative;
}

.link-underline::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--a3), var(--a4));
  transition: width 0.3s ease;
}

.link-underline:hover::after {
  width: 100%;
}

/* Number counter animation */
@keyframes count-up {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.count-up {
  animation: count-up 0.5s ease forwards;
}

/* Sparkle effect */
@keyframes sparkle {
  0%, 100% { opacity: 0; transform: scale(0); }
  50% { opacity: 1; transform: scale(1); }
}

.sparkle::before,
.sparkle::after {
  content: '✦';
  position: absolute;
  font-size: 10px;
  color: var(--a4);
  opacity: 0;
}

.sparkle:hover::before {
  top: -5px;
  right: -5px;
  animation: sparkle 0.6s ease forwards;
}

.sparkle:hover::after {
  bottom: -5px;
  left: -5px;
  animation: sparkle 0.6s ease 0.1s forwards;
}

/* =================================================
   PARALLAX EFFECTS
   ================================================= */

.parallax-container {
  perspective: 1000px;
  overflow: hidden;
}

.parallax-slow {
  will-change: transform;
  transition: transform 0.1s linear;
}

.parallax-medium {
  will-change: transform;
  transition: transform 0.1s linear;
}

.parallax-fast {
  will-change: transform;
  transition: transform 0.1s linear;
}

/* Scroll-triggered animations */
.scroll-fade-up {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.scroll-fade-up.in {
  opacity: 1;
  transform: translateY(0);
}

.scroll-fade-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.scroll-fade-left.in {
  opacity: 1;
  transform: translateX(0);
}

.scroll-fade-right {
  opacity: 0;
  transform: translateX(40px);
  transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.scroll-fade-right.in {
  opacity: 1;
  transform: translateX(0);
}

.scroll-scale {
  opacity: 0;
  transform: scale(0.9);
  transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.scroll-scale.in {
  opacity: 1;
  transform: scale(1);
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  .icon-float,
  .icon-pulse,
  .icon-bounce,
  .gradient-text {
    animation: none;
  }

  .card:hover,
  .panel:hover,
  .chip:hover {
    transform: none;
  }
}

/* =================================================
   DASHBOARD MOCKUP
   ================================================= */

.dashboard-mockup {
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
  background: color-mix(in oklab, var(--surface), transparent 5%);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.mockup-header {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 16px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}

.mockup-dots {
  display: flex;
  gap: 6px;
}

.mockup-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.mockup-dots span:nth-child(1) { background: #ef4444; }
.mockup-dots span:nth-child(2) { background: #f59e0b; }
.mockup-dots span:nth-child(3) { background: #10b981; }

.mockup-title {
  flex: 1;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
}

.mockup-actions {
  display: flex;
  gap: 8px;
}

.mockup-body {
  display: grid;
  grid-template-columns: 160px 1fr;
  min-height: 380px;
}

@media (max-width: 768px) {
  .mockup-body {
    grid-template-columns: 1fr;
  }
  .mockup-sidebar {
    display: none;
  }
}

.mockup-sidebar {
  background: var(--surface);
  border-right: 1px solid var(--border);
  padding: 12px 8px;
}

.mockup-nav-item {
  padding: 10px 12px;
  font-size: 12px;
  color: var(--text-2);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-bottom: 4px;
}

.mockup-nav-item:hover {
  background: var(--surface-2);
  color: var(--text);
}

.mockup-nav-item.active {
  background: color-mix(in oklab, var(--a3), transparent 85%);
  color: var(--a3);
  font-weight: 600;
}

.mockup-content {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* KPI Row */
.mockup-kpi-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

@media (max-width: 640px) {
  .mockup-kpi-row {
    grid-template-columns: repeat(2, 1fr);
  }
}

.mockup-kpi {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px;
  transition: all 0.3s ease;
}

.mockup-kpi:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.mockup-kpi-label {
  font-size: 11px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  margin-bottom: 6px;
}

.mockup-kpi-value {
  font-size: 22px;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.03em;
}

.mockup-kpi-trend {
  font-size: 11px;
  margin-top: 4px;
  font-weight: 600;
}

.mockup-kpi-trend.positive { color: #10b981; }
.mockup-kpi-trend.negative { color: #ef4444; }
.mockup-kpi-trend.stable { color: var(--muted); }

/* Charts Row */
.mockup-charts-row {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 12px;
}

@media (max-width: 640px) {
  .mockup-charts-row {
    grid-template-columns: 1fr;
  }
}

.mockup-chart {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px;
}

.mockup-chart-title {
  font-size: 12px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 12px;
}

.mockup-bar-chart {
  width: 100%;
  height: auto;
  display: block;
}

.mockup-bar-chart .bar {
  fill: var(--a3);
  transition: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.mockup-bar-chart .bar:nth-child(even) {
  fill: var(--a4);
}

.mockup-chart-labels {
  display: flex;
  justify-content: space-around;
  font-size: 9px;
  color: var(--muted);
  margin-top: 6px;
}

/* Donut Chart */
.mockup-donut {
  display: flex;
  align-items: center;
  gap: 16px;
}

.mockup-donut svg {
  width: 80px;
  height: 80px;
  transform: rotate(-90deg);
  flex-shrink: 0;
}

.donut-segment {
  fill: none;
  stroke-width: 12;
  stroke-dasharray: 0 220;
  stroke-linecap: round;
  transition: stroke-dasharray 1s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.donut-segment:nth-child(1) { stroke: var(--a3); }
.donut-segment:nth-child(2) { stroke: var(--a4); }
.donut-segment:nth-child(3) { stroke: #10b981; }
.donut-segment:nth-child(4) { stroke: #f59e0b; }

.donut-legend {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 11px;
  color: var(--text-2);
}

.donut-legend div {
  display: flex;
  align-items: center;
  gap: 6px;
}

.donut-legend span {
  width: 8px;
  height: 8px;
  border-radius: 2px;
}

/* Table */
.mockup-table {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}

.mockup-table-header {
  display: grid;
  grid-template-columns: 2fr 1fr 0.7fr;
  padding: 10px 14px;
  background: var(--surface-2);
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.mockup-table-row {
  display: grid;
  grid-template-columns: 2fr 1fr 0.7fr;
  padding: 10px 14px;
  font-size: 12px;
  color: var(--text-2);
  border-top: 1px solid var(--border);
  transition: background 0.2s ease;
}

.mockup-table-row:hover {
  background: color-mix(in oklab, var(--surface-2), transparent 50%);
}

.mockup-table-row .positive { color: #10b981; font-weight: 600; }
.mockup-table-row .negative { color: #ef4444; font-weight: 600; }

/* Animation for mockup appearing */
.dashboard-mockup.in .mockup-kpi-value {
  animation: count-up 0.8s ease forwards;
}

/* Bar animation handled by JavaScript */
.mockup-bar-chart .bar {
  transition: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.dashboard-mockup.in .donut-segment {
  animation: donut-draw 1s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes donut-draw {
  from {
    stroke-dasharray: 0 220;
  }
}
