/* Landing page systemu — rekruter.boxapp.pl
   Osobny arkusz (nie dziedziczy po panelu admina/kandydata). */

:root {
  --rk-bg: #0f1029;
  --rk-bg-2: #171838;
  --rk-surface: #ffffff;
  --rk-surface-soft: #f6f7fc;
  --rk-border: #e4e7f2;
  --rk-text: #1a1c3a;
  --rk-muted: #5d6180;
  --rk-primary: #4f46e5;
  --rk-primary-2: #7c3aed;
  --rk-accent: #22d3ee;
  --rk-grad: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
  --rk-grad-text: linear-gradient(90deg, #818cf8, #c084fc, #22d3ee);
  --rk-radius: 18px;
  --rk-shadow: 0 10px 40px rgba(30, 27, 75, 0.10);
  --rk-shadow-lg: 0 24px 64px rgba(30, 27, 75, 0.16);
}

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

html { scroll-behavior: smooth; }

body.rk-body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--rk-text);
  background: var(--rk-surface);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.rk-wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; }

/* ---------- Top nav ---------- */

.rk-nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--rk-border);
}
.rk-nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 0; gap: 16px; flex-wrap: wrap;
}
.rk-brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.rk-brand img { width: 42px; height: 42px; display: block; }
.rk-brand-name { font-size: 1.3rem; font-weight: 800; color: var(--rk-text); letter-spacing: -0.02em; }
.rk-brand-badge {
  font-size: 0.68rem; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase;
  color: var(--rk-primary); background: var(--rk-primary-light, #eef2ff);
  border: 1px solid #dcd9fb; border-radius: 999px; padding: 3px 10px;
  display: inline-block; margin-top: 2px;
}
.rk-nav-links { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.rk-nav-links a { color: var(--rk-muted); text-decoration: none; font-weight: 500; font-size: 0.95rem; }
.rk-nav-links a:hover { color: var(--rk-primary); }

.rk-btn {
  display: inline-block; padding: 12px 26px; border-radius: 999px;
  font-weight: 700; font-size: 0.98rem; text-decoration: none;
  transition: transform .15s ease, box-shadow .15s ease;
}
.rk-btn-primary {
  background: var(--rk-grad); color: #fff !important;
  box-shadow: 0 8px 24px rgba(79, 70, 229, 0.35);
}
.rk-btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 32px rgba(79, 70, 229, 0.45); }
.rk-btn-ghost {
  color: var(--rk-text); border: 1.5px solid var(--rk-border);
  background: #fff;
}
.rk-btn-ghost:hover { border-color: var(--rk-primary); color: var(--rk-primary); }
.rk-btn-sm { padding: 9px 20px; font-size: 0.9rem; }

/* ---------- Hero ---------- */

.rk-hero {
  background:
    radial-gradient(60% 50% at 80% 0%, rgba(124, 58, 237, 0.35) 0%, transparent 60%),
    radial-gradient(50% 45% at 10% 20%, rgba(34, 211, 238, 0.16) 0%, transparent 60%),
    var(--rk-bg);
  color: #eef0ff;
  padding: 96px 0 110px;
  position: relative;
  overflow: hidden;
}
.rk-hero-inner { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 56px; align-items: center; }
.rk-hero-kicker {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.8rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--rk-accent);
  background: rgba(34, 211, 238, 0.10); border: 1px solid rgba(34, 211, 238, 0.3);
  padding: 6px 14px; border-radius: 999px; margin-bottom: 24px;
}
.rk-hero h1 {
  font-size: clamp(2.2rem, 4.6vw, 3.4rem);
  line-height: 1.12; font-weight: 800; letter-spacing: -0.03em; margin-bottom: 20px;
}
.rk-hero h1 .grad { background: var(--rk-grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
.rk-hero-sub { font-size: 1.15rem; color: #b9bde4; max-width: 520px; margin-bottom: 34px; }
.rk-hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }
.rk-hero-note { margin-top: 18px; font-size: 0.85rem; color: #8f94c4; }

/* CSS-mockup panelu — wizualizacja produktu */
.rk-mock {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--rk-radius);
  padding: 18px;
  box-shadow: var(--rk-shadow-lg);
  backdrop-filter: blur(6px);
}
.rk-mock-bar { display: flex; gap: 6px; margin-bottom: 14px; }
.rk-mock-dot { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,0.25); }
.rk-mock-row {
  display: flex; align-items: center; gap: 12px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 10px; padding: 12px 14px; margin-bottom: 10px;
}
.rk-mock-avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--rk-grad); flex: none; }
.rk-mock-lines { flex: 1; }
.rk-mock-line { height: 8px; border-radius: 4px; background: rgba(255,255,255,0.22); margin-bottom: 6px; }
.rk-mock-line.short { width: 55%; margin-bottom: 0; }
.rk-mock-tag {
  font-size: 0.7rem; font-weight: 700; padding: 4px 10px; border-radius: 999px;
  background: rgba(34, 211, 238, 0.18); color: var(--rk-accent); white-space: nowrap;
}
.rk-mock-tag.ok { background: rgba(74, 222, 128, 0.18); color: #4ade80; }
.rk-mock-tag.wait { background: rgba(251, 191, 36, 0.18); color: #fbbf24; }

/* ---------- Sekcje ---------- */

.rk-section { padding: 88px 0; }
.rk-section-alt { background: var(--rk-surface-soft); }
.rk-section-head { text-align: center; max-width: 640px; margin: 0 auto 56px; }
.rk-section-head .kicker {
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.09em; text-transform: uppercase;
  color: var(--rk-primary); margin-bottom: 12px; display: block;
}
.rk-section-head h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); font-weight: 800; letter-spacing: -0.02em; margin-bottom: 14px; }
.rk-section-head p { color: var(--rk-muted); font-size: 1.05rem; }

