/* =============================================
   AtoFlota.pl — arkusz stylów
   Mobile-first, bez zewnętrznych zasobów
   ============================================= */

/* --- Zmienne --------------------------------------- */
:root {
  --red:        #dc2626;
  --red-hover:  #b91c1c;
  --dark:       #111111;
  --body:       #374151;
  --muted:      #6b7280;
  --subtle:     #9ca3af;
  --bg:         #ffffff;
  --bg-off:     #f7f7f7;
  --bg-section: #f3f4f6;
  --border:     #e5e7eb;
  --font:       system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --radius:     10px;
  --max-w:      1200px;
}

/* --- Reset ----------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { font-family: var(--font); background: var(--bg); color: var(--body); line-height: 1.6; -webkit-font-smoothing: antialiased; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
h1, h2, h3 { color: var(--dark); line-height: 1.2; }
button { font-family: inherit; cursor: pointer; }

/* Focus-visible dla dostępności */
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; border-radius: 4px; }

/* --- Animacje (reduced-motion) --------------------- */
@media (prefers-reduced-motion: no-preference) {
  .hero-content > * { opacity: 0; transform: translateY(16px); animation: fade-up 0.6s ease forwards; }
  .hero-content > *:nth-child(1) { animation-delay: 0.05s; }
  .hero-content > *:nth-child(2) { animation-delay: 0.15s; }
  .hero-content > *:nth-child(3) { animation-delay: 0.25s; }
  .hero-content > *:nth-child(4) { animation-delay: 0.35s; }
  .hero-visual { opacity: 0; transform: translateY(24px); animation: fade-up 0.7s 0.2s ease forwards; }
  .feature-card { opacity: 0; transform: translateY(12px); animation: fade-up 0.5s ease forwards; }
  .audience-card { opacity: 0; animation: fade-up 0.5s ease forwards; }
}
@keyframes fade-up { to { opacity: 1; transform: translateY(0); } }

/* --- Layout ---------------------------------------- */
.container { width: 100%; max-width: var(--max-w); margin: 0 auto; padding: 0 20px; }

/* --- Navigacja ------------------------------------- */
.site-header { position: sticky; top: 0; z-index: 100; background: rgba(255,255,255,0.92); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border-bottom: 1px solid var(--border); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 60px; }

/* Logo */
.logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.1rem; letter-spacing: -0.02em; color: var(--dark); }
.logo-mark { display: block; width: 10px; height: 22px; background: var(--red); border-radius: 2px; flex-shrink: 0; }
.logo-accent { color: var(--red); }
.logo-tld { color: var(--subtle); font-weight: 400; }

/* --- Przyciski ------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 10px 22px; border-radius: 7px; font-weight: 600; font-size: 0.9rem;
  transition: background 0.15s, color 0.15s, border-color 0.15s, box-shadow 0.15s;
  white-space: nowrap;
}
.btn-primary { background: var(--red); color: #fff; border: 2px solid var(--red); }
.btn-primary:hover { background: var(--red-hover); border-color: var(--red-hover); }
.btn-outline { background: transparent; color: var(--dark); border: 2px solid var(--border); }
.btn-outline:hover { border-color: var(--dark); }

/* --- Badge ----------------------------------------- */
.badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: #fef2f2; color: var(--red);
  border: 1px solid #fecaca; border-radius: 100px;
  padding: 4px 12px; font-size: 0.8rem; font-weight: 600;
}
.badge-dot {
  display: block; width: 7px; height: 7px; border-radius: 50%;
  background: var(--red);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}
@media (prefers-reduced-motion: reduce) { .badge-dot { animation: none; } }

/* --- Hero ------------------------------------------ */
.hero { padding: 60px 0 72px; }
.hero-inner { display: grid; grid-template-columns: 1fr; gap: 48px; align-items: center; }
.hero-content { display: flex; flex-direction: column; gap: 24px; }
.hero-content h1 { font-size: clamp(2rem, 5vw, 3.4rem); letter-spacing: -0.03em; line-height: 1.1; }
.hero-desc { font-size: 1.05rem; color: var(--body); max-width: 560px; line-height: 1.7; }
.hero-visual { border-radius: 12px; overflow: hidden; box-shadow: 0 20px 60px rgba(0,0,0,0.12); }
.hero-visual img { width: 100%; height: auto; }

