/* ===== CargoTown — Modern Landing Page ===== */
:root {
  --bg: #0A0B0C;
  --bg-alt: #0F1319;
  --surface: #131920;
  --surface-2: #171f28;
  --border: #232c38;
  --gold: #F0C86B;
  --gold-soft: #f5d98a;
  --text: #F5F7FA;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  --success: #3ddc84;
  --radius: 20px;
  --radius-sm: 12px;
  --max-width: 1180px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  line-height: 1.5;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

img, svg { display: block; max-width: 100%; }

/* ===== Background glow ===== */
.bg-glow {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at 15% 10%, rgba(240, 200, 107, 0.10), transparent 45%),
    radial-gradient(circle at 85% 25%, rgba(61, 220, 132, 0.06), transparent 45%),
    radial-gradient(circle at 50% 90%, rgba(240, 200, 107, 0.06), transparent 50%),
    var(--bg);
  pointer-events: none;
}

/* ===== Navbar ===== */
#navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
  backdrop-filter: blur(16px) saturate(140%);
  background: rgba(10, 11, 12, 0.65);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease);
}
#navbar.scrolled {
  background: rgba(10, 11, 12, 0.92);
  border-bottom-color: var(--border);
}
.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.logo {
  font-size: 21px;
  font-weight: 900;
  text-decoration: none;
  color: var(--text);
  letter-spacing: -0.5px;
}
.logo span { color: var(--gold); }
.nav-links {
  display: flex;
  gap: 28px;
  align-items: center;
}
.nav-links a {
  text-decoration: none;
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 600;
  transition: color 0.2s;
  position: relative;
}
.nav-links a:hover { color: var(--text); }
.nav-cta {
  background: var(--gold);
  color: #0A0B0C;
  padding: 10px 20px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 13.5px;
  text-decoration: none;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
  white-space: nowrap;
}
.nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(240, 200, 107, 0.35);
}
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span {
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: 0.3s;
}

/* ===== Hero ===== */
.hero {
  position: relative;
  text-align: center;
  padding: 168px 24px 100px;
  max-width: 900px;
  margin: 0 auto;
  overflow: hidden;
}
.hero-badge {
  display: inline-block;
  background: rgba(240, 200, 107, 0.10);
  border: 1px solid rgba(240, 200, 107, 0.25);
  color: var(--gold-soft);
  font-size: 13px;
  font-weight: 700;
  padding: 8px 18px;
  border-radius: 999px;
  margin-bottom: 28px;
}
.hero h1 {
  font-size: clamp(36px, 7vw, 68px);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -1.5px;
  background: linear-gradient(135deg, #fff 30%, var(--gold-soft) 90%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 22px;
}
.hero-sub {
  font-size: 18px;
  color: var(--text-muted);
  line-height: 1.65;
  max-width: 620px;
  margin: 0 auto 36px;
}
.hero-btns {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 52px;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 15px 30px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 15px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s;
}
.btn-primary {
  background: linear-gradient(135deg, var(--gold), var(--gold-soft));
  color: #0A0B0C;
  box-shadow: 0 8px 30px rgba(240, 200, 107, 0.25);
}
.btn-primary:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 14px 40px rgba(240, 200, 107, 0.4);
}
.btn-outline {
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  border: 1.5px solid var(--border);
}
.btn-outline:hover {
  border-color: var(--gold);
  color: var(--gold-soft);
  transform: translateY(-3px);
}
.btn-block { width: 100%; justify-content: center; }

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 48px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}
.stat { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.stat-num { font-size: 30px; font-weight: 900; color: var(--gold); }
.stat-label { font-size: 12.5px; color: var(--text-dim); max-width: 130px; text-align: center; }

.hero-visual {
  position: relative;
  height: 60px;
  max-width: 460px;
  margin: 0 auto;
  opacity: 0.9;
}
.route-line {
  position: absolute;
  top: 50%;
  left: 30px;
  right: 30px;
  height: 2px;
  background: repeating-linear-gradient(90deg, var(--border) 0 10px, transparent 10px 18px);
}
.pin { position: absolute; top: 50%; transform: translateY(-50%); font-size: 22px; }
.pin-a { left: 0; }
.pin-b { right: 0; }
.truck {
  position: absolute;
  top: 50%;
  left: 30px;
  transform: translateY(-50%);
  font-size: 26px;
  animation: driveAcross 5s linear infinite;
}
@keyframes driveAcross {
  0% { left: 30px; }
  100% { left: calc(100% - 60px); }
}

/* ===== Sections ===== */
.section {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 90px 24px;
}
.section.alt { background: var(--bg-alt); max-width: 100%; }
.section.alt > * { max-width: var(--max-width); margin-left: auto; margin-right: auto; }
.kicker {
  display: inline-block;
  color: var(--gold);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.section h2 {
  font-size: clamp(26px, 4vw, 40px);
  font-weight: 900;
  letter-spacing: -0.5px;
  margin-bottom: 14px;
}
.lead {
  font-size: 16px;
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 620px;
}
.center { text-align: center; }
.center .lead { margin: 0 auto; }

/* About */
.about-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  margin-top: 48px;
}
.about-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: transform 0.3s var(--ease), border-color 0.3s;
}
.about-card:hover { transform: translateY(-6px); border-color: rgba(240,200,107,0.3); }
.about-icon { font-size: 32px; margin-bottom: 14px; }
.about-card h3 { font-size: 17px; font-weight: 800; margin-bottom: 8px; }
.about-card p { font-size: 13.5px; color: var(--text-muted); line-height: 1.6; }

