:root {
  --bg: #0b1020;
  --bg-alt: #0e1326;
  --card: #0f162e;
  --text: #eaf2ff;
  --muted: #9fb0d0;
  --primary: #0ea5e9;
  --accent: #22d3ee;
  --ok: #22c55e;
  --danger: #ef4444;
  --ring: 0 10px 30px color-mix(in srgb, var(--primary) 30%, transparent);
}

/* === FUNDAMENTY === */
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: system-ui, -apple-system, sans-serif;
  background: linear-gradient(180deg, var(--bg), #070a16 60%);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden; /* Zapobiega przewijaniu na boki */
}

/* Ukrywanie elementów (kluczowe dla menu i PWA) */
[hidden] { display: none !important; }

/* === TYPOGRAFIA I LINKI === */
a { color: var(--accent); text-decoration: underline; text-decoration-color: rgba(255,255,255,.2); text-underline-offset: 3px; transition: color .2s; }
a:hover { color: #fff; text-decoration-color: var(--accent); }
h1, h2, h3 { margin-top: 0; color: #fff; letter-spacing: -0.02em; }

/* === NAWIGACJA (NAVBAR) === */
.nav {
  position: sticky; top: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; padding: 12px 20px;
  background: rgba(11, 16, 32, .85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid #1a2140;
}
.nav .logo { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font-weight: 800; font-size: 1.1rem; }
.nav .nav-links { display: flex; gap: 24px; align-items: center; }
.nav .nav-links a { color: var(--muted); text-decoration: none; font-weight: 500; font-size: 0.95rem; }
.nav .nav-links a:hover { color: #fff; }
.nav .nav-actions { display: flex; gap: 10px; align-items: center; }
.only-mobile { display: none; }

/* === MENU MOBILNE (NAPRAWIONE) === */
.mobile-menu {
  display: none; /* Domyślnie ukryte */
  position: fixed; 
  top: 70px; left: 10px; right: 10px;
  background: #131b33; 
  border: 1px solid #263055; 
  border-radius: 16px; padding: 20px;
  flex-direction: column; gap: 10px;
  box-shadow: 0 20px 80px rgba(0,0,0,0.8);
  z-index: 999;
  animation: slideDown 0.3s ease forwards;
}
@keyframes slideDown { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: translateY(0); } }

/* Klasa .open dodawana przez JS */
.mobile-menu.open { display: flex !important; }

.mobile-menu a {
  display: block; width: 100%;
  padding: 12px; border-radius: 10px;
  background: #1c2545; color: #fff; 
  text-decoration: none; text-align: center; font-weight: 600;
}
.mobile-menu a:hover { background: var(--primary); color: #000; }

/* === PRZYCISKI === */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 1px solid #2b335c; border-radius: 12px; padding: 10px 18px;
  text-decoration: none; color: #fff; background: #182045;
  transition: all .2s ease; cursor: pointer; font-weight: 600; font-size: 0.95rem;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--ring); border-color: var(--primary); }
.btn.primary { background: linear-gradient(90deg, var(--primary), var(--accent)); border-color: transparent; color: #001025; }
.btn.ghost { background: transparent; border-color: transparent; color: var(--muted); }
.btn.ghost:hover { background: rgba(255,255,255,0.05); color: #fff; }
.btn.small { padding: 6px 12px; font-size: 0.85rem; border-radius: 8px; }
.btn-lg { padding: 14px 24px; font-size: 1.1rem; border-radius: 14px; }

/* === HERO SECTION (Makiety i Tekst) === */
.hero { display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: center; padding: 80px 20px 40px; max-width: 1200px; margin: 0 auto; }
.hero__content h1 { font-size: clamp(36px, 5vw, 64px); line-height: 1.1; margin-bottom: 20px; }
.grad { background: linear-gradient(90deg, var(--primary), var(--accent)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { font-size: 1.1rem; color: var(--muted); max-width: 50ch; margin-bottom: 30px; }
.hero__badges { display: flex; gap: 15px; flex-wrap: wrap; padding: 0; list-style: none; margin-top: 30px; font-size: 0.9rem; color: #cbd7f3; }
.hero__badges li { display: flex; align-items: center; gap: 6px; }

/* Makieta (Okna) */
.hero__mockup { position: relative; perspective: 1000px; }
.window { background: var(--card); border: 1px solid #1a2140; border-radius: 18px; padding: 12px; box-shadow: 0 30px 60px rgba(0,0,0,0.5); transform: rotateY(-5deg) rotateX(2deg); transition: transform 0.5s ease; }
.window:hover { transform: rotateY(0) rotateX(0); }
.window .titlebar { display: flex; gap: 6px; margin-bottom: 12px; padding-left: 6px; }
.window .titlebar span { width: 10px; height: 10px; border-radius: 50%; background: #293058; }
.window .titlebar span:nth-child(1) { background: #ff5f56; }
.window .titlebar span:nth-child(2) { background: #ffbd2e; }
.window .titlebar span:nth-child(3) { background: #27c93f; }

/* Style wewnątrz SVG (Makiety) */
.svgshot { width: 100%; height: auto; display: block; border-radius: 8px; border: 1px solid #1a2140; }
.grid-shots { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.bg2 { fill: #0f162e; }
.t-head { fill: #a9c1ff; font-weight: 700; font-family: sans-serif; }
.t-body { fill: #cfe1ff; font-family: sans-serif; }
.dot { fill: #7dd3fc; } .dot.ok { fill: #a7f3d0; } .dot.warn { fill: #fca5a5; }
.chip { fill: #131c3a; stroke: #263a6b; stroke-width: 2; }
.t-chip { fill: #cfe1ff; font-family: sans-serif; }
.t-chip.hl { fill: #7dd3fc; } .t-chip.ok { fill: #a7f3d0; }
.screen { fill: #131c3a; stroke: #263a6b; stroke-width: 2; }
.play { fill: #7dd3fc; }
.axis { stroke: #263a6b; stroke-width: 2; }

/* === SEKCJE OGÓLNE === */
.section { max-width: 1100px; margin: 0 auto; padding: 80px 20px; }
.section.alt { background: var(--bg-alt); border-top: 1px solid #1a2140; border-bottom: 1px solid #1a2140; }
.section-header { text-align: center; margin-bottom: 50px; }
.section-header h2 { font-size: 2.5rem; margin-bottom: 10px; }
.section-header p { color: var(--muted); font-size: 1.1rem; }

/* === FUNKCJE (GRID) === */
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; }
.feature-card { background: rgba(255,255,255,0.02); border: 1px solid #1a2140; padding: 24px; border-radius: 16px; transition: .3s; }
.feature-card:hover { background: rgba(255,255,255,0.04); border-color: var(--primary); transform: translateY(-5px); }
.feature-icon { width: 48px; height: 48px; background: rgba(14, 165, 233, 0.1); color: var(--primary); border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 24px; margin-bottom: 16px; }
.feature-card h3 { font-size: 1.2rem; margin-bottom: 8px; }
.feature-card p { color: var(--muted); font-size: 0.95rem; margin: 0; }

/* === CENNIK (PRICING) === */
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: start; }

.plan { 
  background: var(--card); border: 1px solid #1a2140; border-radius: 20px; padding: 30px; 
  display: flex; flex-direction: column; position: relative; transition: .3s; 
}

/* Wyróżniony plan */
.plan.popular { 
  border: 1px solid var(--primary); 
  background: linear-gradient(180deg, rgba(14, 165, 233, 0.05), var(--card));
  box-shadow: 0 0 40px rgba(14, 165, 233, 0.15);
  transform: scale(1.05); z-index: 2;
}
.plan.popular .badge {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--primary); color: #001025; padding: 4px 12px; border-radius: 20px;
  font-weight: 700; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 1px;
}

.plan h3 { font-size: 1.4rem; margin: 0 0 10px; color: #fff; }
.plan .price { font-size: 3rem; font-weight: 800; color: #fff; margin: 0 0 20px; display: flex; align-items: baseline; gap: 4px; }
.plan .price span { font-size: 1rem; color: var(--muted); font-weight: 400; }
.plan .desc { color: var(--muted); font-size: 0.9rem; margin-bottom: 24px; }

.plan ul { list-style: none; padding: 0; margin: 0 0 30px; display: flex; flex-direction: column; gap: 12px; }
.plan ul li { display: flex; align-items: center; gap: 10px; color: #cbd7f3; font-size: 0.95rem; }
.plan ul li svg { flex-shrink: 0; color: var(--ok); }
.plan ul li.disabled { color: #4b5563; text-decoration: line-through; }
.plan ul li.disabled svg { color: #4b5563; }

/* === FAQ === */
details { background: rgba(255,255,255,0.02); border: 1px solid #1a2140; border-radius: 12px; margin-bottom: 12px; overflow: hidden; }
details summary { padding: 16px; cursor: pointer; font-weight: 600; list-style: none; display: flex; justify-content: space-between; align-items: center; }
details summary:hover { background: rgba(255,255,255,0.02); }
details p { padding: 0 16px 16px; margin: 0; color: var(--muted); line-height: 1.6; border-top: 1px solid rgba(255,255,255,0.05); padding-top: 12px; }

/* === STOPKA === */
.footer { padding: 40px 20px; border-top: 1px solid #1a2140; background: #060914; text-align: center; color: #576587; }
.footer nav { margin-top: 10px; }
.footer nav a { margin: 0 10px; color: #788ab8; text-decoration: none; }

/* === RESPONSYWNOŚĆ === */
@media (max-width: 980px) {
  .nav .nav-links { display: none; }
  .only-mobile { display: inline-flex; }
  
  .hero { grid-template-columns: 1fr; text-align: center; gap: 40px; padding-top: 40px; }
  .hero__content h1 { font-size: 42px; }
  .hero__badges { justify-content: center; }
  
  .pricing-grid { grid-template-columns: 1fr; max-width: 400px; margin: 0 auto; gap: 30px; }
  .plan.popular { transform: none; }
}
/* === COOKIE POP-UP (MODAL) === */
.cookie-overlay {
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.75); /* Ciemne tło */
  backdrop-filter: blur(5px); /* Rozmycie strony pod spodem */
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: fadeIn 0.3s ease-out;
}

.cookie-popup {
  background: var(--card); /* Kolor twoich kart */
  border: 1px solid #263055;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.9);
  width: 100%;
  max-width: 480px; /* Nie za szerokie */
  border-radius: 20px;
  padding: 30px;
  text-align: center;
  position: relative;
  animation: scaleUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.cookie-icon {
  width: 60px; height: 60px;
  background: rgba(14, 165, 233, 0.1); /* Tło ikony (Primary) */
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 20px auto;
  color: var(--primary);
}

.cookie-popup h3 {
  font-size: 1.5rem;
  margin-bottom: 12px;
  color: #fff;
}

.cookie-popup p {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 24px;
}

.cookie-actions {
  display: grid;
  grid-template-columns: 1fr 1fr; /* Dwa równe przyciski */
  gap: 12px;
}

/* Animacje wejścia */
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes scaleUp { from { transform: scale(0.95); opacity: 0; } to { transform: scale(1); opacity: 1; } }

/* Na małych telefonach przyciski jeden pod drugim */
@media (max-width: 400px) {
  .cookie-actions { grid-template-columns: 1fr; }
}