/* ============================================
   BASE STYLES - Reset, Variables, Typography
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Barlow:wght@400;500&display=swap');

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

/* ====== CSS VARIABLES ====== */
:root {
  --bg-dark: #0a0e17;
  --text-primary: #f4f4f4;
  --text-secondary: #28292f;
  --accent-blue: #3ec1fa;
  --accent-orange: #ff8c42;
  --white: #ffffff;
  --control-bg: rgba(10, 14, 23, 0.85);
  --control-border: rgba(62, 193, 250, 0.3);
  --content-max-width: 1200px;
  
  /* Section spacing */
  --section-padding-y: 80px;
  --section-padding-x: 24px;
  --topbar-height: 64px;
}

/* Smooth-scroll targets: leave room for fixed topbar */
#about,
#mission,
#services,
#use-cases,
#contact,
#kontakt {
  scroll-margin-top: var(--topbar-height);
}

.scroll-anchor {
  display: block;
  height: 0;
  overflow: hidden;
  pointer-events: none;
}

/* ====== BASE ELEMENTS ====== */
html {
  height: 100%;
  scroll-behavior: smooth;
}

body {
  min-height: 100%;
  font-family: "Barlow", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: var(--bg-dark);
  color: var(--text-primary);
  overflow-x: hidden;
}

p {
  line-height: 1.5;
}

/* ====== GLOBAL TYPOGRAPHY STYLES ====== */
/* Based on About Us section - consistent across all sections */

/* Global h2 styles (exclude contact-title which needs to be bigger) */
.section h2:not(.contact-title):not(.contact-title-glow),
.section * h2:not(.contact-title):not(.contact-title-glow) {
  font-family: "Inter", sans-serif;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.5px;
  color: var(--white);
  margin-bottom: 24px;
}

/* Global h3 styles */
.section h3,
.section * h3 {
  font-family: "Inter", sans-serif;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.5px;
  color: var(--white);
  margin-bottom: 24px;
}

/* Global paragraph styles */
.section p,
.section * p,
.hero-section p:not(.hero-slogan),
.hero-section * p:not(.hero-slogan) {
  font-family: "Barlow", sans-serif;
  font-size: clamp(0.95rem, 1.3vw, 1.05rem);
  font-weight: 400;
  letter-spacing: 0.01em;
  color: var(--white);
  margin-bottom: 16px;
  line-height: 1.5;
}

.section p:last-child,
.section * p:last-child,
.hero-section p:last-child:not(.hero-slogan),
.hero-section * p:last-child:not(.hero-slogan) {
  margin-bottom: 0;
}

/* ====== HOMEPAGE BODY ====== */
body.homepage {
  background: var(--bg-dark);
  margin: 0;
  padding: 0;
}

/* Hide any stray theme elements */
body.homepage > header:not(.topbar),
body.homepage .page-title,
body.homepage .site-header {
  display: none !important;
}

/* ====== BASE SECTION STYLES ====== */
.section {
  position: relative;
  z-index: 10;
  width: 100%;
  max-width: var(--content-max-width);
  margin: 0 auto;
  padding: var(--section-padding-y) var(--section-padding-x);
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-title {
  /* Use global h2 styles for consistency */
  font-family: "Inter", sans-serif;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.5px;
  color: var(--white);
  margin-bottom: 24px;
}

/* Ostatni tytuł w headerze – nie duplikować margin (section-header ma już 60px) */
.section-header .section-title:last-child {
  margin-bottom: 0;
}

.section-subtitle {
  font-family: "Inter", sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.6);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 16px;
}

.section-content {
  width: 100%;
}

/* ====== PAGE CONTENT ====== */
.page-content {
  position: relative;
  z-index: 10;
  max-width: 800px;
  margin: 0 auto;
  padding: 60px clamp(40px, 8vw, 120px);
  font-family: "Inter", sans-serif;
  font-size: 1.1rem;
  line-height: 1.8;
  color: rgba(244, 244, 244, 0.85);
}

.page-content a {
  color: var(--accent-blue);
}
/* ============================================
   CANVAS - Blob Canvas
   ============================================ */

/* ====== BLOB CANVAS ====== */
#blob-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  will-change: transform, opacity;
}

/* Scroll fade overlay - disabled, folds now scroll */
#scroll-fade-overlay {
  display: none;
}

/* Section folds – wymuszenie sRGB dla spójności kolorów Firefox vs Chromium */
#section-folds-blurred {
  color-space: srgb;
}

/* Canvas interaction layer */
#canvas-interaction {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}

/* ====== FALLBACK (no canvas support) ====== */
.no-canvas-fallback {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #0a0e17 0%, #0f1824 40%, #0a0e17 100%);
  z-index: -1;
}

.no-canvas .no-canvas-fallback {
  display: block;
}

.no-canvas #blob-canvas {
  display: none;
}
/* ============================================
   TOPBAR - Navigation Header
   ============================================ */

.topbar-wrap {
  position: fixed;
  top: 24px;
  left: 0;
  right: 0;
  z-index: 10000;
  padding: 0 16px;
  display: flex;
  justify-content: center;
  pointer-events: none;
}

.topbar-wrap > .topbar {
  pointer-events: auto;
}

.topbar {
  position: relative;
  padding: 0;
  height: 64px;
  width: fit-content;
  max-width: 1200px;
  box-sizing: border-box;
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: 48px;
  overflow: visible;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: rgb(0 0 0 / 35%) 0px 0px 20px 0px;
  transition: background 0.4s ease, border-color 0.4s ease;
}


.topbar.scrolled {
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.5);
}

.topbar .logo-link {
  display: flex;
  align-items: center;
  text-decoration: none;
  margin-right: 48px;
  padding-left: 24px;
  flex-shrink: 0;
}

.topbar .logo-link .topbar-logo-svg {
  width: 140px;
  max-width: 100%;
  height: auto;
  display: block;
}

/* When on top: change black paths (#25272f) to white; blue (#71bcde) stays blue */
.topbar .logo-link path[style*="fill:#25272f"] {
  fill: #ffffff !important;
  transition: fill 0.4s ease;
}

.topbar .logo-link path[style*="stroke:#25272f"] {
  stroke: #ffffff !important;
  transition: stroke 0.4s ease;
}

/* When scrolled: black paths stay black */
.topbar.scrolled .logo-link path[style*="fill:#25272f"] {
  fill: #25272f !important;
}

.topbar.scrolled .logo-link path[style*="stroke:#25272f"] {
  stroke: #25272f !important;
}

.topbar .logo-text {
  font-family: "Inter", sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--white);
  margin-right: 48px;
  transition: color 0.4s ease;
}

.topbar.scrolled .logo-text {
  color: #1a1a1a;
}

.topbar-right {
  display: flex;
  align-items: stretch;
  margin-left: auto;
  flex-shrink: 0;
}

.topbar-nav {
  display: flex;
  align-items: center;
  gap: clamp(24px, 4vw, 32px);
  padding-right: 24px;
  min-width: 0;
  flex-shrink: 1;
}