/* Services */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 20px;
}
.service-card {
  background: linear-gradient(155deg, var(--surface), var(--surface-2));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px;
  position: relative;
  overflow: hidden;
  transition: transform 0.35s var(--ease), border-color 0.35s, box-shadow 0.35s;
}
.service-card:hover {
  transform: translateY(-8px);
  border-color: rgba(240, 200, 107, 0.35);
  box-shadow: 0 20px 50px rgba(0,0,0,0.35);
}
.service-icon { font-size: 34px; margin-bottom: 16px; display: inline-block; }
.service-card h3 { font-size: 18px; font-weight: 800; margin-bottom: 8px; }
.service-card p { font-size: 13.5px; color: var(--text-muted); line-height: 1.6; margin-bottom: 14px; }
.service-price { font-size: 13px; font-weight: 800; color: var(--gold-soft); }

/* Steps */
.steps {
  display: flex;
  align-items: stretch;
  gap: 8px;
  margin-top: 40px;
  flex-wrap: wrap;
  justify-content: center;
}
.step {
  flex: 1;
  min-width: 220px;
  max-width: 280px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  text-align: center;
}
.step-num {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), var(--gold-soft));
  color: #0A0B0C;
  font-weight: 900;
  font-size: 17px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}
.step h3 { font-size: 16px; font-weight: 800; margin-bottom: 8px; }
.step p { font-size: 13px; color: var(--text-muted); line-height: 1.6; }
.step-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  font-size: 22px;
  font-weight: 900;
}
@media (max-width: 760px) { .step-arrow { transform: rotate(90deg); } }

/* Pricing */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
  margin-top: 20px;
}
.price-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  text-align: center;
  transition: transform 0.3s var(--ease), border-color 0.3s;
}
.price-card:hover { transform: translateY(-5px); border-color: rgba(240,200,107,0.3); }
.price-card .p-icon { font-size: 28px; margin-bottom: 10px; }
.price-card h3 { font-size: 15px; font-weight: 800; margin-bottom: 10px; }
.price-card .p-value { font-size: 24px; font-weight: 900; color: var(--gold); margin-bottom: 6px; }
.price-card .p-note { font-size: 12px; color: var(--text-dim); }

