:root {
  color-scheme: dark;
  --bg: #0b0d11;
  --panel: #13161c;
  --card: #171a21;
  --stroke: #252a34;
  --text: #e9ebf1;
  --muted: #9aa3b2;
  --subtle: #6c7484;
  --accent: #7c5cff;
  --accent2: #c24df4;
  --gold: #f5b83d;
  --gradient: linear-gradient(135deg, #7c5cff 0%, #c24df4 100%);
  --gold-gradient: linear-gradient(135deg, #ffe7a3 0%, #f5b83d 50%, #d98a1c 100%);
  --radius: 18px;
  --max: 1120px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: "Inter", "Segoe UI", system-ui, -apple-system, Roboto, sans-serif; font-size: 16px; line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
a { color: #b9a6ff; text-decoration: none; }
a:hover { color: #fff; }
img { max-width: 100%; display: block; }
.wrap { width: min(var(--max), 100% - 32px); margin-inline: auto; }

/* ---------- nawigacja ---------- */
.nav {
  position: sticky; top: 0; z-index: 20; backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  background: rgba(11, 13, 17, .72); border-bottom: 1px solid rgba(255, 255, 255, .06);
}
.nav .wrap { display: flex; align-items: center; gap: 24px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 18px; color: var(--text); }
.brand img { width: 30px; height: 30px; }
.brand b { background: var(--gradient); -webkit-background-clip: text; background-clip: text; color: transparent; }
.nav-links { display: flex; gap: 22px; margin-left: auto; font-size: 14px; }
.nav-links a { color: var(--muted); }
.nav-links a:hover { color: var(--text); }
.lang { border: 1px solid var(--stroke); background: transparent; color: var(--muted); border-radius: 8px; padding: 5px 9px; font: inherit; font-size: 12px; cursor: pointer; }
.lang:hover { color: var(--text); border-color: #3a4150; }

/* ---------- przyciski ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 13px 22px; border-radius: 12px;
  font-weight: 600; font-size: 15px; border: 1px solid transparent; cursor: pointer; transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--gradient); color: #fff; box-shadow: 0 10px 30px rgba(124, 92, 255, .35); }
.btn-primary:hover { color: #fff; box-shadow: 0 14px 38px rgba(124, 92, 255, .5); }
.btn-gold { background: var(--gold-gradient); color: #3d2400; box-shadow: 0 10px 30px rgba(245, 184, 61, .25); }
.btn-gold:hover { color: #3d2400; }
.btn-ghost { background: rgba(255, 255, 255, .04); border-color: var(--stroke); color: var(--text); }
.btn-ghost:hover { color: #fff; border-color: #3a4150; }
.btn small { font-weight: 500; opacity: .8; }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; padding: 84px 0 40px; }
.hero::before {
  content: ""; position: absolute; inset: -40% -10% auto; height: 900px; z-index: -1;
  background: radial-gradient(closest-side at 30% 40%, rgba(124, 92, 255, .28), transparent 70%),
              radial-gradient(closest-side at 75% 30%, rgba(194, 77, 244, .18), transparent 70%);
}
.badge {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; font-size: 13px; color: #d9cfff;
  background: rgba(124, 92, 255, .12); border: 1px solid rgba(124, 92, 255, .35);
}
.hero h1 { font-size: clamp(36px, 6vw, 64px); line-height: 1.08; letter-spacing: -.02em; margin: 18px 0 18px; max-width: 900px; }
.hero h1 .grad { background: var(--gradient); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p.lead { font-size: clamp(17px, 2vw, 20px); color: var(--muted); max-width: 680px; margin: 0 0 30px; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; }
.note { margin-top: 14px; font-size: 13px; color: var(--subtle); }

/* makieta odtwarzacza */
.mock { margin-top: 56px; position: relative; }
.screen {
  position: relative; aspect-ratio: 16 / 8.2; border-radius: var(--radius); overflow: hidden; border: 1px solid rgba(255, 255, 255, .08);
  box-shadow: 0 40px 120px rgba(0, 0, 0, .6), 0 0 0 1px rgba(124, 92, 255, .08);
  background:
    radial-gradient(ellipse at 70% 35%, rgba(255, 170, 90, .55), transparent 55%),
    radial-gradient(ellipse at 25% 70%, rgba(40, 120, 170, .55), transparent 60%),
    linear-gradient(160deg, #1d2a35 0%, #0d1218 60%, #120c10 100%);
}
.screen::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(0, 0, 0, .55)); }
.sun { position: absolute; width: 22%; aspect-ratio: 1; right: 22%; top: 18%; border-radius: 50%; background: radial-gradient(circle, #ffd59a 0%, rgba(255, 150, 70, .5) 45%, transparent 70%); filter: blur(2px); }
.hills { position: absolute; inset: auto 0 0; height: 45%; background:
  radial-gradient(ellipse at 20% 100%, #0a1116 0 60%, transparent 61%),
  radial-gradient(ellipse at 80% 110%, #0c141a 0 62%, transparent 63%); }
.sub { position: absolute; left: 0; right: 0; text-align: center; z-index: 2; font-weight: 700; padding: 0 16px;
  font-size: clamp(14px, 2.6vw, 30px); text-shadow: 0 0 3px #000, 0 0 3px #000, 0 2px 6px #000; }
.sub span { background: rgba(0, 0, 0, .3); padding: 2px 12px; border-radius: 6px; }
.sub.top { top: 8%; color: #fff; }
.sub.bottom { bottom: 26%; color: #ffd866; font-weight: 600; }
.remote { position: absolute; left: 3%; right: 3%; bottom: 4%; z-index: 3; border-radius: 14px; overflow: hidden; box-shadow: 0 18px 50px rgba(0, 0, 0, .7); }
.remote img { width: 100%; }

/* ---------- sekcje ---------- */
section { padding: 88px 0; }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 48px; }
.eyebrow { color: #b9a6ff; font-weight: 600; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; }
h2 { font-size: clamp(28px, 4vw, 42px); line-height: 1.15; letter-spacing: -.015em; margin: 10px 0 14px; }
.section-head p { color: var(--muted); margin: 0; }

.grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.card {
  background: linear-gradient(180deg, #181b23, #13161c); border: 1px solid var(--stroke); border-radius: var(--radius); padding: 26px;
  transition: border-color .2s ease, transform .2s ease;
}
.card:hover { border-color: #353b48; transform: translateY(-2px); }
.icon {
  width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; margin-bottom: 16px;
  background: rgba(124, 92, 255, .14); border: 1px solid rgba(124, 92, 255, .3); color: #cbbdff;
}
.icon svg { width: 22px; height: 22px; }
.card h3 { margin: 0 0 8px; font-size: 18px; }
.card p { margin: 0; color: var(--muted); font-size: 15px; }

/* kroki */
.steps { counter-reset: step; }
.step { position: relative; padding-top: 58px; }
.step::before {
  counter-increment: step; content: counter(step); position: absolute; top: 22px; left: 26px; width: 30px; height: 30px; border-radius: 50%;
  display: grid; place-items: center; font-weight: 700; font-size: 14px; background: var(--gradient); color: #fff;
}

/* źródła napisów */
.flow { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.chip { padding: 10px 16px; border-radius: 12px; background: var(--card); border: 1px solid var(--stroke); font-size: 14px; color: var(--muted); }
.chip b { color: var(--text); }
.arrow { color: var(--subtle); align-self: center; }

/* cennik */
.pricing { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); max-width: 860px; margin: 0 auto; }
.plan { padding: 32px; }
.plan.premium { border-color: rgba(245, 184, 61, .5); background: linear-gradient(180deg, rgba(245, 184, 61, .08), #13161c 60%); position: relative; }
.plan .tag { position: absolute; top: -12px; right: 24px; background: var(--gold-gradient); color: #3d2400; font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 999px; }
.plan h3 { font-size: 20px; display: flex; align-items: center; gap: 8px; }
.price { font-size: 44px; font-weight: 800; letter-spacing: -.02em; margin: 6px 0 2px; }
.price small { font-size: 15px; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.plan ul { list-style: none; padding: 0; margin: 20px 0 26px; }
.plan li { padding: 7px 0 7px 28px; position: relative; color: var(--muted); font-size: 15px; }
.plan li::before { content: ""; position: absolute; left: 2px; top: 13px; width: 14px; height: 8px; border-left: 2px solid #8ee6b0; border-bottom: 2px solid #8ee6b0; transform: rotate(-45deg); }
.plan li.off::before { border-color: #59606d; }
.plan .btn { width: 100%; }

/* FAQ */
.faq { max-width: 820px; margin: 0 auto; }
details { background: var(--card); border: 1px solid var(--stroke); border-radius: 14px; padding: 4px 20px; margin-bottom: 10px; }
summary { cursor: pointer; padding: 16px 0; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
summary::-webkit-details-marker { display: none; }
/* Bez czarnej ramki po kliknięciu - obramowanie tylko przy nawigacji klawiaturą */
summary:focus { outline: none; }
summary:focus-visible { outline: 2px solid rgba(124, 92, 255, .6); outline-offset: 4px; border-radius: 6px; }
summary::after { content: "+"; color: var(--subtle); font-size: 20px; line-height: 1; }
details[open] summary::after { content: "–"; }
details p { margin: 0 0 16px; color: var(--muted); }

/* pobieranie */
.download { text-align: center; }
.download .card { max-width: 760px; margin: 0 auto; padding: 40px 28px; }
.req { color: var(--subtle); font-size: 14px; margin-top: 18px; }

/* stopka */
footer { border-top: 1px solid rgba(255, 255, 255, .06); padding: 40px 0 56px; color: var(--subtle); font-size: 14px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 18px 32px; align-items: center; justify-content: space-between; }
footer nav { display: flex; flex-wrap: wrap; gap: 18px; }
footer a { color: var(--muted); }

/* ---------- strony z dokumentami ---------- */
.doc { padding: 64px 0 88px; }
.doc .wrap { max-width: 820px; }
.doc h1 { font-size: clamp(30px, 5vw, 42px); letter-spacing: -.015em; margin: 0 0 8px; }
.doc .meta { color: var(--subtle); font-size: 14px; margin-bottom: 36px; }
.doc h2 { font-size: 22px; margin: 36px 0 10px; }
.doc p, .doc li { color: #c9ced8; }
.doc ol, .doc ul { padding-left: 22px; }
.doc li { margin: 6px 0; }
.doc .box { background: var(--card); border: 1px solid var(--stroke); border-radius: 14px; padding: 18px 20px; margin: 20px 0; }
.doc hr { border: 0; border-top: 1px solid var(--stroke); margin: 56px 0; }

@media (max-width: 820px) {
  .nav-links { display: none; }
  .nav .wrap { justify-content: space-between; }
  .hero { padding-top: 56px; }
  section { padding: 64px 0; }
  .sub.bottom { bottom: 30%; }
}
