/* Fakturkomat.pl — Clean Professional Design (ifirma-style) */

/* ========== BASE ========== */
html { scroll-behavior: smooth; }
body { overflow-x: hidden; color: #333; }

/* ========== NAVBAR ========== */
.navbar-main {
  background: #fff;
  box-shadow: 0 1px 0 rgba(0,0,0,0.06);
  transition: box-shadow 0.3s ease;
}

.navbar-scrolled {
  box-shadow: 0 2px 12px rgba(0,0,0,0.08) !important;
}

/* ========== HERO ========== */
.hero-section {
  background: linear-gradient(170deg, #f0f4ff 0%, #e8eeff 40%, #f8f9ff 100%);
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: -20%;
  right: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(59,130,246,0.08) 0%, transparent 70%);
  pointer-events: none;
}

.hero-section::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(99,102,241,0.06) 0%, transparent 70%);
  pointer-events: none;
}

/* Typewriter cursor */
.typewriter-cursor {
  display: inline-block;
  width: 3px;
  height: 1em;
  background: #2563eb;
  margin-left: 2px;
  vertical-align: text-bottom;
  animation: blink 0.8s step-end infinite;
}

@keyframes blink {
  50% { opacity: 0; }
}

/* ========== HERO ILLUSTRATION / MOCKUP ========== */
.hero-mockup {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.08), 0 4px 16px rgba(0,0,0,0.04);
  border: 1px solid rgba(0,0,0,0.06);
  overflow: hidden;
}

/* ========== INTEGRATION CAROUSEL ========== */
.logo-track {
  display: flex;
  animation: scrollLogos 30s linear infinite;
  width: max-content;
}

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

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

.logo-item {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  flex-shrink: 0;
  opacity: 0.5;
  transition: opacity 0.3s ease;
  font-weight: 700;
  font-size: 13px;
  color: #64748b;
  letter-spacing: 0.02em;
}

.logo-item:hover {
  opacity: 1;
}

/* ========== SERVICE CARDS ========== */
.service-card {
  background: #fff;
  border: 1px solid #e8ecf1;
  border-radius: 16px;
  padding: 2rem;
  transition: all 0.3s ease;
  cursor: pointer;
}

.service-card:hover {
  border-color: #2563eb;
  box-shadow: 0 8px 30px rgba(37,99,235,0.1);
  transform: translateY(-4px);
}

.service-card .card-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  transition: transform 0.3s ease;
}

.service-card:hover .card-icon {
  transform: scale(1.05);
}

/* ========== TABS ========== */
.tab-btn {
  padding: 12px 24px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 14px;
  color: #64748b;
  background: transparent;
  border: 1px solid transparent;
  transition: all 0.3s ease;
  cursor: pointer;
  white-space: nowrap;
}

.tab-btn:hover {
  color: #2563eb;
  background: #f0f4ff;
}

.tab-btn.active {
  color: #2563eb;
  background: #eff3ff;
  border-color: #c7d2fe;
}

.tab-content {
  display: none;
  animation: fadeTab 0.4s ease;
}

.tab-content.active {
  display: block;
}

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

/* ========== FEATURE LIST CHECK ========== */
.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 6px 0;
  font-size: 15px;
  color: #475569;
  line-height: 1.6;
}

.check-icon {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #dbeafe;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 3px;
}

.check-icon svg {
  width: 12px;
  height: 12px;
  color: #2563eb;
}

/* ========== PRICING ========== */
.pricing-card {
  background: #fff;
  border: 1px solid #e8ecf1;
  border-radius: 16px;
  padding: 2rem;
  transition: all 0.3s ease;
}

.pricing-card:hover {
  box-shadow: 0 8px 30px rgba(0,0,0,0.06);
}

.pricing-popular {
  border: 2px solid #2563eb;
  box-shadow: 0 8px 30px rgba(37,99,235,0.1);
  position: relative;
  transform: scale(1.02);
}

@media (max-width: 768px) {
  .pricing-popular { transform: scale(1); }
}

/* ========== FAQ ========== */
.faq-item {
  background: #fff;
  border: 1px solid #e8ecf1;
  border-radius: 12px;
  transition: all 0.3s ease;
}

.faq-item:hover {
  border-color: #c7d2fe;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}

.faq-answer.open {
  max-height: 500px;
}

/* ========== CTA SECTION ========== */
.cta-section {
  background: linear-gradient(135deg, #1e40af 0%, #2563eb 50%, #3b82f6 100%);
}

/* ========== BUTTONS ========== */
.btn-blue {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 15px;
  background: #2563eb;
  color: #fff;
  border: none;
  transition: all 0.2s ease;
  cursor: pointer;
}

.btn-blue:hover {
  background: #1d4ed8;
  box-shadow: 0 4px 12px rgba(37,99,235,0.25);
  transform: translateY(-1px);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 15px;
  background: transparent;
  color: #2563eb;
  border: 2px solid #2563eb;
  transition: all 0.2s ease;
  cursor: pointer;
}

.btn-outline:hover {
  background: #eff3ff;
  transform: translateY(-1px);
}

.btn-white {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 15px;
  background: #fff;
  color: #1e40af;
  border: none;
  transition: all 0.2s ease;
  cursor: pointer;
}

.btn-white:hover {
  background: #f0f4ff;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  transform: translateY(-1px);
}

/* ========== SECTION BACKGROUNDS ========== */
.bg-light {
  background: #f8fafc;
}

.bg-blue-light {
  background: linear-gradient(180deg, #f0f4ff 0%, #f8fafc 100%);
}

/* ========== TRUST BADGE ========== */
.trust-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 600;
  color: #475569;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

/* ========== SCROLL ANIMATIONS ========== */
.fade-in-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in-up.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-in-left {
  opacity: 0;
  transform: translateX(-24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.fade-in-right {
  opacity: 0;
  transform: translateX(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in-right.visible {
  opacity: 1;
  transform: translateX(0);
}

[data-delay="1"] { transition-delay: 0.1s !important; }
[data-delay="2"] { transition-delay: 0.2s !important; }
[data-delay="3"] { transition-delay: 0.3s !important; }
[data-delay="4"] { transition-delay: 0.4s !important; }
[data-delay="5"] { transition-delay: 0.5s !important; }
[data-delay="6"] { transition-delay: 0.6s !important; }

/* ========== BADGE ========== */
.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* ========== STEP NUMBERS ========== */
.step-num {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 800;
  background: #2563eb;
  color: #fff;
}

/* ========== KSEF BADGE ========== */
.ksef-badge {
  background: linear-gradient(135deg, #059669, #10b981);
  color: white;
  padding: 6px 14px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* ========== TOAST ========== */
.toast {
  position: fixed;
  bottom: 2rem; right: 2rem;
  padding: 1rem 1.5rem;
  background: #2563eb;
  color: white;
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(37,99,235,0.3);
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.3s ease;
  z-index: 1000;
  font-size: 14px;
  font-weight: 500;
}

.toast.show {
  transform: translateY(0);
  opacity: 1;
}

/* ========== SCROLLBAR ========== */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #f1f5f9; }
::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #94a3b8; }

/* ========== FORM ========== */
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37,99,235,0.12);
}

/* ========== MOCKUP ELEMENTS ========== */
.mockup-window {
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  border: 1px solid #e2e8f0;
  box-shadow: 0 12px 40px rgba(0,0,0,0.08), 0 2px 8px rgba(0,0,0,0.04);
}

.mockup-topbar {
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.mockup-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
  .hero-section { padding-top: 100px; }
}
