/* ============================================================
   SAROFE — style.css
   Zmienne (kolory, czcionki, odstępy) znajdują się w :root.
   ============================================================ */

:root {
  /* Kolory */
  --bg: #0b0d10;
  --bg-alt: #0f1216;
  --surface: #13171c;
  --surface-hover: #181d23;
  --border: rgba(255, 255, 255, 0.07);
  --border-strong: rgba(255, 255, 255, 0.14);
  --text: #e8eaed;
  --text-muted: #8b929c;
  --accent: #5ee0c8;            /* główny kolor akcentu */
  --accent-text: #06110f;       /* tekst na tle akcentu */
  --glow: rgba(94, 224, 200, 0.18);

  /* Typografia */
  --font: "Space Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* Odstępy i zaokrąglenia */
  --container: 1140px;
  --radius: 14px;
  --radius-sm: 10px;
  --section-y: 112px;
  --transition: 220ms ease;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 88px; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.container--narrow { max-width: 760px; }

/* ---------- Typografia pomocnicza ---------- */
.eyebrow {
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}

.section { padding: var(--section-y) 0; }
.section--alt { background: var(--bg-alt); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

.section__head { max-width: 620px; margin-bottom: 56px; }
.section__title { font-size: clamp(28px, 3.4vw, 40px); font-weight: 600; letter-spacing: -0.02em; line-height: 1.15; }
.section__desc { color: var(--text-muted); margin-top: 14px; font-size: 17px; }

/* ---------- Przyciski ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 500; font-size: 15px;
  border: 1px solid transparent;
  transition: background var(--transition), border-color var(--transition), box-shadow var(--transition), transform var(--transition);
  white-space: nowrap;
}
.btn--sm { padding: 10px 18px; font-size: 14px; }

.btn--primary {
  background: var(--accent); color: var(--accent-text);
  box-shadow: 0 0 0 0 var(--glow);
}
.btn--primary:hover { box-shadow: 0 0 28px var(--glow); transform: translateY(-1px); }

.btn--ghost { border-color: var(--border-strong); color: var(--text); }
.btn--ghost:hover { border-color: var(--accent); background: rgba(255, 255, 255, 0.03); }

/* ---------- Header ---------- */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: 72px;
  background: rgba(11, 13, 16, 0.72);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--transition);
}
.header.is-scrolled { border-bottom-color: var(--border); }
.header__inner { height: 100%; display: flex; align-items: center; justify-content: space-between; }

.logo { font-size: 22px; font-weight: 700; letter-spacing: -0.03em; }
.logo::after { content: "."; color: var(--accent); }

.nav { display: flex; align-items: center; gap: 32px; }
.nav__link { font-size: 15px; color: var(--text-muted); transition: color var(--transition); }
.nav__link:hover { color: var(--text); }
.nav__cta { margin-left: 8px; }

/* Hamburger (ukryty na desktopie) */
.burger { display: none; width: 40px; height: 40px; flex-direction: column; justify-content: center; gap: 5px; align-items: center; }
.burger span { display: block; width: 22px; height: 2px; background: var(--text); border-radius: 2px; transition: transform var(--transition), opacity var(--transition); }
.burger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.is-open span:nth-child(2) { opacity: 0; }
.burger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 200px 0 140px;
  overflow: hidden;
}
.hero__glow {
  position: absolute; top: -200px; left: 50%; transform: translateX(-50%);
  width: 720px; height: 720px; border-radius: 50%;
  background: radial-gradient(circle, var(--glow) 0%, transparent 62%);
  pointer-events: none;
}
.hero__inner { position: relative; max-width: 780px; }
.hero__title {
  font-size: clamp(38px, 6.2vw, 68px);
  font-weight: 600; letter-spacing: -0.035em; line-height: 1.05;
}
.hero__subtitle { margin-top: 24px; font-size: clamp(17px, 1.6vw, 20px); color: var(--text-muted); max-width: 520px; }
.hero__actions { margin-top: 40px; display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- Produkty ---------- */
.products {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.product {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition), background var(--transition);
}
.product:hover {
  transform: translateY(-4px);
  border-color: var(--border-strong);
  background: var(--surface-hover);
  box-shadow: 0 20px 50px -20px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(94, 224, 200, 0.08);
}

/* Miejsce na screenshot */
.product__media {
  aspect-ratio: 16 / 9;
  display: flex; align-items: center; justify-content: center;
  background:
    linear-gradient(var(--border) 1px, transparent 1px) 0 0 / 24px 24px,
    linear-gradient(90deg, var(--border) 1px, transparent 1px) 0 0 / 24px 24px,
    #0e1115;
  border-bottom: 1px solid var(--border);
}
.product__media img { width: 100%; height: 100%; object-fit: cover; }
.product__media-label { font-size: 12px; color: var(--text-muted); letter-spacing: 0.08em; text-transform: uppercase; }

.product__body { padding: 22px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.product__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.product__name { font-size: 18px; font-weight: 600; letter-spacing: -0.01em; }
.product__price { font-weight: 600; color: var(--accent); }
.product__desc { color: var(--text-muted); font-size: 15px; margin-top: 10px; flex: 1; }
.product__actions { margin-top: 20px; display: flex; gap: 10px; flex-wrap: wrap; }

/* Produkty "Wkrótce" */
.product--soon { opacity: 0.75; }
.product--soon:hover { opacity: 1; }
.badge {
  font-size: 12px; font-weight: 500;
  padding: 4px 10px; border-radius: 999px;
  border: 1px solid var(--border-strong);
  color: var(--text-muted);
  white-space: nowrap;
}

/* ---------- Dlaczego Sarofe ---------- */
.features {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.feature {
  padding: 28px 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.015);
  transition: border-color var(--transition);
}
.feature:hover { border-color: var(--border-strong); }
.feature__num { font-size: 12px; color: var(--accent); letter-spacing: 0.1em; }
.feature__title { font-size: 17px; font-weight: 600; margin-top: 18px; }
.feature__desc { color: var(--text-muted); font-size: 15px; margin-top: 8px; }

/* ---------- Sekcja dedykowana (CTA) ---------- */
.cta {
  position: relative; overflow: hidden;
  text-align: center;
  padding: 72px 32px;
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) + 6px);
  background: var(--surface);
}
.cta__glow {
  position: absolute; bottom: -260px; left: 50%; transform: translateX(-50%);
  width: 600px; height: 500px; border-radius: 50%;
  background: radial-gradient(circle, var(--glow) 0%, transparent 65%);
  pointer-events: none;
}
.cta__title { position: relative; font-size: clamp(26px, 3.2vw, 36px); font-weight: 600; letter-spacing: -0.02em; }
.cta__desc { position: relative; color: var(--text-muted); margin: 14px auto 32px; max-width: 520px; font-size: 17px; }
.cta .btn { position: relative; }