/* CTA */
.cta-section { padding-top: 20px; }
.cta-box {
  position: relative;
  background: linear-gradient(155deg, #1a2230, #0f1520);
  border: 1px solid var(--border);
  border-radius: 28px;
  padding: 70px 30px;
  text-align: center;
  overflow: hidden;
}
.cta-glow {
  position: absolute;
  top: -40%;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 400px;
  background: radial-gradient(circle, rgba(240,200,107,0.18), transparent 70%);
  pointer-events: none;
}
.cta-box h2 { margin: 0 auto 14px; }
.cta-box .lead { margin: 0 auto 32px; }
.ref-hint { margin-top: 22px; font-size: 13px; color: var(--text-dim); }
.ref-hint code {
  background: rgba(240,200,107,0.12);
  color: var(--gold-soft);
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 12px;
}
#refBadge { color: var(--success); font-weight: 700; margin-left: 6px; }

/* Contact */
.contact-form { max-width: 560px; margin: 0 auto; display: flex; flex-direction: column; gap: 14px; }
.form-row { display: flex; gap: 14px; flex-wrap: wrap; }
.form-row input { flex: 1; min-width: 200px; }
input, textarea {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  color: var(--text);
  font-family: inherit;
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s;
  width: 100%;
}
input:focus, textarea:focus { border-color: var(--gold); }
textarea { resize: vertical; }
::placeholder { color: var(--text-dim); }

.contact-info {
  max-width: 560px;
  margin: 32px auto 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
  text-align: center;
}
.contact-info a { text-decoration: none; color: var(--text-muted); font-size: 14px; font-weight: 600; transition: color 0.2s; }
.contact-info a:hover { color: var(--gold-soft); }
.contact-info span { color: var(--text-dim); font-size: 13px; }

/* Footer */
footer { border-top: 1px solid var(--border); padding: 48px 24px; text-align: center; }
.footer-brand { font-size: 20px; font-weight: 900; margin-bottom: 10px; }
.footer-brand span { color: var(--gold); }
footer p { font-size: 13px; color: var(--text-dim); margin-top: 6px; }
.footer-note { max-width: 500px; margin: 10px auto 0; line-height: 1.6; }

/* Toast */
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 14px 22px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  box-shadow: 0 12px 40px rgba(0,0,0,0.4);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
  z-index: 999;
  max-width: 90vw;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast.error { border-color: #ff6b6b; color: #ff8080; }

/* ===== Scroll reveal ===== */
.fade-up { opacity: 0; transform: translateY(24px); animation: fadeUp 0.8s var(--ease) forwards; }
.hero-badge.fade-up { animation-delay: 0.05s; }
#heroTitle.fade-up { animation-delay: 0.15s; }
#heroSub.fade-up { animation-delay: 0.25s; }
.hero-btns.fade-up { animation-delay: 0.35s; }
.hero-stats.fade-up { animation-delay: 0.45s; }
@keyframes fadeUp { to { opacity: 1; transform: translateY(0); } }

.reveal { opacity: 0; transform: translateY(30px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ===== Responsive ===== */
@media (max-width: 860px) {
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
  .nav-cta { display: none; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(10,11,12,0.98);
    border-bottom: 1px solid var(--border);
    padding: 16px 24px;
    gap: 16px;
  }
  .hero { padding: 130px 20px 70px; }
  .hero-stats { gap: 28px; }
}

@media (max-width: 480px) {
  .section { padding: 64px 18px; }
  .cta-box { padding: 48px 20px; }
}

/* "lub zamow online" pod przyciskami pobierania */
.or-online { margin-top: 14px; font-size: 15px; color: var(--text-muted); }
.or-online a { color: var(--gold-soft); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
footer a { color: var(--text-muted); text-decoration: underline; text-underline-offset: 3px; }
footer a:hover { color: var(--gold-soft); }
