/* ==========================================================
   SQL Report Scheduler — strona produktu
   Paleta zgodna z marką Foxbyte (ember #FF6D2C na ciemnym tle).
   ========================================================== */

:root {
  color-scheme: dark;

  --bg: #0f1115;
  --bg-alt: #14171d;
  --surface: #191d24;
  --border: #262c35;
  --border-hover: #3a424f;
  --text: #e9edf3;
  --text-dim: #a7b1c0;
  --text-mute: #798393;

  /* --ember to kolor marki (tła przycisków, kropki), --ember-text wersja czytelna jako tekst */
  --ember: #ff6d2c;
  --ember-hover: #ff824a;
  --ember-text: #ff6d2c;
  --ember-soft: rgba(255, 109, 44, 0.12);
  --btn-ink: #1a1005;
  --code-text: #ffb98d;

  --nav-bg: rgba(15, 17, 21, 0.88);
  --glow-ember: rgba(255, 109, 44, 0.14);
  --glow-blue: rgba(59, 98, 246, 0.10);
  --shadow-lg: 0 30px 70px rgba(0, 0, 0, .55);
  --shadow-md: 0 18px 44px rgba(0, 0, 0, .45);

  --radius: 14px;
  --wrap: 1140px;
}

/* Motyw jasny: domyślnie zgodny z ustawieniem systemu, nadpisywany przełącznikiem
   (data-theme na <html>). Kolejność bloków ma znaczenie – wybór użytkownika jest ostatni. */
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    color-scheme: light;

    --bg: #ffffff;
    --bg-alt: #f4f6f9;
    --surface: #ffffff;
    --border: #e3e7ee;
    --border-hover: #c6cedb;
    --text: #12151a;
    --text-dim: #4d5765;
    --text-mute: #6f7885;

    --ember-text: #c2490b;
    --ember-soft: rgba(255, 109, 44, 0.13);
    --code-text: #b8440a;

    --nav-bg: rgba(255, 255, 255, 0.86);
    --glow-ember: rgba(255, 109, 44, 0.13);
    --glow-blue: rgba(59, 98, 246, 0.09);
    --shadow-lg: 0 24px 60px rgba(15, 23, 42, .14);
    --shadow-md: 0 14px 36px rgba(15, 23, 42, .10);
  }
}

:root[data-theme="light"] {
  color-scheme: light;

  --bg: #ffffff;
  --bg-alt: #f4f6f9;
  --surface: #ffffff;
  --border: #e3e7ee;
  --border-hover: #c6cedb;
  --text: #12151a;
  --text-dim: #4d5765;
  --text-mute: #6f7885;

  --ember-text: #c2490b;
  --ember-soft: rgba(255, 109, 44, 0.13);
  --code-text: #b8440a;

  --nav-bg: rgba(255, 255, 255, 0.86);
  --glow-ember: rgba(255, 109, 44, 0.13);
  --glow-blue: rgba(59, 98, 246, 0.09);
  --shadow-lg: 0 24px 60px rgba(15, 23, 42, .14);
  --shadow-md: 0 14px 36px rgba(15, 23, 42, .10);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.65 "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; }

code {
  font-family: "Cascadia Mono", Consolas, monospace;
  font-size: 0.9em;
  background: var(--ember-soft);
  color: var(--code-text);
  padding: 1px 6px;
  border-radius: 5px;
}

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

/* ---------- Nawigacja ---------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--nav-bg);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  gap: 28px;
  height: 68px;
}

.brand { margin-right: auto; display: flex; align-items: center; }

.nav-links {
  display: flex;
  gap: 26px;
  font-size: 14.5px;
}

.nav-links a {
  color: var(--text-dim);
  text-decoration: none;
  transition: color .15s;
}

.nav-links a:hover { color: var(--text); }

/* ---------- Przełącznik motywu ---------- */

.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
  color: var(--text-dim);
  cursor: pointer;
  transition: color .15s, border-color .15s, background .15s;
}

.theme-toggle:hover {
  color: var(--text);
  border-color: var(--border-hover);
}

.theme-toggle svg { width: 18px; height: 18px; display: block; }

/* W ciemnym motywie oferujemy przejście na jasny (słońce) i odwrotnie. */
.theme-toggle .icon-sun { display: block; }
.theme-toggle .icon-moon { display: none; }

@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) .theme-toggle .icon-sun { display: none; }
  :root:not([data-theme="dark"]) .theme-toggle .icon-moon { display: block; }
}

:root[data-theme="light"] .theme-toggle .icon-sun { display: none; }
:root[data-theme="light"] .theme-toggle .icon-moon { display: block; }

:root[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
:root[data-theme="dark"] .theme-toggle .icon-moon { display: none; }

/* ---------- Przyciski ---------- */

.btn {
  display: inline-block;
  padding: 13px 26px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  transition: transform .12s, box-shadow .15s, background .15s;
}

.btn-primary {
  background: var(--ember);
  color: var(--btn-ink);
  box-shadow: 0 6px 22px rgba(255, 109, 44, 0.22);
}

.btn-primary:hover {
  background: var(--ember-hover);
  transform: translateY(-1px);
  box-shadow: 0 10px 28px rgba(255, 109, 44, 0.3);
}

.btn-sm { padding: 9px 18px; font-size: 14px; }
.btn-lg { padding: 16px 34px; font-size: 16.5px; }

/* ---------- Hero ---------- */

.hero {
  padding: 84px 0 72px;
  background:
    radial-gradient(900px 380px at 12% -6%, var(--glow-ember), transparent 62%),
    radial-gradient(760px 340px at 88% 8%, var(--glow-blue), transparent 60%);
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr);
  gap: 56px;
  align-items: center;
}

