/* ============================================================
   1. RESET & CUSTOM PROPERTIES
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --tan:        #b38356;
  --tan-light:  #d9a779;
  --navy:       #111111;
  --body:       #1a1a1a;
  --muted:      #555555;
  --muted2:     #888888;
  --cream:      #f9f3ec;
  --cream2:     #f4f0eb;
  --warm-bg:    #fdf6f0;
  --white:      #ffffff;
  --border:     #e5ddd4;
  --r-card:     32px;
  --r-img:      32px;
  --shadow:     0 4px 24px rgba(0,0,0,.08);
  --tr:         .25s ease;
  --section-v:  100px 80px;
  --color-s:    250px;
  --color-gap:  64px;
}

html   { scroll-behavior: smooth; }
body   { font-size: 16px; line-height: 1.6; color: var(--body); background: var(--white); }
img    { display: block; max-width: 100%; height: auto; }
a      { color: inherit; text-decoration: none; }
strong { font-weight: 600; }

.navbar {
  position: fixed;
  width: 100%;
}

/* ============================================================
   2. BASE — TYPOGRAPHY
   ============================================================ */
h1, h2, h3, h4 { font-family: 'Poppins', sans-serif; line-height: 1.2; }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 600; }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.6rem); font-weight: 600; }
h3 { font-size: 1.2rem; font-weight: 600; }

/* section label */
.label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 12px;
}
.label--white { color: rgba(255,255,255,.75); }

.dot {
  display: inline-block;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--tan);
  flex-shrink: 0;
}

.divider       { border: none; border-top: 1px solid var(--border); margin-block: 24px; }
.divider--light { border-color: #e8e0d6; }
.divider--center { max-width: 600px; margin-inline: auto; }

/* ============================================================
   3. LAYOUT
   ============================================================ */
.container {
  width: 100%;
  max-width: 1180px;
  margin-inline: auto;
  padding-inline: 32px;
}

/* ============================================================
   4. BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  padding: 14px 26px;
  border-radius: 50px;
  font-family: 'Figtree', sans-serif;
  font-size: .92rem;
  font-weight: 600;
  cursor: pointer;
  border: 2px solid transparent;
  transition: var(--tr);
  white-space: nowrap;
}
.btn--tan           { background: var(--tan); color: var(--white); }
.btn--tan:hover     { background: #96693e; }
.btn--outline-white { background: transparent; color: var(--white); border-color: rgba(255,255,255,.65); }
.btn--outline-white:hover { background: rgba(255,255,255,.15); }
.btn--nav           { background: var(--white); color: var(--body); border-color: var(--border); padding: 9px 20px; font-size: .85rem; }
.btn--nav:hover     { border-color: var(--tan); color: var(--tan); }

/* ============================================================
   5. NAV
   ============================================================ */
.nav {
  position: sticky;
  top: 0;
  z-index: 200;
  background: var(--white);
  border-bottom: 1px solid var(--border);
}
.nav__inner {
  display: flex;
  align-items: center;
  height: 66px;
  gap: 32px;
}
.nav__logo {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--navy);
  white-space: nowrap;
}
.nav__links {
  display: flex;
  gap: 28px;
  margin-left: auto;
}
.nav__links a {
  font-size: .88rem;
  font-weight: 500;
  color: var(--muted);
  transition: color var(--tr);
}
.nav__links a:hover { color: var(--body); }
.nav__burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  margin-left: auto;
}
.nav__burger span { display: block; width: 24px; height: 2px; background: var(--navy); border-radius: 2px; transition: var(--tr); }

/* ============================================================
   6. HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: calc(100vh - 66px);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}
.hero__bg {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
}
.hero__gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,.05) 0%, rgba(0,0,0,.55) 75%, rgba(0,0,0,.7) 100%);
}
.hero__content {
  position: relative;
  z-index: 1;
  width: 100%;
  text-align: center;
  padding: 64px 32px 72px;
  color: var(--white);
}
.hero__content h1 { color: var(--white); margin-bottom: 16px; }
.hero__content p  { font-size: 1.05rem; color: rgba(255,255,255,.85); margin-bottom: 36px; }
.hero__cta { display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; }

/* ============================================================
   7. PRODUCT INTRO
   ============================================================ */
.product-intro { padding-block: var(--section-v); }
.product-intro__inner {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 64px;
  align-items: center;
}
.product-intro__img { max-width: 420px; margin-top: 40px; }
.product-intro__quote {
  font-family: 'Poppins', sans-serif;
  font-size: clamp(1.3rem, 2.5vw, 1.75rem);
  font-weight: 400;
  line-height: 1.4;
  color: var(--body);
}

