/* --- ZMIENNE KOLORYSTYCZNE (LIGHT MODE) --- */
:root {
  /* TŁA */
  --bg-main: #f8faff; /* Bardzo jasny, chłodny szary/niebieski */
  --bg-secondary: #eef2f7; /* Nieco ciemniejszy jasny szary dla sekcji */
  --card-bg: #ffffff; /* Czysta biel dla kart */

  /* TEKST */
  --text-main: #1a202c; /* Prawie czarny - główny tekst */
  --text-muted: #3e4855; /* Średni szary - teksty poboczne */
  --text-on-accent: #ffffff; /* Tekst na kolorowych przyciskach */

  /* BRAND COLORS (Zgodne z logo) */
  --neon-blue: #00c2d9; /* Cyjan (lekko przyciemniony dla lepszego kontrastu na bieli) */
  --brand-blue: #00474e; /* Brand Blue (również lekko dostosowany do tła) */

  /* Gradient pozostaje ten sam */
  --gradient-main: linear-gradient(90deg, var(--neon-blue), var(--brand-blue));

  /* OBRAMOWANIA I CIENIE */
  --border-light: #e2e8f0; /* Jasnoszare obramowania */
  /* Nowy, delikatny cień dla kart w jasnym trybie */
  --box-shadow-soft:
    0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --box-shadow-hover:
    0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

/* --- RESET I BAZA --- */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  width: 100%;
  max-width: 100%;
  background-color: var(--bg-main); /* ZMIANA NA JASNE TŁO */
  color: var(--text-main); /* ZMIANA NA CIEMNY TEKST */
  font-family: "Inter", sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
}

a {
  text-decoration: none;
}

h1,
h2,
h3,
h4,
.nav-link,
.btn,
.brand-name {
  font-family: "Exo 2", sans-serif;
  text-transform: capitalize;
  letter-spacing: 1px;
  color: var(--text-main); /* Nagłówki są teraz ciemne */
}

/* --- NAGŁÓWEK (HEADER) --- */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 80px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 5%;
  /* Jasne tło z lekkim rozmyciem */
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 1000;
  border-bottom: 1px solid var(--border-light);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 15px;
  z-index: 2001;
}

.logo-img {
  height: 50px;
  width: auto;
}

.brand-name {
  font-size: 1.2rem;
  font-weight: 700;
  background: var(--gradient-main);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  white-space: nowrap;
}

/* Desktop Nav */
.desktop-nav ul {
  display: flex;
  gap: 30px;
  list-style: none;
}

.nav-link {
  text-decoration: none;
  color: var(--text-main);
  font-size: 1.05rem;
  font-weight: 600;
  transition: color 0.3s ease;
}

.nav-link:hover {
  color: var(--neon-blue);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 15px;
}

/* --- PRZYCISKI (CTA) --- */
.btn {
  padding: 12px 24px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-block;
  text-align: center;
  border: none;
}

.btn-primary {
  background: var(--gradient-main);
  color: var(--text-on-accent);
  box-shadow: 0 4px 14px 0 rgba(0, 194, 217, 0.4); /* Dopasowany cień */
}

.btn-primary:hover {
  box-shadow: 0 6px 20px rgba(0, 86, 199, 0.4);
  transform: translateY(-2px);
}

/* --- SEKCJA HERO --- */
.hero {
  min-height: 90vh;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 100px 5% 60px 5%;
  position: relative;
  overflow: hidden;
  /* Domyślne tło dla dużych ekranów (desktop/laptop) */
  background:
    linear-gradient(rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.1)),
    url("autonomusai_hero.png") no-repeat center left;
  background-size: cover;
}

/* Reguła dla mniejszych ekranów (telefony i mniejsze tablety) */
@media (max-width: 768px) {
  .hero {
    background:
      linear-gradient(rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.1)),
      url("autonomusai_hero_small.png") no-repeat center left;
    background-size: cover;
  }
}

.hero-content {
  max-width: 600px;
  z-index: 2;
  position: relative;
}

