/* 77CaseFiles — strona produktu. Czysty CSS, bez build stepu. */
:root {
  --bg: #0b0a09;
  --bg-1: #110f0e;
  --surface: #161412;
  --surface-2: #1c1917;
  --line: rgba(243, 233, 215, 0.08);
  --line-2: rgba(243, 233, 215, 0.14);
  --cream: #f3e9d7;
  --text: #e9e3d9;
  --muted: #9b938a;
  --dim: #6f6861;
  --red: #c8102e;
  --red-hi: #e02844;
  --radius: 12px;
  --radius-sm: 8px;
  --wrap: 1200px;
  --serif: 'Instrument Serif', 'Times New Roman', serif;
  --sans: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 16px/1.65 var(--sans);
  font-feature-settings: 'ss01', 'cv11';
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
@supports (overflow-x: clip) { body { overflow-x: clip; } }
/* ziarno na całej stronie */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 100;
  pointer-events: none;
  opacity: 0.06;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .9 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
p a, li a, dd a { color: var(--cream); text-decoration: underline; text-decoration-color: rgba(200, 16, 46, 0.7); text-underline-offset: 3px; transition: text-decoration-color 0.2s; }
p a:hover, li a:hover, dd a:hover { text-decoration-color: var(--red-hi); }
:focus-visible { outline: 2px solid var(--red-hi); outline-offset: 3px; border-radius: 4px; }
::selection { background: rgba(200, 16, 46, 0.55); color: #fff; }
code { font: 500 0.88em/1.4 ui-monospace, 'SF Mono', Menlo, Consolas, monospace; background: rgba(243, 233, 215, 0.07); border: 1px solid var(--line); padding: 1px 6px; border-radius: 5px; word-break: break-word; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 32px; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 200; background: var(--cream); color: #000; padding: 8px 12px; border-radius: 6px; }
.skip:focus { left: 12px; }

/* ---------- typografia ---------- */
.eyebrow { display: inline-flex; align-items: center; gap: 12px; margin: 0 0 22px; font: 600 11.5px/1 var(--sans); letter-spacing: 0.24em; text-transform: uppercase; color: var(--text); }
.eyebrow::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 4px rgba(200, 16, 46, 0.16); }
.display { font: 400 clamp(54px, 7.4vw, 104px)/0.98 var(--serif); letter-spacing: -0.015em; color: var(--cream); margin: 0; }
.display em, .h2 em, .h3 em { font-style: italic; }
.h2 { font: 400 clamp(40px, 5vw, 64px)/1.02 var(--serif); letter-spacing: -0.01em; color: var(--cream); margin: 0 0 18px; }
.h3 { font: 400 clamp(30px, 3vw, 38px)/1.08 var(--serif); color: var(--cream); margin: 0 0 14px; }
.lead { font-size: 18px; line-height: 1.7; color: var(--muted); max-width: 32em; margin: 0; }
.section-head { max-width: 720px; margin-bottom: 72px; }
.section-head .lead { font-size: 17px; }

/* ---------- przyciski ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 14px; min-height: 52px; padding: 0 22px 0 26px; border-radius: 4px; font: 600 15px/1 var(--sans); letter-spacing: 0.005em; transition: background 0.2s, border-color 0.2s, color 0.2s, transform 0.2s var(--ease); white-space: nowrap; }
.btn svg { width: 18px; height: 18px; flex: none; transition: transform 0.25s var(--ease); }
.btn:hover svg.arrow { transform: translate(2px, -2px); }
.btn-primary { background: var(--red); color: #fff; box-shadow: 0 10px 30px -10px rgba(200, 16, 46, 0.7); }
.btn-primary:hover { background: var(--red-hi); }
.btn-primary:active { transform: translateY(1px); }
.btn-outline { border: 1px solid var(--line-2); color: var(--cream); min-height: 42px; padding: 0 16px 0 18px; font-size: 14px; }
.btn-outline:hover { border-color: rgba(243, 233, 215, 0.4); background: rgba(243, 233, 215, 0.04); }
.btn-ghost { gap: 12px; padding: 0 6px; color: var(--cream); font-weight: 500; }
.btn-ghost .play { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line-2); transition: border-color 0.2s, background 0.2s; }
.btn-ghost .play svg { width: 12px; height: 12px; margin-left: 2px; }
.btn-ghost:hover .play { border-color: var(--cream); background: rgba(243, 233, 215, 0.06); }

/* ---------- nawigacja ---------- */
.nav { position: sticky; top: 0; z-index: 50; background: rgba(11, 10, 9, 0.78); backdrop-filter: saturate(140%) blur(14px); -webkit-backdrop-filter: saturate(140%) blur(14px); border-bottom: 1px solid var(--line); }
.nav .wrap { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; height: 76px; }
.nav .logo img { height: 30px; width: auto; }
.nav-links { display: flex; gap: 36px; font-size: 14px; color: var(--muted); }
.nav-links a { position: relative; padding: 6px 0; transition: color 0.2s; }
.nav-links a:hover, .nav-links a[aria-current='page'] { color: var(--cream); }
.nav-links a[aria-current='page']::after { content: ''; position: absolute; left: 0; right: 0; bottom: -2px; height: 1px; background: var(--red); }
.nav .btn-outline { justify-self: end; }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; padding: 120px 0 140px; isolation: isolate; }
.hero::before { content: ''; position: absolute; inset: 0; z-index: -1; background: radial-gradient(60% 70% at 85% 45%, rgba(200, 16, 46, 0.1), transparent 70%), radial-gradient(50% 60% at 0% 0%, rgba(243, 233, 215, 0.04), transparent 70%); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: center; }
.hero-copy { position: relative; z-index: 2; }
.hero .lead { margin-top: 30px; }
.cta { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 30px; margin-top: 44px; }
.fineprint { margin: 22px 0 0; font-size: 13px; color: var(--dim); }
.fineprint a { color: var(--muted); text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 3px; }
.fineprint a:hover { color: var(--cream); }
.fineprint .sep { margin: 0 8px; opacity: 0.5; }

.hero-visual { position: relative; perspective: 1800px; margin-right: calc(-1 * max(32px, (100vw - var(--wrap)) / 2 + 32px)); }
.hero-visual .device {
  position: relative;
  width: 118%;
  transform: rotateY(-16deg) rotateX(5deg) rotateZ(1deg);
  transform-origin: left center;
  border-radius: 14px;
  padding: 10px;
  background: linear-gradient(180deg, #1d1a18, #121010);
  border: 1px solid var(--line-2);
  box-shadow: 0 60px 120px -30px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(0, 0, 0, 0.6);
}
.hero-visual .device img { border-radius: 8px; }
.hero-visual::after { content: ''; position: absolute; inset: -2px; pointer-events: none; background: linear-gradient(90deg, var(--bg) 0%, transparent 18%, transparent 70%, var(--bg) 100%), linear-gradient(0deg, var(--bg) 0%, transparent 25%); }
.case-chip { position: absolute; left: 6%; bottom: -18px; z-index: 3; display: inline-flex; align-items: center; gap: 10px; padding: 12px 16px; font: 600 11px/1 var(--sans); letter-spacing: 0.2em; text-transform: uppercase; color: var(--cream); background: rgba(17, 15, 14, 0.9); border: 1px solid var(--line-2); border-radius: 6px; backdrop-filter: blur(8px); }
.case-chip::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--red); }
.case-chip span { color: var(--muted); }

