/* ============================================================
   AveHost — style.css
   Dark cinematic + glassmorphism · CSS variables · responsywność
   ============================================================ */

/* ---------- 0. Fonty lokalne (bez zewnętrznych CDN) ---------- */
/* Inter */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../assets/fonts/inter-var-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../assets/fonts/inter-var-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* Space Grotesk */
@font-face {
  font-family: "Space Grotesk";
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url("../assets/fonts/space-grotesk-var-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Space Grotesk";
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url("../assets/fonts/space-grotesk-var-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- 1. Zmienne motywu (dark = domyślny) ---------- */
:root {
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-display: "Space Grotesk", "Inter", system-ui, sans-serif;

  --bg: #07080f;
  --bg-soft: #0b0d17;
  --bg-card: rgba(255, 255, 255, 0.045);
  --bg-card-strong: rgba(255, 255, 255, 0.08);
  --border: rgba(255, 255, 255, 0.09);
  --border-strong: rgba(255, 255, 255, 0.18);
  --grid-line: rgba(148, 163, 255, 0.05);
  --text: #eef0fa;
  --text-muted: #a7adc4;
  --text-faint: #6d7490;

  --accent: #7c6cff;
  --accent-2: #38bdf8;
  --accent-soft: rgba(124, 108, 255, 0.16);
  --accent-2-soft: rgba(56, 189, 248, 0.14);
  --grad-accent: linear-gradient(135deg, #7c6cff 0%, #38bdf8 100%);
  --glow-accent: 0 0 42px rgba(124, 108, 255, 0.32);
  --ok: #34d399;
  --warn: #fbbf24;
  --err: #f87171;

  --shadow-card: 0 20px 60px rgba(2, 4, 16, 0.55);
  --nav-h: 74px;
  --radius: 18px;
  --radius-sm: 12px;
  --radius-lg: 26px;

  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --container: 1200px;
}

[data-theme="light"] {
  --bg: #f3f5fb;
  --bg-soft: #eef1f9;
  --bg-card: rgba(255, 255, 255, 0.78);
  --bg-card-strong: rgba(255, 255, 255, 0.95);
  --border: rgba(18, 22, 50, 0.1);
  --border-strong: rgba(18, 22, 50, 0.2);
  --grid-line: rgba(20, 24, 48, 0.05);
  --text: #141830;
  --text-muted: #4c5470;
  --text-faint: #7d84a0;

  --accent: #6a58f5;
  --accent-2: #0ea5e9;
  --accent-soft: rgba(106, 88, 245, 0.12);
  --accent-2-soft: rgba(14, 165, 233, 0.1);
  --glow-accent: 0 0 42px rgba(106, 88, 245, 0.2);
  --shadow-card: 0 20px 50px rgba(20, 24, 48, 0.12);
}

/* ---------- 2. Reset i baza ---------- */
*,
*::before,
*::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 16px);
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  font-size: 16px;
  line-height: 1.65;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  transition: background 0.45s ease, color 0.45s ease;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
input, textarea, select { font: inherit; color: inherit; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

[id] { scroll-margin-top: calc(var(--nav-h) + 20px); }

::selection { background: var(--accent); color: #fff; }

:focus-visible {
  outline: 2px solid var(--accent-2);
  outline-offset: 3px;
  border-radius: 4px;
}

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg-soft); }
::-webkit-scrollbar-thumb {
  background: linear-gradient(var(--accent), var(--accent-2));
  border-radius: 8px;
  border: 2px solid var(--bg-soft);
}

/* ---------- 3. Animowane tło strony ---------- */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    radial-gradient(60rem 42rem at 88% -12%, var(--accent-soft), transparent 62%),
    radial-gradient(52rem 38rem at -12% 32%, var(--accent-2-soft), transparent 62%);
  transition: background 0.45s ease;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 95% 72% at 50% 0%, #000 0%, transparent 74%);
  -webkit-mask-image: radial-gradient(ellipse 95% 72% at 50% 0%, #000 0%, transparent 74%);
}

/* ---------- 4. Narzędzia i elementy wspólne ---------- */
.container { width: min(var(--container), 100% - 48px); margin-inline: auto; }
.section { padding: 110px 0; }
.section-sm { padding: 70px 0; }

.section-head { max-width: 660px; margin: 0 auto 60px; text-align: center; }
.section-title { font-size: clamp(1.9rem, 3.6vw, 2.75rem); margin-bottom: 16px; }
.section-desc { color: var(--text-muted); font-size: 1.06rem; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: var(--text-muted);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 22px;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.6);
  animation: pulseDot 2.2s infinite;
}

@keyframes pulseDot {
  0% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.55); }
  70% { box-shadow: 0 0 0 10px rgba(52, 211, 153, 0); }
  100% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0); }
}

