/* ------- Reset & base ------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #0a0a0c;
  --bg-elev: #121216;
  --bg-card: #16161c;
  --line: #23232c;
  --text: #f5f5f7;
  --muted: #9a9aa6;
  --red: #e63946;
  --red-dark: #b32430;
  --radius: 14px;
  --maxw: 1200px;
  --transition: 200ms ease;
}

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

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

.white { color: #fff; }
.red { color: var(--red); }

/* ------- Buttons ------- */
.btn {
  display: inline-block;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background var(--transition), border-color var(--transition), transform var(--transition);
  text-align: center;
}
.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--red);
  color: #fff;
}
.btn-primary:hover { background: var(--red-dark); }

.btn-ghost {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,0.25);
}
.btn-ghost:hover { border-color: #fff; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #fff;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid rgba(230, 57, 70, 0.5);
  background: rgba(230, 57, 70, 0.08);
  padding: 9px 18px;
  border-radius: 999px;
  margin-top: 18px;
  transition: background var(--transition), border-color var(--transition), transform var(--transition);
}
.link-arrow:hover {
  background: rgba(230, 57, 70, 0.18);
  border-color: var(--red);
  transform: translateX(2px);
}

/* ------- Header / nav ------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10,10,12,0.85);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex;
  align-items: center;
  gap: 28px;
  padding-top: 16px;
  padding-bottom: 16px;
}
.logo {
  display: inline-flex;
  align-items: center;
  line-height: 0;
}
.logo img {
  height: 52px;
  width: auto;
  display: block;
}
.footer-logo img { height: 44px; }
.logo-red { color: var(--red); }

.nav-links {
  display: flex;
  gap: 28px;
  margin-left: auto;
}
.nav-links a {
  color: var(--muted);
  font-weight: 500;
  font-size: 0.95rem;
}
.nav-links a:hover { color: #fff; }
.nav-cta { margin-left: 16px; }

.lang-switch {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: 8px;
}
.lang-btn {
  background: transparent;
  border: 0;
  color: var(--muted);
  font: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 4px 6px;
  cursor: pointer;
  transition: color var(--transition);
}
.lang-btn:hover { color: #fff; }
.lang-btn[aria-pressed="true"] { color: var(--red); }
.lang-sep { color: var(--muted); font-size: 0.85rem; }

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
  margin-left: auto;
}
.nav-toggle span {
  width: 24px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
}

/* ------- Hero ------- */
.hero {
  position: relative;
  padding: 100px 0 140px;
  background:
    radial-gradient(900px 480px at 80% 0%, rgba(230,57,70,0.18), transparent 60%),
    radial-gradient(700px 420px at 10% 30%, rgba(230,57,70,0.06), transparent 60%);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 56px;
  align-items: center;
}
.hero h1 {
  font-size: clamp(2.2rem, 4.6vw, 3.6rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  font-weight: 800;
  margin-bottom: 28px;
}
.lead {
  font-size: 1.125rem;
  color: #c5c5d0;
  margin-bottom: 22px;
  max-width: 540px;
  line-height: 1.55;
}
.hero-pitch {
  color: #ffffff;
  font-weight: 700;
  font-size: 1.08rem;
  border-left: 3px solid var(--red);
  padding-left: 16px;
  margin-bottom: 32px;
  max-width: 540px;
  line-height: 1.5;
}
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* Scroll indicator */
.hero-scroll {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  width: 28px;
  height: 46px;
  border: 2px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  display: flex;
  justify-content: center;
  padding-top: 8px;
  transition: border-color var(--transition);
}
.hero-scroll:hover { border-color: var(--red); }
.hero-scroll-dot {
  width: 4px;
  height: 8px;
  background: var(--red);
  border-radius: 4px;
  animation: scrollHint 1.6s ease-in-out infinite;
}
@keyframes scrollHint {
  0%   { transform: translateY(0); opacity: 1; }
  60%  { transform: translateY(16px); opacity: 0; }
  100% { transform: translateY(0); opacity: 0; }
}

.hero-visual {
  position: relative;
  min-height: 460px;
}
.hero-laptop {
  width: 100%;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: 0 30px 60px rgba(0,0,0,0.5);
}
.hero-phone {
  position: absolute;
  right: -10px;
  bottom: -30px;
  width: 36%;
  border-radius: 24px;
  border: 1px solid var(--line);
  box-shadow: 0 20px 40px rgba(230,57,70,0.25), 0 30px 60px rgba(0,0,0,0.5);
}

/* ------- Value blocks ------- */
.value-blocks {
  padding: 140px 24px;
  display: grid;
  gap: 140px;
}
.value-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.value-block.reverse .value-copy { order: 2; }
.value-block.reverse .value-visual { order: 1; }
.value-block h2 {
  font-size: clamp(1.6rem, 2.6vw, 2.2rem);
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin-bottom: 16px;
  font-weight: 800;
}
.value-block p {
  color: var(--muted);
  font-size: 1.05rem;
  margin-bottom: 12px;
  max-width: 520px;
}
.value-visual {
  position: relative;
  min-height: 360px;
}
.value-visual img {
  width: 78%;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: 0 20px 50px rgba(0,0,0,0.45);
}
.value-visual .offset {
  position: absolute;
  right: 0;
  bottom: -20px;
  width: 48%;
  box-shadow: 0 20px 40px rgba(230,57,70,0.18), 0 20px 50px rgba(0,0,0,0.45);
}

/* ------- Section heads ------- */
.section-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: 72px;
}
.section-head .eyebrow {
  display: inline-block;
  background: var(--red);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  padding: 6px 14px;
  border-radius: 6px;
  margin-bottom: 18px;
  text-transform: uppercase;
}
.section-head h2 {
  font-size: clamp(2.2rem, 3.6vw, 3.2rem);
  letter-spacing: -0.02em;
  font-weight: 800;
  margin-bottom: 18px;
  position: relative;
  display: inline-block;
  padding-bottom: 16px;
}
.section-head h2::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 56px;
  height: 3px;
  background: var(--red);
  border-radius: 2px;
}
.section-head p {
  color: var(--muted);
  font-size: 1.08rem;
  max-width: 620px;
  margin: 0 auto;
}