.topbar-nav a {
  font-family: "Inter", sans-serif;
  font-size: 1rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  transition: color 0.4s ease;
}

.topbar.scrolled .topbar-nav a {
  color: rgba(26, 26, 26, 0.9);
}

.topbar-nav a:hover {
  color: var(--white);
}

/* 1104px – mniejsze odstępy */
@media (max-width: 1104px) {
  .topbar {
    gap: 20px;
  }

  .topbar .logo-link {
    margin-right: 24px;
    padding-left: 18px;
  }

  .topbar .logo-link .topbar-logo-svg {
    width: 120px;
  }

  .topbar-nav {
    gap: 16px;
    padding-right: 14px;
  }

  .topbar-nav a {
    font-size: 0.9rem;
  }

  .topbar-cta {
    font-size: 0.9rem;
    gap: 8px;
  }

  .topbar-cta .arrow-circle {
    width: 38px;
    min-width: 38px;
    height: 38px;
    min-height: 38px;
  }

  .lang-trigger {
    width: 46px;
    min-width: 46px;
  }
}

/* ====== LANGUAGE DROPDOWN (globe + menu) ====== */
.lang-dropdown {
  position: relative;
  align-self: stretch;
  flex-shrink: 0;
}

.lang-trigger {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  min-width: 52px;
  height: 100%;
  padding: 0;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  border-left: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 0 16px 16px 0;
  cursor: pointer;
  transition: background 0.3s ease;
}

.lang-trigger:hover {
  background: rgba(255, 255, 255, 0.2);
}

.topbar.scrolled .lang-trigger {
  background: rgba(26, 26, 26, 0.05);
  border-left-color: rgba(26, 26, 26, 0.12);
}

.topbar.scrolled .lang-trigger:hover {
  background: rgba(26, 26, 26, 0.1);
}

.globe-icon {
  width: 22px;
  height: 22px;
  color: rgba(255, 255, 255, 0.9);
  transition: color 0.3s ease;
}

.topbar.scrolled .globe-icon {
  color: rgba(26, 26, 26, 0.9);
}

.lang-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 140px;
  max-width: calc(100vw - 24px);
  padding: 8px 0;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
}

.lang-option {
  display: block;
  padding: 10px 20px;
  font-family: "Inter", sans-serif;
  font-size: 0.95rem;
  font-weight: 500;
  color: #1a1a1a;
  text-decoration: none;
  transition: background 0.2s ease;
}

.lang-option:hover {
  background: rgba(0, 0, 0, 0.05);
}

.lang-option--current {
  color: #1a1a1a;
  font-weight: 600;
}

.topbar.scrolled .topbar-nav a:hover {
  color: #1a1a1a;
  opacity: 0.7;
}

.topbar-cta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: "Inter", sans-serif;
  font-size: 0.95rem;
  font-weight: 500;
  padding: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.9);
  border: none;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.4s ease;
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
}

.topbar.scrolled .topbar-cta {
  color: rgba(26, 26, 26, 0.9);
}

.topbar-cta:hover {
  color: var(--white);
}

.topbar.scrolled .topbar-cta:hover {
  color: #1a1a1a;
  opacity: 0.7;
}

.topbar-cta .arrow-circle {
  --arrow-scroll: 0;
  flex-shrink: 0;
  width: 44px;
  min-width: 44px;
  height: 44px;
  min-height: 44px;
  background: linear-gradient(
    in oklch 40deg,
    var(--accent-blue) 0%,
    #ff8c42 25%,
    var(--accent-blue) 50%,
    #ff8c42 75%,
    var(--accent-blue) 100%
  );
  background-size: 2000% 100%;
  background-position-x: calc(var(--arrow-scroll) * 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease;
}

.topbar-cta:hover .arrow-circle {
  transform: scale(1.05);
}

.topbar-cta .arrow-circle svg {
  width: 18px;
  height: 18px;
  stroke: #333;
  stroke-width: 2;
  fill: none;
  transition: stroke 0.4s ease;
}

.topbar.scrolled .topbar-cta .arrow-circle svg {
  stroke: #1a1a1a;
}

/* ====== INNER PAGE TOPBAR ====== */
.topbar-inner {
  position: fixed;
  background: rgba(255, 255, 255, 0.12);
}

/* ====== INNER PAGE HERO ====== */
.page-hero {
  position: relative;
  padding: 160px clamp(40px, 8vw, 120px) 80px;
  background: linear-gradient(135deg, var(--bg-dark) 0%, #0f1824 50%, var(--bg-dark) 100%);
  min-height: 320px;
  display: flex;
  align-items: flex-end;
}

.page-hero-image {
  background-size: cover;
  background-position: center;
  position: relative;
}

.page-hero-image::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(10, 14, 23, 0.7) 0%,
    rgba(10, 14, 23, 0.85) 60%,
    rgba(10, 14, 23, 1) 100%
  );
}

.page-hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
}

.page-hero-title {
  font-family: "Inter", sans-serif;
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  color: var(--white);
  letter-spacing: -1px;
  line-height: 1.15;
  margin: 0 0 16px 0;
}

.page-hero-description {
  font-family: "Inter", sans-serif;
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  color: rgba(244, 244, 244, 0.75);
  max-width: 600px;
  line-height: 1.6;
  margin: 0;
}

/* ====== RESPONSIVE ====== */
/* 850px – tablet */
@media (max-width: 850px) {
  .topbar-wrap {
    top: 12px;
  }

  .topbar {
    height: 52px;
    width: fit-content;
    max-width: min(calc(100vw - 32px), 1200px);
    gap: 12px;
  }

  .topbar .logo-link {
    margin-right: 16px;
    padding-left: 16px;
    min-width: 0;
  }

  .topbar .logo-link .topbar-logo-svg {
    width: 110px;
    max-width: 100%;
  }

  .topbar .logo,
  .topbar .logo-text {
    margin-right: 16px;
  }

  .topbar-nav {
    gap: 12px;
    padding-right: 12px;
    min-width: 0;
  }

  .topbar-nav a {
    font-size: 0.8rem;
  }

  .topbar-cta {
    font-size: 0.8rem;
    gap: 6px;
  }

  .topbar-cta .arrow-circle {
    width: 32px;
    min-width: 32px;
    height: 32px;
    min-height: 32px;
  }

  .lang-trigger {
    width: 40px;
    min-width: 40px;
  }

  .globe-icon {
    width: 18px;
    height: 18px;
  }

  .lang-menu {
    right: 0;
    left: auto;
    min-width: 120px;
  }
}

/* 600px – uproszczona nawigacja (About, Services ukryte) + full width na mobile */
@media (max-width: 600px) {
  .topbar-wrap {
    padding: 0 12px;
  }

  .topbar {
    width: 100%;
    max-width: none;
    gap: 10px;
  }

  .topbar .logo-link {
    margin-right: 12px;
    padding-left: 12px;
  }

  .topbar .logo-link .topbar-logo-svg {
    width: 90px;
  }

  .topbar-nav {
    padding-right: 8px;
    gap: 8px;
  }

  .topbar-nav a:not(.topbar-cta) {
    display: none;
  }

  .lang-trigger {
    width: 38px;
    min-width: 38px;
  }
}

