/* eterlab.app – strona zamkniętej bety. Tokeny z brandbooku aplikacji 1.4. */
@font-face { font-family: "Geist"; src: url("geist.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }

:root {
  --bg: #0e0e10; --card: #19191c; --well: #111113; --raised: #242428; --hover: #2b2b30; --line: #2a2a2f;
  --t1: #f4f4f6; --t2: #a2a2a9; --t3: #80808a;
  --orange: #ff4f00; --orange-ink: #1f0b02;
  --red: #f6486f;
  --r-card: 22px; --r-pad: 18px; --r-inner: 14px;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-inout: cubic-bezier(0.65, 0, 0.35, 1);
  --f: "Geist", -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", sans-serif;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { background: var(--bg); color: var(--t1); -webkit-text-size-adjust: 100%; }
body { margin: 0; min-height: 100vh; font: 500 15px/1.5 var(--f); -webkit-font-smoothing: antialiased; background: var(--bg);
  display: flex; flex-direction: column; overflow-x: hidden; }
::selection { background: rgba(244, 244, 246, 0.22); }
:focus-visible { outline: 2px solid rgba(244, 244, 246, 0.55); outline-offset: 2px; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }

.top, main, .foot { width: 100%; max-width: 1120px; margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left)); padding-right: max(16px, env(safe-area-inset-right)); }
@media (min-width: 640px) { .top, main, .foot { padding-left: 32px; padding-right: 32px; } }

/* ---------- pasek ---------- */
.top { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 72px; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700; font-size: 19px; letter-spacing: -0.02em; border-radius: 10px; }
.logo-mark { width: 26px; height: 26px; fill: var(--t1); }
.chip { display: inline-flex; align-items: center; height: 28px; padding: 0 12px; border-radius: 999px; background: var(--card); color: var(--t2);
  font-size: 13px; font-weight: 600; white-space: nowrap; }

/* ---------- pierwszy ekran ---------- */
.hero { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; padding: 12px 0 40px; align-items: center; overflow-x: clip; }
/* poświata błysku sięga dalej niż ekran telefonu – tniemy ją w poziomie (jest już przezroczysta) */
.stage { display: flex; flex-direction: column; align-items: center; gap: 26px; padding: 8px 0 4px; }
.intro { min-width: 0; }
@media (min-width: 920px) {
  .hero { grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr); gap: 48px; padding: 40px 0 72px; min-height: min(680px, calc(100vh - 72px)); }
  .stage { order: 2; }
}

h1 { font-size: clamp(34px, 5.4vw, 60px); line-height: 1.04; letter-spacing: -0.035em; font-weight: 700; text-wrap: balance; }
h1 .dim { color: var(--t2); }
.lead { margin-top: 18px; max-width: 34em; color: var(--t2); font-size: 17px; line-height: 1.55; text-wrap: pretty; }
@media (max-width: 919px) { .intro { text-align: left; } }

