/* =====================================================
   SOURCINGINTEL - LANDING PAGE STYLES
   Nowoczesna platforma zakupowa z AI
   Kolorystyka: Enterprise + AI (ciemny granat + cyan)
   ===================================================== */

/* ===================== ZMIENNE CSS ===================== */
:root {
  /* Kolory główne */
  --bg-main: #050816;
  --bg-section: #0b1120;
  --accent: #38bdf8;
  --accent-soft: rgba(56, 189, 248, 0.18);
  --accent-hover: #0ea5e9;
  --text-main: #e5e7eb;
  --text-muted: #9ca3af;
  --text-dark: #1f2937;

  /* Gradienty */
  --gradient-overlay: linear-gradient(135deg, rgba(5, 8, 22, 0.95) 0%, rgba(11, 17, 32, 0.85) 100%);
  --gradient-accent: linear-gradient(135deg, #38bdf8 0%, #0ea5e9 100%);

  /* Cienie */
  --shadow-card: 0 4px 20px rgba(0, 0, 0, 0.3);
  --shadow-hover: 0 8px 30px rgba(56, 189, 248, 0.2);

  /* Typografia */
  --font-main: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  --font-heading: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Breakpointy */
  --mobile: 768px;
  --tablet: 1024px;
  --desktop: 1440px;
}

/* ===================== RESET I BAZOWE STYLE ===================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-main);
  background-color: var(--bg-main);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ===================== TYPOGRAFIA ===================== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
}

h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
}

h2 {
  font-size: clamp(2rem, 4vw, 3rem);
}

h3 {
  font-size: clamp(1.5rem, 3vw, 2rem);
}

p {
  margin-bottom: 1rem;
  color: var(--text-muted);
  line-height: 1.8;
}

.highlight {
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ===================== PRZYCISKI ===================== */
.btn {
  display: inline-block;
  padding: 14px 32px;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 8px;
  transition: all 0.3s ease;
  cursor: pointer;
  border: 2px solid transparent;
}

.btn-primary {
  background: var(--gradient-accent);
  color: white;
  box-shadow: 0 4px 15px rgba(56, 189, 248, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(56, 189, 248, 0.4);
}

.btn-secondary {
  background: transparent;
  color: var(--accent);
  border: 2px solid var(--accent);
}

.btn-secondary:hover {
  background: var(--accent-soft);
  transform: translateY(-2px);
}

.btn-large {
  padding: 18px 40px;
  font-size: 1.125rem;
}

/* ===================== NAWIGACJA ===================== */
.main-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(5, 8, 22, 0.95);
  backdrop-filter: blur(10px);
  z-index: 1000;
  border-bottom: 1px solid rgba(56, 189, 248, 0.1);
}

.nav-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
}

.logo-text {
  font-size: 1.5rem;
  font-weight: 700;
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.nav-links a {
  color: var(--text-main);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width 0.3s ease;
}

.nav-links a:hover {
  color: var(--accent);
}

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

/* Przełącznik języka */
.lang-switcher {
  display: flex;
  gap: 0.5rem;
}

.lang-btn {
  background: transparent;
  border: 1px solid var(--text-muted);
  color: var(--text-muted);
  padding: 6px 12px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  display: inline-block;
}

.lang-btn.active,
.lang-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-soft);
}

.lang-select {
  background: transparent;
  border: 1px solid var(--text-muted);
  color: var(--text-main);
  padding: 6px 12px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.875rem;
  font-weight: 600;
}

.lang-select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.1);
}

.lang-select option {
  background: var(--bg-section);
  color: var(--text-main);
}

/* Mobile menu toggle */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: transparent;
  border: none;
  cursor: pointer;
}

.mobile-menu-toggle span {
  width: 25px;
  height: 3px;
  background: var(--accent);
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* ===================== PRAWDZIWA PARALAKSA - UNIWERSALNE STYLE ===================== */
.parallax-section {
  position: relative;
  overflow: hidden;
}

.parallax-bg {
  position: absolute;
  top: -20%;
  left: 0;
  width: 100%;
  height: 140%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  will-change: transform;
  z-index: 1;
}

/* Overlay dla lepszego kontrastu tekstu */
.parallax-bg::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--gradient-overlay);
  z-index: 2;
}

