html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Inter', sans-serif;
  background-color: var(--black);
  color: var(--white);
  overflow-x: hidden;
  line-height: 1.6;
}

/* American Unicorn Mesh Gradient (Body Level Background) */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: var(--z-below);
  background:
    radial-gradient(circle at 15% 50%, rgba(20, 184, 166, 0.08), transparent 40%),
    radial-gradient(circle at 85% 30%, rgba(249, 115, 22, 0.05), transparent 40%);
  pointer-events: none;
}

/* --- Custom Properties --- */
:root {
  /* === Core Palette === */
  --orange: #F97316;
  --orange-light: #FB923C;
  --orange-dark: #C2410C;
  --teal: #14B8A6;
  --teal-light: #2DD4BF;
  --teal-dark: #0D9488;
  --dark: #000000;
  --dark-soft: #030a09;
  --dark-card: rgba(6, 17, 15, 0.7);
  --surface-elevated: #111111;
  --light: #FAFAFA;
  --white: #FFFFFF;
  --gray: #A1A1AA;
  --gray-light: #E4E4E7;
  --text-primary: #FAFAFA;
  --text-secondary: #A1A1AA;
  --text-heading: #FFFFFF;

  /* === Gradients === */
  --gradient-orange: linear-gradient(135deg, #F97316, #FB923C);
  --gradient-teal: linear-gradient(135deg, #14B8A6, #2DD4BF);

  /* === Teal Alpha (12, 138, 127) === */
  --teal-a4:  rgba(12, 138, 127, 0.04);
  --teal-a5:  rgba(12, 138, 127, 0.05);
  --teal-a6:  rgba(12, 138, 127, 0.06);
  --teal-a8:  rgba(12, 138, 127, 0.08);
  --teal-a10: rgba(12, 138, 127, 0.10);
  --teal-a12: rgba(12, 138, 127, 0.12);
  --teal-a15: rgba(12, 138, 127, 0.15);
  --teal-a20: rgba(12, 138, 127, 0.20);
  --teal-a25: rgba(12, 138, 127, 0.25);
  --teal-a30: rgba(12, 138, 127, 0.30);
  --teal-a35: rgba(12, 138, 127, 0.35);
  --teal-a40: rgba(12, 138, 127, 0.40);
  --teal-a60: rgba(12, 138, 127, 0.60);

  /* === Orange Alpha (249, 115, 22) === */
  --orange-a5:  rgba(249, 115, 22, 0.05);
  --orange-a6:  rgba(249, 115, 22, 0.06);
  --orange-a8:  rgba(249, 115, 22, 0.08);
  --orange-a10: rgba(249, 115, 22, 0.10);
  --orange-a12: rgba(249, 115, 22, 0.12);
  --orange-a15: rgba(249, 115, 22, 0.15);
  --orange-a20: rgba(249, 115, 22, 0.20);
  --orange-a25: rgba(249, 115, 22, 0.25);
  --orange-a30: rgba(249, 115, 22, 0.30);
  --orange-a40: rgba(249, 115, 22, 0.40);
  --orange-a45: rgba(249, 115, 22, 0.45);
  --orange-a50: rgba(249, 115, 22, 0.50);
  --orange-a60: rgba(249, 115, 22, 0.60);
  --orange-a80: rgba(249, 115, 22, 0.80);

  /* === Teal-Light Alpha (45, 212, 191) === */
  --teal-light-a4:  rgba(45, 212, 191, 0.04);
  --teal-light-a5:  rgba(45, 212, 191, 0.05);
  --teal-light-a8:  rgba(45, 212, 191, 0.08);
  --teal-light-a10: rgba(45, 212, 191, 0.10);
  --teal-light-a12: rgba(45, 212, 191, 0.12);
  --teal-light-a15: rgba(45, 212, 191, 0.15);
  --teal-light-a20: rgba(45, 212, 191, 0.20);
  --teal-light-a30: rgba(45, 212, 191, 0.30);
  --teal-light-a35: rgba(45, 212, 191, 0.35);
  --teal-light-a40: rgba(45, 212, 191, 0.40);
  --teal-light-a50: rgba(45, 212, 191, 0.50);
  --teal-light-a60: rgba(45, 212, 191, 0.60);
  --teal-light-a80: rgba(45, 212, 191, 0.80);

  /* === Violet Alpha (167, 139, 250) === */
  --violet: #A78BFA;
  --violet-a8:  rgba(167, 139, 250, 0.08);
  --violet-a15: rgba(167, 139, 250, 0.15);
  --violet-a25: rgba(167, 139, 250, 0.25);
  --violet-a30: rgba(167, 139, 250, 0.30);
  --violet-a40: rgba(167, 139, 250, 0.40);

  /* === Blue-400 Alpha (59, 130, 246) === */
  --blue-400: #3B82F6;
  --blue-a8:  rgba(59, 130, 246, 0.08);
  --blue-a15: rgba(59, 130, 246, 0.15);
  --blue-a25: rgba(59, 130, 246, 0.25);
  --blue-a30: rgba(59, 130, 246, 0.30);
  --blue-a40: rgba(59, 130, 246, 0.40);

  /* === White Alpha (255, 255, 255) === */
  --white-a2:  rgba(255, 255, 255, 0.02);
  --white-a3:  rgba(255, 255, 255, 0.03);
  --white-a4:  rgba(255, 255, 255, 0.04);
  --white-a5:  rgba(255, 255, 255, 0.05);
  --white-a6:  rgba(255, 255, 255, 0.06);
  --white-a8:  rgba(255, 255, 255, 0.08);
  --white-a10: rgba(255, 255, 255, 0.10);
  --white-a15: rgba(255, 255, 255, 0.15);
  --white-a20: rgba(255, 255, 255, 0.20);
  --white-a30: rgba(255, 255, 255, 0.30);
  --white-a35: rgba(255, 255, 255, 0.35);
  --white-a40: rgba(255, 255, 255, 0.40);
  --white-a50: rgba(255, 255, 255, 0.50);
  --white-a60: rgba(255, 255, 255, 0.60);
  --white-a70: rgba(255, 255, 255, 0.70);
  --white-a80: rgba(255, 255, 255, 0.80);
  --white-a85: rgba(255, 255, 255, 0.85);

  /* === Black Alpha (0, 0, 0) === */
  --black-a12: rgba(0, 0, 0, 0.12);
  --black-a15: rgba(0, 0, 0, 0.15);
  --black-a20: rgba(0, 0, 0, 0.20);
  --black-a25: rgba(0, 0, 0, 0.25);
  --black-a30: rgba(0, 0, 0, 0.30);
  --black-a40: rgba(0, 0, 0, 0.40);
  --black-a50: rgba(0, 0, 0, 0.50);
  --black-a60: rgba(0, 0, 0, 0.60);
  --black-a65: rgba(0, 0, 0, 0.65);
  --black-a70: rgba(0, 0, 0, 0.70);
  --black-a80: rgba(0, 0, 0, 0.80);
  --black-a85: rgba(0, 0, 0, 0.85);
  --black-a95: rgba(0, 0, 0, 0.95);

  /* === Elevation (Shadows) === */
  --shadow-glow: 0 0 0 1px rgba(255, 255, 255, 0.08);
  --shadow-glow-hover: inset 0 0 0 1px rgba(255, 255, 255, 0.20), 0 8px 30px rgba(0, 0, 0, 0.6);
  --shadow-xs:  0 2px 8px rgba(0, 0, 0, 0.15);
  --shadow-sm:  0 4px 16px rgba(0, 0, 0, 0.25);
  --shadow-md:  0 10px 30px rgba(0, 0, 0, 0.40);
  --shadow-lg:  0 16px 48px rgba(0, 0, 0, 0.50);
  --shadow-xl:  0 20px 60px rgba(0, 0, 0, 0.70);
  --shadow-orange-sm: 0 4px 20px rgba(249, 115, 22, 0.30);
  --shadow-orange-md: 0 8px 30px rgba(249, 115, 22, 0.40);
  --shadow-orange-lg: 0 8px 40px rgba(249, 115, 22, 0.50);
  --shadow-teal-sm:   0 4px 20px rgba(12, 138, 127, 0.30);
  --shadow-teal-md:   0 12px 48px rgba(12, 138, 127, 0.25);
  --shadow-teal-lg:   0 16px 48px rgba(12, 138, 127, 0.40);

  /* === Border Radius === */
  --radius-xs: 2px;
  --radius-sm: 4px;
  --radius: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-2xl: 20px;
  --radius-pill: 50px;
  --radius-full: 50%;

  /* === Spacing Scale (4px base) === */
  --space-1:  4px;
  --space-2:  8px;
  --space-3:  12px;
  --space-4:  16px;
  --space-5:  20px;
  --space-6:  24px;
  --space-7:  28px;
  --space-8:  32px;
  --space-9:  36px;
  --space-10: 40px;
  --space-11: 48px;
  --space-12: 56px;
  --space-13: 64px;
  --space-14: 80px;
  --space-15: 100px;
  --space-16: 120px;
  --space-17: 140px;

  /* === Typography Scale === */
  --text-2xs:    0.65rem;
  --text-xs:     0.72rem;
  --text-sm:     0.80rem;
  --text-base:   0.88rem;
  --text-md:     0.95rem;
  --text-lg:     1.05rem;
  --text-xl:     1.15rem;
  --text-2xl:    1.30rem;
  --text-3xl:    1.50rem;
  --text-4xl:    1.80rem;
  --text-5xl:    2.20rem;
  --text-display: clamp(1.8rem, 4vw, 2.8rem);
  --text-hero:    clamp(2.4rem, 5vw, 3.6rem);

  /* === Transitions === */
  --transition: 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
  --ease-default: 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
  --ease-smooth:  0.4s cubic-bezier(0.4, 0, 0.2, 1);
  --ease-spring:  0.4s cubic-bezier(0.16, 1, 0.3, 1);
  --ease-fast:    0.15s ease-out;

  /* === Z-Index Scale === */
  --z-below:   -1;
  --z-base:     0;
  --z-raised:   1;
  --z-stacked:  2; /* component-local stacked layer (lab cards, org bridge, etc.) */
  --z-float:    5;
  --z-dropdown: 10;
  --z-sticky:   100;
  --z-overlay:  1000;
  --z-modal:    10000;
  --z-toast:    11000;
  --z-top:      99999;
  --z-supreme:  1000000;

  /* === Layout === */
  --max-width: 1200px;

  /* === Quality Pass Aliases (prevent silent fallbacks on undefined vars) === */
  --black: #000000;                    /* alias of --dark for legacy refs */
  --accent: var(--orange);              /* generic accent === brand orange */
  --text-color: var(--text-primary);    /* generic text color alias */
  --font-heading: 'Inter', sans-serif;  /* heading font family */
  --radius-md: 10px;                    /* between --radius (8px) and --radius-lg (12px) */
  --teal-a50: rgba(12, 138, 127, 0.50); /* missing 50% teal alpha */
  --holo-x: 50%;                        /* holographic effect x (JS-overridden on mousemove) */
  --holo-y: 50%;                        /* holographic effect y (JS-overridden on mousemove) */
}

/* --- Reset & Base --- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

.skip-link {
    position: absolute;
    top: -100%;
    left: 16px;
    z-index: var(--z-modal);
    padding: 12px 24px;
    background: var(--dark, #0a0a0a);
    color: var(--teal-light, #5eead4);
    border: 2px solid var(--teal-light, #5eead4);
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    transition: top 0.2s ease;
}
.skip-link:focus,
.skip-link:focus-visible {
    top: 16px;
    outline: 2px solid var(--teal-light, #5eead4);
    outline-offset: 2px;
}

.bluf-text {
    font-size: 0.95rem;
    color: var(--text-color);
    margin-bottom: 0.5rem;
    border-left: 3px solid var(--accent);
    padding-left: 1rem;
}

::selection {
  background: var(--teal-a35);
  color: var(--white);
}

/* ============================================
   QA10 CURSOR â€” Tasks 06, 07, 08
   Custom magnetic cursor Â· Context labels Â· Trail glow
   ============================================ */

/* Hide native cursor on non-touch devices — only when JS cursor is ready */
@media (pointer: fine) {
  body.cursor-ready *,
  body.cursor-ready *::before,
  body.cursor-ready *::after {
    cursor: none !important;
  }
  /* Restore cursor on form inputs and modals */
  body.cursor-ready input,
  body.cursor-ready textarea,
  body.cursor-ready select,
  body.cursor-ready input::placeholder {
    cursor: text !important;
  }
  body.cursor-ready input[type="range"] {
    cursor: grab !important;
  }
  body.cursor-ready .blueprint-modal.is-active,
  body.cursor-ready .blueprint-modal.is-active * {
    cursor: auto !important;
  }
  body.cursor-ready .blueprint-close {
    cursor: pointer !important;
  }
}

/* Trail canvas â€” full viewport, always beneath everything */
.trail-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: var(--z-modal);
}

/* --- Liquid Blend-Mode Custom Cursor (Task 18) --- */
.qa10-cursor {
  position: fixed;
  top: 0;
  left: 0;
  width: 20px;
  height: 20px;
  pointer-events: none;
  z-index: var(--z-toast);
  mix-blend-mode: difference;
  display: flex;
  justify-content: center;
  align-items: center;
  /* Hidden until first real mouse movement — prevents stuck-at-corner glitch */
  opacity: 0;
  transition: opacity 260ms ease-out;
  /* NO transition on transform — position must be frame-accurate.
     Smoothing happens via JS lerp in cursor.js tick(). */
  will-change: transform, opacity;
  contain: layout style paint;
}

.qa10-cursor.is-visible {
  opacity: 1;
}

.cursor-dot {
  width: 6px;
  height: 6px;
  background: #fff; /* Pure white for maximum inversion */
  border-radius: var(--radius-full);
}

.cursor-ring {
  position: absolute;
  width: 40px;
  height: 40px;
  border: 1px solid var(--white-a50);
  border-radius: var(--radius-full);
  transition: transform var(--ease-default), opacity var(--ease-default), background-color var(--ease-default), border-color var(--ease-default);
}

.qa10-cursor.is-cta .cursor-ring,
.qa10-cursor.is-link .cursor-ring,
.qa10-cursor.is-card .cursor-ring {
  width: 60px;
  height: 60px;
  background: var(--white-a10);
  border-color: #fff;
}

/* Context label */
.cursor-label {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(16px, -50%);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--white);
  white-space: nowrap;
  opacity: 0;
  transition: opacity var(--ease-fast);
  pointer-events: none;
}

/* --- States --- */

/* Hovering a CTA button: ring expands, fills orange */
.qa10-cursor.is-cta .cursor-ring {
  width: 52px;
  height: 52px;
  border-color: var(--orange);
  background: var(--orange-a8);
}

.qa10-cursor.is-cta .cursor-dot {
  background: var(--orange);
  width: 6px;
  height: 6px;
}

/* Hovering a card: ring expands, teal tint */
.qa10-cursor.is-card .cursor-ring {
  width: 56px;
  height: 56px;
  border-color: var(--teal-light);
  background: var(--teal-a6);
}

/* Hovering a link: ring shrinks, white */
.qa10-cursor.is-link .cursor-ring {
  width: 20px;
  height: 20px;
  border-color: var(--white-a80);
}

.qa10-cursor.is-link .cursor-dot {
  opacity: 0;
}

/* Sticky/magnetic state: ring pulses orange */
.qa10-cursor.is-magnetic .cursor-ring {
  width: 60px;
  height: 60px;
  border-color: var(--orange);
  background: var(--orange-a10);
  animation: cursorPulse 1.2s ease-in-out infinite;
}

/* Label visible */
.qa10-cursor.has-label .cursor-label {
  opacity: 1;
}

/* Clicking: squish */
.qa10-cursor.is-clicking .cursor-ring {
  transform: translate(-50%, -50%) scale(0.75);
}

.qa10-cursor.is-clicking .cursor-dot {
  transform: translate(-50%, -50%) scale(1.5);
}

@keyframes cursorPulse {

  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(249, 115, 22, 0.3);
  }

  50% {
    box-shadow: 0 0 0 8px rgba(249, 115, 22, 0);
  }
}

/* ============================================
   QA10 INTERACTIVITY CSS â€” Tasks 11 & 12
   ============================================ */

/* --- 12. Case Study Expansion Panels --- */
.case-card {
  position: relative;
  overflow: hidden;
  transition: transform var(--ease-spring), box-shadow var(--ease-smooth);
}

.case-card:hover, .case-card.is-expanded, .case-card:focus-within {
  box-shadow: inset 0 0 0 1px var(--white-a20), 0 8px 30px var(--black-a60);
  transform: translateY(-2px);
}

.case-expand {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows var(--ease-spring);
}

.case-card.is-expanded .case-expand,
.case-card:hover .case-expand {
  grid-template-rows: 1fr;
}

.case-expand-inner {
  overflow: hidden;
  padding-top: 20px;
  border-top: 1px solid var(--white-a5);
  margin-top: 15px;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity var(--ease-smooth) 0.1s, transform var(--ease-smooth) 0.1s;
}

.case-card.is-expanded .case-expand-inner,
.case-card:hover .case-expand-inner {
  opacity: 1;
  transform: translateY(0);
}

.case-expand-hint {
  text-align: center;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--teal-light);
  margin-top: 15px;
  padding: 12px;
  background: var(--teal-light-a5);
  border-radius: var(--radius);
  transition: opacity var(--ease-default), background var(--ease-default);
  cursor: pointer;
  display: block;
}

.case-card:hover .case-expand-hint,
.case-card.is-expanded .case-expand-hint {
  opacity: 0;
  pointer-events: none;
}

/* KPIs in Expand */
.case-kpis {
  display: flex;
  gap: 15px;
  margin-bottom: 20px;
}
.case-kpi {
  background: var(--teal-a8);
  padding: 10px 15px;
  border-radius: var(--radius);
  flex: 1;
  display: flex;
  flex-direction: column-reverse; /* WartoĹ›Ä‡(dd) nad etykietÄ…(dt) */
  margin: 0;
}
.kpi-val {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--teal-light);
  margin: 0;
}
.kpi-lbl {
  font-size: 0.65rem;
  color: var(--white-a60);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 2px;
}

/* Timeline */
.case-timeline {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 20px;
  position: relative;
}
.case-timeline::before {
  content: '';
  position: absolute;
  left: 4px;
  top: 6px;
  bottom: 6px;
  width: 1px;
  background: var(--white-a10);
}
.ct-step {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.85rem;
  color: var(--white-a70);
}
.ct-dot {
  width: 9px;
  height: 9px;
  border-radius: var(--radius-full);
  background: var(--white-a20);
  z-index: var(--z-raised);
}
.ct-dot.active {
  background: var(--teal-light);
  box-shadow: 0 0 8px var(--teal-light);
}

.case-quote {
  font-style: italic;
  font-size: 0.9rem;
  color: var(--white-a85);
  border-left: 3px solid var(--orange);
  padding-left: 15px;
  margin: 0;
}


/* --- 11. Process Mining Live Demo (Canvas Enhanced) --- */
.process-mining-demo {
  margin-top: 60px;
  background: rgba(10, 10, 10, 0.4);
  border: none;
  border-radius: var(--radius);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-glow);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  transition: box-shadow var(--ease-default), transform var(--ease-default);
}

.pm-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 30px;
  border-bottom: 1px solid var(--white-a5);
  background: var(--black-a20);
}

.pm-title {
  display: flex;
  flex-direction: column;
}

.pm-badge {
  display: inline-block;
  background: var(--orange-a15);
  color: var(--orange);
  font-family: 'Space Mono', monospace;
  font-size: 0.65rem;
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  margin-bottom: 6px;
  letter-spacing: 0.05em;
  font-weight: 700;
  text-transform: uppercase;
  max-width: fit-content;
}

.pm-title h4 {
  font-size: 1.15rem;
  margin: 0;
  color: var(--white);
}

.pm-status {
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--teal-light);
  transition: color var(--ease-default);
  padding: 6px 16px;
  background: var(--teal-a10);
  border-radius: var(--radius-pill);
  display: flex;
  align-items: center;
  gap: 8px;
}
.pm-status::before {
  content: '';
  display: inline-block;
  width: 8px; height: 8px;
  border-radius: var(--radius-full);
  background: currentColor;
  box-shadow: 0 0 8px currentColor;
}
.pm-status.pm-warn-text { color: var(--orange); background: var(--orange-a10); }
.pm-status.pm-fix-text { color: var(--teal-light); background: var(--teal-a20); }

.pm-canvas-wrap {
  width: 100%;
  height: 380px; /* Taller canvas for better visualization */
  position: relative;
  background: radial-gradient(ellipse at center, rgba(12, 138, 127, 0.05) 0%, transparent 70%);
}

.pm-canvas {
  width: 100%;
  height: 100%;
  display: block;
}

.pm-footer {
  padding: 16px 30px;
  background: var(--black-a15);
  border-top: 1px solid var(--white-a3);
  display: flex;
  justify-content: center;
}

.pm-legend {
  display: flex;
  gap: 24px;
  font-size: 0.75rem;
  color: var(--white-a70);
  font-weight: 500;
}
.pm-legend-item { display: flex; align-items: center; gap: 6px; }
.pm-ok { color: var(--white-a40); }
.pm-warn { color: var(--orange); }
.pm-fix { color: var(--teal-light); }


/* ============================================
   QA10 EXPERIENCE CSS â€” Tasks 01â€“05
   ============================================ */

/* --- 01. Cinematic Intro Overlay --- */
.intro-overlay {
  position: fixed;
  inset: 0;
  z-index: var(--z-top);
  background: var(--dark);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transition: opacity 0.85s cubic-bezier(0.4, 0, 0.2, 1),
    transform 0.85s cubic-bezier(0.4, 0, 0.2, 1);
}

.intro-overlay.exit {
  opacity: 0;
  transform: translateY(-3%);
  pointer-events: none;
}

.intro-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.intro-logo-wrap {
  position: relative;
  z-index: var(--z-raised);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.intro-logo {
  width: 280px;
  height: auto;
  opacity: 0;
  transform: scale(0.6);
  filter: drop-shadow(0 0 30px rgba(12, 138, 127, 0.6));
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.intro-logo.visible {
  opacity: 1;
  transform: scale(1);
}

.intro-wordmark {
  font-size: 3.5rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  color: var(--white);
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.05s,
    transform 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.05s;
  background: linear-gradient(90deg, var(--white) 30%, var(--teal-light) 70%, var(--orange-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.intro-wordmark.visible {
  opacity: 1;
  transform: translateY(0);
}

.intro-tagline {
  position: relative;
  z-index: var(--z-raised);
  margin-top: 28px;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--teal-light);
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.intro-tagline.visible {
  opacity: 0.85;
  transform: translateY(0);
}

/* --- 04. Kinetic Typography (Typewriter Effect) --- */
.kinetic-mask {
  display: inline-block;
  overflow: visible;
  vertical-align: bottom;
  position: relative;
  height: 1.15em;
}

.kinetic-word {
  color: var(--orange);
  -webkit-text-fill-color: var(--orange);
  background: none !important;
  display: inline-block;
  position: relative;
  white-space: nowrap;
  will-change: opacity;
  transition: opacity 0.3s ease;
}

/* Blinking cursor (always visible, blinks in pauses) */
.kinetic-word.typewriter-cursor::after {
  content: '|';
  color: var(--orange);
  -webkit-text-fill-color: var(--orange);
  font-weight: 300;
  margin-left: 1px;
  animation: cursorBlink 0.7s ease-in-out infinite;
}

/* During typing: cursor stays solid (no blink) */
.kinetic-word.typing.typewriter-cursor::after {
  animation: none;
  opacity: 1;
}

/* Fade-out phase */
.kinetic-word.typewriter-fade-out {
  opacity: 0;
  transition: opacity 0.3s ease;
}

@keyframes cursorBlink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

/* --- 05. Hero Particle Canvas --- */
.hero-particle-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: auto; /* Allow mouse interaction for fractals */
  z-index: var(--z-raised); /* Above background, below logo */
}

.hero-visual {
  position: relative;
}

/* --- Scroll-Driven: After intro, all .reveal elements become visible.
       GSAP manages its own opacity/transform via inline styles.
       The !important is required to override .reveal { opacity: 0 } base rule. --- */
body.intro-done .reveal {
  opacity: 1 !important;
  transform: none !important;
  filter: none !important;
}

/* --- Scroll Progress Bar --- */
.scroll-progress-hud {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--white-a3);
  z-index: var(--z-modal);
  pointer-events: none;
}

.scroll-progress {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg,
    var(--teal-dark) 0%,
    var(--teal-light) 50%,
    var(--orange) 100%);
  box-shadow: 0 0 12px rgba(20, 184, 166, 0.6),
              0 0 4px rgba(20, 184, 166, 0.9);
  transform-origin: left center;
  will-change: width;
  transition: width 80ms linear;
}

/* Right-edge glow dot on progress */
.scroll-progress::after {
  content: '';
  position: absolute;
  top: 50%;
  right: 0;
  width: 8px;
  height: 8px;
  background: var(--orange);
  border-radius: var(--radius-full);
  transform: translate(50%, -50%);
  box-shadow: 0 0 12px var(--orange), 0 0 4px #fff;
  opacity: 0;
  transition: opacity 200ms ease-out;
}

.navbar.scrolled ~ .scroll-progress-hud .scroll-progress::after,
body:has(.navbar.scrolled) .scroll-progress::after {
  opacity: 1;
}

.telemetry-label {
  position: absolute;
  top: 10px;
  right: 20px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.65rem;
  color: var(--teal-light);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  pointer-events: none;
  background: var(--black-a60);
  padding: 4px 10px;
  border-left: 2px solid var(--teal-light);
  backdrop-filter: blur(10px);
  opacity: 0.8;
}




/* --- Grain Overlay --- */
.grain-overlay {
  position: fixed;
  inset: 0;
  z-index: var(--z-modal);
  pointer-events: none;
  opacity: 0.015;
  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: 200px 200px;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

/* Mobile drawer scroll lock — replaces position:fixed hack in JS */
html.menu-open,
html.menu-open body {
  overflow: hidden;
  touch-action: none;
}

/* Magnetic cursor active state — static shadow so compositor handles it */
.btn-primary.is-magnetic-active,
.nav-cta.is-magnetic-active {
  box-shadow: 0 10px 30px rgba(249, 115, 22, 0.25);
  transition: box-shadow 180ms ease-out;
}

/* ============================================
   GLOBAL :focus-visible POLISH
   Keyboard users get a clear outline; mouse users don't.
   ============================================ */
.btn-primary:focus-visible,
.btn-secondary:focus-visible,
.btn:focus-visible,
.nav-cta:focus-visible,
.hamburger:focus-visible,
.lang-switcher a:focus-visible,
button:focus-visible,
[role="button"]:focus-visible {
  outline: 2px solid var(--teal-light);
  outline-offset: 3px;
  border-radius: 4px;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--dark);
  color: var(--text-primary);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

a {
  color: var(--teal-light);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--orange-light);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

ul {
  list-style: none;
}

/* --- Container --- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* --- Typography --- */
h1,
h2,
h3,
h4 {
  color: var(--text-heading);
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(2.4rem, 5vw, 3.6rem);
}

h2 {
  font-size: clamp(1.9rem, 3.5vw, 2.6rem);
}

h3 {
  font-size: clamp(1.15rem, 2.5vw, 1.4rem);
  letter-spacing: -0.01em;
}

p {
  color: var(--text-secondary);
  font-size: 1.05rem;
  line-height: 1.7;
}

.section-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  background: var(--white-a3);
  color: var(--gray-light);
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  font-size: var(--text-sm);
  font-weight: 500;
  text-transform: none;
  letter-spacing: 0;
  margin-bottom: var(--space-5);
  border: none;
  box-shadow: var(--shadow-glow);
}

.section-badge.orange {
  background: var(--orange-a10);
  color: var(--orange-light);
  border-color: var(--orange-a20);
}

.section-title {
  margin-bottom: 20px;
}

.section-desc {
  max-width: 660px;
  margin-bottom: var(--space-12);
  font-size: 1.1rem;
}

.highlight-orange {
  color: var(--orange);
}

.highlight-teal {
  color: var(--teal-light);
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 36px;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  border: none;
  cursor: pointer;
  transition: transform var(--transition), opacity var(--transition), box-shadow var(--transition), background-color var(--transition), border-color var(--transition), color var(--transition);
  text-decoration: none;
  position: relative;
  overflow: hidden;
  text-transform: none;
  letter-spacing: 0;
}

.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--white-a8);
  opacity: 0;
  transition: var(--transition);
}