h1 {
  font-size: 4.8rem;
  line-height: 1.1;
  margin-bottom: 20px;
  color: var(--text-main); /* Ciemny nagłówek */
}

.highlight {
  background: var(--gradient-main);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-text {
  color: var(--text-muted);
  font-size: 1.1rem;
  margin-bottom: 40px;
}

/* Zmiana "Glow BG" na bardzo subtelną jasną plamę */
.glow-bg {
  position: absolute;
  top: 40%;
  right: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(
    circle,
    rgba(0, 194, 217, 0.08) 0%,
    rgba(0, 86, 199, 0.05) 40%,
    transparent 70%
  );
  border-radius: 50%;
  filter: blur(80px);
  z-index: 1;
  pointer-events: none;
}

/* --- USŁUGI (GRID) --- */
.services {
  padding: 80px 5%;
  background-color: var(--bg-main);
}

.section-header {
  text-align: center;
  margin-bottom: 50px;
  padding: 0 10px;
}

.section-header h2 {
  font-size: 2.8rem;
  margin-bottom: 15px;
  color: var(--text-main);
}

.grid-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.card {
  background: var(--card-bg); /* Białe tło */
  border: 1px solid var(--border-light);
  padding: 30px;
  border-radius: 15px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  box-shadow: var(--box-shadow-soft); /* Delikatny cień zamiast glow */
}

.card:hover {
  transform: translateY(-5px);
  border-color: var(--neon-blue);
  box-shadow: var(--box-shadow-hover);
}

/* Pasek gradientu na górze karty */
.card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--gradient-main);
}

.card h3 {
  margin-bottom: 15px;
  font-size: 1.3rem;
  color: var(--text-main);
}
.card p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* --- REALIZACJE (PROJEKTY) --- */
.projects-section {
  padding: 80px 5%;
  /* Lekko ciemniejsze tło dla kontrastu sekcji */
  background-color: var(--bg-secondary);
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}

.projects-wrapper {
  display: flex;
  flex-direction: column;
  gap: 60px;
}

.project-row {
  display: flex;
  align-items: center;
  /* Linia po lewej stronie */
  border-left: 3px solid var(--border-light);
  padding-left: 40px;
  position: relative;
  transition: all 0.3s ease;
  margin: 20px 0 20px 0;
}

/* Kropka na linii czasu */
.project-row::before {
  content: "";
  position: absolute;
  left: -8px; /* Wyśrodkowanie kropki na linii 3px */
  top: 0;
  width: 13px;
  height: 13px;
  background: var(--card-bg);
  border: 3px solid var(--neon-blue);
  border-radius: 50%;
}

.project-row:hover {
  border-left-color: var(--brand-blue);
}
.project-row:hover::before {
  border-color: var(--brand-blue);
  background: var(--brand-blue);
}

.project-content {
  max-width: 900px;
}

.project-category {
  font-family: "Exo 2", sans-serif;
  font-size: 0.8rem;
  color: var(--brand-blue);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 10px;
  display: block;
  font-weight: 700;
}

.project-content h3 {
  font-size: 2.2rem;
  margin-bottom: 15px;
  color: var(--text-main);
}
.project-content p {
  color: var(--text-muted);
  margin-bottom: 15px;
}

.project-result {
  background: #e8f4ff; /* Bardzo jasny niebieski */
  padding: 15px;
  border-radius: 8px;
  border-left: 4px solid var(--neon-blue);
  font-style: italic;
  color: var(--text-main);
}

.tech-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.tech-tags span {
  background: #fff;
  border: 1px solid var(--neon-blue);
  color: var(--brand-blue);
  padding: 5px 15px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-family: "Exo 2", sans-serif;
  font-weight: 600;
  box-shadow: 0 2px 5px rgba(0, 194, 217, 0.1);
}

/* --- IMPACT / PORÓWNANIE --- */
.impact-section {
  padding: 80px 5%;
  background-color: var(--bg-main);
}