/* ============================================================
   8. FEATURES
   ============================================================ */
.features { padding-block: var(--section-v); }
.features__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px 32px;
}
.feat { display: flex; flex-direction: column; gap: 12px; }
.feat img { width: 80px; height: 80px; object-fit: contain; }
.feat h3  { font-size: 1.2rem; }
.feat p   { font-size: 1rem; color: var(--muted); }

/* ============================================================
   9. PILLARS CARD
   ============================================================ */
.pillars-card { padding-block: var(--section-v); }
.pillars-card__wrap {
  position: relative;
  border-radius: var(--r-card);
  overflow: hidden;
  min-height: 540px;
  display: flex;
  align-items: stretch;
}
.pillars-card__bg {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.pillars-card__panel {
  position: relative;
  z-index: 1;
  width: 46%;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(2px);
  border-radius: var(--r-card);
  padding: 44px 40px;
  margin: 20px;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.pillars-card__panel h2 { margin-bottom: 20px; }

.pillar-row {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding-block: 16px;
  border-top: 1px solid var(--border);
}
.pillar-row:first-of-type { border-top: none; }
.pillar-dash {
  display: block;
  width: 20px; height: 3px;
  background: var(--tan);
  border-radius: 2px;
  margin-top: 8px;
  flex-shrink: 0;
}
.pillar-row strong { display: block; margin-bottom: 4px; font-size: .95rem; }
.pillar-row p      { font-size: 1rem; color: var(--muted); margin: 0; }

/* ============================================================
   10. FUNCTIONS CARD
   ============================================================ */
.functions-card { padding-block: var(--section-v); }
.functions-card__wrap {
  position: relative;
  border-radius: var(--r-card);
  overflow: hidden;
  min-height: 740px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.functions-card__bg {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
/* dark overlay on the card */
.functions-card__wrap::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,.45) 0%, rgba(0,0,0,.2) 50%, rgba(0,0,0,.25) 100%);
  border-radius: var(--r-card);
}
.functions-card__top {
  position: relative;
  z-index: 1;
  padding: 44px 44px 0;
  max-width: 520px;
}
.functions-card__h2  { color: var(--white); margin-bottom: 12px; }
.functions-card__sub { color: rgba(255,255,255,.8); font-size: .95rem; }

.functions-card__cards {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  padding: 28px 28px 28px;
}
.func-card {
  background: var(--white);
  border-radius: var(--r-card);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.func-card__icon { display: flex; justify-content: center; }
.func-card h3    { font-size: 1.2rem; text-align: center; }
.func-card p     { font-size: 1rem; color: var(--muted); text-align: center; }

.svgContainer {
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ============================================================
   11. COLORS
   ============================================================ */
.colors { padding-block: var(--section-v); }
.colors__inner {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 64px;
  align-items: center;
}
.colors__text h2     { margin-bottom: 16px; }
.colors__text p      { color: var(--muted); margin-bottom: 8px; font-size: 1rem; }
.colors__list        { list-style: none; margin-block: 12px 24px; display: flex; flex-direction: column; gap: 6px; }
.colors__list li     { font-weight: 500; font-size: 1.2rem; }

/* masonry: lewa karta wyśrodkowana pomiędzy dwiema prawymi */
.colors__cards {
  display: flex;
  gap: var(--color-gap);
  align-items: flex-start;
}

/* wspólne style dla wszystkich kart kolorów */
.color-main,
.color-small {
  position: relative;
  flex: 0 0 auto;
  width: var(--color-s);
  height: var(--color-s);
  border-radius: var(--r-img);
  overflow: hidden;
  box-shadow:
    3px  4px  11px rgba(18,36,74,.29),
    13px 15px 19px rgba(18,36,74,.26),
    29px 33px 26px rgba(18,36,74,.15),
    51px 58px 31px rgba(18,36,74,.04),
    80px 91px 34px rgba(18,36,74,.01);
}
.color-main img,
.color-small img {
  width: 100%; height: 100%;
  object-fit: cover;
}

/* masonry offset: (250 + 64) / 2 = 157px → karta wyśrodkowana w osi Y */
.color-main {
  margin-top: calc((var(--color-s) + var(--color-gap)) / 2);
}

.color-main__label,
.color-small span {
  position: absolute;
  bottom: 20px; left: 20px;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  color: #fff;
  text-shadow: 2px 2px 10px #00000059;
  line-height: 1.1;
}
.color-main__label { font-size: 2.2rem; }

.colors__side {
  flex: 0 0 auto;
  width: var(--color-s);
  display: flex;
  flex-direction: column;
  gap: var(--color-gap);
}

/* ============================================================
   12. SPLIT SECTIONS
   ============================================================ */
.split { padding-block: var(--section-v); }
.split__inner {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 64px;
  align-items: center;
}
.split--reverse .split__inner { grid-template-columns: 1fr 2fr; }

.split__img img {
  width: 100%;
  border-radius: var(--r-img);
  object-fit: cover;
  max-height: 480px;
}
.split__img--warm {
  background: var(--cream);
  border-radius: calc(var(--r-img) + 8px);
  padding: 8px;
}
.split__img--warm img { border-radius: var(--r-img); }

.split__text h2     { margin-bottom: 16px; }
.split__text p      { color: var(--muted); margin-bottom: 8px; font-size: 1rem; }
.split__text .label { margin-bottom: 12px; }
.list-intro         { font-weight: 600; color: var(--body) !important; margin-bottom: 12px !important; }

.dot-list { list-style: disc; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; margin-bottom: 24px; }
.dot-list li { font-size: .92rem; color: var(--muted); }

/* ============================================================
   13. CTA SECTION
   ============================================================ */
.cta-sec { padding-block-start: 100px; padding-block-end: 0; }
.cta-sec__text {
  text-align: center;
  margin-bottom: 48px;
}
.cta-sec__text .label { justify-content: center; }
.cta-sec__text h2 { margin-bottom: 12px; }
.cta-sec__text p  { color: var(--muted); margin-bottom: 28px; }

.cta-sec__img-wrap {
  border-radius: var(--r-card) var(--r-card) 0 0;
  overflow: hidden;
  max-height: 560px;
}
.cta-sec__img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ============================================================
   14. FAQ
   ============================================================ */
.faq { padding-block: var(--section-v); background: var(--white); }
.faq__inner {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 64px;
  align-items: start;
}
.faq__left h2    { margin-bottom: 12px; }
.faq__desc       { color: var(--muted); font-size: 1rem; margin-bottom: 0; }
.faq__more       { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.faq__more strong { font-size: 1.2rem; }
.faq__more p     { color: var(--muted); font-size: .92rem; }

.faq__list { display: flex; flex-direction: column; gap: 10px; }

.faq__item { }
.faq__q {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  text-align: left;
  background: var(--cream);
  border: none;
  border-radius: var(--r-card);
  padding: 20px 24px;
  font-family: 'Figtree', sans-serif;
  font-size: .95rem;
  font-weight: 600;
  color: var(--body);
  cursor: pointer;
  transition: background var(--tr);
}
.faq__q:hover { background: var(--cream2); }
.faq__plus {
  font-size: 1.4rem;
  font-weight: 300;
  color: var(--tan);
  flex-shrink: 0;
  transition: transform var(--tr);
  line-height: 1;
}
.faq__q[aria-expanded="true"] .faq__plus { transform: rotate(45deg); }

.faq__a {
  background: var(--cream);
  border-radius: 0 0 var(--r-card) var(--r-card);
  padding: 0 24px 20px;
  margin-top: -10px;
}
.faq__a p { font-size: .9rem; color: var(--muted); }

/* ============================================================
   15. ABOUT — BENTO GRID
   ============================================================ */
.about { padding-block: var(--section-v); }
.about__header {
  text-align: center;
  margin-bottom: 48px;
}
.about__header .label { justify-content: center; }
.about__header h2 { margin-bottom: 12px; }
.about__sub { color: var(--muted); max-width: 520px; margin-inline: auto; }

.bento {
  display: grid;
  grid-template-columns: 1fr 1.15fr 1fr;
  grid-template-rows: repeat(2, 1fr);
  gap: 14px;
  height: clamp(480px, 44vw, 580px);
}

.bento__cell {
  border-radius: var(--r-card);
  overflow: hidden;
  position: relative;
}

/* text cells */
.bento__cell--text-warm {
  background: var(--cream2);
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.bento__cell--text-warm p      { font-size: .88rem; color: var(--muted); }
.bento__cell--text-warm strong { font-size: 1rem; font-family: 'Poppins', sans-serif; color: var(--body); }
.bento__cell--text-gray {
  background: #eceef4;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.bento__cell--text-gray p      { font-size: 1rem; color: var(--muted); }
.bento__cell--text-gray strong { font-size: 1.2rem; font-family: 'Poppins', sans-serif; color: var(--body); }

/* image cells */
.bento__cell--img img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.bento__cell--tall { grid-row: span 2; }

/* tall center cell: blue gradient overlays top & bottom */
.bento__cell--tall::before {
  content: '';
  position: absolute;
  height: 203px;
  top: 0; left: 0; right: 0;
  z-index: 1;
  background: linear-gradient(#0e6fb9 -20%, #0000 50%);
  pointer-events: none;
}
.bento__cell--tall::after {
  content: '';
  position: absolute;
  height: 203px;
  bottom: 0; left: 0; right: 0;
  z-index: 1;
  background: linear-gradient(#0000 0%, #002d61 100%);
  pointer-events: none;
}

/* dark image cell — no overlay, photo is dark enough */

/* captions */
.bento__caption {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: transparent;
  padding: 24px;
  color: var(--white);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.bento__caption strong { font-size: 1.2em; font-family: 'Poppins', sans-serif; }
.bento__caption p      { font-size: 1rem; color: rgba(255,255,255,.8); }

.bento__caption--overlay {
  top: 0;
  z-index: 2;
  background: transparent;
  padding: 24px;
}
.bento__caption--overlay strong { color: var(--white); }


/* ============================================================
   17. RWD — TABLET  ≤ 1024px
   ============================================================ */
@media (max-width: 1024px) {
  :root { --section-v: 64px 48px; }
  .cta-sec { padding-block-start: 64px; }
  .features__grid { grid-template-columns: repeat(2, 1fr); }
  .bento { grid-template-columns: 1fr 1fr; grid-template-rows: auto; height: auto; min-height: 480px; }
  .bento__cell--tall { grid-row: span 1; }

  /* Splits — stack: image full width on top, text below */
  .split__inner         { grid-template-columns: 1fr; gap: 32px; }
  .split--reverse .split__inner { grid-template-columns: 1fr; }
  .split__img           { width: 100%; }
  .split__img img       { max-height: 360px; width: 100%; object-fit: cover; }
  .split--reverse .split__img { order: -1; }
}

/* ============================================================
   18. RWD — MOBILE  ≤ 768px
   ============================================================ */
@media (max-width: 768px) {
  .container { padding-inline: 20px; }

  /* Nav */
  .nav__links, .btn--nav { display: none; }
  .nav__burger { display: flex; }
  .nav__links.is-open {
    display: flex;
    flex-direction: column;
    gap: 0;
    position: absolute;
    top: 66px; left: 0; right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    padding: 8px 0;
    z-index: 199;
  }
  .nav__links.is-open a {
    padding: 14px 24px;
    border-bottom: 1px solid var(--border);
    font-size: .95rem;
  }

  /* Hero */
  .hero__content p br { display: none; }

  /* Product intro */
  .product-intro__inner { grid-template-columns: 1fr; gap: 32px; }

  /* Features */
  .features__grid { grid-template-columns: 1fr 1fr; gap: 32px; }

  /* Pillars */
  .pillars-card__wrap { min-height: auto; flex-direction: column; }
  .pillars-card__panel { width: calc(100% - 48px); margin: 24px; padding: 28px 24px; }

  /* Functions */
  .functions-card__cards { grid-template-columns: 1fr; }
  .functions-card__top   { padding: 32px 24px 0; }

  /* Colors */
  .colors__inner { grid-template-columns: 1fr; }
  :root { --color-s: 160px; --color-gap: 32px; }


  /* FAQ */
  .faq__inner { grid-template-columns: 1fr; gap: 40px; }

  /* Bento */
  .bento { grid-template-columns: 1fr; min-height: auto; }
  .bento__cell { min-height: 240px; }
  .bento__cell--tall { min-height: 300px; }
}

/* ============================================================
   19. RWD — SMALL  ≤ 480px
   ============================================================ */
@media (max-width: 480px) {
  :root { --section-v: 48px 24px; }
  .cta-sec { padding-block-start: 48px; }
  h1 { font-size: 2rem; }
  h2 { font-size: 1.5rem; }
  .hero__cta  { flex-direction: column; align-items: center; }
  .features__grid { grid-template-columns: 1fr; }
  .functions-card__wrap { min-height: auto; }
}

/* ============================================================
   SCROLL REVEAL
   ============================================================ */
[data-reveal] {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity .75s cubic-bezier(.25,.8,.25,1),
              transform .75s cubic-bezier(.25,.8,.25,1);
  transition-delay: var(--reveal-delay, 0s);
}
[data-reveal="scale"] {
  opacity: 1;
  transform: scale(.8) translateY(40px);
}
[data-reveal].is-visible {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  [data-reveal] { transition: none; }
}