.btn:hover::after {
  opacity: 1;
}

.btn:active {
  transform: scale(0.97);
}

.btn.btn-primary {
  background: var(--gradient-orange);
  color: #0A0A0A;
  -webkit-text-fill-color: #0A0A0A;
  box-shadow: 0 4px 20px var(--orange-a30);
  font-weight: 700;
}

.btn.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 40px var(--orange-a50);
  color: #0A0A0A;
  -webkit-text-fill-color: #0A0A0A;
}

.btn-secondary {
  background: transparent;
  color: var(--orange);
  box-shadow: inset 0 0 0 2px var(--orange);
}

.btn-secondary:hover,
.btn-secondary:focus-visible {
  background: var(--orange-a10);
  box-shadow: inset 0 0 0 2px var(--orange);
}

.btn-sm {
  padding: 12px 28px;
  font-size: 0.88rem;
}

/* Focus visible for accessibility */
.btn:focus-visible,
input:focus-visible,
select:focus-visible,
a:focus-visible {
  outline: 2px solid var(--teal-light);
  outline-offset: 3px;
}

/* --- Navigation --- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: var(--z-overlay);
  padding: 24px 0;
  /* Task 3.7: padding removed from transition (triggers layout reflow).
     Scrolled padding switches instantly; smooth visual via background/shadow. */
  transition: background-color 420ms cubic-bezier(0.22, 1, 0.36, 1),
              box-shadow 420ms cubic-bezier(0.22, 1, 0.36, 1),
              backdrop-filter 420ms cubic-bezier(0.22, 1, 0.36, 1),
              border-color 420ms cubic-bezier(0.22, 1, 0.36, 1);
  background: transparent;
  will-change: background-color;
}

.navbar.scrolled {
  background: rgba(6, 12, 16, 0.72);
  backdrop-filter: blur(16px) saturate(1.4);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  border-bottom: 1px solid rgba(20, 184, 166, 0.08);
  box-shadow:
    0 1px 0 0 var(--white-a8) inset,
    0 10px 40px -10px rgba(0, 0, 0, 0.6);
  padding: 10px 0;
}

/* Subtle top accent line — appears only when scrolled, animates in */
.navbar::before {
  content: '';
  position: absolute;
  inset: 0 0 auto 0;
  height: 1px;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(20, 184, 166, 0) 10%,
    rgba(20, 184, 166, 0.45) 50%,
    rgba(249, 115, 22, 0.35) 70%,
    transparent 100%);
  opacity: 0;
  transform: scaleX(0.3);
  transform-origin: center;
  transition: opacity 520ms cubic-bezier(0.22, 1, 0.36, 1),
              transform 620ms cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none;
}

.navbar.scrolled::before {
  opacity: 1;
  transform: scaleX(1);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-logo span {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--white);
  letter-spacing: 0.5px;
  background: var(--gradient-orange);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.nav-logo-img {
  height: 28px;
  width: auto;
  object-fit: contain;
}

.nav-links {
  display: flex;
  gap: 32px;
  align-items: center;
  position: relative;
}

.nav-links a {
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 0.85rem;
  position: relative;
  padding: 4px 0;
  letter-spacing: 0.01em;
  transition: color 260ms cubic-bezier(0.22, 1, 0.36, 1);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gradient-orange);
  border-radius: 2px;
  box-shadow: 0 0 12px rgba(249, 115, 22, 0.5),
              0 0 4px rgba(249, 115, 22, 0.8);
  /* Task 3.7: animated via transform: scaleX (GPU-safe) instead of left/right. */
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 380ms cubic-bezier(0.22, 1, 0.36, 1),
              opacity 260ms ease-out;
  opacity: 0;
  pointer-events: none;
}

.nav-links a:hover {
  color: var(--white);
}

.nav-links a:hover::after,
.nav-links a:focus-visible::after,
.nav-links a.active::after {
  transform: scaleX(1);
  opacity: 1;
}

.nav-links a.active {
  color: var(--white);
}

.nav-links a:focus-visible {
  color: var(--white);
  outline: 2px solid var(--teal-light);
  outline-offset: 3px;
  border-radius: 2px;
}

.navbar .nav-links .nav-cta {
  background: var(--gradient-orange);
  color: #0A0A0A;
  -webkit-text-fill-color: #0A0A0A;
  padding: 10px 24px;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: 0.85rem;
  box-shadow: 0 2px 12px var(--orange-a25);
}

.navbar .nav-links .nav-cta::after {
  display: none;
}

.navbar .nav-links .nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px var(--orange-a40);
}

/* Mobile menu */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 8px;
  position: relative;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  transition: background-color 220ms ease-out;
}

.hamburger:hover {
  background-color: var(--white-a5);
}

.hamburger:focus-visible {
  outline: 2px solid var(--teal-light);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: var(--radius-xs);
  transform-origin: center;
  transition: transform 380ms cubic-bezier(0.68, -0.55, 0.27, 1.55),
              opacity 200ms ease-out,
              background-color 220ms ease-out;
}

.hamburger.active span {
  background: var(--teal-light);
}

.hamburger.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.hamburger.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Backdrop (hidden at all sizes by default, shown via JS .active at mobile) */
.nav-backdrop {
  display: none;
}

/* --- Hero Section --- */
.hero {
  min-height: 100vh;   /* fallback for pre-2022 browsers */
  min-height: 100svh;  /* collapsed viewport — no jump baseline */
  min-height: 100dvh;  /* dynamic — resolves live as address bar retracts */
  display: flex;
  align-items: center;
  background: radial-gradient(ellipse at 70% 30%, rgba(12, 138, 127, 0.08) 0%, var(--dark) 70%),
    radial-gradient(ellipse at 30% 80%, rgba(249, 115, 22, 0.05) 0%, transparent 60%),
    var(--dark);
  position: relative;
  overflow: hidden;
  padding: 140px 0 80px;
}

.hero::before {
  content: '';
  position: absolute;
  top: -10%;
  right: -5%;
  width: 900px;
  height: 900px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.03) 0%, transparent 60%);
  filter: blur(60px);
  opacity: 0.4;
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(0deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at 50% 50%, black 20%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 50%, black 20%, transparent 80%);
  pointer-events: none;
}

.hero .container {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 60px;
  position: relative;
  z-index: var(--z-raised);
}

.hero-content {
  max-width: 620px;
}

/* Hero staggered entrance - Handled by GSAP now */
.hero-content .section-badge {
  margin-bottom: 28px;
  font-size: 0.72rem;
  letter-spacing: 2.5px;
}

.hero-content h1 {
  margin-bottom: 16px;
  background: linear-gradient(135deg, var(--white) 0%, var(--gray-light) 50%, var(--orange-light) 100%);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradientShift 8s ease-in-out infinite 1.5s;
}

@keyframes gradientShift {

  0%,
  100% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }
}

.hero-content .hero-subtitle {
  font-size: var(--text-xl);
  font-weight: 600;
  color: var(--teal-light);
  margin-bottom: var(--space-5);
  letter-spacing: 0.02em;
}

.hero-content>p:last-of-type {
  font-size: 1.1rem;
  margin-bottom: 36px;
  color: var(--gray);
  line-height: 1.7;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

.hero-trust {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 20px 0;
  border-top: 1px solid var(--white-a6);
}

.hero-trust-item strong {
  display: block;
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 2px;
}

.hero-trust-item span {
  font-size: 0.78rem;
  color: var(--text-secondary);
  line-height: 1.3;
}

.hero-trust-divider {
  width: 1px;
  height: 36px;
  background: var(--white-a8);
}

.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  animation: heroFadeScale 1s cubic-bezier(0.16, 1, 0.3, 1) 0.4s both;
  pointer-events: auto; /* Required for mousemove listener */
}

@keyframes heroFadeScale {
  from {
    opacity: 0;
    transform: scale(0.85);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

.hero-logo-container {
  position: relative;
  width: 380px;
  height: 380px;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, rgba(8, 12, 16, 0.85), rgba(20, 25, 30, 0.7));
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--white-a15);
  box-shadow:
    0 40px 80px var(--black-a50),
    inset 0 1px 0 var(--white-a15),
    inset 0 0 60px var(--black-a40),
    0 0 60px var(--teal-a20);
}

.hero-logo-container::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: var(--radius-full);
  padding: 2px;
  background: linear-gradient(135deg, rgba(249, 115, 22, 0.8), rgba(12, 138, 127, 0.8), transparent 50%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.hero-logo-container::after {
  content: '';
  position: absolute;
  width: 220px;
  height: 220px;
  background: radial-gradient(circle, rgba(255,255,255,0.08) 0%, transparent 60%);
  border-radius: var(--radius-full);
  pointer-events: none;
  z-index: var(--z-raised);
}

.hero-logo-container img {
  width: 340px;
  height: auto;
  filter: drop-shadow(0 15px 30px rgba(0, 0, 0, 0.95)) drop-shadow(0 0 45px rgba(255, 255, 255, 0.1));
  animation: float 6s ease-in-out infinite;
  z-index: var(--z-float);
}

.hero-logo-ring {
  position: absolute;
  border-radius: var(--radius-full);
  border: 1px solid var(--white-a5);
  animation: spin 24s linear infinite;
  pointer-events: none;
}

.hero-logo-ring:nth-child(1) {
  inset: -40px;
  border-top-color: var(--orange);
  border-right-color: transparent;
  animation-duration: 14s;
}

.hero-logo-ring:nth-child(2) {
  inset: -80px;
  border-right-color: var(--teal-light);
  border-bottom-color: var(--white-a15);
  border-style: dashed;
  animation-duration: 20s;
  animation-direction: reverse;
}

.hero-logo-ring:nth-child(3) {
  inset: -120px;
  border-left-color: var(--white-a20);
  animation-duration: 30s;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes float {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-12px);
  }
}

/* --- Sections Base --- */
section {
  padding: 110px 0;
  position: relative;
  scroll-margin-top: 80px;
}

section:nth-child(even) {
  background: var(--dark-soft);
}

/* --- 1.2 Ukryta Fabryka Strat (Leaky Pipeline) --- */
.pipeline-wrapper {
  position: relative;
  width: 100%;
  margin-top: 60px;
  background: var(--dark-card);
  border: 1px solid var(--orange-a15);
  border-radius: var(--radius-2xl);
  overflow: visible;
  box-shadow: 0 16px 48px var(--black-a30);
  padding: 40px;
  min-height: 500px;
}

.pipeline-canvas {
  overflow: hidden;
  border-radius: var(--radius-2xl);
}

/* --- HUD Loss Counter --- */
.pipeline-counter {
  position: absolute;
  top: 30px;
  right: 40px;
  z-index: var(--z-dropdown);
  background: rgba(16, 20, 24, 0.85);
  padding: 18px 26px;
  border-radius: var(--radius-xl);
  border: 1px solid var(--orange-a30);
  box-shadow:
    0 20px 40px var(--black-a60),
    0 0 30px var(--orange-a15),
    inset 0 0 20px var(--orange-a5);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  min-width: 250px;
  transition: transform var(--ease-spring), opacity var(--ease-spring), box-shadow var(--ease-spring), background-color var(--ease-spring);
}

/* Kiedy najedziemy na problem, licznik staje siÄ™ bardziej agresywny i 'alarmujÄ…cy' */
.pipeline-wrapper.is-leaking .pipeline-counter {
  border-color: rgba(255, 94, 0, 0.8);
  box-shadow: 
    0 20px 40px var(--black-a60),
    0 0 60px rgba(255, 94, 0, 0.35),
    inset 0 0 30px rgba(255, 94, 0, 0.15);
  transform: scale(1.02);
}

.counter-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  border-bottom: 1px solid var(--white-a6);
  padding-bottom: 10px;
}

.pulsing-dot.red {
  width: 8px;
  height: 8px;
  background: #ff5e00;
  border-radius: var(--radius-full);
  box-shadow: 0 0 12px #ff5e00;
  animation: pulseDot 1.2s infinite alternate;
}

@keyframes pulseDot {
  from { opacity: 0.3; transform: scale(0.8); }
  to { opacity: 1; transform: scale(1.3); }
}

.counter-label {
  font-size: 0.75rem;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-weight: 700;
  opacity: 0.9;
}

.counter-body {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 4px;
}

.counter-value {
  font-size: 2.4rem;
  font-weight: 800;
  color: #ff5e00;
  font-variant-numeric: tabular-nums;
  letter-spacing: -1px;
  text-shadow: 0 0 25px rgba(255, 94, 0, 0.4);
}

.counter-currency {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--orange);
  opacity: 0.8;
}

.counter-footer {
  font-size: 0.72rem;
  color: #8A8A94;
  letter-spacing: 0.5px;
}

/* 2: Background Canvas */
.pipeline-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: var(--z-raised);
  pointer-events: none;
}

/* 1 & 4 & 6: Pipeline Track and Nodes */
.pipeline-track {
  position: relative;
  z-index: var(--z-float);
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 120px;
  height: 200px; /* Space for dropping particles and cards */
}

/* Mobile: vertical waterfall */
@media (max-width: 992px) {
  .pipeline-wrapper { padding: 30px 20px; min-height: 600px; }
  .pipeline-track {
    flex-direction: column;
    align-items: flex-start;
    margin-top: 80px;
    height: auto;
    gap: 80px;
    padding-left: 20px;
  }
}

.pipeline-node {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  width: 25%;
}

@media (max-width: 992px) {
  .pipeline-node {
    flex-direction: row;
    width: 100%;
    align-items: flex-start;
  }
}

.node-hotspot {
  position: relative;
  width: 50px;
  height: 50px;
  background: var(--orange-a10);
  border: 2px solid var(--orange);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  z-index: var(--z-raised);
  box-shadow: 0 4px 15px var(--orange-a20);
}

.node-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

.node-icon svg {
  width: 20px;
  height: 20px;
  stroke: var(--orange);
  filter: drop-shadow(0 0 12px rgba(249, 115, 22, 0.8));
}

/* Hotspot is now statically orange, no hover changes */

.node-pulse {
  display: none; /* Removed to keep icons static */
}

/* 6: Glassmorphism Detail Cards */
.node-card {
  position: absolute;
  top: 70px;
  left: 50%;
  transform: translateX(-50%) translateY(-10px);
  width: max-content;
  max-width: 280px;
  word-wrap: break-word;
  background: rgba(20, 25, 30, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--white-a8);
  border-radius: var(--radius-lg);
  padding: 18px 20px;
  opacity: 0;
  transition: transform var(--ease-spring), opacity var(--ease-spring), box-shadow var(--ease-spring);
  pointer-events: none;
  box-shadow:
    0 10px 40px var(--black-a80),
    0 0 20px var(--orange-a5);
  z-index: var(--z-sticky);
}

/* Prevent cards from touching pipeline edges */
.pipeline-node:first-child .node-card { left: 0; transform: translateX(0) translateY(-10px); }
.pipeline-node:last-child .node-card { left: auto; right: 0; transform: translateX(0) translateY(-10px); }

/* Mobile positioning */
@media (max-width: 992px) {
  .node-card {
    top: 0;
    left: 70px !important;
    right: auto !important;
    transform: translateX(0) translateY(-10px) !important;
    width: calc(100% - 90px);
  }
}

.pipeline-node:hover .node-card,
.pipeline-node.active .node-card {
  opacity: 1;
  pointer-events: auto;
}
.pipeline-node:hover .node-card { transform: translateX(-50%) translateY(0); }
.pipeline-node:first-child:hover .node-card { transform: translateX(0) translateY(0); }
.pipeline-node:last-child:hover .node-card { transform: translateX(0) translateY(0); }

.node-card h3 {
  font-size: 0.95rem;
  color: var(--orange);
  margin-bottom: 8px;
}

.node-card p {
  font-size: 0.8rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 12px;
}

.node-stat {
  display: inline-block;
  font-size: 0.75rem;
  color: var(--orange);
  background: var(--orange-a15);
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  font-weight: 700;
}

/* --- AiP Section --- */
.aip-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  counter-reset: step;
}

.aip-step {
  background: rgba(10, 10, 10, 0.4);
  border-radius: var(--radius);
  padding: 36px 24px;
  text-align: center;
  border: none;
  position: relative;
  transition: box-shadow var(--ease-default), transform var(--ease-default);
  box-shadow: var(--shadow-glow);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.aip-step:hover {
  transform: translateY(-6px);
  border-color: var(--teal-a25);
  box-shadow: 0 16px 48px var(--teal-a10);
}

.step-number {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-full);
  background: var(--gradient-teal);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--white);
  margin: 0 auto 20px;
  box-shadow: 0 4px 20px var(--teal-a30);
}

.aip-step h3 {
  margin-bottom: 12px;
  font-size: 1.05rem;
}

.aip-step p {
  font-size: 0.9rem;
  line-height: 1.6;
}

.aip-connector {
  display: flex;
  justify-content: center;
  gap: 32px;
  margin-top: 40px;
}

/* --- AiP Variant Cards --- */
.aip-variants {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 56px;
}

.aip-variant-card {
  background: var(--dark-card);
  border-radius: var(--radius);
  padding: 36px 28px;
  text-align: center;
  border: 1px solid var(--teal-a8);
  transition: transform var(--ease-smooth), opacity var(--ease-smooth), box-shadow var(--ease-smooth), background-color var(--ease-smooth), border-color var(--ease-smooth);
  position: relative;
}

.aip-variant-card.featured {
  border-color: var(--orange);
  box-shadow: 0 0 40px var(--orange-a15);
}

.aip-variant-card.featured::before {
  content: 'Najczęściej wybierany';
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gradient-orange);
  color: var(--white);
  padding: 5px 22px;
  border-radius: var(--radius-pill);
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  white-space: nowrap;
  z-index: var(--z-float);
}

.aip-variant-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}

.aip-variant-card h4 {
  font-size: 1.25rem;
  margin-bottom: 12px;
}

.variant-price {
  font-size: 1.5rem;
  font-weight: 800;
  background: var(--gradient-teal);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--white-a5);
}

.aip-variant-card p {
  font-size: 0.88rem;
  line-height: 1.6;
}

/* --- SmartFlow Box --- */
.smartflow-box {
  margin-top: 56px;
  background: linear-gradient(135deg, rgba(249, 115, 22, 0.06), rgba(12, 138, 127, 0.06));
  border-radius: var(--radius);
  padding: 36px 40px;
  border: 1px solid var(--orange-a12);
  display: flex;
  align-items: center;
  gap: 28px;
}

.smartflow-icon {
  width: 60px;
  height: 60px;
  border-radius: var(--radius-full);
  background: var(--gradient-orange);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  flex-shrink: 0;
  box-shadow: 0 4px 16px var(--orange-a25);
}

.smartflow-box h3 {
  margin-bottom: 8px;
  font-size: 1.1rem;
}

.smartflow-box p {
  font-size: 0.95rem;
}

/* --- TFA Section --- */
.tfa-packages {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.tfa-packages--duo {
  grid-template-columns: repeat(2, 1fr);
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

@media (max-width: 600px) {
  .tfa-packages--duo {
    grid-template-columns: 1fr;
    max-width: 420px;
  }
}

.tfa-package {
  background: rgba(10, 10, 10, 0.4);
  border-radius: var(--radius);
  padding: 40px 32px;
  border: none;
  transition: box-shadow var(--ease-default), transform var(--ease-default);
  position: relative;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-glow);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.tfa-package.featured {
  border-color: var(--orange);
  box-shadow: 0 0 40px var(--orange-a12);
}

.tfa-package.featured::before {
  content: attr(data-badge);
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gradient-orange);
  color: var(--white);
  padding: 5px 22px;
  border-radius: var(--radius-pill);
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  z-index: var(--z-float);
}

.tfa-package:not(.featured):hover {
  box-shadow: inset 0 0 0 1px var(--white-a20), 0 8px 30px var(--black-a60);
  transform: translateY(-2px);
}

.tfa-package h3 {
  font-size: 1.35rem;
  margin-bottom: 10px;
}

.tfa-package .price {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--teal-light);
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--white-a5);
}

.tfa-package .price span {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.tfa-package ul {
  margin-bottom: 32px;
  flex: 1;
}

.tfa-package li {
  padding: 7px 0;
  font-size: 0.9rem;
  color: var(--text-secondary);
  display: flex;
  align-items: flex-start;
  gap: 10px;
  line-height: 1.5;
}

.tfa-package li::before {
  content: '✓';
  color: var(--teal-light);
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 1px;
}

/* --- Team Section --- */
/* --- LSO:ATOM Section --- */
.atom-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: var(--space-5);
}

.atom-card {
  background: rgba(10, 10, 10, 0.4);
  border-radius: var(--radius);
  padding: 24px 20px;
  border: none;
  transition: box-shadow var(--ease-default), transform var(--ease-default);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-glow);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.atom-number {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--teal-light);
  opacity: 0.5;
  letter-spacing: 2px;
  margin-bottom: 10px;
}

.atom-card:hover, .atom-card:focus-within {
  box-shadow: inset 0 0 0 1px var(--white-a20), 0 8px 30px var(--black-a60);
  transform: translateY(-2px);
}

.atom-card-icon {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  margin-bottom: 20px;
}

.atom-card-icon svg {
  filter: drop-shadow(0 0 12px rgba(255, 255, 255, 0.15));
  transition: transform var(--ease-smooth), filter var(--ease-smooth), opacity var(--ease-smooth);
}

.atom-card:hover .atom-card-icon svg {
  filter: drop-shadow(0 0 20px currentColor);
  transform: scale(1.1) translateY(-2px);
}

.atom-card h3 {
  font-size: 1rem;
  margin-bottom: 10px;
  color: var(--white);
}

.atom-card p {
  font-size: 0.85rem;
  line-height: 1.65;
  color: var(--text-secondary);
}

/* --- Team Section (old .team-* rules removed, replaced by .org-chart) --- */

/* --- Org Chart: Mission Control + Neural --- */
.org-chart {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  margin-top: 48px;
}

/* Bridge label */
.org-bridge-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--teal-light);
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.org-status-dot--board {
  background: var(--teal-light);
  box-shadow: 0 0 8px var(--teal-a30);
}

/* Command Bridge */
.org-bridge {
  display: flex;
  gap: 24px;
  justify-content: center;
  align-items: stretch;
  width: 100%;
  max-width: 900px;
  position: relative;
}

.org-bridge-card {
  flex: 1;
  max-width: 420px;
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 24px;
  background: rgba(10, 10, 10, 0.5);
  border-radius: var(--radius-lg);
  border: 1px solid var(--white-a8);
  box-shadow: var(--shadow-glow);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  position: relative;
  overflow: hidden;
  transition: transform var(--ease-default), box-shadow var(--ease-default);
}

.org-bridge-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-teal-md);
  border-color: var(--teal-a25);
}

/* Scan-line overlay */
.org-bridge-card .scan-line-overlay {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(255, 255, 255, 0.02) 2px,
    rgba(255, 255, 255, 0.02) 4px
  );
  pointer-events: none;
  z-index: var(--z-raised);
  animation: scanLineScroll 8s linear infinite;
}

@keyframes scanLineScroll {
  0% { transform: translateY(0); }
  100% { transform: translateY(20px); }
}

/* Radar pulse between cards */
.org-bridge-radar {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80px;
  height: 80px;
  pointer-events: none;
  z-index: var(--z-stacked);
}

.radar-ring {
  position: absolute;
  inset: 0;
  border-radius: var(--radius-full);
  border: 1px solid var(--teal-a30);
  animation: radarPulse 3s ease-out infinite;
}

.radar-ring:nth-child(2) { animation-delay: 1s; }
.radar-ring:nth-child(3) { animation-delay: 2s; }

@keyframes radarPulse {
  0% { transform: scale(0.3); opacity: 0.8; }
  100% { transform: scale(2.5); opacity: 0; }
}

/* Bridge avatar */
.org-avatar {
  width: 80px;
  height: 80px;
  min-width: 80px;
  border-radius: var(--radius-full);
  overflow: hidden;
  border: 2px solid var(--teal-a25);
  transition: transform var(--ease-smooth), opacity var(--ease-smooth), box-shadow var(--ease-smooth), border-color var(--ease-smooth);
}

.org-bridge-card:hover .org-avatar {
  border-color: var(--teal-light);
  box-shadow: 0 0 20px var(--teal-a25);
}

.org-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.org-avatar--placeholder {
  background: linear-gradient(135deg, var(--teal-a12), var(--orange-a8));
  display: flex;
  align-items: center;
  justify-content: center;
}

.org-avatar--placeholder span {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--teal-light);
  letter-spacing: 1px;
  opacity: 0.7;
}

/* Bridge info */
.org-bridge-info {
  flex: 1;
  min-width: 0;
}

.org-bridge-info h3 {
  font-size: 1.05rem;
  margin: 0 0 4px;
  line-height: 1.3;
  color: var(--white);
}

.org-title-primary {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--teal-light);
  margin-bottom: 10px;
}

