/* =============================================
   QUALECTA LANDING PAGE — STYLES
   ============================================= */

:root {
  --green: #8FB500;
  --green-dark: #6E8C00;
  --green-light: #F4F9E0;
  --dark: #111827;
  --gray: #6B7280;
  --gray-light: #F9FAFB;
  --border: #E5E7EB;
  --white: #ffffff;
  --font: 'Inter', system-ui, -apple-system, sans-serif;
  --radius: 12px;
  --shadow: 0 4px 24px rgba(0,0,0,0.08);
  --shadow-lg: 0 12px 48px rgba(0,0,0,0.12);
}

/* ---- RESET & BASE ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font);
  color: var(--dark);
  background: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

/* ---- TYPOGRAPHY ---- */
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 800; line-height: 1.1; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); font-weight: 700; line-height: 1.2; letter-spacing: -0.02em; }
h3 { font-size: 1.2rem; font-weight: 600; line-height: 1.3; }
p { color: var(--gray); font-size: 1.05rem; }

/* ---- LAYOUT ---- */
.container { max-width: 1140px; margin: 0 auto; padding: 0 24px; }
.section { padding: 96px 0; }
.section-sm { padding: 64px 0; }

/* ---- BUTTONS ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 22px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.2s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--green);
  color: var(--white);
  border-color: var(--green);
}
.btn-primary:hover {
  background: var(--green-dark);
  border-color: var(--green-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(143,181,0,0.35);
}
.btn-outline {
  background: transparent;
  color: var(--dark);
  border-color: var(--border);
}
.btn-outline:hover {
  border-color: var(--green);
  color: var(--green);
  transform: translateY(-1px);
}
.btn-lg {
  padding: 14px 28px;
  font-size: 1.05rem;
  border-radius: 10px;
}

/* ---- NAVBAR ---- */
#navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.55);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid rgba(255,255,255,0.6);
  box-shadow: 0 1px 0 rgba(0,0,0,0.06), 0 4px 24px rgba(0,0,0,0.04);
  padding: 0;
}
.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.navbar-logo img {
  height: 52px;
  width: auto;
}
.navbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}
.lang-toggle {
  display: flex;
  align-items: center;
  background: var(--gray-light);
  border-radius: 6px;
  padding: 3px;
  gap: 2px;
}
.lang-btn {
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  background: transparent;
  color: var(--gray);
  transition: all 0.15s;
  font-family: var(--font);
}
.lang-btn.active {
  background: var(--white);
  color: var(--dark);
  box-shadow: 0 1px 4px rgba(0,0,0,0.1);
}

/* ---- HERO ---- */
#hero {
  background: linear-gradient(160deg, var(--green-light) 0%, #ffffff 60%);
  padding: 100px 0 80px;
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.hero-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 6px 14px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--green-dark);
  margin-bottom: 24px;
}
.hero-label span { color: var(--green); }
.hero-content h1 { margin-bottom: 20px; }
.hero-content p { font-size: 1.15rem; margin-bottom: 36px; max-width: 500px; }
.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-visual {
  position: relative;
}
.screenshot-wrapper {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
  position: relative;
}
.screenshot-wrapper img { width: 100%; }
.screenshot-badge {
  position: absolute;
  bottom: -16px;
  left: -16px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 16px;
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.85rem;
  font-weight: 600;
}
.badge-dot {
  width: 10px;
  height: 10px;
  background: #22c55e;
  border-radius: 50%;
  flex-shrink: 0;
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

/* ---- SOURCES MARQUEE ---- */
#sources { overflow: hidden; background: var(--white); padding: 48px 0; }
.sources-label {
  text-align: center;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--gray);
  margin-bottom: 28px;
}
.marquee-wrapper {
  position: relative;
  overflow: hidden;
  width: 100%;
}
.marquee-wrapper::before,
.marquee-wrapper::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 80px;
  z-index: 2;
  pointer-events: none;
}
.marquee-wrapper::before {
  left: 0;
  background: linear-gradient(to right, var(--white) 30%, transparent);
}
.marquee-wrapper::after {
  right: 0;
  background: linear-gradient(to left, var(--white) 30%, transparent);
}
.marquee-track {
  display: flex;
  gap: 12px;
  width: max-content;
  animation: marquee-scroll 40s linear infinite;
}
.marquee-track:hover { animation-play-state: paused; }
@keyframes marquee-scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.marquee-track-reverse {
  animation: marquee-scroll-reverse 35s linear infinite;
}
.marquee-track-reverse:hover { animation-play-state: paused; }
@keyframes marquee-scroll-reverse {
  0%   { transform: translateX(-50%); }
  100% { transform: translateX(0); }
}
.marquee-rows {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.source-item {
  display: grid;
  grid-template-rows: 36px auto;
  justify-items: center;
  align-items: center;
  gap: 8px;
  padding: 14px 20px;
  background: var(--gray-light);
  border: 1px solid var(--border);
  border-radius: 14px;
  white-space: nowrap;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--dark);
  flex-shrink: 0;
}
.source-item img {
  max-height: 32px;
  max-width: 100px;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
  align-self: center;
}
.source-icon {
  font-size: 1.6rem;
  line-height: 1;
  align-self: center;
}