/* 320px and small phones */
@media (max-width: 400px) {
  .topbar-wrap {
    top: 8px;
    padding: 0 8px;
  }

  .topbar {
    width: 100%;
    max-width: none;
    height: 48px;
    gap: 8px;
  }

  .topbar .logo-link {
    margin-right: 8px;
    padding-left: 8px;
  }

  .topbar .logo-link .topbar-logo-svg {
    width: 80px;
  }

  .topbar-nav {
    padding-right: 4px;
  }

  .topbar-cta .arrow-circle {
    width: 28px;
    min-width: 28px;
    height: 28px;
    min-height: 28px;
  }

  .topbar-cta .arrow-circle svg {
    width: 12px;
    height: 12px;
  }

  .lang-trigger {
    width: 36px;
    min-width: 36px;
  }

  .globe-icon {
    width: 16px;
    height: 16px;
  }
}
/* ============================================
   UTILITIES - Buttons, Debug Pill, Helpers
   ============================================ */

/* ====== GRADIENT BUTTON (Reusable) ====== */
.btn-gradient {
  display: inline-block;
  font-family: "Inter", sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: #1a1a2e;
  background: linear-gradient(
    in oklch 40deg,
    var(--accent-blue) 0%,
    #ff8c42 25%,
    var(--accent-blue) 50%,
    #ff8c42 75%,
    var(--accent-blue) 100%
  );
  background-size: 2000% 100%;
  background-position-x: 0%;
  padding: 14px 32px;
  border-radius: 8px;
  text-decoration: none;
  transition: background-position-x 0.6s ease, transform 0.3s ease;
  cursor: pointer;
  border: none;
}

.btn-gradient:hover {
  background-position-x: 10%;
  transform: translateY(-2px);
}

/* ====== GENERIC CONTENT SECTION ====== */
.content-section {
  position: relative;
  z-index: 10;
  width: 100%;
  max-width: var(--content-max-width);
  margin: 0 auto;
  padding: 80px 24px;
}

/* ====== DEBUG SHORTCUTS PILL ====== */
.debug-pill {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 99998;
  font-family: "JetBrains Mono", "Fira Code", monospace;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.7);
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: flex-end;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.debug-pill.hidden {
  opacity: 0;
  pointer-events: none;
}

.debug-pill-toggle {
  pointer-events: auto;
  background: rgba(15, 15, 25, 0.85);
  border: 1px solid rgba(62, 193, 250, 0.3);
  border-radius: 8px;
  padding: 8px 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.debug-pill-toggle:hover {
  background: rgba(20, 20, 35, 0.95);
  border-color: rgba(62, 193, 250, 0.5);
}

.debug-pill-toggle .icon {
  font-size: 14px;
}

.debug-pill-toggle .label {
  font-weight: 600;
  color: #3EC1FA;
  letter-spacing: 0.5px;
}

.debug-pill-shortcuts {
  background: rgba(10, 10, 20, 0.92);
  border: 1px solid rgba(62, 193, 250, 0.25);
  border-radius: 10px;
  padding: 12px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: auto;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.3s ease, opacity 0.2s ease, padding 0.3s ease;
  padding-top: 0;
  padding-bottom: 0;
}

.debug-pill.expanded .debug-pill-shortcuts {
  max-height: 300px;
  opacity: 1;
  padding: 12px 16px;
}

.debug-pill-title {
  font-weight: 700;
  color: #3EC1FA;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 4px;
  padding-bottom: 6px;
  border-bottom: 1px solid rgba(62, 193, 250, 0.2);
}

.debug-pill-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.debug-pill-row .key {
  background: linear-gradient(135deg, rgba(62, 193, 250, 0.15) 0%, rgba(123, 47, 255, 0.15) 100%);
  border: 1px solid rgba(62, 193, 250, 0.3);
  border-radius: 4px;
  padding: 3px 8px;
  font-weight: 600;
  font-size: 10px;
  color: #3EC1FA;
  min-width: 24px;
  text-align: center;
  white-space: nowrap;
}

.debug-pill-row .desc {
  color: rgba(255, 255, 255, 0.6);
  font-size: 11px;
}

.debug-pill-row.active .key {
  background: linear-gradient(135deg, rgba(62, 193, 250, 0.4) 0%, rgba(123, 47, 255, 0.4) 100%);
  border-color: #3EC1FA;
  box-shadow: 0 0 8px rgba(62, 193, 250, 0.3);
}

.debug-pill-row.active .desc {
  color: rgba(255, 255, 255, 0.9);
}

.debug-pill-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.1);
  margin: 4px 0;
}
/* ============================================
   HERO SECTION
   ============================================ */

.hero-section {
  position: relative;
  z-index: 10;
  height: 75vh;
  min-height: 500px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  width: 100%;
  max-width: var(--content-max-width);
  margin: 0 auto;
  padding: 100px 24px 0;
  text-align: left;
}

.hero-slogan,
.hero-description {
  width: 100%;
}

.hero-slogan {
  font-family: "Inter", sans-serif;
  font-size: clamp(2.4rem, 5.5vw, 4rem);
  font-weight: 700;
  letter-spacing: -1.5px;
  color: var(--white);
  line-height: 1.15;
  margin-bottom: 24px;
}