.org-roles {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.org-role-tag {
  display: inline-block;
  background: var(--teal-a8);
  color: var(--text-secondary);
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.org-role-tag--accent {
  background: var(--orange-a10);
  color: var(--orange-light);
}

/* Neural Canvas */
.org-neural-canvas {
  width: 100%;
  max-width: 1100px;
  height: 100px;
  display: block;
  margin: 8px 0;
}

/* Division Panels Grid */
.org-panels {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  width: 100%;
}

/* Individual Panel */
.org-panel {
  background:
    radial-gradient(ellipse at 0% 0%, var(--div-accent-a8), transparent 60%),
    rgba(10, 10, 10, 0.4);
  border-radius: var(--radius);
  border: 1px solid var(--white-a5);
  border-left: 3px solid var(--div-accent, var(--teal-light));
  padding: 20px;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  transition: transform var(--ease-default), box-shadow var(--ease-default), border-color var(--ease-default);
}

.org-panel:hover {
  transform: translateY(-4px);
  border-color: var(--div-accent, var(--teal-light));
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4), 0 0 20px var(--div-accent-a8);
}

/* Division color modifiers */
.org-panel--data    { --div-accent: #2DD4BF; --div-accent-a8: rgba(45,212,191,0.08); --div-accent-a15: rgba(45,212,191,0.15); --div-accent-a30: rgba(45,212,191,0.30); }
.org-panel--analyst { --div-accent: #A78BFA; --div-accent-a8: rgba(167,139,250,0.08); --div-accent-a15: rgba(167,139,250,0.15); --div-accent-a30: rgba(167,139,250,0.30); }
.org-panel--funding { --div-accent: #3B82F6; --div-accent-a8: rgba(59,130,246,0.08); --div-accent-a15: rgba(59,130,246,0.15); --div-accent-a30: rgba(59,130,246,0.30); }
.org-panel--dev     { --div-accent: #F97316; --div-accent-a8: rgba(249,115,22,0.08); --div-accent-a15: rgba(249,115,22,0.15); --div-accent-a30: rgba(249,115,22,0.30); }

/* Panel header */
.org-panel-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--white-a5);
}

.org-status-dot {
  width: 8px;
  height: 8px;
  border-radius: var(--radius-full);
  background: var(--div-accent);
  box-shadow: 0 0 8px var(--div-accent-a30);
  animation: statusPulse 2s ease-in-out infinite;
}

@keyframes statusPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.org-panel-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: var(--div-accent);
  text-transform: uppercase;
}

/* Panel members */
.org-panel-members {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 16px;
}

.org-member {
  display: flex;
  align-items: center;
  gap: 10px;
}

.org-member-avatar {
  width: 36px;
  height: 36px;
  min-width: 36px;
  border-radius: var(--radius-full);
  overflow: hidden;
  border: 1.5px solid var(--div-accent-a30);
}

.org-member--head .org-member-avatar {
  width: 42px;
  height: 42px;
  min-width: 42px;
  border-color: var(--div-accent);
}

.org-member-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.org-member-avatar--placeholder {
  background: linear-gradient(135deg, var(--div-accent-a15), var(--div-accent-a8));
  display: flex;
  align-items: center;
  justify-content: center;
}

.org-member-avatar--placeholder span {
  font-size: 0.7rem;
  font-weight: 800;
  color: var(--div-accent);
  letter-spacing: 0.5px;
  opacity: 0.8;
}

.org-member--head .org-member-avatar--placeholder span {
  font-size: 0.8rem;
}

.org-member-info strong {
  display: block;
  font-size: 0.82rem;
  color: var(--white);
  line-height: 1.3;
}

.org-member--head .org-member-info strong {
  color: var(--div-accent);
}

.org-member-info span {
  display: block;
  font-size: 0.68rem;
  color: var(--text-secondary);
  line-height: 1.3;
}

/* Person slots grid */
.org-anon-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 12px;
  border-top: 1px dashed var(--white-a4);
}

.org-anon-grid--split {
  gap: 8px 8px;
}

.org-anon-group {
  display: flex;
  gap: 8px;
}

.org-anon-group + .org-anon-group {
  margin-left: 6px;
  padding-left: 10px;
  border-left: 1px solid var(--div-accent-a15);
}

/* Person silhouette slots */
.org-anon-dot {
  width: 30px;
  height: 30px;
  border-radius: var(--radius-full);
  background: var(--div-accent-a8);
  border: 1px solid var(--div-accent-a15);
  opacity: 0.5;
  transition: opacity var(--ease-default), border-color var(--ease-default), box-shadow var(--ease-default);
  position: relative;
  overflow: hidden;
}

.org-anon-dot::before {
  content: '';
  position: absolute;
  inset: 0;
  background-color: var(--div-accent);
  opacity: 0.5;
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Ccircle cx='12' cy='8' r='4'/%3E%3Cpath d='M20 21v-2a4 4 0 0 0-4-4H8a4 4 0 0 0-4 4v2'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Ccircle cx='12' cy='8' r='4'/%3E%3Cpath d='M20 21v-2a4 4 0 0 0-4-4H8a4 4 0 0 0-4 4v2'/%3E%3C/svg%3E");
  -webkit-mask-size: 65% 65%;
  mask-size: 65% 65%;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center 55%;
  mask-position: center 55%;
}

.org-panel:hover .org-anon-dot {
  opacity: 0.8;
  border-color: var(--div-accent-a30);
  box-shadow: 0 0 6px var(--div-accent-a15);
}

/* --- Case Studies Section --- */
.cases-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-6);
}

.case-card {
  background: rgba(10, 10, 10, 0.4);
  border-radius: var(--radius);
  overflow: hidden;
  border: none;
  transition: box-shadow var(--ease-default), transform var(--ease-default);
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-glow);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.case-card:hover {
  box-shadow: inset 0 0 0 1px var(--white-a20), 0 8px 30px var(--black-a60);
  transform: translateY(-2px);
}

.case-header {
  padding: 32px 32px 16px;
}

.case-industry {
  display: inline-block;
  background: var(--teal-a10);
  color: var(--teal-light);
  padding: 4px 14px;
  border-radius: var(--radius-pill);
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  margin-bottom: 14px;
}

.case-header h3 {
  margin-bottom: 6px;
  font-size: 1.3rem;
}

.case-card .case-subtitle {
  color: var(--text-secondary);
  font-size: var(--text-base);
  line-height: 1.5;
}

.case-body {
  padding: 0 32px 20px;
  flex: 1;
}

.case-body p {
  font-size: 0.9rem;
  line-height: 1.65;
}

.case-result {
  padding: 20px 32px;
  background: var(--teal-a4);
  border-top: 1px solid var(--teal-a8);
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: auto;
}

.case-result-value {
  font-size: 1.6rem;
  font-weight: 800;
  background: var(--gradient-teal);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  flex-shrink: 0;
}

.case-result-label {
  font-size: 0.8rem;
  color: var(--text-secondary);
  line-height: 1.4;
}

/* --- Case Simulations --- */
.case-card {
  background: rgba(10, 10, 10, 0.4);
  border: none;
  border-radius: var(--radius);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  transition: box-shadow var(--ease-default), transform var(--ease-default);
  position: relative;
  overflow: hidden;
  height: 100%;
  box-shadow: var(--shadow-glow);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.case-sim-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: var(--z-base);
  opacity: 0;
  transition: opacity var(--ease-smooth);
}

.case-card:hover .case-sim-canvas {
  opacity: 0.15;
}

.case-card > *:not(.case-sim-canvas) {
  position: relative;
  z-index: var(--z-raised);
}

/* --- Calculator Section --- */
.calculator-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}

.calculator-info h2 {
  margin-bottom: 16px;
}

.calculator-info p {
  margin-bottom: 36px;
}

.calc-methodology {
  background: var(--teal-a4);
  border-radius: var(--radius);
  padding: 28px;
  border: 1px solid var(--teal-a8);
}

.calc-methodology h4 {
  font-size: 0.95rem;
  color: var(--teal-light);
  margin-bottom: 18px;
}

.calc-methodology ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.calc-methodology li {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.55;
}

.calc-methodology li strong {
  color: var(--text-primary);
}

.calculator-box {
  background: rgba(10, 10, 10, 0.4);
  border-radius: var(--radius);
  padding: 40px;
  border: none;
  box-shadow: var(--shadow-glow);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  transition: box-shadow var(--ease-default), transform var(--ease-default);
}

.calc-group {
  margin-bottom: 28px;
}

.calc-group label {
  display: block;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 10px;
  font-size: 0.9rem;
}

.calc-group .range-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.calc-group .range-value {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--teal-light);
}

/* Custom range slider */
input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  border-radius: var(--radius-sm);
  background: var(--dark-soft);
  cursor: pointer;
}
input[type="range"]:focus-visible {
  outline: 2px solid var(--teal-light);
  outline-offset: 4px;
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 22px;
  height: 22px;
  border-radius: var(--radius-full);
  background: var(--gradient-teal);
  box-shadow: 0 2px 12px var(--teal-a40);
  cursor: pointer;
  transition: transform var(--ease-fast), opacity var(--ease-fast), box-shadow var(--ease-fast), background-color var(--ease-fast);
}

input[type="range"]::-webkit-slider-thumb:hover {
  transform: scale(1.2);
  box-shadow: 0 4px 20px var(--teal-a60);
}

input[type="range"]::-moz-range-thumb {
  width: 22px;
  height: 22px;
  border-radius: var(--radius-full);
  background: var(--gradient-teal);
  box-shadow: 0 2px 12px var(--teal-a40);
  cursor: pointer;
  border: none;
}

.calc-result {
  background: linear-gradient(135deg, rgba(12, 138, 127, 0.08), rgba(249, 115, 22, 0.06));
  border-radius: var(--radius);
  padding: 32px;
  text-align: center;
  border: 1px solid var(--teal-a15);
  margin-top: 20px;
}

.calc-result-label {
  font-size: 0.88rem;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.calc-result-value {
  font-size: 2.4rem;
  font-weight: 800;
  background: var(--gradient-orange);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 8px;
}

.calc-result-sub {
  font-size: 0.82rem;
  color: var(--text-secondary);
  margin-bottom: 20px;
}

.calc-breakdown {
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--white-a4);
}

.calc-breakdown-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.calc-breakdown-label {
  font-size: 0.82rem;
  color: var(--text-secondary);
}

.calc-breakdown-value {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
}

.calc-disclaimer {
  font-size: 0.7rem;
  color: var(--gray);
  margin-top: 16px;
  line-height: 1.5;
  font-style: italic;
  opacity: 0.7;
}

/* --- Contact Section --- */
.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}

.contact-info h2 {
  margin-bottom: 16px;
}

.contact-info p {
  margin-bottom: 36px;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.contact-detail {
  display: flex;
  align-items: center;
  gap: 16px;
}

.contact-detail-icon {
  width: 46px;
  height: 46px;
  border-radius: var(--radius-full);
  background: var(--teal-a8);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  flex-shrink: 0;
}

.contact-detail span {
  color: var(--text-primary);
  font-weight: 500;
  font-size: 0.95rem;
}

.contact-form-box {
  background: var(--dark-card);
  border-radius: var(--radius-lg);
  padding: 44px;
  border: 1px solid var(--teal-a10);
  box-shadow: 0 12px 48px var(--black-a25);
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
  font-size: 0.88rem;
}
.required-mark {
  color: var(--orange);
  margin-left: 2px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--white-a6);
  background: var(--dark-soft);
  color: var(--text-primary);
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  transition: border-color var(--ease-default), background-color var(--ease-default), color var(--ease-default), box-shadow var(--ease-default);
}

.form-group input::placeholder {
  color: rgba(148, 163, 184, 0.75);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px var(--teal-a12);
  background: rgba(15, 61, 56, 0.6);
  outline: 2px solid var(--teal-light);
  outline-offset: 2px;
}

.form-group select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='%2394A3B8'%3E%3Cpath d='M6 8L0 0h12z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
}

.form-group select option {
  background: var(--dark);
  color: var(--text-primary);
}

.form-message {
  margin-top: 14px;
  font-size: 0.88rem;
  min-height: 1.4em;
}

.form-message.success {
  color: var(--teal-light);
}

.form-message.error {
  color: #f87171;
}

/* --- Floating Labels --- */
.form-group {
  position: relative;
}

.form-group.floating label {
  position: absolute;
  top: 50%;
  left: 18px;
  transform: translateY(-50%);
  transform-origin: left center;
  font-size: 0.95rem;
  color: rgba(148, 163, 184, 0.6);
  pointer-events: none;
  /* Task 3.7: animate via transform (scale + translateY), not font-size/top. */
  transition: transform var(--ease-default), color var(--ease-default);
  background: transparent;
  padding: 0 4px;
  font-weight: 500;
  margin-bottom: 0;
}

.form-group.floating input:focus ~ label,
.form-group.floating input:not(:placeholder-shown) ~ label,
.form-group.floating .has-value ~ label {
  transform: translateY(-26px) translateX(-4px) scale(0.74);
  color: var(--teal-light);
  background: var(--dark-soft);
  font-weight: 700;
  letter-spacing: 0.04em;
}

/* --- Form Validation States --- */
.form-group input.valid {
  border-color: var(--teal-light);
}

.form-group input.invalid {
  border-color: #f87171;
  animation: formShake 0.4s ease;
}

@keyframes formShake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-6px); }
  40% { transform: translateX(6px); }
  60% { transform: translateX(-4px); }
  80% { transform: translateX(4px); }
}

/* --- Submit Button Success State --- */
.contact-form .btn.btn-success {
  background: var(--gradient-teal);
  transform: scale(1.02);
  box-shadow: 0 0 30px var(--teal-a30);
}

/* 15.6: Calculator Chart */
.calc-loss-chart-container {
  margin: 2rem 0;
  padding: 1.5rem;
  background: var(--black-a30);
  border-radius: var(--radius);
  border: 1px solid var(--white-a5);
}

.chart-header {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gray);
  margin-bottom: 1rem;
  text-align: center;
}

#calcLossChart {
  width: 100%;
  height: 200px;
}

.chart-legend {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 1rem;
  font-size: 0.75rem;
  color: var(--gray);
}

.legend-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: var(--radius-full);
  margin-right: 6px;
}

.legend-dot.red { background: var(--orange); }
.legend-dot.teal { background: var(--teal-light); }
/* --- SVG Donut Chart (Calculator) --- */
.calc-donut-wrap {
  display: flex;
  justify-content: center;
  margin: 20px 0;
  position: relative;
}

.calc-donut-wrap svg {
  width: 160px;
  height: 160px;
  transform: rotate(-90deg);
}

.calc-donut-wrap circle {
  fill: none;
  stroke-width: 22;
  transition: stroke-dasharray 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.donut-labor {
  stroke: var(--teal-light);
}

.donut-error {
  stroke: var(--orange);
}

.donut-bg {
  stroke: var(--white-a4);
}

.donut-center-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
}

.donut-center-text .donut-value {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--white);
  display: block;
}

.donut-center-text .donut-label {
  font-size: 0.65rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* --- WCAG 2.1 AA: Button Focus --- */
.btn:focus-visible {
  outline: 2px solid var(--teal-light);
  outline-offset: 3px;
  box-shadow: 0 0 0 6px var(--teal-a15);
}

html.lenis, html.lenis body {
  height: auto;
}

.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}

.lenis.lenis-smooth [data-lenis-prevent] {
  overscroll-behavior: contain;
}

/* --- Footer --- */
.footer {
  background: var(--dark);
  border-top: none;
  box-shadow: inset 0 1px 0 0 var(--white-a8);
  padding: var(--space-10) 0 var(--space-7);
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 14px;
}

.footer-logo img {
  height: 30px;
  width: auto;
  object-fit: contain;
}

.footer-logo span {
  font-weight: 800;
  color: var(--white);
  font-size: var(--text-lg);
  display: block;
  line-height: 1.2;
}

.footer-logo small {
  font-size: var(--text-xs);
  color: var(--text-secondary);
  font-weight: 400;
  display: block;
}

.footer-text {
  color: var(--text-secondary);
  font-size: var(--text-sm);
}

.footer-details {
  color: var(--text-secondary);
  font-size: var(--text-xs);
  margin-top: var(--space-1);
  opacity: 0.9;
}

.footer-links {
  display: flex;
  gap: var(--space-6);
}

.footer-links a {
  color: var(--text-secondary);
  font-size: var(--text-sm);
  font-weight: 500;
  position: relative;
  padding-bottom: 2px;
}

.footer-links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--teal-light);
  transition: width var(--ease-smooth);
}

.footer-links a:hover {
  color: var(--teal-light);
}

.footer-links a:hover::after,
.footer-links a:focus-visible::after {
  width: 100%;
}

/* --- Cookie Bar --- */
.cookie-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--dark-soft);
  backdrop-filter: blur(24px) saturate(1.4);
  -webkit-backdrop-filter: blur(24px) saturate(1.4);
  padding: var(--space-4) var(--space-6);
  z-index: var(--z-modal);
  border-top: 1px solid var(--white-a8);
  display: none;
}

.cookie-bar.show {
  display: block;
}

.cookie-bar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.cookie-bar p {
  font-size: 0.82rem;
  color: var(--text-secondary);
  flex: 1;
}

.cookie-buttons {
  display: flex;
  gap: 10px;
}

.cookie-bar a {
  color: var(--teal-light);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.cookie-bar a:hover {
  color: var(--white);
}

/* --- Live Mini-Chart --- */
.calc-chart {
  display: flex;
  height: 12px;
  background: var(--white-a5);
  border-radius: var(--radius);
  overflow: hidden;
  margin-top: 24px;
  margin-bottom: 12px;
}

.calc-chart-labor {
  background: var(--teal-light);
  transition: width var(--ease-smooth);
}

.calc-chart-error {
  background: var(--orange);
  transition: width var(--ease-smooth);
}

.calc-chart-legend {
  display: flex;
  justify-content: center;
  gap: 20px;
  font-size: 0.75rem;
  color: var(--text-secondary);
  margin-bottom: 24px;
}

.legend-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: var(--radius-full);
  margin-right: 6px;
}

.legend-dot.labor {
  background: var(--teal-light);
}

.legend-dot.error {
  background: var(--orange);
}

/* --- Strona Polityki PrywatnoĹ›ci --- */
.page-policy .scroll-progress,
.page-policy .grain-overlay {
  display: none;
}

.policy-page {
  padding: 120px 0 80px;
  min-height: 80vh;
}

.policy-header {
  margin-bottom: 48px;
}

.policy-header h1 {
  font-size: 1.75rem;
  margin-bottom: 16px;
  color: var(--text-heading);
}

.policy-lead {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-secondary);
  max-width: 720px;
}

.policy-content {
  max-width: 720px;
}

.policy-section {
  margin-bottom: 40px;
}

.policy-section h2 {
  font-size: 1.15rem;
  margin-bottom: 14px;
  color: var(--white);
}

.policy-section p,
.policy-section li {
  font-size: 0.92rem;
  line-height: 1.7;
  color: var(--text-secondary);
  margin-bottom: 10px;
}

.policy-section ul {
  margin: 12px 0 20px;
  padding-left: 1.4em;
}

.policy-section li {
  margin-bottom: 6px;
}

.policy-section a {
  color: var(--teal-light);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.policy-section a:hover {
  color: var(--white);
}

.policy-back {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--white-a6);
}

/* --- Policy/Legal page — elementy rozszerzone (h3, ol, table, code) --- */
.policy-section h3 {
  font-size: 1rem;
  margin: 24px 0 10px;
  color: var(--white);
  font-weight: 600;
  letter-spacing: -0.005em;
}

.policy-section strong {
  color: var(--white);
  font-weight: 600;
}

.policy-section ol {
  margin: 12px 0 20px;
  padding-left: 1.6em;
  list-style: decimal;
}

.policy-section ol li {
  margin-bottom: 8px;
  font-size: 0.92rem;
  line-height: 1.7;
  color: var(--text-secondary);
}

.policy-section ol ol {
  list-style: lower-alpha;
  margin: 8px 0 8px;
  padding-left: 1.4em;
}

.policy-section ol ol ol {
  list-style: lower-roman;
}

.policy-table-wrap {
  margin: 16px 0 24px;
  overflow-x: auto;
  border: 1px solid var(--white-a8);
  background: var(--dark-card);
  -webkit-overflow-scrolling: touch;
}

.policy-section table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
  background: transparent;
}

.policy-section thead {
  background: rgba(20, 184, 166, 0.06);
}

.policy-section th {
  padding: 12px 14px;
  text-align: left;
  color: var(--teal-light);
  font-weight: 600;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border: 1px solid var(--white-a8);
  vertical-align: top;
  font-family: 'JetBrains Mono', monospace;
}

.policy-section td {
  padding: 10px 14px;
  color: var(--text-secondary);
  border: 1px solid var(--white-a8);
  vertical-align: top;
  font-size: 0.85rem;
  line-height: 1.6;
}

.policy-section td em {
  color: var(--text-secondary);
  opacity: 0.75;
  font-style: normal; /* brand book: zakaz kursywy */
}

.policy-section code {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.82em;
  background: var(--dark-card);
  padding: 2px 6px;
  color: var(--teal-light);
  border: 1px solid var(--white-a8);
  white-space: nowrap;
}

.policy-section p + .policy-table-wrap,
.policy-section ul + .policy-table-wrap,
.policy-section ol + .policy-table-wrap {
  margin-top: 8px;
}

/* Mobile — tabele: zmniejszony padding i font */
@media (max-width: 768px) {
  .policy-section table {
    font-size: 0.78rem;
  }
  .policy-section th,
  .policy-section td {
    padding: 8px 10px;
  }
  .policy-section th {
    font-size: 0.65rem;
  }
}

/* --- Scroll Animations (overridden by premium reveal below) --- */
.reveal-stagger>*:nth-child(1) {
  transition-delay: 0.08s;
}

.reveal-stagger>*:nth-child(2) {
  transition-delay: 0.18s;
}

.reveal-stagger>*:nth-child(3) {
  transition-delay: 0.28s;
}

.reveal-stagger>*:nth-child(4) {
  transition-delay: 0.38s;
}

.reveal-stagger>*:nth-child(5) {
  transition-delay: 0.48s;
}

.reveal-stagger>*:nth-child(6) {
  transition-delay: 0.58s;
}

.counter {
  display: inline-block;
  font-variant-numeric: tabular-nums;
}

/* --- Responsive --- */
@media (max-width: 1024px) {
  .hero .container {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-content {
    max-width: 100%;
  }

  .hero-buttons {
    justify-content: center;
  }

  .hero-visual {
    margin-top: 32px;
  }

  .hero-trust {
    justify-content: center;
  }

  .aip-steps {
    grid-template-columns: repeat(2, 1fr);
    max-width: 580px;
    margin: 0 auto;
  }

  .tfa-packages:not(.tfa-packages--duo) {
    grid-template-columns: 1fr;
    max-width: 420px;
    margin: 0 auto;
  }

  .cases-grid {
    grid-template-columns: 1fr;
    max-width: 480px;
    margin: 0 auto;
  }

  .aip-variants {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin: 0 auto;
    margin-top: 56px;
  }

  .atom-grid {
    grid-template-columns: repeat(2, 1fr);
    max-width: 100%;
  }


  .org-panels { grid-template-columns: repeat(2, 1fr); max-width: 640px; margin: 0 auto; }
  .org-bridge { max-width: 640px; margin: 0 auto; }
  .org-bridge-radar { display: none; }
  .org-neural-canvas { display: none; }

  .calculator-wrapper,
  .contact-wrapper {
    grid-template-columns: 1fr;
  }

  .section-desc {
    margin-left: auto;
    margin-right: auto;
  }
}

@media (max-width: 768px) {
  /* Note: section padding is defined in the consolidated mobile block below (~line 8249).
     scroll-margin-top moved to global section selector. */
  .cookie-bar .container {
    flex-direction: column;
    text-align: center;
    gap: 12px;
  }

  .node-card {
    margin-bottom: 24px;
  }

  .node-card p {
    line-height: 1.6;
  }

  .pipeline-node {
    margin-bottom: 20px;
  }

  .pm-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .pm-legend {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }


  .calc-group .range-info {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .calc-breakdown-row {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 6px;
  }

  .calc-result-sub {
    white-space: normal;
    word-wrap: break-word;
  }


  /* 15.11: Mobile Drawer Style — refined */
  .nav-links {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: auto;
    max-height: 85vh;
    background: linear-gradient(180deg,
      rgba(14, 24, 28, 0.98) 0%,
      rgba(6, 14, 18, 0.98) 100%);
    backdrop-filter: blur(24px) saturate(1.6);
    -webkit-backdrop-filter: blur(24px) saturate(1.6);
    flex-direction: column;
    align-items: stretch;
    padding: 2.6rem 1.6rem 3.2rem;
    gap: 0.2rem;
    transform: translateY(100%);
    transition: transform 520ms cubic-bezier(0.22, 1, 0.36, 1);
    border-top: 1px solid var(--teal-a12);
    border-radius: 28px 28px 0 0;
    box-shadow:
      0 -30px 80px rgba(0, 0, 0, 0.7),
      0 -1px 0 0 rgba(255, 255, 255, 0.06) inset;
    z-index: var(--z-overlay);
    visibility: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
  }

  .nav-links.open {
    transform: translateY(0);
    visibility: visible;
  }

  /* Backdrop overlay */
  .nav-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0);
    backdrop-filter: blur(0px);
    -webkit-backdrop-filter: blur(0px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 520ms cubic-bezier(0.22, 1, 0.36, 1),
                visibility 520ms cubic-bezier(0.22, 1, 0.36, 1),
                backdrop-filter 520ms cubic-bezier(0.22, 1, 0.36, 1),
                background-color 520ms cubic-bezier(0.22, 1, 0.36, 1);
    z-index: calc(var(--z-overlay) - 1);
  }

  .nav-backdrop.active {
    opacity: 1;
    visibility: visible;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
  }

  /* Handle for visual cue — tappable affordance */
  .nav-links::before {
    content: '';
    position: absolute;
    top: 12px;
    left: 50%;
    transform: translateX(-50%);
    width: 52px;
    height: 5px;
    background: var(--teal-a25);
    border-radius: var(--radius-pill);
    box-shadow: 0 0 12px var(--teal-a20);
  }

  .nav-links a {
    font-size: 1.1rem;
    padding: 14px 18px;
    border-radius: var(--radius-md);
    border: 1px solid transparent;
    transition: background-color 240ms ease-out,
                border-color 240ms ease-out,
                color 240ms ease-out,
                transform 320ms cubic-bezier(0.22, 1, 0.36, 1);
  }

  .nav-links a:hover,
  .nav-links a:focus-visible {
    background-color: var(--teal-a8);
    border-color: var(--teal-a15);
  }

  .nav-links a.active {
    background-color: var(--teal-a12);
    border-color: var(--teal-a25);
    color: var(--teal-light);
  }

  /* Staggered entrance animation for drawer items */
  .nav-links.open > a,
  .nav-links.open > .lang-switcher {
    animation: drawerItemIn 540ms cubic-bezier(0.22, 1, 0.36, 1) backwards;
  }
  .nav-links.open > a:nth-child(1) { animation-delay: 60ms; }
  .nav-links.open > a:nth-child(2) { animation-delay: 100ms; }
  .nav-links.open > a:nth-child(3) { animation-delay: 140ms; }
  .nav-links.open > a:nth-child(4) { animation-delay: 180ms; }
  .nav-links.open > a:nth-child(5) { animation-delay: 220ms; }
  .nav-links.open > a:nth-child(6) { animation-delay: 260ms; }
  .nav-links.open > a:nth-child(7) { animation-delay: 300ms; }
  .nav-links.open > a:nth-child(8) { animation-delay: 340ms; }
  .nav-links.open > a:nth-child(9) { animation-delay: 380ms; }
  .nav-links.open > a:nth-child(10) { animation-delay: 420ms; }
  .nav-links.open > .lang-switcher { animation-delay: 480ms; }

  @keyframes drawerItemIn {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: translateY(0); }
  }

  .hamburger {
    display: flex;
    z-index: calc(var(--z-overlay) + 1);
  }

  .pain-grid {
    grid-template-columns: 1fr;
  }

  .aip-steps {
    grid-template-columns: 1fr;
    max-width: 400px;
  }

  .hero-logo-container {
    width: 220px;
    height: 220px;
  }

  .hero-logo-container img {
    width: 200px;
  }

  .calculator-box {
    padding: 28px;
  }

  .contact-form-box {
    padding: 28px;
  }


  .org-bridge { flex-direction: column; align-items: center; max-width: 400px; margin: 0 auto; }
  .org-bridge-radar { display: none; }
  .org-bridge-card { max-width: 100%; }
  .org-neural-canvas { display: none; }
  .org-panels { grid-template-columns: 1fr; max-width: 400px; margin: 0 auto; }

  .atom-grid {
    grid-template-columns: repeat(2, 1fr);
    max-width: 100%;
  }

  .smartflow-box {
    flex-direction: column;
    text-align: center;
    padding: 28px;
  }

  .hero-trust {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }

  .hero-trust-divider {
    width: 40px;
    height: 1px;
  }

  .footer-content {
    flex-direction: column;
    text-align: center;
  }

  .footer-logo {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 var(--space-4);
  }

  .btn {
    padding: 14px 24px;
    font-size: var(--text-base);
  }

  h1 {
    font-size: var(--text-4xl);
  }

  h2.section-title, h2 {
    font-size: 1.6rem;
    hyphens: auto;
    word-wrap: break-word;
  }

  .case-expand-hint {
    padding: var(--space-4);
  }

  .hero-trust-item strong {
    font-size: 1rem;
  }
}

/* ============================================
   PREMIUM UX â€” ANIMATIONS & INTERACTIONS
   ============================================ */