.comparison-container {
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.comparison-row {
  background: var(--card-bg);
  border: 1px solid var(--border-light);
  border-radius: 15px;
  padding: 40px 30px 30px;
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  box-shadow: var(--box-shadow-soft);
}

.comp-label {
  position: absolute;
  top: -14px;
  left: 20px;
  background: var(--brand-blue);
  color: white;
  padding: 4px 15px;
  font-family: "Exo 2", sans-serif;
  font-size: 0.75rem;
  letter-spacing: 1px;
  border-radius: 20px;
  box-shadow: 0 4px 6px rgba(0, 86, 199, 0.2);
}

.comp-side {
  flex: 1;
  text-align: center;
}
.comp-title {
  display: block;
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 15px;
  text-transform: uppercase;
}
.old-way .comp-title {
  color: #d32f2f; /* Ciemniejszy czerwony dla czytelności */
}
.new-way .comp-title {
  color: #00a86b; /* Ciemniejszy zielony */
}

.stat-box {
  background: var(--bg-secondary);
  padding: 20px;
  border-radius: 10px;
  border: 1px solid var(--border-light);
}
.stat-value {
  display: block;
  font-size: 1.8rem;
  font-family: "Exo 2", sans-serif;
  font-weight: 900;
  margin-bottom: 5px;
}
.old-way .stat-value {
  color: #d32f2f;
}
.new-way .stat-value {
  color: var(--brand-blue);
}
.stat-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 500;
}

.vs-badge {
  background: var(--bg-secondary);
  color: var(--text-main);
  font-weight: 900;
  padding: 10px;
  border-radius: 50%;
  border: 2px solid var(--border-light);
}

/* --- SCENARIUSZE --- */
.scenarios-section {
  padding: 80px 5%;
  background-color: var(--bg-secondary);
}
.scenarios-container {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
  margin-top: 40px;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.scenario-card {
  background: var(--card-bg);
  padding: 35px;
  border-radius: 20px;
  border: 1px solid var(--border-light);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--box-shadow-soft);
}

.scenario-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--box-shadow-hover);
}

/* Warianty kart (Kolorowe paski na górze) */
.business-card {
  border-top: 4px solid var(--neon-blue);
}
.edu-card {
  border-top: 4px solid var(--brand-blue);
}
.finance-card {
  border-top: 4px solid #00c853; /* Zielony */
}
.schedule-card {
  border-top: 4px solid #ffab00; /* Pomarańczowy */
}

/* Kolory wyróżnień wewnątrz kart */
.finance-card .solution-box strong {
  color: #00c853;
}
.schedule-card .solution-box strong {
  color: #ffab00;
}
.business-card .solution-box strong {
  color: var(--neon-blue);
}
.edu-card .solution-box strong {
  color: var(--brand-blue);
}

.card-icon {
  font-size: 2.5rem;
  margin-bottom: 20px;
}
.scenario-card h3 {
  font-size: 1.4rem;
  margin-bottom: 15px;
  min-height: 50px;
  color: var(--text-main);
}
.pain-text {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 25px;
  border-left: 3px solid var(--border-light);
  padding-left: 15px;
  background: #fafafa;
  padding: 15px;
  border-radius: 0 5px 5px 0;
}
.solution-box {
  background: #f0f7ff; /* Bardzo jasny niebieski */
  padding: 25px;
  border-radius: 10px;
  border: 1px solid #dceeff;
}

/* --- PROCES --- */
.process-section {
  padding: 80px 5%;
  background-color: var(--bg-main);
  border-top: 1px solid var(--border-light);
}

.process-steps {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  margin-top: 70px;
  flex-wrap: wrap;
}

.step-card {
  flex: 1;
  min-width: 240px;
  background: var(--card-bg);
  padding: 40px 30px;
  border-radius: 15px;
  border: 1px solid var(--border-light);
  transition: all 0.3s ease;
  position: relative;
  overflow: visible; /* Aby numer wystawał */
  box-shadow: var(--box-shadow-soft);
}