.parallax-section .content {
  position: relative;
  z-index: 10;
}

/* ===================== SEKCJA: HERO ===================== */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin-top: 60px;
}

.hero-content {
  text-align: center;
  max-width: 900px;
  padding: 2rem;
}

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

.hero-lead {
  font-size: clamp(1.125rem, 2vw, 1.5rem);
  margin-bottom: 2.5rem;
  color: var(--text-main);
}

.hero-cta {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ===================== SEKCJA: PROBLEM ===================== */
.problem-section {
  position: relative;
  padding: 100px 0;
  overflow: hidden;
}

/* Ciemniejszy overlay dla sekcji Problem */
.problem-section .parallax-bg::after {
  background: rgba(5, 8, 22, 0.92);
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-title {
  color: white;
  margin-bottom: 1rem;
}

.section-subtitle {
  font-size: 1.25rem;
  color: var(--text-muted);
  max-width: 800px;
  margin: 0 auto;
}

.problems-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.problem-card {
  background: rgba(11, 17, 32, 0.7);
  backdrop-filter: blur(10px);
  padding: 2.5rem;
  border-radius: 12px;
  border: 1px solid rgba(56, 189, 248, 0.1);
  transition: all 0.3s ease;
}

.problem-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
  border-color: var(--accent);
}

.problem-icon {
  width: 80px;
  height: 80px;
  margin-bottom: 1.5rem;
  border-radius: 50%;
  overflow: hidden;
}

.problem-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.problem-card h3 {
  color: white;
  margin-bottom: 1rem;
}

.problem-card p {
  color: var(--text-muted);
  line-height: 1.8;
}

/* ===================== SEKCJA: ROZWIĄZANIE / AI ===================== */
.solution-section {
  position: relative;
  padding: 100px 0;
  overflow: hidden;
}

/* Overlay dla sekcji Solution */
.solution-section .parallax-bg::after {
  background: rgba(5, 8, 22, 0.9);
}

.solution-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.solution-visual {
  position: relative;
}

.solution-image {
  width: 100%;
  border-radius: 12px;
  box-shadow: var(--shadow-card);
}

.ai-badge {
  position: absolute;
  bottom: -20px;
  right: -20px;
  width: 120px;
  height: 120px;
  animation: float 3s ease-in-out infinite;
}

.ai-badge img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 4px 15px rgba(56, 189, 248, 0.5));
}

@keyframes float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

.solution-text {
  color: var(--text-main);
}

.section-intro {
  font-size: 1.125rem;
  margin-bottom: 2rem;
  color: var(--text-muted);
}

.solution-benefits {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.benefit-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.benefit-icon {
  font-size: 2rem;
  flex-shrink: 0;
}

.benefit-content h4 {
  color: white;
  margin-bottom: 0.5rem;
  font-size: 1.25rem;
}

.benefit-content p {
  color: var(--text-muted);
  margin: 0;
}

/* ===================== SEKCJA: JAK TO DZIAŁA (PROCES) ===================== */
.process-section {
  padding: 100px 0;
  background: var(--bg-section);
}

.process-steps {
  display: flex;
  flex-direction: column;
  gap: 3rem;
  margin-top: 3rem;
}

.process-step {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 2rem;
  padding: 2rem;
  background: rgba(56, 189, 248, 0.05);
  border-left: 4px solid var(--accent);
  border-radius: 8px;
  transition: all 0.3s ease;
}

.process-step:hover {
  background: rgba(56, 189, 248, 0.08);
  transform: translateX(10px);
}

.step-number {
  font-size: 3rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
}

.step-content h3 {
  color: white;
  margin-bottom: 0.75rem;
}

.step-content p {
  color: var(--text-muted);
  margin: 0;
}

/* ===================== SEKCJA: FUNKCJONALNOŚCI ===================== */
.features-section {
  padding: 100px 0;
  background: var(--bg-main);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2.5rem;
  margin-top: 3rem;
}

.feature-card {
  background: var(--bg-section);
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(56, 189, 248, 0.1);
  transition: all 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-hover);
  border-color: var(--accent);
}