/* --- Pain Cards --- */
.pain-card {
  background: rgba(10, 10, 10, 0.4);
  border: none;
  box-shadow: var(--shadow-glow);
  border-radius: var(--radius);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  transition: box-shadow var(--ease-default), transform var(--ease-default);
}

.pain-card:hover, .pain-card:focus-within {
  box-shadow: inset 0 0 0 1px var(--white-a20), 0 8px 30px var(--black-a60);
  transform: translateY(-2px);
}

/* --- Glow Card Border Effect (JS adds --mouse-x, --mouse-y) --- */
.pain-card,
.aip-step,
.aip-variant-card,
.tfa-package,
.case-card,
.org-bridge-card,
.org-panel,
.atom-card {
  position: relative;
}

.pain-card,
.aip-step,
.aip-variant-card:not(.featured),
.tfa-package:not(.featured),
.case-card,
.org-bridge-card,
.org-panel,
.atom-card {
  overflow: hidden;
}

.pain-card::after,
.aip-step::after,
.aip-variant-card:not(.featured)::before,
.tfa-package::after,
.case-card::after,
.org-bridge-card::after,
.org-panel::after,
.atom-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 2px;
  background: radial-gradient(800px circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
      rgba(45, 212, 191, 0.6),
      transparent 40%);
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  opacity: 0;
  transition: opacity var(--ease-smooth);
  z-index: var(--z-raised);
}

.aip-variant-card.featured::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  overflow: hidden;
  background: radial-gradient(400px circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
      rgba(249, 115, 22, 0.3),
      transparent 50%);
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  opacity: 0;
  transition: opacity var(--ease-smooth);
  z-index: var(--z-raised);
}

.pain-card:hover::after,
.aip-step:hover::after,
.aip-variant-card:hover::before,
.aip-variant-card.featured:hover::after,
.tfa-package:hover::after,
.case-card:hover::after,
.org-bridge-card:hover::after,
.org-panel:hover::after,
.atom-card:hover::after {
  opacity: 1;
}

/* 3D tilt perspective container */
.pain-card.tilt-card,
.aip-step.tilt-card,
.aip-variant-card.tilt-card,
.tfa-package.tilt-card,
.case-card.tilt-card,
.org-bridge-card.tilt-card,
.org-panel.tilt-card,
.atom-card.tilt-card {
  transform-style: preserve-3d;
  transition: transform var(--ease-fast), box-shadow var(--transition);
}

/* --- Magnetic Button --- */
.btn {
  transition: transform var(--ease-fast), opacity var(--transition), box-shadow var(--transition), background-color var(--transition), border-color var(--transition), color var(--transition);
}

.btn.magnetic {
  will-change: transform;
}

/* --- Section Dividers --- */
section:not(.hero)::before {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background: var(--gradient-teal);
  border-radius: var(--radius-xs);
  margin: 0 auto 60px;
  opacity: 0.5;
}

#problemy::before,
#case-studies::before {
  background: var(--gradient-orange);
}

/* --- Floating Particles in Hero --- */
.hero-particle {
  position: absolute;
  border-radius: var(--radius-full);
  pointer-events: none;
  opacity: 0;
  animation: floatParticle linear infinite;
}

@keyframes floatParticle {
  0% {
    opacity: 0;
    transform: translateY(0) scale(0);
  }

  10% {
    opacity: 0.6;
    transform: translateY(-20px) scale(1);
  }

  90% {
    opacity: 0.3;
  }

  100% {
    opacity: 0;
    transform: translateY(-300px) scale(0.5);
  }
}

/* --- Smooth Reveal Upgrades --- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.7s cubic-bezier(0.16, 1, 0.3, 1),
    filter 0.7s cubic-bezier(0.16, 1, 0.3, 1);
  filter: blur(4px);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

/* --- Counter Glow Pulse --- */
.hero-trust-item strong {
  transition: text-shadow var(--ease-smooth);
}

.hero-trust-item strong.counted {
  text-shadow: 0 0 20px var(--teal-a40);
}

/* --- Section Background Accents --- */
#aip {
  position: relative;
}

#aip::after {
  content: '';
  position: absolute;
  top: 15%;
  right: -200px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(12, 138, 127, 0.06) 0%, transparent 70%);
  border-radius: var(--radius-full);
  pointer-events: none;
  z-index: var(--z-base);
}

#tfa,
#finansowanie {
  position: relative;
}

#tfa::after,
#finansowanie::after {
  content: '';
  position: absolute;
  bottom: 10%;
  left: -200px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(249, 115, 22, 0.05) 0%, transparent 70%);
  border-radius: var(--radius-full);
  pointer-events: none;
  z-index: var(--z-base);
}

/* Ensure content stays above accent blobs */
#aip>.container,
#tfa>.container,
#finansowanie>.container {
  position: relative;
  z-index: var(--z-raised);
}

/* --- Custom Scrollbar --- */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--dark);
}

::-webkit-scrollbar-thumb {
  background: var(--dark-soft);
  border-radius: var(--radius-sm);
  border: 2px solid var(--dark);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--teal-dark);
}

/* Firefox scrollbar */
html {
  scrollbar-width: thin;
  scrollbar-color: var(--dark-soft) var(--dark);
}

/* --- Smooth Focus Ring --- */
*:focus-visible {
  outline: 2px solid var(--teal-light);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
  transition: outline-offset var(--ease-fast);
}

/* --- Active Nav Glow --- */
.nav-links a.active {
  color: var(--teal-light);
  text-shadow: 0 0 12px rgba(20, 184, 166, 0.3);
}

/* --- Hero Logo Breathing Glow --- */
.hero-logo-ring {
  animation: pulseRing 4s ease-in-out infinite;
}

.hero-logo-ring:nth-child(2) {
  animation-delay: 1.3s;
}

.hero-logo-ring:nth-child(3) {
  animation-delay: 2.6s;
}

@keyframes pulseRing {

  0%,
  100% {
    opacity: 0.05;
    transform: scale(1);
  }

  50% {
    opacity: 0.15;
    transform: scale(1.05);
  }
}

/* --- Variant Card Featured Glow --- */
.aip-variant-card.featured {
  box-shadow: 0 0 40px var(--orange-a30),
    0 8px 32px var(--black-a30);
  border: 1px solid var(--orange-light);
}

.tfa-package.featured {
  box-shadow: 0 0 40px var(--orange-a30),
    0 8px 32px var(--black-a30);
  border: 1px solid var(--orange-light);
}

/* ==========================================================================
   PERFORMANCE & RENDERING OPTIMIZATIONS
   ========================================================================== */
/* Sections WITH canvas animations excluded — content-visibility breaks IntersectionObserver */
#aip, #tfa, #finansowanie, #zespol, #kalkulator, #kontakt {
  content-visibility: auto;
  contain-intrinsic-size: auto 800px;
}
/* #problemy (pipeline canvas), #atom (process mining canvas), #case-studies (case sim canvas)
   are excluded because content-visibility: auto interferes with their IntersectionObserver triggers */

/* 5. Typography Overrides for Hero */
.highlight-teal, .highlight-orange {
  background: linear-gradient(135deg, var(--teal-light), var(--teal-dark));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

/* ==========================================================================
   EPIC 11/13: CINEMATIC CYBERNETIC EXPERIENCE (Interactive Timeline)
   ========================================================================== */
.lifecycle-timeline {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  padding-top: 60px; /* Space for horizontal track */
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 1rem;
}

.lt-track {
  position: absolute;
  top: 15px; /* Center of the markers */
  left: 0;
  right: 0;
  width: 100%;
  height: 2px;
  background: var(--white-a10);
  border-radius: var(--radius-xs);
  transition: width var(--ease-default), height var(--ease-default);
}

.lt-progress {
  width: 0%;
  height: 100%;
  background: var(--gradient-orange);
  border-radius: var(--radius-xs);
}

.lt-node {
  flex: 1;
  position: relative;
  display: flex;
  flex-direction: column;
}

.lt-marker {
  position: absolute;
  top: -45px;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: var(--z-raised);
}

.lt-dot {
  width: 10px;
  height: 10px;
  border-radius: var(--radius-full);
  background: #000;
  border: 2px solid var(--white-a30);
  transition: transform var(--ease-default), opacity var(--ease-default), box-shadow var(--ease-default), border-color var(--ease-default), background-color var(--ease-default);
}

.lt-node.active .lt-dot {
  border-color: var(--orange-light);
  background: var(--orange);
  box-shadow: 0 0 16px var(--orange-a60);
  transform: scale(1.2);
}

.lt-content-wrapper {
  background: rgba(10, 10, 10, 0.5);
  border-radius: var(--radius);
  box-shadow: var(--shadow-glow);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  overflow: hidden;
  transition: transform var(--ease-default), background var(--ease-default);
  width: 100%;
}

.lt-content-wrapper:hover {
  background: rgba(15, 15, 15, 0.7);
}

.lt-title {
  width: 100%;
  text-align: center;
  padding: 1.2rem 1rem;
  background: transparent;
  border: none;
  color: var(--text-primary);
  font-size: 1rem;
  font-family: inherit;
  font-weight: 600;
  cursor: pointer;
  letter-spacing: -0.02em;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  transition: color var(--ease-default);
}
.lt-title:focus-visible {
  outline: 2px solid var(--teal-light);
  outline-offset: 2px;
}

.lt-node.active .lt-title {
  color: var(--orange-light);
}

/* Accordion indicator */
.lt-title::after {
  content: '+';
  font-size: 1.2rem;
  color: var(--white-a40);
  transition: transform var(--ease-default);
}

.lt-node.active .lt-title::after {
  content: '−';
  transform: rotate(180deg);
  color: var(--orange-light);
}

.lt-body {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height var(--ease-default), opacity var(--ease-default);
}

.lt-node.active .lt-body {
  max-height: 500px;
  opacity: 1;
}

.lt-body-inner {
  padding: 0 1rem 1rem 1rem;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.lt-body-inner ul {
  padding-left: 1.2rem;
  margin: 0;
}

.lt-body-inner li {
  margin-bottom: 0.4rem;
  line-height: 1.5;
}

.lt-body-inner li::marker {
  color: var(--orange-dark);
}

/* Responsive Revert to Vertical */
@media (max-width: 900px) {
  .lifecycle-timeline {
    flex-direction: column;
    padding-top: 0;
    padding-left: 48px;
    gap: 1.5rem;
  }
  .lt-track {
    left: 15px; right: auto;
    top: 30px; bottom: 30px;
    width: 2px; height: auto;
  }
  .lt-node {
    width: 100%;
  }
  .lt-marker {
    left: -42px; top: 24px;
    transform: none;
  }
  .lt-title {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
    font-size: 1.15rem;
  }
}

/* ==========================================================================
   EPIC 15.1: BOOT SEQUENCE LOADER
   ========================================================================== */
.boot-loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #000;
  z-index: var(--z-supreme);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'JetBrains Mono', monospace;
  color: var(--teal-light);
  transition: opacity 0.8s ease, visibility 0.8s ease;
}

.boot-loader.hidden {
  opacity: 0;
  visibility: hidden;
}

.boot-content {
  width: 90%;
  max-width: 600px;
}

.boot-terminal {
  height: 220px;
  overflow: hidden;
  font-size: 0.8rem;
  line-height: 1.4;
  margin-bottom: 2rem;
  display: flex;
  flex-direction: column-reverse;
  border-left: 1px solid rgba(20, 184, 166, 0.2);
  padding-left: 15px;
}

.boot-line {
  opacity: 0.55;
  white-space: nowrap;
  animation: bootLineIn 320ms ease-out;
  transition: opacity 360ms ease-out;
  will-change: opacity;
}

/* Newest line carries full intensity; older lines fade to 0.55 via transition */
.boot-line.is-latest {
  opacity: 1;
}

@keyframes bootLineIn {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

.boot-line.success { color: var(--teal-light); }
.boot-line.warning { color: var(--orange); }
.boot-line.highlight { color: #fff; font-weight: bold; }

@media (prefers-reduced-motion: reduce) {
  .boot-line {
    animation: none;
    opacity: 1;
  }
}

.boot-progress-container {
  width: 100%;
  height: 2px;
  background: var(--white-a10);
  margin-bottom: 0.5rem;
  border-radius: var(--radius-xs);
  overflow: hidden;
}

.boot-progress-bar {
  width: 0%;
  height: 100%;
  background: var(--teal-light);
  transition: width 0.1s linear;
}

.boot-status {
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.5;
}

#bootStatusText {
  color: #fff;
}

/* A11y (Task 3.2): boot/intro skip button */
.boot-skip {
  position: absolute;
  top: 24px;
  right: 24px;
  background: transparent;
  border: 1px solid var(--teal-light);
  color: var(--teal-light);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: background-color 200ms ease, color 200ms ease;
  z-index: var(--z-stacked);
}
.boot-skip:hover,
.boot-skip:focus-visible {
  background: var(--teal-light);
  color: var(--dark);
  outline: 2px solid var(--teal-light);
  outline-offset: 2px;
}

/* ==========================================================================
   EPIC 12: COMMAND CENTER EASTER EGG (CTRL+K)
   ========================================================================== */
.terminal-overlay {
  position: fixed;
  inset: 0;
  z-index: var(--z-top);
  background: var(--black-a85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden; /* Quality Pass: blocks keyboard focus on children when overlay hidden */
  pointer-events: none;
  transition: opacity var(--ease-default), visibility var(--ease-default);
}
.terminal-overlay.is-active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.term-window {
  width: 90%;
  max-width: 900px;
  height: 70vh;
  background: #000;
  border: 1px solid var(--white-a15);
  border-radius: var(--radius);
  box-shadow: 0 20px 60px var(--black-a80), 0 0 0 1px var(--white-a5) inset;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  font-family: 'JetBrains Mono', monospace;
  transform: scale(0.95);
  transition: transform var(--ease-default);
}
.terminal-overlay.is-active .term-window {
  transform: scale(1);
}
.term-header {
  height: 40px;
  background: #111;
  border-bottom: 1px solid var(--white-a10);
  display: flex;
  align-items: center;
  padding: 0 16px;
  color: #888;
  font-size: 0.8rem;
}
.term-dots {
  display: flex;
  gap: 8px;
  margin-right: 16px;
}
.term-dots span {
  width: 12px; height: 12px; border-radius: var(--radius-full);
}
.term-dot-r { background: #FF5F56; cursor: pointer; }
.term-dot-r:hover { filter: brightness(1.2); }
.term-dot-y { background: #FFBD2E; }
.term-dot-g { background: #27C93F; }

.term-body {
  flex: 1;
  padding: 20px;
  overflow-y: auto;
  color: var(--teal-light);
  font-size: 0.85rem;
  line-height: 1.6;
}
.term-line {
  margin-bottom: 6px;
  word-break: break-all;
}

.term-input-wrap {
  display: flex;
  gap: 10px;
  padding: 1rem 0;
  border-top: 1px solid rgba(20, 184, 166, 0.2);
}

.term-prompt {
  color: var(--teal-light);
  font-weight: 700;
  white-space: nowrap;
}

#termInput {
  background: transparent;
  border: none;
  color: #fff;
  font-family: 'Inter', sans-serif;
  font-size: 1.2rem;
}
#termInput:focus-visible {
  outline: 2px solid var(--teal-light);
  outline-offset: 2px;
}

/* --- LSO:ATOM Blueprint Modal (Task 20) --- */
.btn-blueprint {
  background: transparent;
  border: 1px solid var(--orange);
  color: var(--orange);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  padding: 8px 16px;
  margin-top: 15px;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: transform var(--ease-default), opacity var(--ease-default), background-color var(--ease-default), border-color var(--ease-default), color var(--ease-default);
  backdrop-filter: blur(5px);
}

.btn-blueprint:hover {
  background: var(--orange);
  color: var(--dark);
  box-shadow: 0 0 15px var(--orange-a40);
}

.blueprint-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #001220; /* Deep Blueprint Blue */
  z-index: var(--z-toast);
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transition: transform var(--ease-spring), opacity var(--ease-spring), visibility var(--ease-spring);
}

.blueprint-modal.is-active {
  opacity: 1;
  visibility: visible;
}

.blueprint-container {
  width: 95%;
  max-width: 1000px;
  height: 90vh;
  position: relative;
  border: 4px double var(--white-a10);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  background-image: 
    linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 50px 50px;
}

.blueprint-close {
  position: absolute;
  top: 1rem;
  right: 1.5rem;
  background: transparent;
  border: none;
  color: #fff;
  font-size: 2.5rem;
  cursor: pointer;
  line-height: 1;
  z-index: var(--z-dropdown);
}

.blueprint-header {
  border-bottom: 2px solid var(--white-a20);
  padding-bottom: 1rem;
  margin-bottom: 2rem;
}

.blueprint-header h3 {
  font-family: 'JetBrains Mono', monospace;
  color: #fff;
  margin: 0;
  font-size: 1.5rem;
}

.blueprint-header p {
  font-size: 0.8rem;
  color: var(--white-a50);
  margin-top: 5px;
  text-transform: uppercase;
}

.blueprint-svg-wrap {
  flex: 1;
  border: 1px solid var(--white-a5);
  background: var(--black-a20);
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

#blueprintSVG {
  max-width: 100%;
  max-height: 100%;
}

.bp-node rect {
  fill: rgba(0, 20, 40, 0.8);
  stroke: #fff;
  stroke-width: 2;
}

.bp-node text {
  fill: #fff;
  font-family: 'JetBrains Mono', monospace;
  font-size: 14px;
}

.bp-line {
  fill: none;
  stroke: #fff;
  stroke-width: 2;
  stroke-dasharray: 600;
  stroke-dashoffset: 600;
  transition: stroke-dashoffset 3s ease;
}

.blueprint-modal.is-active .bp-line {
  stroke-dashoffset: 0;
}
/* --- Holographic Cards (Task 21) --- */
.org-bridge-card, .org-panel, .case-card {
  position: relative;
  overflow: hidden;
  --holo-x: 50%;
  --holo-y: 50%;
  will-change: transform;
}

/* --- Global Savings Ticker (Task 23) --- */
.savings-ticker {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 30px;
  background: #000;
  border-top: 1px solid rgba(20, 184, 166, 0.3);
  z-index: var(--z-modal);
  display: flex;
  align-items: center;
  overflow: hidden;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  color: var(--teal-light);
}

.ticker-content {
  display: flex;
  gap: 50px;
  white-space: nowrap;
  animation: tickerMove 30s linear infinite;
  padding-left: 100%;
}

.ticker-label {
  color: rgba(20, 184, 166, 0.5);
  font-weight: 700;
}

.ticker-data {
  color: #fff;
}

#globalSavingsAmount {
  color: var(--teal-light);
  font-weight: 700;
  transition: color var(--ease-default), text-shadow var(--ease-default);
}

#globalSavingsAmount.tick-flash {
  color: #fff;
  text-shadow: 0 0 8px var(--teal-light);
}

@keyframes tickerMove {
  0% { transform: translateX(0); }
  100% { transform: translateX(-100%); }
}

/* Ensure footer doesn't get covered too much */
footer {
  padding-bottom: 60px;
}

.section-badge, .smartflow-icon, .pm-badge {
  will-change: transform;
}

.holo-shimmer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: var(--z-float);
  opacity: 0;
  transition: opacity var(--ease-default);
  mix-blend-mode: color-dodge;
  background: radial-gradient(
    circle at var(--holo-x) var(--holo-y),
    rgba(255, 255, 255, 0.2) 0%,
    rgba(255, 0, 255, 0.1) 20%,
    rgba(0, 255, 255, 0.1) 40%,
    rgba(255, 255, 0, 0.1) 60%,
    transparent 80%
  );
}

.org-bridge-card:hover .holo-shimmer,
.org-panel:hover .holo-shimmer,
.case-card:hover .holo-shimmer {
  opacity: 1;
}

/* Iridescent glare effect */
.holo-shimmer::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    115deg,
    transparent 20%,
    rgba(255, 255, 255, 0.1) 30%,
    rgba(0, 255, 255, 0.15) 35%,
    rgba(255, 0, 255, 0.15) 40%,
    rgba(255, 255, 255, 0.1) 45%,
    transparent 55%
  );
  transform: translate(calc(var(--holo-x) / 5), calc(var(--holo-y) / 5));
  filter: blur(20px);
}

.blueprint-footer {
  margin-top: 1rem;
  display: flex;
  justify-content: space-between;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  color: var(--white-a30);
}

.term-info { color: var(--gray); }
.term-err { color: var(--orange); }
.term-ok { color: var(--teal-light); font-weight: bold; }

/* --- Ambient Themeing (Task 24) --- */
.ambient-night {
  --teal-light: #14b8a6;
  --highlight-glow: 0 0 20px rgba(255, 107, 0, 0.2);
}

.ambient-night .section-badge {
  color: var(--orange);
  border-color: var(--orange);
}

.ambient-day {
  --teal-light: #00ffd5;
  --highlight-glow: 0 0 15px rgba(20, 184, 166, 0.4);
}

.ambient-day .section-badge {
  color: var(--teal-light);
  border-color: var(--teal-light);
}

.ambient-night .savings-ticker {
  border-top-color: rgba(255, 107, 0, 0.3);
}

/* --- Globe Container --- */
.globe-container {
  position: relative;
  height: 300px;
  margin-bottom: 3rem;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  border-radius: var(--radius-2xl);
  background: var(--white-a2);
  border: 1px solid var(--white-a5);
}

.globe-container canvas {
  border-radius: var(--radius-2xl);
}

.globe-overlay {
  position: absolute;
  bottom: 10px;
  left: 20px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.6rem;
  color: var(--teal-light);
  opacity: 0.6;
}

/* --- High-end Cinematic Glow --- */
.pain-card::before,
.bento-card::before,
.aip-variant-card:not(.featured)::before,
.tfa-package::before,
.case-card::before,
.org-bridge-card::before,
.org-panel::before,
.atom-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(800px circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
      rgba(45, 212, 191, 0.04),
      transparent 40%);
  opacity: 0;
  transition: opacity var(--ease-smooth);
  pointer-events: none;
  z-index: var(--z-base);
}

.pain-card:hover::before,
.bento-card:hover::before,
.case-card:hover::before,
.org-bridge-card:hover::before,
.org-panel:hover::before,
.atom-card:hover::before {
  opacity: 1;
}

/* --- Simulated Heatmap UX Engine (Task 25) --- */
.ghost-cursor {
  position: absolute; /* Changed to absolute for correct page placement */
  top: 0;
  left: 0;
  width: 120px;
  height: 120px;
  background: radial-gradient(circle, rgba(20, 184, 166, 0.2) 0%, rgba(255, 107, 0, 0.1) 40%, transparent 70%);
  border-radius: var(--radius-full);
  pointer-events: none;
  z-index: var(--z-toast);
  opacity: 0;
  transition: opacity 1s ease, transform 0.5s ease;
  filter: blur(20px);
  will-change: left, top, opacity, transform;
}

.ghost-cursor.is-active {
  opacity: 1;
}

/* Scanning rings */
.ghost-cursor::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 100%;
  border: 1px solid rgba(20, 184, 166, 0.3);
  border-radius: var(--radius-full);
  transform: translate(-50%, -50%) scale(0.5);
  animation: ghostScan 2s infinite ease-out;
}

@keyframes ghostScan {
  0% { transform: translate(-50%, -50%) scale(0.5); opacity: 0.8; }
  100% { transform: translate(-50%, -50%) scale(2); opacity: 0; }
}

.ghost-cursor::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 6px;
  height: 6px;
  background: #fff;
  border-radius: var(--radius-full);
  transform: translate(-50%, -50%);
  box-shadow: 0 0 15px var(--teal-light), 0 0 30px var(--teal-light);
  opacity: 0.6;
}

/* --- Bento Grid (UX) --- */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 40px;
}
.bento-card {
  background: var(--dark-card);
  backdrop-filter: blur(12px);
  border: 1px solid var(--teal-light-a10);
  border-radius: var(--radius-xl);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: transform var(--ease-smooth), opacity var(--ease-smooth), box-shadow var(--ease-smooth), background-color var(--ease-smooth), border-color var(--ease-smooth);
  position: relative;
  overflow: hidden;
}
.bento-card:hover {
  transform: translateY(-4px);
  border-color: var(--teal-light-a40);
  box-shadow: 0 10px 40px var(--black-a50), inset 0 0 20px var(--teal-light-a5);
}
.bento-icon {
  font-size: 2.5rem;
  background: var(--gradient-teal);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  display: inline-block;
  filter: drop-shadow(0 0 8px rgba(45, 212, 191, 0.4));
}
.bento-content h3 {
  font-size: 1.4rem;
  margin-bottom: 8px;
  color: var(--text-heading);
}
.bento-content p {
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--text-secondary);
}
.bento-content strong {
  color: var(--teal-light);
}
@media (max-width: 768px) {
  .bento-grid { grid-template-columns: 1fr; }
}

/* --- Tech Stack & Proud Partners --- */
.tech-stack-section {
  padding: 80px 0 60px;
  background: var(--dark-soft);
  position: relative;
  overflow: hidden;
  z-index: var(--z-dropdown);
}
.tech-stack-section::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(45,212,191,0.5), transparent);
}
.ts-title {
  text-align: center;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--teal-light);
  letter-spacing: 4px;
  margin-bottom: 32px;
  opacity: 0.8;
  text-transform: uppercase;
  text-shadow: 0 0 10px var(--teal-light-a40);
}
.ts-partners {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
  margin-bottom: 80px;
}
.tr-partner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px 48px;
  background: rgba(10,10,10,0.6);
  border: 1px solid var(--teal-light-a20);
  border-radius: var(--radius-xl);
  box-shadow: 0 0 40px var(--teal-light-a5), inset 0 0 20px var(--teal-light-a5);
  backdrop-filter: blur(12px);
  position: relative;
  overflow: hidden;
  transition: transform var(--ease-smooth), border-color var(--ease-smooth);
}
.tr-partner:hover {
  transform: translateY(-5px);
  border-color: var(--teal-light-a50);
  box-shadow: 0 10px 40px var(--black-a50), inset 0 0 30px var(--teal-light-a10);
}
.trn-name {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 8px;
  letter-spacing: -0.5px;
}
.trn-role {
  font-size: 0.85rem;
  color: var(--teal-light);
  text-transform: uppercase;
  letter-spacing: 1px;
  opacity: 0.8;
}

.ts-marquee-wrap {
  display: flex;
  white-space: nowrap;
  overflow: hidden;
  position: relative;
  width: 100%;
  padding: 30px 0;
  background: var(--black-a30);
  border-top: 1px solid var(--white-a5);
  border-bottom: 1px solid var(--white-a5);
  pointer-events: none;
  user-select: none;
}
/* Blur masks for infinite scrolling */
.ts-marquee-wrap::before, .ts-marquee-wrap::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  width: 15vw;
  z-index: var(--z-raised);
  pointer-events: none;
}
.ts-marquee-wrap::before {
  left: 0;
  background: linear-gradient(to right, var(--dark-soft), transparent);
}
.ts-marquee-wrap::after {
  right: 0;
  background: linear-gradient(to left, var(--dark-soft), transparent);
}
.ts-marquee {
  display: flex;
  align-items: center;
  gap: 40px;
  padding-right: 40px;
  animation: techScroll 30s linear infinite;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-heading);
  text-transform: uppercase;
  letter-spacing: -1px;
}
.ts-dot {
  color: var(--orange);
  opacity: 0.8;
  font-size: 1rem;
  filter: drop-shadow(0 0 8px var(--orange));
}
@keyframes techScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-100%); }
}