/* ------- Audiences ------- */
.audiences {
  background: var(--bg-elev);
  padding: 130px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.audience { margin-bottom: 64px; }
.audience:last-child { margin-bottom: 0; }
.audience-title {
  font-size: 1.1rem;
  color: var(--red);
  font-weight: 700;
  letter-spacing: 0.02em;
  margin-bottom: 18px;
}
.audience-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.audience-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  transition: border-color var(--transition), transform var(--transition);
}
.audience-card:hover {
  border-color: rgba(230,57,70,0.45);
  transform: translateY(-2px);
}
.audience-card img {
  width: 100%;
  border-radius: 10px;
  border: 1px solid var(--line);
  margin-bottom: 18px;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: top center;
}
.audience-card h4 {
  font-size: 1.1rem;
  margin-bottom: 8px;
  font-weight: 700;
}
.audience-card p {
  color: var(--muted);
  font-size: 0.98rem;
}

/* ------- Funkcje ------- */
.features { padding: 130px 0; }

.feature-category {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-bottom: 16px;
  overflow: hidden;
  background: var(--bg-card);
}
.feature-toggle {
  width: 100%;
  text-align: left;
  background: transparent;
  border: 0;
  color: #fff;
  padding: 22px 24px;
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
}
.feature-toggle .chev {
  color: var(--red);
  display: inline-block;
  transition: transform var(--transition);
}
.feature-toggle[aria-expanded="true"] .chev { transform: rotate(90deg); }
.feature-toggle:hover { background: rgba(255,255,255,0.02); }

