:root {
  --bg: #080808;
  --bg2: #0f0f0f;
  --bg3: #161616;
  --border: rgba(255,255,255,0.07);
  --text: #e8e8e8;
  --muted: #666;
  --accent: #660000;
  --accent-rgb: 102, 102, 102;
  --accent2: #ffc4c4;
  --accent2-rgb: 255, 196, 196;
  --accent3: #660000;
  --accent3-rgb: 102, 0, 0;
  --accent-light: #bb0000;
  --accent-glow: rgba(var(--accent-rgb), 0.15);
  --max: 1100px;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'DM Sans', sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ── LAYOUT ── */
/* ── LAYOUT ── */
.wrap {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 32px;
}

/* ── NAV ── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 20px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--max);
  margin: 0 auto;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
}

nav::before {
  content: '';
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 72px;
  background: linear-gradient(to bottom, rgba(8,8,8,0.95) 0%, transparent 100%);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: -1;
  border-bottom: 1px solid var(--border);
}

.logo {
  font-family: 'DM Sans', sans-serif;
  font-weight: 800;
  font-size: 18px;
  color: #fff;
  text-decoration: none;
  letter-spacing: -0.02em;
}

.logo img {
  max-height: 28px;
  width: auto;
  display: block;
}

.logo span { color: var(--accent-light); }

/* ── NAV LINKS + KONTAKT, grupa wyrównana do prawej ── */
.nav-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-link {
  font-size: 14px;
  font-weight: 500;
  color: #ccc;
  text-decoration: none;
  letter-spacing: 0.01em;
  padding: 8px 18px;
  border: 1px solid var(--border);
  border-radius: 6px;
  transition: all 0.2s;
}

.nav-link:hover {
  border-color: var(--accent-light);
  color: var(--accent-light);
}

.nav-link.active {
  color: var(--accent-light);
  border-color: rgba(var(--accent3-rgb),0.4);
  background: rgba(var(--accent2-rgb),0.08);
}

.nav-cta {
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  text-decoration: none;
  padding: 8px 20px;
  border: 1px solid var(--border);
  border-radius: 6px;
  transition: all 0.2s;
}

.nav-cta:hover {
  border-color: var(--accent-light);
  color: var(--accent-light);
}

.footer-yt {
  color: var(--accent-light);
  font-weight: 500;
}

.footer-yt:hover {
  color: #fff;
}

/* ── HERO ── */
#hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  padding: 120px 0 80px;
  overflow: hidden;
}

/* Nagłówek na podstronach innych niż home — te same style h1/hero-sub,
   ale bez pełnej wysokości ekranu */
.page-hero {
  padding: 180px 0 40px;
  position: relative;
  overflow: hidden;
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, black 0%, transparent 100%);
}

.hero-glow {
  position: absolute;
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 500px;
  background: radial-gradient(ellipse, rgba(var(--accent2-rgb),0.12) 0%, transparent 70%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-light);
  border: 1px solid rgba(var(--accent3-rgb),0.3);
  background: rgba(var(--accent2-rgb),0.08);
  padding: 6px 14px;
  border-radius: 100px;
  margin-bottom: 32px;
}

.hero-badge::before {
  content: '';
  width: 6px; height: 6px;
  background: var(--accent-light);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--accent-light);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

h1 {
  font-family: 'DM Sans', sans-serif;
  font-weight: 600;
  font-size: clamp(36px, 5.5vw, 64px);
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: #fff;
  max-width: 820px;
  margin-bottom: 28px;
}

h1 em {
  font-style: normal;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255,255,255,0.35);
}

.hero-sub {
  font-size: 18px;
  font-weight: 300;
  color: #999;
  max-width: 540px;
  margin-bottom: 48px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent);
  color: #fff;
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  padding: 14px 28px;
  border-radius: 8px;
  transition: all 0.2s;
  border: 1px solid transparent;
}

.btn-primary:hover {
  background: var(--accent-light);
  transform: translateY(-1px);
  box-shadow: 0 8px 32px rgba(var(--accent2-rgb),0.35);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 15px;
  text-decoration: none;
  transition: color 0.2s;
}

.btn-ghost:hover { color: var(--text); }