.feature-image {
  width: 100%;
  height: 220px;
  overflow: hidden;
}

.feature-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.feature-card:hover .feature-image img {
  transform: scale(1.05);
}

.feature-content {
  padding: 2rem;
}

.feature-content h3 {
  color: white;
  margin-bottom: 1rem;
}

.feature-content p {
  color: var(--text-muted);
  margin: 0;
}

/* ===================== SEKCJA: ROLE ===================== */
.roles-section {
  padding: 100px 0;
  background: var(--bg-section);
}

.roles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 3rem;
  margin-top: 3rem;
}

.role-card {
  background: var(--bg-main);
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(56, 189, 248, 0.1);
  transition: all 0.3s ease;
}

.role-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
}

.role-image {
  width: 100%;
  height: 250px;
  overflow: hidden;
}

.role-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.role-content {
  padding: 2rem;
}

.role-content h3 {
  color: white;
  margin-bottom: 1rem;
  font-size: 1.5rem;
}

.role-content p {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.role-benefits {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.role-benefits li {
  color: var(--text-muted);
  padding-left: 1.5rem;
  position: relative;
}

.role-benefits li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}

/* ===================== SEKCJA: PRODUKT W AKCJI ===================== */
.product-section {
  padding: 100px 0;
  background: var(--bg-main);
}

.product-showcase {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.product-intro {
  font-size: 1.125rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
}

.product-highlights {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.product-highlights li {
  color: var(--text-muted);
  padding-left: 2rem;
  position: relative;
  line-height: 1.8;
}

.product-highlights li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
  font-size: 1.25rem;
}

.product-highlights strong {
  color: white;
}

.product-mockup img {
  width: 100%;
  border-radius: 12px;
  box-shadow: var(--shadow-card);
}

/* ===================== SEKCJA: O NAS / ZESPÓŁ ===================== */
.about-section {
  padding: 100px 0;
  background: var(--bg-section);
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 3rem;
  margin-top: 3rem;
}

.team-member {
  text-align: center;
}

.member-photo {
  width: 160px;
  height: 160px;
  margin: 0 auto 1.5rem;
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid var(--accent);
}

/* Placeholder dla zdjęć zespołu - podmienić gdy będą dostępne */
.photo-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #0b1120 0%, #38bdf8 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.member-info h4 {
  color: white;
  font-size: 1.25rem;
  margin-bottom: 0.25rem;
}

.member-role {
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 1rem;
}

.member-bio {
  color: var(--text-muted);
  line-height: 1.8;
  margin: 0;
}

/* ===================== SEKCJA: CTA / KONTAKT ===================== */
.cta-section {
  position: relative;
  padding: 120px 0;
  overflow: hidden;
}

/* Overlay dla sekcji CTA */
.cta-section .parallax-bg::after {
  background: rgba(5, 8, 22, 0.93);
}

.cta-content {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.cta-title {
  color: white;
  margin-bottom: 1.5rem;
}

.cta-text {
  font-size: 1.25rem;
  color: var(--text-muted);
  margin-bottom: 2.5rem;
}

.cta-buttons {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

.cta-subtext {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin: 0;
}

/* ===================== STOPKA ===================== */
.main-footer {
  background: var(--bg-section);
  padding: 60px 0 30px;
  border-top: 1px solid rgba(56, 189, 248, 0.1);
}

.footer-content {
  display: grid;
  grid-template-columns: 1.5fr 2fr;
  gap: 4rem;
  margin-bottom: 3rem;
}

.footer-tagline {
  color: var(--text-muted);
  margin-top: 1rem;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.footer-column h4 {
  color: white;
  font-size: 1rem;
  margin-bottom: 1rem;
}

.footer-column ul {
  list-style: none;
}

.footer-column ul li {
  margin-bottom: 0.75rem;
}

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

.footer-column a:hover {
  color: var(--accent);
}

.footer-bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(56, 189, 248, 0.1);
  color: var(--text-muted);
  font-size: 0.9rem;
}

.footer-logo {
  max-width: 180px;
}

.footer-logo img {
  width: 100%;
  height: auto;
  opacity: 0.85;
  transition: opacity 0.3s ease;
}

.footer-logo img:hover {
  opacity: 1;
}

/* ===================== ANIMACJE SCROLL ===================== */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.reveal-on-scroll.in-view {
  opacity: 1;
  transform: translateY(0);
}

/* ===================== RESPONSYWNOŚĆ ===================== */

/* Tablet */
@media (max-width: 1024px) {
  .solution-content,
  .product-showcase {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .solution-visual {
    order: -1;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

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

/* Mobile */
@media (max-width: 768px) {
  .nav-links {
    display: none;
  }

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

  .hero-cta {
    flex-direction: column;
    align-items: center;
  }

  .problems-grid,
  .features-grid,
  .roles-grid {
    grid-template-columns: 1fr;
  }

  .process-step {
    grid-template-columns: 60px 1fr;
    gap: 1rem;
    padding: 1.5rem;
  }

  .step-number {
    font-size: 2rem;
  }

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

  .cta-buttons {
    flex-direction: column;
    align-items: center;
  }

  .btn {
    width: 100%;
    max-width: 300px;
    text-align: center;
  }
}

/* Small mobile */
@media (max-width: 480px) {
  html {
    font-size: 14px;
  }

  .container {
    padding: 0 15px;
  }

  .problem-card,
  .feature-content,
  .role-content {
    padding: 1.5rem;
  }
}

/* ===================== MODAL: FORMULARZ KONTAKTOWY ===================== */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 9999;
  align-items: center;
  justify-content: center;
}

.modal.active {
  display: flex;
}

.modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(5, 8, 22, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  animation: fadeIn 0.3s ease;
}

.modal-content {
  position: relative;
  background: var(--bg-section);
  border: 1px solid rgba(56, 189, 248, 0.2);
  border-radius: 16px;
  max-width: 600px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 2.5rem;
  z-index: 10000;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  animation: slideUp 0.4s ease;
}

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

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

.modal-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 2.5rem;
  cursor: pointer;
  line-height: 1;
  transition: color 0.3s ease;
  padding: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-close:hover {
  color: var(--accent);
}

.modal-header {
  margin-bottom: 2rem;
  padding-right: 2rem;
}

.modal-header h2 {
  color: white;
  margin-bottom: 0.5rem;
}

.modal-header p {
  color: var(--text-muted);
  margin: 0;
}

/* Formularz kontaktowy */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-group label {
  color: var(--text-main);
  font-weight: 600;
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  background: rgba(11, 17, 32, 0.6);
  border: 1px solid rgba(56, 189, 248, 0.2);
  color: var(--text-main);
  padding: 0.875rem 1rem;
  border-radius: 8px;
  font-size: 1rem;
  font-family: var(--font-main);
  transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: rgba(11, 17, 32, 0.8);
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.1);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.form-group select {
  cursor: pointer;
}

.checkbox-group label {
  flex-direction: row;
  align-items: center;
  gap: 0.75rem;
  cursor: pointer;
}

.checkbox-group input[type="checkbox"] {
  width: auto;
  cursor: pointer;
}

.checkbox-group span {
  color: var(--text-muted);
  font-weight: 400;
  font-size: 0.9rem;
}

.form-actions {
  margin-top: 1rem;
}

.form-actions .btn {
  width: 100%;
}

.form-message {
  margin-top: 1rem;
  padding: 1rem;
  border-radius: 8px;
  text-align: center;
  font-weight: 600;
  display: none;
}

.form-message.success {
  display: block;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: #10b981;
}

.form-message.error {
  display: block;
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #ef4444;
}

/* Responsywność modalu */
@media (max-width: 768px) {
  .modal-content {
    padding: 2rem 1.5rem;
  }

  .form-row {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .modal-header {
    padding-right: 2.5rem;
  }
}

/* ===================== UTILITY CLASSES ===================== */
.text-center {
  text-align: center;
}

.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }

.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.mb-3 { margin-bottom: 3rem; }

/* ===================== EXAMPLES PAGE STYLES ===================== */

/* Hero section for examples page */
.examples-hero-section {
  padding: 120px 0 80px;
  background: var(--bg-section);
}

.examples-intro {
  font-size: 1.1rem;
  color: var(--text-main);
  margin: 2rem 0 1.5rem;
}

.examples-modules-list {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1.5rem;
}

.examples-modules-list span {
  background: var(--accent-soft);
  color: var(--accent);
  padding: 0.5rem 1rem;
  border-radius: 8px;
  border: 1px solid var(--accent);
  font-size: 0.95rem;
}

/* Common module styles */
.example-module {
  padding: 4rem 0;
  background: var(--bg-main);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.example-module:nth-child(even) {
  background: var(--bg-section);
}

.module-header {
  margin-bottom: 3rem;
  text-align: center;
}

.module-title {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  margin-bottom: 1rem;
  color: var(--text-main);
}

.module-desc {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 800px;
  margin: 0 auto;
}

.module-note {
  margin-top: 2rem;
  padding: 1rem 1.5rem;
  background: rgba(56, 189, 248, 0.1);
  border-left: 4px solid var(--accent);
  border-radius: 8px;
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* ===== MODULE 1: SCORECARD STYLES ===== */

/* Weights panel */
.weights-panel {
  background: var(--bg-section);
  padding: 2rem;
  border-radius: 16px;
  margin-bottom: 3rem;
  box-shadow: var(--shadow-card);
}

.weights-panel h3 {
  margin-bottom: 1.5rem;
  color: var(--accent);
  font-size: 1.2rem;
}

.weights-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
}

.weight-control label {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--text-main);
  font-weight: 500;
}

.weight-slider {
  width: 100%;
  height: 6px;
  background: var(--bg-main);
  border-radius: 5px;
  outline: none;
  -webkit-appearance: none;
}

.weight-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  background: var(--accent);
  cursor: pointer;
  border-radius: 50%;
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.5);
}

.weight-slider::-moz-range-thumb {
  width: 20px;
  height: 20px;
  background: var(--accent);
  cursor: pointer;
  border-radius: 50%;
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.5);
  border: none;
}

/* Scorecard table */
.scorecard-table-container {
  overflow-x: auto;
  margin-bottom: 3rem;
}

.scorecard-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--bg-section);
  border-radius: 12px;
  overflow: hidden;
}