.gradient-text {
  background: var(--grad-accent);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.glass {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  box-shadow: var(--shadow-card);
}

/* ---------- 5. Przyciski ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0.72rem 1.5rem;
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1.2;
  border: 1px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: transform var(--transition), box-shadow var(--transition),
    background var(--transition), border-color var(--transition), opacity var(--transition);
}

.btn:active { transform: translateY(1px) scale(0.99); }

.btn-primary {
  background: var(--grad-accent);
  color: #fff;
  box-shadow: 0 10px 30px rgba(124, 108, 255, 0.35);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 40px rgba(124, 108, 255, 0.45);
}

.btn-ghost {
  background: var(--bg-card);
  border-color: var(--border-strong);
  color: var(--text);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.btn-ghost:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
  box-shadow: var(--glow-accent);
}

.btn-outline {
  background: transparent;
  border-color: var(--border-strong);
  color: var(--text);
}
.btn-outline:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
  transform: translateY(-2px);
}

.btn-lg { padding: 0.95rem 2rem; font-size: 1.02rem; border-radius: 14px; }
.btn-block { width: 100%; }

/* ---------- 6. Skip link i przyciski ikonowe ---------- */
.skip-link {
  position: fixed;
  top: -60px;
  left: 16px;
  z-index: 200;
  padding: 10px 18px;
  border-radius: 10px;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  transition: top var(--transition);
}
.skip-link:focus { top: 12px; }

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text);
  transition: border-color var(--transition), box-shadow var(--transition),
    background var(--transition), transform var(--transition);
}
.icon-btn:hover {
  border-color: var(--accent);
  box-shadow: var(--glow-accent);
  transform: translateY(-1px);
}

/* ---------- 7. Navbar ---------- */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  border-bottom: 1px solid transparent;
  transition: background var(--transition), border-color var(--transition), box-shadow var(--transition);
}

.navbar.is-scrolled {
  background: var(--bg-soft);
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  backdrop-filter: blur(16px) saturate(150%);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  border-bottom-color: var(--border);
  box-shadow: 0 10px 40px rgba(2, 4, 16, 0.35);
}

.nav-inner { display: flex; align-items: center; gap: 28px; height: 100%; }

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
}
.brand-mark svg { filter: drop-shadow(0 0 12px rgba(124, 108, 255, 0.45)); }
.brand-name em {
  font-style: normal;
  background: var(--grad-accent);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.nav-links { display: flex; align-items: center; gap: 6px; margin-left: auto; }

.nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  border-radius: 10px;
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.95rem;
  transition: color var(--transition), background var(--transition);
}
.nav-link:hover { color: var(--text); background: var(--bg-card-strong); }
.nav-link.is-active { color: var(--text); }
.nav-link.is-active::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 4px;
  height: 2px;
  border-radius: 2px;
  background: var(--grad-accent);
  box-shadow: 0 0 12px rgba(124, 108, 255, 0.7);
}

/* ---------- 8. Dropdown / mega menu ---------- */
.nav-item-dropdown { position: relative; }
.dropdown-toggle .chevron { transition: transform var(--transition); }

.nav-item-dropdown.is-open .dropdown-toggle { color: var(--text); background: var(--bg-card-strong); }
.nav-item-dropdown.is-open .dropdown-toggle .chevron { transform: rotate(180deg); }

@media (hover: hover) and (min-width: 1025px) {
  .nav-item-dropdown:hover .mega-menu { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
  .nav-item-dropdown:hover .dropdown-toggle .chevron { transform: rotate(180deg); }
}

.mega-menu {
  position: absolute;
  top: calc(100% + 14px);
  left: 50%;
  transform: translate(-50%, 10px);
  width: min(880px, calc(100vw - 48px));
  padding: 22px;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition), transform var(--transition), visibility var(--transition);
  background: var(--bg-soft);
  background: color-mix(in srgb, var(--bg-soft) 88%, transparent);
  backdrop-filter: blur(24px) saturate(160%);
  -webkit-backdrop-filter: blur(24px) saturate(160%);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}
.mega-menu::before { content: ""; position: absolute; top: -14px; left: 0; right: 0; height: 14px; }
.nav-item-dropdown.is-open .mega-menu { opacity: 1; visibility: visible; transform: translate(-50%, 0); }

.mega-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }

.mega-item {
  display: flex;
  gap: 14px;
  padding: 14px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  transition: background var(--transition), border-color var(--transition), transform var(--transition);
}
.mega-item:hover {
  background: var(--bg-card-strong);
  border-color: var(--border);
  transform: translateY(-2px);
}

.mega-icon {
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: var(--accent-2);
  background: var(--accent-soft);
  border: 1px solid var(--border);
}

