/* ============================================================
   TRIFOX AG — NOIR LUXE DESIGN SYSTEM
   Die schönste Webseite der Schweiz.
   ============================================================ */

/* --- CSS Custom Properties (Design Tokens) --- */
:root {
  /* Colors - Dark Luxury */
  --bg-primary: #050505;
  --bg-secondary: #0a0a0a;
  --bg-surface: #111111;
  --bg-elevated: #1a1a1a;
  --bg-card: #0f0f0f;

  --text-primary: #ffffff;
  --text-secondary: rgba(255, 255, 255, 0.55);
  --text-muted: rgba(255, 255, 255, 0.3);
  --text-accent: #FF6B2C;

  --accent: #FF6B2C;
  --accent-light: #FF8F5E;
  --accent-dark: #E55A1B;
  --accent-glow: rgba(255, 107, 44, 0.12);
  --accent-glow-strong: rgba(255, 107, 44, 0.25);

  --blue: #0066FF;
  --blue-glow: rgba(0, 102, 255, 0.12);

  --success: #00C853;
  --error: #FF3D3D;

  --border: rgba(255, 255, 255, 0.06);
  --border-hover: rgba(255, 255, 255, 0.12);
  --border-accent: rgba(255, 107, 44, 0.3);

  /* Typography */
  --font-main: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

  --fs-display: clamp(3.5rem, 9vw, 8rem);
  --fs-h1: clamp(2.8rem, 6vw, 5.5rem);
  --fs-h2: clamp(2rem, 4.5vw, 3.5rem);
  --fs-h3: clamp(1.5rem, 3vw, 2rem);
  --fs-h4: clamp(1.1rem, 2vw, 1.4rem);
  --fs-body: clamp(1rem, 1.2vw, 1.15rem);
  --fs-body-lg: clamp(1.1rem, 1.5vw, 1.35rem);
  --fs-small: 1rem;
  --fs-xs: 1rem;
  --fs-label: 1rem;

  --fw-light: 300;
  --fw-regular: 400;
  --fw-medium: 500;
  --fw-semibold: 600;
  --fw-bold: 700;
  --fw-black: 900;

  --lh-tight: 1.05;
  --lh-snug: 1.2;
  --lh-normal: 1.6;
  --lh-relaxed: 1.8;

  --ls-tight: -0.03em;
  --ls-normal: -0.01em;
  --ls-wide: 0.08em;
  --ls-wider: 0.15em;

  /* Spacing */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 2rem;
  --space-lg: 4rem;
  --space-xl: 6rem;
  --space-2xl: 8rem;
  --space-3xl: 12rem;
  --space-section: clamp(6rem, 12vh, 10rem);

  /* Layout */
  --max-width: 1400px;
  --max-width-narrow: 900px;
  --max-width-wide: 1600px;
  --gutter: clamp(1.5rem, 4vw, 3rem);

  /* Borders */
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 8px 32px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 24px 64px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 60px var(--accent-glow);
  --shadow-glow-strong: 0 0 100px var(--accent-glow-strong);

  /* Transitions */
  --ease-out-expo: cubic-bezier(0.19, 1, 0.22, 1);
  --ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);

  --duration-fast: 0.2s;
  --duration-normal: 0.4s;
  --duration-slow: 0.8s;
  --duration-slower: 1.2s;

  /* Z-Index Scale */
  --z-base: 1;
  --z-above: 10;
  --z-nav: 100;
  --z-modal: 1000;
  --z-cursor: 9999;

  /* Grain opacity (theme-dependent) */
  --grain-opacity: 0.025;

  /* Platform logo filter (dark mode = invert to white) */
  --logo-platform-filter: brightness(0) invert(1);
}


/* ============================================================
   LIGHT MODE THEME
   ============================================================ */
[data-theme="light"] {
  --bg-primary: #ffffff;
  --bg-secondary: #f8f8fa;
  --bg-surface: #f0f0f3;
  --bg-elevated: #e8e8ec;
  --bg-card: #ffffff;

  --text-primary: #1a1a1f;
  --text-secondary: rgba(26, 26, 31, 0.6);
  --text-muted: rgba(26, 26, 31, 0.35);
  --text-accent: #E55A1B;

  --accent: #E55A1B;
  --accent-light: #FF6B2C;
  --accent-glow: rgba(229, 90, 27, 0.08);
  --accent-glow-strong: rgba(229, 90, 27, 0.15);

  --blue-glow: rgba(0, 102, 255, 0.08);

  --border: rgba(0, 0, 0, 0.07);
  --border-hover: rgba(0, 0, 0, 0.14);
  --border-accent: rgba(229, 90, 27, 0.25);

  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 8px 32px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 24px 64px rgba(0, 0, 0, 0.1);

  --grain-opacity: 0.015;

  /* Platform logos: no filter in light mode (they have dark text) */
  --logo-platform-filter: none;
}


/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5.5rem;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-size: 16px;
  overflow-x: hidden;
}

body {
  font-family: var(--font-main);
  font-size: var(--fs-body);
  font-weight: var(--fw-regular);
  line-height: var(--lh-normal);
  letter-spacing: var(--ls-normal);
  color: var(--text-primary);
  background-color: var(--bg-primary);
  overflow-x: hidden;
  position: relative;
}

/* Grain overlay for premium texture */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 10000;
  opacity: var(--grain-opacity);
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 256px 256px;
}

::selection {
  background: var(--accent);
  color: var(--text-primary);
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--duration-fast) var(--ease-smooth);
}

img {
  max-width: 100%;
  display: block;
}

ul, ol {
  list-style: none;
}

button, input, textarea, select {
  font: inherit;
  color: inherit;
  border: none;
  outline: none;
  background: none;
}

button {
  cursor: pointer;
}


/* ============================================================
   CUSTOM CURSOR
   ============================================================ */
.cursor-dot {
  position: fixed;
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
  pointer-events: none;
  z-index: var(--z-cursor);
  transform: translate(-50%, -50%);
  transition: width 0.3s var(--ease-out-expo),
              height 0.3s var(--ease-out-expo),
              background 0.3s ease;
  mix-blend-mode: difference;
}

.cursor-ring {
  position: fixed;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255, 107, 44, 0.4);
  border-radius: 50%;
  pointer-events: none;
  z-index: var(--z-cursor);
  transform: translate(-50%, -50%);
  transition: width 0.4s var(--ease-out-expo),
              height 0.4s var(--ease-out-expo),
              border-color 0.3s ease,
              background 0.3s ease;
}

body.cursor-hover .cursor-dot {
  width: 12px;
  height: 12px;
  background: var(--accent);
}

body.cursor-hover .cursor-ring {
  width: 60px;
  height: 60px;
  border-color: var(--accent);
  background: var(--accent-glow);
}

@media (hover: none), (pointer: coarse) {
  .cursor-dot, .cursor-ring {
    display: none !important;
  }
}


/* ============================================================
   LOADING SCREEN
   ============================================================ */

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
h1, h2, h3, h4, h5, h6 {
  font-weight: var(--fw-bold);
  line-height: var(--lh-tight);
  letter-spacing: var(--ls-tight);
}

.display {
  font-size: var(--fs-display);
  font-weight: var(--fw-black);
  line-height: 0.95;
  letter-spacing: -0.04em;
}

h1, .h1 { font-size: var(--fs-h1); }
h2, .h2 { font-size: var(--fs-h2); }
h3, .h3 { font-size: var(--fs-h3); }
h4, .h4 { font-size: var(--fs-h4); }

