/* public/css/app.css
   Purpose: wygląd strony poleceń i paneli — tokeny i fonty z pyroxai.com (site-editorial).
   NOT for: fontów (@font-face → fonts.css). */

:root {
  color-scheme: dark;
  --bg: #080d13; --surface: #111b24; --field: #0b1219; --ink: #f3f3ec; --muted: #acb7c1;
  --faint: #7d8a96; --line: #2c3740; --line-soft: #ffffff12; --accent: #80e3ef; --accent-hi: #b1f3f7;
  --accent-ink: #071119; --ok: #7fd8a6; --warn: #f0c674; --bad: #f09a8c; --info: #9fc1ff;
  --display: Anton, Impact, sans-serif; --text: Inter, system-ui, sans-serif;
  --radius: 6px; --ease: cubic-bezier(.16, 1, .3, 1);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh; display: flex; flex-direction: column;
  background: radial-gradient(1100px 520px at 78% -12%, #12324080, transparent 70%), var(--bg);
  color: var(--ink); font: 400 16px/1.6 var(--text); -webkit-font-smoothing: antialiased;
}
main { flex: 1; }
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { color: var(--accent-hi); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 3px; }
::selection { background: var(--accent); color: var(--bg); }
.wrap { width: min(1160px, 100% - 40px); margin-inline: auto; }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Nagłówek i stopka */
.top { position: sticky; top: 0; z-index: 10; background: #080d13ee; backdrop-filter: blur(10px); border-bottom: 1px solid var(--line-soft); }
.top .wrap { min-height: 68px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 700; letter-spacing: .055em; font-size: 15px; }
.brand img { width: 30px; height: 30px; }
.brand small { font-weight: 500; letter-spacing: .02em; color: var(--faint); font-size: 13px; padding-left: 10px; border-left: 1px solid var(--line); }
.nav { display: flex; align-items: center; gap: 18px; font-size: 14px; }
.nav a { color: var(--muted); text-decoration: none; white-space: nowrap; }
.nav a:hover, .nav a[aria-current] { color: var(--ink); }
.nav form { margin: 0; }
.foot { border-top: 1px solid var(--line-soft); margin-top: 72px; padding: 26px 0 34px; font-size: 13px; color: var(--faint); }
.foot .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }
.foot a { color: var(--muted); }

/* Typografia */
.eyebrow { display: inline-block; color: var(--accent); font-size: 11px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; margin: 0 0 18px; }
.chip { padding: 7px 14px; border: 1px solid #80e3ef40; border-radius: 100px; background: #0a1a24; }
h1, .display { font-family: var(--display); font-weight: 400; text-transform: uppercase; letter-spacing: -.01em; line-height: 1.02; margin: 0; }
h1 { font-size: clamp(42px, 6.4vw, 78px); text-wrap: balance; }
h1 span { display: block; color: var(--accent); }
h2 { font-family: var(--display); font-weight: 400; text-transform: uppercase; font-size: clamp(26px, 3vw, 34px); line-height: 1.1; margin: 0 0 18px; letter-spacing: .005em; }
h3 { font-size: 16px; margin: 0 0 6px; }
.lead { color: var(--muted); font-size: 17px; max-width: 560px; margin: 22px 0 0; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.num { font-variant-numeric: tabular-nums; white-space: nowrap; }

/* Strona publiczna */
.hero { display: grid; gap: 44px; padding: 64px 0 24px; align-items: start; }
.steps { list-style: none; padding: 0; margin: 38px 0 0; display: grid; gap: 18px; max-width: 540px; }
.steps li { display: grid; grid-template-columns: 42px 1fr; gap: 14px; padding-top: 18px; border-top: 1px solid var(--line-soft); }
.steps b { font-family: var(--display); font-weight: 400; font-size: 28px; line-height: 1; color: var(--accent); }
.steps p { margin: 2px 0 0; color: var(--muted); font-size: 15px; }
.services { display: grid; gap: 1px; background: var(--line-soft); border: 1px solid var(--line-soft); border-radius: var(--radius); overflow: hidden; margin-top: 64px; }
.services div { background: var(--bg); padding: 22px 24px; }
.services p { margin: 0; color: var(--muted); font-size: 14px; }
@media (min-width: 720px) { .services { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 960px) { .hero { grid-template-columns: 1.05fr .95fr; gap: 64px; padding-top: 84px; } }

/* Karty, formularze */
.card { position: relative; background: linear-gradient(180deg, #13202b, var(--surface)); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: 0 24px 60px #00000055; }
.card.accent::before { content: ""; position: absolute; inset: -1px -1px auto; height: 2px; background: linear-gradient(90deg, var(--accent), transparent); border-radius: var(--radius) var(--radius) 0 0; }
.card h2 { font-size: 26px; }
.field { display: grid; gap: 6px; margin-bottom: 16px; }
.field label, .label { font-size: 13px; font-weight: 500; color: var(--muted); }
.row { display: grid; gap: 0 14px; }
@media (min-width: 560px) { .row { grid-template-columns: 1fr 1fr; } }
input, select, textarea {
  width: 100%; font: inherit; font-size: 15px; color: var(--ink); background: var(--field);
  border: 1px solid var(--line); border-radius: 4px; padding: 11px 13px; transition: border-color .15s, box-shadow .15s;
}
textarea { min-height: 104px; resize: vertical; }
select { appearance: none; padding-right: 36px; background: var(--field) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23acb7c1' stroke-width='1.6'/%3E%3C/svg%3E") no-repeat right 14px center; }
input:hover, select:hover, textarea:hover { border-color: #3d4c57; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px #80e3ef2e; }
.check { display: grid; grid-template-columns: 18px 1fr; gap: 10px; align-items: start; font-size: 13px; color: var(--muted); margin: 4px 0 20px; }
.check input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--accent); }
.form-intro { margin: -8px 0 20px; }
.form-hint { margin: -8px 0 16px; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: inherit; font-size: 15px; font-weight: 700;
  background: var(--accent); color: var(--accent-ink); border: 1px solid var(--accent); border-radius: 3px;
  padding: 12px 22px; cursor: pointer; text-decoration: none; transition: background .2s, transform .2s var(--ease);
}
.btn:hover { background: var(--accent-hi); border-color: var(--accent-hi); color: var(--accent-ink); transform: translateY(-1px); }
.btn.block { width: 100%; }
.btn.ghost { background: transparent; color: var(--ink); border-color: #4a5a66; }
.btn.ghost:hover { border-color: var(--accent); background: #13222c; color: var(--ink); }
.btn.sm { font-size: 13px; padding: 7px 12px; }
.btn.danger { background: transparent; color: var(--bad); border-color: #f09a8c55; }
.btn.danger:hover { background: #f09a8c14; color: var(--bad); }
.note { border-left: 3px solid var(--bad); background: #f09a8c12; padding: 12px 14px; border-radius: 0 4px 4px 0; font-size: 14px; margin: 0 0 18px; }
.note.ok { border-color: var(--ok); background: #7fd8a612; }
.note.info { border-color: var(--accent); background: #80e3ef10; }

@media (max-width: 640px) {
  .top .wrap { flex-wrap: wrap; min-height: 0; padding: 12px 0; row-gap: 10px; }
  .brand small { display: none; }
  .nav { width: 100%; gap: 16px; font-size: 13px; }
  .nav form { margin-left: auto; }
}
