/* ── Reset & root ──────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

:root {
  --c1: #0cb5d2;
  --c2: #531159;
  --grad:     linear-gradient(135deg, var(--c1), var(--c2));
  --grad-rev: linear-gradient(135deg, var(--c2), var(--c1));
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-900: #111827;
  --radius-xl:  1rem;
  --radius-2xl: 1.5rem;
  --shadow-lg:  0 10px 40px -10px rgba(0,0,0,.15);
  --shadow-2xl: 0 25px 60px -15px rgba(0,0,0,.2);
  --font: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

body {
  font-family: var(--font);
  color: var(--gray-900);
  background: #0a0a0f;
  overflow-x: hidden;
}

/* ── Background canvas ─────────────────────────────── */
#bg-canvas {
  position: fixed;
  inset: 0;
  width: 100%; height: 100%;
  z-index: 0;
  pointer-events: none;
}

/* ── Layout ────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 clamp(1rem, 4vw, 3rem);
}

/* ── Accessibility ─────────────────────────────────── */
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* ════════════════════════════════════════════════════
   NAVBAR
════════════════════════════════════════════════════ */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: .75rem 0;
  transition: padding .3s;
}
.navbar.scrolled { padding: .4rem 0; }

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(20px);
  border-radius: var(--radius-2xl);
  padding: .5rem 1.25rem;
  box-shadow: 0 4px 30px rgba(0,0,0,.12);
  border: 1px solid rgba(255,255,255,.5);
  transition: box-shadow .3s;
}
.navbar.scrolled .nav-inner { box-shadow: 0 8px 40px rgba(0,0,0,.18); }

.nav-logo img { height: 2.4rem; width: auto; display: block; }

.nav-links {
  display: flex; align-items: center; gap: .25rem; list-style: none;
}
.nav-links a {
  display: block;
  padding: .5rem .9rem;
  font-weight: 600; font-size: .88rem;
  color: var(--gray-700);
  text-decoration: none;
  border-radius: .75rem;
  position: relative;
  transition: color .2s;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: .2rem; left: 50%; right: 50%;
  height: 2px;
  background: var(--grad);
  border-radius: 2px;
  transition: left .25s, right .25s;
}
.nav-links a:hover { color: var(--c1); }
.nav-links a:hover::after { left: .9rem; right: .9rem; }

.nav-cta { display: flex; align-items: center; gap: .6rem; }

.btn-ghost {
  font-weight: 700; font-size: .82rem;
  padding: .5rem 1.1rem;
  border: none; background: none;
  color: var(--c1); cursor: pointer;
  border-radius: .75rem;
  transition: background .2s;
}
.btn-ghost:hover { background: rgba(12,181,210,.08); }

.btn-primary {
  font-weight: 700; font-size: .82rem;
  padding: .55rem 1.2rem;
  border: none; background: var(--grad);
  color: #fff; cursor: pointer;
  border-radius: .75rem;
  box-shadow: 0 4px 15px rgba(12,181,210,.35);
  transition: transform .2s, box-shadow .2s;
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(12,181,210,.45); }

.lang-toggle {
  display: flex; background: var(--gray-100);
  border-radius: .75rem; padding: .2rem; gap: .1rem;
}
.lang-toggle button {
  font-weight: 700; font-size: .78rem;
  padding: .35rem .65rem;
  border: none; background: none;
  color: var(--gray-500); border-radius: .6rem;
  cursor: pointer; transition: all .2s;
}
.lang-toggle button.active {
  background: var(--grad); color: #fff;
  box-shadow: 0 2px 8px rgba(12,181,210,.3);
}

/* Hamburger */
.nav-hamburger {
  display: none; flex-direction: column; gap: 5px;
  cursor: pointer; padding: .5rem;
  border: none; background: var(--grad); border-radius: .75rem;
}
.nav-hamburger span {
  display: block; width: 22px; height: 2px;
  background: #fff; border-radius: 2px;
  transition: transform .3s, opacity .3s;
}

/* Mobile menu */
.mobile-menu {
  display: none;
  position: fixed;
  inset: 5rem 1rem 1rem;
  background: rgba(255,255,255,.97);
  backdrop-filter: blur(20px);
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-2xl);
  border: 1px solid var(--gray-100);
  z-index: 999;
  flex-direction: column;
  padding: 1.5rem; gap: 1rem;
  overflow-y: auto; max-height: 80vh;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  display: block; padding: .85rem 1.2rem;
  font-weight: 600; font-size: 1rem;
  color: var(--gray-700); text-decoration: none;
  border-radius: .75rem; transition: background .2s;
}
.mobile-menu a:hover { background: var(--gray-100); }
.mobile-menu-divider { height: 1px; background: var(--gray-100); }
.mobile-menu-btns { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; }
.mobile-menu-btns .btn-ghost {
  border: 2px solid var(--c1); border-radius: .75rem;
  text-align: center; padding: .75rem; font-size: .9rem;
}
.mobile-menu-btns .btn-primary {
  text-align: center; padding: .75rem;
  font-size: .9rem; border-radius: .75rem;
}

/* ════════════════════════════════════════════════════
   HERO
   Cel: lewa kolumna od .hero-badge (góra) do
        .stat-label "More time on site" (dół).
        Obraz: ta sama wysokość, wyrównany do obu granic.
════════════════════════════════════════════════════ */
.hero {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  padding-top:    clamp(5rem, 10vh, 7rem);
  padding-bottom: clamp(3rem, 6vh, 5rem);
  display: flex;
  align-items: center;
}

.hero > .container {
  display: flex;
  align-items: center;
  width: 100%;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  width: 100%;
  align-items: center;
}