.text-gradient {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-light) 50%, #FFD700 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-gradient-blue {
  background: linear-gradient(135deg, var(--blue) 0%, #00AAFF 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-accent { color: var(--accent); }
.text-secondary { color: var(--text-secondary); }
.text-muted { color: var(--text-muted); }
.text-center { text-align: center; }
.text-uppercase {
  text-transform: uppercase;
  letter-spacing: var(--ls-wider);
  font-size: var(--fs-label);
  font-weight: var(--fw-semibold);
}

.label {
  font-size: var(--fs-label);
  letter-spacing: var(--ls-wider);
  text-transform: uppercase;
  font-weight: var(--fw-semibold);
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.label::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  display: inline-block;
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}

.body-lg {
  font-size: var(--fs-body-lg);
  line-height: var(--lh-relaxed);
}

.mono {
  font-family: var(--font-mono);
  font-size: var(--fs-small);
}


/* ============================================================
   LAYOUT
   ============================================================ */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.container-narrow {
  max-width: var(--max-width-narrow);
}

.container-wide {
  max-width: var(--max-width-wide);
}

section {
  padding: var(--space-section) 0;
  position: relative;
}

.section-dark {
  background: var(--bg-secondary);
}

.section-surface {
  background: var(--bg-surface);
}

.grid {
  display: grid;
  gap: var(--space-md);
}

.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.flex {
  display: flex;
}

.flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

.flex-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.gap-sm { gap: var(--space-sm); }
.gap-md { gap: var(--space-md); }
.gap-lg { gap: var(--space-lg); }


/* ============================================================
   HEADER / NAVIGATION
   ============================================================ */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: var(--z-nav);
  padding: 1.25rem 0;
  transition: padding 0.4s var(--ease-out-expo);
}

.header.scrolled {
  padding: 0.75rem 0;
  background: rgba(5, 5, 5, 0.85);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--border);
}

.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  z-index: var(--z-nav);
}

.logo img {
  height: 32px;
  width: auto;
}

.logo-text {
  font-size: 1.15rem;
  font-weight: var(--fw-bold);
  letter-spacing: -0.02em;
}

.logo-text span {
  color: var(--accent);
}

.nav-desktop {
  display: flex;
  align-items: center;
  gap: 2.5rem;
}

.nav-link {
  font-size: var(--fs-small);
  font-weight: var(--fw-medium);
  color: var(--text-secondary);
  transition: color var(--duration-fast) ease;
  position: relative;
  letter-spacing: 0.01em;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--accent);
  transition: width 0.3s var(--ease-out-expo);
}

.nav-link:hover {
  color: var(--text-primary);
}

.nav-link:hover::after {
  width: 100%;
}

.nav-link.active {
  color: var(--text-primary);
}

.nav-link.active::after {
  width: 100%;
}

/* Dropdown */
.nav-dropdown {
  position: relative;
}

.nav-dropdown::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  min-width: 240px;
  height: 1rem;
}

.nav-dropdown-trigger {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  cursor: pointer;
}

.nav-dropdown-trigger .chevron {
  width: 12px;
  height: 12px;
  transition: transform 0.3s ease;
}

.nav-dropdown:hover .chevron {
  transform: rotate(180deg);
}

.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 1rem);
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  min-width: 240px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 0.5rem;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s var(--ease-out-expo);
  box-shadow: var(--shadow-lg);
}

.nav-dropdown:hover .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.nav-dropdown-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  transition: background 0.2s ease;
  font-size: var(--fs-small);
  color: var(--text-secondary);
}

.nav-dropdown-item:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
}

.nav-dropdown-item i {
  font-size: 1.1rem;
  color: var(--accent);
  width: 20px;
  text-align: center;
}

/* CTA Button in Nav */
.nav-cta {
  padding: 0.65rem 1.5rem;
  background: var(--accent);
  color: var(--bg-primary);
  border-radius: var(--radius-full);
  font-size: var(--fs-small);
  font-weight: var(--fw-semibold);
  transition: all 0.3s var(--ease-out-expo);
  letter-spacing: 0.01em;
}

.nav-cta:hover {
  background: var(--accent-light);
  transform: translateY(-1px);
  box-shadow: 0 8px 30px rgba(255, 107, 44, 0.3);
}

/* Mobile Menu */
.mobile-menu-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  z-index: calc(var(--z-nav) + 10);
  padding: 4px;
  cursor: pointer;
  background: none;
  border: none;
}

.mobile-menu-btn span {
  width: 24px;
  height: 1.5px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all 0.3s var(--ease-out-expo);
  transform-origin: center;
}

.mobile-menu-btn.active span:nth-child(1) {
  transform: rotate(45deg) translate(4.5px, 4.5px);
}

.mobile-menu-btn.active span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.mobile-menu-btn.active span:nth-child(3) {
  transform: rotate(-45deg) translate(4.5px, -4.5px);
}

.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100dvh;
  background: var(--bg-primary);
  z-index: var(--z-nav);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 1.25rem;
  opacity: 0;
  visibility: hidden;
  transition: all 0.5s var(--ease-out-expo);
}

.mobile-menu.active {
  opacity: 1;
  visibility: visible;
}

.mobile-menu a {
  font-size: clamp(1.4rem, 4vw, 2rem);
  font-weight: var(--fw-bold);
  color: var(--text-primary);
  transition: color 0.3s ease, transform 0.3s var(--ease-out-expo);
  transform: translateY(20px);
  opacity: 0;
}

.mobile-menu.active a {
  transform: translateY(0);
  opacity: 1;
}

.mobile-menu.active a:nth-child(1) { transition-delay: 0.1s; }
.mobile-menu.active a:nth-child(2) { transition-delay: 0.15s; }
.mobile-menu.active a:nth-child(3) { transition-delay: 0.2s; }
.mobile-menu.active a:nth-child(4) { transition-delay: 0.25s; }
.mobile-menu.active a:nth-child(5) { transition-delay: 0.3s; }
.mobile-menu.active a:nth-child(6) { transition-delay: 0.35s; }
.mobile-menu.active a:nth-child(7) { transition-delay: 0.4s; }
.mobile-menu.active a:nth-child(8) { transition-delay: 0.45s; }
.mobile-menu.active a:nth-child(9) { transition-delay: 0.5s; }

.mobile-menu a:hover {
  color: var(--accent);
}

.mobile-menu .nav-cta {
  color: #ffffff;
}

.mobile-menu .nav-cta:hover {
  color: #ffffff;
}


/* ============================================================
   HERO SECTION
   ============================================================ */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding-top: 6rem;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

/* Gradient orbs */
.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.4;
  animation: float-orb 20s ease-in-out infinite;
}

.hero-orb-1 {
  width: 600px;
  height: 600px;
  background: var(--accent);
  top: -200px;
  right: -100px;
  opacity: 0.12;
  animation-delay: 0s;
}

.hero-orb-2 {
  width: 400px;
  height: 400px;
  background: var(--blue);
  bottom: -100px;
  left: -50px;
  opacity: 0.08;
  animation-delay: -7s;
}

.hero-orb-3 {
  width: 300px;
  height: 300px;
  background: var(--accent-light);
  top: 40%;
  left: 60%;
  opacity: 0.06;
  animation-delay: -14s;
}

@keyframes float-orb {
  0%, 100% { transform: translate(0, 0) scale(1); }
  25% { transform: translate(30px, -40px) scale(1.05); }
  50% { transform: translate(-20px, 20px) scale(0.95); }
  75% { transform: translate(40px, 30px) scale(1.02); }
}

/* Grid lines background */
.hero-grid {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image:
    linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 1000px;
  padding: 0 var(--gutter);
}

.hero-label {
  margin-bottom: 2rem;
}

.hero-title {
  margin-bottom: 1.5rem;
}

.hero-title .line {
  display: block;
  overflow: hidden;
  padding-bottom: 0.12em;
}

.hero-title .word {
  display: inline-block;
  transform: translateY(110%);
  animation: revealWord 1s var(--ease-out-expo) forwards;
}

@keyframes revealWord {
  to { transform: translateY(0); }
}

.hero-subtitle {
  font-size: var(--fs-body-lg);
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto 3rem;
  line-height: var(--lh-relaxed);
}

