:root {
  --bg: #f5f1e9;
  --paper: #fffdf8;
  --ink: #10201a;
  --muted: #65746c;
  --green: #0f3d2e;
  --green-2: #1f6a4e;
  --gold: #c5a45a;
  --line: rgba(16, 32, 26, .12);
  --shadow: 0 24px 80px rgba(16, 32, 26, .14);
  --radius: 28px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Manrope, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(197, 164, 90, .22), transparent 34rem),
    linear-gradient(180deg, #fffaf1 0%, var(--bg) 42%, #eef4ee 100%);
}

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

a {
  color: inherit;
  text-decoration: none;
}

button,
select {
  font: inherit;
}

.site-header {
  position: fixed;
  z-index: 50;
  left: 50%;
  top: 18px;
  transform: translateX(-50%);
  width: min(1180px, calc(100% - 28px));
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, .32);
  border-radius: 999px;
  background: rgba(12, 35, 27, .72);
  backdrop-filter: blur(18px);
  box-shadow: 0 18px 60px rgba(0, 0, 0, .22);
  color: white;
}

.brand {
  display: flex;
  gap: 12px;
  align-items: center;
}

.brand-mark {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #173528;
  background: linear-gradient(135deg, #fff7d6, var(--gold));
  font-weight: 800;
  text-transform: uppercase;
}

.brand strong,
.brand small {
  display: block;
  line-height: 1.1;
}

.brand small {
  color: rgba(255, 255, 255, .72);
  font-size: 12px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 14px;
}

.site-nav a {
  color: rgba(255, 255, 255, .84);
}

.site-nav a:hover {
  color: white;
}

.nav-cta {
  padding: 11px 16px;
  border-radius: 999px;
  color: #173528 !important;
  background: linear-gradient(135deg, #fff7d6, var(--gold));
  font-weight: 800;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  height: 2px;
  margin: 6px;
  background: white;
}

/* HERO */

.hero {
  min-height: 100vh;
  position: relative;
  overflow: hidden;
  display: grid;
  align-items: center;
  padding: 140px max(28px, calc((100vw - 1180px) / 2)) 90px;
  color: white;
}

.hero-bg,
.hero-slide,
.hero-overlay {
  position: absolute;
  inset: 0;
}

/*
  WAŻNE:
  W HTML slajdy mają zmienną:
  style="--bg:url('images/hero-premium-lab.jpg')"

  Ten CSS realnie używa tej zmiennej jako obrazka.
*/
.hero-slide {
  opacity: 0;
  transition: opacity .9s ease;
  background-image:
    linear-gradient(90deg, rgba(7, 25, 18, .92) 0%, rgba(7, 25, 18, .66) 42%, rgba(7, 25, 18, .22) 100%),
    var(--bg);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero-slide.is-active {
  opacity: 1;
}

.hero-overlay {
  pointer-events: none;
  background:
    radial-gradient(circle at 20% 35%, rgba(197, 164, 90, .25), transparent 24rem),
    linear-gradient(180deg, rgba(0, 0, 0, .10), rgba(0, 0, 0, .22));
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 760px;
}

.hero-copy {
  display: none;
  animation: copyIn .55s ease both;
}

.hero-copy.is-active {
  display: block;
}

@keyframes copyIn {
  from {
    opacity: 0;
    transform: translateY(14px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--gold);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .14em;
  font-size: 12px;
}

.eyebrow::before {
  content: "";
  width: 34px;
  height: 1px;
  background: currentColor;
}

h1,
h2 {
  font-family: Alexandria, Manrope, system-ui, sans-serif;
  line-height: .90;
}

h1 {
  font-size: clamp(38px, 5.4vw, 70px);
  margin: 22px 0 22px;
  font-weight: 300;
  text-transform: uppercase;
  letter-spacing: 2px;
}

h1 span,
h1 em,
h1 strong {
  display: block;
}

h1 span {
  font-weight: 900;
}

h1 em {
  font-style: normal;
  font-weight: 200;
  letter-spacing: -.095em;
}

h1 strong {
  font-weight: 800;
}

h2 {
  font-size: clamp(34px, 4.8vw, 56px);
  margin: 12px 0 18px;
  font-weight: 700;
  letter-spacing: -2px;
}

h2 span.thin {
  font-size: clamp(24px, 3.8vw, 46px);
  font-weight: 100;
  letter-spacing: 1px;
}

h2#modalTitle {
  font-size: clamp(24px, 3.8vw, 36px);
}

h3 {
  margin: 0 0 10px;
  font-size: 20px;
}

p {
  color: var(--muted);
  line-height: 1.7;
}

.hero p {
  color: rgba(255, 255, 255, .82);
  font-size: 18px;
  max-width: 650px;
}

.accent {
  color: #c9a35f;
}

.domain-lock,
.domain-lock .accent {
  display: inline !important;
  white-space: nowrap !important;
  word-break: normal !important;
  overflow-wrap: normal !important;
}

.hero-actions,
.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}

.btn {
  border: 0;
  cursor: pointer;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 52px;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 800;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}

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

.btn-primary {
  color: #153426;
  background: linear-gradient(135deg, #fff7d6, var(--gold));
  box-shadow: 0 18px 40px rgba(197, 164, 90, .22);
}

.btn-secondary {
  color: white;
  border: 1px solid rgba(255, 255, 255, .28);
  background: rgba(255, 255, 255, .08);
}

.btn-dark {
  width: 100%;
  color: white;
  background: var(--green);
}

.btn-dark:hover {
  background: var(--green-2);
}

.hero-stats {
  margin-top: 42px;
}

.hero-stats div {
  min-width: 138px;
  padding: 16px 18px;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 20px;
  background: rgba(255, 255, 255, .08);
  backdrop-filter: blur(12px);
}

.hero-stats strong {
  display: block;
  font-size: 28px;
}

.hero-stats span {
  color: rgba(255, 255, 255, .72);
  font-size: 13px;
}

.hero-card {
  position: absolute;
  z-index: 3;
  right: max(28px, calc((100vw - 1180px) / 2));
  bottom: 110px;
  width: min(360px, calc(100% - 56px));
  padding: 24px;
  border-radius: 26px;
  border: 1px solid rgba(255, 255, 255, .24);
  background: rgba(255, 255, 255, .12);
  backdrop-filter: blur(20px);
  box-shadow: 0 24px 70px rgba(0, 0, 0, .24);
}

.hero-card p {
  margin-bottom: 0;
  color: rgba(255, 255, 255, .76);
}

.status-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-right: 8px;
  background: #8effb8;
  box-shadow: 0 0 0 8px rgba(142, 255, 184, .12);
}

.slider-controls {
  position: absolute;
  z-index: 4;
  left: 50%;
  bottom: 34px;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
}

.slide-dot {
  width: 38px;
  height: 5px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, .32);
  cursor: pointer;
}

.slide-dot.is-active {
  background: var(--gold);
}

/* STRIP */

.trust-strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  padding: 22px;
  background: var(--green);
  color: rgba(255, 255, 255, .78);
}