@media (min-width: 1024px) {
  .hero-grid {
    grid-template-columns: 7fr 5fr;
    gap: 4rem;
  }
}

/* ── Lewa kolumna (content) ── */
.hero-content {
  order: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1.5rem;
}
@media (min-width: 1024px) {
  .hero-content { order: 1; }
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: rgba(255,255,255,.1);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 100px;
  padding: .55rem 1.3rem;
  margin-bottom: 0;
  align-self: flex-start;
}
@media (max-width: 1023px) {
  .hero-badge { align-self: center; }
}

.badge-dot {
  position: relative; width: 10px; height: 10px; flex-shrink: 0;
}
.badge-dot::before {
  content: ''; position: absolute; inset: 0;
  border-radius: 50%; background: #4ade80;
  animation: ping 1.5s cubic-bezier(0,0,.2,1) infinite;
}
.badge-dot::after {
  content: ''; position: absolute; inset: 1px;
  border-radius: 50%; background: #4ade80;
}
@keyframes ping { 75%, 100% { transform: scale(2); opacity: 0; } }

.badge-text {
  font-weight: 700;
  font-size: clamp(.7rem, 1vw, .95rem);
  letter-spacing: .1em; text-transform: uppercase; color: #fff;
}

/* Hero title */
.hero-title {
  font-weight: 800;
  font-size: clamp(2.5rem, 6vw, 6.5rem);
  line-height: 1.06;
  color: #fff;
  letter-spacing: -0.03em;
  margin-bottom: 0;
}

.hero-title-static { display: block; }

/* Gradient + rotating text row */
.hero-title-gradient {
  display: flex;
  align-items: center;
  margin-top: .15em;
  /* Clamp height to the tallest word so no layout shift */
  min-height: 1.1em;
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.rotating-text-wrap {
  display: inline-flex;
  overflow: hidden;
  /* Extra padding so descenders aren't clipped by background-clip */
  padding-bottom: .08em;
}

#rotating-text { display: inline-flex; gap: 0; }

/* RotatingText letters */
.rt-letter {
  display: inline-block;
  transition: transform .28s cubic-bezier(.4,0,.2,1),
              opacity   .28s cubic-bezier(.4,0,.2,1);
}
.rt-letter.rt-exit   { transform: translateY(-115%); opacity: 0; }
.rt-letter.rt-enter  { transform: translateY( 115%); opacity: 0; }

.hero-desc {
  font-size: clamp(1rem, 1.5vw, 1.45rem);
  color: rgba(255,255,255,.85);
  line-height: 1.7;
  max-width: 38rem;
  margin-bottom: 0;
}
@media (max-width: 1023px) { .hero-desc { margin-left: auto; margin-right: auto; } }

.hero-buttons {
  display: flex; gap: .75rem; flex-wrap: wrap;
  margin-bottom: 0;
}
@media (max-width: 1023px) { .hero-buttons { justify-content: center; } }

.btn-hero-primary {
  display: inline-flex; align-items: center; gap: .5rem;
  font-weight: 700;
  font-size: clamp(.9rem, 1.1vw, 1.15rem);
  padding: clamp(.75rem, 1.1vw, 1.1rem) clamp(1.2rem, 1.8vw, 2rem);
  background: var(--grad); color: #fff;
  border: none; border-radius: .9rem; cursor: pointer;
  box-shadow: 0 8px 25px rgba(12,181,210,.4);
  transition: transform .2s, box-shadow .2s;
  text-decoration: none;
}
.btn-hero-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 35px rgba(12,181,210,.5); }
.btn-hero-primary svg { transition: transform .2s; }
.btn-hero-primary:hover svg { transform: translateX(3px); }

.btn-hero-secondary {
  display: inline-flex; align-items: center; gap: .5rem;
  font-weight: 700;
  font-size: clamp(.9rem, 1.1vw, 1.15rem);
  padding: clamp(.75rem, 1.1vw, 1.1rem) clamp(1.2rem, 1.8vw, 2rem);
  background: rgba(0,0,0,.35); backdrop-filter: blur(8px);
  color: #fff; border: 1px solid rgba(255,255,255,.15);
  border-radius: .9rem; cursor: pointer;
  transition: background .2s; text-decoration: none;
}
.btn-hero-secondary:hover { background: rgba(0,0,0,.5); }

/*
  Stats — spychane na dół kolumny przez margin-top: auto.
  To sprawi że lewa kolumna jest "rozciągnięta" od badge do stats,
  a obraz po prawej dopasuje się do tej samej wysokości.
*/
.hero-stats {
  margin-top: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255,255,255,.12);
}

.stat-value {
  font-weight: 800;
  font-size: clamp(1.3rem, 2.4vw, 3rem);
  color: #fff; line-height: 1.1;
}
.hero-stat-small {
  font-size: clamp(1rem, 1.8vw, 2rem) !important;
  line-height: 1.2;
}

.stat-label {
  font-size: clamp(.65rem, .85vw, 1rem);
  color: rgba(255,255,255,.55);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-top: .2rem;
}

/* ── Prawa kolumna (image) ── */
.hero-image {
  order: 1;
  display: flex;
  align-items: center;
  align-self: center;
  border-radius: 1.20rem;
  min-width: 0;
  overflow: hidden;
}
@media (min-width: 1024px) { .hero-image { order: 2; } }
@media (max-width: 1023px) {
  .hero-image {
    justify-content: center;
  }
}

.hero-img-wrap {
  position: relative;
  width: 100%;
  max-width: 100%;
  display: flex;
  flex-direction: column;
  isolation: isolate;
}

/* Particle canvas overlay */
#hero-particle-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 3;
  border-radius: inherit;
  mix-blend-mode: screen;
}