.mega-body { display: grid; gap: 2px; }
.mega-title { font-weight: 600; font-size: 0.98rem; }
.mega-desc { color: var(--text-muted); font-size: 0.82rem; line-height: 1.45; }
.mega-cta { color: var(--accent-2); font-size: 0.8rem; font-weight: 600; margin-top: 4px; }
.mega-item:hover .mega-cta { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- 9. Hamburger i przełącznik motywu ---------- */
.nav-burger { display: none; flex-direction: column; gap: 5px; }
.burger-bar {
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform var(--transition), opacity var(--transition);
}
.nav-burger.is-active .burger-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-burger.is-active .burger-bar:nth-child(2) { opacity: 0; }
.nav-burger.is-active .burger-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.theme-toggle .icon-sun { display: none; }
[data-theme="light"] .theme-toggle .icon-moon { display: none; }
[data-theme="light"] .theme-toggle .icon-sun { display: block; }

.theme-toggle.is-switching svg { animation: themeSpin 0.5s ease; }
@keyframes themeSpin {
  0% { transform: rotate(-120deg) scale(0.4); opacity: 0; }
  100% { transform: rotate(0deg) scale(1); opacity: 1; }
}

/* ---------- 10. Hero ---------- */
.hero { position: relative; padding: 130px 0 110px; overflow: hidden; }

.hero-bg { position: absolute; inset: 0; pointer-events: none; }
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.5;
  animation: orbFloat 14s ease-in-out infinite alternate;
}
.orb-1 { width: 420px; height: 420px; background: radial-gradient(circle, rgba(124, 108, 255, 0.5), transparent 70%); top: -140px; right: -80px; }
.orb-2 { width: 360px; height: 360px; background: radial-gradient(circle, rgba(56, 189, 248, 0.4), transparent 70%); bottom: -120px; left: -100px; animation-delay: -6s; }
.orb-3 { width: 240px; height: 240px; background: radial-gradient(circle, rgba(124, 108, 255, 0.35), transparent 70%); top: 30%; left: 42%; animation-delay: -3s; }

@keyframes orbFloat {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(30px, -24px, 0) scale(1.08); }
}

.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 60px;
  align-items: center;
}

.hero-title { font-size: clamp(2.4rem, 5vw, 4rem); margin-bottom: 22px; }
.hero-lead { color: var(--text-muted); font-size: 1.12rem; max-width: 54ch; margin-bottom: 34px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 34px; }

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  color: var(--text-muted);
  font-size: 0.88rem;
}
.hero-trust li { display: inline-flex; align-items: center; gap: 8px; }
.hero-trust svg { color: var(--ok); flex: 0 0 auto; }

/* -- Wizualizacja infrastruktury -- */
.hero-visual { position: relative; }

.console { padding: 22px; position: relative; z-index: 2; }
.console-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}

.status-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--ok);
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(52, 211, 153, 0.1);
  border: 1px solid rgba(52, 211, 153, 0.25);
  white-space: nowrap;
}
.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.6);
  animation: pulseDot 2.2s infinite;
}

.console-region {
  font-size: 0.78rem;
  color: var(--text-faint);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}

.rack { display: grid; gap: 10px; }
.rack-node {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  background: var(--bg-card-strong);
  border: 1px solid var(--border);
}
.rack-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 10px rgba(52, 211, 153, 0.8);
  flex: 0 0 auto;
}
.rack-info { flex: 1; min-width: 0; display: grid; }
.rack-info b { font-size: 0.86rem; font-family: var(--font-display); }
.rack-info span { font-size: 0.74rem; color: var(--text-faint); }

.rack-load {
  flex: 0 0 72px;
  height: 6px;
  border-radius: 6px;
  background: var(--border);
  overflow: hidden;
}
.rack-load span {
  display: block;
  height: 100%;
  width: var(--load, 50%);
  border-radius: 6px;
  background: var(--grad-accent);
  position: relative;
  overflow: hidden;
}
.rack-load span::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.55), transparent);
  transform: translateX(-100%);
  animation: shimmer 2.4s infinite;
}
@keyframes shimmer {
  60%, 100% { transform: translateX(100%); }
}

.rack-val {
  font-size: 0.78rem;
  color: var(--text-muted);
  width: 38px;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.console-foot {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
  font-size: 0.8rem;
  color: var(--text-faint);
}
.console-foot b { color: var(--text); font-variant-numeric: tabular-nums; }
.ok-text { color: var(--ok) !important; }

.float-chip {
  position: absolute;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  background: var(--bg-soft);
  background: color-mix(in srgb, var(--bg-soft) 82%, transparent);
  border: 1px solid var(--border-strong);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: var(--shadow-card);
  animation: chipFloat 6s ease-in-out infinite;
}
.float-chip svg { color: var(--accent-2); }
.fc-1 { top: -18px; right: 8%; }
.fc-2 { bottom: 34px; left: -26px; animation-delay: -2s; }
.fc-3 { top: 38%; right: -30px; animation-delay: -4s; }
@keyframes chipFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.orbit {
  position: absolute;
  inset: -34px;
  z-index: 1;
  border: 1px dashed var(--border-strong);
  border-radius: 32px;
  pointer-events: none;
}
.orbit::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: 32px;
  border: 2px solid transparent;
  border-top-color: var(--accent);
  animation: orbitSpin 9s linear infinite;
  opacity: 0.7;
}
@keyframes orbitSpin { to { transform: rotate(360deg); } }

