/* RedLauncher Tools: ten sam styl co redlauncher.com (Apple + liquid glass) */
:root {
  --bg: #000;
  --text: #f5f5f7;
  --muted: rgba(235, 235, 245, 0.6);
  --muted-strong: rgba(235, 235, 245, 0.78);
  --faint: rgba(235, 235, 245, 0.42);
  --line: rgba(255, 255, 255, 0.1);
  --red: #ff375f;
  --red-soft: #ff6b8a;
  --red-deep: #d6204a;
  --glass-fill: linear-gradient(145deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.025) 55%, rgba(255, 255, 255, 0.05));
  --glass-blur: blur(26px) saturate(190%);
  --glass-edge: linear-gradient(150deg, rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0.06) 35%, rgba(255, 255, 255, 0.04) 65%, rgba(255, 255, 255, 0.28));
  --shadow: 0 30px 80px rgba(0, 0, 0, 0.55), 0 8px 24px rgba(0, 0, 0, 0.35);
  --radius: 24px;
  --max: 1120px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Inter", "Segoe UI Variable Display", "Segoe UI", system-ui, sans-serif;
}

/* pikselowa czcionka RedPixel (ta sama co w launcherze) */
@font-face {
  font-family: "RedPixel";
  src: url("/assets/RedPixel.ttf") format("truetype");
  font-display: swap;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { margin: 0; letter-spacing: -0.03em; }
p { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
[hidden] { display: none !important; }

/* ---------- tło ---------- */
.bg-orbs { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.bg-orbs::after { content: ""; position: absolute; inset: 0; background: radial-gradient(120% 80% at 50% 0%, transparent 40%, rgba(0, 0, 0, 0.65) 100%); }
.orb { position: absolute; border-radius: 50%; filter: blur(90px); opacity: 0.5; }
.o1 { width: 620px; height: 620px; left: -160px; top: -180px; background: radial-gradient(circle, #ff375f, transparent 68%); animation: drift1 22s ease-in-out infinite alternate; }
.o2 { width: 560px; height: 560px; right: -180px; top: 22vh; background: radial-gradient(circle, #7b2ff7, transparent 68%); opacity: 0.38; animation: drift2 26s ease-in-out infinite alternate; }
.o3 { width: 520px; height: 520px; left: 30vw; bottom: -260px; background: radial-gradient(circle, #ff8a3d, transparent 68%); opacity: 0.28; animation: drift3 30s ease-in-out infinite alternate; }
@keyframes drift1 { to { transform: translate(18vw, 14vh) scale(1.15); } }
@keyframes drift2 { to { transform: translate(-16vw, 20vh) scale(0.9); } }
@keyframes drift3 { to { transform: translate(-12vw, -22vh) scale(1.2); } }
@media (prefers-reduced-motion: reduce) { .orb { animation: none; } }

/* ---------- szkło ---------- */
.glass {
  position: relative;
  background: var(--glass-fill);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22), inset 0 -1px 0 rgba(255, 255, 255, 0.04), inset 0 0 0 1px rgba(255, 255, 255, 0.04), var(--shadow);
  isolation: isolate;
}
.glass::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: var(--glass-edge);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  pointer-events: none;
  z-index: 2;
}
.glass > * { position: relative; z-index: 3; }

/* ---------- przyciski i pola ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  border: 0;
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 600;
  color: #fff;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), filter 0.2s ease, background 0.2s ease;
}
.btn:active { transform: scale(0.97); }
.btn-red {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.35), rgba(255, 255, 255, 0) 52%), linear-gradient(180deg, #ff5c7a, var(--red) 55%, var(--red-deep));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55), inset 0 -2px 6px rgba(120, 0, 30, 0.35), 0 10px 30px rgba(255, 55, 95, 0.35);
}
.btn-red:hover { transform: translateY(-1px); filter: brightness(1.07); }
.btn-glass {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.05));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3), inset 0 0 0 1px rgba(255, 255, 255, 0.1);
}
.btn-glass:hover { background: linear-gradient(180deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.08)); }
.btn-sm { padding: 7px 14px; font-size: 0.84rem; }
.btn-icon { width: 38px; height: 38px; padding: 0; font-size: 1.05rem; }
.btn-lang { padding: 7px 12px; font-size: 0.8rem; min-width: 44px; }

.field {
  width: 100%;
  padding: 10px 14px;
  border: 0;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.06);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1);
  outline: none;
  transition: box-shadow 0.2s ease, background 0.2s ease;
}
.field:focus { background: rgba(255, 255, 255, 0.09); box-shadow: inset 0 0 0 1px rgba(255, 55, 95, 0.7), 0 0 0 4px rgba(255, 55, 95, 0.15); }
select.field { appearance: none; padding-right: 34px; background-image: linear-gradient(45deg, transparent 50%, rgba(255, 255, 255, 0.6) 50%), linear-gradient(135deg, rgba(255, 255, 255, 0.6) 50%, transparent 50%); background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%; background-size: 5px 5px; background-repeat: no-repeat; }
select.field option { background: #1a1418; color: #fff; }
.label { display: block; margin: 0 0 6px; font-size: 0.74rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--faint); }

.seg { display: flex; gap: 4px; padding: 4px; border-radius: 999px; background: rgba(255, 255, 255, 0.05); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08); }
.seg button { flex: 1; padding: 7px 10px; border: 0; border-radius: 999px; background: transparent; color: var(--muted-strong); font-size: 0.84rem; font-weight: 600; cursor: pointer; transition: background 0.2s ease, color 0.2s ease; }
.seg button:hover { color: #fff; }
.seg button.on { background: linear-gradient(180deg, #ff5c7a, var(--red-deep)); color: #fff; box-shadow: 0 4px 14px rgba(255, 55, 95, 0.35); }

.switch { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 6px 0; cursor: pointer; font-size: 0.9rem; color: var(--muted-strong); }
.switch input { appearance: none; width: 38px; height: 22px; flex: 0 0 auto; margin: 0; border-radius: 999px; background: rgba(255, 255, 255, 0.14); position: relative; cursor: pointer; transition: background 0.25s ease; }
.switch input::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: transform 0.25s var(--ease); }
.switch input:checked { background: var(--red); }
.switch input:checked::after { transform: translateX(16px); }

/* ---------- górny pasek ---------- */
.top { position: sticky; top: 0; z-index: 50; padding: 12px 16px 0; pointer-events: none; }
.top-bar {
  pointer-events: auto;
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 7px 7px 16px;
  border-radius: 999px;
}
.app .top-bar { max-width: none; }
.logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; letter-spacing: -0.02em; white-space: nowrap; }
.logo img { border-radius: 8px; }
.logo small { font-weight: 600; color: var(--red-soft); }
.nav { display: flex; gap: 2px; margin: 0 auto; }
.nav a { padding: 7px 14px; border-radius: 999px; color: var(--muted-strong); font-size: 0.88rem; transition: color 0.2s ease, background 0.2s ease; }
.nav a:hover { color: #fff; background: rgba(255, 255, 255, 0.08); }
.nav a.on { color: #fff; background: rgba(255, 255, 255, 0.1); }
@media (max-width: 820px) { .nav { display: none; } .top-bar .spacer { flex: 1; } }

/* ---------- strona główna narzędzi ---------- */
main.home { max-width: var(--max); margin: 0 auto; padding: 0 20px 60px; }
.hero { text-align: center; padding: 76px 0 46px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px; font-size: 0.82rem; color: var(--muted-strong); margin-bottom: 22px; }
.eyebrow i { width: 8px; height: 8px; border-radius: 50%; background: var(--red); box-shadow: 0 0 12px var(--red); }
.hero h1 {
  font-size: clamp(2.4rem, 6vw, 4.4rem);
  line-height: 1.05;
  font-weight: 750;
  letter-spacing: -0.045em;
  background: linear-gradient(180deg, #ffffff 30%, #ffc2cf 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero p { max-width: 620px; margin: 18px auto 0; font-size: 1.12rem; color: var(--muted); }

.tool-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 18px; }
.tool-card {
  display: flex;
  flex-direction: column;
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease);
}
.tool-card:hover { transform: translateY(-4px); }
.tool-card .shot { aspect-ratio: 16 / 9; border-bottom: 1px solid var(--line); background: #0b0a0d; overflow: hidden; }
.tool-card .shot canvas, .tool-card .shot img { width: 100%; height: 100%; object-fit: cover; image-rendering: pixelated; transition: transform 1.2s var(--ease); }
.tool-card:hover .shot canvas, .tool-card:hover .shot img { transform: scale(1.04); }
.tool-card .body { padding: 20px 22px 22px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.tool-card h2 { font-size: 1.35rem; }
.tool-card p { color: var(--muted); font-size: 0.95rem; }
.tool-card .go { margin-top: auto; padding-top: 10px; color: var(--red-soft); font-weight: 600; font-size: 0.92rem; }
.tool-card .go::after { content: " \203A"; }
.tool-card.soon { opacity: 0.55; pointer-events: none; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tags span { padding: 3px 10px; border-radius: 999px; font-size: 0.74rem; color: var(--muted-strong); background: rgba(255, 255, 255, 0.06); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08); }

.foot { max-width: var(--max); margin: 30px auto 0; padding: 26px 20px 40px; color: var(--faint); font-size: 0.82rem; text-align: center; border-top: 1px solid var(--line); }
.foot a { color: var(--muted-strong); }
.foot a:hover { color: #fff; }

/* ---------- toast ---------- */
.toast {
  position: fixed;
  left: 50%;
  bottom: 26px;
  z-index: 100;
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 600;
  transform: translate(-50%, 20px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.4s var(--ease);
  --glass-fill: linear-gradient(145deg, rgba(40, 30, 36, 0.92), rgba(20, 16, 20, 0.88));
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
