html {
  scroll-behavior: smooth;
}

:root {
  /* Colors - High Contrast Light Theme */
  --bg-dark: #ffffff;
  --bg-darker: #f3f6f9;
  --bg-card-dark: #ffffff;
  --bg-card-light: #ffffff;
  --primary-green: #00bf5c; /* Vibrant, punchy green */
  --primary-green-hover: #00a44d;
  --text-main: #020617; /* High contrast black */
  --text-muted: #334155;
  --text-dark: #020617; /* Absolute dark for titles */
  --text-dark-muted: #1e293b;
  --border-dark: rgba(0, 0, 0, 0.08);
  --border-light: rgba(0, 0, 0, 0.04);
  
  /* Layout */
  --container-width: 1200px;
  --section-padding: 80px 20px;
  
  /* Effects */
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.04), 0 4px 6px rgba(0, 0, 0, 0.02);
  --shadow-lg: 0 10px 25px -5px rgba(0, 0, 0, 0.08), 0 8px 10px -6px rgba(0, 0, 0, 0.04);
  --shadow-glow: 0 0 20px rgba(0, 191, 92, 0.3);
  --transition: all 0.3s ease;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background-color: var(--bg-dark);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: 'Outfit', system-ui, -apple-system, sans-serif;
  font-weight: 700;
  line-height: 1.2;
}

a {
  text-decoration: none;
  color: inherit;
}

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

.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 20px;
}

/* Typography Helpers */
.text-center { text-align: center; }
.text-green { color: var(--primary-green); }

/* Buttons */
.btn {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 8px;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  font-size: 1rem;
  border: none;
}

.btn-primary {
  background-color: var(--primary-green);
  color: #ffffff;
  text-shadow: 0 1px 1px rgba(0,0,0,0.2);
}

.btn-primary:hover {
  background-color: var(--primary-green-hover);
  box-shadow: var(--shadow-glow);
  transform: translateY(-2px);
}

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

.btn-outline:hover {
  background-color: rgba(0, 229, 96, 0.1);
}

/* Animations */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease-out;
}

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

/* --- Header --- */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-light);
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
}

.logo {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-dark);
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  flex-shrink: 0;
}

.logo span {
  color: var(--primary-green);
}

.nav-links {
  display: flex;
  gap: 20px;
  align-items: center;
  white-space: nowrap;
}

.nav-links a {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-dark);
  transition: var(--transition);
  white-space: nowrap;
}

.nav-links a.btn-primary {
  color: #ffffff; /* Keep CTA button text white */
}

.nav-links a:hover:not(.btn-primary) {
  color: var(--primary-green);
}

/* --- Hero Section --- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  padding-top: 80px; /* Offset header */
  background: linear-gradient(rgba(15, 17, 26, 0.7), rgba(15, 17, 26, 0.95)), url('hero-bg.jpg') center/cover;
}

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

.hero-subtitle-top {
  color: var(--primary-green);
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 20px;
  display: block;
}

.hero-title {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  margin-bottom: 30px;
}

.hero-desc {
  font-size: 1.25rem;
  color: var(--text-muted);
  margin-bottom: 40px;
}

.hero-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

/* --- Znasz to uczucie Section --- */
.pain-points {
  padding: var(--section-padding);
  background-color: var(--bg-darker);
}

.deployments-grid {
  overflow: hidden;
  padding: 10px 0 40px;
  position: relative;
  width: 100%;
}

.deployments-grid::before,
.deployments-grid::after {
  content: "";
  position: absolute;
  top: 0;
  width: 100px;
  height: 100%;
  z-index: 2;
  pointer-events: none;
}

.deployments-grid::before {
  left: 0;
  background: linear-gradient(to right, var(--bg-dark) 0%, transparent 100%);
}

.deployments-grid::after {
  right: 0;
  background: linear-gradient(to left, var(--bg-dark) 0%, transparent 100%);
}

.deployments-track {
  display: flex;
  gap: 20px;
  width: max-content;
  animation: scroll-deployments 40s linear infinite;
}

.deployments-grid:hover .deployments-track {
  animation-play-state: paused;
}

@keyframes scroll-deployments {
  0% { transform: translateX(0); }
  100% { transform: translateX(calc(-50% - 10px)); }
}