.eyebrow {
  margin: 0 0 14px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--ember-text);
}

h1 {
  margin: 0 0 20px;
  font-size: clamp(34px, 4.6vw, 52px);
  line-height: 1.12;
  letter-spacing: -0.02em;
  font-weight: 700;
}

.lead {
  margin: 0 0 30px;
  font-size: 17px;
  color: var(--text-dim);
  max-width: 54ch;
}

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

.cta {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  margin-bottom: 26px;
}

.cta-meta { font-size: 13.5px; color: var(--text-mute); }

.hero-points {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 9px;
  font-size: 14.5px;
  color: var(--text-dim);
}

.hero-points li { padding-left: 26px; position: relative; }

.hero-points li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 9px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ember);
}

.hero-shot img {
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
}

/* ---------- Sekcje ---------- */

.section { padding: 84px 0; }

.section-alt {
  background: var(--bg-alt);
  border-block: 1px solid var(--border);
}

h2 {
  margin: 0 0 14px;
  font-size: clamp(26px, 3vw, 34px);
  letter-spacing: -0.015em;
}

.section-lead {
  margin: 0 0 40px;
  color: var(--text-dim);
  max-width: 62ch;
}

.section h2 + .steps,
.section h2 + .grid,
.section h2 + .shots,
.section h2 + .faq { margin-top: 40px; }

/* ---------- Kroki ---------- */

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 22px;
}

.step {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
}

.step-no {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--ember-soft);
  color: var(--ember-text);
  font-weight: 700;
  margin-bottom: 14px;
}

.step h3, .card h3 { margin: 0 0 8px; font-size: 18px; }

.step p, .card p { margin: 0; color: var(--text-dim); font-size: 14.5px; }

/* ---------- Karty funkcji ---------- */

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 22px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  transition: border-color .15s, transform .15s;
}

.card:hover { border-color: var(--border-hover); transform: translateY(-2px); }

/* ---------- Zrzuty ---------- */

.shots {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 26px;
}

/* Zrzuty maja rozne proporcje (okno glowne 1200x780, edytory 900x780), wiec bez tego
   podpisy w jednym rzedzie wisialyby na roznych wysokosciach. */
.shots figure {
  margin: 0;
  display: grid;
  grid-template-rows: 1fr auto;
}

.shots img { align-self: start; }

.shots img {
  border-radius: 12px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
}

.shots figcaption {
  margin-top: 12px;
  font-size: 13.5px;
  color: var(--text-mute);
}

/* ---------- FAQ ---------- */

.faq {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 22px 40px;
}

.faq-item h3 {
  margin: 0 0 8px;
  font-size: 17px;
  line-height: 1.35;
}

.faq-item p {
  margin: 0;
  color: var(--text-dim);
  font-size: 14.5px;
}

/* ---------- Powiększanie zrzutów ---------- */

.zoomable { cursor: zoom-in; }

/* Atrybut hidden musi wygrac z display: flex ponizej. Chrome ma w arkuszu przegladarki
   [hidden] { display: none !important }, ale Firefox i Safari juz nie - bez tej reguly
   overlay bylby tam widoczny od razu po wejsciu na strone i nie dalby sie zamknac. */
.lightbox[hidden] { display: none; }

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 28px;
  background: rgba(8, 10, 14, .82);
  backdrop-filter: blur(6px);
}

.lightbox img {
  max-width: min(1400px, 94vw);
  max-height: 82vh;
  width: auto;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, .14);
  box-shadow: 0 30px 80px rgba(0, 0, 0, .6);
}

.lightbox figcaption {
  color: #e9edf3;
  font-size: 14px;
  text-align: center;
  max-width: 70ch;
}

.lightbox-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 10px;
  background: rgba(255, 255, 255, .08);
  color: #e9edf3;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}

.lightbox-close:hover { background: rgba(255, 255, 255, .16); }

/* Blokada przewijania tla, gdy podglad jest otwarty. */
body.lightbox-open { overflow: hidden; }

/* ---------- Kolumny ---------- */

.cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 48px;
}

.list {
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 12px;
  color: var(--text-dim);
  font-size: 15px;
}

.list li { padding-left: 26px; position: relative; }

.list li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 8px;
  width: 12px;
  height: 7px;
  border-left: 2px solid var(--ember-text);
  border-bottom: 2px solid var(--ember-text);
  transform: rotate(-45deg);
}

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

/* ---------- Zamknięcie ---------- */

.closing { text-align: center; }

.closing .section-lead { margin-inline: auto; }

.fineprint { margin-top: 16px; font-size: 13.5px; color: var(--text-mute); }

/* ---------- Stopka ---------- */

.footer {
  border-top: 1px solid var(--border);
  padding: 44px 0;
  background: var(--bg-alt);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 30px;
  flex-wrap: wrap;
}

.footer-legal {
  margin: 16px 0 0;
  font-size: 13.5px;
  color: var(--text-mute);
  line-height: 1.75;
}

.footer-copy { margin: 0; font-size: 13.5px; color: var(--text-mute); }

/* ---------- Węższe ekrany ---------- */

@media (max-width: 900px) {
  .hero { padding: 56px 0 48px; }
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .nav-links { display: none; }
  .nav-inner { gap: 14px; }
  .section { padding: 60px 0; }
  .shots { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .card { transition: none; }
}