.trust-strip span {
  padding: 10px 16px;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 999px;
}

/* SEKCJE */

.section {
  padding: 104px max(24px, calc((100vw - 1180px) / 2));
}

.section-heading {
  max-width: 780px;
  margin-bottom: 44px;
}

.section-heading.center {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.intro-grid,
.product-grid,
.feature-grid,
.business-grid {
  display: grid;
  gap: 22px;
}

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

.intro-grid article,
.feature-grid article,
.business-grid article,
.product-card,
.config-card,
.seo-panel,
.contact-box {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .72);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}

.intro-grid article,
.feature-grid article,
.business-grid article {
  padding: 30px;
  border-radius: var(--radius);
}

/* PRODUKTY */

.product-grid {
  grid-template-columns: repeat(4, 1fr);
}

.product-card {
  position: relative;
  padding: 16px;
  border-radius: 30px;
  overflow: hidden;
}

.product-card img {
  aspect-ratio: 1 / .78;
  object-fit: cover;
  border-radius: 22px;
  background: linear-gradient(135deg, #dce7dc, #f7f0da);
}

.product-card h3 {
  margin-top: 20px;
}

.product-card p {
  min-height: 86px;
  font-size: 14px;
}

.product-badge {
  position: absolute;
  z-index: 2;
  top: 28px;
  left: 28px;
  padding: 8px 11px;
  border-radius: 999px;
  background: rgba(15, 61, 46, .88);
  color: white;
  font-size: 12px;
  font-weight: 800;
}

.product-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin: 18px 0;
  color: var(--green);
  font-size: 13px;
  font-weight: 800;
}

/* KONFIGURATOR */

.config-card,
.seo-panel {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 42px;
  align-items: center;
  padding: 44px;
  border-radius: 36px;
}