.step-card:hover {
  border-color: var(--neon-blue);
  box-shadow: var(--box-shadow-hover);
  transform: translateY(-5px);
}

.step-number {
  font-family: "Exo 2", sans-serif;
  font-size: 4rem;
  font-weight: 900;
  /* Zmiana: Numer jest teraz jasnoszary, mniej przezroczysty */
  color: #e2e8f0;
  position: absolute;
  top: -30px;
  left: 20px;
  line-height: 1;
  z-index: 0;
}

.step-card h3 {
  color: var(--brand-blue);
  margin-bottom: 15px;
  position: relative;
  z-index: 1;
}
.step-card p {
  font-size: 0.95rem;
  color: var(--text-muted);
  position: relative;
  z-index: 1;
  margin-bottom: 25px;
}
.step-tag {
  font-size: 0.75rem;
  text-transform: uppercase;
  color: var(--text-main);
  background: var(--bg-secondary);
  padding: 8px 12px;
  border-radius: 5px;
  display: inline-block;
  font-weight: 700;
  border: 1px solid var(--border-light);
}
.connector {
  font-size: 2rem;
  color: var(--brand-blue);
  padding-top: 50px;
  opacity: 0.5;
}

/* --- KONTAKT --- */
.contact-section {
  padding: 80px 5%;
  background-color: var(--bg-secondary);
  border-top: 1px solid var(--border-light);
  position: relative;
  overflow: hidden;
}
/* Subtelny gradient w tle kontaktu */
.contact-section::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 50%;
  height: 100%;
  background: radial-gradient(
    circle at top right,
    rgba(0, 194, 217, 0.1),
    transparent 60%
  );
  pointer-events: none;
}

.contact-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  max-width: 1200px;
  margin: 0 auto;
  align-items: start;
  position: relative;
  z-index: 2;
}

.contact-info h2 {
  font-size: 2.5rem;
  margin-bottom: 20px;
  color: var(--text-main);
}
.contact-item {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 25px;
}
.contact-item .icon {
  font-size: 1.5rem;
  color: var(--brand-blue);
}
.contact-item a {
  color: var(--text-main);
  text-decoration: none;
  font-weight: 600;
  transition: 0.3s;
}
.contact-item a:hover {
  color: var(--brand-blue);
}

.contact-form-wrapper {
  background: var(--card-bg);
  padding: 40px;
  /* border-bottom-left-radius: 15px; */
  /* border-bottom-right-radius: 15px; */
  border-radius: 15px;
  border: 1px solid var(--border-light);
  box-shadow: var(--box-shadow-hover);
  position: relative;
  overflow: hidden;
}

.contact-form-wrapper::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--gradient-main);
}

.form-group {
  margin-bottom: 20px;
}
.form-group label {
  display: block;
  margin-bottom: 8px;
  font-size: 0.85rem;
  color: var(--text-main);
  font-weight: 700;
  font-family: "Exo 2", sans-serif;
}
.neon-form input,
.neon-form select,
.neon-form textarea {
  width: 100%;
  padding: 15px;
  background: var(--bg-main);
  border: 1px solid var(--border-light);
  border-radius: 8px;
  color: var(--text-main);
  outline: none;
  transition: all 0.3s ease;
  font-family: "Inter", sans-serif;
}
.neon-form input:focus,
.neon-form select:focus,
.neon-form textarea:focus {
  border-color: var(--neon-blue);
  box-shadow: 0 0 0 3px rgba(0, 194, 217, 0.1);
  background: #fff;
}

footer {
  text-align: center;
  padding: 40px 5%;
  border-top: 1px solid var(--border-light);
  color: var(--text-muted);
  background: var(--bg-main);
}

/* --- MENU MOBILNE (Hamburger) --- */
.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
  z-index: 2002;
}
.bar {
  display: block;
  width: 25px;
  height: 3px;
  margin: 5px auto;
  transition: all 0.3s ease-in-out;
  background-color: var(--text-main); /* Ciemne paski */
}

.mobile-nav-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  /* Jasne tło menu mobilnego */
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(15px);
  z-index: 2000;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s ease;
  transform: translateY(-20px);
}