/* Vignette depth layer on image */
.hero-img-inner::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background:
    radial-gradient(ellipse at 50% 0%,   rgba(12,181,210,.1) 0%, transparent 60%),
    radial-gradient(ellipse at 100% 100%, rgba(83,17,89,.15) 0%, transparent 55%);
  pointer-events: none;
  z-index: 2;
}
@media (max-width: 1023px) {
  .hero-img-wrap {
    max-width: min(380px, 100%);
    margin: 0 auto;
  }
}

.hero-img-glow {
  position: absolute;
  inset: -12px;
  border-radius: 1.75rem;
  background: var(--grad);
  filter: blur(20px);
  opacity: .7;
  animation: glowPulse 3s ease-in-out infinite;
  pointer-events: none;
  z-index: 0;
}
@keyframes glowPulse { 0%, 100% { opacity: .6; } 50% { opacity: .9; } }

.hero-img-inner {
  position: relative;
  z-index: 1;
  border-radius: 1.5rem;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.15);
  box-shadow: var(--shadow-2xl);
  flex: none;
  width: 100%;
  aspect-ratio: 9 / 13;
}

.hero-img-inner img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

/* On mobile keep a natural aspect ratio */
@media (max-width: 1023px) {
  .hero-img-inner {
    aspect-ratio: 9 / 11;
  }
  .hero-img-inner img {
    height: 100%;
  }
}

/* ════════════════════════════════════════════════════
   SECTIONS — shared
════════════════════════════════════════════════════ */
.section {
  position: relative; z-index: 1;
  padding: clamp(4rem, 8vw, 8rem) 0;
}
.section-bg-white { background: rgba(255,255,255,.97); }

.section-label {
  display: inline-flex; align-items: center; gap: .5rem;
  background: linear-gradient(135deg, rgba(12,181,210,.1), rgba(83,17,89,.1));
  border-radius: 100px; padding: .4rem 1rem; margin-bottom: 1.25rem;
}
.section-label span {
  font-weight: 700; font-size: .8rem;
  background: var(--grad);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}

.section-title {
  font-weight: 800;
  font-size: clamp(2rem, 4vw, 3.75rem);
  background: var(--grad);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
  line-height: 1.1;
  /* padding-bottom daje miejsce na descenders (g, y, p) przycięte przez background-clip */
  padding-bottom: 0.2em;
  margin-bottom: calc(.75rem - 0.2em);
  letter-spacing: -0.025em;
}

.section-subtitle {
  font-size: clamp(.9rem, 1.2vw, 1.15rem);
  color: var(--gray-600); max-width: 44rem;
  margin: 0 auto; line-height: 1.7;
}

.text-center { text-align: center; }

/* ════════════════════════════════════════════════════
   PRICING
════════════════════════════════════════════════════ */
#pricing { background: rgba(255,255,255,.97); }

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
  max-width: 1300px;
  margin: 0 auto 4rem;
  align-items: stretch;
}

.pricing-card {
  position: relative; background: #fff;
  border-radius: var(--radius-2xl);
  border: 1.5px solid var(--gray-200);
  box-shadow: 0 4px 24px rgba(0,0,0,.06);
  display: flex; flex-direction: column;
  transition: transform .3s, box-shadow .3s, border-color .3s;
  overflow: visible;
}
.pricing-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(0,0,0,.12);
  border-color: var(--c1);
}
.pricing-card.featured {
  border: 2.5px solid rgba(83,17,89,.35);
  transform: scale(1.04);
  box-shadow: 0 12px 50px rgba(83,17,89,.15);
}
.pricing-card.featured:hover {
  transform: scale(1.04) translateY(-4px);
  box-shadow: 0 20px 60px rgba(83,17,89,.2);
}

.pricing-card-glow {
  position: absolute; inset: -4px;
  border-radius: calc(var(--radius-2xl) + 4px);
  background: var(--grad); filter: blur(16px);
  opacity: 0; transition: opacity .4s;
  z-index: -1; pointer-events: none;
}
.pricing-card.featured .pricing-card-glow { opacity: .15; }
.pricing-card.featured:hover .pricing-card-glow { opacity: .25; }

.pricing-badge {
  position: absolute; top: -1px; left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, #f59e0b, #f97316, #ec4899);
  color: #fff; font-weight: 700; font-size: .7rem;
  padding: .35rem .85rem;
  border-radius: 0 0 .75rem .75rem;
  white-space: nowrap;
  display: flex; align-items: center; gap: .3rem;
  box-shadow: 0 4px 12px rgba(249,115,22,.3);
}

.pricing-head { padding: 1.5rem 1.5rem 0; }
.pricing-card.featured .pricing-head { padding-top: 2.5rem; }

.pricing-name {
  font-weight: 700; font-size: 1rem;
  color: var(--gray-900); margin-bottom: .6rem;
  letter-spacing: -0.01em;
}
.pricing-price { display: flex; align-items: baseline; gap: .3rem; margin-bottom: 1rem; }
.price-amount {
  font-weight: 800;
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  background: var(--grad);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
  padding-bottom: 0.15em;
}
.price-period { font-size: .85rem; color: var(--gray-500); font-weight: 500; }