/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */
/* TIME-OF-DAY AMBIENT MODE (Night Mode)           */
/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */
body.night-mode {
  --dark: #020606;
  --dark-soft: #030807;
  --dark-card: rgba(4, 10, 9, 0.85);
  background: var(--dark);
}
body.night-mode .hero-particle-canvas {
  opacity: 0.6;
}
body.night-mode .glow-spotlight {
  opacity: 0.5;
}

/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */
/* REDUCED MOTION MODE                             */
/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal, .reveal-stagger > * {
    opacity: 1 !important;
    transform: none !important;
  }

  /* Reduce canvas intensity (don't hide — user values these effects) */
  .hero-particle-canvas {
    opacity: 0.15;
  }
  .pm-canvas {
    opacity: 1;
  }
  .trail-canvas {
    display: none;
  }
  .case-sim-canvas {
    display: none;
  }

  /* Disable decorative animations */
  .hero-logo-ring,
  .pulsing-dot,
  .node-pulse,
  .grain-overlay {
    animation: none;
  }

  /* Reduce card hover transforms */
  .pain-card:hover,
  .case-card:hover,
  .atom-card:hover,
  .tfa-package:hover,
  .org-bridge-card:hover,
  .org-panel:hover,
  .docs-bento-card:hover {
    transform: none;
  }

  /* Disable scroll-driven parallax */
  .hero-content,
  .hero-visual {
    transform: none !important;
  }

  /* Disable ticker scrolling */
  .ticker-content {
    animation: none;
  }

  /* Disable marquee track (old class) */
  .ts-marquee-track {
    animation: none;
  }

  /* Keep tech stack marquee + savings ticker running slowly (essential for UX) */
  .ts-marquee-wrap > .ts-marquee {
    animation: techScroll 60s linear infinite !important;
  }
  .savings-ticker > .ticker-content {
    animation: tickerMove 60s linear infinite !important;
  }
}

/* Language Switcher */
.lang-switcher {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: 1.2rem;
  padding: 4px 8px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--white-a8);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  transition: background-color 260ms ease-out, border-color 260ms ease-out;
}

.lang-switcher:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--white-a15);
}

.lang-switcher a {
  position: relative;
  color: var(--text-secondary);
  padding: 4px 8px;
  border-radius: var(--radius-xs);
  transition: color 220ms ease-out, background-color 220ms ease-out;
}

.lang-switcher a::after {
  display: none !important; /* Override global nav-link underline */
}

.lang-switcher a:hover {
  color: var(--white);
}

.lang-switcher a.active {
  color: var(--teal-light);
  background: var(--teal-a12);
  box-shadow: 0 0 0 1px var(--teal-a25) inset,
              0 0 12px rgba(20, 184, 166, 0.25);
}

.lang-sep {
  color: var(--white-a15);
  user-select: none;
  font-weight: 400;
}

@media (max-width: 768px) {
  .lang-switcher {
    margin: 1rem 0 0;
    padding: 10px 12px;
    width: 100%;
    justify-content: space-around;
    gap: 4px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--white-a8);
    border-radius: var(--radius-md);
  }

  .lang-switcher a {
    padding: 10px 14px;
    min-height: 44px;
    min-width: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.92rem;
    border-radius: var(--radius-xs);
  }

  .lang-switcher a:hover {
    background: var(--white-a5);
  }

  .lang-switcher a.active {
    background: var(--teal-a15);
    box-shadow: 0 0 0 1px var(--teal-a25) inset;
  }

  .lang-sep {
    display: none;
  }
}

/* ============================================
   AWWWARDS-TIER: METHODOLOGY (End-to-End Pipeline)
   ============================================ */
/* ============================================
   CYBER-SCHEMATIC ENERGY FLOW (Scene Architecture)
   ============================================ */
.cyber-flow-section {
  position: relative;
  background: var(--dark);
  color: #fff;
  /* Sekcja zajmie scroll-height dziÄ™ki Pinowaniu GSAP. */
}

.cf-pin-wrapper {
  position: relative;
  width: 100vw;
  height: 100vh; /* Pinned viewport height */
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Base Scene */
.cf-scene {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  /* GSAP bÄ™dzie kontrolowaÄ‡ widocznoĹ›Ä‡ */
  opacity: 1; 
  visibility: visible;
}

/* --- SCENE 1: THE SCANNER --- */
.cf-scene-1 {
  background: radial-gradient(circle at center, rgba(10, 46, 42, 0.8) 0%, var(--dark) 70%);
}

.cf-canvas {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: var(--z-raised);
  pointer-events: none;
}

/* The Laser Beam */
.cf-scanner-laser {
  position: absolute;
  top: 0; bottom: 0;
  left: 0; /* GSAP przesunie z 0 do 100% */
  width: 2px;
  background: var(--teal-light);
  z-index: var(--z-float);
  box-shadow: 0 0 20px 2px var(--teal-light-a80);
}

.cf-scanner-laser::after {
  content: '';
  position: absolute;
  top: 0; left: -100px;
  width: 200px; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(45, 212, 191, 0.15) 50%, transparent);
  pointer-events: none;
}

.cf-scene-content {
  position: relative;
  z-index: var(--z-dropdown);
  max-width: 600px;
  text-align: center;
  background: rgba(6, 17, 15, 0.7);
  border: 1px solid var(--teal-light-a15);
  border-radius: var(--radius-2xl);
  padding: 50px;
  backdrop-filter: blur(16px);
  box-shadow: 0 30px 60px var(--black-a60), inset 0 0 20px var(--teal-light-a5);
}

.cf-badge {
  font-family: 'JetBrains Mono', monospace;
  color: var(--teal-light);
  font-size: 0.9rem;
  letter-spacing: 4px;
  margin-bottom: 20px;
}

.cf-title {
  font-size: 3.5rem;
  font-weight: 800;
  margin-bottom: 25px;
  line-height: 1.1;
  color: var(--white);
}

.cf-title .highlight-teal {
  font-size: 1.5rem;
  letter-spacing: 6px;
  text-transform: uppercase;
  font-weight: 400;
  display: block;
  margin-top: 15px;
  text-shadow: 0 0 20px var(--teal-light-a40);
}

.cf-desc {
  font-size: 1.15rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

@media (max-width: 768px) {
  .cf-title { font-size: 2.2rem; }
  .cf-title .highlight-teal { font-size: 1.1rem; letter-spacing: 4px; }
  .cf-scene-content { padding: 30px; margin: 0 20px; }
}

/* --- SCENE 2: THE ACCELERATOR --- */
.cf-scene-2 {
  background: radial-gradient(circle at center, rgba(30, 20, 10, 0.9) 0%, var(--dark) 80%);
}

.cf-scene-2 .cf-scene-content {
  border-color: var(--orange-a20);
  box-shadow: 0 30px 60px var(--black-a60), inset 0 0 20px var(--orange-a5);
}

.cf-accelerator {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 600px; height: 600px;
  z-index: var(--z-raised);
  pointer-events: none;
}

.acc-ring {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  border-radius: var(--radius-full);
  border: 2px solid transparent;
}

.acc-ring-1 {
  width: 500px; height: 500px;
  border-top-color: var(--orange);
  border-bottom-color: var(--orange-a20);
  animation: spin-centered 8s linear infinite;
  box-shadow: 0 0 50px var(--orange-a30);
}

.acc-ring-2 {
  width: 400px; height: 400px;
  border-left-color: var(--orange);
  border-right-color: var(--orange-a50);
  animation: spin-reverse 5s linear infinite;
}

.acc-ring-3 {
  width: 300px; height: 300px;
  border: 4px dashed var(--orange);
  animation: spin-centered 12s linear infinite;
  opacity: 0.6;
}

.acc-core {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 80px; height: 80px;
  background: radial-gradient(circle, #fff, var(--orange) 70%);
  border-radius: var(--radius-full);
  box-shadow: 0 0 80px 20px var(--orange-a60);
  animation: pulse-core 2s ease-in-out infinite alternate;
}

@keyframes spin-centered { 100% { transform: translate(-50%, -50%) rotate(360deg); } }
@keyframes spin-reverse { 100% { transform: translate(-50%, -50%) rotate(-360deg); } }
@keyframes pulse-core {
  0% { transform: translate(-50%, -50%) scale(1); box-shadow: 0 0 50px 10px rgba(249, 115, 22, 0.4); }
  100% { transform: translate(-50%, -50%) scale(1.3); box-shadow: 0 0 100px 30px rgba(249, 115, 22, 0.8); }
}

@media (max-width: 768px) {
  .cf-accelerator { width: 350px; height: 350px; }
  .acc-ring-1 { width: 300px; height: 300px; }
  .acc-ring-2 { width: 220px; height: 220px; }
  .acc-ring-3 { width: 150px; height: 150px; }
  .acc-core { width: 50px; height: 50px; }
}

/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   BPMN 2.0 UNICORN PIPELINE â€” ISOMETRIC PERSPECTIVE
   â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */

.bpmn-section {
    padding: 140px 0;
    background: radial-gradient(circle at center, #0a1a20 0%, #020608 100%);
    position: relative;
    overflow: hidden;
}

/* Post-Processing Overlays (Task 2.3 - MAJSTERSZTYK) */
.bpmn-glitch-overlay {
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(0deg, rgba(0,0,0,0.12) 0px, transparent 1.5px, transparent 3px);
    background-size: 100% 3px;
    pointer-events: none;
    z-index: var(--z-dropdown);
    opacity: 0.18;
}

.bpmn-noise-layer {
    position: absolute;
    inset: 0;
    background: url('https://grainy-gradients.vercel.app/noise.svg');
    opacity: 0.05;
    pointer-events: none;
    z-index: var(--z-dropdown);
    mix-blend-mode: overlay;
}

.bpmn-explorer-container {
    position: relative;
    width: 100%;
    height: 750px;
    background: rgba(3, 10, 14, 0.85);
    border: 1px solid var(--teal-light-a12);
    border-radius: var(--radius-pill);
    margin-top: 60px;
    overflow: hidden;
    perspective: 2500px;
    box-shadow: 
        0 80px 150px var(--black-a80),
        inset 0 0 100px var(--teal-light-a4);
}

.bpmn-iso-wrapper {
    position: absolute;
    top: 50%; left: 50%;
    width: 1600px; height: 1200px;
    transform: translate(-50%, -50%) rotateX(58deg) rotateZ(-38deg);
    transform-style: preserve-3d;
    transition: transform 1.5s cubic-bezier(0.19, 1, 0.22, 1);
}

.bpmn-layer {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    transform-style: preserve-3d;
}

/* Layer 1: The Board Architecture (SUB-PIXEL PRECISION - Task 2.1 & 2.2) */
.circuit-grid {
    position: absolute;
    width: 200%; height: 200%;
    top: -50%; left: -50%;
    background-image: 
        linear-gradient(rgba(45, 212, 191, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(45, 212, 191, 0.04) 1px, transparent 1px);
    background-size: 50px 50px;
    mask-image: radial-gradient(circle, black 35%, transparent 75%);
    pointer-events: none;
}

.circuit-traces {
    position: absolute;
    width: 100%; height: 100%;
    opacity: 0.45;
    filter: drop-shadow(0 0 10px rgba(45,212,191,0.4));
    background: 
        linear-gradient(90deg, transparent 49.9%, rgba(45,212,191,0.5) 50%, transparent 50.1%),
        linear-gradient(0deg, transparent 49.9%, rgba(45,212,191,0.5) 50%, transparent 50.1%);
    background-size: 200px 200px;
    mask-image: radial-gradient(circle, black 65%, transparent 100%);
}

.circuit-traces::after {
    content: '';
    position: absolute;
    inset: 0;
    background: 
        linear-gradient(90deg, transparent 49.95%, rgba(45,212,191,0.8) 50%, transparent 50.05%),
        linear-gradient(0deg, transparent 49.95%, rgba(45,212,191,0.8) 50%, transparent 50.05%);
    background-size: 400px 400px;
    animation: trace-pulse 6s ease-in-out infinite;
}

@keyframes trace-pulse {
    0%, 100% { opacity: 0.25; }
    50% { opacity: 0.6; }
}

/* Layer 2: The Logic (Canvas) */
.layer-canvas {
    transform: translateZ(25px);
    pointer-events: none;
}

.bpmn-canvas {
    width: 100%;
    height: 100%;
}

/* Layer 3: The UI (Nodes) */
.layer-nodes {
    transform: translateZ(60px);
}

.bpmn-node {
    position: absolute;
    transform: translate(-50%, -50%) rotateZ(35deg) rotateX(-55deg); /* Counter-rotate to keep UI flat */
    transform-style: preserve-3d;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform var(--ease-spring), opacity var(--ease-spring), box-shadow var(--ease-spring);
}

.node-icon {
    width: 80px;
    height: 80px;
    background: rgba(10, 25, 30, 0.9);
    border: 2px solid var(--teal-light-a20);
    border-radius: var(--radius-2xl);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--teal-light);
    box-shadow: 
        0 15px 35px var(--black-a50),
        inset 0 0 15px var(--teal-light-a5);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.node-icon svg {
    width: 32px; height: 32px;
    filter: drop-shadow(0 0 8px rgba(45,212,191,0.4));
}

.node-icon::before {
    content: '';
    position: absolute;
    inset: -2px;
    background: linear-gradient(45deg, transparent, rgba(45,212,191,0.4), transparent);
    z-index: var(--z-below);
    animation: border-spin 4s linear infinite;
}

@keyframes border-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* SUB-SIMULATIONS Backgrounds */
.node-simulation {
    position: absolute;
    width: 200px; height: 200px;
    background: radial-gradient(circle, rgba(45,212,191,0.05) 0%, transparent 70%);
    border-radius: var(--radius-full);
    z-index: var(--z-below);
    transform: translateZ(-30px);
    pointer-events: none;
    opacity: 0.3;
}

/* Audyt Laser Animation */
.laser-scanner {
    position: absolute;
    width: 100%; height: 2px;
    background: var(--teal-light);
    top: 0;
    box-shadow: 0 0 15px var(--teal-light);
    animation: laser-scan 3s ease-in-out infinite;
    display: none;
}
.bpmn-node.active .laser-scanner { display: block; }

@keyframes laser-scan {
    0%, 100% { top: 20%; opacity: 0; }
    50% { top: 80%; opacity: 1; }
}

/* Finansowanie Growth Animation */
.liquid-fill {
    position: absolute;
    bottom: 0; left: 50%;
    width: 40px; height: 100%;
    background: linear-gradient(to top, var(--teal-light), transparent);
    transform: translateX(-50%) scaleY(0);
    transform-origin: bottom;
    transition: transform 1.5s ease;
}
.bpmn-node.active .liquid-fill { transform: translateX(-50%) scaleY(0.7); }

/* Deployment Core Assembly Animation */
.core-assembly {
    position: absolute;
    inset: 40px;
    border: 2px dashed var(--teal-light);
    border-radius: var(--radius-full);
    animation: core-rotate 10s linear infinite;
    display: none;
}
.bpmn-node.active .core-assembly { display: block; }
@keyframes core-rotate {
    0% { transform: rotate(0deg) scale(0.8); opacity: 0.2; }
    50% { transform: rotate(180deg) scale(1.1); opacity: 0.5; }
    100% { transform: rotate(360deg) scale(0.8); opacity: 0.2; }
}

/* HyperCare Pulse Shield Animation */
.pulse-shield {
    position: absolute;
    inset: 0;
    border: 4px double var(--teal-light);
    border-radius: var(--radius-full);
    animation: shield-pulse 2s ease-out infinite;
    display: none;
}
.bpmn-node.active .pulse-shield { display: block; }
@keyframes shield-pulse {
    0% { transform: scale(0.5); opacity: 0.8; }
    100% { transform: scale(1.5); opacity: 0; }
}

.bpmn-node:hover {
    transform: translate(-50%, -60%) rotateZ(35deg) rotateX(-55deg) scale(1.1);
}

.bpmn-node:hover .node-icon {
    border-color: var(--teal-light);
    box-shadow: 0 0 40px var(--teal-light-a30);
}

.bpmn-node.active .node-icon {
    background: var(--teal-light);
    color: var(--dark);
    box-shadow: 0 0 60px var(--teal-light-a60);
}

.node-label {
    margin-top: 20px;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1rem;
    color: #fff;
    text-shadow: 0 5px 15px var(--black-a80);
    white-space: nowrap;
}

.node-status {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.7rem;
    color: var(--teal-light);
    margin-top: 8px;
    letter-spacing: 2px;
    background: rgba(0,10,10,0.8);
    padding: 4px 12px;
    border-radius: var(--radius);
    border: 1px solid var(--teal-light-a20);
}

/* Info Panel 2.0 */
.bpmn-info-panel {
    position: absolute;
    bottom: 40px;
    right: 40px;
    width: 450px;
    background: rgba(6, 18, 24, 0.9);
    border: 1px solid var(--teal-light-a30);
    border-radius: var(--radius-2xl);
    padding: 40px;
    z-index: var(--z-sticky);
    backdrop-filter: blur(30px);
    transform: translateX(120%);
    transition: transform 0.8s cubic-bezier(0.19, 1, 0.22, 1);
    box-shadow: -20px 0 80px var(--black-a80);
}

.bpmn-info-panel.visible {
    transform: translateX(0);
}

.info-content {
    opacity: 0;
    transform: translateY(20px);
    transition: transform var(--ease-spring) 0.3s, opacity var(--ease-spring) 0.3s;
}

.bpmn-info-panel.visible .info-content {
    opacity: 1;
    transform: translateY(0);
}

#infoStageTitle {
    font-size: 1.8rem;
    margin: 10px 0 20px;
    background: linear-gradient(90deg, #fff, var(--teal-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.info-stat {
    background: var(--white-a3);
    padding: 15px;
    border-radius: var(--radius-lg);
    border-left: 3px solid var(--teal-light);
}

.stat-val {
    font-size: 1.4rem;
}

@media (max-width: 1024px) {
    .bpmn-iso-wrapper { transform: translate(-50%, -50%) scale(0.6) rotateX(55deg) rotateZ(-35deg); }
    .bpmn-info-panel { width: calc(100% - 40px); left: 20px; bottom: 20px; padding: 25px; }
}

/* --- GROWTH PROCESS METHODOLOGY --- */
.growth-process-container {
    position: relative;
    max-width: 900px;
    margin: 60px auto 0;
    padding: 20px 0 40px;
}

.growth-line {
    position: absolute;
    top: 0;
    left: 40px;
    width: 2px;
    height: 100%;
    background: linear-gradient(to bottom, var(--teal-light), var(--orange));
    opacity: 0.3;
}

.growth-step {
    position: relative;
    display: flex;
    gap: 40px;
    margin-bottom: 50px;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s forwards;
}

.growth-step:nth-child(2) { animation-delay: 0.1s; }
.growth-step:nth-child(3) { animation-delay: 0.2s; }
.growth-step:nth-child(4) { animation-delay: 0.3s; }
.growth-step:nth-child(5) { animation-delay: 0.4s; }

@keyframes fadeInUp {
    to { opacity: 1; transform: translateY(0); }
}

.growth-step:last-child {
    margin-bottom: 0;
}

.step-marker {
    position: relative;
    z-index: var(--z-raised);
    margin-top: 10px;
}

.step-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    background: var(--dark-card);
    border: 2px solid var(--white-a10);
    border-radius: var(--radius-full);
    font-family: 'JetBrains Mono', monospace;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--teal-light);
    box-shadow: 0 0 20px var(--black-a50);
    transition: transform var(--ease-smooth), opacity var(--ease-smooth), box-shadow var(--ease-smooth), color var(--ease-smooth), background-color var(--ease-smooth);
}

.growth-step:nth-child(2n) .step-number {
    color: var(--orange);
}

.growth-step:hover .step-number {
    border-color: var(--teal-light);
    box-shadow: 0 0 30px rgba(20, 184, 166, 0.3);
    transform: scale(1.05);
}

.growth-step:nth-child(2n):hover .step-number {
    border-color: var(--orange);
    box-shadow: 0 0 30px var(--orange-a30);
}

.step-card {
    flex: 1;
    background: var(--dark-card);
    border: 1px solid var(--white-a5);
    border-radius: var(--radius-xl);
    padding: 30px;
    display: flex;
    gap: 20px;
    transition: transform var(--ease-spring), opacity var(--ease-spring), box-shadow var(--ease-spring), background-color var(--ease-spring);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 10px 30px var(--black-a40);
}

.growth-step:hover .step-card {
    transform: translateX(10px);
    border-color: var(--white-a15);
    background: rgba(20, 25, 30, 0.95);
}

.step-icon {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--white-a3);
    border-radius: var(--radius-lg);
}

.step-icon svg {
    stroke: var(--white);
    opacity: 0.8;
    transition: transform var(--ease-default), opacity var(--ease-default), stroke var(--ease-default);
}

.growth-step:hover .step-icon svg {
    stroke: var(--teal-light);
    opacity: 1;
    transform: scale(1.1);
}

.growth-step:nth-child(2n):hover .step-icon svg {
    stroke: var(--orange);
}

.step-content {
    flex: 1;
}

.step-content h3 {
    font-size: 1.35rem;
    margin-bottom: 12px;
    color: var(--white);
    font-weight: 700;
}

.step-content p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 15px;
}

.step-status {
    display: inline-block;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    color: var(--teal-light);
    opacity: 0.7;
    letter-spacing: 1px;
}

.growth-step:nth-child(2n) .step-status {
    color: var(--orange);
}

@media (max-width: 768px) {
    .growth-process-container {
        padding: 10px 0;
    }
    
    .growth-line {
        left: 30px; /* Centered in the 60px circle */
    }
    
    .growth-step {
        flex-direction: column;
        gap: 15px;
        margin-bottom: 40px;
    }
    
    .step-number {
        width: 60px;
        height: 60px;
        font-size: 1.2rem;
    }
    
    .step-card {
        margin-left: 20px;
        padding: 20px;
        flex-direction: column;
        gap: 15px;
    }
    
    .growth-step:hover .step-card {
        transform: translateX(5px);
    }
}

/* Document Viewer */
.doc-viewer-container {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 30px;
    background: var(--teal-a5); /* or var(--dark-card) */
    border: 1px solid var(--white-a5);
    border-radius: var(--radius-xl);
    padding: 20px;
    margin-bottom: 4rem;
}

@media (max-width: 768px) {
    .doc-viewer-container {
        grid-template-columns: 1fr;
    }
    .doc-list {
        max-height: 250px;
        overflow-y: auto;
    }
}

.doc-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.doc-btn {
    background: transparent;
    border: 1px solid transparent;
    border-radius: var(--radius);
    padding: 12px 16px;
    color: var(--white-a70);
    text-align: left;
    font-family: inherit;
    font-size: 0.95rem;
    cursor: pointer;
    transition: transform var(--ease-default), opacity var(--ease-default), background-color var(--ease-default), border-color var(--ease-default), color var(--ease-default), box-shadow var(--ease-default);
    display: flex;
    align-items: center;
    gap: 12px;
}

.doc-btn:hover {
    background: var(--white-a3);
    color: var(--white);
}

.doc-btn.active {
    background: var(--teal-a10);
    border-color: var(--teal-a30);
    color: var(--teal-light);
}

.doc-num {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8rem;
    opacity: 0.7;
}

.doc-btn.active .doc-num {
    color: var(--teal-light);
    opacity: 1;
}

.doc-panel {
    background: var(--black-a20);
    border-radius: var(--radius-lg);
    padding: 30px;
    position: relative;
    border: 1px solid var(--white-a3);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.doc-content {
    display: none;
    animation: docFadeIn 0.3s ease forwards;
}

.doc-content.active {
    display: block;
}

.doc-meta {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    color: var(--teal);
    letter-spacing: 1px;
    margin-bottom: 12px;
}

.doc-content h4 {
    font-size: 1.5rem;
    color: var(--white);
    margin-top: 0;
    margin-bottom: 16px;
}

.doc-content p {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--white-a80);
    margin: 0;
}

@keyframes docFadeIn {
    0% { opacity: 0; transform: translateY(10px); }
    100% { opacity: 1; transform: translateY(0); }
}

/* --- Responsive Overrides for AIP (Task 8) --- */
@media (max-width: 768px) {
    .aip-models-grid { grid-template-columns: 1fr !important; }
    .aip-extra-docs { grid-template-columns: 1fr !important; }
}
.aip-models-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 3rem;
}
.aip-extra-docs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
} 

/* --- CYBER-CIRCUIT SUBSCRIPTION CARDS (Task 2) --- */
.sub-tier-card {
    background: linear-gradient(135deg, rgba(30, 40, 50, 0.4), rgba(10, 15, 20, 0.8));
    border-radius: 0;
    clip-path: polygon(0 0, calc(100% - 30px) 0, 100% 30px, 100% 100%, 30px 100%, 0 calc(100% - 30px));
    padding: 1px; /* border thickness */
    text-align: left;
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 20px 50px var(--black-a60);
    transition: transform var(--ease-spring), background var(--ease-smooth);
}

.sub-tier-card.featured   { background: linear-gradient(135deg, var(--teal), rgba(10, 15, 20, 0.8)); }
.sub-tier-card.platinum   { background: linear-gradient(135deg, var(--orange), rgba(10, 15, 20, 0.8)); }

.sub-tier-card-inner {
    background: #090c10;
    clip-path: polygon(0 0, calc(100% - 29px) 0, 100% 29px, 100% 100%, 29px 100%, 0 calc(100% - 29px));
    padding: 45px 35px;
    height: 100%;
    position: relative;
    display: flex;
    flex-direction: column;
    z-index: var(--z-raised);
    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: 20px 20px;
    background-position: center;
}

/* Pseudo Animated Scanline */
.sub-tier-card::after {
    content: '';
    position: absolute;
    inset: -50%;
    background: linear-gradient(to bottom, transparent, rgba(255,255,255,0.05) 50%, transparent);
    z-index: var(--z-float);
    pointer-events: none;
    animation: cyber-scan 6s linear infinite;
    mix-blend-mode: overlay;
}
.sub-tier-card.featured::after { background: linear-gradient(to bottom, transparent, rgba(45, 212, 191, 0.15) 50%, transparent); }
.sub-tier-card.platinum::after { background: linear-gradient(to bottom, transparent, rgba(249, 115, 22, 0.15) 50%, transparent); }

@keyframes cyber-scan {
    0% { transform: translateY(-50%); }
    100% { transform: translateY(50%); }
}

/* HUD Top marker */
.cyber-hud-top {
    position: absolute;
    top: 15px;
    right: 20px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.6rem;
    color: var(--text-secondary);
    letter-spacing: 1px;
    opacity: 0.6;
}

.sub-tier-card.featured .cyber-hud-top { color: var(--teal); opacity: 0.8; }
.sub-tier-card.platinum .cyber-hud-top { color: var(--orange); opacity: 0.8; }

.sub-tier-badge {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    padding: 6px 12px;
    border-radius: var(--radius-sm); /* Sharp corners */
    display: inline-flex;
    align-items: center;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 25px;
    width: fit-content;
    text-transform: uppercase;
    position: relative;
    overflow: hidden;
}

.sub-tier-badge.standard {
    background: var(--white-a5);
    color: var(--text-secondary);
    border-left: 2px solid var(--white-a30);
}

.sub-tier-badge.featured {
    background: var(--teal-a15);
    color: var(--teal-light);
    border-left: 2px solid var(--teal);
}

.sub-tier-badge.platinum {
    background: var(--orange-a15);
    color: var(--orange-light);
    border-left: 2px solid var(--orange);
}

.sub-tier-title {
    font-size: 2.2rem;
    color: var(--white);
    margin-bottom: 15px;
    font-weight: 700;
    letter-spacing: -0.5px;
    text-transform: uppercase;
}
.sub-tier-card.featured .sub-tier-title { color: var(--teal-light); text-shadow: 0 0 10px var(--teal-light-a30); }
.sub-tier-card.platinum .sub-tier-title { color: var(--orange-light); text-shadow: 0 0 10px var(--orange-a30); }