.mobile-nav-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
  text-align: center;
}
.mobile-link {
  font-family: "Exo 2", sans-serif;
  font-size: 1.5rem;
  color: var(--text-main); /* Ciemne linki */
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 2px;
  transition: 0.3s;
}
.mobile-link:hover {
  color: var(--brand-blue);
}

.mobile-nav-overlay.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.hamburger.active .bar:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
  background-color: var(--brand-blue);
}
.hamburger.active .bar:nth-child(2) {
  opacity: 0;
}
.hamburger.active .bar:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
  background-color: var(--brand-blue);
}

/* --- SOCIAL ICONS --- */
.social-row {
  align-items: center;
}

.social-links {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.social-links a {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: var(--text-muted);
  transition: transform 0.3s ease;
  width: fit-content;
}

.social-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: var(--bg-main);
  border: 1px solid var(--border-light);
  color: var(--text-muted);
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.social-btn svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.social-links p {
  margin: 0;
  padding-left: 12px;
  font-weight: 500;
  transition: color 0.3s ease;
  font-weight: 600;
  color: #1a202c;
}

.social-links a:hover .social-btn {
  border-color: var(--neon-blue);
  background-color: #e8f4ff;
  color: var(--brand-blue);
  box-shadow: 0 4px 10px rgba(0, 194, 217, 0.2);
}

.social-links a:hover p {
  color: var(--brand-blue);
}

.link-li .social-btn {
  color: #0a66c2;
}

.link-fb .social-btn {
  color: #1877f2;
}

/* --- KLUCZOWE MEDIA QUERIES --- */
@media (max-width: 1024px) {
  .hero-content {
    max-width: 100%;
    text-align: center;
  }
  .glow-bg {
    right: 50%;
    transform: translateX(50%);
    top: 10%;
    width: 500px;
    height: 500px;
    opacity: 0.6;
  }
  .scenarios-container {
    grid-template-columns: 1fr;
    max-width: 700px;
  }
  .scenario-card h3 {
    min-height: auto;
  }
}

@media (max-width: 900px) {
  .desktop-nav {
    display: none;
  }
  .hamburger {
    display: block;
  }
  .process-steps {
    flex-direction: column;
    gap: 40px;
  }
  .connector {
    display: none;
  }
  .step-card {
    width: 100%;
  }
  .step-number {
    top: -20px;
    left: 20px;
    font-size: 3rem;
  }

  .contact-container {
    grid-template-columns: 1fr;
  }
  .contact-info {
    text-align: center;
  }
  .contact-item {
    justify-content: center;
  }
}

@media (max-width: 768px) {
  .hero {
    flex-direction: column;
    justify-content: center;
    text-align: center;
    padding-top: 120px;
  }
  h1 {
    font-size: 2.2rem;
  }
  .projects-section {
    padding: 60px 5%;
  }
  .project-row {
    flex-direction: column;
    padding-left: 25px;
    gap: 20px;
    border-left-width: 3px;
  }
  .project-row::before {
    left: -8px;
  }
  .project-content {
    text-align: left;
  }
  .project-row.reverse {
    flex-direction: column;
  }
  .comparison-row {
    flex-direction: column;
    gap: 25px;
    padding-top: 50px;
    text-align: center;
  }
  .comp-label {
    left: 50%;
    transform: translateX(-50%);
    width: max-content;
  }
  .vs-badge {
    margin: 10px 0;
  }
}

@media (max-width: 480px) {
  h1 {
    font-size: 1.8rem;
  }
  .section-header h2 {
    font-size: 1.6rem;
  }
  .btn {
    width: 100%;
    display: block;
    margin-bottom: 10px;
  }
  .grid-container {
    grid-template-columns: 1fr;
  }
  .contact-form-wrapper {
    padding: 30px 20px;
  }
}

.cf-turnstile {
  text-align: center;
  margin-bottom: 20px;
}

@media (max-width: 1024px) {
  .contact-section::before {
    /* Rozciągamy tło na całą szerokość, żeby zniknęła pionowa linia */
    width: 100%;

    /* Zmieniamy gradient, aby świecił "z góry", a nie z prawego rogu */
    background: radial-gradient(
      circle at top,
      rgba(0, 194, 217, 0.15),
      transparent 70%
    );

    /* Opcjonalnie: ograniczamy wysokość, żeby poświata nie była na cały długi formularz */
    height: 500px;
  }
}

/* --- SEKCJA HISTORIA REWOLUCJI --- */
.history-revolution {
  padding: 80px 5%;
  background-color: var(--bg-main); /* Przejście z poprzedniej sekcji */
  border-top: 1px solid var(--border-light);
}

.timeline-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
}