/* ---------- znak (warstwy jak w intrze aplikacji) ---------- */
.mark { position: relative; width: clamp(160px, 44vw, 208px); aspect-ratio: 1; flex: none; }
@media (min-width: 920px) { .mark { width: clamp(220px, 24vw, 290px); } }
.mark > * { position: absolute; pointer-events: none; }
.mark svg { inset: 0; width: 100%; height: 100%; display: block; overflow: visible; }
.mark svg path { fill: var(--t1); }
.mark .cut-bg { fill: var(--bg); }
.mark .leds, .mark .ring, .mark .cut, .mark .wave, .mark .blade, .mark .flash { opacity: 0; }
.mark .seg { opacity: 0; }
.flash { left: -100%; top: -100%; width: 300%; height: 300%; border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.12) 0, rgba(255, 255, 255, 0.04) 30%, rgba(255, 255, 255, 0) 60%); }
.blade { left: 0; top: 33%; width: 2px; height: 34%; margin-left: -1px; border-radius: 1px;
  background: linear-gradient(transparent, rgba(255, 255, 255, 0.85) 20%, #fff 50%, rgba(255, 255, 255, 0.85) 80%, transparent); }
/* bez skryptu znak po prostu pojawia się w chwili „złożenia” intra */
.mark .real { animation: mark-in 1ms linear 1556ms both; }
@keyframes mark-in { from { opacity: 0; } to { opacity: 1; } }

/* „Teraz gra” – jedyne miejsce z pomarańczem: to, co jest na żywo */
.now { display: flex; align-items: center; gap: 12px; max-width: 100%; height: 44px; padding: 0 18px 0 6px; border-radius: 999px; background: var(--card);
  animation: rise 520ms var(--ease-out) 1650ms both; }
.live { display: inline-flex; align-items: center; gap: 7px; height: 32px; padding: 0 12px 0 10px; border-radius: 999px; background: var(--orange); color: var(--orange-ink);
  font-size: 13px; font-weight: 650; white-space: nowrap; flex: none; }
.live i { width: 7px; height: 7px; border-radius: 50%; background: var(--orange-ink); animation: blink 1.6s var(--ease-inout) infinite alternate; }
@keyframes blink { from { opacity: 1; } to { opacity: 0.35; } }
.now-t { min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: 14px; }
.now-t b { font-weight: 600; }
.now-t span { color: var(--t2); }

/* ---------- kafle ---------- */
.card { background: var(--card); border-radius: var(--r-card); }

.access { margin-top: 28px; max-width: 480px; padding: 18px 20px 20px; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 36px; }
.card-head h2 { font-size: 15px; font-weight: 600; letter-spacing: -0.005em; }
.sub { margin-top: 2px; color: var(--t2); font-size: 14px; }
.lbl { display: block; margin: 16px 0 8px; color: var(--t3); font-size: 12px; font-weight: 600; letter-spacing: 0.02em; }
.row { display: flex; gap: 8px; }
.row input { flex: 1 1 auto; min-width: 0; height: 44px; padding: 0 18px; border: 0; border-radius: 999px; background: var(--well); color: var(--t1);
  font: 600 17px/1 var(--f); letter-spacing: 0.08em; font-variant-numeric: tabular-nums; text-transform: uppercase; caret-color: var(--t1);
  transition: background-color 160ms var(--ease-out); }
.row input::placeholder { color: #4a4a52; letter-spacing: 0.08em; }
.row input:hover { background: #0c0c0e; }
.row input:focus { outline: none; background: #0a0a0b; }
.row input:focus-visible { outline: 2px solid rgba(244, 244, 246, 0.55); outline-offset: 2px; }
.btn { position: relative; flex: none; height: 44px; padding: 0 22px; border: 0; border-radius: 999px; background: var(--t1); color: #111113;
  font: 600 15px/1 var(--f); cursor: pointer; transition: transform 90ms var(--ease-out), background-color 160ms ease, opacity 160ms ease; }
.btn:hover { background: #fff; }
.btn:active { transform: scale(0.97); }
.btn[aria-busy="true"] { opacity: 0.6; cursor: progress; }
.msg { display: flex; align-items: flex-start; gap: 10px; margin-top: 12px; padding: 10px 14px; border-radius: var(--r-inner); background: rgba(246, 72, 111, 0.1);
  color: var(--t1); font-size: 14px; line-height: 1.45; }
.msg::before { content: ""; flex: none; width: 8px; height: 8px; margin-top: 6px; border-radius: 50%; background: var(--red); }
.msg[hidden] { display: none; }
.meta { margin-top: 14px; color: var(--t3); font-size: 13px; font-variant-numeric: tabular-nums; }

/* (i) – podpowiedź po kliknięciu */
.info { position: relative; flex: none; }
.info summary { list-style: none; display: grid; place-items: center; width: 36px; height: 36px; margin-right: -8px; border-radius: 999px; cursor: pointer; color: var(--t3);
  transition: background-color 160ms ease, color 160ms ease; }
.info summary::-webkit-details-marker { display: none; }
.info summary:hover, .info[open] summary { background: var(--raised); color: var(--t1); }
.info summary svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; }
.info-pop { position: absolute; right: -8px; top: 42px; z-index: 5; width: min(320px, calc(100vw - 32px)); padding: 14px 16px; border-radius: var(--r-card);
  background: var(--raised); color: var(--t1); font-size: 14px; line-height: 1.5; box-shadow: 0 18px 48px rgba(0, 0, 0, 0.45);
  animation: pop 180ms var(--ease-out); transform-origin: top right; }
@keyframes pop { from { opacity: 0; transform: translateY(-4px) scale(0.98); } }

/* ---------- co potrafi ---------- */
.feats { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
@media (min-width: 560px) { .feats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .feats { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.feat { padding: 18px 20px 20px; }
.feat svg { width: 24px; height: 24px; fill: none; stroke: var(--t2); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.feat h3 { margin-top: 14px; font-size: 15px; font-weight: 600; }
.feat p { margin-top: 4px; color: var(--t2); font-size: 14px; }

/* ---------- wymagania ---------- */
.req { margin: 40px 0 8px; }
.req h2 { margin-bottom: 12px; color: var(--t2); font-size: 13px; font-weight: 650; letter-spacing: 0.075em; }
.req ul { list-style: none; margin: 0; padding: 4px 20px; background: var(--card); border-radius: var(--r-card); display: grid; grid-template-columns: minmax(0, 1fr); }
.req li { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 14px 0; }
.req li + li { border-top: 1px solid var(--line); }
.req b { font-size: 15px; font-weight: 600; white-space: nowrap; }
.req span { color: var(--t3); font-size: 13px; text-align: right; }
@media (min-width: 760px) {
  .req ul { grid-template-columns: repeat(3, minmax(0, 1fr)); padding: 6px 0; }
  .req li { flex-direction: column; gap: 2px; padding: 12px 20px; }
  .req li + li { border-top: 0; }
  .req span { text-align: left; }
}

.foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 16px; margin-top: auto; padding-top: 40px; padding-bottom: max(32px, env(safe-area-inset-bottom));
  color: var(--t3); font-size: 13px; }

/* ---------- wejście treści ---------- */
.rise { animation: rise 640ms var(--ease-out) both; }
.intro .rise:nth-child(2) { animation-delay: 80ms; }
.intro .rise:nth-child(3) { animation-delay: 160ms; }
.feats { animation: rise 640ms var(--ease-out) 240ms both; }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } }

@media (prefers-reduced-motion: reduce) {
  .mark .real { animation: none; }
  .rise, .feats, .now { animation: none; }
  .live i { animation: none; }
  .info-pop { animation: none; }
  .btn, .row input, .info summary { transition: none; }
}