.pricing-features {
  padding: 0 1.5rem 1rem; flex-grow: 1;
  display: flex; flex-direction: column; gap: .55rem;
}
.pricing-feature { display: flex; align-items: flex-start; gap: .6rem; }
.feature-check {
  flex-shrink: 0; width: 18px; height: 18px;
  border-radius: 50%; background: var(--grad);
  display: flex; align-items: center; justify-content: center;
  margin-top: 1px; transition: transform .2s;
}
.pricing-feature:hover .feature-check { transform: scale(1.15); }
.feature-check svg { width: 10px; height: 10px; }
.pricing-feature span {
  font-size: .85rem; color: var(--gray-700);
  font-weight: 500; line-height: 1.4;
}
.pricing-divider { display: flex; align-items: center; gap: .5rem; padding: .25rem 0; }
.pricing-divider-line {
  flex: 1; height: 1px;
  background: linear-gradient(90deg, rgba(12,181,210,.25), rgba(83,17,89,.25));
}
.pricing-divider-label {
  font-size: .65rem; font-weight: 600;
  color: var(--gray-400); white-space: nowrap; padding: 0 .25rem;
}

.pricing-footer { padding: 0 1.5rem 1.5rem; margin-top: auto; }
.btn-pricing {
  display: flex; align-items: center; justify-content: center; gap: .4rem;
  width: 100%; font-weight: 700; font-size: .85rem;
  padding: .75rem 1rem; border-radius: .9rem;
  border: none; cursor: pointer; text-decoration: none;
  transition: all .3s; box-shadow: 0 2px 10px rgba(0,0,0,.08);
}
.btn-pricing-default { background: var(--gray-100); color: var(--gray-900); }
.btn-pricing-default:hover {
  background: var(--grad); color: #fff;
  transform: translateY(-2px); box-shadow: 0 6px 20px rgba(12,181,210,.3);
}
.btn-pricing-featured {
  background: var(--grad); color: #fff;
  box-shadow: 0 4px 20px rgba(12,181,210,.3);
}
.btn-pricing-featured:hover {
  background: var(--grad-rev);
  transform: translateY(-2px); box-shadow: 0 8px 30px rgba(83,17,89,.35);
}

/* Custom plan */
.custom-plan {
  max-width: 900px; margin: 0 auto;
  background: var(--grad); border-radius: var(--radius-2xl);
  padding: clamp(2rem,4vw,3.5rem); text-align: center;
  box-shadow: 0 20px 60px rgba(12,181,210,.25);
}
.custom-plan h3 {
  font-weight: 800; font-size: clamp(1.5rem, 3vw, 2.5rem);
  color: #fff; margin-bottom: .75rem; letter-spacing: -0.02em;
}
.custom-plan p { color: rgba(255,255,255,.85); font-size: clamp(.9rem, 1.2vw, 1.1rem); margin-bottom: 2rem; }
.btn-custom {
  display: inline-block; font-weight: 700; font-size: 1rem;
  padding: 1rem 2.5rem; background: #fff; color: var(--c1);
  border-radius: .9rem; text-decoration: none;
  box-shadow: 0 8px 30px rgba(0,0,0,.15);
  transition: transform .2s, box-shadow .2s;
}
.btn-custom:hover { transform: translateY(-2px); box-shadow: 0 14px 40px rgba(0,0,0,.2); }

/* ════════════════════════════════════════════════════
   FEATURES carousel
════════════════════════════════════════════════════ */
#features { background: rgba(242,242,242,.98); }
.features-section { padding-bottom: clamp(4rem, 8vw, 8rem); }

.features-carousel {
  width: 100%; overflow: hidden; position: relative;
}
.features-carousel::before,
.features-carousel::after {
  content: ''; position: absolute; top: 0; bottom: 0;
  width: clamp(40px, 10%, 120px); z-index: 10; pointer-events: none;
}
.features-carousel::before {
  left: 0;
  background: linear-gradient(to right, rgba(242,242,242,1) 0%, transparent 100%);
}
.features-carousel::after {
  right: 0;
  background: linear-gradient(to left, rgba(242,242,242,1) 0%, transparent 100%);
}

.features-track {
  display: flex; gap: 1.5rem;
  width: max-content;
  animation: featureScroll 40s linear infinite;
  padding: 1rem 1rem;
}
.features-track:hover { animation-play-state: paused; }
@keyframes featureScroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.feature-card {
  position: relative; background: #fff;
  border-radius: var(--radius-xl); padding: 2rem;
  width: 300px; min-height: 300px; flex-shrink: 0;
  border: 1px solid var(--gray-100);
  box-shadow: 0 8px 24px rgba(0,0,0,.05);
  display: flex; flex-direction: column;
  transition: transform .4s, box-shadow .4s;
  overflow: hidden;
  margin-bottom: 1.5rem;
}
.feature-card:hover { transform: translateY(-8px); box-shadow: 0 20px 50px rgba(0,0,0,.1); }
.feature-card::after {
  content: ''; position: absolute; inset-x: 1rem; bottom: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--c1), var(--c2), transparent);
  opacity: 0; transition: opacity .4s;
}
.feature-card:hover::after { opacity: 1; }

.feature-icon-wrap { position: relative; margin-bottom: 1.5rem; flex-shrink: 0; }
.feature-icon-bg {
  position: absolute; inset: 0;
  background: var(--grad); border-radius: .9rem;
  filter: blur(10px); opacity: .2; transition: opacity .3s;
}
.feature-card:hover .feature-icon-bg { opacity: .4; }
.feature-icon {
  position: relative; width: 60px; height: 60px;
  background: var(--grad); border-radius: .9rem;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; color: #fff;
  box-shadow: 0 8px 20px rgba(83,17,89,.2);
  transition: transform .3s;
}
.feature-card:hover .feature-icon { transform: scale(1.1) rotate(6deg); }
.feature-title {
  font-weight: 700; font-size: 1.25rem; color: var(--gray-900);
  margin-bottom: .75rem; flex-shrink: 0; transition: color .2s;
  letter-spacing: -0.015em;
}
.feature-card:hover .feature-title { color: var(--c1); }
.feature-desc { font-size: .9rem; color: var(--gray-600); line-height: 1.65; flex-grow: 1; }