.feature-body {
  display: none;
  padding: 0 24px 28px;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}
.feature-toggle[aria-expanded="true"] + .feature-body { display: grid; }

.feature-text h4 {
  font-size: 1.15rem;
  margin-bottom: 10px;
  font-weight: 700;
}
.feature-text p {
  color: var(--muted);
  margin-bottom: 16px;
}
.feature-list {
  display: grid;
  gap: 8px;
}
.feature-list li {
  position: relative;
  padding-left: 22px;
  color: #d8d8e0;
}
.feature-list li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: var(--red);
}

.feature-visual { position: relative; min-height: 280px; }
.feature-visual img {
  width: 70%;
  border-radius: 10px;
  border: 1px solid var(--line);
  box-shadow: 0 20px 40px rgba(0,0,0,0.45);
}
.feature-visual .offset {
  position: absolute;
  right: 0;
  bottom: -20px;
  width: 48%;
}
.feature-visual.triple .offset { right: 18%; }
.feature-visual.triple .offset2 {
  position: absolute;
  right: 0;
  top: 20%;
  width: 38%;
  border-radius: 10px;
  border: 1px solid var(--line);
  box-shadow: 0 20px 40px rgba(230,57,70,0.2), 0 20px 40px rgba(0,0,0,0.45);
}

/* ------- Jak to działa ------- */
.how {
  background: var(--bg-elev);
  padding: 130px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  list-style: none;
  padding: 0;
  margin: 0;
}
.steps > li {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  transition: border-color var(--transition), transform var(--transition);
  list-style: none;
}
.steps > li:hover {
  border-color: rgba(230,57,70,0.45);
  transform: translateY(-2px);
}
.step-num {
  display: inline-block;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--red);
  border: 1px solid rgba(230,57,70,0.4);
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 16px;
}
.steps > li h3 { font-size: 1.2rem; margin-bottom: 8px; }
.steps > li > p { color: var(--muted); margin-bottom: 16px; }
.step-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  padding: 0;
  margin: 0;
}
.step-tags li {
  background: rgba(230, 57, 70, 0.08);
  border: 1px solid rgba(230, 57, 70, 0.3);
  color: #f5b8be;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}

/* ------- FAQ ------- */
.faq { padding: 130px 0; }
.faq-list {
  max-width: 820px;
  margin: 0 auto;
  display: grid;
  gap: 12px;
}
.faq details {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 22px;
  transition: border-color var(--transition);
}
.faq details[open] { border-color: rgba(230,57,70,0.45); }
.faq summary {
  cursor: pointer;
  list-style: none;
  font-weight: 600;
  font-size: 1.02rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  color: var(--red);
  font-size: 1.4rem;
  line-height: 1;
  transition: transform var(--transition);
}
.faq details[open] summary::after { content: "−"; }
.faq details p {
  margin-top: 12px;
  color: var(--muted);
}

/* ------- Demo CTA ------- */
.demo {
  padding: 130px 0;
  background:
    radial-gradient(700px 360px at 20% 100%, rgba(230,57,70,0.18), transparent 60%),
    var(--bg);
}
.demo-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}
.demo-copy h2 {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  letter-spacing: -0.01em;
  font-weight: 800;
  margin-bottom: 14px;
}
.demo-copy p {
  color: var(--muted);
  font-size: 1.05rem;
  margin-bottom: 20px;
}
.demo-perks { display: grid; gap: 10px; }
.demo-perks li {
  position: relative;
  padding-left: 24px;
  color: #d8d8e0;
}
.demo-perks li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--red);
  font-weight: 700;
}

.demo-form {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  display: grid;
  gap: 14px;
}
.demo-form label {
  display: grid;
  gap: 6px;
}
.demo-form label span {
  font-size: 0.85rem;
  color: var(--muted);
}
.demo-form input,
.demo-form textarea {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  color: var(--text);
  font: inherit;
  width: 100%;
  outline: none;
  transition: border-color var(--transition);
}
.demo-form input:focus,
.demo-form textarea:focus { border-color: var(--red); }
.demo-form button[type="submit"] { width: 100%; margin-top: 4px; }
.form-note {
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 4px;
}