/* Animated gradient for "Intelligent Automation" - scroll driven */
.hero-slogan span {
  background: linear-gradient(
    in oklch 40deg,
    var(--accent-blue) 0%,
    #ff8c42 25%,
    var(--accent-blue) 50%,
    #ff8c42 75%,
    var(--accent-blue) 100%
  );
  background-size: 400% 100%;
  background-position-x: var(--gradient-x, 0%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  transition: background-position-x 0.15s ease-out;
}

.hero-description {
  /* Global p styles apply, only override max-width for hero */
  max-width: 720px;
  margin-bottom: 0; /* Override global margin for hero */
}

.hero-description strong {
  color: var(--accent-blue);
  font-weight: 500;
}

/* Legacy class support */
.demo-content {
  position: relative;
  z-index: 10;
  height: 75vh;
  min-height: 500px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  width: 100%;
  max-width: var(--content-max-width);
  margin: 0 auto;
  padding: 100px 24px 0;
  text-align: left;
  pointer-events: none;
}

.demo-content .slogan,
.demo-content .description {
  width: 100%;
}

.demo-content .slogan {
  font-family: "Inter", sans-serif;
  font-size: clamp(2.4rem, 5.5vw, 4rem);
  font-weight: 700;
  letter-spacing: -1.5px;
  color: var(--white);
  line-height: 1.15;
  margin-bottom: 24px;
}

.demo-content .slogan span {
  background: linear-gradient(
    in oklch 40deg,
    var(--accent-blue) 0%,
    #ff8c42 25%,
    var(--accent-blue) 50%,
    #ff8c42 75%,
    var(--accent-blue) 100%
  );
  background-size: 400% 100%;
  background-position-x: var(--gradient-x, 0%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  transition: background-position-x 0.15s ease-out;
}

.demo-content .description {
  /* Global p styles apply, only override max-width for hero */
  max-width: 720px;
  margin-bottom: 0; /* Override global margin for hero */
}

.demo-content .description strong {
  color: var(--accent-blue);
  font-weight: 500;
}

/* ====== RESPONSIVE ====== */
@media (max-width: 768px) {
  .hero-section,
  .demo-content {
    height: 70vh;
    min-height: 420px;
    padding: 100px 24px 40px;
    align-items: center;
    text-align: center;
  }

  .hero-slogan,
  .demo-content .slogan {
    text-align: center;
  }

  .hero-description,
  .demo-content .description {
    text-align: center;
  }
}
/* ============================================
   FEATURED SECTION - Case Study & News Cards
   ============================================ */

.featured-section {
  padding: 0 24px 80px;
  background: transparent;
  transform: translateY(0);
  opacity: 1;
  transition: transform 0.1s ease-out, opacity 0.15s ease-out;
  will-change: transform, opacity;
}

.featured-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

.featured-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: #1e1e24;
  border-radius: 24px;
  overflow: hidden;
  text-decoration: none;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.featured-card:hover {
  transform: translateY(-8px);
  box-shadow: 
    0 20px 50px rgba(0, 0, 0, 0.3),
    0 0 40px rgba(62, 193, 250, 0.15);
}

.featured-card-image {
  width: 100%;
  height: 200px;
  background-size: cover;
  background-position: center;
  position: relative;
}

.featured-card-content {
  position: relative;
  margin-top: -24px;
  padding: 28px 32px 32px;
  display: flex;
  flex-direction: column;
  flex: 1;
  background: #1e1e24;
  border-radius: 20px 20px 0 0;
}

.featured-label {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 10;
  display: inline-block;
  width: fit-content;
  padding: 6px 14px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: 20px;
  font-family: "Inter", sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent-blue);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.featured-case-study .featured-label {
  background: rgba(255, 255, 255, 0.9);
  color: #0891b2;
}

.featured-news .featured-label {
  background: rgba(255, 255, 255, 0.9);
  color: #7c3aed;
}

.featured-card h3 {
  /* Global h3 styles apply, only override specific properties for cards */
  font-weight: 600;
  margin: 0 0 12px 0;
  line-height: 1.3;
}

.featured-card p {
  /* Global p styles apply, only override color, line-height and margin for cards */
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.6;
  margin: 0 0 20px 0;
  text-align: left; /* Override justify for card text */
  flex: 1;
}

.featured-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: "Inter", sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--accent-blue);
  transition: gap 0.3s ease;
}

.featured-news .featured-cta {
  color: #ff8c42;
}

.featured-card:hover .featured-cta {
  gap: 12px;
}

.featured-cta svg {
  transition: transform 0.3s ease;
}

.featured-card:hover .featured-cta svg {
  transform: translateX(4px);
}

/* ====== RESPONSIVE ====== */
@media (max-width: 900px) {
  .featured-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

@media (max-width: 768px) {
  .featured-section {
    padding: 0 24px 60px;
  }
  
  .featured-card-content {
    padding: 24px;
  }
}
/* ============================================
   ABOUT & MISSION SECTIONS - Image Left, Text Right
   ============================================ */

.about-section,
.mission-section {
  padding: var(--section-padding-y) var(--section-padding-x);
}

.about-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
}

.about-section .about-split {
  align-items: start;
}

.about-section .about-split-image {
  height: 320px;
  max-height: 320px;
}

.mission-section .about-split {
  align-items: center;
}

/* About Us: text left, image right */
.about-split-image-right .about-split-content {
  order: 1;
}

.about-split-image-right .about-split-image {
  order: 2;
}

.about-split-image {
  border-radius: 12px;
  overflow: hidden;
  min-height: 0;
}

/* About Us (office): image fills fixed container with cover, centered crop */
.about-section .about-split-image .about-image {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center center;
}

/* Our Mission (witlogo): natural size, was ok */
.mission-section .about-split-image .about-image {
  width: 100%;
  height: auto;
  display: block;
}

.about-split-content.about-column h2 {
  /* Global h2 styles apply - no overrides needed */
}

.about-column p {
  /* Global p styles apply, keep text-align: justify for about section */
  text-align: justify;
}

.about-column p:last-child {
  margin-bottom: 0;
}

.about-column ul {
  list-style: none;
  padding: 0;
  margin: 16px 0;
}

.about-column li {
  /* Use global paragraph font styles */
  font-family: "Barlow", sans-serif;
  font-size: clamp(0.95rem, 1.3vw, 1.05rem);
  font-weight: 400;
  letter-spacing: 0.01em;
  color: var(--white);
  line-height: 1.5;
  padding-left: 28px;
  margin-bottom: 12px;
  position: relative;
}

.about-column li::before {
  content: "→";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--accent-blue);
  font-size: 1rem;
}

.about-column li:last-child {
  margin-bottom: 0;
}

/* ====== RESPONSIVE ====== */
@media (max-width: 768px) {
  .about-split {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .about-split-image {
    order: -1; /* Image first on mobile */
  }

  .about-section,
  .mission-section {
    padding: 60px 24px;
  }
}
/* ============================================
   SERVICES SECTION - Scroll-snap carousel
   ============================================ */

.services-section {
  padding: var(--section-padding-y) var(--section-padding-x);
  overflow-x: hidden;
}

.services-title {
  text-align: center;
  margin-bottom: 64px !important;
}

/* Carousel layout - native scroll + snap */
.services-carousel-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  gap: 16px;
  max-width: 100%;
}

.services-carousel-viewport {
  overflow-x: auto;
  overflow-y: hidden;
  flex: 1;
  min-width: 0;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
  border-radius: 20px;
  container-type: inline-size;
  container-name: carousel;
}

.services-carousel-viewport::-webkit-scrollbar {
  display: none;
}

.services-carousel-track {
  display: flex;
  gap: 20px;
  padding: 2px 0;
}

/* Slide width: 3 visible on desktop */
.services-carousel-viewport {
  --slide-gap: 20px;
  --slides-visible: 3;
}

/* Card slot - based on actual viewport width via container query */
@container carousel (min-width: 1px) {
  .services-carousel-track .service-card-slot {
    flex: 0 0 calc((100cqw - var(--slide-gap) * (var(--slides-visible) - 1)) / var(--slides-visible));
    min-width: 0;
  }
}

.services-carousel-track .service-card-slot {
  box-sizing: border-box;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  display: flex;
  align-items: stretch;
}

.services-carousel-track .service-card-slot .service-card {
  width: 100%;
  flex: 1;
  min-height: 0;
}

/* Arrow buttons */
.services-carousel-btn {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.4);
  background: rgba(0, 0, 0, 0.3);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}

.services-carousel-btn:hover {
  background: rgba(0, 0, 0, 0.5);
  border-color: rgba(255, 255, 255, 0.8);
  transform: scale(1.05);
}

.services-carousel-btn:active {
  transform: scale(0.95);
}

.service-card {
  border: none;
  border-radius: 20px;
  padding: 36px 28px;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  min-height: 280px;
  overflow: hidden;
}