.scorecard-table thead {
  background: var(--accent-soft);
}

.scorecard-table th {
  padding: 1rem;
  text-align: left;
  color: var(--accent);
  font-weight: 600;
  border-bottom: 2px solid var(--accent);
}

.scorecard-table td {
  padding: 1rem;
  color: var(--text-main);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.scorecard-table tbody tr:hover {
  background: rgba(56, 189, 248, 0.05);
}

.scorecard-table tbody tr.top-1 {
  background: rgba(56, 189, 248, 0.15);
  border-left: 4px solid #38bdf8;
}

.scorecard-table tbody tr.top-2 {
  background: rgba(16, 185, 129, 0.15);
  border-left: 4px solid #10b981;
}

.scorecard-table tbody tr.top-3 {
  background: rgba(251, 191, 36, 0.15);
  border-left: 4px solid #fbbf24;
}

.top-badge {
  display: inline-block;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 700;
  margin-left: 0.5rem;
  background: var(--accent);
  color: var(--bg-main);
}

/* Chart container */
.chart-container {
  max-width: 600px;
  margin: 2rem auto;
  padding: 2rem;
  background: var(--bg-section);
  border-radius: 16px;
  box-shadow: var(--shadow-card);
}

.chart-container h3 {
  text-align: center;
  margin-bottom: 1.5rem;
  color: var(--accent);
}

/* ===== MODULE 2: RFQ DASHBOARD STYLES ===== */

.rfq-selector {
  margin-bottom: 2rem;
}

.rfq-selector label {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--text-main);
  font-weight: 500;
}