.hero-cta-group {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero-scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-muted);
  font-size: var(--fs-xs);
  letter-spacing: var(--ls-wider);
  text-transform: uppercase;
  animation: fadeIn 1s 2s both;
}

.hero-scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--text-muted), transparent);
  position: relative;
  overflow: hidden;
}

.hero-scroll-line::after {
  content: '';
  position: absolute;
  top: -100%;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--accent);
  animation: scrollLine 2s ease-in-out infinite;
}

@keyframes scrollLine {
  0% { top: -100%; }
  50% { top: 100%; }
  100% { top: 100%; }
}


/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.9rem 2rem;
  border-radius: var(--radius-full);
  font-size: var(--fs-small);
  font-weight: var(--fw-semibold);
  letter-spacing: 0.02em;
  transition: all 0.4s var(--ease-out-expo);
  position: relative;
  overflow: hidden;
  white-space: nowrap;
  cursor: pointer;
}

.btn-primary {
  background: var(--accent);
  color: var(--bg-primary);
}

.btn-primary:hover {
  background: var(--accent-light);
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(255, 107, 44, 0.35);
}

.btn-secondary {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  border-color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.03);
  transform: translateY(-2px);
}

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border);
  border-radius: 0;
}

.btn-ghost:hover {
  color: var(--text-primary);
  border-color: var(--text-primary);
}

.btn-lg {
  padding: 1.1rem 2.5rem;
  font-size: var(--fs-body);
}

.btn-sm {
  padding: 0.5rem 1.25rem;
  font-size: var(--fs-xs);
}

.btn i, .btn svg {
  font-size: 1.1em;
  transition: transform 0.3s var(--ease-out-expo);
}

.btn:hover i, .btn:hover svg {
  transform: translateX(3px);
}

/* Magnetic button wrapper */
.magnetic-wrap {
  display: inline-block;
}


/* ============================================================
   CARDS
   ============================================================ */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  transition: all 0.5s var(--ease-out-expo);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(
    600px circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
    rgba(255, 107, 44, 0.04),
    transparent 40%
  );
  opacity: 0;
  transition: opacity 0.5s ease;
  z-index: 0;
}

.card:hover::before {
  opacity: 1;
}

.card:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.card > * {
  position: relative;
  z-index: 1;
}

.card-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: var(--accent-glow);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  font-size: 1.25rem;
  color: var(--accent);
}

.card-icon.blue {
  background: var(--blue-glow);
  color: var(--blue);
}

.card-title {
  font-size: var(--fs-h4);
  font-weight: var(--fw-semibold);
  margin-bottom: 0.75rem;
}

.card-text {
  color: var(--text-secondary);
  font-size: var(--fs-small);
  line-height: var(--lh-relaxed);
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1.5rem;
  font-size: var(--fs-small);
  font-weight: var(--fw-medium);
  color: var(--accent);
  transition: gap 0.3s var(--ease-out-expo);
}

.card-link:hover {
  gap: 0.75rem;
}

/* Large Feature Card */
.feature-card {
  padding: 3rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.feature-card-content {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.feature-card-visual {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Service Card */
.service-card {
  padding: 3rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  min-height: 400px;
  justify-content: space-between;
  cursor: pointer;
}

.service-card .service-number {
  font-size: var(--fs-display);
  font-weight: var(--fw-black);
  color: rgba(255, 255, 255, 0.03);
  line-height: 1;
  position: absolute;
  top: 1.5rem;
  right: 2rem;
  z-index: 0;
  transition: color 0.5s ease;
}

.service-card:hover .service-number {
  color: var(--accent-glow);
}

.service-card .service-tag {
  font-size: var(--fs-label);
  letter-spacing: var(--ls-wider);
  text-transform: uppercase;
  color: var(--accent);
  font-weight: var(--fw-semibold);
}

.service-card .service-title {
  font-size: var(--fs-h2);
  line-height: var(--lh-tight);
}

.service-card .service-desc {
  color: var(--text-secondary);
  line-height: var(--lh-relaxed);
}

.service-card .service-features {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: auto;
}

.service-feature-tag {
  padding: 0.4rem 0.9rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  font-size: var(--fs-xs);
  color: var(--text-secondary);
  transition: all 0.3s ease;
}

.service-card:hover .service-feature-tag {
  border-color: var(--border-accent);
  color: var(--text-primary);
}

.service-card .service-arrow {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: var(--fs-small);
  font-weight: var(--fw-medium);
  color: var(--text-muted);
  margin-top: 1rem;
  transition: all 0.3s var(--ease-out-expo);
}

.service-card:hover .service-arrow {
  color: var(--accent);
  gap: 0.75rem;
}


/* ============================================================
   MARQUEE / TICKER
   ============================================================ */
.marquee {
  overflow: hidden;
  white-space: nowrap;
  padding: 2rem 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.marquee-inner {
  display: inline-flex;
  animation: marquee 30s linear infinite;
}

.marquee:hover .marquee-inner {
  animation-play-state: paused;
}

.marquee-item {
  display: inline-flex;
  align-items: center;
  gap: 2rem;
  padding: 0 2rem;
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  font-weight: var(--fw-bold);
  color: var(--text-muted);
  white-space: nowrap;
}

.marquee-item .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}

@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}


/* ============================================================
   STATS / NUMBERS
   ============================================================ */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.stat-item {
  background: var(--bg-card);
  padding: 3rem 2rem;
  text-align: center;
  transition: background 0.3s ease;
}

.stat-item:hover {
  background: var(--bg-elevated);
}

.stat-number {
  font-size: clamp(2.5rem, 4vw, 3.5rem);
  font-weight: var(--fw-black);
  color: var(--text-primary);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.stat-number .accent {
  color: var(--accent);
}

.stat-label {
  font-size: var(--fs-small);
  color: var(--text-secondary);
  line-height: var(--lh-normal);
}


/* ============================================================
   SECTION HEADERS
   ============================================================ */
.section-header {
  margin-bottom: var(--space-lg);
}

.section-header.center {
  text-align: center;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: var(--space-lg);
}

.section-header .label {
  margin-bottom: 1rem;
  display: block;
}

.section-header h2 {
  margin-bottom: 1rem;
}

.section-header p {
  color: var(--text-secondary);
  font-size: var(--fs-body-lg);
  line-height: var(--lh-relaxed);
}

/* Divider line */
.divider {
  width: 100%;
  height: 1px;
  background: var(--border);
}

.divider-accent {
  width: 40px;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
}


/* ============================================================
   FORMS
   ============================================================ */
.form-group {
  margin-bottom: 1.5rem;
  position: relative;
}

.form-label {
  display: block;
  font-size: var(--fs-xs);
  letter-spacing: var(--ls-wide);
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: var(--fw-medium);
  margin-bottom: 0.5rem;
}

.form-input {
  width: 100%;
  padding: 1rem 0;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--border);
  color: var(--text-primary);
  font-size: var(--fs-body-lg);
  transition: border-color 0.3s ease;
  caret-color: var(--accent);
}

.form-input::placeholder {
  color: var(--text-muted);
}

.form-input:focus {
  border-bottom-color: var(--accent);
}

.form-input-boxed {
  width: 100%;
  padding: 1rem 1.25rem;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: var(--fs-body);
  transition: all 0.3s ease;
  caret-color: var(--accent);
}

.form-input-boxed::placeholder {
  color: var(--text-muted);
}

.form-input-boxed:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

textarea.form-input,
textarea.form-input-boxed {
  resize: vertical;
  min-height: 120px;
  line-height: var(--lh-normal);
}

/* Big display input (for kontakt page) */
.form-input-big {
  width: 100%;
  padding: 1.5rem 0;
  background: transparent;
  border: none;
  border-bottom: 2px solid var(--border);
  color: var(--text-primary);
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  font-weight: var(--fw-semibold);
  transition: border-color 0.3s ease;
  caret-color: var(--accent);
}

.form-input-big::placeholder {
  color: var(--text-muted);
  font-weight: var(--fw-regular);
}

.form-input-big:focus {
  border-bottom-color: var(--accent);
}


/* ============================================================
   MULTI-STEP FORM
   ============================================================ */
.multistep-form {
  position: relative;
  overflow: hidden;
}

.multistep-progress {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 3rem;
}

.multistep-progress-step {
  flex: 1;
  height: 2px;
  background: var(--border);
  border-radius: 2px;
  transition: background 0.5s var(--ease-out-expo);
  position: relative;
}

.multistep-progress-step.active,
.multistep-progress-step.completed {
  background: var(--accent);
}

.multistep-progress-label {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.5rem;
}

.multistep-progress-label span {
  font-size: var(--fs-xs);
  color: var(--text-muted);
  letter-spacing: var(--ls-wide);
  text-transform: uppercase;
  transition: color 0.3s ease;
}

.multistep-progress-label span.active {
  color: var(--accent);
}

.multistep-slides {
  display: flex;
  transition: transform 0.6s var(--ease-out-expo), height 0.3s ease;
  align-items: flex-start;
}

.multistep-slide {
  min-width: 100%;
  padding: 0 0.25rem;
}

.multistep-slide h3 {
  margin-bottom: 0.5rem;
}

.multistep-slide p {
  color: var(--text-secondary);
  margin-bottom: 2rem;
  font-size: var(--fs-small);
}

.multistep-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 2rem;
  gap: 1rem;
}

.multistep-nav .step-counter {
  font-size: var(--fs-xs);
  color: var(--text-muted);
  letter-spacing: var(--ls-wide);
}

@media (max-width: 768px) {
  .multistep-nav {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
  }

  .multistep-nav .step-counter {
    order: 1;
  }

  .multistep-nav .multistep-next {
    order: 2;
    width: 100%;
    justify-content: center;
  }

  .multistep-nav .multistep-prev {
    order: 3;
    background: none;
    border: none;
    padding: 0;
    margin-top: 0.5rem;
    color: var(--text-secondary);
    text-decoration: underline;
    justify-content: center;
  }

  .multistep-nav .multistep-prev i {
    display: none;
  }

  .multistep-prev[style*="visibility:hidden"] {
    display: none;
  }
}

/* Option Cards for multi-step */
.option-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}