/* Opcjonalna linia łącząca karty na desktopie */
@media (min-width: 950px) {
  .timeline-container::before {
    content: "";
    position: absolute;
    top: 25px;
    left: 50px;
    right: 50px;
    height: 3px;
    background: linear-gradient(
      90deg,
      #cbd5e1 0%,
      #cbd5e1 50%,
      var(--neon-blue) 100%
    );
    z-index: 0;
  }
}

.timeline-card {
  background: var(--card-bg);
  border: 1px solid var(--border-light);
  border-radius: 15px;
  padding: 40px 30px 30px;
  position: relative;
  z-index: 1;
  box-shadow: var(--box-shadow-soft);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.timeline-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--box-shadow-hover);
}

/* Wyróżnienia poszczególnych epok */
.timeline-card.past {
  border-top: 4px solid #94a3b8;
} /* Szary dla przeszłości */
.timeline-card.recent {
  border-top: 4px solid #3b82f6;
} /* Standardowy niebieski */
.timeline-card.future {
  border-top: 4px solid var(--neon-blue);
  border-color: rgba(0, 194, 217, 0.3);
}

.era-badge {
  position: absolute;
  top: -15px;
  left: 30px;
  background: #f1f5f9;
  color: var(--text-muted);
  padding: 5px 15px;
  border-radius: 20px;
  font-family: "Exo 2", sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  border: 1px solid var(--border-light);
}

.highlight-badge {
  background: var(--gradient-main);
  color: white;
  border: none;
  box-shadow: 0 4px 10px rgba(0, 194, 217, 0.3);
}

.timeline-card h3 {
  margin-top: 10px;
  font-size: 1.5rem;
  color: var(--text-main);
}

.skepticism,
.reality {
  background: var(--bg-secondary);
  padding: 15px;
  border-radius: 8px;
  font-size: 0.9rem;
}

.skepticism {
  border-left: 3px solid #ef4444; /* Czerwony akcent dla błędu myślowego */
  color: var(--text-muted);
  font-style: italic;
}

.reality {
  border-left: 3px solid #10b981; /* Zielony akcent dla faktu */
  color: var(--text-main);
}

.highlight-reality {
  background: rgba(0, 194, 217, 0.05);
  border-left: 3px solid var(--neon-blue);
}

.label {
  display: block;
  font-family: "Exo 2", sans-serif;
  font-weight: 700;
  font-size: 0.75rem;
  text-transform: uppercase;
  margin-bottom: 5px;
  letter-spacing: 0.5px;
}

/* --- SEKCJA KOSZT ZANIECHANIA (FOMO) --- */
.fomo-section {
  padding: 80px 5%;
  background-color: var(--brand-blue); /* Ciemne tło dla kontrastu */
  color: white;
  position: relative;
  overflow: hidden;
}

/* Subtelny blask w tle ciemnej sekcji */
.fomo-section::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(
    circle,
    rgba(0, 194, 217, 0.15) 0%,
    transparent 60%
  );
  border-radius: 50%;
  pointer-events: none;
}

.fomo-header h2 {
  color: white;
}

.fomo-header p {
  color: #94a3b8; /* Jasnoszary */
  max-width: 600px;
  margin: 0 auto;
}