.orbit-dot {
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent-2);
  box-shadow: 0 0 14px var(--accent-2);
}
.od-1 { top: -6px; left: 22%; animation: orbitPulse 3s ease-in-out infinite; }
.od-2 { bottom: -6px; right: 18%; background: var(--accent); box-shadow: 0 0 14px var(--accent); animation: orbitPulse 3s ease-in-out infinite -1.5s; }
@keyframes orbitPulse {
  0%, 100% { opacity: 0.5; transform: scale(0.8); }
  50% { opacity: 1; transform: scale(1.15); }
}

.scroll-hint {
  position: absolute;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  width: 26px;
  height: 42px;
  border: 2px solid var(--border-strong);
  border-radius: 999px;
  display: flex;
  justify-content: center;
  padding-top: 8px;
}
.scroll-hint span {
  width: 4px;
  height: 8px;
  border-radius: 4px;
  background: var(--accent-2);
  animation: scrollHint 1.8s ease-in-out infinite;
}
@keyframes scrollHint {
  0% { transform: translateY(0); opacity: 1; }
  70% { transform: translateY(12px); opacity: 0; }
  100% { transform: translateY(12px); opacity: 0; }
}

/* ---------- 11. Statystyki ---------- */
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }

.stat {
  text-align: center;
  padding: 30px 16px;
  border-radius: var(--radius);
  background: var(--bg-card);
  border: 1px solid var(--border);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}
.stat:hover { transform: translateY(-4px); border-color: var(--border-strong); box-shadow: var(--glow-accent); }

.stat-value {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 3vw, 2.6rem);
  font-weight: 700;
  background: var(--grad-accent);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-variant-numeric: tabular-nums;
}
.stat-prefix, .stat-suffix { font-size: 0.62em; }
.stat-label { color: var(--text-muted); font-size: 0.9rem; margin-top: 6px; }

/* ---------- 12. Sekcja hosting (karty + warianty) ---------- */
.host-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }

.host-card {
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}
.host-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-card), var(--glow-accent);
}

.host-head { display: grid; gap: 10px; justify-items: start; }
.host-icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: var(--accent-2);
  background: var(--accent-soft);
  border: 1px solid var(--border);
}
.host-card h3 { font-size: 1.3rem; }
.host-head p { color: var(--text-muted); font-size: 0.92rem; }

.variant-panel { display: grid; gap: 14px; }
.variant-price {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 700;
}
.variant-price > span:first-child { transition: opacity 0.25s ease, transform 0.25s ease; }
.variant-price.is-updating > span:first-child { opacity: 0; transform: translateY(6px); }

.price-period { font-size: 0.85rem; color: var(--text-faint); font-family: var(--font-body); font-weight: 500; }

.feature-list { display: grid; gap: 10px; font-size: 0.92rem; color: var(--text-muted); }
.feature-list li { display: flex; align-items: flex-start; gap: 10px; }
.feature-list li::before {
  content: "";
  flex: 0 0 18px;
  height: 18px;
  margin-top: 3px;
  background: var(--accent-2);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / contain no-repeat;
}

.host-card .btn { margin-top: auto; }

.host-minis { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 24px; }
.host-mini {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 22px;
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}
.host-mini:hover {
  transform: translateY(-4px);
  border-color: var(--border-strong);
  box-shadow: var(--glow-accent);
}
.host-mini .host-icon { flex: 0 0 52px; }
.host-mini h3 { font-size: 1.08rem; margin-bottom: 4px; }
.host-mini p { color: var(--text-muted); font-size: 0.88rem; }
.mini-cta {
  margin-left: auto;
  flex: 0 0 auto;
  color: var(--accent-2);
  font-weight: 600;
  font-size: 0.9rem;
  white-space: nowrap;
}
.mini-cta:hover { text-decoration: underline; text-underline-offset: 4px; }

/* ---------- 13. Cennik ---------- */
.billing-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 48px;
}
.billing-label { font-weight: 600; color: var(--text-faint); transition: color var(--transition); }
.billing-label.is-active-label { color: var(--text); }

.save-badge {
  font-style: normal;
  margin-left: 6px;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  color: #fff;
  background: var(--grad-accent);
}

.switch {
  position: relative;
  width: 58px;
  height: 30px;
  border-radius: 999px;
  background: var(--bg-card-strong);
  border: 1px solid var(--border-strong);
  transition: background var(--transition), box-shadow var(--transition);
  flex: 0 0 auto;
}
.switch:hover { box-shadow: var(--glow-accent); }
.switch-thumb {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--grad-accent);
  box-shadow: 0 4px 10px rgba(124, 108, 255, 0.5);
  transition: transform var(--transition);
}
.switch[aria-checked="true"] .switch-thumb { transform: translateX(28px); }

.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: stretch; }

.price-card {
  position: relative;
  padding: 30px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}
.price-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-card), var(--glow-accent);
}

.price-card.is-featured {
  border-color: transparent;
  background:
    linear-gradient(var(--bg-soft), var(--bg-soft)) padding-box,
    var(--grad-accent) border-box;
  border: 1px solid transparent;
  box-shadow: var(--shadow-card), 0 0 60px rgba(124, 108, 255, 0.25);
}

