/* ============================================
   WooCasH — wspólny arkusz stylów
   ============================================ */

:root {
  /* Kolory */
  --bg: #0A0A12;
  --bg-elevated: #131320;
  --bg-elevated-2: #1A1A2C;
  --accent: #7C5CFC;
  --accent-tint: #B8A6FF;
  --accent-deep: #5638D6;
  --text: #F2F1F7;
  --text-muted: #A6A3BD;
  --text-faint: #75728C;
  --border: rgba(124, 92, 252, 0.25);
  --border-soft: rgba(255, 255, 255, 0.08);

  /* Typografia */
  --font-display: 'Space Grotesk', 'Inter', sans-serif;
  --font-body: 'Inter', sans-serif;

  /* Layout */
  --content-width: 1180px;
  --radius: 14px;
  --radius-sm: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  position: relative;
  overflow-x: hidden;
}

/* Ambientowe tło — miękkie plamy światła, stałe względem viewportu */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(720px 480px at 12% -8%, rgba(124, 92, 252, 0.22), transparent 60%),
    radial-gradient(600px 420px at 92% 18%, rgba(124, 92, 252, 0.12), transparent 65%),
    radial-gradient(800px 500px at 50% 100%, rgba(86, 56, 214, 0.14), transparent 60%);
  pointer-events: none;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0 0 0.5em 0;
  color: var(--text);
}

h1 { font-size: clamp(2.25rem, 1.1rem + 4vw, 3.75rem); }
h2 { font-size: clamp(1.75rem, 1rem + 2.2vw, 2.5rem); }
h3 { font-size: clamp(1.15rem, 0.9rem + 0.7vw, 1.4rem); }

p {
  margin: 0 0 1em 0;
  max-width: 62ch;
}

.text-muted { color: var(--text-muted); }

a {
  color: var(--accent-tint);
  text-decoration: none;
}
a:hover { color: var(--accent); }

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

ul, ol { padding-left: 1.2em; }
li { margin-bottom: 0.5em; }

:focus-visible {
  outline: 2px solid var(--accent-tint);
  outline-offset: 3px;
  border-radius: 4px;
}

.container {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 88px 0;
  border-bottom: 1px solid var(--border-soft);
}

.section--tight { padding: 64px 0; }
.section--elevated { background: var(--bg-elevated); }

.section-head {
  max-width: 640px;
  margin-bottom: 44px;
}

.section-head p {
  color: var(--text-muted);
  font-size: 1.05rem;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.98rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

.btn:hover { transform: translateY(-1px); }

.btn--primary {
  background: var(--accent);
  color: #0A0A12;
  box-shadow: 0 8px 24px -6px rgba(124, 92, 252, 0.55);
}
.btn--primary:hover {
  background: var(--accent-tint);
  color: #0A0A12;
  box-shadow: 0 10px 28px -6px rgba(124, 92, 252, 0.7);
}

.btn--ghost {
  background: transparent;
  border-color: var(--border);
  color: var(--text);
}
.btn--ghost:hover { border-color: var(--accent); color: var(--accent-tint); }

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10, 10, 18, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-soft);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--text);
}
.logo .logo-h { color: var(--accent); }

.logo-mark {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--accent), var(--accent-deep));
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  color: var(--text-muted);
  font-size: 0.95rem;
  font-weight: 500;
}
.nav-links a:hover { color: var(--text); }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  padding: 8px 12px;
  cursor: pointer;
}

@media (max-width: 760px) {
  .nav-links {
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--bg-elevated);
    flex-direction: column;
    gap: 0;
    padding: 8px 0;
    border-bottom: 1px solid var(--border-soft);
    display: none;
  }
  .nav-links.is-open { display: flex; }
  .nav-links a {
    padding: 14px 24px;
    width: 100%;
    display: block;
  }
  .nav-toggle { display: block; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 100px 0 80px;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 56px;
  align-items: center;
}

.hero::before {
  content: "";
  position: absolute;
  top: -20px;
  right: -60px;
  width: 380px;
  height: 380px;
  background-image: radial-gradient(rgba(124, 92, 252, 0.35) 1.5px, transparent 1.5px);
  background-size: 22px 22px;
  mask-image: radial-gradient(circle, black 0%, transparent 72%);
  -webkit-mask-image: radial-gradient(circle, black 0%, transparent 72%);
  z-index: -1;
  pointer-events: none;
}

@media (max-width: 900px) {
  .hero::before { display: none; }
}

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; }
}

.hero h1 { margin-bottom: 20px; }

.hero p.lead {
  font-size: 1.15rem;
  color: var(--text-muted);
  margin-bottom: 32px;
}

.hero-micro {
  margin-top: 18px;
  font-size: 0.9rem;
  color: var(--text-faint);
}

.trust-bar {
  border-top: 1px solid var(--border-soft);
  border-bottom: 1px solid var(--border-soft);
  padding: 18px 0;
  text-align: center;
  color: var(--text-faint);
  font-size: 0.9rem;
}

/* ---------- Stat visual (hero) ---------- */
.stat-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px;
  box-shadow: 0 20px 60px -20px rgba(124, 92, 252, 0.35);
}