.deployment-card {
  background-color: var(--bg-card-dark);
  border-left: 4px solid var(--primary-green);
  padding: 30px;
  border-radius: 8px;
  box-shadow: var(--shadow-sm);
  min-width: 350px;
  max-width: 350px;
  white-space: normal;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.deployment-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.deployment-title {
  color: var(--primary-green);
  font-size: 1.3rem;
  margin-bottom: 15px;
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.section-title {
  color: var(--primary-green);
  font-size: 2rem;
  margin-bottom: 20px;
}

.section-desc {
  font-size: 1.1rem;
  color: var(--text-muted);
  line-height: 1.8;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.card {
  background-color: var(--bg-card-light);
  color: var(--text-dark);
  padding: 40px 30px;
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-light);
  transition: var(--transition);
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px -10px rgba(0,0,0,0.1);
}

.card-icon {
  margin-bottom: 20px;
}

.card-title {
  font-size: 1.25rem;
  margin-bottom: 15px;
  color: var(--text-dark);
}

.card-text {
  color: var(--text-dark-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* --- Services / Features Section --- */
.services {
  padding: var(--section-padding);
  background-color: var(--bg-dark);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 20px;
  margin-bottom: 60px;
}

.service-card {
  background-color: var(--bg-card-dark);
  padding: 30px;
  border-radius: 12px;
  border-left: 4px solid var(--primary-green);
  display: block;
  transition: var(--transition);
}

.service-card:hover {
  background-color: rgba(26, 30, 45, 0.8);
  transform: translateX(5px);
}

.service-card-title {
  color: var(--primary-green);
  font-size: 1.2rem;
  margin-bottom: 10px;
}

.service-card-desc {
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* --- Quote Banner --- */
.quote-banner {
  background-color: var(--bg-card-dark);
  padding: 60px 20px;
  text-align: center;
  border-top: 1px solid var(--border-dark);
  border-bottom: 1px solid var(--border-dark);
}

.quote-banner p {
  font-size: 1.8rem;
  font-weight: 600;
  font-family: 'Outfit', sans-serif;
  color: #fff;
  max-width: 800px;
  margin: 0 auto;
}

.quote-banner p span {
  color: var(--primary-green);
}

/* --- Jak bedziemy wspolpracowac (Process) --- */
.process {
  padding: var(--section-padding);
  background-color: var(--bg-card-light);
  color: var(--text-dark);
}

.process .section-title {
  color: var(--text-dark);
}

.process-steps {
  display: flex;
  flex-direction: column;
  gap: 0;
  max-width: 1000px;
  margin: 0 auto;
  position: relative;
}

.process-steps::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 24px;
  width: 2px;
  background-color: var(--border-light);
}

.step {
  display: flex;
  gap: 30px;
  padding-bottom: 40px;
  position: relative;
}

.step-number {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: #e0f8ea; /* Light green bg */
  color: var(--primary-green);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
  z-index: 2;
  box-shadow: 0 0 0 10px var(--bg-card-light);
}

.step-content {
  padding-top: 10px;
}

.step-title {
  font-size: 1.3rem;
  margin-bottom: 10px;
}

.step-desc {
  color: var(--text-dark-muted);
}

/* --- Choose Path --- */
.paths {
  padding: var(--section-padding);
  background-color: var(--bg-card-light);
}

.paths-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 30px;
}

.path-card {
  padding: 50px 40px;
  border-radius: 16px;
  text-align: center;
}

.path-card.light-red {
  background-color: rgba(255, 230, 230, 0.4);
}

.path-card.light-green {
  background-color: rgba(230, 255, 238, 0.5);
}

.path-icon {
  margin-bottom: 20px;
}

.path-title {
  color: var(--text-dark);
  font-size: 1.5rem;
  margin-bottom: 15px;
}

.path-desc {
  color: var(--text-dark-muted);
  margin-bottom: 30px;
}

/* --- Testimonials --- */
.testimonials {
  padding: var(--section-padding);
  background-color: var(--bg-card-light);
}

.testimonials .section-title {
  color: var(--text-dark);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}

.testimonial-card {
  background-color: #fff;
  border: 1px solid var(--border-light);
  border-radius: 12px;
  padding: 30px;
  box-shadow: var(--shadow-sm);
}

.testimonial-text {
  color: var(--text-dark-muted);
  font-size: 0.95rem;
  margin-bottom: 20px;
  font-style: italic;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 15px;
}

.author-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: var(--primary-green);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--bg-dark);
  font-weight: bold;
}

.author-info h4 {
  color: var(--text-dark);
  font-size: 0.95rem;
  margin-bottom: 2px;
}

.author-info p {
  color: var(--text-dark-muted);
  font-size: 0.8rem;
}

/* --- Footer --- */
footer {
  background-color: var(--bg-darker);
  padding: 80px 20px 40px;
}

.footer-top {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 60px;
  margin-bottom: 60px;
  max-width: var(--container-width);
  margin-left: auto;
  margin-right: auto;
}

.footer-heading {
  font-size: 2.5rem;
  margin-bottom: 20px;
}

.footer-contact-info {
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-card {
  background-color: var(--bg-card-dark);
  padding: 20px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 15px;
}

.contact-card-icon {
  background-color: rgba(0, 229, 96, 0.1);
  color: var(--primary-green);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* --- Logo Carousel --- */
.logo-carousel {
  overflow: hidden;
  padding: 30px 0 50px 0;
  background: transparent;
  position: relative;
  width: 100%;
}

.logo-carousel::before,
.logo-carousel::after {
  content: "";
  position: absolute;
  top: 0;
  width: 15%;
  height: 100%;
  z-index: 2;
  pointer-events: none;
}

.logo-carousel::before {
  left: 0;
  background: linear-gradient(to right, var(--bg-dark) 0%, transparent 100%);
}

.logo-carousel::after {
  right: 0;
  background: linear-gradient(to left, var(--bg-dark) 0%, transparent 100%);
}

.logo-carousel-track {
  display: flex;
  width: max-content;
  animation: scroll-logos 25s linear infinite;
}

.logo-carousel-track img {
  height: 80px;
  margin: 0 50px;
  opacity: 0.9;
  transition: transform 0.3s ease;
  object-fit: contain;
}

.logo-carousel-track img:hover {
  opacity: 1;
  transform: scale(1.05);
}

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

@media (max-width: 768px) {
    .logo-carousel-track img {
        height: 40px;
        margin: 0 20px;
    }
}

/* --- Real Deployments Cards --- */
.deployments-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.deployment-card {
  background-color: var(--bg-card-dark);
  border: 1px solid var(--border-dark);
  border-radius: 12px;
  padding: 40px 30px;
  text-align: center;
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.deployment-card:hover {
  transform: translateY(-5px);
}

.deployment-icon {
  font-size: 3rem;
  margin-bottom: 20px;
}

.deployment-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 15px;
}

.deployment-desc {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 25px;
  flex-grow: 1;
}

.deployment-savings {
  display: inline-block;
  background-color: rgba(34, 197, 94, 0.08);
  color: var(--primary-green);
  border: 1px solid rgba(34, 197, 94, 0.2);
  border-radius: 50px;
  padding: 8px 16px;
  font-size: 0.9rem;
  font-weight: 600;
  margin: 0 auto;
}

/* --- Services/Pricing Section (Purple Theme) --- */
.services-section {
  padding: 80px 0;
  background-color: var(--bg-dark);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.service-card {
  background-color: var(--bg-card-dark);
  border: 1px solid var(--border-dark);
  border-radius: 16px;
  padding: 40px 30px;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
  transform: translateY(-5px);
  border-color: var(--primary-green);
  box-shadow: var(--shadow-lg);
}

.service-card .service-btn {
  margin-top: auto;
}

.service-icon-box {
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 25px;
  border: 1px solid var(--border-dark);
  font-size: 1.5rem;
}

.service-title {
  font-size: 1.4rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 15px;
}

.service-desc {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 25px;
}

.service-features {
  list-style: none;
  margin-bottom: 30px;
  flex-grow: 1;
}

.service-features li {
  color: #d1d5db;
  font-size: 0.9rem;
  margin-bottom: 15px;
  padding-left: 20px;
  position: relative;
}

.service-features li::before {
  content: "•";
  color: #a855f7;
  position: absolute;
  left: 0;
  font-weight: bold;
}

.service-price {
  font-size: 1.1rem;
  font-weight: 700;
  color: #c084fc;
  margin-top: auto;
  margin-bottom: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--border-dark);
}

.service-btn {
  display: block;
  width: 100%;
  text-align: center;
  background-color: transparent;
  color: #fff;
  border: 1px solid var(--border-dark);
  border-radius: 8px;
  padding: 12px;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  text-decoration: none;
}

.service-card:hover .service-btn {
  background-color: #a855f7;
  border-color: #a855f7;
}

/* --- FAQ Section --- */
.faq-section {
  padding: var(--section-padding);
  background-color: var(--bg-card-light);
  color: var(--text-dark);
}

.faq-container {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid var(--border-light);
  margin-bottom: 15px;
}

.faq-question {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 20px 0;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-dark);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: var(--transition);
}

.faq-question:hover {
  color: var(--primary-green);
}

.faq-icon {
  font-size: 1.5rem;
  transition: transform 0.3s ease;
  color: var(--primary-green);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
  color: var(--text-dark-muted);
}

.faq-answer-inner {
  padding-bottom: 20px;
  line-height: 1.6;
}

.faq-item.active .faq-answer {
  max-height: 500px; /* Arbitrary large number to allow animation */
}

.faq-item.active .faq-icon {
  transform: rotate(45deg);
}

/* Form Styles */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

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

.form-group label {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.form-control {
  background-color: var(--bg-card-dark);
  border: 1px solid var(--border-dark);
  color: #fff;
  padding: 15px;
  border-radius: 8px;
  font-family: inherit;
  font-size: 1rem;
}

.form-control:focus {
  outline: none;
  border-color: var(--primary-green);
}

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

.footer-bottom {
  text-align: center;
  padding-top: 30px;
  border-top: 1px solid var(--border-dark);
  color: var(--text-muted);
  font-size: 0.9rem;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 10px;
}

.footer-links a:hover {
  color: var(--primary-green);
}

/* Responsive */
@media (max-width: 768px) {
  .hero-title {
    font-size: 2.5rem;
  }
  
  .nav-links {
    display: none; /* In a real scenario we'd use a hamburger menu */
  }

  .process-steps::before {
    left: 20px;
  }
  
  .step-number {
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
  }

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

/* Animacja kart opinii klientów */
.testimonial-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.testimonial-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}