.featured-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  padding: 6px 16px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #fff;
  background: var(--grad-accent);
  box-shadow: 0 8px 24px rgba(124, 108, 255, 0.45);
  white-space: nowrap;
}

.price-head h3 { font-size: 1.2rem; margin-bottom: 12px; }
.price-tag { display: flex; align-items: baseline; gap: 6px; }
.price-amount {
  font-family: var(--font-display);
  font-size: 2.6rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.price-tag.is-updating .price-amount { opacity: 0; transform: translateY(8px); }
.price-currency { font-weight: 600; color: var(--text-muted); }
.price-period { color: var(--text-faint); font-size: 0.9rem; }
.price-billing { margin-top: 6px; font-size: 0.82rem; color: var(--text-faint); }

.price-card .feature-list { flex: 1; }

.pricing-note {
  text-align: center;
  color: var(--text-faint);
  font-size: 0.85rem;
  margin-top: 28px;
}

/* ---------- 14. Dlaczego AveHost ---------- */
.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }

.why-card {
  padding: 26px;
  border-radius: var(--radius);
  background: var(--bg-card);
  border: 1px solid var(--border);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}
.why-card:hover {
  transform: translateY(-5px);
  border-color: var(--border-strong);
  box-shadow: var(--glow-accent);
}

.why-icon {
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: var(--accent-2);
  background: var(--accent-soft);
  border: 1px solid var(--border);
  margin-bottom: 16px;
  transition: box-shadow var(--transition), transform var(--transition);
}
.why-card:hover .why-icon {
  box-shadow: 0 0 24px rgba(56, 189, 248, 0.4);
  transform: scale(1.06);
}

.why-card h3 { font-size: 1.08rem; margin-bottom: 8px; }
.why-card p { color: var(--text-muted); font-size: 0.9rem; }

/* ---------- 15. Infrastruktura / dashboard ---------- */
.infra-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 48px;
  align-items: center;
}

.infra-copy h3 { font-size: 1.5rem; margin-bottom: 14px; }
.infra-copy > p { color: var(--text-muted); margin-bottom: 22px; }

.infra-list { display: grid; gap: 12px; margin-bottom: 28px; }
.infra-list li {
  position: relative;
  padding-left: 26px;
  color: var(--text-muted);
  font-size: 0.95rem;
}
.infra-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 7px;
  width: 10px;
  height: 10px;
  border-radius: 3px;
  background: var(--grad-accent);
  box-shadow: 0 0 12px rgba(124, 108, 255, 0.6);
}
.infra-list b { color: var(--text); }

.dash { padding: 24px; display: grid; gap: 20px; }
.dash-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.dash-clock {
  font-variant-numeric: tabular-nums;
  font-size: 0.85rem;
  color: var(--text-faint);
}

.dash-metrics { display: grid; gap: 14px; }
.metric-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.86rem;
  color: var(--text-muted);
  margin-bottom: 6px;
}
.metric-row b { color: var(--text); font-variant-numeric: tabular-nums; }

.metric-bar {
  height: 8px;
  border-radius: 8px;
  background: var(--bg-card-strong);
  border: 1px solid var(--border);
  overflow: hidden;
}
.metric-bar span {
  display: block;
  height: 100%;
  width: 0;
  border-radius: 8px;
  background: var(--grad-accent);
  transition: width 1.2s cubic-bezier(0.22, 1, 0.36, 1);
}
.metric:nth-child(2) .metric-bar span { background: linear-gradient(90deg, #38bdf8, #34d399); }
.metric:nth-child(3) .metric-bar span { background: linear-gradient(90deg, #fbbf24, #f87171); }

.dash-traffic { display: grid; gap: 10px; }
.dash-title {
  font-size: 0.82rem;
  color: var(--text-faint);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.traffic-chart {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  height: 74px;
  padding: 10px;
  border-radius: var(--radius-sm);
  background: var(--bg-card-strong);
  border: 1px solid var(--border);
}
.traffic-chart span {
  flex: 1;
  min-height: 6%;
  border-radius: 3px 3px 0 0;
  background: linear-gradient(180deg, var(--accent-2), rgba(56, 189, 248, 0.15));
  transition: height 0.8s ease;
}

.dash-nodes { display: grid; gap: 8px; }
.dash-nodes li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  background: var(--bg-card-strong);
  border: 1px solid var(--border);
  font-size: 0.85rem;
}
.node-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 8px rgba(52, 211, 153, 0.8);
  flex: 0 0 auto;
}
.dash-nodes b { font-family: var(--font-display); }
.node-type { color: var(--text-faint); flex: 1; text-align: right; }
.node-pill {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--ok);
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(52, 211, 153, 0.12);
  border: 1px solid rgba(52, 211, 153, 0.3);
  white-space: nowrap;
}

/* ---------- 16. FAQ ---------- */
.faq-list {
  max-width: 780px;
  margin: 0 auto;
  display: grid;
  gap: 14px;
}
.faq-item {
  border-radius: var(--radius);
  background: var(--bg-card);
  border: 1px solid var(--border);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: border-color var(--transition), box-shadow var(--transition);
  overflow: hidden;
}
.faq-item.is-open { border-color: var(--border-strong); box-shadow: var(--glow-accent); }

.faq-heading { margin: 0; }
.faq-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  text-align: left;
  padding: 20px 22px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.02rem;
  color: var(--text);
}
.faq-btn .chevron {
  flex: 0 0 auto;
  color: var(--accent-2);
  transition: transform var(--transition);
}
.faq-btn[aria-expanded="true"] .chevron { transform: rotate(180deg); }

.faq-panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}
.faq-item.is-open .faq-panel { grid-template-rows: 1fr; }
.faq-panel-inner { overflow: hidden; }
.faq-panel-inner p {
  padding: 0 22px 20px;
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* ---------- 17. Kontakt ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 28px;
  align-items: start;
}