.stat-number {
  font-family: var(--font-display);
  font-size: 4.2rem;
  font-weight: 700;
  line-height: 1;
  background: linear-gradient(135deg, var(--accent-tint), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.stat-label {
  color: var(--text-muted);
  margin-top: 8px;
  font-size: 0.98rem;
}

.stat-divider {
  height: 1px;
  background: var(--border-soft);
  margin: 24px 0;
}

/* ---------- Cards / grids ---------- */
.grid {
  display: grid;
  gap: 22px;
}

.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }

@media (max-width: 900px) {
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 760px) {
  .grid--2, .grid--3 { grid-template-columns: 1fr; }
}

/* Mobilne centrowanie nagłówków (desktop zostaje bez zmian) */
@media (max-width: 760px) {
  h1, h2 {
    text-align: center;
  }
}

/* Zabezpieczenie przed poziomym przewijaniem przez długie słowa/adresy */
p, a, .card, .pricing-features, .contact-details {
  overflow-wrap: break-word;
  word-break: break-word;
}

.card {
  background: var(--bg-elevated);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: 26px;
}

.card--accent-edge {
  border-left: 2px solid var(--accent);
}

.card h3 { margin-bottom: 10px; }
.card p { color: var(--text-muted); margin-bottom: 0; }

.icon-badge {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(124, 92, 252, 0.14);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  color: var(--accent-tint);
}

/* ---------- Industry picker ---------- */
.industry-card {
  background: linear-gradient(160deg, var(--bg-elevated-2), var(--bg-elevated));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
}

.industry-card h3 { font-size: 1.4rem; margin-bottom: 12px; }
.industry-card p { color: var(--text-muted); }
.industry-card a.link-arrow {
  font-weight: 600;
  color: var(--accent-tint);
}

/* ---------- Tools row ---------- */
.tools-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.tool-chip {
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-sm);
  padding: 12px 20px;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text);
  background: var(--bg-elevated);
}

/* ---------- Process steps ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}

@media (max-width: 900px) {
  .steps { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .steps { grid-template-columns: 1fr; }
}

.step-number {
  font-family: var(--font-display);
  color: var(--accent);
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.step-title { font-size: 1.1rem; margin-bottom: 8px; }
.step-desc { color: var(--text-muted); font-size: 0.95rem; }

/* ---------- Checklist ---------- */
.checklist {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 14px;
}

.checklist li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  color: var(--text-muted);
  margin-bottom: 0;
}

.checklist li svg {
  flex-shrink: 0;
  margin-top: 3px;
  color: var(--accent);
}

.checklist strong { color: var(--text); }

/* ---------- Pricing ---------- */
.pricing-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: 32px;
  position: relative;
}

.pricing-card--featured {
  border-color: var(--accent);
  background: linear-gradient(160deg, rgba(124,92,252,0.10), var(--bg-elevated));
  box-shadow: 0 20px 50px -18px rgba(124, 92, 252, 0.45);
}

.pricing-badge {
  position: absolute;
  top: -13px;
  left: 32px;
  background: var(--accent);
  color: #0A0A12;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 100px;
}

.price {
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 700;
  margin: 12px 0 16px;
}
.price span {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-muted);
}

.pricing-features {
  color: var(--text-muted);
  font-size: 0.94rem;
  margin-bottom: 24px;
}

/* ---------- FAQ ---------- */
.faq-item {
  border-bottom: 1px solid var(--border-soft);
  padding: 20px 8px;
}

.faq-item summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 1.05rem;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
  content: "+";
  font-size: 1.4rem;
  color: var(--accent);
  font-weight: 400;
  margin-left: 16px;
}

.faq-item[open] summary::after { content: "–"; }

.faq-item p {
  color: var(--text-muted);
  margin-top: 14px;
}

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

@media (max-width: 800px) {
  .contact-grid { grid-template-columns: 1fr; }
}

.contact-details {
  color: var(--text-muted);
  font-size: 1.02rem;
}

.contact-details a { color: var(--text); font-weight: 600; }

form.contact-form {
  display: grid;
  gap: 16px;
}

.contact-form label {
  display: block;
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  background: var(--bg-elevated);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.98rem;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--accent);
  outline: none;
}

.contact-form textarea { resize: vertical; min-height: 120px; }

.form-status {
  min-height: 1.2em;
  font-size: 0.92rem;
  margin: 0;
}

.contact-form button[disabled] {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

/* ---------- Highlight box (RODO / security) ---------- */
.highlight-box {
  background: linear-gradient(135deg, rgba(124,92,252,0.16), rgba(124,92,252,0.04));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 24px;
  align-items: flex-start;
}

@media (max-width: 700px) {
  .highlight-box { grid-template-columns: 1fr; }
}

.highlight-box .icon-badge {
  width: 56px;
  height: 56px;
  margin-bottom: 0;
}

/* ---------- Case study diagram ---------- */
.flow-diagram {
  background: var(--bg-elevated);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: 32px;
}

/* ---------- Footer ---------- */
.site-footer {
  padding: 40px 0;
  color: var(--text-faint);
  font-size: 0.9rem;
}

.site-footer .container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
}

.site-footer a { color: var(--text-faint); }
.site-footer a:hover { color: var(--text-muted); }