.hero-scroll {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, transparent, var(--muted));
  animation: scrollDown 1.8s ease-in-out infinite;
}

@keyframes scrollDown {
  0% { transform: scaleY(0); transform-origin: top; }
  50% { transform: scaleY(1); transform-origin: top; }
  51% { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ── SECTIONS ── */
section {
  padding: 100px 0;
}

.section-label {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-light);
  margin-bottom: 16px;
}

h2 {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: clamp(28px, 3.5vw, 42px);
  letter-spacing: -0.025em;
  color: #fff;
  line-height: 1.15;
  margin-bottom: 20px;
}

.section-intro {
  font-size: 17px;
  color: #777;
  max-width: 520px;
  line-height: 1.7;
}

/* ── SERVICES ── */
#services { background: var(--bg); }

.services-header {
  margin-bottom: 60px;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}

.service-card {
  background: var(--bg2);
  padding: 40px 36px;
  position: relative;
  transition: background 0.3s;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.service-card:hover {
  background: var(--bg3);
}

.service-card.featured {
  background: linear-gradient(135deg, rgba(var(--accent2-rgb),0.08) 0%, var(--bg2) 100%);
}

.service-card.featured::after {
  content: 'Najczęściej wybierane';
  position: absolute;
  top: 20px; right: 20px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-light);
  background: rgba(var(--accent2-rgb),0.15);
  border: 1px solid rgba(var(--accent3-rgb),0.25);
  padding: 4px 10px;
  border-radius: 100px;
}

.service-icon {
  width: 44px; height: 44px;
  background: var(--accent-glow);
  border: 1px solid rgba(var(--accent3-rgb),0.2);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  font-size: 20px;
}

.service-card h3 {
  font-family: 'Syne', sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 14px;
  letter-spacing: -0.02em;
}

.service-card p {
  font-size: 15px;
  color: #666;
  line-height: 1.65;
  margin-bottom: 24px;
  flex-grow: 1;
}

.service-link {
  font-size: 13px;
  font-weight: 500;
  color: var(--accent-light);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: gap 0.2s;
}

.service-link:hover { gap: 10px; }

/* ── FOR WHO ── */
#forwho {
  background: var(--bg2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.forwho-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.check-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 32px;
}

.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  font-size: 16px;
  color: #bbb;
  line-height: 1.5;
}

.check-list li::before {
  content: '';
  width: 20px; height: 20px;
  min-width: 20px;
  background: var(--accent-glow);
  border: 1px solid rgba(var(--accent3-rgb),0.3);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='8' viewBox='0 0 10 8'%3E%3Cpath d='M1 4l2.5 2.5L9 1' stroke='%23660000' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
}

.forwho-visual {
  position: relative;
}

.stat-stack {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.stat-card {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 24px 28px;
  display: flex;
  align-items: center;
  gap: 20px;
}

.stat-number {
  font-family: 'Syne', sans-serif;
  font-size: 36px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.03em;
  line-height: 1;
  min-width: 80px;
}

.stat-number span {
  color: var(--accent-light);
}

.stat-desc {
  font-size: 14px;
  color: #666;
  line-height: 1.5;
}

/* ── HOW WE WORK ── */
#how { background: var(--bg); }

.how-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.steps {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: 16px;
}

.step {
  display: flex;
  gap: 24px;
  padding: 28px 0;
  border-bottom: 1px solid var(--border);
  position: relative;
}

.step:last-child { border-bottom: none; }

.step-num {
  font-family: 'Syne', sans-serif;
  font-size: 12px;
  font-weight: 700;
  color: var(--accent-light);
  letter-spacing: 0.05em;
  min-width: 28px;
  padding-top: 3px;
}

.step-content h4 {
  font-family: 'Syne', sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 6px;
  letter-spacing: -0.01em;
}

.step-content p {
  font-size: 14px;
  color: #666;
  line-height: 1.6;
}

.how-right {
  position: sticky;
  top: 100px;
}

.how-card {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 36px;
  position: relative;
  overflow: hidden;
}

.how-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), transparent);
}

.how-card-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-light);
  margin-bottom: 20px;
}

.how-card p {
  font-size: 15px;
  color: #888;
  line-height: 1.7;
  margin-bottom: 20px;
}