.sub-tier-desc {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 30px;
    padding-left: 10px;
    border-left: 1px solid var(--white-a10);
}

.sub-tier-features {
    list-style: none;
    padding: 0;
    margin: 0;
    flex: 1; /* Push CTA down */
    border-top: 1px solid var(--white-a10);
    padding-top: 20px;
}

.sub-tier-feature {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 10px 0;
    font-size: 0.9rem;
    color: var(--white-a85);
    font-family: 'JetBrains Mono', monospace;
}

.sub-tier-feature svg {
    flex-shrink: 0;
    stroke: var(--text-secondary);
    width: 18px;
    height: 18px;
}

.sub-tier-card.featured .sub-tier-feature svg {
    stroke: var(--teal);
    filter: drop-shadow(0 0 5px rgba(45, 212, 191, 0.5));
}
.sub-tier-card.platinum .sub-tier-feature svg {
    stroke: var(--orange);
    filter: drop-shadow(0 0 5px rgba(249, 115, 22, 0.5));
}

/* --- CYBER-BENTO DRONE GRID (Task 4) --- */
.docs-bento {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: auto auto;
    gap: 20px;
    margin-bottom: 5rem;
}

.docs-bento-card {
    background: linear-gradient(135deg, rgba(255,255,255,0.1), rgba(0,0,0,0));
    padding: 1px;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform var(--ease-spring), opacity var(--ease-spring), box-shadow var(--ease-spring), background-color var(--ease-spring), border-color var(--ease-spring);
    clip-path: polygon(15px 0, 100% 0, 100% calc(100% - 15px), calc(100% - 15px) 100%, 0 100%, 0 15px);
}
.docs-bento-card.teal { background: linear-gradient(135deg, var(--teal), rgba(0,0,0,0)); }
.docs-bento-card.orange { background: linear-gradient(135deg, var(--orange), rgba(0,0,0,0)); }

.docs-bento-inner {
    background: #0d1116;
    padding: 40px 35px;
    height: 100%;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    z-index: var(--z-raised);
    clip-path: polygon(14px 0, 100% 0, 100% calc(100% - 14px), calc(100% - 14px) 100%, 0 100%, 0 14px);
    overflow: hidden;
}

/* Cyber Bracket Decorator inside inner */
.bento-hud-bracket {
    position: absolute;
    top: 20px; right: 20px;
    width: 20px; height: 20px;
    border-top: 2px solid var(--white-a20);
    border-right: 2px solid var(--white-a20);
}
.docs-bento-card.teal .bento-hud-bracket { border-color: var(--teal-light-a40); }
.docs-bento-card.orange .bento-hud-bracket { border-color: var(--orange-a40); }

/* Animated hover bracket */
.docs-bento-card:hover .bento-hud-bracket {
    width: 100%; height: 100%;
    top: 0; right: 0;
    opacity: 0.1;
    transition: transform var(--ease-smooth), opacity var(--ease-smooth);
}

.docs-bento-card::before {
    content: attr(data-index);
    position: absolute;
    bottom: -15px;
    right: 10px;
    font-size: 8rem;
    font-weight: 800;
    font-family: 'JetBrains Mono', monospace;
    color: var(--white-a2);
    line-height: 1;
    z-index: var(--z-raised); /* under contents */
    pointer-events: none;
    transition: color var(--ease-smooth), transform var(--ease-smooth);
}

.docs-bento-card:hover::before {
    transform: scale(1.1) translateX(-10px);
}
.docs-bento-card.teal:hover::before { color: var(--teal-light-a5); }
.docs-bento-card.orange:hover::before { color: var(--orange-a5); }

.docs-bento-card:hover {
    transform: translateY(-4px);
}

.docs-bento-card.wide { grid-column: span 2; }
.docs-bento-card.tall { grid-row: span 2; }

@media (max-width: 900px) {
    .docs-bento { grid-template-columns: 1fr; }
    .docs-bento-card.wide, .docs-bento-card.tall { grid-column: span 1; grid-row: span 1; }
}

.docs-bento-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 15px;
    font-family: 'Inter', sans-serif;
    position: relative;
    z-index: var(--z-float);
}

.docs-bento-desc {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
    position: relative;
    z-index: var(--z-float);
}

.docs-bento-badge {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.65rem;
    padding: 4px 0;
    display: inline-block;
    margin-bottom: 20px;
    position: relative;
    z-index: var(--z-float);
    opacity: 0.7;
    text-transform: uppercase;
}
.docs-bento-badge.teal { color: var(--teal-light); }
.docs-bento-badge.orange { color: var(--orange-light); }
.solution-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 4rem;
}
.solution-card {
    transition: transform var(--ease-smooth), box-shadow var(--ease-smooth);
}
.solution-card:hover {
    transform: translateY(-5px);
}
@media (max-width: 768px) {
    .solution-grid {
        grid-template-columns: 1fr;
    }
}

/* ================================================================
   AiP SECTION — UX/UI PREMIUM UPGRADE
   Radial glow borders, glassmorphism, micro-animations, hover states
   ================================================================ */

/* --- FAZA 1: Radialny glow-border na kartach tier (::before, bo ::after = scanline) --- */
.sub-tier-card::before {
    content: '';
    position: absolute;
    inset: 0;
    clip-path: inherit;
    padding: 2px;
    background: radial-gradient(800px circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
        rgba(255, 255, 255, 0.35),
        transparent 40%);
    -webkit-mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    opacity: 0;
    transition: opacity var(--ease-smooth);
    z-index: var(--z-float);
}

.sub-tier-card.featured::before {
    background: radial-gradient(800px circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
        rgba(45, 212, 191, 0.6),
        transparent 40%);
}

.sub-tier-card.platinum::before {
    background: radial-gradient(800px circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
        rgba(249, 115, 22, 0.5),
        transparent 40%);
}

.sub-tier-card:hover::before {
    opacity: 1;
}

/* --- FAZA 2: Wyroznienie karty Express/Rekomendowany --- */
.sub-tier-card.featured {
    transform: scale(1.04);
    z-index: var(--z-float);
    box-shadow:
        0 30px 60px var(--black-a70),
        0 0 40px var(--teal-a12);
}

.sub-tier-card.featured:hover {
    transform: translateY(-6px) scale(1.04);
    box-shadow:
        0 35px 70px var(--black-a70),
        0 0 60px var(--teal-a20);
}

/* --- FAZA 3: Micro-animacje idle --- */
@media (hover: hover) {
    .sub-tier-badge.featured {
        animation: badge-pulse-teal 3s ease-in-out infinite;
    }

    .sub-tier-card.platinum {
        animation: platinum-breathe 4s ease-in-out infinite;
    }

    .docs-bento-card::before {
        animation: index-drift 8s ease-in-out infinite;
    }
}

@keyframes badge-pulse-teal {
    0%, 100% { box-shadow: none; }
    50% { box-shadow: 0 0 14px rgba(45, 212, 191, 0.35); }
}

@keyframes platinum-breathe {
    0%, 100% { box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6); }
    50% { box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6), 0 0 30px rgba(249, 115, 22, 0.1); }
}

@keyframes index-drift {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

/* --- FAZA 4: Glassmorphism + glow na bento-kartach --- */

/* Glassmorphism na inner */
.docs-bento-inner {
    background: rgba(13, 17, 22, 0.85) !important;
    backdrop-filter: blur(16px) saturate(1.2);
    -webkit-backdrop-filter: blur(16px) saturate(1.2);
    transition: background var(--ease-smooth);
}

/* Radialny glow-border przez ::after */
.docs-bento-card::after {
    content: '';
    position: absolute;
    inset: 0;
    clip-path: inherit;
    padding: 1px;
    background: radial-gradient(600px circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
        rgba(255, 255, 255, 0.3),
        transparent 40%);
    -webkit-mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    opacity: 0;
    transition: opacity var(--ease-smooth);
    z-index: var(--z-base);
}

.docs-bento-card.teal::after {
    background: radial-gradient(600px circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
        rgba(45, 212, 191, 0.5),
        transparent 40%);
}

.docs-bento-card.orange::after {
    background: radial-gradient(600px circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
        rgba(249, 115, 22, 0.4),
        transparent 40%);
}

.docs-bento-card:hover::after {
    opacity: 1;
}

/* Ulepszone hover */
.docs-bento-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px var(--black-a40);
}

.docs-bento-card.teal:hover {
    box-shadow: 0 20px 40px var(--black-a40), 0 0 25px var(--teal-light-a8);
}

.docs-bento-card.orange:hover {
    box-shadow: 0 20px 40px var(--black-a40), 0 0 25px var(--orange-a8);
}

/* Title glow on hover */
.docs-bento-title {
    transition: color var(--ease-default), text-shadow var(--ease-default);
}

.docs-bento-card.teal:hover .docs-bento-title {
    color: var(--teal-light);
    text-shadow: 0 0 10px var(--teal-light-a30);
}

.docs-bento-card.orange:hover .docs-bento-title {
    color: var(--orange-light);
    text-shadow: 0 0 10px var(--orange-a30);
}

/* Bracket decorator — ulepszony hover */
.bento-hud-bracket {
    transition: transform var(--ease-spring), opacity var(--ease-spring), border-color var(--ease-spring);
}

.docs-bento-card:hover .bento-hud-bracket {
    width: 40px;
    height: 40px;
    opacity: 0.4;
    transition: transform var(--ease-spring), opacity var(--ease-spring);
}

/* Badge hover */
.docs-bento-badge {
    transition: opacity var(--ease-default), letter-spacing var(--ease-default);
}

.docs-bento-card:hover .docs-bento-badge {
    opacity: 1;
    letter-spacing: 2px;
}

/* Inner bg radial glow on hover */
.docs-bento-card.teal:hover .docs-bento-inner {
    background: radial-gradient(ellipse at var(--mouse-x, 50%) var(--mouse-y, 50%),
        rgba(45, 212, 191, 0.05),
        rgba(13, 17, 22, 0.85) 60%) !important;
}

.docs-bento-card.orange:hover .docs-bento-inner {
    background: radial-gradient(ellipse at var(--mouse-x, 50%) var(--mouse-y, 50%),
        rgba(249, 115, 22, 0.05),
        rgba(13, 17, 22, 0.85) 60%) !important;
}

/* --- FAZA 6: Ulepszone hover na kartach tier --- */
.sub-tier-card {
    transition: transform var(--ease-spring),
                box-shadow var(--ease-spring),
                background var(--ease-smooth) !important;
}

.sub-tier-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 25px 55px var(--black-a65), 0 0 20px var(--white-a3);
}

.sub-tier-card.featured:hover {
    box-shadow:
        0 35px 70px var(--black-a70),
        0 0 60px var(--teal-a20);
}

.sub-tier-card.platinum:hover {
    box-shadow:
        0 30px 60px var(--black-a65),
        0 0 40px var(--orange-a15);
}

/* SVG checkmark hover animation */
.sub-tier-feature svg {
    transition: transform var(--ease-default),
                filter var(--ease-default);
}

.sub-tier-card:hover .sub-tier-feature svg {
    transform: scale(1.15);
}

.sub-tier-card.featured:hover .sub-tier-feature svg {
    filter: drop-shadow(0 0 8px rgba(45, 212, 191, 0.6));
}

.sub-tier-card.platinum:hover .sub-tier-feature svg {
    filter: drop-shadow(0 0 8px rgba(249, 115, 22, 0.6));
}

/* --- FAZA 5: AiP Section Headings --- */
.aip-section-heading {
    text-align: center;
    margin-top: 1rem;
    margin-bottom: 2rem;
    color: var(--white);
    font-size: 1.4rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-family: 'JetBrains Mono', monospace;
}

.aip-section-heading.teal-accent { color: var(--teal-light); }
.aip-section-heading.orange-accent { color: var(--orange-light); }
.aip-section-heading.spaced { margin-top: 5rem; margin-bottom: 3rem; }

.aip-section-subtitle {
    opacity: 0.85;
    font-size: 0.55em;
    display: block;
    margin-top: 0.5rem;
    color: var(--text-secondary);
    letter-spacing: 1px;
    text-transform: uppercase;
    font-weight: 400;
}

/* ==========================================================================
   UTILITY CLASSES (Extracted from inline styles — FAZA 5A)
   ========================================================================== */

/* --- A. Color utilities --- */
.text-white { color: var(--white); }
.text-orange { color: var(--orange); }
.text-orange-light { color: var(--orange-light); }
.text-teal-light { color: var(--teal-light); }

/* --- B. Intro tagline mono override --- */
.intro-tagline--mono {
    font-family: 'JetBrains Mono', monospace;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* --- C. Section badge centered variant --- */
.section-badge--center {
    text-align: center;
    display: block;
    margin: 0 auto;
    max-width: max-content;
}

/* --- D. Models grid bottom spacing --- */
.aip-models-grid--spaced {
    margin-bottom: 4rem;
}

/* --- E. Cyber HUD orange override --- */
.cyber-hud-top--orange {
    color: var(--orange);
}

/* --- F. Doc10 / Quick Wins accent --- */
.doc-btn--orange {
    color: var(--orange);
}
.doc-num--orange {
    color: var(--orange);
}
.doc-meta--orange {
    color: var(--orange);
}

/* --- G. Solution card variants --- */
.solution-card--teal {
    background: rgba(12, 138, 127, 0.05);
    border: 1px solid rgba(12, 138, 127, 0.3);
    border-radius: 20px;
    padding: 40px;
    position: relative;
    overflow: hidden;
}

.solution-card--orange {
    background: rgba(232, 117, 26, 0.05);
    border: 1px solid rgba(232, 117, 26, 0.3);
    border-radius: 20px;
    padding: 40px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(232, 117, 26, 0.1);
}

/* --- H. Badge mono (solution card badges) --- */
.badge-mono {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    padding: 6px 12px;
    border-radius: 20px;
    display: inline-block;
    font-weight: bold;
    margin-bottom: 20px;
}
.badge-mono--teal {
    background: var(--teal);
    color: var(--dark);
}
.badge-mono--orange {
    background: var(--orange);
    color: var(--dark);
}

/* --- I. Solution card headings --- */
.solution-card__title {
    font-size: 1.8rem;
    margin-bottom: 20px;
}
.solution-card__title--teal {
    color: var(--teal-light);
}
.solution-card__title--orange {
    color: var(--orange-light);
}

/* --- J. Solution card description --- */
.solution-card__desc {
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--text-secondary);
}

/* --- K. AiP connector centered variants --- */
.aip-connector--center {
    text-align: center;
}
.aip-connector--mt60 {
    margin-top: 60px;
}
.aip-connector--mt40 {
    margin-top: 40px;
}

/* --- L. TFA pricing heading --- */
.tfa-pricing-heading {
    text-align: center;
    font-size: 1.4rem;
    margin-top: 3rem;
    margin-bottom: 1.5rem;
}

/* --- M. TFA success fee note --- */
.tfa-success-fee {
    font-size: 0.85rem;
    color: var(--orange);
    font-weight: 600;
    margin-top: auto;
}

/* --- N. ClickUp canvas styling --- */
.clickup-canvas {
    width: 100%;
    height: 350px;
    background: rgba(5, 20, 18, 0.4);
    border-radius: 12px;
    border: 1px solid rgba(45, 212, 191, 0.1);
}

/* --- O. ClickUp overlay label --- */
.clickup-overlay {
    position: absolute;
    top: 16px;
    left: 24px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    color: var(--teal-light);
    opacity: 0.8;
}

/* --- P. Section desc full-width variant --- */
.section-desc--full {
    max-width: 100%;
}

/* --- Q. Calculator fade elements (initial hidden, JS reveals) --- */
.calc-fade {
    opacity: 0;
    transition: opacity var(--ease-default);
}
.calc-fade--slow {
    opacity: 0;
    transition: opacity var(--ease-smooth);
}

/* --- R. Glossary section background --- */
.glossary-section {
    background: rgba(5, 20, 18, 0.3);
    border-top: 1px solid rgba(45, 212, 191, 0.05);
    border-bottom: 1px solid rgba(45, 212, 191, 0.05);
}

/* --- S. Glossary bento grid top spacing --- */
.bento-grid--spaced {
    margin-top: 3rem;
}

/* --- T. Glossary card --- */
.glossary-card {
    text-align: left;
    background: rgba(255, 255, 255, 0.02);
}
.glossary-card h4 {
    color: var(--teal-light);
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}
.glossary-card p {
    font-size: 0.9rem;
    margin-bottom: 0;
}

/* --- U. Contact form submit button full-width --- */
.btn--full {
    width: 100%;
    justify-content: center;
}

/* --- V. Footer logo brand text --- */
.footer-brand-text {
    font-family: 'JetBrains Mono', monospace;
    font-weight: 800;
    letter-spacing: -1px;
}

/* --- W. Tech stack title spacing variant --- */
.ts-title--spaced {
    margin-top: 60px;
}

/* ==========================================================================
   TECH STACK CATEGORIZED GRID
   ========================================================================== */
.ts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  max-width: 1200px;
  margin: 0 auto 48px;
  padding: 0 24px;
}

.ts-category {
  background: rgba(10, 10, 10, 0.5);
  border: 1px solid var(--teal-light-a10);
  border-radius: var(--radius-lg);
  padding: 24px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: border-color var(--ease-smooth), box-shadow var(--ease-smooth);
}

.ts-category:hover {
  border-color: var(--teal-light-a30);
  box-shadow: 0 8px 32px var(--black-a40), inset 0 0 20px var(--teal-light-a5);
}

.ts-cat-header {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--teal-light);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--white-a5);
}

.ts-cat-icon {
  color: var(--teal-light);
  opacity: 0.7;
  flex-shrink: 0;
}

.ts-tech-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.ts-tech-tag {
  font-family: 'Inter', sans-serif;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--white-a80);
  background: var(--white-a3);
  border: 1px solid var(--white-a8);
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  white-space: nowrap;
  transition: background var(--ease-fast), border-color var(--ease-fast), color var(--ease-fast);
}

.ts-tech-tag:hover {
  background: var(--teal-a10);
  border-color: var(--teal-a20);
  color: var(--teal-light);
}

/* Security Strip */
.ts-security {
  max-width: 1200px;
  margin: 0 auto 48px;
  padding: 16px 24px;
  border: 1px solid var(--white-a5);
  border-radius: var(--radius);
  text-align: center;
  background: var(--white-a2);
}

.ts-security-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.6rem;
  color: var(--white-a30);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  margin-bottom: 8px;
}

.ts-security-tags {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.ts-security-tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--orange-light);
  letter-spacing: 0.03em;
}

.ts-security-divider {
  color: var(--white-a20);
  font-size: 0.75rem;
}

/* Responsive */
@media (max-width: 900px) {
  .ts-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .ts-grid {
    grid-template-columns: 1fr;
  }
  .ts-category {
    padding: 20px;
  }
}

/* ==========================================================================
   TELEMETRY HUD DASHBOARD
   ========================================================================== */
.telemetry-hud {
  background: rgba(10, 10, 10, 0.6);
  border: 1px solid var(--white-a5);
  border-radius: var(--radius-lg);
  padding: 0;
  margin-bottom: 48px;
  overflow: hidden;
  box-shadow: var(--shadow-glow);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.telemetry-hud-header {
  padding: 12px 24px;
  border-bottom: 1px solid var(--white-a5);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  color: var(--white-a60);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.telemetry-hud-status {
  color: var(--teal-light);
  font-weight: 700;
}

.telemetry-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
}

.telemetry-metric {
  padding: 24px 20px 20px;
  border-right: 1px solid var(--white-a5);
  text-align: center;
  position: relative;
}

.telemetry-metric:last-child {
  border-right: none;
}

.telemetry-metric-value {
  font-family: 'JetBrains Mono', monospace;
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--orange);
  line-height: 1;
  margin-bottom: 4px;
}

.telemetry-metric-value--special {
  font-size: 1.3rem;
  background: linear-gradient(135deg, var(--orange), var(--teal-light));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.telemetry-metric-unit {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  color: var(--white-a40);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 2px;
}

.telemetry-metric-label {
  font-size: 0.72rem;
  color: var(--white-a60);
  margin-bottom: 12px;
}

.telemetry-bar {
  height: 3px;
  background: var(--white-a5);
  border-radius: 2px;
  overflow: hidden;
}

.telemetry-bar-fill {
  height: 100%;
  width: 0;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--teal), var(--orange));
  transition: width 1.5s cubic-bezier(0.16, 1, 0.3, 1);
}

@media (max-width: 1024px) {
  .telemetry-grid { grid-template-columns: repeat(3, 1fr); }
  .telemetry-metric:nth-child(3) { border-right: none; }
}
@media (max-width: 600px) {
  .telemetry-grid { grid-template-columns: repeat(2, 1fr); }
  .telemetry-metric:nth-child(2n) { border-right: none; }
  .telemetry-metric-value { font-size: 1.4rem; }
}

/* ==========================================================================
   METRIC BEFORE/AFTER BARS
   ========================================================================== */
.metric-before-after {
  margin: 16px 0;
  padding: 16px;
  background: var(--white-a2);
  border-radius: var(--radius);
  border: 1px solid var(--white-a5);
}

.metric-before-after .metric-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  color: var(--white-a50);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 12px;
  display: block;
}

.metric-bar-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.metric-bar-row:last-child { margin-bottom: 0; }

.metric-tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.65rem;
  color: var(--white-a40);
  width: 50px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  flex-shrink: 0;
}

.metric-bar-track {
  flex: 1;
  height: 6px;
  background: var(--white-a5);
  border-radius: 3px;
  overflow: hidden;
}

.metric-bar-fill--before {
  height: 100%;
  background: var(--orange-a40);
  border-radius: 3px;
}

.metric-bar-fill--after {
  height: 100%;
  background: var(--teal);
  border-radius: 3px;
}

.metric-val {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  color: var(--white-a70);
  width: 70px;
  text-align: right;
  flex-shrink: 0;
}

/* ==========================================================================
   CASE SYSTEM TAGS
   ========================================================================== */
.case-systems {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid var(--white-a5);
}

.case-system-tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.65rem;
  color: var(--teal-light);
  background: var(--teal-a8);
  border: 1px solid var(--teal-a15);
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  letter-spacing: 0.03em;
  text-transform: uppercase;
  white-space: nowrap;
}

/* ==========================================================================
   DEPLOYED AT STRIP
   ========================================================================== */
.deployed-at {
  margin-top: 48px;
  padding: 20px 0;
  border-top: 1px solid var(--white-a5);
  border-bottom: 1px solid var(--white-a5);
  text-align: center;
}

.deployed-at-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.65rem;
  color: var(--white-a30);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 12px;
}

.deployed-at-tags {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.deployed-at-tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--teal-light);
  letter-spacing: 0.05em;
}

.deployed-at-divider {
  color: var(--white-a20);
  font-size: 0.8rem;
}

/* ============================================
   MOBILE FIXES — Consolidated Block
   Fazy 1-8: Overflow, Touch Targets, 480px,
   Typografia, Nawigacja, Formularze, Wydajnosc
   ============================================ */

/* ——— 768px: TABLET / MOBILE ——— */
@media (max-width: 768px) {

  /* Anchor scroll offset — match mobile navbar height (68px) + 8px buffer */
  html {
    scroll-padding-top: 76px;
  }

  /* === FAZA 1: Overflow & Dekoracje === */
  .hero::before {
    width: 400px;
    height: 400px;
    filter: blur(40px);
    opacity: 0.3;
  }

  .pipeline-wrapper {
    min-height: auto;
    padding: 20px 16px;
  }

  .pipeline-track {
    gap: 50px;
  }

  .bpmn-explorer-container {
    height: 500px;
  }

  .bpmn-iso-wrapper {
    transform: translate(-50%, -50%) scale(0.4) rotateX(55deg) rotateZ(-35deg);
  }

  .bpmn-info-panel {
    width: calc(100% - 24px);
    left: 12px;
    bottom: 12px;
    padding: 20px;
  }

  .bpmn-section {
    padding: 80px 0;
  }

  /* === FAZA 2: Touch Targets 44px === */
  .hamburger {
    padding: 12px;
    min-width: 44px;
    min-height: 44px;
    align-items: center;
    justify-content: center;
  }

  .hamburger span {
    width: 26px;
    height: 2.5px;
  }

  .btn-sm {
    padding: 14px 28px;
    min-height: 44px;
  }

  .lang-switcher a {
    padding: 8px 16px;
    min-height: 44px;
    min-width: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
  }

  .footer-links {
    flex-direction: column;
    align-items: center;
    gap: 8px;
  }

  .footer-links a {
    padding: 10px 16px;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
  }

  .nav-links a {
    padding: 12px 16px;
    min-height: 44px;
    display: flex;
    align-items: center;
  }

  /* === FAZA 5: Nawigacja — scroll & safe area === */
  .nav-links {
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    padding-bottom: calc(4rem + env(safe-area-inset-bottom, 0));
  }

  /* === FAZA 6: Formularze === */
  .form-group input,
  .form-group select,
  .form-group textarea {
    font-size: 16px;
  }

  input[type="range"]::-webkit-slider-thumb {
    width: 28px;
    height: 28px;
  }

  input[type="range"]::-moz-range-thumb {
    width: 28px;
    height: 28px;
  }

  /* === FAZA 7: Wydajnosc === */
  .hero-particle {
    display: none;
  }

  .grain-overlay {
    display: none;
  }

  .bpmn-glitch-overlay,
  .bpmn-noise-layer {
    display: none;
  }

  .tilt-card {
    transform-style: flat !important;
  }

  /* === FAZA 8: Polish === */
  .cookie-bar .container {
    flex-direction: column;
    text-align: center;
    gap: 12px;
  }

  .cookie-buttons {
    width: 100%;
    flex-direction: column;
  }

  .cookie-buttons .btn {
    width: 100%;
    min-height: 44px;
  }

  .growth-step {
    gap: 12px;
    margin-bottom: 30px;
  }

  .step-card {
    padding: 20px;
    gap: 14px;
  }

  .solution-card--teal,
  .solution-card--orange {
    padding: 28px 20px;
  }

  .deployed-at {
    margin-top: 32px;
    padding: 16px 0;
  }

}