.rfq-dropdown {
  width: 100%;
  max-width: 500px;
  padding: 0.75rem 1rem;
  background: var(--bg-section);
  border: 1px solid var(--accent);
  border-radius: 8px;
  color: var(--text-main);
  font-size: 1rem;
  cursor: pointer;
}

.rfq-dropdown:focus {
  outline: none;
  border-color: var(--accent-hover);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.rfq-table-container {
  overflow-x: auto;
  margin-bottom: 3rem;
}

.rfq-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--bg-section);
  border-radius: 12px;
  overflow: hidden;
}

.rfq-table thead {
  background: var(--accent-soft);
}

.rfq-table th {
  padding: 1rem;
  text-align: left;
  color: var(--accent);
  font-weight: 600;
  border-bottom: 2px solid var(--accent);
}

.rfq-table td {
  padding: 1rem;
  color: var(--text-main);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.rfq-table tbody tr:hover {
  background: rgba(56, 189, 248, 0.05);
}

.rfq-table tbody tr.recommended-row {
  background: rgba(16, 185, 129, 0.15);
  border-left: 4px solid #10b981;
}

.status-badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 12px;
  font-size: 0.85rem;
  font-weight: 600;
}

.status-badge.recommended {
  background: rgba(16, 185, 129, 0.2);
  color: #10b981;
  border: 1px solid #10b981;
}

