/* Bliżej Chmur, kierunek A „Sesja agenta”. Tokeny z marki Mejlo: dane/brand_guidelines.md */
:root {
  --bg: #080B12;
  --bg2: #0C111C;
  --panel: #111826;
  --ink: #EAEEF8;
  --ink2: #9AA6BE;
  --ink3: #8490A8;
  --blue: #4D9BFF;
  --blue-dk: #2B6BE4;
  --green: #2FD79A;
  --amber: #FFA23E;
  --line: rgba(122, 158, 214, .16);
  --line-glow: rgba(77, 155, 255, .55);
  --mono: 'Martian Mono', ui-monospace, monospace;
  --sans: 'Instrument Sans', system-ui, sans-serif;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--sans); font-size: 17px; line-height: 1.6; }
a { color: var(--blue); }
a:hover { color: var(--ink); }
a:focus-visible, .log:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 6px; }


.wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }

/* Nagłówek */
.top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding: 22px 0; border-bottom: 1px solid var(--line); font-family: var(--mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }
.logo { display: inline-flex; align-items: center; color: var(--ink); font-weight: 500; text-decoration: none; min-height: 44px; }

/* Powitanie */
.hello { display: flex; flex-wrap: wrap; align-items: center; gap: 20px 18px; padding: 32px 0 28px; }
.chmura { flex: 0 0 300px; display: flex; justify-content: center; }
.chmura img { width: 100%; max-width: 300px; height: auto; display: block; }
.dymek { flex: 1 1 380px; max-width: 640px; position: relative; padding: 24px 30px; background: var(--ink); color: var(--bg); border: 3px solid var(--bg); border-radius: 32px; box-shadow: 5px 5px 0 var(--blue); }
.dymek p { position: relative; margin: 0; font-weight: 600; font-size: clamp(17px, 1.6vw, 20px); line-height: 1.45; }
.ogonek { position: absolute; left: -14px; top: 50%; margin-top: -16px; width: 32px; height: 32px; background: var(--ink); border-radius: 4px; transform: rotate(45deg); }

/* Wstęp */
.intro { display: flex; flex-direction: column; gap: 14px; padding: 12px 0 72px; }
.kto { margin: 0; font-family: var(--mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--blue); }
.intro .przycisk { align-self: flex-start; margin-top: 10px; }
.intro h1 { margin: 0; font-family: var(--mono); font-weight: 800; font-size: clamp(24px, 3.2vw, 40px); line-height: 1.14; letter-spacing: -.03em; text-wrap: balance; max-width: 980px; }
.intro p { margin: 0; max-width: 640px; font-size: 19px; color: var(--ink2); }
.kursor { display: inline-block; width: .5em; height: .9em; background: var(--blue); margin-left: .15em; vertical-align: -.08em; }

/* Log serii */
.log { border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: var(--bg2); }
.log h2 { margin: 0; padding: 16px 20px; border-bottom: 1px solid var(--line); font-family: var(--mono); font-size: 12px; font-weight: 500; letter-spacing: .08em; color: var(--ink); text-transform: uppercase; }
.odcinki { list-style: none; margin: 0; padding: 0; font-family: var(--mono); font-size: 15px; }
.wiersz { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 20px; padding: 18px 20px; min-height: 56px; border-bottom: 1px solid rgba(122, 158, 214, .10); color: var(--ink); text-decoration: none; }
.odcinki li:last-child .wiersz { border-bottom: 0; }
a.wiersz:hover { background: rgba(77, 155, 255, .08); color: var(--ink); }
a.wiersz:hover .akcja { color: var(--ink); }
.tag { width: 104px; flex: none; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }
.tag::before { content: "["; }
.tag::after { content: "]"; }
.tag-on { color: var(--green); }
.tag-soon { color: var(--amber); }
.temat { flex: 0 1 auto; min-width: 0; line-height: 1.45; font-family: var(--sans); font-size: 17px; display: flex; flex-direction: column; gap: 2px; }
.temat strong { font-weight: 600; }
.temat small { font-size: 14px; color: var(--ink3); }
.wkrotce .temat { font-weight: 600; }
.wiersz { align-items: center; }
.akcja { margin-left: auto; padding-left: 16px; font-size: 12px; color: var(--blue); white-space: nowrap; }
.wkrotce { color: var(--ink3); }