/* ——— 480px: SMALL PHONES ——— */
@media (max-width: 480px) {

  /* Mobile navbar is consistently 68px; keep the same 76px offset as 768 block */
  html {
    scroll-padding-top: 76px;
  }

  /* === FAZA 1: Overflow & Dekoracje === */
  .hero::before {
    width: 280px;
    height: 280px;
    filter: blur(30px);
    opacity: 0.25;
  }

  .hero::after {
    background-size: 40px 40px;
  }

  .cf-accelerator {
    width: 250px;
    height: 250px;
  }

  .acc-ring-1 {
    width: 220px;
    height: 220px;
  }

  .acc-ring-2 {
    width: 160px;
    height: 160px;
  }

  .acc-ring-3 {
    width: 110px;
    height: 110px;
  }

  .acc-core {
    width: 36px;
    height: 36px;
  }

  .bpmn-explorer-container {
    height: 380px;
  }

  .bpmn-iso-wrapper {
    transform: translate(-50%, -50%) scale(0.28) rotateX(55deg) rotateZ(-35deg);
  }

  .bpmn-info-panel {
    padding: 16px;
  }

  .pipeline-wrapper {
    padding: 16px 12px;
  }

  .pipeline-track {
    gap: 40px;
    margin-top: 60px;
  }

  /* === FAZA 3: Brakujace 480px === */
  .telemetry-grid {
    grid-template-columns: 1fr;
  }

  .telemetry-metric {
    border-right: none;
    border-bottom: 1px solid var(--white-a5);
    padding: 16px;
  }

  .telemetry-metric:last-child {
    border-bottom: none;
  }

  .telemetry-metric-value {
    font-size: 1.2rem;
  }

  .telemetry-hud-header {
    font-size: 0.65rem;
    padding: 10px 16px;
  }

  .calculator-box {
    padding: 20px 16px;
  }

  .contact-form-box {
    padding: 20px 16px;
  }

  .pain-grid,
  .atom-grid {
    gap: 16px;
  }

  .atom-grid {
    grid-template-columns: 1fr;
  }


  .tfa-package {
    padding: 28px 20px;
  }

  .sub-tier-card-inner {
    padding: 30px 20px;
  }

  .docs-bento-inner {
    padding: 28px 20px;
  }

  .step-card {
    padding: 16px;
    gap: 12px;
    margin-left: 10px;
  }

  .step-number {
    width: 50px;
    height: 50px;
    font-size: 1rem;
  }

  .growth-line {
    left: 25px;
  }

  .solution-card--teal,
  .solution-card--orange {
    padding: 24px 16px;
  }

  .ts-partners {
    gap: 20px;
  }

  .tr-partner {
    padding: 16px 24px;
  }

  /* === FAZA 4: Typografia === */
  .deployed-at-label {
    font-size: 0.72rem;
  }

  .case-system-tag,
  .metric-tag {
    font-size: 0.72rem;
  }

  .docs-bento-badge {
    font-size: 0.72rem;
  }

  .telemetry-metric-unit {
    font-size: 0.75rem;
  }

  .cyber-hud-top {
    font-size: 0.7rem;
  }

  .hero-subtitle {
    font-size: 0.95rem;
  }

  .section-desc {
    font-size: 0.88rem;
  }

  .cf-title {
    font-size: 1.8rem;
  }

  .cf-badge {
    font-size: 0.8rem;
    letter-spacing: 2px;
  }

  .cf-desc {
    font-size: 1rem;
  }

  .trn-name {
    font-size: 1.4rem;
  }

  .sub-tier-title {
    font-size: 1.6rem;
  }

  .solution-card__title {
    font-size: 1.4rem;
  }

  .docs-bento-title {
    font-size: 1.2rem;
  }

  .step-content h3 {
    font-size: 1.15rem;
  }

  .kinetic-word {
    white-space: normal;
  }

  /* === FAZA 6: Formularze === */
  .calc-result-value {
    font-size: 1.6rem;
  }

  .calc-result {
    padding: 20px 16px;
  }

  .btn.btn--full {
    min-height: 50px;
    font-size: 1rem;
  }

  /* === FAZA 7: Wydajnosc === */
  .cf-scanner-laser::after {
    display: none;
  }

  /* === FAZA 8: Polish === */
  .savings-ticker {
    height: 24px;
  }

  .savings-ticker .ticker-label,
  .savings-ticker .ticker-data {
    font-size: 0.58rem;
  }

  .hero-trust-item span {
    font-size: 0.82rem;
  }

  .hero-logo-container {
    width: 200px;
    height: 200px;
  }

  .hero-logo-container img {
    width: 180px;
  }

  .counter-value {
    font-size: 1.8rem;
  }

  .counter-currency {
    font-size: 0.9rem;
  }

  .bpmn-section {
    padding: 60px 0;
  }

  .docs-bento-card::before {
    font-size: 5rem;
  }

  #infoStageTitle {
    font-size: 1.4rem;
  }

  .info-stat {
    padding: 12px;
  }

  .stat-val {
    font-size: 1.1rem;
  }

  .deployed-at-tags {
    gap: 8px;
  }

  .deployed-at-tag {
    font-size: 0.7rem;
  }

}

/* ==========================================================================
   ENGINEERING LAB — State of Art Product Showcase
   ========================================================================== */
.lab-section {
  padding: 120px 0;
  position: relative;
  overflow: hidden;
  background: #000;
}

/* Subtle grid pattern background */
.lab-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(45, 212, 191, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(45, 212, 191, 0.03) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
}

/* Radial ambient glow */
.lab-section::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80%;
  height: 80%;
  background: radial-gradient(ellipse, rgba(12, 138, 127, 0.06) 0%, transparent 60%);
  pointer-events: none;
}

/* Terminal header bar */
.lab-header {
  max-width: 1200px;
  margin: 0 auto 48px;
  padding: 14px 28px;
  background: rgba(10, 10, 10, 0.8);
  border: 1px solid var(--white-a8);
  border-radius: var(--radius-lg);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  color: var(--white-a50);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 8px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.lab-header-status {
  color: var(--teal-light);
  font-weight: 800;
  text-shadow: 0 0 12px var(--teal-light);
  animation: lab-pulse 3s ease-in-out infinite;
  flex-shrink: 0;
}

.lab-header-static,
.lab-header-log {
  transition: opacity 0.4s var(--ease-smooth);
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}
.lab-header-log {
  display: none;
  color: var(--teal-light);
  font-weight: 700;
  letter-spacing: 0.04em;
  white-space: nowrap;
}
.lab-header-log::after {
  content: '_';
  margin-left: 2px;
  animation: lab-cursor-blink 1s steps(2, start) infinite;
}
.lab-header.booting .lab-header-static {
  opacity: 0;
  pointer-events: none;
}
.lab-header.booting .lab-header-log {
  display: inline;
}

@keyframes lab-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}
@keyframes lab-cursor-blink {
  0%, 49% { opacity: 1; }
  50%, 100% { opacity: 0; }
}

/* Asymmetric bento grid — reversed on row 2 */
.lab-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-template-rows: auto auto;
  gap: 16px;
  max-width: 1200px;
  margin: 0 auto 32px;
  padding: 0 24px;
  position: relative;
  z-index: var(--z-raised);
}
.lab-grid .lab-card:nth-child(1) { grid-column: span 7; } /* Middleware — wide */
.lab-grid .lab-card:nth-child(2) { grid-column: span 5; } /* SaaS — narrow */
.lab-grid .lab-card:nth-child(3) { grid-column: span 5; } /* Web — narrow */
.lab-grid .lab-card:nth-child(4) { grid-column: span 7; } /* Data — wide */
.lab-grid .lab-card:nth-child(5) { grid-column: span 7; } /* AI Apps — wide */
.lab-grid .lab-card:nth-child(6) { grid-column: span 5; } /* WebSales — narrow */

/* Lab card — premium bento */
.lab-card {
  position: relative;
  background: linear-gradient(135deg, rgba(30, 40, 50, 0.3), rgba(10, 15, 20, 0.7));
  clip-path: polygon(0 0, calc(100% - 24px) 0, 100% 24px, 100% 100%, 24px 100%, 0 calc(100% - 24px));
  padding: 1px;
  transition: transform var(--ease-spring), box-shadow var(--ease-smooth);
}

.lab-card:hover {
  transform: translateY(-8px);
}
.lab-card.accent-teal:hover {
  box-shadow: 0 24px 48px var(--black-a60), 0 0 40px var(--teal-a8);
}
.lab-card.accent-orange:hover {
  box-shadow: 0 24px 48px var(--black-a60), 0 0 40px var(--orange-a8);
}

/* Animated scanline overlay */
.lab-card-inner::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent, rgba(255,255,255,0.02) 50%, transparent);
  height: 200%;
  animation: lab-scanline 8s linear infinite;
  pointer-events: none;
  z-index: var(--z-raised);
}
@keyframes lab-scanline {
  0% { transform: translateY(-50%); }
  100% { transform: translateY(0%); }
}

.lab-card-inner {
  background: rgba(13, 17, 22, 0.88);
  backdrop-filter: blur(16px) saturate(1.2);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
  clip-path: polygon(0 0, calc(100% - 23px) 0, 100% 23px, 100% 100%, 23px 100%, 0 calc(100% - 23px));
  padding: 36px 32px 54px;
  min-height: 340px;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

/* Large index number */
.lab-card-inner::before {
  content: attr(data-index);
  position: absolute;
  top: -10px;
  right: 10px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 8rem;
  font-weight: 900;
  color: var(--white-a2);
  line-height: 1;
  pointer-events: none;
  animation: index-drift 8s ease-in-out infinite;
  z-index: var(--z-base);
}

/* Mouse-tracking radial glow */
.lab-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(600px circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
    rgba(45, 212, 191, 0.15), transparent 40%);
  clip-path: polygon(0 0, calc(100% - 24px) 0, 100% 24px, 100% 100%, 24px 100%, 0 calc(100% - 24px));
  opacity: 0;
  transition: opacity var(--ease-smooth);
  pointer-events: none;
  z-index: var(--z-raised);
}

.lab-card:hover::after {
  opacity: 1;
}

/* Orange variant glow */
.lab-card.accent-orange::after {
  background: radial-gradient(600px circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
    rgba(249, 115, 22, 0.12), transparent 40%);
}

/* Holo-shimmer layer — iridescent prismatic effect on hover */
.lab-holo {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 3;
  opacity: 0;
  transition: opacity 0.5s var(--ease-smooth);
  mix-blend-mode: color-dodge;
  background: radial-gradient(
    circle at var(--holo-x, 50%) var(--holo-y, 50%),
    rgba(255, 255, 255, 0.18) 0%,
    rgba(255, 0, 255, 0.08) 20%,
    rgba(0, 255, 255, 0.10) 40%,
    rgba(255, 255, 0, 0.06) 60%,
    transparent 80%
  );
  clip-path: polygon(0 0, calc(100% - 23px) 0, 100% 23px, 100% 100%, 23px 100%, 0 calc(100% - 23px));
  overflow: hidden;
}
.lab-card:hover .lab-holo,
.lab-card:focus-within .lab-holo {
  opacity: 1;
}
.lab-holo::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    115deg,
    transparent 20%,
    rgba(255, 255, 255, 0.08) 30%,
    rgba(0, 255, 255, 0.12) 35%,
    rgba(255, 0, 255, 0.12) 40%,
    rgba(255, 255, 255, 0.08) 45%,
    transparent 55%
  );
  transform: translate(calc(var(--holo-x, 50%) / 5), calc(var(--holo-y, 50%) / 5));
  filter: blur(20px);
  pointer-events: none;
}

/* Live telemetry readout — per-card PWR/LAT/UPT strip */
.lab-telemetry-line {
  position: absolute;
  bottom: 14px;
  left: 32px;
  right: 32px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.58rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--teal-light-a60);
  z-index: 4;
  display: flex;
  gap: 10px;
  align-items: center;
  pointer-events: none;
  opacity: 0.75;
  transition: opacity 0.4s var(--ease-smooth);
  white-space: nowrap;
}
.lab-card.accent-orange .lab-telemetry-line {
  color: rgba(249, 115, 22, 0.65);
}
.lab-card:hover .lab-telemetry-line,
.lab-card:focus-within .lab-telemetry-line {
  opacity: 1;
}
.lab-tel-metric {
  display: inline-flex;
  gap: 4px;
  align-items: baseline;
}
.lab-tel-metric b {
  color: var(--teal-light);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  min-width: 1ch;
  display: inline-block;
}
.lab-card.accent-orange .lab-tel-metric b {
  color: #fb923c;
}
.lab-tel-div {
  color: var(--white-a15);
}
.lab-tel-metric.glitch b {
  animation: tel-glitch 0.2s ease-out;
}
@keyframes tel-glitch {
  0%, 100% { opacity: 1; transform: translateX(0); }
  25% { opacity: 0.4; transform: translateX(-1px); }
  50% { opacity: 1; transform: translateX(1px); }
  75% { opacity: 0.6; transform: translateX(0); }
}

/* HUD bracket decorator */
.lab-hud-bracket {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 28px;
  height: 28px;
  border-top: 2px solid var(--white-a15);
  border-right: 2px solid var(--white-a15);
  transition: transform var(--ease-smooth), opacity var(--ease-smooth), border-color var(--ease-smooth);
  z-index: var(--z-stacked);
  pointer-events: none;
}

.lab-card:hover .lab-hud-bracket {
  width: 36px;
  height: 36px;
  border-color: var(--teal-light-a40);
}

.lab-card.accent-orange:hover .lab-hud-bracket {
  border-color: var(--orange-a40);
}

/* Terminal header inside card */
.lab-card-terminal {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.65rem;
  color: var(--teal-light-a60);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--white-a5);
  position: relative;
  z-index: var(--z-stacked);
}

.lab-card.accent-orange .lab-card-terminal {
  color: var(--orange-a60);
}

/* Card title */
.lab-card-title {
  font-family: 'Inter', sans-serif;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--white);
  letter-spacing: -0.02em;
  margin-bottom: 4px;
  position: relative;
  z-index: var(--z-stacked);
}

/* Tagline */
.lab-card-tagline {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.78rem;
  color: var(--teal-light);
  margin-bottom: 16px;
  position: relative;
  z-index: var(--z-stacked);
}

.lab-card.accent-orange .lab-card-tagline {
  color: var(--orange-light);
}

/* Description */
.lab-card-desc {
  font-size: 0.88rem;
  color: var(--white-a60);
  line-height: 1.6;
  margin-bottom: 20px;
  flex-grow: 1;
  position: relative;
  z-index: var(--z-stacked);
}

/* Tech tags */
.lab-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  position: relative;
  z-index: var(--z-stacked);
}

.lab-card-tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.62rem;
  font-weight: 500;
  color: var(--white-a60);
  background: var(--white-a3);
  border: 1px solid var(--white-a8);
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  letter-spacing: 0.02em;
  white-space: nowrap;
  transition: transform 0.25s var(--ease-spring), opacity var(--ease-fast), background-color var(--ease-fast), color var(--ease-fast), border-color var(--ease-fast), box-shadow var(--ease-fast);
}

.lab-card-tag:hover {
  color: var(--teal-light);
  background: var(--teal-a10);
  border-color: var(--teal-a20);
  transform: scale(1.06) translateY(-1px);
  box-shadow: 0 4px 14px rgba(45, 212, 191, 0.18);
}

.lab-card.accent-orange .lab-card-tag:hover {
  color: var(--orange-light);
  background: var(--orange-a10);
  border-color: var(--orange-a20);
  box-shadow: 0 4px 14px rgba(249, 115, 22, 0.18);
}

/* Mini canvas for card animations */
.lab-card-canvas {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 120px;
  pointer-events: none;
  opacity: 0.55;
  z-index: var(--z-base);
  transition: opacity var(--ease-smooth), filter var(--ease-smooth);
  filter: drop-shadow(0 0 10px rgba(45, 212, 191, 0.12));
}
.lab-card.accent-orange .lab-card-canvas {
  filter: drop-shadow(0 0 10px rgba(249, 115, 22, 0.12));
}

.lab-card:hover .lab-card-canvas,
.lab-card:focus-within .lab-card-canvas {
  opacity: 0.9;
}
.lab-card:hover.accent-teal .lab-card-canvas {
  filter: drop-shadow(0 0 16px rgba(45, 212, 191, 0.22));
}
.lab-card:hover.accent-orange .lab-card-canvas {
  filter: drop-shadow(0 0 16px rgba(249, 115, 22, 0.22));
}

/* Index number accent tint per variant */
.lab-card.accent-teal .lab-card-inner::before {
  color: rgba(45, 212, 191, 0.03);
}
.lab-card.accent-orange .lab-card-inner::before {
  color: rgba(249, 115, 22, 0.03);
}

/* Index number hover intensification */
.lab-card-inner::before {
  transition: color 0.5s var(--ease-smooth), transform 0.5s var(--ease-spring), text-shadow 0.5s var(--ease-smooth);
}
.lab-card:hover.accent-teal .lab-card-inner::before,
.lab-card:focus-within.accent-teal .lab-card-inner::before {
  color: rgba(45, 212, 191, 0.18);
  text-shadow: 0 0 28px rgba(45, 212, 191, 0.35);
  transform: translateY(-8px) scale(1.03);
  animation-play-state: paused;
}
.lab-card:hover.accent-orange .lab-card-inner::before,
.lab-card:focus-within.accent-orange .lab-card-inner::before {
  color: rgba(249, 115, 22, 0.18);
  text-shadow: 0 0 28px rgba(249, 115, 22, 0.35);
  transform: translateY(-8px) scale(1.03);
  animation-play-state: paused;
}

/* HUD bracket breathing on hover */
@keyframes hud-bracket-breathe-teal {
  0%, 100% { filter: drop-shadow(0 0 2px rgba(45, 212, 191, 0.4)); }
  50% { filter: drop-shadow(0 0 10px rgba(45, 212, 191, 0.8)); }
}
@keyframes hud-bracket-breathe-orange {
  0%, 100% { filter: drop-shadow(0 0 2px rgba(249, 115, 22, 0.4)); }
  50% { filter: drop-shadow(0 0 10px rgba(249, 115, 22, 0.8)); }
}
.lab-card:hover.accent-teal .lab-hud-bracket,
.lab-card:focus-within.accent-teal .lab-hud-bracket {
  animation: hud-bracket-breathe-teal 3s ease-in-out infinite;
}
.lab-card:hover.accent-orange .lab-hud-bracket,
.lab-card:focus-within.accent-orange .lab-hud-bracket {
  animation: hud-bracket-breathe-orange 3s ease-in-out infinite;
}

/* Card-inner keyboard focus outline */
.lab-card-inner {
  outline: none;
}
.lab-card-inner:focus-visible {
  outline: 2px solid var(--teal-light);
  outline-offset: 6px;
  box-shadow: 0 0 30px rgba(45, 212, 191, 0.25);
}
.lab-card.accent-orange .lab-card-inner:focus-visible {
  outline-color: #fb923c;
  box-shadow: 0 0 30px rgba(249, 115, 22, 0.25);
}

/* Bottom status strip */
.lab-status {
  max-width: 1200px;
  margin: 0 auto;
  padding: 14px 28px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  position: relative;
  z-index: var(--z-raised);
}

.lab-status-module {
  color: var(--teal-light-a60);
}

.lab-status-module .lab-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  background: var(--teal-light);
  border-radius: 50%;
  margin-right: 6px;
  box-shadow: 0 0 8px var(--teal-light);
  animation: lab-pulse 3s ease-in-out infinite;
}
/* Stagger pulse per module */
.lab-status-module:nth-child(1) .lab-dot { animation-delay: 0s; }
.lab-status-module:nth-child(3) .lab-dot { animation-delay: 0.6s; }
.lab-status-module:nth-child(5) .lab-dot { animation-delay: 1.2s; }
.lab-status-module:nth-child(7) .lab-dot { animation-delay: 1.8s; }

.lab-status-divider {
  color: var(--white-a15);
}

/* Tablet breakpoint */
@media (max-width: 1024px) {
  .lab-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .lab-grid .lab-card:nth-child(1),
  .lab-grid .lab-card:nth-child(2),
  .lab-grid .lab-card:nth-child(3),
  .lab-grid .lab-card:nth-child(4),
  .lab-grid .lab-card:nth-child(5),
  .lab-grid .lab-card:nth-child(6) {
    grid-column: span 1;
  }
}

/* Mobile breakpoint */
@media (max-width: 768px) {
  .lab-section { padding: 80px 0; }
  .lab-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .lab-grid .lab-card:nth-child(1),
  .lab-grid .lab-card:nth-child(2),
  .lab-grid .lab-card:nth-child(3),
  .lab-grid .lab-card:nth-child(4),
  .lab-grid .lab-card:nth-child(5),
  .lab-grid .lab-card:nth-child(6) {
    grid-column: span 1;
  }
  .lab-card-inner { padding: 28px 24px; min-height: auto; }
  .lab-card-inner::before { font-size: 5rem; }
  .lab-card-inner::after { display: none; }
  .lab-card-title { font-size: 1.25rem; }
  .lab-header { font-size: 0.6rem; padding: 10px 16px; }
  .lab-status { gap: 12px; font-size: 0.62rem; }
  .lab-card-canvas { height: 80px; }
  .lab-telemetry-line {
    left: 24px;
    right: 24px;
    bottom: 10px;
    font-size: 0.52rem;
    gap: 8px;
  }
  .lab-header-log { font-size: 0.58rem; }
}

/* Reduced motion — respect user preference */
@media (prefers-reduced-motion: reduce) {
  .lab-card-inner::after,
  .lab-card-inner::before,
  .lab-status-module .lab-dot,
  .lab-header-status,
  .lab-hud-bracket,
  .lab-card-canvas,
  .lab-header-log::after,
  .lab-tel-metric.glitch b {
    animation: none !important;
    transition: none !important;
  }
  .lab-card-canvas { opacity: 0.4; }
  .lab-holo { display: none; }
  .lab-card:hover .lab-card-inner::before,
  .lab-card:focus-within .lab-card-inner::before {
    transform: none !important;
  }
}

/* ============================================
   CONSOLIDATED MOBILE OVERRIDES
   (merged from mobile-fixes.css — placed last
    for natural specificity, no !important)
   ============================================ */
@media (max-width: 768px) {
  .navbar { padding: 16px 0; }
  .navbar.scrolled { padding: 10px 0; }

  .hero { padding: 100px 0 50px; }
  .hero-content h1 {
    font-size: clamp(1.8rem, 6vw, 2.4rem);
    margin-bottom: 12px;
  }
  .hero-subtitle {
    font-size: 1rem;
    margin-bottom: 14px;
  }
  .hero-content > p:last-of-type {
    font-size: 0.92rem;
    line-height: 1.6;
    margin-bottom: 24px;
  }
  p {
    font-size: 0.95rem;
    line-height: 1.65;
  }
  .hero-buttons {
    margin-bottom: 28px;
    gap: 12px;
  }
  .hero-buttons .btn {
    width: 100%;
    text-align: center;
    justify-content: center;
  }
  .hero-trust {
    gap: 12px;
    padding: 16px 0;
  }
  .hero-visual { margin-top: 20px; }
  .hero-logo-container { width: 160px; height: 160px; }
  .hero-logo-container img { width: 140px; }

  section { padding: 70px 0; }
  .section-badge { margin-bottom: 14px; font-size: 0.7rem; }
  .section-desc { font-size: 0.9rem; line-height: 1.6; }

  .cookie-bar { padding: 12px 16px; }
  .cookie-bar p { font-size: 0.75rem; line-height: 1.4; }

  .telemetry-label {
    font-size: 0.55rem;
    top: 6px;
    right: 12px;
    padding: 2px 8px;
  }
  .scroll-progress-hud { height: 3px; }

  .pipeline-counter {
    position: static;
    min-width: auto;
    margin: 0 auto 20px;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .hero { padding: 80px 0 36px; }
  .hero-content h1 {
    font-size: 1.65rem;
    line-height: 1.2;
    margin-bottom: 10px;
  }
  .hero-subtitle {
    font-size: 0.9rem;
    margin-bottom: 10px;
  }
  .hero-content > p:last-of-type {
    font-size: 0.85rem;
    line-height: 1.55;
    margin-bottom: 20px;
  }
  p {
    font-size: 0.88rem;
    line-height: 1.6;
  }
  .hero-buttons { margin-bottom: 20px; }
  .hero-buttons .btn {
    padding: 12px 20px;
    font-size: 0.85rem;
  }
  .hero-trust-item strong { font-size: 0.95rem; }
  .hero-trust-item span { font-size: 0.72rem; }
  .hero-trust { padding: 12px 0; gap: 10px; }
  .hero-visual { margin-top: 16px; }
  .hero-logo-container { width: 130px; height: 130px; }
  .hero-logo-container img { width: 110px; }

  section { padding: 50px 0; }
  .section-badge {
    font-size: 0.65rem;
    padding: 5px 10px;
    margin-bottom: 12px;
  }
  h2.section-title, h2 { margin-bottom: 14px; }
  .section-desc { margin-bottom: 30px; }

  .cookie-bar { padding: 8px 12px; }
  .cookie-bar .container {
    flex-direction: row;
    align-items: center;
    gap: 10px;
  }
  .cookie-bar p { font-size: 0.65rem; line-height: 1.3; flex: 1; }
  .cookie-buttons {
    flex-direction: row;
    width: auto;
    gap: 6px;
    flex-shrink: 0;
  }
  .cookie-buttons .btn {
    padding: 8px 14px;
    font-size: 0.72rem;
    min-height: 36px;
    width: auto;
  }

  .navbar { padding: 12px 0; }
  .navbar.scrolled { padding: 8px 0; }
  .nav-logo-img { height: 32px; }

  .telemetry-label {
    font-size: 0.5rem;
    padding: 2px 6px;
    top: 5px;
    right: 8px;
  }

  .lab-section { padding: 50px 0; }
  .lab-header { font-size: 0.6rem; padding: 10px 12px; }
  .lab-grid { gap: 10px; }
  .lab-card-inner { padding: 24px 18px; }
  .lab-card-inner::before { font-size: 4rem; }
  .lab-card-title { font-size: 1.15rem; }
  .lab-card-tagline { font-size: 0.72rem; margin-bottom: 12px; }
  .lab-card-desc { font-size: 0.82rem; line-height: 1.5; margin-bottom: 14px; }
  .lab-card-tag { font-size: 0.6rem; padding: 3px 8px; }
  .lab-card-terminal { font-size: 0.6rem; }
  .lab-card-canvas { height: 60px; }
  .lab-status {
    gap: 8px;
    font-size: 0.55rem;
    padding: 10px 16px;
    flex-wrap: wrap;
    justify-content: center;
  }
  .lab-status-divider { display: none; }

  .pipeline-counter { padding: 14px 18px; }
  .counter-value { font-size: 1.5rem; }

  .cf-scene-content { padding: 24px 18px; margin: 0 12px; }

  .org-panels { grid-template-columns: 1fr; }
}

/* ============================================
   MOBILE PERFORMANCE FALLBACK
   Disable expensive backdrop-filter on mobile where
   the GPU cost is prohibitive — use opaque background instead.
   ============================================ */
@media (max-width: 768px) {
  .navbar,
  .navbar.scrolled {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    background-color: rgba(3, 10, 14, 0.92) !important;
  }
  .hero-logo-container {
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
  }
  .sub-tier-card,
  .docs-bento-card,
  .aip-step,
  .pain-card,
  .atom-card,
  .case-card,
  .team-card,
  .tfa-package {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }
}

/* ============================================
   RENDER OPTIMIZATION — content-visibility
   Skip rendering off-screen sections until near viewport.
   Dramatically reduces initial paint cost on long pages.
   ============================================ */
#engineering-lab,
#case-studies,
#atom,
#zespol,
#kalkulator,
#glosariusz,
#finansowanie {
  content-visibility: auto;
  contain-intrinsic-size: auto 1200px;
}

/* Honor reduced motion — kill keyframe animations + transitions,
   but DO NOT override transform (cursor + GSAP need it to position) */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .hero-particle,
  .trail-canvas {
    animation: none !important;
  }
}

/* ============================================
   LANDSCAPE PHONES — short-viewport rescue
   Matches rotated phones (e.g. 812×375, 844×390),
   NOT tablets in portrait (768×1024 has max-height > 500).
   Single-column layout preserved; only padding + visual scale
   are reduced to fit content above the fold.
   ============================================ */
@media (max-height: 500px) and (orientation: landscape) {
  /* Landscape anchor offset — navbar expands above 768px width but we still
     need breathing room when scrolling to anchors on rotated phones */
  html {
    scroll-padding-top: 110px;
  }

  .hero {
    min-height: auto;
    padding: 70px 0 30px;
  }
  .hero-content h1 {
    font-size: clamp(1.4rem, 4vw, 1.9rem);
    margin-bottom: 6px;
  }
  .hero-subtitle {
    font-size: 0.85rem;
    margin-bottom: 8px;
  }
  .hero-content > p:last-of-type {
    font-size: 0.78rem;
    margin-bottom: 12px;
  }
  .hero-buttons {
    margin-bottom: 14px;
    gap: 10px;
  }
  .hero-trust {
    padding: 8px 0;
  }
  .hero-visual {
    margin-top: 20px;
  }
  .hero-logo-container {
    width: 110px;
    height: 110px;
  }
  .hero-logo-container img {
    width: 90px;
  }

  section {
    padding: 40px 0;
  }

  .nav-links.open {
    padding-top: 70px;
    overflow-y: auto;
    max-height: 100vh;
  }
}