@media (min-width: 960px) {
  .hero { padding: 80px 0 96px; }
  .hero-inner { grid-template-columns: 5fr 7fr; gap: 64px; }
}

/* --- Features -------------------------------------- */
.features { padding: 72px 0; background: var(--bg-off); }
.features h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); letter-spacing: -0.02em; margin-bottom: 40px; }
.features-grid { display: grid; grid-template-columns: 1fr; gap: 16px; }

.feature-card {
  display: flex; flex-direction: column; gap: 12px;
  padding: 24px; background: var(--bg); border-radius: var(--radius);
  border: 1px solid var(--border);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.feature-card:hover { border-color: #d1d5db; box-shadow: 0 4px 16px rgba(0,0,0,0.06); }
.feature-icon { color: var(--red); }
.feature-card h3 { font-size: 1rem; font-weight: 700; color: var(--dark); }
.feature-card p { font-size: 0.9rem; color: var(--muted); line-height: 1.6; }

@media (min-width: 600px)  { .features-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 960px)  { .features-grid { grid-template-columns: 1fr 1fr 1fr; } }

/* Stagger animacji dla feature kart */
@media (prefers-reduced-motion: no-preference) {
  .feature-card:nth-child(1) { animation-delay: 0.05s; }
  .feature-card:nth-child(2) { animation-delay: 0.10s; }
  .feature-card:nth-child(3) { animation-delay: 0.15s; }
  .feature-card:nth-child(4) { animation-delay: 0.20s; }
  .feature-card:nth-child(5) { animation-delay: 0.25s; }
  .feature-card:nth-child(6) { animation-delay: 0.30s; }
}

/* --- Audience -------------------------------------- */
.audience { padding: 72px 0; }
.audience h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); letter-spacing: -0.02em; margin-bottom: 12px; }
.section-sub { color: var(--muted); font-size: 1rem; margin-bottom: 40px; max-width: 520px; }
.audience-grid { display: grid; grid-template-columns: 1fr; gap: 16px; }

.audience-card {
  padding: 28px 24px; border-radius: var(--radius);
  background: var(--bg); border: 1px solid var(--border);
  position: relative; overflow: hidden;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.audience-card:hover { border-color: var(--red); box-shadow: 0 4px 20px rgba(220,38,38,0.08); }
.audience-num {
  display: block; font-size: 2.4rem; font-weight: 800; color: var(--border);
  letter-spacing: -0.04em; line-height: 1; margin-bottom: 12px;
  font-variant-numeric: tabular-nums;
}
.audience-card h3 { font-size: 1.05rem; font-weight: 700; color: var(--dark); margin-bottom: 8px; }
.audience-card p { font-size: 0.9rem; color: var(--muted); line-height: 1.6; }

@media (min-width: 600px)  { .audience-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 960px)  { .audience-grid { grid-template-columns: 1fr 1fr 1fr 1fr; } }

@media (prefers-reduced-motion: no-preference) {
  .audience-card:nth-child(1) { animation-delay: 0.05s; }
  .audience-card:nth-child(2) { animation-delay: 0.12s; }
  .audience-card:nth-child(3) { animation-delay: 0.19s; }
  .audience-card:nth-child(4) { animation-delay: 0.26s; }
}

/* --- Stopka ---------------------------------------- */
.site-footer { background: var(--dark); color: #9ca3af; padding: 40px 0; }
.footer-inner { display: flex; flex-direction: column; gap: 24px; }
.footer-brand { display: flex; flex-direction: column; gap: 10px; }
.footer-brand .logo { color: #fff; }
.footer-brand .logo-mark { background: var(--red); }
.footer-brand .logo-tld { color: #6b7280; }
.footer-tagline { font-size: 0.85rem; color: #6b7280; }
.footer-right { display: flex; flex-direction: column; gap: 6px; }
.footer-email { color: #d1d5db; font-size: 0.95rem; transition: color 0.15s; }
.footer-email:hover { color: #fff; }
.footer-copy { font-size: 0.8rem; color: #4b5563; }

@media (min-width: 640px) {
  .footer-inner { flex-direction: row; justify-content: space-between; align-items: flex-end; }
}