.option-card {
  padding: 1.25rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.3s var(--ease-out-expo);
  text-align: center;
}

.option-card:hover {
  border-color: var(--border-hover);
  background: rgba(255, 255, 255, 0.02);
}

.option-card.selected {
  border-color: var(--accent);
  background: var(--accent-glow);
}

.option-card .option-icon {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  display: block;
}

.option-card .option-label {
  font-size: var(--fs-small);
  font-weight: var(--fw-medium);
}


/* ============================================================
   TESTIMONIALS
   ============================================================ */
.testimonial-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
}

.testimonial-quote {
  font-size: var(--fs-body-lg);
  line-height: var(--lh-relaxed);
  color: var(--text-primary);
  margin-bottom: 2rem;
  font-style: italic;
}

.testimonial-quote::before {
  content: '\201C';
  display: block;
  font-size: 3rem;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 0.5rem;
  font-style: normal;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.testimonial-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--accent-glow);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: var(--fw-bold);
  color: var(--accent);
  font-size: var(--fs-small);
}

.testimonial-name {
  font-weight: var(--fw-semibold);
  font-size: var(--fs-small);
}

.testimonial-role {
  font-size: var(--fs-xs);
  color: var(--text-secondary);
}


/* ============================================================
   PROCESS / STEPS
   ============================================================ */
.process-timeline {
  position: relative;
  padding-left: 3rem;
}

.process-timeline::before {
  content: '';
  position: absolute;
  top: 0;
  left: 11px;
  width: 1px;
  height: 100%;
  background: var(--border);
}

.process-step {
  position: relative;
  padding-bottom: 3rem;
}

.process-step:last-child {
  padding-bottom: 0;
}

.process-step-dot {
  position: absolute;
  left: -3rem;
  top: 0.25rem;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--bg-primary);
  border: 2px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  transition: all 0.3s ease;
}

.process-step-dot::after {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.process-step:hover .process-step-dot {
  border-color: var(--accent);
}

.process-step:hover .process-step-dot::after {
  opacity: 1;
}

.process-step-number {
  font-size: var(--fs-label);
  letter-spacing: var(--ls-wider);
  text-transform: uppercase;
  color: var(--accent);
  font-weight: var(--fw-semibold);
  margin-bottom: 0.5rem;
}

.process-step h3 {
  margin-bottom: 0.5rem;
}

.process-step p {
  color: var(--text-secondary);
  font-size: var(--fs-small);
  line-height: var(--lh-relaxed);
}


/* ============================================================
   FLOW / GROWTH ENGINE
   ============================================================ */
.flow-container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  position: relative;
}

.flow-node {
  padding: 2.5rem 2rem;
  border: 1px solid var(--border);
  text-align: center;
  position: relative;
  transition: all 0.4s var(--ease-out-expo);
}

.flow-node:first-child {
  border-radius: var(--radius-lg) 0 0 var(--radius-lg);
}

.flow-node:last-child {
  border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
}

.flow-node:hover {
  background: var(--bg-elevated);
  z-index: 2;
}

.flow-node::after {
  content: '';
  position: absolute;
  right: -12px;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-left: 12px solid var(--border);
  border-top: 12px solid transparent;
  border-bottom: 12px solid transparent;
  z-index: 3;
}

.flow-node:last-child::after {
  display: none;
}

.flow-node-icon {
  font-size: 2rem;
  margin-bottom: 1rem;
  display: block;
}

.flow-node-title {
  font-size: var(--fs-label);
  letter-spacing: var(--ls-wider);
  text-transform: uppercase;
  color: var(--accent);
  font-weight: var(--fw-bold);
  margin-bottom: 0.75rem;
}

.flow-node-desc {
  font-size: var(--fs-small);
  color: var(--text-secondary);
  line-height: var(--lh-normal);
}

/* Pulsing connection line */
.flow-pulse {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  animation: flowPulse 3s ease-in-out infinite;
}

@keyframes flowPulse {
  0% { opacity: 0; transform: translateX(-100%); }
  50% { opacity: 1; }
  100% { opacity: 0; transform: translateX(100%); }
}


/* ============================================================
   ECOSYSTEM CARDS
   ============================================================ */
.eco-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  transition: all 0.5s var(--ease-out-expo);
  position: relative;
  overflow: hidden;
}

.eco-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-light));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s var(--ease-out-expo);
}

.eco-card:hover::after {
  transform: scaleX(1);
}

.eco-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
}

.eco-card-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.75rem;
  background: var(--accent-glow);
  border-radius: var(--radius-full);
  font-size: var(--fs-xs);
  font-weight: var(--fw-semibold);
  color: var(--accent);
  width: fit-content;
}

.eco-card h3 {
  font-size: var(--fs-h3);
}

.eco-card p {
  color: var(--text-secondary);
  line-height: var(--lh-relaxed);
}

.eco-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.eco-tag {
  padding: 0.3rem 0.7rem;
  background: rgba(255, 255, 255, 0.04);
  border-radius: var(--radius-full);
  font-size: var(--fs-xs);
  color: var(--text-secondary);
}


/* ============================================================
   CTA SECTION
   ============================================================ */
.cta-section {
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
  pointer-events: none;
}

.cta-content {
  position: relative;
  z-index: 2;
}

.cta-section h2 {
  margin-bottom: 1rem;
}

.cta-section p {
  color: var(--text-secondary);
  margin-bottom: 2.5rem;
  font-size: var(--fs-body-lg);
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}


/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  border-top: 1px solid var(--border);
  padding: var(--space-xl) 0 var(--space-md);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-lg);
  margin-bottom: var(--space-xl);
}