/* pasek cech */
.facts { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--bg-1); }
.facts ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.facts li { padding: 28px 28px; border-left: 1px solid var(--line); }
.facts li:first-child { border-left: 0; padding-left: 0; }
.facts strong { display: block; font: 400 24px/1.15 var(--serif); color: var(--cream); margin-bottom: 4px; }
.facts span { font-size: 14px; color: var(--muted); }

/* ---------- sekcje ---------- */
section { position: relative; padding: 140px 0; }
.section-alt { background: var(--bg-1); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

/* możliwości */
.feature { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 80px; align-items: center; }
.feature + .feature { margin-top: 140px; }
.feature:nth-child(even) { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.feature:nth-child(even) .feature-text { order: 2; }
.num { display: block; font: 500 12px/1 var(--sans); letter-spacing: 0.24em; color: var(--red-hi); margin-bottom: 20px; }
.feature p { color: var(--muted); margin: 0; }
.ticks { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 12px; }
.ticks li { position: relative; padding-left: 28px; color: var(--text); font-size: 15px; }
.ticks li::before { content: ''; position: absolute; left: 0; top: 12px; width: 14px; height: 1px; background: var(--red); }

.frame { position: relative; margin: 0; border-radius: var(--radius); padding: 8px; background: linear-gradient(180deg, #1f1c19, #141210); border: 1px solid var(--line-2); box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.85); transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease); }
.frame img { border-radius: 6px; }
.frame > a { display: block; cursor: zoom-in; border-radius: 6px; }
.frame:hover { transform: translateY(-4px); box-shadow: 0 50px 90px -30px rgba(0, 0, 0, 0.95); }
.frame figcaption { position: absolute; left: 22px; bottom: -14px; padding: 8px 12px; font-size: 12px; color: var(--muted); background: var(--surface-2); border: 1px solid var(--line-2); border-radius: 6px; }

/* co nowego */
.news { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 80px; }
.badge { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 99px; border: 1px solid rgba(200, 16, 46, 0.5); color: #ff9aa9; font: 600 12px/1 var(--sans); letter-spacing: 0.06em; background: rgba(200, 16, 46, 0.08); }
.news .lead { margin: 22px 0 32px; font-size: 16px; }
.link-arrow { display: inline-flex; align-items: center; gap: 10px; color: var(--cream); font-weight: 600; font-size: 15px; border-bottom: 1px solid var(--line-2); padding-bottom: 6px; transition: border-color 0.2s, gap 0.2s var(--ease); }
.link-arrow:hover { border-color: var(--red); gap: 14px; }
.news-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.news-grid li { background: var(--bg-1); padding: 30px 30px 32px; transition: background 0.25s; }
.news-grid li:hover { background: var(--surface); }
.news-grid h3 { font: 400 23px/1.2 var(--serif); color: var(--cream); margin: 0 0 8px; }
.news-grid p { margin: 0; font-size: 14.5px; color: var(--muted); }

/* jak to działa */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; counter-reset: step; }
.steps li { counter-increment: step; position: relative; padding: 40px 34px 38px; border: 1px solid var(--line); border-radius: var(--radius); background: linear-gradient(180deg, var(--surface), var(--bg-1)); transition: border-color 0.25s, transform 0.4s var(--ease); }
.steps li:hover { border-color: var(--line-2); transform: translateY(-3px); }
.steps li::before { content: '0' counter(step); display: block; font: italic 400 56px/1 var(--serif); color: var(--red-hi); margin-bottom: 30px; }
.steps h3 { font: 400 26px/1.15 var(--serif); color: var(--cream); margin: 0 0 10px; }
.steps p { margin: 0; color: var(--muted); font-size: 15px; }
.steps.flow li::before { content: counter(step) ''; display: none; }
.steps.flow { counter-reset: none; }
.steps.flow li { padding-top: 34px; }
.steps.flow li h3::before { content: ''; display: block; width: 10px; height: 10px; border-radius: 50%; background: var(--red-hi); box-shadow: 0 0 0 5px rgba(200, 16, 46, 0.18); margin-bottom: 22px; }
.steps.flow li:not(:last-child)::after { content: ''; position: absolute; top: 39px; left: calc(100% - 20px); width: 64px; height: 1px; background: linear-gradient(90deg, var(--red-hi), rgba(200, 16, 46, 0)); z-index: 1; }
@media (max-width: 920px) { .steps.flow li:not(:last-child)::after { display: none; } }

/* pytania */
.faq { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 80px; }
.faq-list { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 26px 4px; font: 400 23px/1.3 var(--serif); color: var(--cream); transition: color 0.2s; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: #fff; }
.faq summary::after { content: ''; flex: none; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line-2); background: linear-gradient(var(--cream), var(--cream)) center / 11px 1px no-repeat, linear-gradient(var(--cream), var(--cream)) center / 1px 11px no-repeat; transition: transform 0.3s var(--ease), border-color 0.2s; }
.faq details[open] summary::after { transform: rotate(45deg); border-color: var(--red); }
.faq dd, .faq .answer { margin: 0; padding: 0 60px 28px 4px; color: var(--muted); }
.faq .answer p { margin: 0 0 10px; }
.faq .answer p:last-child { margin: 0; }

/* baner końcowy */
.final { padding: 0 0 140px; }
.final-card { position: relative; overflow: hidden; border-radius: 18px; border: 1px solid var(--line-2); padding: 96px 64px; text-align: center; isolation: isolate; background: #0e0c0b; }
.final-card::before { content: ''; position: absolute; inset: 0; z-index: -2; background: url('img/cta-bg.webp') center / cover no-repeat; opacity: 0.35; }
.final-card::after { content: ''; position: absolute; inset: 0; z-index: -1; background: radial-gradient(70% 90% at 50% 50%, rgba(11, 10, 9, 0.55), rgba(11, 10, 9, 0.95)); }
.final-card .h2 { margin-bottom: 14px; }
.final-card .lead { margin: 0 auto 36px; }
.final-card .fineprint { margin-top: 20px; }

/* stopka */
.footer { border-top: 1px solid var(--line); padding: 56px 0 64px; color: var(--dim); font-size: 14px; }
.footer .wrap { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 28px 40px; align-items: start; }
.footer .logo img { height: 26px; width: auto; margin-bottom: 14px; }
.footer p { margin: 0; max-width: 36em; }
.footer nav { display: flex; gap: 28px; flex-wrap: wrap; }
.footer nav a { color: var(--muted); transition: color 0.2s; }
.footer nav a:hover { color: var(--cream); }

/* ---------- dziennik zmian ---------- */
.page-hero { padding: 110px 0 70px; position: relative; overflow: hidden; }
.page-hero::before { content: ''; position: absolute; inset: 0; z-index: -1; background: radial-gradient(50% 80% at 90% 0%, rgba(200, 16, 46, 0.1), transparent 70%); }
.page-hero .lead { margin-top: 24px; }
.timeline { position: relative; padding-bottom: 120px; }
.stage::after { content: ''; position: absolute; left: 191px; top: 24px; bottom: 0; width: 1px; background: var(--line-2); }
.stage:last-child::after { display: none; }
.stage.current::after { background: linear-gradient(var(--red), var(--line-2) 160px); }
.stage { position: relative; display: grid; grid-template-columns: 160px minmax(0, 1fr); gap: 64px; padding-bottom: 72px; }
.stage::before { content: ''; position: absolute; left: 186px; top: 6px; width: 11px; height: 11px; border-radius: 50%; background: var(--bg); border: 1px solid var(--line-2); }
.stage.current::before { background: var(--red); border-color: var(--red); box-shadow: 0 0 0 5px rgba(200, 16, 46, 0.18); }
.stage-meta { text-align: right; padding-top: 0; }
.stage-meta .stage-no { display: block; font: 600 11.5px/1 var(--sans); letter-spacing: 0.24em; text-transform: uppercase; color: var(--text); margin-bottom: 10px; }
.stage-meta time { font-size: 14px; color: var(--muted); }
.stage-meta .badge { margin-top: 14px; }
.stage-body { border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-1); padding: 36px 40px 34px; transition: border-color 0.25s; }
.stage-body:hover { border-color: var(--line-2); }
.stage-body h2 { font: 400 clamp(28px, 3vw, 36px)/1.1 var(--serif); color: var(--cream); margin: 0 0 20px; }
.stage-body h3 { font: 600 11.5px/1 var(--sans); letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); margin: 30px 0 14px; }
.stage-body ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.stage-body li { position: relative; padding-left: 26px; font-size: 15.5px; }
.stage-body li::before { content: ''; position: absolute; left: 0; top: 12px; width: 12px; height: 1px; background: var(--red); }

/* ---------- responsywność ---------- */
@media (max-width: 1100px) {
  .nav-links { gap: 24px; }
  .feature, .feature:nth-child(even) { gap: 56px; }
  .news, .faq { gap: 48px; }
}
@media (max-width: 920px) {
  .wrap { padding: 0 24px; }
  .nav .wrap { grid-template-columns: auto 1fr; height: 66px; }
  .nav-links { display: none; }
  .hero { padding: 72px 0 96px; }
  .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 64px; }
  .hero-visual { margin-right: -24px; }
  .hero-visual .device { width: 112%; transform: rotateY(-10deg) rotateX(4deg); }
  .facts ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .facts li { padding: 22px 20px; }
  .facts li:nth-child(odd) { border-left: 0; padding-left: 0; }
  .facts li:nth-child(n + 3) { border-top: 1px solid var(--line); }
  section { padding: 96px 0; }
  .section-head { margin-bottom: 52px; }
  .feature, .feature:nth-child(even) { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .feature:nth-child(even) .feature-text { order: 0; }
  .feature + .feature { margin-top: 96px; }
  .news, .faq { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .steps { grid-template-columns: minmax(0, 1fr); }
  .final { padding-bottom: 96px; }
  .final-card { padding: 64px 28px; }
  .stage::after { left: 5px; }
  .stage { grid-template-columns: minmax(0, 1fr); gap: 16px; padding-left: 32px; padding-bottom: 48px; }
  .stage::before { left: 0; }
  .stage-meta { text-align: left; display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; }
  .stage-meta .stage-no { margin: 0; }
  .stage-meta .badge { margin: 0; }
}
@media (max-width: 560px) {
  .wrap { padding: 0 20px; }
  .nav .logo img { height: 24px; }
  .nav .btn-outline { padding: 0 12px; min-height: 38px; font-size: 13px; }
  .hero { padding: 56px 0 80px; }
  .lead { font-size: 16.5px; }
  .cta { gap: 14px; }
  .cta .btn-primary { width: 100%; }
  .facts ul { grid-template-columns: minmax(0, 1fr); }
  .facts li, .facts li:nth-child(odd) { border-left: 0; padding: 18px 0; }
  .facts li + li { border-top: 1px solid var(--line); }
  .news-grid { grid-template-columns: minmax(0, 1fr); }
  .news-grid li { padding: 24px 22px; }
  .faq summary { font-size: 20px; padding: 22px 0; }
  .faq .answer { padding: 0 0 24px; }
  .stage-body { padding: 26px 22px; }
  .frame figcaption { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
.news .h2 { margin-top: 22px; }
.dl-meta { margin: 22px 0 0; font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.dl-meta a { color: var(--cream); text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 3px; }
.dl-meta a:hover { text-decoration-color: var(--red-hi); }
.dl-meta .sep { margin: 0 8px; opacity: 0.5; }
.dl-meta + .fineprint, .fineprint + .fineprint { margin-top: 6px; }
.fineprint strong { font-weight: 500; color: var(--muted); }
.final-card .dl-meta { margin-top: 20px; }
#jak-to-dziala { padding-top: 40px; }