/* Card 1 - Light gray */
.service-card-1 {
  background: #f0f0f0;
}
.service-card-1 h3 {
  color: #1a1a1a;
}
.service-card-1 .service-description {
  color: #4a4a4a;
}

/* Card 2 - Orange gradient */
.service-card-2 {
  background: linear-gradient(135deg, #ff8c42 0%, #ff5e1a 100%);
}
.service-card-2 h3,
.service-card-2 .service-description {
  color: #fff;
}

/* Card 3 - Dark charcoal */
.service-card-3 {
  background: #1e1e24;
}

/* Card 4 - Darker gray */
.service-card-4 {
  background: #2a2a30;
}

/* Card 5 - Section fold purple/blue */
.service-card-5 {
  background: linear-gradient(135deg, #7B2FFF 0%, #3EC1FA 100%);
}
.service-card-5 h3,
.service-card-5 .service-description {
  color: #fff;
}

/* Card 6 - Dark teal */
.service-card-6 {
  background: linear-gradient(135deg, #0f766e 0%, #115e59 100%);
}
.service-card-6 h3,
.service-card-6 .service-description {
  color: #fff;
}

/* Card 7 - Warm amber */
.service-card-7 {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
}
.service-card-7 h3,
.service-card-7 .service-description {
  color: #fff;
}

/* Card 8 - Dark slate */
.service-card-8 {
  background: #334155;
}
.service-card-8 h3,
.service-card-8 .service-description {
  color: #fff;
}

/* Card 9 - Dark emerald */
.service-card-9 {
  background: linear-gradient(135deg, #047857 0%, #065f46 100%);
}
.service-card-9 h3,
.service-card-9 .service-description {
  color: #fff;
}

.service-icon {
  display: none;
}

.service-card h3 {
  margin-bottom: 16px;
  line-height: 1.3;
}

.service-description {
  color: rgba(255, 255, 255, 0.75);
  margin: 0;
  text-align: left;
}

.service-image {
  margin-top: auto;
  margin-left: auto;
  position: relative;
}

.service-image img {
  width: 340px;
  max-width: none;
  margin-top: -40px;
  margin-right: -28px;
  margin-bottom: -100px;
  display: block;
  transition: opacity 0.4s ease;
}

.service-image .img-mono {
  mix-blend-mode: luminosity;
}

.service-image .img-color {
  mix-blend-mode: normal;
  position: absolute;
  top: 0;
  right: 0;
  opacity: 0;
}

.service-card:hover .service-image .img-color {
  opacity: 1;
}

/* Legacy bullet support - hide them */
.service-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.service-card li {
  font-family: "Barlow", sans-serif;
  font-size: 1rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.75);
  padding-left: 0;
  margin-bottom: 0;
  position: relative;
  display: inline;
}

.service-card li::before {
  display: none;
}

.service-card li::after {
  content: " · ";
  color: rgba(255, 255, 255, 0.4);
}

.service-card li:last-child::after {
  display: none;
}

.services-cta-wrap {
  text-align: center;
  margin-top: 48px;
}

/* ====== RESPONSIVE ====== */
@media (min-width: 901px) and (max-width: 1200px) {
  .services-carousel-viewport {
    --slides-visible: 2;
  }
}

@media (max-width: 900px) {
  /* Mobile: full viewport slot, card centered */
  .services-carousel-wrapper {
    overflow: hidden;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    padding-bottom: 24px;
  }
  
  .services-carousel-viewport {
    --slides-visible: 1;
    --slide-gap: 0;
    order: 1;
    flex: 1 1 100%;
    width: 100%;
    max-width: 100%;
    padding: 0;
    margin: 0;
  }
  
  .services-carousel-track {
    gap: 0;
    padding: 0;
  }
  
  .services-carousel-track .service-card-slot {
    flex: 0 0 100vw;
    min-width: 100vw;
    display: flex;
    justify-content: center;
    align-items: stretch;
    padding: 0 16px;
    box-sizing: border-box;
  }
  
  .services-carousel-track .service-card-slot .service-card {
    width: 100%;
    max-width: calc(100vw - 32px);
  }
  
  .services-carousel-prev {
    order: 2;
    margin-top: 16px;
  }
  
  .services-carousel-next {
    order: 3;
    margin-top: 16px;
  }
  
  .services-carousel-btn {
    width: 40px;
    height: 40px;
  }
  
  .services-carousel-btn svg {
    width: 18px;
    height: 18px;
  }
  
  .services-section {
    padding: 60px 0 0 0;
  }
}
/* ============================================
   ARC CAROUSEL - Floating Tech Logos
   ============================================ */

.arc-carousel-wrapper {
  --arc-spacing: 2.5;
  --arc-spacing-row2: 2;
  position: relative;
  width: 100%;
  height: 280px;
  padding-top: 10px;
  margin-bottom: 20px;
  overflow: hidden;
  /* Isolate layout/paint for smoother animations (helps Firefox) */
  contain: layout paint;
  /* Fade edges */
  -webkit-mask-image: linear-gradient(
    to right,
    transparent 0%,
    black 8%,
    black 92%,
    transparent 100%
  );
  mask-image: linear-gradient(
    to right,
    transparent 0%,
    black 8%,
    black 92%,
    transparent 100%
  );
}

.arc-path-svg {
  position: absolute;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0; /* Hidden but used for path */
}


.arc-logo {
  position: absolute;
  offset-rotate: 0deg;
  animation: moveAlongArc 50s linear infinite;
  /* Stagger start positions along the path */
  animation-delay: calc(var(--i) * var(--arc-spacing, 2.5) * -1s);
  display: inline-block;
  /* GPU layer + layout isolation for smoother perf (especially Firefox) */
  will-change: offset-distance;
  contain: layout;
}

@media (prefers-reduced-motion: reduce) {
  .arc-logo,
  .arc-row-2 .arc-logo {
    animation-duration: 120s;
    will-change: auto;
  }
  .floating-logo {
    animation: none;
    will-change: auto;
  }
}

.arc-logo-title {
  font-size: 12px;
  font-weight: 600;
  color: #333;
  white-space: nowrap;
  letter-spacing: 0.2px;
}

.arc-row-1 .arc-logo {
  /* Starts horizontal, curves up in middle, ends horizontal - TOP ROW */
  offset-path: path('M -150,120 L 100,120 C 300,120 400,20 600,20 C 800,20 900,120 1100,120 L 1350,120');
}

.arc-row-2 .arc-logo {
  /* Opposite direction, lower position - BOTTOM ROW (faster) */
  offset-path: path('M 1350,220 L 1100,220 C 900,220 800,150 600,150 C 400,150 300,220 100,220 L -150,220');
  animation-direction: reverse;
  animation-duration: 35s;
  animation-delay: calc(var(--i) * var(--arc-spacing-row2, 2) * -1s);
}

@keyframes moveAlongArc {
  0% {
    offset-distance: 0%;
  }
  100% {
    offset-distance: 100%;
  }
}

.floating-logo {
  position: relative;
  width: auto;
  height: 44px;
  padding: 0 14px 0 10px;
  gap: 10px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 12px;
  box-shadow: 
    0 4px 20px rgba(0, 0, 0, 0.3),
    0 0 0 1px rgba(255, 255, 255, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease, filter 0.3s ease;
  flex-shrink: 0;
  /* Slightly gentler/slower float for better Firefox perf */
  animation: floatUpDown 4s ease-in-out infinite;
  animation-delay: calc(var(--i, 0) * 0.25s);
  will-change: transform;
}

.floating-logo img {
  object-fit: contain;
  flex-shrink: 0;
}

/* Square logos (96×96 viewBox): Power Automate, Power Apps, Azure, Power BI, ChatGPT, Power Pages, AI Builder, Copilot Studio, Dataverse, Power Fx, Power Platform */
.floating-logo img.logo-28 {
  width: 28px;
  height: 28px;
  min-width: 28px;
  min-height: 28px;
}

/* UiPath: 430×140 → 80×26 */
.floating-logo img.logo-uipath {
  width: 80px;
  height: 26px;
  min-width: 80px;
  min-height: 26px;
}

/* AWS: 304×182 → 43×26 */
.floating-logo img.logo-aws {
  width: 43px;
  height: 26px;
  min-width: 43px;
  min-height: 26px;
}

/* GitHub: 367.4×90 (currentColor – działa w img jako domyślny czarny) */
.floating-logo img.logo-github {
  width: 110px;
  height: 27px;
  min-width: 110px;
  min-height: 27px;
}

/* Python: 388.84×115 (brak viewBox, proporcje z width/height). Wizualne centrowanie – logo ma wbudowany cień */
.floating-logo img.logo-python {
  width: 95px;
  height: 28px;
  min-width: 95px;
  min-height: 28px;
  transform: translateY(3px);
}

/* GitLab: 990×380 – logo z ikoną + tekst */
.floating-logo img.logo-gitlab {
  width: 72px;
  height: 28px;
  min-width: 72px;
  min-height: 28px;
}

/* Oracle: 231×30 → 120×16 (bardzo szeroki) */
.floating-logo img.logo-oracle {
  width: 120px;
  height: 16px;
  min-width: 120px;
  min-height: 16px;
}

/* No background variant adjustments */
.floating-logo.no-bg {
  background: rgba(30, 30, 40, 0.8);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.floating-logo.no-bg .arc-logo-title {
  color: rgba(255, 255, 255, 0.95);
}

/* Gentle up-down float while moving on arc */
@keyframes floatUpDown {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-6px);
  }
}

/* ============================================
   WHY SECTION - 6 Pillars + Arc Carousel
   ============================================ */

.why-section {
  padding: var(--section-padding-y) var(--section-padding-x);
}


.why-title {
  text-align: center;
  margin-bottom: clamp(40px, 6vw, 60px) !important;
  color: #ffffff !important;
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  column-gap: clamp(24px, 4vw, 48px);
  row-gap: clamp(24px, 4vw, 48px);
}

.why-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  padding: 0 clamp(20px, 3vw, 32px);
  border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.why-card:nth-child(3n) {
  border-right: none;
}

.why-number {
  font-family: "Inter", sans-serif;
  font-size: clamp(0.875rem, 1.2vw, 1rem);
  font-weight: 600;
  color: #8b9dc8;
  margin-bottom: 16px;
  line-height: 1;
}

.why-card-title {
  position: relative;
  z-index: 1;
  color: #ffffff !important;
  margin: 0 0 12px 0 !important;
  font-size: clamp(1.15rem, 2vw, 1.4rem) !important;
  font-weight: 700 !important;
  line-height: 1.3;
}

.why-text {
  position: relative;
  z-index: 1;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.65;
  margin: 0 0 24px 0;
  font-size: clamp(0.95rem, 1.2vw, 1rem);
  text-align: left;
}

/* ====== RESPONSIVE ====== */
@media (max-width: 1024px) {
  .why-grid {
    grid-template-columns: repeat(2, 1fr);
    column-gap: clamp(20px, 3vw, 32px);
    row-gap: clamp(24px, 4vw, 40px);
  }

  .why-card {
    padding: 0 clamp(16px, 2vw, 24px);
  }

  .why-card:nth-child(odd) {
    border-right: 1px solid rgba(255, 255, 255, 0.1);
  }

  .why-card:nth-child(even) {
    border-right: none;
  }
}

@media (max-width: 640px) {
  .why-grid {
    grid-template-columns: 1fr;
  }

  .why-section {
    padding: 60px 24px;
  }


  .why-card {
    border-right: none !important;
    padding: 0 !important;
  }
}
/* ============================================
   BUSINESS VALUE SECTION
   ============================================ */

.business-value-section {
  width: 100%;
  max-width: none;
  background: transparent;
  padding: 100px 0;
}

/* Section header override */
.business-value-section .section-header {
  max-width: var(--content-max-width);
  margin: 0 auto 60px;
  padding: 0 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.business-value-section .section-header h2,
.business-value-section .section-title {
  color: #ffffff;
}

.business-value-section .section-header p,
.business-value-section .section-subtitle {
  color: rgba(255, 255, 255, 0.6);
  text-transform: uppercase;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 2px;
  order: -1;
  margin-bottom: 16px;
}

.business-value-container {
  position: relative;
  max-width: var(--content-max-width);
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 60px;
  align-items: start;
  grid-template-rows: 1fr;
}

.business-value-left {
  position: relative;
  height: 0;
  min-height: calc(100% + 100px);
}

.business-value-image {
  position: absolute;
  inset: 0;
  border-radius: 16px;
  overflow: hidden;
}

.business-value-image img {
  width: 100%;
  height: 100%;
  display: block;
  border-radius: 16px;
  object-fit: cover;
}

.business-value-right {
  display: flex;
  flex-direction: column;
}

.business-value-intro {
  /* Global p styles apply, only override specific properties */

  margin: 0 0 clamp(48px, 6vw, 72px) 0 !important;
  max-width: 400px;
  margin-left: auto;
  text-align: left; /* Override justify for intro */
}

.business-value-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px 50px;
}

.value-card {
  display: flex;
  flex-direction: column;
}

.value-card-divider {
  width: 100%;
  height: 1px;
  background: rgba(255, 255, 255, 0.2);
  margin-bottom: 24px;
}

.value-card-icon {
  font-size: 1.5rem;
  margin-bottom: 12px;
}

.value-card h3 {
  font-size: clamp(1.1rem, 1.8vw, 1.35rem);
  font-weight: 600;
  margin: 0 0 12px 0;
  line-height: 1.3;
}

.value-card p {
  /* Global p styles apply, only override color, line-height and margin for cards */
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.6;
  margin: 0 0 20px 0;
  text-align: left; /* Override justify for card text */
  flex: 1;
}

.value-card-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: "Inter", sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  color: #1a1a1a;
  text-decoration: none;
  transition: gap 0.3s ease;
}

.value-card-link:hover {
  gap: 14px;
}

.arrow-circle-small {
  width: 32px;
  height: 32px;
  background: #1a1a1a;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease, background 0.3s ease;
}

.arrow-circle-small svg {
  stroke: #fff;
}

.value-card-link:hover .arrow-circle-small {
  transform: scale(1.1);
  background: #333;
}

.business-value-highlight {
  margin-top: 50px;
  padding: 28px 32px;
  background: linear-gradient(135deg, rgba(62, 193, 250, 0.1) 0%, rgba(255, 140, 66, 0.1) 100%);
  border-radius: 16px;
  border-left: 4px solid var(--accent-blue);
}

.business-value-highlight p {
  font-family: "Inter", sans-serif;
  font-size: 1.1rem;
  font-weight: 500;
  color: #1a1a1a;
  margin: 0;
  line-height: 1.5;
}

/* ====== RESPONSIVE ====== */
@media (max-width: 1024px) {
  .business-value-container {
    grid-template-columns: 1fr;
    gap: 50px;
  }
  
  .business-value-left {
    height: auto;
    min-height: auto;
  }
  
  .business-value-image {
    position: relative;
    inset: auto;
    max-width: 500px;
    aspect-ratio: 4 / 3;
  }
  
  .business-value-intro {
    margin-left: 0;
  }
}

@media (max-width: 768px) {
  .business-value-section {
    padding: 70px 0;
  }
  
  .business-value-grid {
    gap: 24px 20px;
  }
  
  .business-value-image {
    width: 100%;
    max-width: none;
    aspect-ratio: 16 / 9;
  }
}

@media (max-width: 480px) {
  .business-value-section {
    padding: 50px 0;
  }
  
  .business-value-image {
    aspect-ratio: 1 / 1;
  }
}
/* ============================================
   USE CASES SECTION - Transparent + Canvas visible
   2x3 Grid, tiles in varied shades with grain
   ============================================ */

.use-cases-section {
  background: transparent;
  padding: clamp(80px, 12vw, 120px) var(--section-padding-x);
  position: relative;
  z-index: 10;
}

/* Header jak business-value */
.use-cases-section .section-header {
  text-align: center;
  margin-bottom: clamp(48px, 8vw, 72px);
  position: relative;
  z-index: 1;
}

/* Wyższa specyficzność niż .section * p */
.use-cases-section .section-header p.section-subtitle {
  font-family: "Inter", sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 2px;
  color: rgba(255, 255, 255, 0.6);
  text-transform: uppercase;
  margin-bottom: 16px;
  line-height: 1;
}

.use-cases-section .section-title {
  color: #ffffff;
}

/* 2x3 Grid */
.use-cases-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(24px, 4vw, 40px);
  position: relative;
  z-index: 1;
}

.use-case-card {
  padding: clamp(28px, 4vw, 40px);
  border-radius: 4px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
}

/* Różne odcienie kafelków – canvas prześwieca */
.use-case-card[data-card="1"] {
  background: rgba(255, 255, 255, 0.06);
}
.use-case-card[data-card="2"] {
  background: rgba(62, 193, 250, 0.08);
}
.use-case-card[data-card="3"] {
  background: rgba(30, 35, 50, 0.5);
}
.use-case-card[data-card="4"] {
  background: rgba(255, 140, 66, 0.07);
}
.use-case-card[data-card="5"] {
  background: rgba(123, 47, 255, 0.06);
}
.use-case-card[data-card="6"] {
  background: rgba(0, 0, 0, 0.25);
}

/* Grain overlay na każdym kafelku */
.use-case-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.07'/%3E%3C/svg%3E");
  pointer-events: none;
  border-radius: inherit;
}