/* ════════════════════════════════════════════════════
   FOOTER
════════════════════════════════════════════════════ */
/* ════════════════════════════════════════════════════
   FOOTER — Enhanced
════════════════════════════════════════════════════ */
#footer {
  position: relative;
  background: linear-gradient(160deg, #080812 0%, #160820 50%, #071420 100%);
  color: #fff;
  padding: clamp(3.5rem, 7vw, 7rem) 0 0;
  overflow: hidden;
}

/* Top glow line */
.footer-glow-line {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, var(--c1) 30%, var(--c2) 70%, transparent 100%);
  opacity: .7;
}

/* Floating orbs */
.footer-orbs { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.footer-orb {
  position: absolute; border-radius: 50%;
  filter: blur(80px); animation: orbFloat 10s ease-in-out infinite;
}
.footer-orb-1 {
  width: 380px; height: 380px;
  background: radial-gradient(circle, rgba(12,181,210,.12), transparent 70%);
  top: -120px; left: -100px;
  animation-delay: 0s;
}
.footer-orb-2 {
  width: 320px; height: 320px;
  background: radial-gradient(circle, rgba(83,17,89,.18), transparent 70%);
  top: 40%; right: -80px;
  animation-delay: -4s;
}
.footer-orb-3 {
  width: 260px; height: 260px;
  background: radial-gradient(circle, rgba(12,181,210,.08), transparent 70%);
  bottom: 80px; left: 40%;
  animation-delay: -7s;
}
@keyframes orbFloat {
  0%, 100% { transform: translateY(0) scale(1); }
  50%       { transform: translateY(-30px) scale(1.05); }
}

/* ── Grid ── */
.footer-grid {
  position: relative;
  display: grid; grid-template-columns: 1fr;
  gap: 2.5rem; margin-bottom: 3.5rem;
}
@media (min-width: 640px)  { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr; } }