.footer-brand p {
  color: var(--text-secondary);
  font-size: var(--fs-small);
  line-height: var(--lh-relaxed);
  margin-top: 1rem;
  max-width: 300px;
}

.footer-col-title {
  font-size: var(--fs-label);
  letter-spacing: var(--ls-wider);
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: var(--fw-semibold);
  margin-bottom: 1.25rem;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-link {
  font-size: var(--fs-small);
  color: var(--text-secondary);
  transition: color 0.2s ease;
}

.footer-link:hover {
  color: var(--text-primary);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: var(--space-md);
  border-top: 1px solid var(--border);
  font-size: var(--fs-xs);
  color: var(--text-muted);
}

.footer-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  font-size: var(--fs-xs);
  color: var(--text-secondary);
}

.footer-badge .ch-flag {
  font-size: var(--fs-small);
}


/* ============================================================
   FAB (Floating Action Button)
   ============================================================ */
.fab {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: calc(var(--z-nav) - 1);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.9rem 1.5rem;
  background: var(--accent);
  color: var(--bg-primary);
  border-radius: var(--radius-full);
  font-size: var(--fs-small);
  font-weight: var(--fw-semibold);
  box-shadow: 0 8px 30px rgba(255, 107, 44, 0.4);
  transition: all 0.3s var(--ease-out-expo);
  cursor: pointer;
  border: none;
}

.fab:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 12px 40px rgba(255, 107, 44, 0.5);
}

.fab i {
  font-size: 1.1rem;
}


/* ============================================================
   MODAL
   ============================================================ */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: var(--z-modal);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  padding: var(--gutter);
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal {
  width: 100%;
  max-width: 520px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  transform: scale(0.95) translateY(20px);
  transition: transform 0.4s var(--ease-out-expo);
  position: relative;
  max-height: 90vh;
  overflow-y: auto;
}

.modal-overlay.active .modal {
  transform: scale(1) translateY(0);
}

.modal-close {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s ease;
  border: none;
  color: var(--text-secondary);
  font-size: 1.2rem;
}

.modal-close:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-primary);
}

.modal h3 {
  margin-bottom: 0.5rem;
}

.modal p {
  color: var(--text-secondary);
  font-size: var(--fs-small);
  margin-bottom: 2rem;
}

/* ============================================================
   CONSENT BANNER
   ============================================================ */
.consent-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 1.25rem;
  z-index: calc(var(--z-modal) + 5);
  display: flex;
  justify-content: center;
  padding: 0 var(--gutter);
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
  transition: opacity 0.3s var(--ease-out-expo), transform 0.3s var(--ease-out-expo);
}

.consent-banner.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.consent-card {
  width: 100%;
  max-width: 960px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.consent-text h3 {
  margin: 0 0 0.5rem;
  font-size: var(--fs-h4);
}

.consent-text p {
  margin: 0;
  color: var(--text-secondary);
  line-height: var(--lh-normal);
}

.consent-actions {
  display: flex;
  gap: 0.75rem;
  flex-shrink: 0;
}

@media (max-width: 768px) {
  .consent-banner {
    bottom: 1rem;
  }

  .consent-card {
    flex-direction: column;
    align-items: flex-start;
  }

  .consent-actions {
    width: 100%;
  }

  .consent-actions .btn {
    width: 100%;
    justify-content: center;
  }
}


/* ============================================================
   PROBLEM/SOLUTION SECTIONS
   ============================================================ */
.split-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 80vh;
}

.split-left {
  padding: var(--space-3xl) var(--space-lg);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.split-right {
  padding: var(--space-3xl) var(--space-lg);
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: var(--bg-surface);
  border-left: 1px solid var(--border);
}

/* Problem highlight */
.problem-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1rem;
  background: rgba(255, 61, 61, 0.08);
  border: 1px solid rgba(255, 61, 61, 0.15);
  border-radius: var(--radius-full);
  font-size: var(--fs-xs);
  font-weight: var(--fw-semibold);
  color: var(--error);
  width: fit-content;
  margin-bottom: 1.5rem;
}

.solution-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1rem;
  background: rgba(0, 200, 83, 0.08);
  border: 1px solid rgba(0, 200, 83, 0.15);
  border-radius: var(--radius-full);
  font-size: var(--fs-xs);
  font-weight: var(--fw-semibold);
  color: var(--success);
  width: fit-content;
  margin-bottom: 1.5rem;
}


/* ============================================================
   COMPARISON TABLE
   ============================================================ */
.comparison-table {
  width: 100%;
  border-collapse: collapse;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.comparison-table th,
.comparison-table td {
  padding: 1.25rem 1.5rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
  font-size: var(--fs-small);
}

.comparison-table th {
  background: var(--bg-elevated);
  font-weight: var(--fw-semibold);
  font-size: var(--fs-xs);
  letter-spacing: var(--ls-wide);
  text-transform: uppercase;
  color: var(--text-muted);
}

.comparison-table td:first-child {
  color: var(--text-secondary);
}

.comparison-table .col-them {
  color: var(--text-muted);
}

.comparison-table .col-us {
  color: var(--accent);
  font-weight: var(--fw-semibold);
}

.comparison-table tr:last-child td {
  border-bottom: none;
}

@media (max-width: 768px) {
  .comparison-table {
    border: none;
    overflow: visible;
  }

  .comparison-table thead {
    display: none;
  }

  .comparison-table tbody,
  .comparison-table tr,
  .comparison-table td {
    display: block;
    width: 100%;
  }

  .comparison-table tr {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 1rem;
    margin-bottom: 1rem;
  }

  .comparison-table td {
    padding: 0;
    border: none;
  }

  .comparison-table td + td {
    margin-top: 0.75rem;
  }

  .comparison-table td::before {
    content: attr(data-label);
    display: block;
    margin-bottom: 0.35rem;
    font-size: var(--fs-small);
    letter-spacing: var(--ls-wide);
    text-transform: uppercase;
    color: var(--text-muted);
  }

  .comparison-table td:first-child {
    font-weight: var(--fw-semibold);
    color: var(--text-primary);
  }

  .comparison-table td:first-child::before {
    display: none;
  }
}


/* ============================================================
   TRUST SIGNALS / BADGES
   ============================================================ */
.trust-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3rem;
  padding: 2rem 0;
  flex-wrap: wrap;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: var(--fs-xs);
  color: var(--text-muted);
  letter-spacing: var(--ls-wide);
  text-transform: uppercase;
  font-weight: var(--fw-medium);
}

.trust-item i {
  color: var(--accent);
  font-size: 1rem;
}


/* ============================================================
   SCROLL ANIMATIONS
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s var(--ease-out-expo),
              transform 0.8s var(--ease-out-expo);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 0.8s var(--ease-out-expo),
              transform 0.8s var(--ease-out-expo);
}

.reveal-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.reveal-right {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.8s var(--ease-out-expo),
              transform 0.8s var(--ease-out-expo);
}

.reveal-right.visible {
  opacity: 1;
  transform: translateX(0);
}

.reveal-scale {
  opacity: 0;
  transform: scale(0.95);
  transition: opacity 0.8s var(--ease-out-expo),
              transform 0.8s var(--ease-out-expo);
}

.reveal-scale.visible {
  opacity: 1;
  transform: scale(1);
}

/* Stagger children */
.stagger > * {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s var(--ease-out-expo),
              transform 0.6s var(--ease-out-expo);
}