.how-card p strong {
  color: #ccc;
  font-weight: 500;
}

.how-card p:last-child { margin-bottom: 0; }

/* ── USE CASES ── */
#usecases {
  background: var(--bg2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.cases-header {
  margin-bottom: 56px;
}

.cases-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.case-item {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  gap: 16px;
  transition: border-color 0.2s, background 0.2s;
}

.case-item:hover {
  border-color: rgba(var(--accent3-rgb),0.3);
  background: rgba(var(--accent2-rgb),0.05);
}

.case-dot {
  width: 6px; height: 6px;
  min-width: 6px;
  background: var(--accent-light);
  border-radius: 50%;
  opacity: 0.6;
}

.case-item span {
  font-size: 15px;
  color: #aaa;
}

/* ── CTA SECTION ── */
#cta, .cta-section {
  background: var(--bg);
  text-align: center;
  padding: 120px 0;
  overflow: hidden;
}

.cta-inner {
  position: relative;
}

.cta-glow {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 600px; height: 300px;
  background: radial-gradient(ellipse, rgba(var(--accent2-rgb),0.1) 0%, transparent 70%);
  pointer-events: none;
}

#cta h2, .cta-section h2 {
  max-width: 600px;
  margin: 0 auto 20px;
}

#cta p, .cta-section p {
  font-size: 17px;
  color: #666;
  max-width: 460px;
  margin: 0 auto 24px;
}

.cta-section .check-list {
  text-align: left;
  max-width: 460px;
  margin: 0 auto 40px;
}

/* ── CONTACT ── */
#contact {
  background: var(--bg2);
  border-top: 1px solid var(--border);
  padding: 80px 0;
}

.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: stretch;
}

.contact-info h2 {
  font-size: clamp(24px, 2.5vw, 34px);
  margin-bottom: 16px;
}

.contact-info p {
  font-size: 15px;
  color: #666;
  margin-bottom: 36px;
  line-height: 1.7;
}

.contact-links {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.contact-link {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: #aaa;
  font-size: 15px;
  transition: color 0.2s;
}

.contact-link:hover { color: #fff; }

.contact-link-icon {
  width: 36px; height: 36px;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  flex-shrink: 0;
}

.contact-form {
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.contact-actions {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

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

.form-group label {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
}

.form-group input,
.form-group textarea {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px 16px;
  color: var(--text);
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  outline: none;
  transition: border-color 0.2s;
  resize: none;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: rgba(var(--accent3-rgb),0.5);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: #444;
}

.form-group textarea { min-height: 110px; }

.btn-submit {
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 14px 28px;
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  align-self: flex-start;
}

.btn-submit:hover {
  background: var(--accent-light);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(var(--accent2-rgb),0.3);
}

/* ── FOOTER ── */
footer {
  padding: 32px 0;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

footer .logo { font-size: 15px; }

footer p {
  font-size: 13px;
  color: #444;
}

footer a {
  color: #555;
  text-decoration: none;
  font-size: 13px;
  transition: color 0.2s;
}

footer a:hover { color: #aaa; }

/* ── DIVIDER ── */
.divider {
  height: 1px;
  background: var(--border);
  margin: 0;
}

/* ── FADE IN ANIMATION ── */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

.fade-in-delay-1 { transition-delay: 0.1s; }
.fade-in-delay-2 { transition-delay: 0.2s; }
.fade-in-delay-3 { transition-delay: 0.3s; }
.fade-in-delay-4 { transition-delay: 0.4s; }

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  .wrap { padding: 0 20px; }
  section { padding: 72px 0; }

.nav-right { gap: 8px; }
.nav-links { gap: 6px; }
.nav-link { padding: 6px 12px; font-size: 13px; }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .forwho-inner,
  .how-inner,
  .contact-inner {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .how-right { position: static; }

  .cases-grid { grid-template-columns: 1fr; }

  .form-row { grid-template-columns: 1fr; }

  .hero-actions { flex-direction: column; align-items: flex-start; }

  footer { flex-direction: column; align-items: flex-start; }

  .service-card.featured::after { display: none; }
  .cta-glow { width: 100%; }
}
