/* ============================================================
   chrome.css — wspólny "chrome" podstron RecepcjaAI24
   Baza body + nawigacja (topbar + mobilny hamburger) + stopka (.ft)
   + silnik scroll-reveal (CSS). Wszystko na tokenach design-system.
   WYMAGA design-system.css — linkuj PO nim:
     <link rel="stylesheet" href="design-system.css">
     <link rel="stylesheet" href="chrome.css">
   Mechanika JS (hamburger + reveal) = chrome.js (przed </body>).
   Zgodny 1:1 ze stroną główną (index.html). Statyczny hosting, zero libów.
   ============================================================ */

/* --- BAZA / RESET ------------------------------------------- */
* { margin: 0; padding: 0; }
html, body { max-width: 100%; }
body {
  font-family: var(--font-body);
  background: #000; /* match strony głównej (home = #000, nie --bg #06070a) */
  color: var(--text);
  line-height: var(--leading-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  position: relative;
  overflow-x: clip; /* clip, NIE hidden — nie psuje position:sticky */
}
a { text-decoration: none; color: inherit; }
ul, ol { list-style: none; }

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

/* --- TOPBAR + NAWIGACJA ------------------------------------- */
.topbar {
  padding: 18px 0;
  border-bottom: 1px solid var(--hairline);
  background: rgba(0, 0, 0, .7);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  position: sticky; top: 0; z-index: 100;
}
.nav { display: flex; justify-content: space-between; align-items: center; }
.brand { display: flex; align-items: center; gap: 12px; font-size: 1.25rem; font-weight: 700; letter-spacing: -.5px; color: var(--text); }
.brand-icon {
  width: 36px; height: 36px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--brand) 0%, #0042a3 100%);
  color: #fff; font-size: 1.2rem;
  box-shadow: 0 4px 15px var(--brand-glow);
}
.text-blue { color: var(--brand); }

.menu { display: flex; gap: 8px; }
.menu a { padding: 8px 16px; border-radius: var(--r-pill); font-size: .95rem; font-weight: 500; color: var(--text-muted); transition: color .25s var(--ease-out), background .25s var(--ease-out); }
.menu a:hover { color: var(--text); }
.menu a.active { background: var(--surface-hover); color: var(--text); }

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

/* --- PRZYCISKI ---------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 28px; border-radius: var(--r-pill);
  font-weight: 600; font-size: 1rem; cursor: pointer; border: 1px solid transparent;
  transition: transform .25s var(--ease-out), box-shadow .25s var(--ease-out), background .25s var(--ease-out), border-color .25s var(--ease-out);
}
.btn.primary { background: linear-gradient(to bottom right, var(--brand), var(--brand-deep)); color: #fff; box-shadow: 0 0 20px rgba(0, 122, 255, .2); }
.btn.primary:hover { transform: translateY(-2px); box-shadow: 0 8px 30px rgba(0, 122, 255, .4); }
.btn.ghost { background: var(--surface); border-color: var(--hairline); color: var(--text); backdrop-filter: blur(8px); }
.btn.ghost:hover { background: var(--surface-hover); border-color: var(--hairline-strong); transform: translateY(-2px); }
.btn i.ph-arrow-right { transition: transform .3s var(--ease-out); }
.btn:hover i.ph-arrow-right { transform: translateX(4px); }
.topbar .btn { padding: 10px 20px; font-size: .9rem; }

/* --- MOBILNY HAMBURGER (≤860px) ----------------------------- */
.nav-burger { display: none; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 12px; background: var(--surface); border: 1px solid var(--hairline); color: var(--text); font-size: 1.5rem; cursor: pointer; transition: background .2s var(--ease-out), border-color .2s var(--ease-out); }
.nav-burger:hover { background: var(--surface-hover); border-color: var(--hairline-strong); }
.nav-mobile { display: none; }
@media (max-width: 860px) {
  .topbar .menu { display: none; }
  .topbar .navRight .btn { display: none; }
  .nav-burger { display: inline-flex; }
  .nav-mobile {
    display: block; position: absolute; left: 0; right: 0; top: 100%;
    background: rgba(6, 7, 10, .97); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
    border-top: 1px solid var(--hairline); border-bottom: 1px solid var(--hairline);
    padding: var(--s-2) var(--gutter) var(--s-3);
    transform: translateY(-10px); opacity: 0; pointer-events: none;
    transition: opacity .25s var(--ease-out), transform .25s var(--ease-out);
  }
  .nav-mobile.open { opacity: 1; transform: none; pointer-events: auto; }
  .nav-mobile a { display: block; padding: 14px 6px; color: var(--text-muted); font-size: 1.1rem; font-weight: 500; border-bottom: 1px solid var(--hairline); }
  .nav-mobile a.active { color: var(--brand-bright); }
  .nav-mobile a:hover { color: var(--text); }
  .nav-mobile .nav-mobile-cta { margin-top: 12px; text-align: center; background: linear-gradient(180deg, var(--brand), var(--brand-deep)); color: #fff; border-radius: var(--r-pill); border-bottom: none; font-weight: 600; }
}
@media (prefers-reduced-motion: reduce) { .nav-mobile { transition: none; } }

/* --- SCROLL-REVEAL (CSS; logika w chrome.js) ---------------- */
[data-reveal] { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease-out), transform .7s var(--ease-out); }
[data-reveal].is-in { opacity: 1; transform: none; }
[data-reveal-fade] { opacity: 0; transition: opacity .7s var(--ease-out); }
[data-reveal-fade].is-in { opacity: 1; }
@media (prefers-reduced-motion: reduce) {
  [data-reveal], [data-reveal-fade] { opacity: 1 !important; transform: none !important; transition: none !important; }
}