.use-case-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2);
}

/* Jak why-number */
.use-case-number {
  font-family: "Inter", sans-serif;
  font-size: clamp(0.875rem, 1.2vw, 1rem);
  font-weight: 600;
  color: #8b9dc8;
  margin-bottom: 16px;
  line-height: 1;
}

/* Jak why-card-title */
.use-case-card h3.use-case-title {
  font-family: "Inter", sans-serif;
  font-size: clamp(1.15rem, 2vw, 1.4rem);
  font-weight: 700;
  color: #ffffff;
  line-height: 1.3;
  margin: 0 0 12px 0;
  position: relative;
  z-index: 1;
}

/* Jak why-text – wyższa specyficzność niż .section * p */
.use-case-card p.use-case-text {
  font-family: "Barlow", sans-serif;
  font-size: clamp(0.95rem, 1.2vw, 1rem);
  font-weight: 400;
  line-height: 1.65;
  color: #f1f1f1d4;
  margin: 0;
  position: relative;
  z-index: 1;
}


/* ====== RESPONSIVE ====== */
@media (max-width: 1024px) {
  .use-cases-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: clamp(20px, 3vw, 32px);
  }
}

@media (max-width: 640px) {
  .use-cases-section {
    padding: 60px 24px;
  }

  .use-cases-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .use-case-card {
    padding: 24px;
  }
}
/* ============================================
   POSTS/TILES SECTION
   ============================================ */