/* ==========================================================================
   FAZA 5 — UX/IA + Experience (Max Effort, MSP-focus)
   ========================================================================== */

/* ---- 5.1 Nav: "More" dropdown + Lang dropdown ---- */
.nav-more,
.nav-lang {
  position: relative;
  display: flex;
  align-items: center;
}

.nav-more-trigger,
.nav-lang-trigger {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: none;
  color: var(--text-secondary);
  font-family: inherit;
  font-weight: 500;
  font-size: 0.85rem;
  letter-spacing: 0.01em;
  padding: 4px 0;
  cursor: pointer;
  transition: color 260ms cubic-bezier(0.22, 1, 0.36, 1);
  position: relative;
}

.nav-more-trigger:hover,
.nav-more-trigger[aria-expanded="true"],
.nav-lang-trigger:hover,
.nav-lang-trigger[aria-expanded="true"] {
  color: var(--white);
}

.nav-more-trigger:focus-visible,
.nav-lang-trigger:focus-visible {
  outline: 2px solid var(--teal-light);
  outline-offset: 3px;
  border-radius: 2px;
}

.nav-chevron {
  transition: transform 280ms cubic-bezier(0.22, 1, 0.36, 1);
}

.nav-more-trigger[aria-expanded="true"] .nav-chevron {
  transform: rotate(180deg);
}

.nav-globe {
  flex-shrink: 0;
  color: var(--teal-light);
}

.nav-lang-current {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  font-weight: 600;
}

.nav-more-menu,
.nav-lang-menu {
  position: absolute;
  top: calc(100% + 18px);
  right: 0;
  min-width: 220px;
  background: rgba(6, 12, 16, 0.96);
  backdrop-filter: blur(20px) saturate(1.5);
  -webkit-backdrop-filter: blur(20px) saturate(1.5);
  border: 1px solid var(--teal-a15);
  border-radius: var(--radius);
  padding: 8px;
  box-shadow:
    0 20px 60px rgba(0, 0, 0, 0.7),
    0 0 0 1px var(--white-a5) inset,
    0 0 30px var(--teal-a10);
  z-index: calc(var(--z-overlay) + 1);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition:
    opacity 220ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 220ms cubic-bezier(0.22, 1, 0.36, 1),
    visibility 0s linear 220ms;
  pointer-events: none;
}

.nav-more-trigger[aria-expanded="true"] + .nav-more-menu,
.nav-lang-trigger[aria-expanded="true"] + .nav-lang-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  transition:
    opacity 220ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 220ms cubic-bezier(0.22, 1, 0.36, 1),
    visibility 0s linear 0s;
  pointer-events: auto;
}

/* HUD-style top accent line */
.nav-more-menu::before,
.nav-lang-menu::before {
  content: '';
  position: absolute;
  top: -1px;
  left: 12px;
  right: 12px;
  height: 1px;
  background: linear-gradient(90deg,
    transparent,
    var(--teal-light) 40%,
    var(--orange) 60%,
    transparent);
  opacity: 0.6;
}

.nav-more-menu a,
.nav-lang-menu a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  color: var(--text-secondary);
  font-size: 0.85rem;
  border-radius: var(--radius-sm);
  transition: background-color 180ms ease, color 180ms ease, transform 180ms ease;
  text-decoration: none;
  position: relative;
}

.nav-more-menu a::after,
.nav-lang-menu a::after {
  display: none !important;
}

.nav-more-menu a:hover,
.nav-more-menu a:focus-visible,
.nav-lang-menu a:hover,
.nav-lang-menu a:focus-visible {
  background-color: var(--teal-a10);
  color: var(--white);
  outline: none;
  transform: translateX(2px);
}

.nav-lang-menu a span {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--teal-light);
  letter-spacing: 0.05em;
  min-width: 22px;
}

.nav-lang-menu a.active {
  background-color: var(--orange-a12);
  color: var(--white);
}

.nav-lang-menu a.active span {
  color: var(--orange);
}

/* Mobile: dropdowns expanded inline in drawer */
@media (max-width: 768px) {
  .nav-more,
  .nav-lang {
    display: block;
    width: 100%;
  }

  .nav-more-trigger,
  .nav-lang-trigger {
    display: none; /* hide trigger on mobile; items below are shown directly */
  }

  .nav-more-menu,
  .nav-lang-menu {
    position: static;
    display: flex;
    flex-direction: column;
    opacity: 1;
    visibility: visible;
    transform: none;
    pointer-events: auto;
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border: none;
    box-shadow: none;
    padding: 0;
    min-width: 0;
  }

  .nav-more-menu::before,
  .nav-lang-menu::before {
    display: none;
  }

  .nav-more-menu a,
  .nav-lang-menu a {
    font-size: 1.1rem;
    padding: 14px 18px;
    border-radius: var(--radius);
  }

  .nav-lang-menu {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--teal-a12);
  }
}

/* ---- 5.2 Sticky mobile bottom CTA ---- */
.mobile-sticky-cta {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: var(--z-sticky);
  padding: 14px 18px calc(14px + env(safe-area-inset-bottom, 0));
  background: linear-gradient(180deg,
    rgba(6, 12, 16, 0) 0%,
    rgba(6, 12, 16, 0.92) 30%,
    rgba(6, 12, 16, 0.98) 100%);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid var(--teal-a25);
  box-shadow:
    0 -2px 0 0 var(--teal-a15) inset,
    0 -20px 50px -20px rgba(0, 0, 0, 0.8);
  transform: translateY(110%);
  transition: transform 380ms cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none;
}

.mobile-sticky-cta.is-visible {
  transform: translateY(0);
  pointer-events: auto;
}

.mobile-sticky-cta .btn {
  display: flex;
  width: 100%;
  justify-content: center;
  padding: 16px 24px;
  font-size: 0.95rem;
  font-weight: 700;
  box-shadow: 0 8px 30px var(--orange-a40);
}

@media (max-width: 768px) {
  .mobile-sticky-cta {
    display: block;
  }
}

@media (prefers-reduced-motion: reduce) {
  .mobile-sticky-cta {
    transition: none;
  }
}

/* ---- 5.5 Post-case CTA ---- */
.post-cases-cta {
  max-width: 720px;
  margin: 80px auto 0;
  padding: 48px 40px;
  text-align: center;
  background: radial-gradient(ellipse at center,
    var(--orange-a8) 0%,
    var(--teal-a5) 40%,
    transparent 70%),
    var(--dark-card);
  border: 1px solid var(--orange-a25);
  border-radius: var(--radius-2xl);
  position: relative;
  overflow: hidden;
  box-shadow:
    0 0 0 1px var(--white-a5) inset,
    0 20px 60px rgba(0, 0, 0, 0.4),
    0 0 80px var(--orange-a10);
}

.post-cases-cta::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg,
    transparent,
    var(--teal-light) 30%,
    var(--orange) 70%,
    transparent);
}

.post-cases-text {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--teal-light);
  margin-bottom: 18px;
}

.post-cases-cta .btn {
  font-size: 1rem;
  padding: 18px 40px;
  margin-bottom: 18px;
}

.post-cases-subtext {
  font-size: 0.82rem;
  color: var(--text-secondary);
  letter-spacing: 0.02em;
  margin: 0;
}

@media (max-width: 768px) {
  .post-cases-cta {
    padding: 36px 24px;
    margin-top: 60px;
  }
}

/* ---- 5.4 Hero sectors row ---- */
.hero-sectors {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  padding: 14px 0;
  margin-top: 20px;
  border-top: 1px solid var(--white-a6);
}

.hero-sectors-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-secondary);
  opacity: 0.75;
}

.hero-sectors-list {
  display: flex;
  gap: 14px;
  list-style: none;
  padding: 0;
  margin: 0;
  flex-wrap: wrap;
}

.hero-sectors-list li {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: var(--teal-a5);
  border: 1px solid var(--teal-a15);
  border-radius: var(--radius-pill);
  font-size: 0.72rem;
  color: var(--teal-light);
  font-weight: 500;
  transition: all 220ms ease;
}

.hero-sectors-list li:hover {
  background: var(--teal-a12);
  border-color: var(--teal-a25);
  transform: translateY(-1px);
}

.hero-sectors-list svg {
  width: 14px;
  height: 14px;
  stroke: var(--teal-light);
  stroke-width: 1.5;
  fill: none;
}

@media (max-width: 768px) {
  .hero-sectors {
    justify-content: center;
    gap: 12px;
  }

  .hero-sectors-list {
    justify-content: center;
  }
}

/* ---- 5.6 Calculator email capture ---- */
.calc-email-capture {
  margin-top: 20px;
  padding: 18px 20px;
  background: var(--teal-a5);
  border: 1px dashed var(--teal-a25);
  border-radius: var(--radius);
}

.calc-email-headline {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--teal-light);
  margin: 0 0 12px 0;
}

.calc-email-form {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.calc-email-form input[type="email"] {
  flex: 1;
  min-width: 220px;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--white-a15);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  font-family: inherit;
  font-size: 0.88rem;
  color: var(--white);
  transition: border-color 220ms, background-color 220ms;
}

.calc-email-form input[type="email"]:focus {
  outline: none;
  border-color: var(--teal-light);
  background: rgba(0, 0, 0, 0.6);
  box-shadow: 0 0 0 3px var(--teal-a15);
}

.calc-email-form input[type="email"]::placeholder {
  color: var(--text-secondary);
  opacity: 0.6;
}

.calc-email-form .btn {
  padding: 12px 24px;
  font-size: 0.85rem;
  white-space: nowrap;
}

.calc-email-message {
  margin: 10px 0 0;
  font-size: 0.82rem;
  min-height: 1.2em;
}

.calc-email-message.is-success {
  color: var(--teal-light);
}

.calc-email-message.is-error {
  color: #f87171;
}

/* ---- C1 Depth Meter HUD (collapsible nav — hover/click to expand) ---- */
.depth-meter-hud {
  position: fixed;
  top: 96px;
  right: 20px;
  z-index: var(--z-sticky);
  width: 200px;
  padding: 12px 14px 10px;
  background: linear-gradient(180deg,
    rgba(6, 14, 18, 0.92) 0%,
    rgba(4, 10, 13, 0.95) 100%);
  backdrop-filter: blur(20px) saturate(1.6);
  -webkit-backdrop-filter: blur(20px) saturate(1.6);
  border: 1px solid var(--teal-a15);
  border-radius: var(--radius);
  box-shadow:
    0 16px 40px rgba(0, 0, 0, 0.5),
    0 0 0 1px var(--white-a4) inset,
    0 0 30px var(--teal-a8);
  font-family: 'JetBrains Mono', monospace;
  color: var(--teal-light);
  opacity: 0;
  transform: translateX(24px);
  transition:
    opacity 420ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 420ms cubic-bezier(0.22, 1, 0.36, 1),
    width 380ms cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 380ms ease;
  pointer-events: none;
}

.depth-meter-hud.is-visible {
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
}

/* Expanded state: slightly wider + stronger shadow */
.depth-meter-hud:hover,
.depth-meter-hud.is-expanded {
  width: 240px;
  box-shadow:
    0 24px 70px rgba(0, 0, 0, 0.6),
    0 0 0 1px var(--teal-a25) inset,
    0 0 50px var(--teal-a15);
}

/* HUD top accent line */
.depth-meter-hud::before {
  content: '';
  position: absolute;
  top: -1px;
  left: 14px;
  right: 14px;
  height: 1px;
  background: linear-gradient(90deg,
    transparent,
    var(--teal-light) 30%,
    var(--orange) 70%,
    transparent);
  opacity: 0.7;
}

.depth-meter-hud.is-complete {
  border-color: var(--orange-a40);
  box-shadow:
    0 16px 40px rgba(0, 0, 0, 0.5),
    0 0 0 1px var(--orange-a25) inset,
    0 0 50px var(--orange-a25);
}

.depth-meter-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.depth-meter-tag {
  color: var(--orange);
  font-size: 0.54rem;
  font-weight: 700;
  letter-spacing: 0.14em;
}

.depth-meter-pct {
  font-size: 0.54rem;
  letter-spacing: 0.08em;
  color: var(--teal-light);
  opacity: 0.85;
}

/* Clickable header: current section label + chevron */
.depth-meter-current {
  position: relative;
  color: var(--white);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  line-height: 1.2;
  min-height: 1em;
  padding: 2px 18px 2px 0;
  margin-bottom: 8px;
  cursor: pointer;
  user-select: none;
  transition: color 260ms ease;
}

.depth-meter-current::after {
  content: '';
  position: absolute;
  right: 2px;
  top: 50%;
  width: 6px;
  height: 6px;
  border-right: 1.5px solid var(--teal-a60);
  border-bottom: 1.5px solid var(--teal-a60);
  transform: translateY(-70%) rotate(45deg);
  transition: transform 360ms cubic-bezier(0.22, 1, 0.36, 1),
              border-color 260ms ease;
}

.depth-meter-hud:hover .depth-meter-current::after,
.depth-meter-hud.is-expanded .depth-meter-current::after {
  transform: translateY(-30%) rotate(225deg);
  border-color: var(--orange);
}

.depth-meter-bar {
  height: 2px;
  background: var(--white-a8);
  border-radius: 1px;
  overflow: hidden;
  position: relative;
}

.depth-meter-fill {
  height: 100%;
  width: 10%;
  background: linear-gradient(90deg, var(--teal-light) 0%, var(--orange) 100%);
  border-radius: 1px;
  box-shadow: 0 0 10px var(--teal-a50);
  transition: width 520ms cubic-bezier(0.22, 1, 0.36, 1);
}

/* Collapsible nodes list */
.depth-meter-nodes {
  display: flex;
  flex-direction: column;
  gap: 1px;
  list-style: none;
  padding: 0;
  margin: 0;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  border-top: 1px solid transparent;
  transition:
    max-height 460ms cubic-bezier(0.22, 1, 0.36, 1),
    opacity 280ms ease,
    padding-top 360ms cubic-bezier(0.22, 1, 0.36, 1),
    margin-top 360ms cubic-bezier(0.22, 1, 0.36, 1),
    border-top-color 300ms ease;
}

.depth-meter-hud:hover .depth-meter-nodes,
.depth-meter-hud.is-expanded .depth-meter-nodes {
  max-height: 420px;
  opacity: 1;
  padding-top: 8px;
  margin-top: 8px;
  border-top-color: var(--teal-a12);
}

.depth-meter-nodes li {
  margin: 0;
  padding: 0;
}

.depth-node {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 6px 8px 6px 2px;
  background: transparent;
  border: none;
  font-family: inherit;
  font-size: 0.66rem;
  color: var(--white-a50);
  text-align: left;
  cursor: pointer;
  border-radius: var(--radius-sm);
  letter-spacing: 0.03em;
  transition: background-color 200ms ease, color 200ms ease, transform 200ms ease;
  position: relative;
}

.depth-node::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--white-a15);
  border: 1px solid var(--white-a20);
  flex-shrink: 0;
  transition: all 260ms ease;
}

.depth-node span {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.depth-node:hover,
.depth-node:focus-visible {
  color: var(--white);
  background: var(--teal-a8);
  outline: none;
  transform: translateX(2px);
}

.depth-node:hover::before,
.depth-node:focus-visible::before {
  background: var(--teal-light);
  border-color: var(--teal-light);
  box-shadow: 0 0 8px var(--teal-a60);
}

.depth-node.is-visited {
  color: var(--white-a70);
}

.depth-node.is-visited::before {
  background: var(--teal-a40);
  border-color: var(--teal-light);
}

.depth-node.is-active {
  color: var(--white);
  background: linear-gradient(90deg, var(--orange-a12) 0%, transparent 80%);
}

.depth-node.is-active::before {
  background: var(--orange);
  border-color: var(--orange);
  box-shadow: 0 0 12px var(--orange-a60);
}

.depth-node.is-active span {
  font-weight: 600;
}

@media (max-width: 1024px) {
  .depth-meter-hud { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .depth-meter-hud,
  .depth-meter-fill,
  .depth-node,
  .depth-node::before,
  .depth-meter-current {
    transition: none;
  }
}

.case-card {
  transition: opacity 320ms ease, filter 320ms ease;
}

@media (prefers-reduced-motion: reduce) {
  .case-card {
    transition: opacity 0.01ms;
  }
}

/* ---- C2 Idle Ambient Mode ---- */
.idle-feed {
  position: fixed;
  bottom: 24px;
  left: 24px;
  z-index: var(--z-sticky);
  max-width: 280px;
  padding: 10px 14px;
  background: rgba(6, 12, 16, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--teal-a15);
  border-radius: var(--radius-sm);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.62rem;
  color: var(--teal-light);
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 620ms ease, transform 620ms ease;
  pointer-events: none;
}

body.is-idle .idle-feed {
  opacity: 0.8;
  transform: translateY(0);
}

.idle-feed-header {
  color: var(--orange);
  font-size: 0.58rem;
  letter-spacing: 0.12em;
  margin-bottom: 6px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--teal-a15);
}

.idle-feed-lines {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.idle-feed-lines li {
  opacity: 0;
  transform: translateX(-4px);
  animation: idleFeedLineIn 520ms ease forwards;
  color: var(--white-a70);
  line-height: 1.4;
}

.idle-feed-lines li::before {
  content: '// ';
  color: var(--teal-light);
  opacity: 0.6;
}

@keyframes idleFeedLineIn {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

body.is-idle {
  transition: filter 2s ease;
  filter: brightness(0.92);
}

body.is-idle .depth-meter-section::before {
  content: '◉ ';
  color: var(--orange);
  animation: idlePulse 2s ease-in-out infinite;
}

@keyframes idlePulse {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 1; }
}

@media (max-width: 1024px) {
  .idle-feed { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  body.is-idle {
    transition: none;
    filter: none;
  }
  .idle-feed,
  .idle-feed-lines li {
    transition: none;
    animation: none;
  }
}

/* ==========================================================================
   ARTICLE PAGES (2026-04-11)
   Glossary clickable cards + /artykuly/*.html article layout
   ========================================================================== */

/* --- 6A. Glossary linked card (clickable) --- */
.glossary-card--linked {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
    padding-bottom: 24px;
}

.glossary-card--linked h3,
.glossary-card--linked h4 {
    transition: color var(--ease-smooth);
}

.glossary-card--linked p {
    flex-grow: 1;
    margin-bottom: 18px;
}

.glossary-card__cta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: auto;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--teal-light);
    font-weight: 700;
    transition: color var(--ease-smooth), gap var(--ease-smooth);
}

.glossary-card__arrow {
    display: inline-block;
    transition: transform var(--ease-smooth);
}

.glossary-card--linked:hover .glossary-card__cta,
.glossary-card--linked:focus-visible .glossary-card__cta {
    color: var(--orange);
    gap: 10px;
}

.glossary-card--linked:hover .glossary-card__arrow,
.glossary-card--linked:focus-visible .glossary-card__arrow {
    transform: translateX(4px);
}

.glossary-card--linked:hover h3,
.glossary-card--linked:hover h4,
.glossary-card--linked:focus-visible h3,
.glossary-card--linked:focus-visible h4 {
    color: var(--white);
}

.glossary-card--linked:focus-visible {
    outline: 2px solid var(--teal-light);
    outline-offset: 4px;
}

@media (hover: none) {
    .glossary-card--linked .glossary-card__cta {
        color: var(--teal-light);
    }
}

/* --- 6B. Article page body + HUD overrides --- */
.page-article .scroll-progress-hud,
.page-article .grain-overlay,
.page-article .depth-meter-hud,
.page-article .idle-feed,
.page-article .mobile-sticky-cta,
.page-article .savings-ticker,
.page-article #bootLoader,
.page-article #introOverlay,
.page-article #qa10Cursor,
.page-article #trailCanvas,
.page-article #ghostCursor {
    display: none !important;
}

.page-article {
    background: var(--dark);
}

.page-article .navbar {
    background: rgba(6, 12, 16, 0.92);
    backdrop-filter: blur(16px) saturate(1.4);
    -webkit-backdrop-filter: blur(16px) saturate(1.4);
    border-bottom: 1px solid rgba(20, 184, 166, 0.08);
}

/* --- 6C. Article page container + breadcrumb --- */
.article-page {
    padding: 140px 0 80px;
    min-height: 80vh;
}

.article-breadcrumb {
    max-width: 780px;
    margin: 0 auto 32px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.72rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.article-breadcrumb ol {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    padding: 0;
    margin: 0;
    list-style: none;
}

.article-breadcrumb li {
    color: var(--gray);
}

.article-breadcrumb li[aria-current="page"] {
    color: var(--teal-light);
}

.article-breadcrumb a {
    color: var(--gray);
    text-decoration: none;
    transition: color var(--ease-smooth);
}

.article-breadcrumb a:hover,
.article-breadcrumb a:focus-visible {
    color: var(--white);
}

/* --- 6D. Article hero --- */
.article-hero {
    max-width: 780px;
    margin: 0 auto 48px;
    text-align: left;
}

.article-hero .section-badge {
    font-size: 0.68rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--teal-light);
    margin-bottom: 20px;
}

.article-title {
    font-size: clamp(2rem, 4vw, 2.8rem);
    line-height: 1.15;
    margin-bottom: 20px;
    color: var(--text-heading);
    letter-spacing: -0.02em;
}

.article-lead {
    font-size: 1.15rem;
    line-height: 1.6;
    color: var(--gray-light);
    margin-bottom: 24px;
    max-width: 720px;
}

.article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.72rem;
    color: var(--gray);
    letter-spacing: 0.05em;
    text-transform: uppercase;
    padding-top: 16px;
    border-top: 1px solid var(--white-a6);
}

.article-meta-sep {
    color: var(--white-a20);
}

/* --- 6E. Article prose (content body) --- */
.article-content,
.article-prose {
    max-width: 720px;
    margin: 0 auto;
}

.article-prose h2 {
    font-size: clamp(1.5rem, 2.8vw, 1.9rem);
    color: var(--white);
    margin: 56px 0 20px;
    letter-spacing: -0.015em;
    line-height: 1.25;
}

.article-prose h2:first-child {
    margin-top: 0;
}

.article-prose h3 {
    font-size: 1.15rem;
    color: var(--white);
    margin: 36px 0 14px;
    font-weight: 700;
}

.article-prose p {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--gray-light);
    margin-bottom: 20px;
}

.article-prose p:last-child {
    margin-bottom: 0;
}

.article-prose strong {
    color: var(--white);
    font-weight: 700;
}

.article-prose em {
    font-style: normal;
    color: var(--teal-light);
}

.article-prose ul,
.article-prose ol {
    margin: 0 0 24px;
    padding-left: 1.4em;
    color: var(--gray-light);
}

.article-prose li {
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 10px;
}

.article-prose li::marker {
    color: var(--teal-light);
}

.article-prose a {
    color: var(--teal-light);
    text-decoration: underline;
    text-decoration-color: var(--teal-a30);
    text-underline-offset: 3px;
    transition: color var(--ease-smooth), text-decoration-color var(--ease-smooth);
}

.article-prose a:hover,
.article-prose a:focus-visible {
    color: var(--white);
    text-decoration-color: var(--teal-light);
}

.article-prose p.article-standout {
    font-size: 1.35rem;
    line-height: 1.5;
    font-weight: 600;
    color: var(--teal-light);
    border-left: 2px solid var(--teal-light);
    padding-left: 24px;
    margin: 36px 0;
    font-family: 'Inter', sans-serif;
}

.article-prose .article-case,
.article-prose blockquote.article-case {
    background: linear-gradient(135deg, rgba(12, 138, 127, 0.06), rgba(249, 115, 22, 0.03));
    border: 1px solid var(--teal-a15);
    border-left: 3px solid var(--teal-light);
    padding: 24px 28px;
    margin: 32px 0;
    border-radius: var(--radius);
}

.article-prose .article-case p {
    margin-bottom: 12px;
    font-size: 1rem;
    line-height: 1.7;
    color: var(--gray-light);
}

.article-prose .article-case p:last-child {
    margin-bottom: 0;
}

.article-prose .article-case strong.article-case-company {
    color: var(--teal-light);
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.88em;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    display: block;
    margin-bottom: 6px;
}

/* --- 6F. Article CTA + Related --- */
.article-cta {
    max-width: 780px;
    margin: 72px auto 0;
    padding: 40px 44px;
    background: linear-gradient(135deg, rgba(249, 115, 22, 0.06), rgba(12, 138, 127, 0.04));
    border: 1px solid var(--orange-a15);
    border-radius: var(--radius-xl);
    text-align: center;
}

.article-cta h2 {
    font-size: 1.75rem;
    margin-bottom: 16px;
    color: var(--white);
}

.article-cta p {
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--gray-light);
    margin-bottom: 16px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.article-cta-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
    margin-top: 28px;
}

.article-related {
    max-width: 1000px;
    margin: 96px auto 0;
    padding-top: 56px;
    border-top: 1px solid var(--white-a8);
}

.article-related h2 {
    font-size: 1.5rem;
    color: var(--white);
    margin-bottom: 32px;
    text-align: center;
}

.article-related-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.article-related-card {
    display: block;
    padding: 28px;
    background: var(--dark-card);
    border: 1px solid var(--teal-a8);
    border-radius: var(--radius-lg);
    text-decoration: none;
    color: inherit;
    transition: transform var(--ease-smooth), border-color var(--ease-smooth), box-shadow var(--ease-smooth);
}

.article-related-card:hover,
.article-related-card:focus-visible {
    transform: translateY(-4px);
    border-color: var(--teal-light-a30);
    box-shadow: 0 10px 30px var(--black-a50);
}

.article-related-card:focus-visible {
    outline: 2px solid var(--teal-light);
    outline-offset: 2px;
}

.article-related-label {
    display: inline-block;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.65rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--orange);
    margin-bottom: 12px;
}

.article-related-card h3 {
    font-size: 1.15rem;
    color: var(--white);
    margin-bottom: 10px;
    line-height: 1.3;
}

.article-related-card p {
    font-size: 0.9rem;
    line-height: 1.5;
    color: var(--text-secondary);
    margin: 0;
}

/* --- 6G. Mobile responsiveness --- */
@media (max-width: 768px) {
    .article-page {
        padding: 110px 0 60px;
    }

    .article-hero {
        margin-bottom: 36px;
    }

    .article-title {
        font-size: 1.85rem;
    }

    .article-lead {
        font-size: 1rem;
    }

    .article-prose h2 {
        font-size: 1.4rem;
        margin-top: 40px;
    }

    .article-prose p,
    .article-prose li {
        font-size: 1rem;
        line-height: 1.7;
    }

    .article-prose p.article-standout {
        font-size: 1.15rem;
        padding-left: 16px;
        margin: 24px 0;
    }

    .article-prose .article-case {
        padding: 20px 18px;
    }

    .article-cta {
        padding: 32px 24px;
        margin-top: 48px;
    }

    .article-cta h2 {
        font-size: 1.4rem;
    }

    .article-cta-actions {
        flex-direction: column;
    }

    .article-cta-actions .btn {
        width: 100%;
        justify-content: center;
    }

    .article-related {
        margin-top: 60px;
    }

    .article-related-grid {
        grid-template-columns: 1fr;
    }

    .article-breadcrumb {
        font-size: 0.65rem;
    }

    .glossary-card__cta {
        font-size: 0.68rem;
    }
}

@media (max-width: 480px) {
    .article-page {
        padding: 96px 0 48px;
    }

    .article-title {
        font-size: 1.6rem;
    }

    .article-meta {
        font-size: 0.65rem;
    }
}