.status-badge.ok {
  background: rgba(56, 189, 248, 0.2);
  color: var(--accent);
  border: 1px solid var(--accent);
}

.status-badge.rejected {
  background: rgba(239, 68, 68, 0.2);
  color: #ef4444;
  border: 1px solid #ef4444;
}

.check-yes {
  color: #10b981;
  font-weight: 600;
}

.check-no {
  color: #ef4444;
  font-weight: 600;
}

/* ===== MODULE 3: WHAT-IF SIMULATOR STYLES ===== */

.whatif-baseline {
  background: var(--bg-section);
  padding: 2rem;
  border-radius: 16px;
  margin-bottom: 2rem;
  box-shadow: var(--shadow-card);
}

.whatif-baseline h3 {
  margin-bottom: 1rem;
  color: var(--accent);
}

.baseline-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}

.baseline-item {
  padding: 0.75rem;
  background: var(--bg-main);
  border-radius: 8px;
}

.baseline-item strong {
  color: var(--accent);
  font-size: 1.2rem;
}

.whatif-controls {
  background: var(--bg-section);
  padding: 2rem;
  border-radius: 16px;
  margin-bottom: 2rem;
  box-shadow: var(--shadow-card);
}

.whatif-slider-group {
  margin-bottom: 1.5rem;
}

.whatif-slider-group:last-child {
  margin-bottom: 0;
}

.whatif-slider-group label {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.75rem;
  color: var(--text-main);
  font-weight: 500;
}

.whatif-slider {
  width: 100%;
  height: 6px;
  background: var(--bg-main);
  border-radius: 5px;
  outline: none;
  -webkit-appearance: none;
}

.whatif-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  background: var(--accent);
  cursor: pointer;
  border-radius: 50%;
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.5);
}

.whatif-slider::-moz-range-thumb {
  width: 20px;
  height: 20px;
  background: var(--accent);
  cursor: pointer;
  border-radius: 50%;
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.5);
  border: none;
}