/* Problem → rozwiązanie */
.rk-pain-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.rk-pain, .rk-gain { border-radius: var(--rk-radius); padding: 34px; }
.rk-pain { background: #fff; border: 1.5px solid var(--rk-border); }
.rk-pain h3 { color: var(--rk-muted); margin-bottom: 16px; font-size: 1.1rem; }
.rk-gain { background: var(--rk-grad); color: #fff; box-shadow: var(--rk-shadow-lg); }
.rk-gain h3 { margin-bottom: 16px; font-size: 1.1rem; }
.rk-pain ul, .rk-gain ul { list-style: none; }
.rk-pain li, .rk-gain li { padding: 7px 0 7px 30px; position: relative; font-size: 0.98rem; }
.rk-pain li::before { content: "✕"; position: absolute; left: 0; color: #ef4444; font-weight: 700; }
.rk-gain li::before { content: "✓"; position: absolute; left: 0; color: var(--rk-accent); font-weight: 800; }

/* Features */
.rk-features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.rk-feature {
  background: #fff; border: 1px solid var(--rk-border); border-radius: var(--rk-radius);
  padding: 30px 26px; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.rk-feature:hover { transform: translateY(-4px); box-shadow: var(--rk-shadow); border-color: #c9c4f7; }
.rk-feature-icon {
  width: 48px; height: 48px; border-radius: 12px; margin-bottom: 18px;
  background: var(--rk-primary-light, #eef2ff);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem;
}
.rk-feature h3 { font-size: 1.08rem; margin-bottom: 8px; letter-spacing: -0.01em; }
.rk-feature p { color: var(--rk-muted); font-size: 0.93rem; }

/* Jak to działa */
.rk-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; counter-reset: rkstep; }
.rk-step {
  position: relative; background: #fff; border: 1px solid var(--rk-border);
  border-radius: var(--rk-radius); padding: 40px 28px 30px; counter-increment: rkstep;
}
.rk-step::before {
  content: counter(rkstep);
  position: absolute; top: -18px; left: 28px;
  width: 40px; height: 40px; border-radius: 12px;
  background: var(--rk-grad); color: #fff; font-weight: 800; font-size: 1.1rem;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 16px rgba(79, 70, 229, 0.35);
}
.rk-step h3 { margin-bottom: 8px; font-size: 1.1rem; }
.rk-step p { color: var(--rk-muted); font-size: 0.95rem; }

/* RODO / bezpieczeństwo band */
.rk-band {
  background:
    radial-gradient(50% 60% at 85% 30%, rgba(34, 211, 238, 0.14) 0%, transparent 60%),
    var(--rk-bg-2);
  color: #e8eaf9; border-radius: var(--rk-radius);
  padding: 56px; display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center;
}
.rk-band h2 { font-size: 1.8rem; font-weight: 800; letter-spacing: -0.02em; margin-bottom: 14px; }
.rk-band p { color: #aab0dd; margin-bottom: 10px; }
.rk-band-list { list-style: none; }
.rk-band-list li { padding: 10px 0 10px 34px; position: relative; font-size: 0.98rem; color: #cfd3f0; }
.rk-band-list li::before {
  content: "✓"; position: absolute; left: 0; top: 10px;
  width: 22px; height: 22px; border-radius: 50%;
  background: rgba(34, 211, 238, 0.15); color: var(--rk-accent);
  font-weight: 800; font-size: 0.8rem; display: flex; align-items: center; justify-content: center;
}

/* Cennik teaser */
.rk-pricing-card {
  max-width: 640px; margin: 0 auto; text-align: center;
  background: #fff; border: 1.5px solid var(--rk-border); border-radius: var(--rk-radius);
  padding: 52px 40px; box-shadow: var(--rk-shadow);
  position: relative; overflow: hidden;
}
.rk-pricing-card::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 5px; background: var(--rk-grad);
}
.rk-pricing-card .soon {
  display: inline-block; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--rk-primary); background: var(--rk-primary-light, #eef2ff);
  padding: 5px 14px; border-radius: 999px; margin-bottom: 18px;
}
.rk-pricing-card h3 { font-size: 1.7rem; font-weight: 800; margin-bottom: 12px; }
.rk-pricing-card p { color: var(--rk-muted); margin-bottom: 26px; }

/* FAQ */
.rk-faq { max-width: 760px; margin: 0 auto; }
.rk-faq details {
  background: #fff; border: 1px solid var(--rk-border); border-radius: 14px;
  margin-bottom: 12px; padding: 0 24px;
}
.rk-faq summary {
  cursor: pointer; font-weight: 600; padding: 18px 0; list-style: none;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.rk-faq summary::after { content: "+"; font-size: 1.3rem; color: var(--rk-primary); font-weight: 700; flex: none; }
.rk-faq details[open] summary::after { content: "−"; }
.rk-faq details p { color: var(--rk-muted); padding: 0 0 18px; font-size: 0.95rem; }
.rk-faq summary::-webkit-details-marker { display: none; }

/* CTA final */
.rk-final {
  background:
    radial-gradient(55% 70% at 50% 0%, rgba(124, 58, 237, 0.4) 0%, transparent 65%),
    var(--rk-bg);
  color: #fff; text-align: center; padding: 96px 24px; border-radius: var(--rk-radius);
  margin-bottom: 88px;
}
.rk-final h2 { font-size: clamp(1.8rem, 3.4vw, 2.5rem); font-weight: 800; letter-spacing: -0.02em; margin-bottom: 16px; }
.rk-final p { color: #b9bde4; max-width: 520px; margin: 0 auto 32px; font-size: 1.05rem; }

/* Footer */
.rk-footer { border-top: 1px solid var(--rk-border); padding: 40px 0; background: var(--rk-surface-soft); }
.rk-footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
.rk-footer-brand { display: flex; align-items: center; gap: 10px; }
.rk-footer-brand img { width: 30px; height: 30px; }
.rk-footer-brand span { font-weight: 700; color: var(--rk-text); }
.rk-footer-links { display: flex; gap: 20px; flex-wrap: wrap; }
.rk-footer-links a { color: var(--rk-muted); font-size: 0.9rem; text-decoration: none; }
.rk-footer-links a:hover { color: var(--rk-primary); }
.rk-footer-copy { width: 100%; margin-top: 20px; font-size: 0.8rem; color: #a0a4c4; }

/* Reveal on scroll (progressive enhancement — bez JS też działa) */
.rk-reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.rk-reveal.rk-visible { opacity: 1; transform: none; }
/* Gdy brak JS — treść widoczna */
.no-js .rk-reveal { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .rk-reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .rk-hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .rk-hero { padding: 64px 0 80px; }
  .rk-features, .rk-steps { grid-template-columns: 1fr 1fr; }
  .rk-pain-grid, .rk-band { grid-template-columns: 1fr; }
  .rk-band { padding: 36px; }
}
@media (max-width: 600px) {
  .rk-features, .rk-steps { grid-template-columns: 1fr; }
  .rk-section { padding: 60px 0; }
  .rk-nav-links { gap: 14px; }
  .rk-band { padding: 28px 22px; }
  .rk-pricing-card { padding: 36px 24px; }
}