.posts-section,
.automations-section {
  padding: var(--section-padding-y) var(--section-padding-x) 120px;
}

.tiles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.tile {
  background: #0a0e17;
  border-radius: 24px;
  padding: 32px;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  cursor: pointer;
  display: flex;
  flex-direction: column;
}

.tile:hover {
  transform: translateY(-8px);
  box-shadow: 
    0 20px 60px rgba(0, 0, 0, 0.4),
    0 0 40px rgba(62, 193, 250, 0.1);
}

.tile-icon {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--accent-blue) 0%, #1a7fa8 100%);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-bottom: 20px;
}

.tile h3 {
  /* Global h3 styles apply, only override specific properties for tiles */
  font-weight: 600;
  margin-bottom: 12px;
  line-height: 1.3;
}

.tile h3 a {
  color: inherit;
  text-decoration: none;
  transition: color 0.3s ease;
}

.tile h3 a:hover {
  color: var(--accent-blue);
}

.tile p {
  /* Global p styles apply, only override color, line-height and margin for tiles */
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.6;
  margin: 0 0 16px 0;
  text-align: left; /* Override justify for tile text */
  flex: 1;
}

.tile-tag {
  display: inline-block;
  margin-top: auto;
  padding: 6px 14px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: 20px;
  font-size: 0.75rem;
  color: var(--accent-blue);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  width: fit-content;
}

.view-all-wrap {
  text-align: center;
  margin-top: 48px;
}

.view-all-btn {
  display: inline-block;
  font-family: "Inter", sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--white);
  background: transparent;
  border: 1px solid rgba(62, 193, 250, 0.4);
  padding: 14px 32px;
  border-radius: 12px;
  text-decoration: none;
  transition: all 0.3s ease;
}

.view-all-btn:hover {
  background: var(--accent-blue);
  border-color: var(--accent-blue);
  color: var(--bg-dark);
}
/* ============================================
   CONTACT SECTION
   ============================================ */

.contact-section {
  z-index: auto;
  width: 100%;
  max-width: none;
  padding: 80px 24px 80px;
  text-align: center;
  overflow: hidden;
}