/* ── Brand ── */
.footer-logo-wrap { display: inline-flex; align-items: center; text-decoration: none; margin-bottom: 1rem; }
.footer-logo { height: 2.2rem; width: auto; filter: brightness(0) invert(1); }
.footer-logo-fallback {
  display: none; font-weight: 800; font-size: 1.6rem;
  background: linear-gradient(135deg, #0cb5d2, #531159);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}

.footer-brand p {
  font-size: .9rem; color: rgba(255,255,255,.55);
  line-height: 1.8; margin-top: .25rem; max-width: 30rem;
}

/* ── Column titles ── */
.footer-col-title {
  font-weight: 700; font-size: 1rem;
  margin-bottom: 1.25rem;
  display: flex; align-items: center; gap: .6rem;
  letter-spacing: .01em;
}
.footer-col-bar {
  display: block; width: 3px; height: 1.15rem;
  background: var(--grad); border-radius: 2px; flex-shrink: 0;
}

/* ── Links ── */
.footer-links { list-style: none; display: flex; flex-direction: column; gap: .7rem; }
.footer-links a {
  font-size: .9rem; color: rgba(255,255,255,.55);
  text-decoration: none; display: flex; align-items: center; gap: .5rem;
  transition: color .2s, gap .2s;
}
.footer-link-arrow {
  opacity: 0; transition: opacity .2s, transform .2s;
  width: 14px; height: 14px; flex-shrink: 0;
}
.footer-links a:hover { color: #fff; gap: .75rem; }
.footer-links a:hover .footer-link-arrow { opacity: 1; transform: translateX(2px); }

/* ── Phone ── */
.footer-phone {
  display: flex; align-items: center; gap: .85rem;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 1.1rem;
  padding: .9rem 1.1rem; text-decoration: none; color: #fff;
  transition: background .25s, border-color .25s, transform .25s, box-shadow .25s;
  margin-top: 1.1rem;
}
.footer-phone:hover {
  background: rgba(255,255,255,.11);
  border-color: rgba(12,181,210,.3);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(12,181,210,.12);
}
.footer-phone-icon {
  width: 40px; height: 40px;
  background: linear-gradient(135deg, rgba(12,181,210,.25), rgba(83,17,89,.25));
  border-radius: .75rem;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; transition: transform .25s;
  color: var(--c1); font-size: .95rem;
}
.footer-phone:hover .footer-phone-icon { transform: scale(1.1) rotate(-5deg); }
.footer-phone-label { font-size: .7rem; color: rgba(255,255,255,.45); text-transform: uppercase; letter-spacing: .06em; }
.footer-phone-num { font-weight: 700; font-size: .97rem; margin-top: .1rem; }

/* ── Newsletter ── */
.footer-newsletter {
  position: relative;
  background: rgba(255,255,255,.04);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,.09);
  border-radius: var(--radius-2xl);
  padding: clamp(2rem, 4.5vw, 3.5rem);
  margin-bottom: 3rem;
  overflow: hidden;
}

/* Corner decorative glow inside newsletter */
.footer-newsletter-deco {
  position: absolute; top: -80px; right: -80px;
  width: 280px; height: 280px; border-radius: 50%;
  background: radial-gradient(circle, rgba(12,181,210,.12), transparent 70%);
  pointer-events: none;
}

.footer-newsletter-inner { position: relative; max-width: 640px; margin: 0 auto; text-align: center; }

/* Badge */
.footer-nl-badge {
  display: inline-flex; align-items: center; gap: .45rem;
  background: rgba(12,181,210,.12);
  border: 1px solid rgba(12,181,210,.25);
  color: var(--c1);
  border-radius: 2rem;
  font-size: .78rem; font-weight: 700;
  padding: .3rem .85rem;
  text-transform: uppercase; letter-spacing: .07em;
  margin-bottom: 1rem;
}

.footer-newsletter h3 {
  font-weight: 800; font-size: clamp(1.3rem, 2.8vw, 2.1rem);
  margin-bottom: .5rem; letter-spacing: -0.025em;
  background: linear-gradient(135deg, #fff 40%, rgba(12,181,210,.8));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.footer-newsletter p { font-size: .9rem; color: rgba(255,255,255,.55); margin-bottom: 1.75rem; }

.newsletter-form { display: flex; flex-direction: column; gap: 1rem; }
.newsletter-input {
  width: 100%; padding: .95rem 1.3rem;
  background: rgba(255,255,255,.07);
  border: 1.5px solid rgba(255,255,255,.12);
  border-radius: .9rem; color: #fff;
  font-family: var(--font); font-size: .95rem;
  outline: none; transition: border-color .2s, background .2s, box-shadow .2s;
}
.newsletter-input::placeholder { color: rgba(255,255,255,.3); }
.newsletter-input:focus {
  border-color: var(--c1);
  background: rgba(12,181,210,.06);
  box-shadow: 0 0 0 3px rgba(12,181,210,.1);
}

.newsletter-label {
  display: block; font-size: .82rem; font-weight: 600;
  color: rgba(255,255,255,.65); margin-bottom: .5rem; text-align: left;
  text-transform: uppercase; letter-spacing: .05em;
}
.newsletter-select {
  width: 100%; padding: .95rem 3rem .95rem 1.3rem;
  background: rgba(255,255,255,.07);
  border: 1.5px solid rgba(255,255,255,.12);
  border-radius: .9rem; color: #fff;
  font-family: var(--font); font-size: .95rem;
  outline: none; transition: border-color .2s, background .2s, box-shadow .2s;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='rgba(255,255,255,0.5)'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 1.25em; cursor: pointer;
}
.newsletter-select:focus {
  border-color: var(--c1);
  background-color: rgba(12,181,210,.06);
  box-shadow: 0 0 0 3px rgba(12,181,210,.1);
}
.newsletter-select option { background: #150a1e; color: #fff; }

.btn-newsletter {
  width: 100%; font-weight: 700; font-size: .95rem;
  padding: .95rem;
  background: #fff; color: var(--gray-900);
  border: none; border-radius: .9rem;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center; gap: .55rem;
  transition: all .3s;
  letter-spacing: .01em;
}
.btn-newsletter:hover {
  background: var(--grad); color: #fff;
  box-shadow: 0 8px 32px rgba(12,181,210,.35);
  transform: translateY(-1px);
}
.btn-newsletter i { font-size: .85rem; transition: transform .3s; }
.btn-newsletter:hover i { transform: translateX(3px) rotate(-20deg); }

/* ── Bottom bar ── */
.footer-bottom {
  position: relative;
  border-top: 1px solid rgba(255,255,255,.07);
  padding: 1.6rem 0;
  display: flex; flex-direction: column;
  gap: 1rem; align-items: center; text-align: center;
}
@media (min-width: 768px) {
  .footer-bottom { flex-direction: row; justify-content: space-between; text-align: left; }
}
.footer-bottom p { font-size: .81rem; color: rgba(255,255,255,.4); }
.footer-legal { display: flex; flex-wrap: wrap; justify-content: center; gap: 1.5rem; }
.footer-legal a {
  font-size: .81rem; color: rgba(255,255,255,.4);
  text-decoration: none; transition: color .2s;
  position: relative;
}
.footer-legal a::after {
  content: ''; position: absolute; bottom: -2px; left: 0; right: 100%;
  height: 1px; background: var(--c1);
  transition: right .25s;
}
.footer-legal a:hover { color: #fff; }
.footer-legal a:hover::after { right: 0; }

/* ════════════════════════════════════════════════════
   ANIMATIONS
════════════════════════════════════════════════════ */
.animate-up {
  opacity: 0; transform: translateY(30px);
  transition: opacity .7s ease, transform .7s ease;
}
.animate-up.visible { opacity: 1; transform: translateY(0); }
.animate-delay-1 { transition-delay: .1s; }
.animate-delay-2 { transition-delay: .2s; }
.animate-delay-3 { transition-delay: .3s; }
.animate-delay-4 { transition-delay: .4s; }

@keyframes spin { to { transform: rotate(360deg); } }

/* ════════════════════════════════════════════════════
   RESPONSIVE
════════════════════════════════════════════════════ */
@media (max-width: 1279px) {
  .nav-links, .nav-cta { display: none !important; }
  .nav-hamburger { display: flex !important; }
}
@media (max-width: 640px) {
  .pricing-grid { grid-template-columns: 1fr; }
  .pricing-card.featured { transform: none; }
  .pricing-card.featured:hover { transform: translateY(-4px); }
  .hero-stats { gap: .5rem; }
  .hero-buttons { flex-direction: column; }
  .btn-hero-primary, .btn-hero-secondary { justify-content: center; }
}

/* ════════════════════════════════════════════════════
   AUTH MODAL
════════════════════════════════════════════════════ */
.modal-overlay {
  display: none; position: fixed; inset: 0; z-index: 9999;
  background: rgba(0,0,0,.6); backdrop-filter: blur(6px);
  align-items: center; justify-content: center; padding: 1rem;
}
.modal-overlay.open { display: flex; }
.modal-box {
  background: #fff; border-radius: var(--radius-2xl);
  width: 100%; max-width: 440px; padding: 2.5rem;
  position: relative; box-shadow: var(--shadow-2xl);
  max-height: 90vh; overflow-y: auto;
}
.modal-close {
  position: absolute; top: 1rem; right: 1rem;
  width: 32px; height: 32px; border: none;
  background: var(--gray-100); border-radius: .5rem;
  cursor: pointer; display: flex;
  align-items: center; justify-content: center;
  color: var(--gray-500); transition: background .2s;
}
.modal-close:hover { background: var(--gray-200); }
.modal-title {
  font-weight: 800; font-size: 1.75rem;
  background: var(--grad);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
  padding-bottom: 0.15em;
  margin-bottom: calc(.35rem - 0.15em); text-align: center; letter-spacing: -0.02em;
}
.modal-subtitle { font-size: .9rem; color: var(--gray-500); text-align: center; margin-bottom: 1.75rem; }
.form-group { margin-bottom: 1rem; }
.form-label { display: block; font-size: .8rem; font-weight: 600; color: var(--gray-700); margin-bottom: .4rem; }
.form-input {
  width: 100%; padding: .75rem 1rem;
  border: 1.5px solid var(--gray-200); border-radius: .75rem;
  font-family: var(--font); font-size: .95rem;
  outline: none; transition: border-color .2s; color: var(--gray-900);
}
.form-input:focus { border-color: var(--c1); }
.form-error {
  background: #fef2f2; border: 1px solid #fecaca; color: #dc2626;
  padding: .65rem .9rem; border-radius: .65rem;
  font-size: .83rem; margin-bottom: .75rem;
}
.form-success {
  background: #f0fdf4; border: 1px solid #bbf7d0; color: #16a34a;
  padding: .65rem .9rem; border-radius: .65rem;
  font-size: .83rem; margin-bottom: .75rem;
}
.btn-submit {
  width: 100%; font-weight: 700; font-size: .95rem;
  padding: .9rem; background: var(--grad); color: #fff;
  border: none; border-radius: .9rem; cursor: pointer;
  box-shadow: 0 4px 20px rgba(12,181,210,.3);
  transition: transform .2s, box-shadow .2s;
  display: flex; align-items: center; justify-content: center; gap: .5rem;
}
.btn-submit:hover { transform: translateY(-1px); box-shadow: 0 8px 30px rgba(12,181,210,.4); }
.btn-submit:disabled { opacity: .5; cursor: not-allowed; transform: none; }
.modal-switch {
  text-align: center; font-size: .85rem; color: var(--gray-600); margin-top: 1.25rem;
}
.modal-switch button {
  background: none; border: none; cursor: pointer;
  color: var(--c1); font-weight: 700; font-size: .85rem;
  margin-left: .35rem; padding: 0;
}
.recaptcha-note { font-size: .7rem; color: var(--gray-400); text-align: center; margin: .5rem 0; }
.spinner {
  width: 18px; height: 18px;
  border: 2px solid rgba(255,255,255,.3); border-top-color: #fff;
  border-radius: 50%; animation: spin .7s linear infinite; flex-shrink: 0;
}

/* ════════════════════════════════════════════════════
   NAVBAR — stan zalogowany
════════════════════════════════════════════════════ */
.nav-user-badge {
  display: flex; align-items: center; gap: .5rem;
  padding: .3rem .7rem;
  background: #eff6ff;
  border: 1px solid #dbeafe;
  border-radius: .75rem;
}
.nav-user-avatar {
  width: 1.75rem; height: 1.75rem; border-radius: 50%;
  background: var(--grad);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 700; font-size: .78rem; flex-shrink: 0;
}
.nav-user-name {
  font-size: .8rem; font-weight: 600; color: var(--gray-700);
  max-width: 80px; overflow: hidden;
  white-space: nowrap; text-overflow: ellipsis;
}

/* ── Session timer ──────────────────────────────────── */
.session-timer-wrap {
  display: flex; align-items: center; gap: .35rem;
  padding: .3rem .6rem;
  border-radius: .6rem; border: 1px solid;
  font-size: .75rem; font-weight: 700;
  font-family: ui-monospace, 'Cascadia Code', monospace;
  transition: all .3s; user-select: none; cursor: pointer;
}
.session-timer-wrap.timer-green  { color: #16a34a; background: #f0fdf4; border-color: #bbf7d0; }
.session-timer-wrap.timer-yellow { color: #ca8a04; background: #fefce8; border-color: #fde68a; }
.session-timer-wrap.timer-red    { color: #dc2626; background: #fef2f2; border-color: #fecaca; }

/* ── Przyciski: settings + logout ────────────────────── */
.nav-settings-btn {
  display: flex; align-items: center; justify-content: center;
  width: 2rem; height: 2rem;
  border-radius: .5rem; background: var(--gray-100);
  color: var(--gray-600); border: none; cursor: pointer;
  transition: background .2s;
}
.nav-settings-btn:hover { background: var(--gray-200); }

.nav-logout-btn {
  padding: .3rem .7rem;
  background: #fef2f2; color: #dc2626;
  font-weight: 700; font-size: .75rem;
  border-radius: .5rem; border: 1px solid #fecaca;
  cursor: pointer; transition: background .2s;
}
.nav-logout-btn:hover { background: #fee2e2; }

/* ── Mobile menu — zalogowany ─────────────────────────── */
.mob-user-row {
  display: flex; align-items: center; gap: .75rem;
  padding: .5rem 0 .75rem;
}
.mob-action-btn {
  display: flex; align-items: center; gap: .6rem;
  width: 100%; padding: .75rem .25rem;
  font-weight: 600; font-size: .95rem;
  color: var(--gray-700); background: none; border: none;
  cursor: pointer; border-radius: .75rem; transition: background .2s;
}
.mob-action-btn:hover  { background: var(--gray-100); }
.mob-logout-btn        { color: #dc2626; }
.mob-logout-btn:hover  { background: #fef2f2; }

/* ════════════════════════════════════════════════════
   SETTINGS MODAL
════════════════════════════════════════════════════ */
.settings-modal-header {
  padding: 1.5rem 2rem 0;
  position: sticky; top: 0;
  background: #fff; z-index: 1;
  /* oddziel wizualnie od przewijanej treści */
  border-bottom: 1px solid transparent;
  transition: border-color .2s;
}
.settings-modal-title {
  font-size: 1.5rem; font-weight: 900;
  background: var(--grad);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text; padding-bottom: .1em;
}
.settings-tabs-bar {
  display: flex; gap: .25rem;
  background: var(--gray-100); border-radius: .75rem;
  padding: .25rem; margin-bottom: 0;
}
.settings-tab-btn {
  flex: 1; padding: .5rem .75rem;
  font-size: .82rem; font-weight: 600;
  border: none; border-radius: .6rem; cursor: pointer;
  transition: all .2s; background: none; color: var(--gray-500);
}
.settings-tab-btn:hover  { color: var(--gray-700); }
.settings-tab-btn.active {
  background: #fff; color: var(--gray-900);
  box-shadow: 0 1px 4px rgba(0,0,0,.1);
}
.settings-content {
  overflow-y: auto;
  max-height: calc(90vh - 170px);
  padding: 1.5rem 2rem;
}

/* ── Settings form elements ──────────────────────────── */
.settings-input {
  width: 100%; padding: .75rem 1rem;
  border: 1.5px solid var(--gray-200); border-radius: .75rem;
  font-family: var(--font); font-size: .9rem;
  outline: none; transition: border-color .2s; color: var(--gray-900);
}
.settings-input:focus { border-color: var(--c1); }

.settings-btn {
  width: 100%; font-weight: 700; font-size: .95rem;
  padding: .85rem; color: #fff;
  border: none; border-radius: .85rem; cursor: pointer;
  background: var(--grad);
  box-shadow: 0 4px 20px rgba(12,181,210,.25);
  transition: transform .2s, box-shadow .2s, opacity .2s;
}
.settings-btn:hover    { transform: translateY(-1px); box-shadow: 0 8px 28px rgba(12,181,210,.35); }
.settings-btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }

.settings-label {
  display: block; font-size: .82rem; font-weight: 600;
  color: var(--gray-700); margin-bottom: .4rem;
}
.settings-form-group { margin-bottom: 1.1rem; }

.settings-avatar {
  width: 5rem; height: 5rem; border-radius: 50%;
  background: var(--grad);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 700; font-size: 1.5rem; flex-shrink: 0;
}
.settings-profile-header {
  display: flex; align-items: center; gap: 1rem; margin-bottom: 1.5rem;
}
.settings-profile-name  { font-size: 1.15rem; font-weight: 700; color: var(--gray-900); }
.settings-profile-email { font-size: .85rem; color: var(--gray-500); }

.settings-error {
  background: #fef2f2; border: 1px solid #fecaca; color: #dc2626;
  padding: .65rem .9rem; border-radius: .65rem;
  font-size: .83rem; margin-bottom: .75rem; display: none;
}
.settings-success {
  background: #f0fdf4; border: 1px solid #bbf7d0; color: #16a34a;
  padding: .65rem .9rem; border-radius: .65rem;
  font-size: .83rem; margin-bottom: .75rem; display: none;
}

/* ── Legal documents list ───────────────────────────── */
.legal-doc-btn {
  display: flex; align-items: center; gap: 1rem;
  width: 100%; padding: 1rem;
  background: #fff;
  border: 2px solid var(--gray-100);
  border-radius: 1rem; text-align: left;
  cursor: pointer; transition: border-color .2s, box-shadow .2s;
  margin-bottom: .75rem;
}
.legal-doc-btn:last-child { margin-bottom: 0; }
.legal-doc-btn:hover {
  border-color: rgba(12,181,210,.4);
  box-shadow: 0 4px 12px rgba(0,0,0,.07);
}
.legal-doc-icon {
  width: 2.75rem; height: 2.75rem; border-radius: .75rem; flex-shrink: 0;
  background: linear-gradient(135deg, rgba(12,181,210,.12), rgba(83,17,89,.12));
  color: var(--c1);
  display: flex; align-items: center; justify-content: center;
  transition: background .2s;
}
.legal-doc-btn:hover .legal-doc-icon {
  background: linear-gradient(135deg, rgba(12,181,210,.22), rgba(83,17,89,.22));
}
.legal-doc-title  { font-weight: 700; font-size: .9rem; color: var(--gray-900); }
.legal-doc-btn:hover .legal-doc-title { color: var(--c1); }
.legal-doc-preview { font-size: .75rem; color: var(--gray-400); margin-top: .2rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 260px; }
.legal-doc-arrow  { margin-left: auto; color: var(--gray-300); flex-shrink: 0; transition: color .2s, transform .2s; }
.legal-doc-btn:hover .legal-doc-arrow { color: var(--c1); transform: translateX(2px); }

.legal-back-btn {
  display: inline-flex; align-items: center; gap: .4rem;
  font-size: .88rem; font-weight: 600;
  color: var(--c1); background: none; border: none; cursor: pointer;
  padding: 0; margin-bottom: 1.5rem; transition: color .2s;
}
.legal-back-btn:hover { color: var(--c2); }
.legal-back-btn svg   { transition: transform .2s; }
.legal-back-btn:hover svg { transform: translateX(-2px); }

.legal-doc-content {
  background: var(--gray-100); border-radius: 1rem;
  padding: 1.5rem; border: 1px solid var(--gray-200);
}
.legal-doc-content p {
  font-size: .88rem; color: var(--gray-700);
  line-height: 1.75; white-space: pre-line;
}