/* --- STOPKA (.ft) ------------------------------------------- */
.ft { position: relative; border-top: 1px solid var(--hairline); background: linear-gradient(180deg, transparent, rgba(0, 122, 255, .035)); padding: var(--s-12) 0 var(--s-6); }
.ft-top { display: grid; grid-template-columns: 1.3fr 2fr; gap: var(--s-8); padding-bottom: var(--s-7); border-bottom: 1px solid var(--hairline); }
.ft-logo { display: inline-flex; align-items: center; gap: 12px; margin-bottom: var(--s-3); }
.ft-logo img { height: 42px; width: auto; display: block; }
.ft-logo .wm { font-family: var(--font-display); font-weight: 700; font-size: 1.3rem; letter-spacing: -.02em; color: var(--text); }
.ft-logo .wm b { color: var(--brand); font-weight: 700; }
.ft-tagline { font-size: var(--text-sm); color: var(--text-muted); line-height: 1.6; max-width: 44ch; margin: 0 0 var(--s-3); }
.ft-trust { display: inline-flex; align-items: center; gap: 8px; font-size: var(--text-xs); color: var(--text-muted); padding: 7px 13px; border: 1px solid var(--hairline); border-radius: var(--r-pill); background: var(--surface); }
.ft-trust i { color: var(--brand); font-size: 1rem; }
.ft-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-5); }
.ft-col h4 { font-size: var(--text-xs); text-transform: uppercase; letter-spacing: .1em; color: var(--text-faint); margin: 0 0 var(--s-3); font-weight: 600; }
.ft-col a { display: flex; align-items: center; gap: 8px; color: var(--text-muted); font-size: var(--text-sm); margin-bottom: 12px; transition: color .25s var(--ease-out); width: fit-content; }
.ft-col a:hover { color: var(--brand-bright); }
.ft-col a i { color: var(--brand); font-size: 1.05rem; }
.ft-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: var(--s-5); font-size: var(--text-xs); color: var(--text-faint); flex-wrap: wrap; gap: var(--s-2); }
@media (max-width: 860px) {
  .ft-top { grid-template-columns: 1fr; gap: var(--s-6); }
  .ft-cols { grid-template-columns: 1fr 1fr; }
  .ft-bottom { flex-direction: column; align-items: flex-start; }
}