.contact-section-inner {
  max-width: var(--content-max-width);
  margin: 0 auto;
  position: relative;
}

.contact-title {
  font-family: "Inter", sans-serif;
  font-size: clamp(4rem, 12vw, 10rem);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  line-height: 0.9;
  margin: 0 0 80px 0;
  color: #fff;
  opacity: 0.4;
}


.contact-title-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -60%);
  font-family: "Inter", sans-serif;
  font-size: clamp(4rem, 12vw, 10rem);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  line-height: 0.9;
  color: transparent;
  -webkit-text-stroke: 1px rgba(62, 193, 250, 0.3);
  filter: blur(20px);
  z-index: -1;
  user-select: none;
  pointer-events: none;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 60px;
  text-align: left;
  isolation: isolate;
}

.contact-col {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.contact-quote {
  /* Global p styles apply, only override specific properties for contact quote */
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.7;
  margin: 0;
  text-align: left; /* Override justify for contact quote */
}

.contact-col-title {
  font-family: "Inter", sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.5);
  letter-spacing: 2px;
  margin: 0 0 8px 0;
  text-transform: uppercase;
}

.contact-link {
  font-family: "Inter", sans-serif;
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  transition: color 0.2s ease;
}

.contact-link:hover {
  color: #3EC1FA;
}

/* ====== RESPONSIVE ====== */
@media (max-width: 900px) {
  .contact-grid {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }
}

@media (max-width: 768px) {
  .contact-section {
    padding: 60px 24px 60px;
  }
  
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  
  .contact-subtitle {
    font-size: 1rem;
  }
}
/* ============================================
   FOOTER - Copyright at bottom
   ============================================ */

/* Main content wrapper - no extra bottom padding (overrides theme's pb7) */
.main-content {
  padding-bottom: 0 !important;
}

/* Above canvas overlays */
footer[role="contentinfo"] {
  position: relative;
  z-index: 10001 !important;
  isolation: isolate;
  padding: 0.5rem 1rem 2rem 1rem !important;
  background: transparent !important;
}

/* Copyright - not clickable, no hover */
footer[role="contentinfo"] .copyright {
  font-size: 0.75rem !important;
  padding: 0.5rem 1rem !important;
  color: rgba(255, 255, 255, 0.45) !important;
  pointer-events: none;
  cursor: default;
}

/* Center copyright */
footer[role="contentinfo"] .flex {
  justify-content: center;
  text-align: center;
}

/* ============================================
   LEGAL / STATIC PAGES (privacy, etc.)
   Matches site typography; no light-theme gray text.
   ============================================ */

.main-content .legal-page {
  position: relative;
  z-index: 10;
  max-width: 42rem;
  margin: 0 auto;
  padding: 3rem clamp(1.25rem, 4vw, 2.5rem) 5rem;
  font-family: "Barlow", -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: clamp(1rem, 1.15vw, 1.0625rem);
  font-weight: 400;
  line-height: 1.75;
  letter-spacing: 0.01em;
  color: rgba(244, 244, 244, 0.9);
}

/* Opening notice (before first h2) */
.main-content .legal-page > p:first-of-type {
  font-size: clamp(1.02rem, 1.2vw, 1.1rem);
  color: rgba(244, 244, 244, 0.82);
  margin-bottom: 2rem;
  padding: 1rem 1.25rem;
  border-left: 3px solid rgba(62, 193, 250, 0.45);
  background: rgba(62, 193, 250, 0.06);
  border-radius: 0 8px 8px 0;
}

.main-content .legal-page h2,
.main-content .legal-page h3 {
  font-family: "Inter", sans-serif !important;
  font-style: normal !important;
  font-size: clamp(1.35rem, 2.4vw, 1.65rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--white) !important;
  margin: 2.75rem 0 1.25rem;
  padding-bottom: 0.65rem;
  border-bottom: 1px solid rgba(62, 193, 250, 0.28);
  line-height: 1.25;
}

.main-content .legal-page h3 {
  font-size: clamp(1.15rem, 2vw, 1.25rem);
  border-bottom: none;
  padding-bottom: 0;
  margin-top: 1.75rem;
}

/* First section after the RODO intro block — tighter top gap */
.main-content .legal-page > h2:first-of-type {
  margin-top: 1.75rem;
}

.main-content .legal-page p {
  margin: 0 0 1rem;
}

.main-content .legal-page ul {
  margin: 0.75rem 0 1.25rem;
  padding-left: 1.35rem;
}

.main-content .legal-page li {
  margin-bottom: 0.45rem;
}

.main-content .legal-page li::marker {
  color: var(--accent-blue);
}

.main-content .legal-page a {
  color: var(--accent-blue);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
  transition: color 0.15s ease;
}

.main-content .legal-page a:hover {
  color: #7dd8ff;
}

@media (max-width: 850px) {
  .main-content .legal-page {
    padding-top: 2rem;
    padding-bottom: 3.5rem;
  }

  .main-content .legal-page h2 {
    margin-top: 2.25rem;
  }
}
/* ============================================
   404 PAGE
   Hero-like styling, static blobs, no nav
   ============================================ */

.page-404 {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-dark);
  overflow: hidden;
}

/* ====== STATIC BLOBS (hero palette, no animation) ====== */
.page-404-blobs {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

.page-404-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.5;
}

.page-404-blob--1 {
  width: 45vw;
  height: 45vw;
  top: 5%;
  left: 60%;
  background: #00D4FF;
}

.page-404-blob--2 {
  width: 38vw;
  height: 38vw;
  top: 10%;
  left: 20%;
  background: #ff8c42;
}

.page-404-blob--3 {
  width: 42vw;
  height: 42vw;
  top: 25%;
  left: 15%;
  background: #3EC1FA;
}

.page-404-blob--4 {
  width: 35vw;
  height: 35vw;
  bottom: 15%;
  left: 5%;
  background: #00B8E6;
}

.page-404-blob--5 {
  width: 40vw;
  height: 40vw;
  top: 40%;
  right: 10%;
  background: #7B2FFF;
}

.page-404-blob--6 {
  width: 32vw;
  height: 32vw;
  bottom: 20%;
  right: 25%;
  background: #00E5CC;
}

/* ====== CONTENT ====== */
.page-404-content {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 40px 24px;
}

.page-404-logo {
  display: block;
  margin-bottom: 48px;
}

.page-404-logo img {
  height: 40px;
  width: auto;
}

.page-404-title {
  font-family: "Inter", sans-serif;
  font-size: clamp(4rem, 12vw, 8rem);
  font-weight: 800;
  letter-spacing: -2px;
  color: var(--white);
  margin-bottom: 16px;
  line-height: 1;
}

.page-404-text {
  font-family: "Barlow", sans-serif;
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 32px;
}

.page-404-link {
  display: inline-block;
  font-family: "Inter", sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: var(--accent-blue);
  text-decoration: none;
  padding: 12px 24px;
  border: 1px solid var(--accent-blue);
  border-radius: 8px;
  transition: background 0.2s, color 0.2s;
}

.page-404-link:hover {
  background: var(--accent-blue);
  color: var(--bg-dark);
}