/* ---- HOW IT WORKS ---- */
#how-it-works { background: var(--white); }
.section-header { text-align: center; margin-bottom: 64px; }
.section-header p { max-width: 560px; margin: 16px auto 0; font-size: 1.1rem; }
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  position: relative;
}
.steps-grid::before {
  content: '';
  position: absolute;
  top: 28px;
  left: calc(16.66% + 28px);
  right: calc(16.66% + 28px);
  height: 2px;
  background: linear-gradient(90deg, var(--green) 0%, var(--green) 50%, var(--border) 50%, var(--border) 100%);
  background-size: 8px 2px;
  z-index: 0;
}
.step-card {
  text-align: center;
  position: relative;
  z-index: 1;
}
.step-number {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--green);
  color: var(--white);
  font-size: 1.2rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  position: relative;
  z-index: 1;
}
.step-card h3 { margin-bottom: 10px; }
.step-card p { font-size: 0.95rem; }

/* ---- FEATURES ---- */
#features { background: var(--gray-light); }
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.feature-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px;
  border: 1px solid var(--border);
  transition: all 0.2s ease;
}
.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: var(--green);
}
.feature-icon {
  width: 48px;
  height: 48px;
  background: var(--green-light);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  font-size: 1.4rem;
}
.feature-card h3 { margin-bottom: 8px; }
.feature-card p { font-size: 0.92rem; }

/* ---- SCREENSHOT TABS ---- */
#product { background: var(--white); overflow: hidden; }
.product-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 64px;
  align-items: center;
}
.tab-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 32px;
}
.tab-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 0.2s;
  border: 1px solid transparent;
}
.tab-item.active {
  background: var(--green-light);
  border-color: var(--green);
}
.tab-item:hover:not(.active) { background: var(--gray-light); }
.tab-icon {
  font-size: 1.3rem;
  flex-shrink: 0;
  margin-top: 2px;
}
.tab-item h3 { margin-bottom: 4px; }
.tab-item p { font-size: 0.88rem; }
.product-screenshot {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.product-screenshot img {
  width: 100%;
  height: auto;
  max-height: 560px;
  object-fit: cover;
  object-position: top left;
  display: block;
  transition: opacity 0.15s;
}

/* ---- FOUNDERS ---- */
#founders { background: var(--gray-light); }
.founders-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 56px;
}
.founder-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: all 0.2s;
}
.founder-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}
.founder-photo {
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
  object-position: top center;
}
.founder-info {
  padding: 20px 22px 24px;
}
.founder-info h3 { margin-bottom: 4px; }
.founder-role {
  color: var(--green-dark);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 8px !important;
}
.founder-bio { font-size: 0.88rem; line-height: 1.5; }

/* ---- CTA SECTION ---- */
#cta-section {
  background: var(--dark);
  color: var(--white);
  text-align: center;
  padding: 96px 0;
}
#cta-section h2 { color: var(--white); margin-bottom: 16px; }
#cta-section p { color: rgba(255,255,255,0.65); font-size: 1.1rem; margin-bottom: 36px; }
.cta-buttons { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.btn-white {
  background: var(--white);
  color: var(--dark);
  border-color: var(--white);
}
.btn-white:hover {
  background: var(--green-light);
  border-color: var(--green-light);
  transform: translateY(-1px);
}
.btn-outline-white {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.4);
}
.btn-outline-white:hover {
  border-color: var(--white);
  background: rgba(255,255,255,0.1);
}

/* ---- FOOTER ---- */
footer {
  background: var(--dark);
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 32px 0;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-logo img { height: 28px; filter: brightness(0) invert(1); opacity: 0.8; }
.footer-links { display: flex; gap: 24px; }
.footer-links a { color: rgba(255,255,255,0.5); font-size: 0.85rem; transition: color 0.2s; }
.footer-links a:hover { color: var(--white); }
.footer-copy { color: rgba(255,255,255,0.35); font-size: 0.82rem; }

/* ---- COOKIE BANNER ---- */
#cookie-banner {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 999;
  background: var(--dark);
  color: var(--white);
  border-radius: 12px;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  max-width: 620px;
  width: calc(100% - 48px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.25);
  transition: all 0.3s ease;
}
#cookie-banner.hidden { opacity: 0; pointer-events: none; transform: translateX(-50%) translateY(20px); }
#cookie-banner p { font-size: 0.88rem; color: rgba(255,255,255,0.75); flex: 1; }
#cookie-banner a { color: var(--green); text-decoration: underline; }
.cookie-buttons { display: flex; gap: 8px; flex-shrink: 0; }
.btn-cookie-accept {
  background: var(--green);
  color: var(--white);
  border: none;
  padding: 8px 16px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  font-family: var(--font);
  transition: background 0.2s;
}
.btn-cookie-accept:hover { background: var(--green-dark); }
.btn-cookie-decline {
  background: transparent;
  color: rgba(255,255,255,0.5);
  border: 1px solid rgba(255,255,255,0.2);
  padding: 8px 14px;
  border-radius: 6px;
  font-size: 0.85rem;
  cursor: pointer;
  font-family: var(--font);
  transition: all 0.2s;
}
.btn-cookie-decline:hover { border-color: rgba(255,255,255,0.5); color: var(--white); }

/* ---- RESPONSIVE ---- */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .hero-content p { max-width: 100%; }
  .screenshot-badge { display: none; }
  .steps-grid { grid-template-columns: 1fr; gap: 32px; }
  .steps-grid::before { display: none; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .product-grid { grid-template-columns: 1fr; }
  .tab-list { flex-direction: row; flex-wrap: wrap; }
  .founders-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .section { padding: 64px 0; }
  .features-grid { grid-template-columns: 1fr; }
  .founders-grid { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
  .navbar-actions .btn-outline { display: none; }
  #cookie-banner { flex-direction: column; align-items: flex-start; }
  .cookie-buttons { width: 100%; }
}

/* ---- LANG SWITCH: hide one lang ---- */
.lang-pl { display: none !important; }
body.pl .lang-pl { display: revert !important; }
body.pl .lang-en { display: none !important; }
