/* =====================================================
   kamilrylow.com — szata "prestige"
   Prawie czarne tło, złoty akcent, szeryfowe nagłówki.
   EDYCJA: kolory zmieniasz w :root poniżej.
   ===================================================== */
:root {
  --bg: #0b0d11;            /* tło strony */
  --panel: #12151c;         /* panele i karty */
  --panel-2: #171b24;       /* ciemne pasy sekcji */
  --text: #eae7e0;          /* tekst podstawowy (ciepła biel) */
  --muted: #a2a9b4;         /* tekst drugorzędny */
  --gold: #c9a15e;          /* akcent główny */
  --gold-bright: #e6c88f;   /* akcent jaśniejszy */
  --line: rgba(201, 161, 94, .25);   /* złote linie */
  --line-soft: rgba(255, 255, 255, .08); /* neutralne linie */
  --radius: 4px;
  --maxw: 1060px;
  --serif: 'Fraunces', Georgia, 'Times New Roman', serif;
  --sans: 'Inter', system-ui, sans-serif;
  --mono: 'DejaVu Sans Mono', ui-monospace, Menlo, Consolas, monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
}

body {
  font-family: var(--sans);
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  font-size: 16.5px;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { font-family: var(--serif); font-weight: 600; color: var(--text); line-height: 1.12; }
em, .accent { font-style: italic; color: var(--gold-bright); }
a { color: var(--gold-bright); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }

/* mikro-etykiety */
.kicker {
  font-family: var(--mono);
  font-size: .72rem; letter-spacing: .32em; text-transform: uppercase;
  color: var(--gold);
}

/* ---------- nawigacja ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(11, 13, 17, .82);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line-soft);
}
.nav .wrap {
  display: flex; align-items: center; justify-content: space-between;
  height: 66px;
}
.wordmark {
  font-family: var(--serif); font-weight: 600; font-size: 1.15rem;
  color: var(--text); letter-spacing: .02em;
}
.wordmark span { color: var(--gold); }
.wordmark:hover { text-decoration: none; }
.nav-links { display: flex; gap: 30px; align-items: center; }
.nav-links a {
  color: var(--muted); font-weight: 500; font-size: .88rem;
  letter-spacing: .04em; position: relative;
}
.nav-links a:hover { color: var(--text); text-decoration: none; }
.nav-links a:not(.lang-switch)::after {
  content: ""; position: absolute; left: 0; bottom: -6px;
  width: 100%; height: 1px; background: var(--gold);
  transform: scaleX(0); transform-origin: left;
  transition: transform .3s ease;
}
.nav-links a:not(.lang-switch):hover::after { transform: scaleX(1); }
.nav-links a[aria-current="page"] { color: var(--text); }
.nav-links a[aria-current="page"]:not(.lang-switch)::after { transform: scaleX(1); }
.nav-links a.lang-switch {
  border: 1px solid var(--line); border-radius: 2px;
  padding: 4px 12px; font-family: var(--mono); font-size: .72rem;
  letter-spacing: .18em; color: var(--gold);
  transition: background .2s ease, color .2s ease;
}
.nav-links a.lang-switch:hover { background: var(--gold); color: #0b0d11; text-decoration: none; }

/* ---------- hero ---------- */
.hero {
  position: relative; overflow: hidden;
  padding: 108px 0 0;
  border-bottom: 1px solid var(--line-soft);
}
.hero canvas.net {
  position: absolute; inset: 0; width: 100%; height: 100%;
  opacity: .5; pointer-events: none;
}
.hero .wrap { position: relative; z-index: 1; }
.hero-grid {
  display: grid; grid-template-columns: 1.25fr .75fr;
  gap: 56px; align-items: center;
  padding-bottom: 84px;
}
.hero h1 {
  font-size: clamp(2.6rem, 6vw, 4.2rem);
  font-weight: 500;
  margin-top: 22px;
  letter-spacing: -.01em;
}
.hero .pitch {
  margin-top: 26px; color: var(--muted); max-width: 50ch; font-size: 1.05rem;
}
.hero-cta { margin-top: 40px; display: flex; gap: 18px; flex-wrap: wrap; }
.btn {
  display: inline-block; padding: 14px 30px;
  font-family: var(--mono); font-size: .78rem;
  letter-spacing: .22em; text-transform: uppercase;
  border: 1px solid var(--gold); border-radius: 2px;
  cursor: pointer;
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease, color .25s ease;
}
.btn-solid { background: var(--gold); color: #0b0d11; font-weight: 600; }
.btn-solid:hover {
  background: var(--gold-bright); text-decoration: none;
  transform: translateY(-2px); box-shadow: 0 14px 34px rgba(201,161,94,.28);
}
.btn-ghost { color: var(--gold-bright); background: transparent; }
.btn-ghost:hover {
  background: rgba(201,161,94,.1); text-decoration: none;
  transform: translateY(-2px);
}

/* pasek liczb pod hero */
.stats {
  border-top: 1px solid var(--line-soft);
  display: grid; grid-template-columns: repeat(4, 1fr);
}
.stat {
  padding: 30px 20px 34px;
  border-left: 1px solid var(--line-soft);
  text-align: left;
}
.stat:first-child { border-left: none; padding-left: 0; }
.stat .num {
  font-family: var(--serif); font-size: 2.4rem; font-weight: 500;
  color: var(--gold-bright); line-height: 1;
}
.stat .unit { font-family: var(--serif); font-size: 1.5rem; color: var(--gold); }
.stat .lbl {
  display: block; margin-top: 8px;
  font-size: .8rem; color: var(--muted); letter-spacing: .06em;
}

/* terminal — dyskretny panel statusu */
.term {
  background: rgba(13, 16, 22, .85);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-family: var(--mono); font-size: .82rem;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0,0,0,.5);
}
.term-bar {
  padding: 12px 16px; display: flex; gap: 8px; align-items: center;
  border-bottom: 1px solid var(--line-soft);
}
.term-bar i { width: 9px; height: 9px; border-radius: 50%; background: #2a2f3a; display: block; }
.term-bar i:first-child { background: var(--gold); }
.term-body { padding: 20px 20px 24px; color: #cbd4e0; }
.term-body .p { color: var(--gold-bright); }
.term-body .out { color: #8d98a8; }
.term-body .ok { color: #86d3a5; }
.term-line { margin-bottom: 8px; white-space: pre-wrap; }
.caret {
  display: inline-block; width: 8px; height: 1em; background: var(--gold-bright);
  vertical-align: text-bottom; animation: blink 1.1s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

/* ---------- sekcje ---------- */
.section { padding: 96px 0; }
.section.alt { background: var(--panel-2); border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); }
.section-head { margin-bottom: 56px; }
.section-head h2 {
  font-size: clamp(1.9rem, 3.6vw, 2.7rem); font-weight: 500;
  margin-top: 16px;
}
.lead { color: var(--muted); max-width: 66ch; }

/* usługi — numerowane wiersze edytorskie */
.services { border-top: 1px solid var(--line-soft); }
.service {
  display: grid; grid-template-columns: 110px 1fr;
  gap: 34px; padding: 44px 0;
  border-bottom: 1px solid var(--line-soft);
  transition: background .3s ease, padding-left .3s ease;
}
.service:hover { background: rgba(201,161,94,.045); padding-left: 14px; }
.service .no {
  font-family: var(--serif); font-size: 2rem; font-weight: 500;
  color: var(--gold); line-height: 1;
}
.service h3 { font-size: 1.45rem; font-weight: 500; margin-bottom: 12px; }
.service p { color: var(--muted); max-width: 68ch; }
.tags { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 10px; }
.tag {
  font-family: var(--mono); font-size: .68rem;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--gold-bright);
  border: 1px solid var(--line); border-radius: 2px;
  padding: 4px 10px;
  transition: background .2s ease, color .2s ease, transform .2s ease;
}
.tag:hover { background: var(--gold); color: #0b0d11; transform: translateY(-2px); }

/* proces — rzymskie numerały */
.steps { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 1px solid var(--line-soft); }
.steps li {
  padding: 36px 26px 40px 0; margin-right: 26px;
  border-top: 2px solid transparent;
  color: var(--muted);
  position: relative;
  transition: border-color .3s ease;
}
.steps li::after {
  content: ""; position: absolute; top: -1px; left: 0;
  width: 0; height: 1px; background: var(--gold);
  transition: width .8s cubic-bezier(.22,1,.36,1);
}
.steps li.is-visible::after, .steps li:hover::after { width: calc(100% - 26px); }
.steps .roman {
  display: block;
  font-family: var(--serif); font-style: italic;
  font-size: 1.7rem; color: var(--gold);
  margin-bottom: 14px;
}
.steps b { color: var(--text); font-weight: 600; display: block; margin-bottom: 6px; }

/* o mnie */
.about-grid { display: grid; grid-template-columns: 240px 1fr; gap: 64px; align-items: start; }
.about-photo-frame {
  position: relative; width: 240px; height: 240px;
}
.about-photo {
  width: 100%; height: 100%; border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--line);
  padding: 10px;
  transition: transform .35s ease;
}
.about-photo-frame::after {
  content: ""; position: absolute; inset: -12px;
  border: 1px solid var(--line-soft); border-radius: 50%;
  pointer-events: none;
}
.about-photo:hover { transform: scale(1.02); }

/* lista atutów — cienkie linie zamiast kart */
.merits { margin-top: 34px; border-top: 1px solid var(--line-soft); }
.merit {
  display: grid; grid-template-columns: 26px 1fr; gap: 16px;
  padding: 16px 0; border-bottom: 1px solid var(--line-soft);
  color: var(--muted);
}
.merit::before { content: "—"; color: var(--gold); }
.merit b { color: var(--text); }

/* social — złote monogramy w stylu pierwiastków */
.socials { display: flex; gap: 12px; margin-top: 30px; flex-wrap: wrap; }
.social {
  width: 44px; height: 44px;
  border: 1px solid var(--line); border-radius: 3px;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--serif); font-style: italic; font-weight: 600;
  font-size: 1.05rem; color: var(--gold-bright);
  transition: background .25s ease, color .25s ease, transform .25s ease, box-shadow .25s ease;
}
.social:hover {
  background: var(--gold); color: #0b0d11; text-decoration: none;
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(201,161,94,.3);
}

/* pas CTA */
.cta-band { padding: 110px 0; text-align: center; position: relative; overflow: hidden; }
.cta-band h2 {
  font-size: clamp(2rem, 4.5vw, 3.2rem); font-weight: 500; margin: 18px 0 34px;
}

/* ---------- blog ---------- */
.post-list { border-top: 1px solid var(--line-soft); display: block; }
.post-card {
  display: grid; grid-template-columns: 170px 1fr;
  gap: 34px; padding: 38px 0;
  border-bottom: 1px solid var(--line-soft);
  color: inherit;
  transition: background .3s ease, padding-left .3s ease;
}
.post-card:hover { text-decoration: none; background: rgba(201,161,94,.045); padding-left: 14px; }
.post-card .meta {
  font-family: var(--mono); font-size: .72rem;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--gold); padding-top: 6px;
}
.post-card h3 { font-size: 1.4rem; font-weight: 500; margin-bottom: 8px; }
.post-card p { color: var(--muted); }

.post-view { max-width: 740px; margin: 0 auto; }
.post-view .meta {
  font-family: var(--mono); font-size: .74rem; letter-spacing: .12em;
  text-transform: uppercase; color: var(--gold); margin-bottom: 30px;
}
.post-view h2 { font-size: clamp(1.9rem, 3.5vw, 2.6rem); font-weight: 500; margin-bottom: 14px; }
.back-link {
  display: inline-block; margin-bottom: 26px;
  font-family: var(--mono); font-size: .74rem; letter-spacing: .18em; text-transform: uppercase;
}
.post-body { color: var(--text); }
.post-body h2 { font-size: 1.5rem; margin: 40px 0 16px; }
.post-body h3 { font-size: 1.2rem; margin: 30px 0 12px; }
.post-body p, .post-body ul, .post-body ol { margin-bottom: 18px; color: #cfd6df; }
.post-body ul, .post-body ol { padding-left: 26px; }
.post-body code {
  font-family: var(--mono); font-size: .86em;
  background: var(--panel); border: 1px solid var(--line-soft);
  border-radius: 3px; padding: 1px 7px;
}
.post-body pre {
  background: #080a0e; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 20px 22px;
  overflow-x: auto; margin-bottom: 20px;
}
.post-body pre code { background: none; border: none; padding: 0; color: #cbd4e0; }
.post-body blockquote {
  border-left: 2px solid var(--gold); padding: 4px 0 4px 22px;
  color: var(--muted); font-style: italic; margin-bottom: 18px;
}
.post-body img { max-width: 100%; border-radius: var(--radius); }

/* ---------- stopka ---------- */
.footer {
  border-top: 1px solid var(--line-soft);
  padding: 60px 0; color: var(--muted);
}
.footer .wrap { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.footer .small { font-size: .78rem; color: #6d7580; font-family: var(--mono); letter-spacing: .06em; }

/* ---------- animacje ---------- */
.reveal {
  opacity: 0; transform: translateY(30px);
  transition: opacity .7s cubic-bezier(.22,1,.36,1), transform .7s cubic-bezier(.22,1,.36,1);
}
.reveal.is-visible { opacity: 1; transform: none; }

@keyframes hero-in {
  from { opacity: 0; transform: translateY(26px); }
  to { opacity: 1; transform: none; }
}
.hero .kicker, .hero h1, .hero .pitch, .hero .hero-cta, .hero .term {
  animation: hero-in .8s cubic-bezier(.22,1,.36,1) backwards;
}
.hero h1 { animation-delay: .1s; }
.hero .pitch { animation-delay: .22s; }
.hero .hero-cta { animation-delay: .34s; }
.hero .term { animation-delay: .26s; }

@keyframes shimmer { to { background-position: 250% center; } }
.hero h1 em {
  font-style: italic;
  background: linear-gradient(100deg, var(--gold) 20%, #f0dcae 40%, var(--gold) 60%);
  background-size: 250% auto;
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
  animation: shimmer 5.5s linear infinite;
}

.to-top {
  position: fixed; right: 24px; bottom: 24px; z-index: 60;
  width: 48px; height: 48px; border-radius: 50%;
  background: rgba(18, 21, 28, .9); border: 1px solid var(--gold);
  color: var(--gold-bright); font-size: 1.1rem; cursor: pointer;
  opacity: 0; transform: translateY(12px); pointer-events: none;
  transition: opacity .3s ease, transform .4s ease, background .2s ease, color .2s ease;
}
.to-top.show { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { background: var(--gold); color: #0b0d11; }

/* ---------- responsywność ---------- */
@media (max-width: 900px) {
  .hero-grid, .about-grid { grid-template-columns: 1fr; gap: 44px; }
  .about-photo-frame { margin: 0 auto; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(odd) { border-left: none; padding-left: 0; }
  .stat { padding-left: 20px; }
  .steps { grid-template-columns: 1fr; }
  .steps li { margin-right: 0; padding-right: 0; }
  .steps li.is-visible::after, .steps li:hover::after { width: 100%; }
  .service { grid-template-columns: 1fr; gap: 10px; padding: 34px 0; }
  .post-card { grid-template-columns: 1fr; gap: 8px; padding: 30px 0; }
  .section { padding: 72px 0; }
  .hero { padding-top: 72px; }
}