.contact-form {
  position: relative;
  padding: 32px;
  display: grid;
  gap: 18px;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }

.form-field { display: grid; gap: 7px; }
.form-field label { font-size: 0.86rem; font-weight: 600; color: var(--text-muted); }

.form-field input,
.form-field textarea {
  width: 100%;
  padding: 13px 15px;
  border-radius: var(--radius-sm);
  background: var(--bg-card-strong);
  border: 1px solid var(--border);
  color: var(--text);
  transition: border-color var(--transition), box-shadow var(--transition), background var(--transition);
}
.form-field input::placeholder,
.form-field textarea::placeholder { color: var(--text-faint); }
.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.form-field input.is-invalid,
.form-field textarea.is-invalid {
  border-color: var(--err);
  box-shadow: 0 0 0 3px rgba(248, 113, 113, 0.15);
}
.form-field textarea { resize: vertical; min-height: 120px; }

.form-error {
  min-height: 1.1em;
  font-size: 0.8rem;
  color: var(--err);
  font-weight: 500;
}

.hp-field {
  position: absolute;
  left: -9999px;
  top: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  overflow: hidden;
}

.form-success {
  display: none;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  background: rgba(52, 211, 153, 0.1);
  border: 1px solid rgba(52, 211, 153, 0.35);
  color: var(--ok);
  font-size: 0.9rem;
  font-weight: 500;
}
.form-success.is-visible { display: block; animation: fadeUp 0.45s ease; }

.form-privacy { font-size: 0.8rem; color: var(--text-faint); }
.form-privacy a { color: var(--accent-2); }
.form-privacy a:hover { text-decoration: underline; }

#cf-submit[disabled] { opacity: 0.6; cursor: wait; transform: none; }

.contact-aside { display: grid; gap: 20px; }
.contact-card { padding: 28px; display: grid; gap: 18px; }
.contact-card h3 { font-size: 1.15rem; }

.contact-list { display: grid; gap: 14px; }
.contact-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  color: var(--text-muted);
  font-size: 0.92rem;
}
.contact-list svg { flex: 0 0 auto; color: var(--accent-2); margin-top: 2px; }
.contact-list a:hover { color: var(--accent-2); text-decoration: underline; }

/* ---------- 18. Stopka ---------- */
.footer {
  margin-top: 40px;
  border-top: 1px solid var(--border);
  background: var(--bg-soft);
  background: color-mix(in srgb, var(--bg-soft) 70%, transparent);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  padding: 64px 0 40px;
}

.footer-desc {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin: 16px 0 20px;
  max-width: 34ch;
}

.footer-social { display: flex; gap: 10px; }
.footer-social a {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  border: 1px solid var(--border);
  color: var(--text-muted);
  transition: color var(--transition), border-color var(--transition),
    background var(--transition), transform var(--transition), box-shadow var(--transition);
}
.footer-social a:hover {
  color: #fff;
  border-color: var(--accent);
  background: var(--accent-soft);
  transform: translateY(-2px);
  box-shadow: var(--glow-accent);
}
[data-theme="light"] .footer-social a:hover { color: var(--accent); }

.footer-col h3 {
  font-size: 0.95rem;
  margin-bottom: 16px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-faint);
}
.footer-col ul { display: grid; gap: 10px; }
.footer-col a,
.footer-col span {
  color: var(--text-muted);
  font-size: 0.92rem;
  transition: color var(--transition);
}
.footer-col a:hover { color: var(--accent-2); }

.footer-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  font-size: 0.8rem;
  color: var(--ok);
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid rgba(52, 211, 153, 0.25);
  background: rgba(52, 211, 153, 0.08);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  align-items: center;
  justify-content: space-between;
  padding: 22px 0;
  border-top: 1px solid var(--border);
  color: var(--text-faint);
  font-size: 0.85rem;
}
.footer-legal { display: flex; gap: 12px; align-items: center; }
.footer-legal a:hover { color: var(--accent-2); }

/* ---------- 19. Przycisk "wróć na górę" ---------- */
.back-to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 90;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: var(--grad-accent);
  color: #fff;
  box-shadow: 0 12px 30px rgba(124, 108, 255, 0.45);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity var(--transition), transform var(--transition), visibility var(--transition);
}
.back-to-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { transform: translateY(-3px); }