/* Dla kogo */
.dlakogo { padding: 88px 0; }
.dlakogo p { margin: 0; max-width: 860px; font-size: clamp(22px, 2.6vw, 30px); line-height: 1.45; font-weight: 600; }

/* Zaproszenie */
.cta { display: flex; flex-wrap: wrap; align-items: center; gap: 28px 40px; padding: 52px; background: #0F1B33; border: 1px solid var(--line-glow); border-radius: 20px; margin-bottom: 72px; }
.cta p { flex: 999 1 420px; margin: 0; font-size: clamp(20px, 2vw, 24px); line-height: 1.5; font-weight: 600; }
.przycisk { flex: none; display: inline-flex; align-items: center; min-height: 52px; padding: 0 28px; border-radius: 100px; background: var(--blue); color: var(--bg); font-family: var(--sans); font-weight: 600; font-size: 17px; text-decoration: none; transition: background .15s, box-shadow .15s; }
.przycisk:hover { background: var(--ink); color: var(--bg); box-shadow: 0 0 18px rgba(77, 155, 255, .5); }

.stopka { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 24px; padding: 20px 0 36px; border-top: 1px solid var(--line); font-family: var(--mono); font-size: 12px; letter-spacing: .08em; color: var(--ink3); text-transform: uppercase; }
.stopka nav { display: flex; flex-wrap: wrap; gap: 0 20px; }
.stopka nav a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; color: var(--ink3); }
.stopka nav a:hover { color: var(--ink); }

/* Ruch */
@keyframes wejscie { 0% { opacity: 0; transform: translateY(60px) scale(.8); } 60% { opacity: 1; transform: translateY(-10px) scale(1.04); } 100% { opacity: 1; transform: none; } }
@keyframes unoszenie { 0%, 100% { transform: translateY(0) rotate(-1deg); } 50% { transform: translateY(-14px) rotate(1.5deg); } }
@keyframes pop { 0% { opacity: 0; transform: scale(.3) rotate(-4deg); } 70% { opacity: 1; transform: scale(1.06) rotate(1deg); } 100% { opacity: 1; transform: none; } }
@keyframes miganie { 0%, 49% { opacity: 1; } 50%, 100% { opacity: 0; } }
.chmura { animation: wejscie .8s cubic-bezier(.3, 1.4, .5, 1) both, unoszenie 4s ease-in-out 1s infinite; }
.dymek { transform-origin: 0 85%; animation: pop .55s cubic-bezier(.3, 1.5, .5, 1) .7s both; }
.kursor { animation: miganie 1.1s steps(1) infinite; }

/* Telefon */
@media (max-width: 760px) {
  .hello { padding: 20px 0 20px; gap: 26px; justify-content: center; }
  .chmura { flex-basis: 150px; }
  .chmura img { max-width: 150px; }
  .dymek p { font-size: 16px; }
  .dymek { padding: 18px 20px; transform-origin: 50% 0; box-shadow: 5px 5px 0 var(--blue); margin-right: 5px; }
  .intro .przycisk { align-self: stretch; }
  .ogonek { width: 26px; height: 26px; left: 50%; top: -11px; margin-top: 0; margin-left: -13px; }
  .tag { width: auto; }
  .temat { flex-basis: 100%; }
  .cta { padding: 28px 24px; }
  .przycisk { width: 100%; justify-content: center; }
  .dlakogo { padding: 64px 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .chmura, .dymek, .kursor { animation: none; }
}