.stagger.visible > *:nth-child(1) { transition-delay: 0.05s; opacity: 1; transform: translateY(0); }
.stagger.visible > *:nth-child(2) { transition-delay: 0.1s; opacity: 1; transform: translateY(0); }
.stagger.visible > *:nth-child(3) { transition-delay: 0.15s; opacity: 1; transform: translateY(0); }
.stagger.visible > *:nth-child(4) { transition-delay: 0.2s; opacity: 1; transform: translateY(0); }
.stagger.visible > *:nth-child(5) { transition-delay: 0.25s; opacity: 1; transform: translateY(0); }
.stagger.visible > *:nth-child(6) { transition-delay: 0.3s; opacity: 1; transform: translateY(0); }
.stagger.visible > *:nth-child(7) { transition-delay: 0.35s; opacity: 1; transform: translateY(0); }
.stagger.visible > *:nth-child(8) { transition-delay: 0.4s; opacity: 1; transform: translateY(0); }

/* Clip reveal (text) */
.clip-reveal {
  overflow: hidden;
}

.clip-reveal > * {
  transform: translateY(100%);
  transition: transform 0.8s var(--ease-out-expo);
}

.clip-reveal.visible > * {
  transform: translateY(0);
}


/* ============================================================
   SPECIAL EFFECTS
   ============================================================ */

/* Glowing border on hover */
.glow-border {
  position: relative;
}

.glow-border::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background: linear-gradient(135deg, var(--accent), transparent 50%);
  opacity: 0;
  transition: opacity 0.5s ease;
  z-index: -1;
}

.glow-border:hover::before {
  opacity: 1;
}

/* Shine effect */
.shine {
  position: relative;
  overflow: hidden;
}

.shine::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    to right,
    transparent 40%,
    rgba(255, 255, 255, 0.03) 50%,
    transparent 60%
  );
  transform: rotate(30deg);
  transition: transform 0.8s ease;
}

.shine:hover::after {
  transform: rotate(30deg) translateX(100%);
}

/* Counter animation */
.counter {
  display: inline-block;
}

/* Horizontal rule with text */
.hr-text {
  display: flex;
  align-items: center;
  gap: 1rem;
  color: var(--text-muted);
  font-size: var(--fs-xs);
  letter-spacing: var(--ls-wider);
  text-transform: uppercase;
}

.hr-text::before,
.hr-text::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}


/* ============================================================
   PAGE-SPECIFIC: KONTAKT
   ============================================================ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
  align-items: start;
}

.contact-info-block {
  padding: 2rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  transition: border-color 0.3s ease;
}

.contact-info-block:hover {
  border-color: var(--border-hover);
}

.contact-info-block i {
  font-size: 1.25rem;
  color: var(--accent);
  margin-top: 0.15rem;
}

.contact-info-block h4 {
  font-size: var(--fs-small);
  font-weight: var(--fw-semibold);
  margin-bottom: 0.25rem;
}

.contact-info-block p,
.contact-info-block a {
  font-size: var(--fs-small);
  color: var(--text-secondary);
}


/* ============================================================
   UTILITY CLASSES
   ============================================================ */
.mt-sm { margin-top: var(--space-sm); }
.mt-md { margin-top: var(--space-md); }
.mt-lg { margin-top: var(--space-lg); }
.mt-xl { margin-top: var(--space-xl); }
.mb-sm { margin-bottom: var(--space-sm); }
.mb-md { margin-bottom: var(--space-md); }
.mb-lg { margin-bottom: var(--space-lg); }
.mb-xl { margin-bottom: var(--space-xl); }

.pt-sm { padding-top: var(--space-sm); }
.pt-md { padding-top: var(--space-md); }
.pt-lg { padding-top: var(--space-lg); }

.hidden { display: none !important; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}


/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }

  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .feature-card {
    grid-template-columns: 1fr;
  }

  .flow-container {
    grid-template-columns: repeat(2, 1fr);
  }

  .flow-node:first-child {
    border-radius: var(--radius-lg) 0 0 0;
  }

  .flow-node:nth-child(2) {
    border-radius: 0 var(--radius-lg) 0 0;
  }

  .flow-node:nth-child(3) {
    border-radius: 0 0 0 var(--radius-lg);
  }

  .flow-node:last-child {
    border-radius: 0 0 var(--radius-lg) 0;
  }

  .flow-node:nth-child(2)::after,
  .flow-node:last-child::after {
    display: none;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .split-section {
    grid-template-columns: 1fr;
  }

  .split-right {
    border-left: none;
    border-top: 1px solid var(--border);
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .nav-desktop {
    display: none;
  }

  .mobile-menu-btn {
    display: flex;
  }

  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }

  .stats-grid {
    grid-template-columns: 1fr 1fr;
  }

  .hero {
    min-height: 90vh;
    padding-top: 5rem;
  }

  section {
    padding: clamp(3rem, 8vh, 6rem) 0;
  }

  .flow-container {
    grid-template-columns: 1fr;
  }

  .flow-node:first-child,
  .flow-node:nth-child(2),
  .flow-node:nth-child(3),
  .flow-node:last-child {
    border-radius: 0;
  }

  .flow-node:first-child {
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  }

  .flow-node:last-child {
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  }

  .flow-node::after {
    display: none;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }

  .footer-bottom {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }

  .marquee-item {
    font-size: 1.25rem;
    padding: 0 1.5rem;
    gap: 1.5rem;
  }

  .fab {
    bottom: 1.25rem;
    right: 1.25rem;
    padding: 0.75rem 1.25rem;
  }

  .option-grid {
    grid-template-columns: 1fr;
  }

  .split-left,
  .split-right {
    padding: var(--space-xl) var(--gutter);
  }

  .service-card {
    padding: 2rem;
    min-height: 300px;
  }
}

@media (max-width: 480px) {
  .hero-cta-group {
    flex-direction: column;
    width: 100%;
  }

  .hero-cta-group .btn {
    width: 100%;
    justify-content: center;
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }

  .stat-item {
    padding: 2rem 1.5rem;
  }
}


/* ============================================================
   PRINT STYLES
   ============================================================ */
@media print {
  body::before,
  .cursor-dot,
  .cursor-ring,
  .fab,
  .header {
    display: none !important;
  }

  body {
    background: white;
    color: black;
  }

  section {
    padding: 2rem 0;
    page-break-inside: avoid;
  }
}


/* ============================================================
   THEME TOGGLE BUTTON
   ============================================================ */
.theme-toggle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s var(--ease-out-expo);
  color: var(--text-secondary);
  position: relative;
  flex-shrink: 0;
}

.theme-toggle:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--border-hover);
  color: var(--text-primary);
}

[data-theme="light"] .theme-toggle {
  background: rgba(0, 0, 0, 0.04);
}

[data-theme="light"] .theme-toggle:hover {
  background: rgba(0, 0, 0, 0.08);
}

.theme-toggle i {
  font-size: 1rem;
  position: absolute;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

/* Dark mode: show sun icon (to switch to light) */
.theme-icon-light {
  opacity: 1;
  transform: scale(1) rotate(0deg);
}

.theme-icon-dark {
  opacity: 0;
  transform: scale(0.5) rotate(90deg);
}

/* Light mode: show moon icon (to switch to dark) */
[data-theme="light"] .theme-icon-light {
  opacity: 0;
  transform: scale(0.5) rotate(-90deg);
}

[data-theme="light"] .theme-icon-dark {
  opacity: 1;
  transform: scale(1) rotate(0deg);
}


/* ============================================================
   HEADER RIGHT MOBILE (theme toggle + hamburger)
   ============================================================ */
.header-right-mobile {
  display: none;
  align-items: center;
  gap: 0.75rem;
  z-index: calc(var(--z-nav) + 10);
}

@media (max-width: 768px) {
  .header-right-mobile {
    display: flex;
  }
}


/* ============================================================
   LOGO HANDLING (DARK / LIGHT)
   ============================================================ */
.logo-img {
  height: 28px;
  width: auto;
}

/* Dark theme (default): show white logo, hide dark */
.logo-dark { display: block; }
.logo-light { display: none; }

/* Light theme: show dark logo, hide white */
[data-theme="light"] .logo-dark { display: none; }
[data-theme="light"] .logo-light { display: block; }

/* Logo text fallback hidden when images load */
.logo-text {
  display: none;
}


/* ============================================================
   MOBILE MENU CLOSE BUTTON
   ============================================================ */
.mobile-menu-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  color: var(--text-secondary);
  z-index: calc(var(--z-nav) + 20);
}

