/* neurise.io Biblioteka skilli / Skills Library - Neurise Design System */
/* Tokeny wyrownane do design-sys Neurise (colors.css): --orange #FF7F11,
   --dark-violet #20113B, --cloud #F2F2FF. Fonty jak na reszcie strony:
   Inter (UI), Playfair Display italic (akcent), JetBrains Mono (dane/CLI). */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
:root {
  --purple: #20113B; --purple-deep: #150826; --ink: #0E0720;
  --white: #FFFFFF; --cloud: #F2F2FF; --muted: #B9AECF; --muted-dark: #6E6288;
  --orange: #F06206; --orange-l: #FF7F11;
  --grad: linear-gradient(135deg, #F06206 12%, #FF7F11 86%);
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --mono: "JetBrains Mono", ui-monospace, Consolas, monospace;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}
html { scroll-behavior: smooth; }
body { font-family: var(--font); background: var(--ink); color: var(--white);
  -webkit-font-smoothing: antialiased; overflow-x: clip; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

/* ---------- banner + nav ---------- */
.banner { background: var(--grad); color: #1C0B02; text-align: center; padding: 10px 16px;
  font-weight: 700; font-size: 13.5px; letter-spacing: 0.01em; display: block; }
.banner:hover { filter: brightness(1.05); }
.nav { display: flex; align-items: center; gap: 34px; padding: 18px 4vw; position: relative; z-index: 10; }
.nav-brand { display: flex; align-items: center; gap: 11px; font-size: 19px; font-weight: 800; }
.nav-brand .tld { color: var(--muted); font-weight: 500; }
.nav-links { display: flex; gap: 26px; margin: 0 auto; font-size: 14.5px; color: var(--muted); font-weight: 500; }
.nav-links a:hover { color: var(--white); }
.nav-cta { background: var(--white); color: var(--ink); font-weight: 700; font-size: 14px;
  padding: 10px 18px; border-radius: 999px; transition: transform 0.2s var(--ease); }
.nav-cta:hover { transform: translateY(-1px); }
.avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--purple-deep);
  border: 1.5px solid rgba(255,127,17,0.5); display: grid; place-items: center; overflow: hidden; }
.avatar svg { width: 24px; height: 24px; }

/* ---------- hero ---------- */
.hero { position: relative; text-align: center; padding: 72px 5vw 40px; }
.hero-bg { position: absolute; inset: -140px 0 0; pointer-events: none; z-index: -1;
  background: radial-gradient(120% 90% at 50% 0%, var(--purple) 0%, var(--purple-deep) 48%, var(--ink) 100%); }
.hero-glow { position: absolute; width: 640px; height: 640px; left: -180px; top: 30%; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255,127,17,0.22), transparent 70%); pointer-events: none; z-index: -1; }
.hero-glow.r { left: auto; right: -200px; top: 8%;
  background: radial-gradient(closest-side, rgba(157,139,199,0.16), transparent 70%); }
.eyebrow { font-size: 12px; font-weight: 800; letter-spacing: 0.34em; color: var(--muted); text-transform: uppercase; }
.hero h1 { font-size: clamp(52px, 8vw, 108px); font-weight: 900; line-height: 1.02;
  letter-spacing: -0.015em; margin: 26px 0 8px; }