/* ---------- FAQ ---------- */
.faq { display: flex; flex-direction: column; gap: 10px; }
.faq__item {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  transition: border-color var(--transition);
}
.faq__item.is-open { border-color: var(--border-strong); }
.faq__question {
  width: 100%;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 20px 22px;
  text-align: left; font-size: 16px; font-weight: 500;
}
/* Ikona plus → minus */
.faq__icon { position: relative; width: 14px; height: 14px; flex-shrink: 0; }
.faq__icon::before, .faq__icon::after {
  content: ""; position: absolute; left: 50%; top: 50%;
  width: 14px; height: 1.5px; background: var(--accent);
  transform: translate(-50%, -50%);
  transition: transform var(--transition);
}
.faq__icon::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq__item.is-open .faq__icon::after { transform: translate(-50%, -50%) rotate(0deg); }

.faq__answer {
  max-height: 0; overflow: hidden;
  transition: max-height 300ms ease;
}
.faq__answer p { padding: 0 22px 20px; color: var(--text-muted); font-size: 15px; }

/* ---------- Kontakt ---------- */
.contact { text-align: center; }
.contact .section__desc { margin-left: auto; margin-right: auto; }
.contact__email {
  display: inline-block;
  margin-top: 28px;
  font-size: clamp(20px, 2.6vw, 28px);
  font-weight: 500;
  color: var(--accent);
  border-bottom: 1px solid transparent;
  transition: border-color var(--transition), text-shadow var(--transition);
}
.contact__email:hover { border-bottom-color: var(--accent); text-shadow: 0 0 18px var(--glow); }
.contact__actions { margin-top: 32px; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--border); padding: 40px 0; }
.footer__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.footer__brand { display: flex; align-items: center; gap: 20px; }
.footer__copy { color: var(--text-muted); font-size: 14px; }
.footer__nav { display: flex; gap: 24px; flex-wrap: wrap; }
.footer__nav a { font-size: 14px; color: var(--text-muted); transition: color var(--transition); }
.footer__nav a:hover { color: var(--text); }

/* ---------- Animacje wejścia ---------- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 600ms ease, transform 600ms ease;
}
.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ============================================================
   RESPONSYWNOŚĆ
   ============================================================ */
@media (max-width: 960px) {
  .products { grid-template-columns: repeat(2, 1fr); }
  .features { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 720px) {
  :root { --section-y: 80px; }

  .hero { padding: 150px 0 100px; }

  /* Menu mobilne */
  .burger { display: flex; }
  .nav {
    position: fixed; top: 72px; left: 0; right: 0;
    flex-direction: column; align-items: flex-start; gap: 6px;
    padding: 16px 24px 24px;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    transform: translateY(-8px); opacity: 0; pointer-events: none;
    transition: transform var(--transition), opacity var(--transition);
  }
  .nav.is-open { transform: none; opacity: 1; pointer-events: auto; }
  .nav__link { font-size: 17px; padding: 10px 0; width: 100%; }
  .nav__cta { margin: 12px 0 0; }

  .products { grid-template-columns: 1fr; }
  .features { grid-template-columns: 1fr; }
  .cta { padding: 56px 24px; }
  .footer__inner { flex-direction: column; align-items: flex-start; }
}