.mobile-menu-close:hover {
  background: rgba(255, 255, 255, 0.12);
  color: var(--text-primary);
  transform: rotate(90deg);
}

[data-theme="light"] .mobile-menu-close {
  background: rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .mobile-menu-close:hover {
  background: rgba(0, 0, 0, 0.1);
}


/* ============================================================
   PLATFORM LOGOS (Fuchs logos)
   ============================================================ */
.platform-logo {
  height: 36px;
  width: auto;
  max-width: 180px;
  object-fit: contain;
  filter: var(--logo-platform-filter);
  transition: filter 0.3s ease;
}

.eco-card .platform-logo {
  align-self: flex-start;
  margin-bottom: 0.25rem;
  margin-left: 0;
  margin-right: auto;
}


/* ============================================================
   LIGHT MODE — ADDITIONAL OVERRIDES
   ============================================================ */

/* Service number background text */
[data-theme="light"] .service-card .service-number {
  color: rgba(0, 0, 0, 0.04);
}

[data-theme="light"] .service-card:hover .service-number {
  color: rgba(229, 90, 27, 0.08);
}

/* Service feature tags */
[data-theme="light"] .service-feature-tag {
  background: rgba(0, 0, 0, 0.03);
}

/* Eco tags */
[data-theme="light"] .eco-tag {
  background: rgba(0, 0, 0, 0.04);
}

/* Option card hover */
[data-theme="light"] .option-card:hover {
  background: rgba(0, 0, 0, 0.02);
}

/* Header scrolled in light mode */
[data-theme="light"] .header.scrolled {
  background: rgba(255, 255, 255, 0.88);
}

/* Mobile menu light background */
[data-theme="light"] .mobile-menu {
  background: var(--bg-primary);
}

/* Modal light */
[data-theme="light"] .modal-close {
  background: rgba(0, 0, 0, 0.05);
}

[data-theme="light"] .modal-close:hover {
  background: rgba(0, 0, 0, 0.1);
}

/* Cursor lighter in light mode */
[data-theme="light"] .cursor-ring {
  border-color: rgba(229, 90, 27, 0.3);
}

[data-theme="light"] body.cursor-hover .cursor-ring {
  border-color: var(--accent);
}

/* Hero grid lighter */
[data-theme="light"] .hero-grid {
  background-image:
    linear-gradient(rgba(0,0,0,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,0,0,0.03) 1px, transparent 1px);
}


/* FAB text in light mode should stay white */
.fab {
  color: #ffffff;
}

/* btn-primary text stays white in light mode */
[data-theme="light"] .btn-primary {
  color: #ffffff;
}

/* Smooth theme transition on key elements */
body,
.card,
.eco-card,
.testimonial-card,
.modal,
.mobile-menu,
.stat-item,
.flow-node,
.comparison-table th,
.comparison-table td,
.contact-info-block,
.option-card,
.form-input-boxed,
.nav-dropdown-menu {
  transition-property: background-color, color, border-color, box-shadow;
  transition-duration: 0.4s;
  transition-timing-function: ease;
}


/* ============================================================
   BLOG
   ============================================================ */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 2rem;
  margin-top: 1rem;
}

.blog-card {
  display: flex;
  flex-direction: column;
  padding: 2rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  text-decoration: none;
  color: var(--text-primary);
  transition: all 0.4s var(--ease-out-expo);
}

.blog-card:hover {
  border-color: var(--border-accent);
  transform: translateY(-4px);
  box-shadow: var(--shadow-glow);
}

.blog-card-badge {
  display: inline-block;
  width: fit-content;
  padding: 0.3rem 0.8rem;
  font-size: 0.75rem;
  font-weight: var(--fw-semibold);
  letter-spacing: var(--ls-wide);
  text-transform: uppercase;
  border-radius: var(--radius-full);
  background: var(--accent-glow);
  color: var(--accent);
  margin-bottom: 1.25rem;
}

.blog-card-title {
  font-size: var(--fs-h4);
  font-weight: var(--fw-bold);
  line-height: var(--lh-snug);
  margin-bottom: 0.75rem;
}

.blog-card-excerpt {
  font-size: var(--fs-small);
  color: var(--text-secondary);
  line-height: var(--lh-normal);
  flex-grow: 1;
  margin-bottom: 1.5rem;
}

.blog-card-meta {
  display: flex;
  gap: 1.5rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Blog Article Page */
.article-header {
  max-width: 800px;
  margin: 0 auto;
  padding: var(--space-lg) var(--gutter) var(--space-lg);
  text-align: center;
}

.article-header .label {
  margin-bottom: 1.5rem;
  display: inline-flex;
}

.article-header h1 {
  font-size: var(--fs-h2);
  font-weight: var(--fw-black);
  line-height: var(--lh-snug);
  letter-spacing: var(--ls-tight);
  margin-bottom: 1.5rem;
}

.article-header .article-meta {
  display: flex;
  justify-content: center;
  gap: 2rem;
  color: var(--text-muted);
  font-size: var(--fs-small);
}

.article-body {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 var(--gutter) var(--space-xl);
}

.article-body h2 {
  font-size: var(--fs-h3);
  font-weight: var(--fw-bold);
  line-height: var(--lh-snug);
  margin-top: 3rem;
  margin-bottom: 1rem;
}

.article-body h3 {
  font-size: var(--fs-h4);
  font-weight: var(--fw-semibold);
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

.article-body p {
  font-size: var(--fs-body);
  line-height: var(--lh-relaxed);
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}

.article-body strong {
  color: var(--text-primary);
  font-weight: var(--fw-semibold);
}

.article-body ul,
.article-body ol {
  padding-left: 1.5rem;
  margin-bottom: 1.5rem;
  color: var(--text-secondary);
}

.article-body li {
  font-size: var(--fs-body);
  line-height: var(--lh-relaxed);
  margin-bottom: 0.5rem;
}

.article-body blockquote {
  border-left: 3px solid var(--accent);
  padding: 1rem 1.5rem;
  margin: 2rem 0;
  background: var(--accent-glow);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.article-body blockquote p {
  color: var(--text-primary);
  font-weight: var(--fw-medium);
  margin-bottom: 0;
}

.article-info-box {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.5rem 2rem;
  margin: 2rem 0;
}

.article-info-box h4 {
  font-size: var(--fs-h4);
  font-weight: var(--fw-semibold);
  margin-bottom: 0.75rem;
  color: var(--text-primary);
}

.article-info-box ul {
  padding-left: 1.2rem;
  margin-bottom: 0;
}

.article-cta {
  background: var(--bg-surface);
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-md);
  padding: 2.5rem;
  margin: 3rem 0;
  text-align: center;
}

.article-cta h3 {
  font-size: var(--fs-h3);
  margin-top: 0;
  margin-bottom: 0.75rem;
}

.article-cta p {
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.article-back {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-muted);
  text-decoration: none;
  font-size: var(--fs-small);
  margin-bottom: 2rem;
  transition: color 0.3s ease;
}

.article-back:hover {
  color: var(--accent);
}

@media (max-width: 640px) {
  .blog-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .blog-card {
    padding: 1.5rem;
  }
}

/* ============================================================
   BLOG FEATURES — TABLE OF CONTENTS
   ============================================================ */

/* Article Table of Contents */
.article-toc {
  border-left: 3px solid var(--accent);
  padding: 1.25rem 1.5rem;
  margin: 2rem 0;
  background: var(--bg-surface);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  max-width: 260px;
}

.article-toc-label {
  display: block;
  font-size: 0.7rem;
  font-weight: var(--fw-semibold);
  letter-spacing: var(--ls-wider);
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.article-toc-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.article-toc-list li {
  margin-bottom: 0.35rem;
}

.article-toc-list li:last-child {
  margin-bottom: 0;
}

.article-toc-list a {
  display: block;
  font-size: 0.85rem;
  line-height: 1.5;
  color: var(--text-secondary);
  text-decoration: none;
  padding: 0.2rem 0;
  padding-left: 0.75rem;
  border-left: 2px solid transparent;
  margin-left: -1.5rem;
  transition: color 0.3s ease, border-color 0.3s ease;
}

.article-toc-list a:hover {
  color: var(--text-primary);
}

.article-toc-list a.active {
  color: var(--accent);
  border-left-color: var(--accent);
  font-weight: var(--fw-medium);
}

/* ToC — nested items */
.article-toc-list .toc-sub {
  padding-left: 0.75rem;
}

.article-toc-list .toc-sub a {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.article-toc-list .toc-sub a:hover {
  color: var(--text-secondary);
}

.article-toc-list .toc-sub a.active {
  color: var(--accent);
  border-left-color: var(--accent);
}

/* ToC mobile: inline, not sticky */
@media (max-width: 1199px) {
  .article-toc {
    position: static;
    max-width: 100%;
    margin: 1.5rem 0;
  }
}

/* Desktop: sidebar TOC created by JS */
.toc-sidebar {
  position: fixed;
  width: 220px;
  max-height: calc(100vh - 7rem);
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
  z-index: 10;
  transition: opacity 0.3s ease;
}
.toc-sidebar::-webkit-scrollbar { width: 3px; }
.toc-sidebar::-webkit-scrollbar-track { background: transparent; }
.toc-sidebar::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
.toc-sidebar .article-toc {
  max-width: 100%;
  margin: 0;
}
.toc-sidebar .article-toc-list a { font-size: 0.78rem; }
.toc-sidebar .article-toc-list .toc-sub a { font-size: 0.72rem; }

/* ============================================================
   BLOG FEATURES — RELATED ARTICLES
   ============================================================ */

.related-articles {
  padding: var(--space-section) 0;
  border-top: 1px solid var(--border);
}

.related-articles .section-header {
  margin-bottom: var(--space-lg);
}

.related-articles .section-header h2 {
  font-size: var(--fs-h3);
  font-weight: var(--fw-bold);
  line-height: var(--lh-snug);
  letter-spacing: var(--ls-tight);
}

.related-articles .section-header p {
  color: var(--text-secondary);
  font-size: var(--fs-body);
  margin-top: 0.5rem;
}

/* ============================================================
   BLOG FEATURES — BLOG TICKER (HOMEPAGE)
   ============================================================ */

.blog-ticker {
  overflow: hidden;
  white-space: nowrap;
  padding: 1.25rem 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg-secondary);
}

.blog-ticker-inner {
  display: inline-flex;
  align-items: center;
  animation: blog-ticker-scroll 40s linear infinite;
}

.blog-ticker:hover .blog-ticker-inner {
  animation-play-state: paused;
}

.blog-ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 1.5rem;
  padding: 0 1.5rem;
  font-size: 0.9rem;
  font-weight: var(--fw-medium);
  white-space: nowrap;
}

.blog-ticker-item a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.3s ease;
}

.blog-ticker-item a:hover {
  color: var(--accent);
}

.blog-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
  opacity: 0.6;
}