/* ------- Legal pages ------- */
.legal {
  padding: 80px 0 60px;
  background:
    radial-gradient(700px 360px at 90% 0%, rgba(230,57,70,0.10), transparent 60%),
    var(--bg);
}
.legal .container { max-width: 820px; }
.legal-head { margin-bottom: 40px; }
.legal-head h1 {
  font-size: clamp(2rem, 4vw, 2.8rem);
  letter-spacing: -0.02em;
  font-weight: 800;
  margin-bottom: 10px;
}
.legal-meta {
  color: var(--muted);
  font-size: 0.9rem;
}
.legal section {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 28px;
  margin-bottom: 16px;
}
.legal section h2 {
  font-size: 1.15rem;
  margin-bottom: 12px;
  font-weight: 700;
  color: #fff;
}
.legal section p {
  color: #d8d8e0;
  margin-bottom: 10px;
  line-height: 1.65;
}
.legal section p:last-child { margin-bottom: 0; }
.legal section ul {
  display: grid;
  gap: 6px;
  margin: 8px 0 10px;
  padding-left: 0;
  list-style: none;
}
.legal section ul li {
  position: relative;
  padding-left: 22px;
  color: #d8d8e0;
  line-height: 1.6;
}
.legal section ul li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: var(--red);
}
.legal section a {
  color: var(--red);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(230,57,70,0.4);
}
.legal section a:hover { text-decoration-color: var(--red); }
.legal section strong { color: #fff; }
.legal-back {
  margin-top: 32px;
  text-align: center;
}
.legal-back a {
  color: var(--red);
  font-weight: 600;
}
.legal-back a:hover { color: #fff; }

/* ------- Footer ------- */
.site-footer {
  background: var(--bg-elev);
  border-top: 1px solid var(--line);
  padding: 60px 0 28px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--line);
}
.footer-tag {
  color: var(--muted);
  margin-top: 10px;
  font-size: 0.95rem;
  max-width: 360px;
}
.site-footer h5 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #fff;
  margin-bottom: 14px;
}
.site-footer ul { display: grid; gap: 8px; }
.site-footer a { color: var(--muted); font-size: 0.95rem; }
.site-footer a:hover { color: #fff; }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 24px;
  color: var(--muted);
  font-size: 0.88rem;
}
.footer-bottom ul { display: flex; gap: 20px; }

/* ------- Responsive ------- */
@media (max-width: 980px) {
  .hero-grid,
  .value-block,
  .value-block.reverse,
  .audience-grid,
  .demo-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .value-block.reverse .value-copy { order: initial; }
  .value-block.reverse .value-visual { order: initial; }
  .steps { grid-template-columns: 1fr; }
  .feature-toggle[aria-expanded="true"] + .feature-body { grid-template-columns: 1fr; }
  .hero-visual { min-height: 340px; }
  .value-visual { min-height: 280px; }
}

@media (max-width: 720px) {
  .nav-links { display: none; }
  .nav-cta { display: none; }
  .nav-toggle { display: flex; }
  .site-header.open .nav-links {
    display: flex;
    flex-direction: column;
    gap: 14px;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-elev);
    border-bottom: 1px solid var(--line);
    padding: 20px 24px;
  }
  .site-header.open .nav-cta {
    display: inline-block;
    margin: 0 24px 20px;
  }
  .hero { padding: 48px 0; }
  .hero-scroll { display: none; }
  .value-blocks { padding: 64px 24px; gap: 64px; }
  .audiences, .features, .how, .faq, .demo { padding: 64px 0; }
  .section-head { margin-bottom: 48px; }
  .footer-bottom { flex-direction: column; gap: 12px; align-items: flex-start; }
}