.whatif-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.whatif-card {
  background: var(--bg-section);
  padding: 1.5rem;
  border-radius: 16px;
  text-align: center;
  box-shadow: var(--shadow-card);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.whatif-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
}

.whatif-card h4 {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.card-value {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--accent);
}

.card-value.positive {
  color: #10b981;
}

.card-value.negative {
  color: #ef4444;
}

.card-value.neutral {
  color: var(--accent);
}

.card-value.pulse {
  animation: pulse 0.3s ease;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

/* ===== MODULE 4: RISK MAP STYLES ===== */

.risk-matrix-container {
  max-width: 700px;
  margin: 0 auto;
  position: relative;
}

.risk-matrix-labels {
  position: relative;
  margin-bottom: 1rem;
}

.label-y {
  position: absolute;
  left: -100px;
  top: 50%;
  transform: translateY(-50%) rotate(-90deg);
  font-weight: 600;
  color: var(--text-main);
  white-space: nowrap;
}

.label-x {
  text-align: center;
  font-weight: 600;
  color: var(--text-main);
  margin-top: 0.5rem;
}

.risk-matrix {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 2px;
  background: rgba(255, 255, 255, 0.1);
  padding: 2px;
  border-radius: 12px;
  margin: 2rem auto;
}

.risk-cell {
  aspect-ratio: 1;
  min-height: 80px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.risk-cell.risk-low {
  background: rgba(16, 185, 129, 0.2);
}

.risk-cell.risk-medium {
  background: rgba(251, 191, 36, 0.2);
}

.risk-cell.risk-high {
  background: rgba(239, 68, 68, 0.2);
}

.risk-dot {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--bg-main);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.risk-dot:hover {
  transform: scale(1.15);
  box-shadow: 0 4px 16px rgba(56, 189, 248, 0.6);
  z-index: 10;
}

.risk-legend {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.legend-color {
  width: 20px;
  height: 20px;
  border-radius: 4px;
}

.legend-color.risk-low {
  background: rgba(16, 185, 129, 0.5);
}

.legend-color.risk-medium {
  background: rgba(251, 191, 36, 0.5);
}

.legend-color.risk-high {
  background: rgba(239, 68, 68, 0.5);
}

/* Risk modal */
.risk-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
}

.risk-modal.active {
  display: flex;
}

.risk-modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(5, 8, 22, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.risk-modal-content {
  position: relative;
  background: var(--bg-section);
  padding: 2.5rem;
  border-radius: 16px;
  max-width: 500px;
  width: 90%;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  z-index: 10001;
  animation: slideUp 0.3s ease;
}

.risk-modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 2rem;
  cursor: pointer;
  line-height: 1;
  transition: color 0.2s ease;
}

.risk-modal-close:hover {
  color: var(--accent);
}

.risk-modal h3 {
  margin-bottom: 1.5rem;
  color: var(--accent);
}

.risk-modal-body p {
  margin-bottom: 1rem;
  color: var(--text-main);
  line-height: 1.6;
}

.risk-modal-body strong {
  color: var(--accent);
}

/* ===== RESPONSIVE ADJUSTMENTS ===== */

@media (max-width: 768px) {
  .examples-modules-list {
    flex-direction: column;
  }

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

  .whatif-cards {
    grid-template-columns: 1fr;
  }

  .chart-container {
    padding: 1rem;
  }

  .risk-matrix {
    gap: 1px;
  }

  .risk-cell {
    min-height: 60px;
  }

  .risk-dot {
    width: 32px;
    height: 32px;
    font-size: 0.75rem;
  }

  .label-y {
    left: -80px;
  }

  .risk-legend {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ===================== RTL SUPPORT (ARABIC) ===================== */
[dir="rtl"] {
  direction: rtl;
}

/* Navigation RTL */
[dir="rtl"] .nav-links {
  margin-right: auto;
  margin-left: 0;
}

[dir="rtl"] .lang-switcher {
  margin-right: 2rem;
  margin-left: 0;
}

/* Problem cards RTL */
[dir="rtl"] .problem-icon {
  margin-left: 0;
  margin-right: auto;
}

/* Solution benefits RTL */
[dir="rtl"] .benefit-item {
  flex-direction: row-reverse;
}

[dir="rtl"] .benefit-icon {
  margin-left: 1.5rem;
  margin-right: 0;
}

/* Process steps RTL */
[dir="rtl"] .step-number {
  margin-left: 2rem;
  margin-right: 0;
}

/* Feature cards RTL */
[dir="rtl"] .feature-content,
[dir="rtl"] .role-content {
  text-align: right;
}

/* Footer RTL */
[dir="rtl"] .footer-links {
  text-align: right;
}

[dir="rtl"] .footer-column ul {
  padding-right: 0;
  padding-left: 0;
}

/* Modal RTL */
[dir="rtl"] .modal-close {
  left: 1.5rem;
  right: auto;
}

[dir="rtl"] .modal-header {
  padding-left: 2.5rem;
  padding-right: 0;
}

[dir="rtl"] .checkbox-group label {
  flex-direction: row-reverse;
}

[dir="rtl"] .checkbox-group input[type="checkbox"] {
  margin-left: 0.5rem;
  margin-right: 0;
}

/* Buttons RTL */
[dir="rtl"] .hero-cta,
[dir="rtl"] .cta-buttons {
  flex-direction: row-reverse;
}

/* Product showcase RTL */
[dir="rtl"] .product-showcase {
  flex-direction: row-reverse;
}

/* ===================== TRYB DRUKOWANIA ===================== */
@media print {
  .main-nav,
  .cta-section,
  .main-footer {
    display: none;
  }

  body {
    background: white;
    color: black;
  }
}
.examples-modules-list {
    display: flex;
    justify-content: center;   /* ← WYŚRODKOWANIE */
    gap: 16px;
    flex-wrap: wrap;           /* ładnie na mobile */
    margin-top: 32px;
}
.member-photo {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    overflow: hidden; /* 🔥 to wycina koło */
    margin: 0 auto 16px;
    background-color: #eaeaea;
}

.member-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* kadruje kwadrat do koła */
    display: block;
}
.member-name {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.linkedin-icon svg {
    width: 18px;
    height: 18px;
    fill: #0A66C2; /* LinkedIn blue */
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.linkedin-icon:hover svg {
    transform: scale(1.15);
    opacity: 0.85;
}

.cookie-text {
    font-size: 14px;
    line-height: 1.4;
}

.cookie-link {
    color: #6DC6EE;
    text-decoration: underline;
}

.cookie-actions {
    display: flex;
    gap: 12px;
}

@media (max-width: 768px) {
    .cookie-banner {
        flex-direction: column;
        align-items: flex-start;
    }
}
.modal-large {
  max-width: 900px;
  max-height: 85vh;
  overflow-y: auto;
}

.cookies-content h2 {
  margin-bottom: 16px;
}

.cookies-content h3 {
  margin-top: 24px;
}

.cookies-content h4 {
  margin-top: 16px;
}

.cookies-content ul {
  padding-left: 20px;
}
/* ===================== COOKIE BANNER (FINAL) ===================== */
.cookie-banner {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    max-width: 960px;
    width: calc(100% - 32px);
    background: rgba(5, 8, 22, 0.98);
    backdrop-filter: blur(10px);
    border-radius: 14px;
    padding: 16px 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.4);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    z-index: 9999;
}

.cookie-text {
    font-size: 14px;
    line-height: 1.45;
    color: var(--text-muted);
    margin: 0;
    max-width: 620px;
}

.cookie-actions {
    display: flex;
    gap: 12px;
    flex-shrink: 0;
}

/* Mobile */
@media (max-width: 768px) {
    .cookie-banner {
        flex-direction: column;
        align-items: stretch;
        text-align: left;
    }

    .cookie-actions {
        width: 100%;
    }

    .cookie-actions .btn {
        width: 100%;
    }
}