.rotator { display: block; min-height: 1.08em; font-family: var(--serif); font-style: italic;
  font-weight: 500; letter-spacing: -0.01em;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.rotator span { display: inline-block; animation: wordin 0.55s var(--ease); }
@keyframes wordin { from { opacity: 0; transform: translateY(20px) } to { opacity: 1; transform: none } }
.hero-sub { max-width: 560px; margin: 26px auto 0; font-size: 17px; line-height: 1.55;
  color: var(--muted); font-weight: 500; }
.cmd { display: inline-flex; align-items: center; gap: 12px; margin-top: 30px; padding: 14px 20px;
  background: rgba(21,11,41,0.85); border: 1px solid rgba(185,174,207,0.22); border-radius: 13px;
  font-family: var(--mono); font-size: 14.5px; }
.cmd .d { color: var(--orange-l); }
.cmd button { color: var(--muted); font-size: 15px; }
.cmd button:hover { color: var(--white); }
.hero-chip { display: inline-flex; align-items: center; gap: 10px; margin-top: 22px; padding: 10px 20px;
  border: 1px solid rgba(255,127,17,0.45); border-radius: 12px; font-weight: 800; font-size: 14px; }
.hero-chip small { display: block; font-size: 10px; letter-spacing: 0.18em; color: var(--muted); font-weight: 700; }
.hero-chip .n { color: var(--orange-l); font-size: 17px; }

/* ---------- demo tabs ---------- */
.demo { max-width: 1220px; margin: 44px auto 0; padding: 0 4vw; }
.tabs { display: flex; gap: 9px; justify-content: center; flex-wrap: wrap; }
.tab { padding: 9px 18px; border-radius: 999px; border: 1px solid rgba(185,174,207,0.25);
  color: var(--muted); font-size: 14px; font-weight: 600; transition: all 0.2s; }
.tab:hover { color: var(--white); border-color: rgba(185,174,207,0.5); }
.tab.on { background: var(--white); color: var(--ink); border-color: var(--white); }
.demo-panel { text-align: left; display: grid; grid-template-columns: 300px 1fr; gap: 0; margin-top: 26px;
  background: linear-gradient(180deg, rgba(32,17,59,0.55), rgba(14,7,32,0.9));
  border: 1px solid rgba(185,174,207,0.16); border-radius: 22px; overflow: hidden; position: relative; }
.demo-panel::after { content: ""; position: absolute; left: -120px; bottom: -160px; width: 420px; height: 420px;
  background: radial-gradient(closest-side, rgba(240,98,6,0.35), transparent 70%); pointer-events: none; }
.uc-list { padding: 18px 10px; border-right: 1px solid rgba(185,174,207,0.10); position: relative; z-index: 1; }
.uc { padding: 13px 16px; border-radius: 13px; cursor: default; }
.uc.on { background: rgba(244,241,250,0.06); border: 1px solid rgba(185,174,207,0.14); }
.uc h4 { font-size: 14.5px; font-weight: 700; }
.uc p { font-size: 12.5px; color: var(--muted); margin-top: 3px; line-height: 1.45; font-weight: 500; }
.term { background: #0B0518; font-family: var(--mono); font-size: 12.8px; line-height: 1.62;
  display: flex; flex-direction: column; min-height: 480px; }
.term-bar { flex: none; display: flex; align-items: center; height: 38px; padding: 0 15px;
  border-bottom: 1px solid rgba(185,174,207,0.10); position: relative; }
.term-bar .ttl { position: absolute; left: 0; right: 0; text-align: center; font-size: 12px;
  color: var(--muted); letter-spacing: 0.05em; }
.lights { display: flex; gap: 7px; position: relative; z-index: 1; }
.lt { width: 11px; height: 11px; border-radius: 50%; }
.lt1 { background: var(--grad); } .lt2 { background: rgba(185,174,207,0.38); } .lt3 { background: rgba(185,174,207,0.18); }
.term-body { padding: 15px 20px 20px; overflow: hidden; }
.term-body .dim { color: var(--muted-dark); }
.term-body .mut { color: var(--muted); }
.term-body .cmdl { color: var(--white); font-weight: 500; }
.term-body .cmdl .c { color: var(--orange-l); }
.term-body .tool { color: var(--orange-l); }
.term-body .ok { color: #FFC08A; }
.term-body b { color: var(--white); }
.term-body p { margin: 7px 0; white-space: pre-wrap; }

/* ---------- agent install section ---------- */
.agent { max-width: 1120px; margin: 100px auto 0; padding: 0 4vw; display: grid;
  grid-template-columns: 1.05fr 1fr; gap: 54px; align-items: center; }
.agent h2 { font-size: clamp(34px, 4.4vw, 52px); font-weight: 900; letter-spacing: -0.01em; line-height: 1.06; margin: 14px 0 16px; }
.agent .lead { color: var(--muted); font-size: 16.5px; line-height: 1.6; font-weight: 500; max-width: 440px; }
.agent .cmd { margin-top: 24px; }
.agent .more { display: inline-block; margin: 18px 0 0 4px; color: var(--orange-l); font-weight: 700; font-size: 14.5px; }
.agent .more:hover { text-decoration: underline; }
.install-card { background: #0B0518; border: 1px solid rgba(185,174,207,0.16); border-radius: 18px;
  font-family: var(--mono); font-size: 13.5px; padding: 22px 24px; line-height: 2.05;
  box-shadow: 0 30px 70px rgba(4,1,12,0.5); }
.install-card .p { color: var(--muted); }
.install-card .ok::before { content: "✓ "; color: var(--orange-l); }
.install-card .try { color: var(--orange-l); }

/* ---------- FAQ ---------- */
.faq { max-width: 760px; margin: 96px auto 0; padding: 0 4vw; }
.faq details { border-bottom: 1px solid rgba(185,174,207,0.14); padding: 20px 4px; }
.faq summary { font-weight: 700; font-size: 16.5px; cursor: pointer; list-style: none; position: relative; padding-right: 34px; }
.faq summary::after { content: "+"; position: absolute; right: 6px; top: -2px; font-size: 22px; color: var(--orange-l); }
.faq details[open] summary::after { content: "-"; }
.faq details p { margin-top: 12px; color: var(--muted); font-size: 15px; line-height: 1.62; font-weight: 500; }
.faq code { font-family: var(--mono); font-size: 0.86em; background: rgba(255,127,17,0.12);
  border: 1px solid rgba(255,127,17,0.25); color: #FFB877; padding: 1px 7px; border-radius: 6px; }

/* ---------- editor's picks ---------- */
.picks { max-width: 1220px; margin: 100px auto 0; padding: 0 4vw; }
.picks h2, .lib h2 { font-size: clamp(34px, 4.6vw, 56px); font-weight: 900; letter-spacing: -0.01em; margin: 14px 0 10px; }
.picks-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; margin-top: 30px; }
.pick { background: linear-gradient(180deg, rgba(32,17,59,0.7), rgba(14,7,32,0.85));
  border: 1px solid rgba(185,174,207,0.16); border-radius: 18px; padding: 22px 22px 20px;
  display: flex; flex-direction: column; transition: transform 0.25s var(--ease), border-color 0.25s; }
.pick:hover { transform: translateY(-4px); border-color: rgba(255,127,17,0.5); }
.pick .k { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.22em; color: var(--orange-l); font-weight: 700; }
.pick h3 { font-size: 19px; font-weight: 800; margin: 10px 0 8px; }
.pick p { color: var(--muted); font-size: 14px; line-height: 1.55; font-weight: 500; flex: 1; }
.pick .open { margin-top: 16px; font-weight: 700; font-size: 13.5px; color: var(--cloud); }
.pick .open::after { content: " →"; color: var(--orange-l); }

/* ---------- library (light section) ---------- */
.lib { margin-top: 110px; background: var(--cloud); color: var(--ink); padding: 90px 0 110px; }
.lib-inner { max-width: 1220px; margin: 0 auto; padding: 0 4vw; }
.lib .eyebrow { color: var(--muted-dark); }
.lib .sub { color: var(--muted-dark); font-size: 16.5px; font-weight: 500; max-width: 480px; }
.folders { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 18px; margin: 44px 0 34px; }
.folder { text-align: center; padding: 10px 6px 14px; border-radius: 16px; transition: background 0.2s; }
.folder:hover { background: rgba(32,17,59,0.05); }
.folder.on { background: rgba(240,98,6,0.09); outline: 2px solid rgba(240,98,6,0.55); }
.folder svg { width: 84%; max-width: 132px; height: auto; display: block; margin: 0 auto; }
.folder .fn { font-weight: 800; font-size: 15.5px; margin-top: 10px; }
.folder .fc { font-size: 12.5px; color: var(--muted-dark); font-weight: 600; margin-top: 2px; }
.lib-controls { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.search { flex: 0 1 360px; display: flex; align-items: center; gap: 10px; background: #fff;
  border: 1px solid rgba(32,17,59,0.16); border-radius: 12px; padding: 11px 15px; }
.search input { border: 0; outline: 0; font: inherit; font-size: 14.5px; width: 100%; background: none; color: var(--ink); }
.search svg { flex: none; opacity: 0.45; }
.atoms-wrap { display: flex; align-items: center; gap: 9px; margin-left: auto; position: relative; }
.switch { width: 40px; height: 22px; border-radius: 999px; background: rgba(32,17,59,0.18); position: relative; transition: background 0.2s; }
.switch::after { content: ""; position: absolute; top: 2.5px; left: 3px; width: 17px; height: 17px; border-radius: 50%;
  background: #fff; transition: transform 0.22s var(--ease); box-shadow: 0 1px 4px rgba(0,0,0,0.25); }
.switch.on { background: var(--grad); }
.switch.on::after { transform: translateX(17px); }
.atoms-wrap .lbl { font-weight: 700; font-size: 14px; }
.tip { width: 19px; height: 19px; border-radius: 50%; border: 1.4px solid rgba(32,17,59,0.3);
  font-size: 11.5px; font-weight: 700; color: var(--muted-dark); display: grid; place-items: center; cursor: help; position: relative; }
.tip .bubble { display: none; position: absolute; bottom: 130%; left: 50%; transform: translateX(-50%);
  width: 300px; background: var(--ink); color: var(--cloud); font-size: 12.5px; font-weight: 500;
  line-height: 1.5; padding: 12px 14px; border-radius: 11px; z-index: 30; }
.tip:hover .bubble { display: block; }
.count { font-weight: 700; font-size: 14px; color: var(--muted-dark); }
.grid-title { font-weight: 800; font-size: 17px; margin: 34px 0 0; display: flex; align-items: center; gap: 16px; }
.grid-title .showall { color: var(--orange); font-size: 13.5px; font-weight: 700; }
.grid-title .showall:hover { text-decoration: underline; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(295px, 1fr)); gap: 15px; margin-top: 18px; }
.card { background: #fff; border: 1px solid rgba(32,17,59,0.11); border-radius: 15px; padding: 19px 20px;
  display: flex; flex-direction: column; gap: 8px; transition: transform 0.22s var(--ease), box-shadow 0.22s, border-color 0.22s; }
.card:hover { transform: translateY(-3px); box-shadow: 0 14px 34px rgba(32,17,59,0.13); border-color: rgba(240,98,6,0.45); }
.card h3 { font-size: 16px; font-weight: 800; letter-spacing: -0.005em; }
.card p { font-size: 13px; line-height: 1.52; color: var(--muted-dark); font-weight: 500;
  display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.card .meta { display: flex; gap: 7px; flex-wrap: wrap; margin-top: auto; padding-top: 4px; }
.chip { font-family: var(--mono); font-size: 10px; letter-spacing: 0.06em; padding: 3px 9px;
  border-radius: 999px; background: rgba(240,98,6,0.10); color: #B24A05; border: 1px solid rgba(240,98,6,0.25); font-weight: 600; }
.chip.atom { background: rgba(32,17,59,0.07); color: var(--muted-dark); border-color: rgba(32,17,59,0.15); }
.empty { color: var(--muted-dark); font-weight: 600; padding: 40px 0; text-align: center; }

/* ---------- newsletter / footer ---------- */
.news { max-width: 720px; margin: 100px auto 90px; padding: 0 4vw; text-align: center; }
.news h2 { font-size: clamp(30px, 4vw, 46px); font-weight: 900; letter-spacing: -0.01em; margin: 14px 0 10px; }
.news p { color: var(--muted); font-size: 16px; font-weight: 500; }
.news form { display: flex; gap: 10px; max-width: 440px; margin: 26px auto 0; }
.news input { flex: 1; background: rgba(21,11,41,0.85); border: 1px solid rgba(185,174,207,0.25);
  border-radius: 12px; padding: 13px 16px; font: inherit; font-size: 14.5px; color: var(--white); outline: 0; }
.news input:focus { border-color: rgba(255,127,17,0.6); }
.news button { background: var(--grad); color: #1C0B02; font-weight: 800; font-size: 14.5px;
  border-radius: 12px; padding: 13px 22px; }
.footer { border-top: 1px solid rgba(185,174,207,0.12); padding: 26px 4vw 34px; display: flex;
  align-items: center; gap: 12px; color: var(--muted-dark); font-size: 13px; font-weight: 500; }
.footer .r { margin-left: auto; display: flex; gap: 20px; }
.footer a:hover { color: var(--muted); }

@media (max-width: 900px) {
  .demo-panel { grid-template-columns: 1fr; }
  .uc-list { border-right: 0; border-bottom: 1px solid rgba(185,174,207,0.10); }
  .agent { grid-template-columns: 1fr; gap: 30px; }
  .nav-links { display: none; }
}

/* ---------- language switcher (PL | EN) ---------- */
.lang-switch { display: inline-flex; align-items: center; margin-left: 16px;
  border: 1px solid rgba(244,241,250,0.20); border-radius: 999px; overflow: hidden;
  font-size: 13px; font-weight: 800; letter-spacing: 0.02em; }
.lang-switch a { padding: 4px 11px; color: var(--cloud); transition: background 0.2s, color 0.2s; }
.lang-switch a:hover { background: rgba(244,241,250,0.08); }
.lang-switch a.on { color: var(--ink); background: var(--orange-l); }
.lang-switch a.on:hover { background: var(--orange-l); }

/* ---------- reveal on scroll (Neurise DS: fade + 26px rise, house easing) ---------- */
.reveal { opacity: 0; transform: translateY(26px); will-change: opacity, transform;
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- terminal transcript: per-line reveal on tab switch ---------- */
@keyframes termline { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.term-body p { animation: termline 0.4s var(--ease) both; }
.term-body p:nth-child(2) { animation-delay: 0.03s; }
.term-body p:nth-child(3) { animation-delay: 0.06s; }
.term-body p:nth-child(4) { animation-delay: 0.09s; }
.term-body p:nth-child(5) { animation-delay: 0.12s; }
.term-body p:nth-child(6) { animation-delay: 0.15s; }
.term-body p:nth-child(n+7) { animation-delay: 0.18s; }
.uc { animation: termline 0.4s var(--ease) both; }

/* ---------- reduced motion: honour user preference ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
  .rotator span { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .term-body p, .uc { animation: none; }
}