/* ---------- 20. Podstrony prawne ---------- */
.legal-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--border);
  background: var(--bg-soft);
  background: color-mix(in srgb, var(--bg-soft) 80%, transparent);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
.legal-wrap { max-width: 780px; margin: 0 auto; padding: 72px 24px 110px; }
.legal-wrap h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); margin-bottom: 10px; }
.legal-meta { color: var(--text-faint); font-size: 0.9rem; margin-bottom: 36px; }
.legal-wrap h2 { font-size: 1.3rem; margin: 34px 0 12px; }
.legal-wrap p, .legal-wrap li { color: var(--text-muted); margin-bottom: 10px; }
.legal-wrap ul { list-style: disc; padding-left: 22px; }
.legal-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--accent-2);
  font-weight: 600;
  margin-bottom: 26px;
}
.legal-back:hover { text-decoration: underline; text-underline-offset: 4px; }

/* ---------- 21. Animacje scroll reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ---------- 22. Responsywność ---------- */
@media (max-width: 1200px) {
  .mega-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-inner { gap: 40px; }
}

@media (max-width: 1024px) {
  .section { padding: 84px 0; }

  .nav-burger { display: inline-flex; }
  .nav-links {
    position: fixed;
    top: var(--nav-h);
    left: 0;
    right: 0;
    z-index: 99;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    margin: 0;
    padding: 18px 24px 28px;
    background: var(--bg-soft);
    background: color-mix(in srgb, var(--bg-soft) 94%, transparent);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-card);
    transform: translateY(-12px);
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--transition), transform var(--transition), visibility var(--transition);
    max-height: calc(100vh - var(--nav-h));
    overflow-y: auto;
  }
  body.nav-open .nav-links { transform: translateY(0); opacity: 1; visibility: visible; }

  .nav-link { width: 100%; padding: 13px 14px; font-size: 1rem; }
  .nav-link.is-active::after { display: none; }

  .nav-item-dropdown { width: 100%; }
  .dropdown-toggle { justify-content: space-between; }
  .mega-menu {
    position: static;
    width: 100%;
    transform: none;
    opacity: 1;
    visibility: visible;
    display: none;
    padding: 8px;
    border: 0;
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
  .nav-item-dropdown.is-open .mega-menu { display: block; }
  .mega-grid { grid-template-columns: 1fr; }
  .mega-item { padding: 10px; }
  .mega-desc, .mega-cta { display: none; }
  .mega-icon { flex: 0 0 40px; width: 40px; height: 40px; }

  .hero { padding: 90px 0 80px; }
  .hero-inner { grid-template-columns: 1fr; gap: 56px; }
  .hero-visual { max-width: 560px; width: 100%; margin: 0 auto; }

  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .host-grid, .host-minis { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: 1fr; max-width: 460px; margin: 0 auto; }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .infra-grid { grid-template-columns: 1fr; gap: 36px; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
  .scroll-hint { display: none; }
}

@media (max-width: 640px) {
  .container { width: calc(100% - 40px); }
  .section { padding: 68px 0; }
  .section-sm { padding: 52px 0; }
  .hero { padding: 72px 0 64px; }
  .hero-cta .btn { flex: 1 1 100%; }
  .stats-grid, .why-grid, .form-row, .footer-grid { grid-template-columns: 1fr; }

  .console { padding: 16px; }
  .float-chip { display: none; }
  .rack-load { flex-basis: 48px; }
  .contact-form { padding: 22px; }
  .billing-toggle { flex-wrap: wrap; }
  .host-card, .price-card { padding: 22px; }
  .back-to-top { right: 16px; bottom: 16px; }
}

@media (max-width: 380px) {
  .container { width: calc(100% - 28px); }
  .brand-name { font-size: 1.15rem; }
  .icon-btn { width: 38px; height: 38px; }
  .hero-title { font-size: 2rem; }
}

/* ---------- 23. Ograniczenie ruchu (dostępność) ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- 24. Sekcje: Jak to działa / Na żywo / Pas CTA ---------- */
.how-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  counter-reset: step;
  list-style: none;
  margin: 0;
  padding: 0;
}
.how-card {
  position: relative;
  padding: 30px 26px 26px;
  border-radius: var(--radius);
  background: var(--bg-card);
  border: 1px solid var(--border);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}
.how-card:hover {
  transform: translateY(-5px);
  border-color: var(--border-strong);
  box-shadow: var(--glow-accent);
}
.how-num {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  border-radius: 50%;
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 8px 24px rgba(124, 108, 255, 0.35);
}
.how-card h3 { font-size: 1.12rem; margin-bottom: 8px; }
.how-card p { color: var(--text-muted); font-size: 0.92rem; }

