/* ICE LIVE - strona serwera (odswiezenie 2026). Ciemny motyw, lodowy blekit, szklane panele. */
:root {
  --bg: #05080f;
  --bg-2: #0a1020;
  --panel: rgba(255, 255, 255, 0.045);
  --panel-2: rgba(255, 255, 255, 0.07);
  --line: rgba(255, 255, 255, 0.09);
  --line-2: rgba(120, 200, 255, 0.28);
  --text: #eef4ff;
  --muted: #9fb0c8;
  --dim: #6b7a92;
  --ice: #36b4ff;
  --ice-2: #7fe0ff;
  --deep: #1e5bff;
  --ok: #34d399;
  --radius: 22px;
  --max: 1200px;
  --display: 'Space Grotesk', 'Inter', system-ui, sans-serif;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
body { background: var(--bg); color: var(--text); font: 400 16px/1.6 'Inter', system-ui, sans-serif; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
img, video { display: block; max-width: 100%; }
::selection { background: rgba(54, 180, 255, .35); }
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 24px; }

/* tlo: zorza + siatka */
.aurora { position: fixed; inset: 0; z-index: -2; pointer-events: none; overflow: hidden; }
.aurora::before, .aurora::after { content: ''; position: absolute; width: 70vmax; height: 70vmax; border-radius: 50%; filter: blur(110px); opacity: .32; animation: drift 26s ease-in-out infinite alternate; }
.aurora::before { background: radial-gradient(circle, #1e7bff, transparent 65%); top: -30vmax; left: -20vmax; }
.aurora::after { background: radial-gradient(circle, #19d3ff, transparent 65%); bottom: -35vmax; right: -25vmax; animation-delay: -13s; }
.grid-bg { position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: .5;
  background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 64px 64px; mask-image: radial-gradient(ellipse at 50% 0%, #000 20%, transparent 75%); }
@keyframes drift { to { transform: translate(8vmax, 6vmax) scale(1.1); } }

/* nawigacja */
.nav { position: fixed; top: 14px; left: 0; right: 0; z-index: 50; }
.nav .bar { display: flex; align-items: center; gap: 18px; height: 64px; padding: 0 10px 0 16px; border-radius: 20px;
  background: rgba(8, 14, 28, .55); backdrop-filter: blur(18px) saturate(1.4); -webkit-backdrop-filter: blur(18px) saturate(1.4);
  border: 1px solid var(--line); box-shadow: 0 10px 40px rgba(0,0,0,.35); transition: background .3s; }
.nav.scrolled .bar { background: rgba(6, 10, 22, .85); }
.brand { display: flex; align-items: center; gap: 10px; font: 700 18px var(--display); letter-spacing: .02em; }
.brand img { height: 38px; width: auto; filter: drop-shadow(0 0 12px rgba(54,180,255,.45)); }
.links { display: flex; gap: 4px; margin-left: auto; }
.links a { padding: 9px 14px; border-radius: 12px; color: var(--muted); font-weight: 500; font-size: 15px; transition: color .2s, background .2s; }
.links a:hover { color: var(--text); background: var(--panel-2); }
.links a.active { color: var(--text); background: rgba(54, 180, 255, .14); }
.burger { display: none; margin-left: auto; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line); background: var(--panel); color: var(--text); cursor: pointer; align-items: center; justify-content: center; }

/* przyciski */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 48px; padding: 0 22px; border-radius: 14px; font: 600 15px 'Inter'; cursor: pointer; border: 1px solid transparent; transition: transform .15s, box-shadow .25s, background .25s, border-color .25s; white-space: nowrap; }
.btn:active { transform: scale(.97); }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn-primary { background: linear-gradient(135deg, var(--ice), var(--deep)); color: #fff; box-shadow: 0 8px 30px rgba(30, 120, 255, .45), inset 0 1px 0 rgba(255,255,255,.25); }
.btn-primary:hover { box-shadow: 0 12px 40px rgba(54, 180, 255, .6), inset 0 1px 0 rgba(255,255,255,.3); transform: translateY(-1px); }
.btn-discord { background: #5865f2; color: #fff; box-shadow: 0 8px 30px rgba(88, 101, 242, .4); }
.btn-discord:hover { background: #6773ff; transform: translateY(-1px); }
.btn-ghost { background: var(--panel); border-color: var(--line); color: var(--text); backdrop-filter: blur(10px); }
.btn-ghost:hover { border-color: var(--line-2); background: var(--panel-2); }
.btn-sm { height: 40px; padding: 0 16px; font-size: 14px; border-radius: 12px; }

/* hero */
.hero { position: relative; min-height: 100svh; display: flex; align-items: center; padding: 130px 0 130px; overflow: hidden; }
.hero video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.hero::before { content: ''; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(ellipse at 50% 40%, rgba(5,8,15,.35), rgba(5,8,15,.85) 70%), linear-gradient(180deg, rgba(5,8,15,.4) 0%, rgba(5,8,15,.2) 40%, var(--bg) 100%); }
.hero .wrap { display: flex; flex-direction: column; align-items: center; text-align: center; }
.pill { display: inline-flex; align-items: center; gap: 10px; padding: 7px 14px 7px 8px; border-radius: 999px; background: rgba(8,14,28,.6); border: 1px solid var(--line); backdrop-filter: blur(12px); font-size: 14px; color: var(--muted); }
.pill b { color: var(--text); font-weight: 600; }
.dot { width: 9px; height: 9px; border-radius: 50%; background: var(--dim); box-shadow: 0 0 0 4px rgba(255,255,255,.06); }
.dot.on { background: var(--ok); box-shadow: 0 0 0 4px rgba(52, 211, 153, .18), 0 0 14px var(--ok); animation: pulse 2s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 7px rgba(52, 211, 153, .08), 0 0 18px var(--ok); } }
.hero-logo { width: min(190px, 44vw); height: auto; margin: 30px 0 0; filter: drop-shadow(0 20px 60px rgba(54, 180, 255, .45)); animation: float 7s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-10px); } }
.hero h1 { font: 700 clamp(44px, 8.5vw, 112px)/.95 var(--display); letter-spacing: -.04em; margin-top: 14px;
  background: linear-gradient(180deg, #fff 20%, #a9dcff 70%, #4bb8ff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p.lead { max-width: 640px; margin: 22px auto 0; font-size: clamp(17px, 2vw, 20px); color: #c4d2e6; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 34px; }
.connect { display: flex; align-items: center; gap: 4px; margin-top: 18px; padding: 6px 6px 6px 16px; border-radius: 14px; background: rgba(8,14,28,.6); border: 1px solid var(--line); backdrop-filter: blur(12px); font: 500 14px 'JetBrains Mono', ui-monospace, monospace; color: var(--muted); }
.connect code { color: var(--ice-2); font: inherit; }
.connect button { margin-left: 8px; height: 34px; padding: 0 12px; border-radius: 10px; border: 0; background: var(--panel-2); color: var(--text); font: 600 13px 'Inter'; cursor: pointer; }
.connect button:hover { background: rgba(54,180,255,.2); }
.tags { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 38px; }
.tags span { padding: 6px 12px; border-radius: 999px; font-size: 13px; color: var(--muted); border: 1px solid var(--line); background: rgba(8,14,28,.45); }
.scroll-hint { position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%); color: var(--dim); font-size: 12px; letter-spacing: .2em; text-transform: uppercase; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.scroll-hint i { width: 1px; height: 36px; background: linear-gradient(var(--ice), transparent); animation: hint 2s infinite; }
@media (max-height: 860px) { .scroll-hint { display: none; } }
@keyframes hint { 0% { transform: scaleY(0); transform-origin: top; } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }

/* sekcje */
section.block { padding: 100px 0; position: relative; }
section.block + section.block { padding-top: 20px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font: 600 13px 'Inter'; letter-spacing: .14em; text-transform: uppercase; color: var(--ice); }
.eyebrow::before { content: ''; width: 18px; height: 2px; border-radius: 2px; background: var(--ice); }
h2.title { font: 700 clamp(32px, 4.6vw, 54px)/1.05 var(--display); letter-spacing: -.03em; margin-top: 14px; }
.sub { color: var(--muted); max-width: 620px; margin-top: 14px; font-size: 17px; }
.head-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-bottom: 48px; }

.card { position: relative; border-radius: var(--radius); background: var(--panel); border: 1px solid var(--line); padding: 28px; overflow: hidden; transition: border-color .3s, transform .3s, background .3s; }
.card::before { content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .3s;
  background: radial-gradient(500px circle at var(--mx, 50%) var(--my, 0%), rgba(54,180,255,.14), transparent 45%); }
.card:hover { border-color: var(--line-2); transform: translateY(-3px); }
.card:hover::before { opacity: 1; }
.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.ico { width: 52px; height: 52px; border-radius: 15px; display: flex; align-items: center; justify-content: center; margin-bottom: 20px;
  background: linear-gradient(135deg, rgba(54,180,255,.22), rgba(30,91,255,.12)); border: 1px solid rgba(120, 200, 255, .25); color: var(--ice-2); }
.ico svg { width: 26px; height: 26px; }
.card h3 { font: 600 20px/1.25 var(--display); letter-spacing: -.01em; }
.card p { color: var(--muted); font-size: 15px; margin-top: 8px; }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 16px; }
.stat { text-align: center; padding: 26px 18px; }
.stat b { display: block; font: 700 40px/1 var(--display); letter-spacing: -.03em; background: linear-gradient(180deg, #fff, #8fd3ff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat span { display: block; margin-top: 8px; color: var(--muted); font-size: 14px; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; counter-reset: step; }
.step { counter-increment: step; display: flex; flex-direction: column; align-items: flex-start; }
.step p { flex: 1; }
.step::after { content: '0' counter(step); position: absolute; top: 18px; right: 22px; font: 700 56px/1 var(--display); color: rgba(255,255,255,.05); }
.step .btn { margin-top: 22px; }

.banner { display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap; padding: 48px; border-radius: 28px;
  background: radial-gradient(circle at 0% 0%, rgba(54,180,255,.28), transparent 50%), radial-gradient(circle at 100% 100%, rgba(30,91,255,.3), transparent 55%), rgba(255,255,255,.04);
  border: 1px solid var(--line-2); }
.banner h2 { font: 700 clamp(28px, 3.6vw, 42px)/1.1 var(--display); letter-spacing: -.03em; }
.banner p { color: #c4d2e6; margin-top: 10px; }

/* podstrony */
.page-head { padding: 160px 0 50px; text-align: center; }
.page-head h1 { font: 700 clamp(40px, 6.5vw, 76px)/1 var(--display); letter-spacing: -.04em; margin-top: 16px;
  background: linear-gradient(180deg, #fff 30%, #8fd3ff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.page-head p { color: var(--muted); max-width: 620px; margin: 16px auto 0; font-size: 17px; }

/* podania */
.jobs { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; padding-bottom: 110px; }
.job { display: flex; flex-direction: column; min-height: 300px; padding: 32px; }
.job .badge { position: absolute; top: 26px; right: 26px; font-size: 12px; font-weight: 600; padding: 5px 11px; border-radius: 999px; background: rgba(52, 211, 153, .12); color: var(--ok); border: 1px solid rgba(52, 211, 153, .3); }
.job .ico { width: 64px; height: 64px; border-radius: 18px; }
.job .ico svg { width: 32px; height: 32px; }
.job h3 { font-size: 28px; }
.job .tag { color: var(--ice); font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; margin-top: 4px; }
.job p { flex: 1; font-size: 16px; }
.job .btn { margin-top: 26px; align-self: flex-start; }
.job.c-police .ico { background: linear-gradient(135deg, rgba(59,130,246,.3), rgba(37,99,235,.1)); color: #93c5fd; border-color: rgba(96,165,250,.35); }
.job.c-ems .ico { background: linear-gradient(135deg, rgba(239,68,68,.28), rgba(185,28,28,.1)); color: #fca5a5; border-color: rgba(248,113,113,.35); }
.job.c-lsc .ico { background: linear-gradient(135deg, rgba(245,158,11,.28), rgba(180,83,9,.1)); color: #fcd34d; border-color: rgba(251,191,36,.35); }
.job.c-org .ico { background: linear-gradient(135deg, rgba(168,85,247,.28), rgba(109,40,217,.1)); color: #d8b4fe; border-color: rgba(192,132,252,.35); }

/* regulamin */
.rules { display: grid; grid-template-columns: 290px 1fr; gap: 28px; align-items: start; padding-bottom: 110px; }
.toc { position: sticky; top: 100px; padding: 14px; max-height: calc(100vh - 120px); overflow-y: auto; }
.toc:hover { transform: none; }
.search { position: relative; display: block; margin-bottom: 10px; }
.search input { width: 100%; height: 44px; border-radius: 12px; border: 1px solid var(--line); background: rgba(0,0,0,.25); color: var(--text); padding: 0 14px 0 40px; font: 500 14px 'Inter'; outline: none; transition: border-color .2s; }
.search input:focus { border-color: var(--ice); }
.search svg { position: absolute; left: 13px; top: 12px; width: 20px; height: 20px; color: var(--dim); }
.toc a { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 11px; color: var(--muted); font-size: 14px; font-weight: 500; transition: background .2s, color .2s; }
.toc a b { font: 700 12px var(--display); color: var(--dim); width: 26px; }
.toc a:hover { background: var(--panel-2); color: var(--text); }
.toc a.active { background: rgba(54,180,255,.14); color: var(--text); }
.toc a.active b { color: var(--ice); }
.toc a .n { margin-left: auto; font-size: 12px; color: var(--dim); }
.rule-sec { padding: 30px 32px; margin-bottom: 16px; }
.rule-sec:hover { transform: none; }
.rule-sec h2 { display: flex; align-items: center; gap: 14px; font: 700 24px var(--display); letter-spacing: -.02em; margin-bottom: 14px; }
.rule-sec h2 em { font-style: normal; font-size: 14px; font-weight: 600; padding: 4px 10px; border-radius: 9px; background: rgba(54,180,255,.14); color: var(--ice-2); }
.sec-ico { width: 44px; height: 44px; border-radius: 13px; display: inline-flex; align-items: center; justify-content: center; flex: none;
  background: linear-gradient(135deg, rgba(54,180,255,.22), rgba(30,91,255,.1)); border: 1px solid rgba(120,200,255,.25); color: var(--ice-2); }
.sec-ico svg { width: 22px; height: 22px; }
.meta-row { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.meta-row span { padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--panel); color: var(--muted); font-size: 13px; }
.glossary { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.term.rule { display: block; padding: 16px 18px; border: 1px solid var(--line); border-radius: 14px; background: rgba(0,0,0,.18); }
.term.rule:first-of-type { border-top: 1px solid var(--line); }
.term b { display: block; color: var(--ice-2); font: 600 15px var(--display); margin-bottom: 4px; }
.warn { margin-top: 16px; padding: 14px 16px; border-radius: 12px; background: rgba(251, 191, 36, .08); border: 1px solid rgba(251, 191, 36, .28); color: #fde68a; font-weight: 500; }
.rule { display: grid; grid-template-columns: 64px 1fr; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); color: #d3deee; font-size: 15.5px; }
.rule:first-of-type { border-top: 0; }
.rule.sub { padding-left: 26px; grid-template-columns: 76px 1fr; color: var(--muted); }
.rule a.num { font: 600 13px 'JetBrains Mono', ui-monospace, monospace; color: var(--ice); padding-top: 2px; }
.rule a.num:hover { text-decoration: underline; }
.rule:target { background: rgba(54,180,255,.1); border-radius: 10px; margin: 0 -12px; padding: 12px; }
mark { background: rgba(127, 224, 255, .3); color: #fff; border-radius: 4px; padding: 0 2px; }
.empty { display: none; text-align: center; padding: 60px 20px; color: var(--muted); }
.note { font-size: 14px; color: var(--dim); margin-top: 6px; }

/* stopka */
footer { border-top: 1px solid var(--line); padding: 46px 0; color: var(--dim); font-size: 14px; }
footer .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
footer .brand img { height: 30px; }
footer nav { display: flex; gap: 18px; }
footer nav a:hover { color: var(--text); }

/* pojawianie przy przewijaniu */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s cubic-bezier(.2,.7,.2,1), transform .8s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }

.toast { position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 20px); opacity: 0; pointer-events: none; z-index: 100; padding: 12px 18px; border-radius: 14px; background: rgba(10, 18, 34, .95); border: 1px solid var(--line-2); font-weight: 500; transition: all .3s; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 1000px) {
  .features, .stats { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; }
  .rules { grid-template-columns: 1fr; }
  .toc { position: static; max-height: none; }
  .toc .list { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 4px; }
  .toc .list a { flex: none; }
  .toc .list a .n { display: none; }
}
@media (max-width: 760px) {
  .wrap { padding: 0 16px; }
  .nav { top: 10px; }
  .links { position: absolute; top: 74px; left: 16px; right: 16px; flex-direction: column; padding: 10px; border-radius: 18px; background: rgba(6, 10, 22, .96); border: 1px solid var(--line); display: none; }
  .links.open { display: flex; }
  .links a { padding: 14px; }
  .burger { display: inline-flex; }
  .nav .btn-discord { display: none; }
  .features, .stats, .jobs { grid-template-columns: 1fr; }
  section.block { padding: 80px 0; }
  .banner { padding: 30px 24px; }
  .rule-sec { padding: 22px 18px; }
  .rule, .rule.sub { grid-template-columns: 1fr; gap: 2px; padding-left: 0; }
  .glossary { grid-template-columns: 1fr; }
  .rule-sec h2 { font-size: 20px; gap: 10px; }
  .cta .btn { width: 100%; }
  .connect { flex-wrap: wrap; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