.configurator {
  background:
    radial-gradient(circle at 80% 20%, rgba(197, 164, 90, .22), transparent 26rem),
    linear-gradient(135deg, rgba(15, 61, 46, .08), rgba(255, 255, 255, .2));
}

.mock-config {
  padding: 24px;
  border-radius: 28px;
  background: #10201a;
  color: white;
  box-shadow: 0 28px 70px rgba(16, 32, 26, .28);
}

.mock-top {
  height: 70px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(255, 255, 255, .18), rgba(197, 164, 90, .42));
  margin-bottom: 22px;
}

.mock-config label {
  display: block;
  margin: 16px 0 8px;
  color: rgba(255, 255, 255, .7);
  font-size: 13px;
}

.mock-config select,
.choice-row span,
.subscription-box {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 16px;
  background: rgba(255, 255, 255, .08);
  color: white;
  padding: 14px;
}

.choice-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 9px;
}

.choice-row span {
  text-align: center;
  font-size: 13px;
}

/* AUTOMATYZACJE */

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

.feature-grid strong {
  display: inline-flex;
  margin-bottom: 18px;
  color: var(--gold);
  font-size: 14px;
}

/* SEO DASHBOARD */

.seo-panel {
  position: relative;
  overflow: hidden;
  color: white;
  isolation: isolate;
  background-image:
    linear-gradient(135deg, rgba(15, 61, 46, .70), rgba(16, 32, 26, .78)),
    url("images/seo-dashboard.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.seo-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at 78% 28%, rgba(197, 164, 90, .34), transparent 18rem),
    radial-gradient(circle at 18% 90%, rgba(31, 106, 78, .38), transparent 22rem);
  pointer-events: none;
}

.seo-panel::after {
  content: "";
  position: absolute;
  inset: 18px;
  z-index: -1;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 28px;
  pointer-events: none;
}

.seo-panel p {
  color: rgba(255, 255, 255, .82);
}

.seo-panel .eyebrow {
  color: #f0d27a;
}

.seo-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 14px;
}

.seo-list li {
  padding: 18px 20px;
  border: 1px solid rgba(255, 255, 255, .17);
  border-radius: 18px;
  background: rgba(255, 255, 255, .12);
  backdrop-filter: blur(14px);
  color: rgba(255, 255, 255, .92);
}

/* MODELE BIZNESOWE */

.business-grid {
  grid-template-columns: repeat(4, 1fr);
}

/* KONTAKT */

.contact {
  padding-top: 30px;
}

.contact-box {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
  padding: 58px;
  border-radius: 40px;
  background:
    radial-gradient(circle at top, rgba(197, 164, 90, .22), transparent 26rem),
    rgba(255, 255, 255, .78);
}

/* MODAL */

.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.modal.is-open {
  display: flex;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 17, 12, .68);
  backdrop-filter: blur(8px);
}

.modal-content {
  position: relative;
  z-index: 2;
  width: min(560px, 100%);
  padding: 38px;
  border-radius: 30px;
  background: var(--paper);
  box-shadow: 0 34px 120px rgba(0, 0, 0, .38);
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 16px;
  border: 0;
  background: transparent;
  font-size: 34px;
  cursor: pointer;
}

/* RESPONSYWNOŚĆ */

@media (max-width: 980px) {
  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 10px);
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 18px;
    border-radius: 28px;
    background: rgba(12, 35, 27, .96);
  }

  .site-nav.is-open {
    display: flex;
  }

  .hero-card {
    position: relative;
    right: auto;
    bottom: auto;
    margin-top: 34px;
  }

  .hero {
    padding-top: 130px;
  }

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

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

  .config-card,
  .seo-panel {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .site-header {
    top: 10px;
    border-radius: 24px;
  }

  .brand small {
    display: none;
  }

  h1 {
    font-size: 32px;
    letter-spacing: 1px;
  }

  h1 em {
    letter-spacing: -.065em;
  }

  .hero {
    min-height: auto;
    padding-top: 128px;
    padding-bottom: 70px;
  }

  .hero-slide {
    background-position: center;
  }

  .hero-actions,
  .hero-stats {
    display: grid;
  }

  .hero-stats div {
    min-width: 0;
  }

  .section {
    padding: 72px 20px;
  }

  .intro-grid,
  .feature-grid,
  .business-grid,
  .product-grid {
    grid-template-columns: 1fr;
  }

  .config-card,
  .seo-panel,
  .contact-box {
    padding: 28px;
    border-radius: 28px;
  }

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