/* Reversed scroll direction (right to left becomes left to right) */
@keyframes blog-ticker-scroll {
  0% { transform: translateX(-50%); }
  100% { transform: translateX(0); }
}

@media (max-width: 768px) {
  .blog-ticker-item {
    font-size: 0.8rem;
    padding: 0 1rem;
    gap: 1rem;
  }

  .blog-ticker {
    padding: 1rem 0;
  }
}

/* ============================================================
   BLOG FEATURES — AUTHOR BOX
   ============================================================ */

.article-author-box {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  padding: 2rem;
  margin: 3rem 0;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  transition: border-color 0.3s ease;
}

.article-author-box:hover {
  border-color: var(--border-hover);
}

.article-author-avatar {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-full);
  background: var(--accent-glow);
  border: 2px solid var(--border-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
}

.article-author-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-full);
}

.article-author-avatar .author-icon {
  font-size: 1.5rem;
  color: var(--accent);
}

.article-author-info {
  flex: 1;
  min-width: 0;
}

.article-author-name {
  font-size: var(--fs-h4);
  font-weight: var(--fw-bold);
  color: var(--text-primary);
  margin-bottom: 0.25rem;
  line-height: var(--lh-snug);
}

.article-author-description {
  font-size: var(--fs-small);
  color: var(--text-secondary);
  line-height: var(--lh-normal);
  margin-bottom: 0.75rem;
}

.article-author-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  font-weight: var(--fw-medium);
  color: var(--accent);
  text-decoration: none;
  transition: color 0.3s ease, gap 0.3s ease;
}

.article-author-link:hover {
  color: var(--accent-light);
  gap: 0.6rem;
}

.article-author-link .arrow {
  transition: transform 0.3s ease;
}

.article-author-link:hover .arrow {
  transform: translateX(2px);
}

@media (max-width: 640px) {
  .article-author-box {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 1.5rem;
  }

  .article-author-link {
    justify-content: center;
  }
}

/* ============================================================
   BLOG FEATURES — BREADCRUMB
   ============================================================ */

.article-breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.4rem;
  padding: 6rem var(--gutter) 0;
  max-width: 800px;
  margin: 0 auto;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.article-breadcrumb a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.3s ease;
}

.article-breadcrumb a:hover {
  color: var(--accent);
}

.article-breadcrumb .breadcrumb-separator {
  color: var(--text-muted);
  opacity: 0.5;
  font-size: 0.7rem;
  user-select: none;
}

.article-breadcrumb .breadcrumb-current {
  color: var(--text-secondary);
  font-weight: var(--fw-medium);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 300px;
}

@media (max-width: 768px) {
  .article-breadcrumb {
    font-size: 0.75rem;
    padding-top: 4.5rem;
  }

  .article-breadcrumb .breadcrumb-current {
    max-width: 180px;
  }

  .article-header {
    padding-top: var(--space-sm);
  }

  .article-header h1 {
    font-size: var(--fs-h3);
  }
}

/* ============================================================
   BLOG FEATURES — LIGHT MODE OVERRIDES
   ============================================================ */

[data-theme="light"] .article-toc {
  background: rgba(0, 0, 0, 0.02);
}

[data-theme="light"] .article-toc-list a {
  color: rgba(0, 0, 0, 0.5);
}

[data-theme="light"] .article-toc-list a:hover {
  color: rgba(0, 0, 0, 0.8);
}

[data-theme="light"] .article-toc-list .toc-sub a {
  color: rgba(0, 0, 0, 0.35);
}

[data-theme="light"] .article-toc-list .toc-sub a:hover {
  color: rgba(0, 0, 0, 0.55);
}

[data-theme="light"] .blog-ticker {
  background: rgba(0, 0, 0, 0.015);
}

[data-theme="light"] .blog-ticker-item a {
  color: rgba(0, 0, 0, 0.5);
}

[data-theme="light"] .blog-ticker-item a:hover {
  color: var(--accent);
}

[data-theme="light"] .article-author-box {
  background: rgba(0, 0, 0, 0.02);
}

[data-theme="light"] .article-author-avatar {
  background: rgba(255, 107, 44, 0.08);
}

[data-theme="light"] .article-breadcrumb {
  color: rgba(0, 0, 0, 0.35);
}

[data-theme="light"] .article-breadcrumb a {
  color: rgba(0, 0, 0, 0.35);
}

[data-theme="light"] .article-breadcrumb a:hover {
  color: var(--accent);
}

[data-theme="light"] .article-breadcrumb .breadcrumb-current {
  color: rgba(0, 0, 0, 0.6);
}