.fomo-container {
  max-width: 1100px;
  margin: 40px auto 0;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 40px;
  align-items: stretch;
}

.fomo-calc-box {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 15px;
  padding: 40px;
  backdrop-filter: blur(10px);
}

.calc-row {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 30px;
}

.calc-icon {
  font-size: 2rem;
  background: rgba(0, 194, 217, 0.1);
  padding: 10px;
  border-radius: 10px;
  border: 1px solid rgba(0, 194, 217, 0.3);
}

.calc-text h4 {
  color: var(--neon-blue);
  font-size: 1.2rem;
  margin-bottom: 5px;
}

.calc-text p {
  color: #cbd5e1;
  font-size: 0.95rem;
}

.calc-result {
  margin-top: 30px;
  padding-top: 30px;
  border-top: 1px dashed rgba(255, 255, 255, 0.2);
}

.result-label {
  font-size: 0.85rem;
  text-transform: uppercase;
  color: #94a3b8;
  letter-spacing: 1px;
  font-weight: 700;
  display: block;
  margin-bottom: 10px;
}

.result-value {
  color: white;
  font-size: 1.6rem;
  line-height: 1.3;
  margin-bottom: 10px;
}

.result-subtext {
  color: #cbd5e1;
  font-size: 0.9rem;
}

.quote-box {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 40px;
  position: relative;
}

.quote-icon {
  width: 40px;
  height: 40px;
  fill: var(--neon-blue);
  opacity: 0.3;
  margin-bottom: 20px;
}

.quote-box blockquote {
  font-size: 1.6rem;
  font-family: "Exo 2", sans-serif;
  font-style: italic;
  font-weight: 500;
  line-height: 1.4;
  margin-bottom: 30px;
  color: white;
}

.quote-author {
  display: flex;
  flex-direction: column;
  border-left: 3px solid var(--neon-blue);
  padding-left: 15px;
}

.quote-author strong {
  font-size: 1.1rem;
  color: var(--neon-blue);
}

.quote-author span {
  font-size: 0.85rem;
  color: #94a3b8;
}

/* Responsywność dla FOMO */
@media (max-width: 900px) {
  .fomo-container {
    grid-template-columns: 1fr;
  }
  .quote-box {
    padding: 20px 0;
  }
}
@media (max-width: 480px) {
  .fomo-calc-box {
    padding: 25px 20px;
  }
  .quote-box blockquote {
    font-size: 1.3rem;
  }
}

/* --- SEKCJA FAQ --- */
.faq-section {
  padding: 80px 5%;
  background-color: var(--bg-main);
}

