/* ===== Design tokens — presets ===== */

html[data-preset="primary"] {
  --color-bg: #FFFFFF;
  --color-surface: #FAFAFA;
  --color-primary: #111111;
  --color-accent: #D7263D;
  --color-text: #111111;
  --color-muted: #6B7280;
  --color-line: #E5E7EB;
  --font-heading: 'Inter Tight', sans-serif;
  --font-drama: 'Space Grotesk', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --motion-duration: 0.55s;
  --motion-ease: power2.out;
  --motion-stagger: 0.07;
  --radius-card: 0.75rem;
  --radius-pill: 9999px;
  --section-py: 6rem;
  --content-max-w: 80rem;
}

html[data-preset="alt-a"] {
  --color-bg: #FFFFFF;
  --color-surface: #FAFAFA;
  --color-primary: #111111;
  --color-accent: #D7263D;
  --color-text: #111111;
  --color-muted: #6B7280;
  --color-line: #E5E7EB;
  --font-heading: 'Inter', sans-serif;
  --font-drama: 'Playfair Display', serif;
  --font-mono: 'JetBrains Mono', monospace;
  --motion-duration: 0.55s;
  --motion-ease: power2.out;
  --motion-stagger: 0.07;
  --radius-card: 0.75rem;
  --radius-pill: 9999px;
  --section-py: 6rem;
  --content-max-w: 80rem;
}

html[data-preset="alt-b"] {
  --color-bg: #FFFFFF;
  --color-surface: #FAFAFA;
  --color-primary: #111111;
  --color-accent: #D7263D;
  --color-text: #111111;
  --color-muted: #6B7280;
  --color-line: #E5E7EB;
  --font-heading: 'Plus Jakarta Sans', sans-serif;
  --font-drama: 'Cormorant Garamond', serif;
  --font-mono: 'IBM Plex Mono', monospace;
  --motion-duration: 1.2s;
  --motion-ease: power3.out;
  --motion-stagger: 0.14;
  --radius-card: 0.75rem;
  --radius-pill: 9999px;
  --section-py: 10rem;
  --content-max-w: 56rem;
}

/* ===== Base ===== */

body {
  background-color: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-heading);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ===== Utilities ===== */

.noise-overlay {
  position: fixed;
  inset: 0;
  z-index: 50;
  pointer-events: none;
  opacity: 0.04;
  mix-blend-mode: multiply;
}

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  width: 0%;
  background: var(--color-accent);
  z-index: 100;
}

/* ===== Magnetic button ===== */

.magnetic-btn {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  transition: transform 300ms cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.magnetic-btn:hover {
  transform: scale(1.03) translateY(-1px);
}
.magnetic-btn .slide {
  position: absolute;
  inset: 0;
  transform: translateX(-101%);
  transition: transform 400ms cubic-bezier(0.25, 0.46, 0.45, 0.94);
  z-index: -1;
}
.magnetic-btn:hover .slide {
  transform: translateX(0);
}

/* ===== Navbar ===== */

.navbar.scrolled {
  background-color: color-mix(in srgb, var(--color-surface) 86%, transparent);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 8px 32px -8px rgba(15, 31, 43, 0.18);
}
.nav-link:hover {
  color: var(--color-accent);
}

/* ===== Animations ===== */

.reveal {
  opacity: 0;
  transform: translateY(28px);
}

.ken-burns {
  animation: kenburns 24s ease-out infinite alternate;
}
@keyframes kenburns {
  from { transform: scale(1.0); }
  to   { transform: scale(1.14); }
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 9999px;
  background: #22c55e;
  box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7); }
  70%  { box-shadow: 0 0 0 10px rgba(34, 197, 94, 0); }
  100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}

/* ===== Components ===== */

.stat-num {
  font-variant-numeric: tabular-nums;
}

.logo-tile {
  background: transparent;
  border: none;
  border-radius: 0.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.logo-tile img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.logo-tile.tile-dark {
  background: transparent;
  border: none;
}

.lang-switch a[aria-current="true"] {
  background: var(--color-primary);
  color: var(--color-bg);
}

.img-shade::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(15,31,43,0.55) 0%, rgba(15,31,43,0.15) 60%, transparent 100%);
}

/* ===== Mobile menu ===== */

#mobile-menu {
  transform: translateX(100%);
  transition: transform 0.32s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
#mobile-menu.is-open {
  transform: translateX(0);
}

body.menu-open {
  overflow: hidden;
}

/* ===== Responsive tokens ===== */

@media (max-width: 767px) {
  html[data-preset="primary"],
  html[data-preset="alt-a"],
  html[data-preset="alt-b"] {
    --section-py: 4rem;
  }
}