.live-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.live-card {
  padding: 28px 24px;
  text-align: center;
  transition: transform var(--transition), border-color var(--transition);
}
.live-card:hover { transform: translateY(-4px); border-color: var(--border-strong); }
.live-value {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 4vw, 2.6rem);
  font-weight: 700;
  line-height: 1;
  margin-bottom: 10px;
  background: linear-gradient(135deg, var(--text), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.live-sub { font-size: 1.2rem; }
.live-label { color: var(--text-muted); font-size: 0.86rem; }
.live-status { font-size: 1.05rem; font-weight: 600; gap: 10px; background: none; color: var(--text); }
.live-card-status .live-label { font-size: 0.78rem; }
.status-degraded {
  background: #f59e0b;
  box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.6);
  animation: pulseDot 2.2s infinite;
}

.cta-band { padding-top: 40px; }
.cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: 48px;
  background: linear-gradient(120deg, rgba(124, 108, 255, 0.16), rgba(56, 189, 248, 0.12));
}
.cta-copy h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: 10px; }
.cta-copy p { color: var(--text-muted); max-width: 44ch; }
.cta-actions { display: flex; gap: 14px; flex-shrink: 0; }

@media (max-width: 960px) {
  .how-grid { grid-template-columns: repeat(2, 1fr); }
  .live-grid { grid-template-columns: repeat(2, 1fr); }
  .cta-inner { flex-direction: column; text-align: center; padding: 40px 28px; }
  .cta-copy p { margin: 0 auto; }
}
@media (max-width: 640px) {
  .how-grid, .live-grid { grid-template-columns: 1fr; }
  .cta-actions { flex-direction: column; width: 100%; }
  .cta-actions .btn { width: 100%; }
}

/* ---------- 25. Pasek promocji + karty dostępnych pakietów ---------- */
.promo-banner {
  position: relative; z-index: 45;
  display: flex; align-items: center; justify-content: center; gap: 10px;
  padding: 11px 18px; text-align: center;
  background: linear-gradient(90deg, #6a58f5, #0ea5e9);
  color: #fff; font-size: 0.94rem; font-weight: 600;
  box-shadow: 0 8px 26px rgba(56, 189, 248, .16);
}
.promo-banner::before { content: "🎉"; }
.promo-banner[hidden] { display: none; }
#promo-text { line-height: 1.45; }

.packages { padding-top: 74px; }
.offer-grid {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px;
}
.offer-card {
  position: relative; display: flex; flex-direction: column; overflow: hidden;
  border-radius: 22px; color: var(--text); text-decoration: none;
  background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.02));
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}
.offer-card:hover {
  transform: translateY(-5px); border-color: var(--border-strong);
  box-shadow: var(--glow-accent); text-decoration: none; color: var(--text);
}
.offer-art {
  height: 138px; display: grid; place-items: center; flex: 0 0 auto;
  font-size: 3.3rem; line-height: 1;
  background: radial-gradient(circle at 50% 38%, rgba(124,108,255,.24), transparent 68%), #11182b;
  border-bottom: 1px solid var(--border);
  filter: saturate(1.05);
}
.offer-art[data-game="minecraft"] { background: radial-gradient(circle at 50% 38%, rgba(52,211,153,.28), transparent 68%), #11231e; }
.offer-art[data-game="fivem"] { background: radial-gradient(circle at 50% 38%, rgba(56,189,248,.3), transparent 68%), #101e2b; }
.offer-art[data-game="rust"] { background: radial-gradient(circle at 50% 38%, rgba(251,191,36,.26), transparent 68%), #292015; }
.offer-art[data-game="ark"] { background: radial-gradient(circle at 50% 38%, rgba(52,211,153,.24), transparent 68%), #14231e; }
.offer-art[data-game="dayz"] { background: radial-gradient(circle at 50% 38%, rgba(248,113,113,.24), transparent 68%), #28191d; }
.offer-body { display: flex; flex-direction: column; gap: 9px; flex: 1; padding: 20px; }
.offer-title { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin: 0; font-size: 1.16rem; }
.offer-badge {
  display: inline-flex; align-items: center; padding: 3px 8px; border-radius: 999px;
  font-size: .62rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase;
}
.offer-badge-soon { color: #fca5a5; background: rgba(248,113,113,.14); border: 1px solid rgba(248,113,113,.35); }
.offer-badge-open { color: #6ee7b7; background: rgba(52,211,153,.12); border: 1px solid rgba(52,211,153,.3); }
.offer-desc { margin: 0; color: var(--text-muted); font-size: .9rem; line-height: 1.5; }
.offer-price { margin: auto 0 0; padding-top: 12px; color: var(--text-muted); font-size: .9rem; }
.offer-price strong { color: var(--accent-2); font-family: var(--font-display); font-size: 1.16rem; }
.offer-actions { display: flex; margin-top: 6px; }
.offer-actions .btn { width: 100%; }
.offer-card.is-soon { opacity: .82; }
.offer-card.is-soon:hover { transform: none; box-shadow: none; border-color: var(--border); }
.offer-loading, .offer-error { grid-column: 1 / -1; margin: 0; padding: 30px 10px; color: var(--text-muted); text-align: center; }
@media (max-width: 1100px) { .offer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) {
  .offer-grid { grid-template-columns: 1fr; }
  .promo-banner { padding: 10px 12px; font-size: .86rem; }
  .promo-banner::before { display: none; }
}











