/* INNEMC.PL - wspólny styl strony i sklepu */
:root {
  --orange: #FF7A1A;
  --orange-2: #FF9A3C;
  --orange-deep: #E8590C;
  --orange-soft: #FFF3E8;
  --orange-line: #FFE1C7;
  --discord: #5865F2;
  --text: #111014;
  --muted: #8A8790;
  --line: #EEEDF0;
  --bg: #FFFFFF;
  --bg-2: #FAF9FB;
  --radius: 20px;
  --head: "Unbounded", system-ui, sans-serif;
  --body: "Rubik", system-ui, sans-serif;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { font-family: var(--body); color: var(--text); background: var(--bg); overflow-x: hidden; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font: inherit; }
.wrap { width: min(1200px, 100% - 32px); margin-inline: auto; }

/* ---------- tło: pływające logo ---------- */
.float-logos { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.float-logos img { position: absolute; width: 170px; opacity: .1; filter: blur(3px); animation: drift 16s ease-in-out infinite; }
@keyframes drift { 50% { transform: translateY(-28px) rotate(var(--r2, 6deg)); } }
@media (prefers-reduced-motion: reduce) { .float-logos img, .skin-render { animation: none !important; } }
header, main, footer { position: relative; z-index: 1; }

/* ---------- menu ---------- */
header { position: sticky; top: 0; z-index: 20; background: rgba(255,255,255,.78); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.nav { height: 82px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; }
.nav-links { display: flex; gap: 30px; font: 500 14px var(--head); color: var(--muted); }
.nav-links a { transition: color .2s; }
.nav-links a:hover, .nav-links a.active { color: var(--text); }
.brand img { height: 56px; width: auto; transition: transform .2s; }
.brand:hover img { transform: scale(1.05) rotate(-3deg); }
.nav-right { display: flex; justify-content: flex-end; align-items: center; gap: 10px; }
.online { display: inline-flex; align-items: center; gap: 10px; font: 600 13px var(--head); padding: 11px 16px; border-radius: 999px; background: var(--bg-2); border: 1px solid var(--line); white-space: nowrap; }
.dot { width: 9px; height: 9px; border-radius: 50%; background: #B9B7BE; }
.dot.on { background: #22C55E; box-shadow: 0 0 0 4px rgba(34,197,94,.18); animation: pulse 2s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 8px rgba(34,197,94,.06); } }
.burger { display: none; width: 44px; height: 44px; border: 0; background: none; cursor: pointer; }
.burger span { display: block; height: 2px; margin: 7px 9px; background: var(--text); border-radius: 2px; }

/* ---------- przyciski ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 16px 26px; border: 0; border-radius: 16px; cursor: pointer; font: 600 15px var(--head); color: #fff; transition: transform .15s, box-shadow .2s, filter .2s, background .2s; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(.98); }
.btn svg { width: 19px; height: 19px; flex: none; }
.btn-orange { background: var(--orange); }
.btn-orange:hover { background: var(--orange-deep); }
.btn-discord { background: var(--discord); }
.btn-discord:hover { background: #4752C4; }
.btn-dark { background: var(--text); }
.btn-ghost { background: var(--bg-2); color: var(--text); border: 1px solid var(--line); }
.btn[disabled] { opacity: .6; cursor: wait; transform: none; }

/* ---------- nagłówki sekcji ---------- */
section { padding: 90px 0; }
.kicker { display: inline-block; font: 600 12px var(--head); letter-spacing: 1.5px; text-transform: uppercase; color: var(--orange); }
h2.title { font: 800 clamp(28px, 4vw, 44px)/1.1 var(--head); letter-spacing: -1px; margin: 12px 0 14px; }
.lead { color: var(--muted); font-size: 18px; line-height: 1.55; max-width: 560px; }
.center { text-align: center; }
.center .lead { margin-inline: auto; }

/* ---------- powiadomienie ---------- */
.toast { position: fixed; left: 50%; bottom: 28px; z-index: 90; transform: translate(-50%, 30px); opacity: 0; visibility: hidden; pointer-events: none; background: var(--text); color: #fff; padding: 15px 22px; border-radius: 16px; font: 600 14px var(--head); display: flex; align-items: center; gap: 10px; white-space: nowrap; transition: transform .35s cubic-bezier(.2,.9,.3,1.3), opacity .25s, visibility .25s; }
.toast.show { transform: translate(-50%, 0); opacity: 1; visibility: visible; }
.toast i { width: 9px; height: 9px; border-radius: 50%; background: var(--orange); }

/* ---------- stopka ---------- */
footer { position: relative; overflow: hidden; margin-top: 60px; border-top: 1px solid var(--line); background: var(--bg-2); padding: 64px 0 0; }
.foot { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 34px; }
.foot-brand img { height: 70px; width: auto; margin-bottom: 16px; }
.foot-brand p { max-width: 320px; }
.foot p { color: var(--muted); line-height: 1.7; font-size: 15px; }
.foot p b { color: var(--text); }
.foot a { display: block; color: var(--muted); font-size: 15px; padding: 4px 0; transition: color .2s; }
.foot a:hover { color: var(--orange); }
.foot h4 { font: 700 12px var(--head); letter-spacing: 1.5px; text-transform: uppercase; margin-bottom: 12px; }
.ip-chip { display: inline-flex; align-items: center; gap: 10px; padding: 10px 10px 10px 14px; border-radius: 12px; border: 1px solid var(--line); background: #fff; font: 600 14px var(--head); color: var(--text); cursor: pointer; transition: border-color .2s; }
.ip-chip span { font: 600 11px var(--head); padding: 5px 8px; border-radius: 8px; background: var(--orange-soft); color: var(--orange-deep); }
.ip-chip:hover { border-color: var(--orange); }
.foot .ver { font-size: 13px; margin-top: 10px; }
.copy { margin-top: 44px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
.foot-big {
  margin-top: 30px; text-align: center; white-space: nowrap; user-select: none; pointer-events: none;
  font: 900 clamp(48px, 13.5vw, 220px)/.78 var(--head); letter-spacing: -.05em;
  background: linear-gradient(180deg, rgba(255,122,26,.42) 0%, rgba(255,122,26,.12) 55%, rgba(255,122,26,0) 92%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: blur(2.5px); transform: translateY(14%);
}

/* ---------- telefon ---------- */
@media (max-width: 900px) {
  .nav { grid-template-columns: auto 1fr auto; height: 72px; }
  .brand { order: -1; }
  .brand img { height: 46px; }
  .nav-links { position: absolute; top: 72px; left: 0; right: 0; flex-direction: column; gap: 0; background: #fff; border-bottom: 1px solid var(--line); display: none; }
  .nav-links a { padding: 18px 20px; border-top: 1px solid var(--line); color: var(--text); }
  .nav-links.open { display: flex; }
  .burger { display: block; }
  .online .label { display: none; }
  .foot { grid-template-columns: 1fr 1fr; }
  .foot-brand { grid-column: 1/-1; }
  section { padding: 64px 0; }
}

/* cel miesiąca + ostatnie zakupy */
.info-row { display: grid; grid-template-columns: 1fr 1fr 1.4fr; gap: 18px; margin-top: 30px; }
.top { list-style: none; display: grid; gap: 10px; }
.top li { display: flex; align-items: center; gap: 12px; padding: 8px 10px; border-radius: 14px; background: var(--bg-2); }
.top .place { width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; font: 800 12px var(--head); color: #fff; background: #B9B7BE; flex: none; }
.top li:nth-child(1) .place { background: #F5B301; }
.top li:nth-child(2) .place { background: #A3A9B5; }
.top li:nth-child(3) .place { background: #C97B3C; }
.top img { width: 30px; height: 30px; border-radius: 8px; flex: none; }
.top b { font: 600 13px var(--head); flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.top span { font: 700 13px var(--head); color: var(--orange-deep); white-space: nowrap; }
.top .first { background: none; padding: 0; color: var(--muted); font-size: 14px; }
@media (max-width: 1000px) { .info-row { grid-template-columns: 1fr 1fr; } .info-row .panel:last-child { grid-column: 1/-1; } }
.panel { background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 22px 24px; }
.panel h4 { font: 700 14px var(--head); margin-bottom: 14px; display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.panel h4 small { font: 500 13px var(--body); color: var(--muted); }
.bar { height: 14px; border-radius: 99px; background: var(--bg-2); border: 1px solid var(--line); overflow: hidden; }
.bar i { display: block; height: 100%; width: 0; background: var(--orange); border-radius: 99px; transition: width 1s ease; }
.goal-nums { display: flex; justify-content: space-between; margin-top: 10px; font-size: 14px; color: var(--muted); }
.goal-nums b { color: var(--text); font: 700 15px var(--head); }
.goal-text { margin-top: 12px; font-size: 14px; color: var(--muted); line-height: 1.5; }
.recent { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px 16px; }
.recent li { list-style: none; display: flex; align-items: center; gap: 10px; min-width: 0; }
.recent img { width: 34px; height: 34px; border-radius: 9px; background: var(--bg-2); flex: none; }
.recent .who { min-width: 0; }
.recent b { display: block; font: 600 13px var(--head); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.recent span { font-size: 13px; color: var(--muted); }
.recent .first { grid-column: 1/-1; color: var(--muted); font-size: 14px; }
@media (max-width: 800px) { .info-row { grid-template-columns: 1fr; } .recent { grid-template-columns: 1fr; } }


/* ---------- animacje przy przewijaniu ---------- */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1); transition-delay: var(--d, 0s); }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js .reveal { opacity: 1; transform: none; transition: none; } }

/* ---------- przejścia między podstronami ---------- */
/* Przeglądarki z obsługą View Transitions (Chrome, Edge, Safari): płynne przejście bez białego mrugnięcia. */
@view-transition { navigation: auto; }
header { view-transition-name: site-header; }            /* menu stoi w miejscu */
.float-logos { view-transition-name: bg-logos; }          /* tło też się nie przeskakuje */
::view-transition-group(site-header),
::view-transition-group(bg-logos) { animation: none; }
::view-transition-old(root) { animation: page-out .2s ease both; }
::view-transition-new(root) { animation: page-in .35s cubic-bezier(.2,.7,.2,1) both; }
@keyframes page-out { to { opacity: 0; transform: translateY(-10px); } }
@keyframes page-in { from { opacity: 0; transform: translateY(14px); } }

/* Pozostałe przeglądarki: delikatne pojawienie się treści zamiast skoku */
@supports not (view-transition-name: x) {
  main { animation: page-in .35s cubic-bezier(.2,.7,.2,1) both; }
}
@media (prefers-reduced-motion: reduce) {
  ::view-transition-old(root), ::view-transition-new(root) { animation: none; }
  main { animation: none !important; }
}