.faq-container {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.faq-item {
  background: var(--card-bg);
  border: 1px solid var(--border-light);
  border-radius: 10px;
  overflow: hidden;
  transition: all 0.3s ease;
  box-shadow: var(--box-shadow-soft);
}

.faq-item:hover {
  border-color: var(--neon-blue);
}

.faq-item summary {
  padding: 20px 25px;
  font-family: "Exo 2", sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text-main);
  cursor: pointer;
  list-style: none; /* Usuwa domyślną strzałkę w niektórych przeglądarkach */
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Własna strzałka */
.faq-item summary::after {
  content: "+";
  font-size: 1.5rem;
  color: var(--brand-blue);
  transition: transform 0.3s ease;
}

/* Stan otwarty */
.faq-item[open] summary {
  border-bottom: 1px solid var(--border-light);
  color: var(--brand-blue);
}

.faq-item[open] summary::after {
  content: "−"; /* Znak minusa po rozwinięciu */
  transform: rotate(180deg);
}

/* Ukrycie domyślnej strzałki w Safari */
.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-content {
  padding: 20px 25px;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
  background-color: var(
    --bg-secondary
  ); /* Lekko inne tło dla samej odpowiedzi */
}

.nav-link.nav-highlight {
  background: var(--gradient-main);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 800; /* Robimy go odrobinę grubszym */
  position: relative;
  display: inline-block;
  transform-origin: center;
}

.nav-link.nav-highlight:hover {
  transform: scale(1.05);
  /* Opcjonalny cień dla tekstu */
  filter: drop-shadow(0px 2px 4px rgba(0, 194, 217, 0.3));
}

.mobile-link.nav-highlight-mobile {
  background: var(--gradient-main);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 900;
  display: inline-block;
}
/* --- PRZYCISK ZAMYKANIA MENU MOBILNEGO (X) --- */
.close-menu {
  position: absolute;
  top: 20px;
  right: 5%; /* Wyrównanie do prawego marginesu tak jak hamburger */
  background: none;
  border: none;
  font-size: 3rem;
  color: var(--text-main);
  cursor: pointer;
  z-index: 2005;
  line-height: 1;
  transition:
    transform 0.3s ease,
    color 0.3s ease;
  font-family: "Inter", sans-serif;
  font-weight: 300;
}

.close-menu:hover {
  color: var(--neon-blue);
  transform: scale(1.1);
}

/* --- PŁYWAJĄCY PRZYCISK AI (BOTTOM RIGHT) --- */
.floating-ai-btn {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 65px;
  height: 65px;
  background: var(--gradient-main);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(0, 194, 217, 0.4);
  z-index: 9999; /* Zawsze na samym wierzchu */
  transition: all 0.3s ease;
  animation: floatBtn 3s ease-in-out infinite;
}

.floating-ai-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(0, 86, 199, 0.6);
  animation: none; /* Zatrzymujemy unoszenie przy najechaniu */
}

.ai-icon {
  width: 30px;
  height: 30px;
  fill: #ffffff; /* Biała ikonka na tle gradientu */
}

/* Chmurka z tekstem "Przetestuj Agenta" */
.ai-tooltip {
  position: absolute;
  right: 80px; /* Odsunięcie od przycisku */
  background: var(--card-bg);
  color: var(--text-main);
  padding: 10px 18px;
  border-radius: 20px;
  font-family: "Exo 2", sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  white-space: nowrap;
  box-shadow: var(--box-shadow-hover);
  border: 1px solid var(--border-light);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  transform: translateX(10px);
}

.floating-ai-btn:hover .ai-tooltip {
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
}

/* Subtelna animacja lewitacji */
@keyframes floatBtn {
  0% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
  100% {
    transform: translateY(0);
  }
}

/* Wersja na telefony - trochę mniejszy i bez dymka (żeby nie psuć ekranu) */
@media (max-width: 768px) {
  .floating-ai-btn {
    bottom: 20px;
    right: 20px;
    width: 55px;
    height: 55px;
  }
  .ai-icon {
    width: 25px;
    height: 25px;
  }
  .ai-tooltip {
    display: none; /* Na telefonach palec i tak zasłania, więc chowamy */
  }
}

/* --- BANER COOKIES --- */
.cookie-banner {
  position: fixed;
  bottom: -250px; /* Domyślnie schowany poza ekranem */
  left: 0;
  width: 100%;
  /* Jasne tło z efektem szkła (jak w Twoim headerze) */
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-top: 1px solid var(--border-light);
  box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.05);
  z-index: 9998; /* Pod przyciskiem AI */
  transition: bottom 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 15px 5%;
}

.cookie-banner.show {
  bottom: 0; /* Wysuwa się na ekran */
}

.cookie-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 30px;
}

.cookie-content p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.5;
}

.cookie-content a {
  color: var(--neon-blue);
  font-weight: 700;
  text-decoration: underline;
  transition: color 0.3s ease;
}

.cookie-content a:hover {
  color: var(--brand-blue);
}

.cookie-content .btn {
  white-space: nowrap; /* Zapobiega łamaniu tekstu na przycisku */
  padding: 10px 24px;
  font-size: 0.9rem;
}

/* Responsywność dla banera */
@media (max-width: 768px) {
  .cookie-content {
    flex-direction: column;
    text-align: center;
    gap: 15px;
  }
  .cookie-banner {
    padding-bottom: 25px; /* Więcej miejsca na dole na telefony */
  }
}
