/* =========================================================
   ColorSave — landing page
   Paleta i typografia zgodne z brandbookiem.
   ========================================================= */

/* ---------- Fonty (ładowane lokalnie) ---------- */
@font-face {
  font-family: "Poppins";
  src: url("../assets/fonts/Poppins-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Poppins";
  src: url("../assets/fonts/Poppins-Medium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Poppins";
  src: url("../assets/fonts/Poppins-SemiBold.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

/* ---------- Zmienne marki ---------- */
:root {
  --ink: #1E1E2E;        /* ciemny granat */
  --ink-soft: #2A2A3D;   /* jaśniejszy granat (karty na ciemnym) */
  --violet: #7B61FF;     /* kolor główny */
  --violet-light: #B79CFF;
  --teal: #4DD4C1;       /* drugi akcent */
  --teal-light: #B8F2E6;
  --paper: #F2F3F7;      /* jasne tło */
  --white: #FFFFFF;
  --text-muted: #545468;         /* tekst drugorzędny na jasnym */
  --text-muted-dark: #A9ABBF;    /* tekst drugorzędny na ciemnym */
  --grad: linear-gradient(100deg, var(--violet), var(--teal));
  --radius: 20px;
  --shadow-card: 0 6px 24px rgba(30, 30, 46, 0.08);
  --shadow-card-hover: 0 14px 34px rgba(123, 97, 255, 0.18);
  --nav-h: 72px;
}

/* ---------- Reset i baza ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 12px);
}

body {
  margin: 0;
  font-family: "Poppins", "Segoe UI", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }

h1, h2, h3 {
  font-weight: 600;
  line-height: 1.2;
  margin: 0 0 0.5em;
  text-wrap: balance;
}
p { margin: 0 0 1em; }

a { color: var(--violet); }

/* Wyraźny focus dla nawigacji klawiaturą */
:focus-visible {
  outline: 3px solid var(--teal);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 200;
  background: var(--ink);
  color: var(--white);
  padding: 10px 18px;
  border-radius: 10px;
  text-decoration: none;
  transition: top 0.2s ease;
}
.skip-link:focus { top: 12px; }

.container {
  width: min(1120px, 100% - 40px);
  margin-inline: auto;
}

/* ---------- Przyciski ---------- */
.btn {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  text-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease,
              background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.btn-primary {
  background: var(--violet);
  color: var(--white);
  box-shadow: 0 8px 22px rgba(123, 97, 255, 0.35);
}
.btn-primary:hover, .btn-primary:focus-visible {
  background: #8d76ff;
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(123, 97, 255, 0.45);
}
.btn-ghost {
  color: var(--white);
  border: 2px solid rgba(184, 242, 230, 0.5);
}
.btn-ghost:hover, .btn-ghost:focus-visible {
  border-color: var(--teal);
  color: var(--teal-light);
  transform: translateY(-2px);
}
.btn-small { padding: 10px 22px; font-size: 0.92rem; }

/* ---------- Teksty ozdobne ---------- */
.grad-text {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.eyebrow {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 10px;
}

/* ---------- Logo tekstowe ---------- */
.logo-text {
  font-weight: 600;
  font-size: 1.25rem;
  letter-spacing: 0.01em;
}
.logo-text em {
  font-style: normal;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* =========================================================
   NAWIGACJA
   ========================================================= */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}
.nav.scrolled {
  background: rgba(30, 30, 46, 0.86);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.25);
}
.nav-inner {
  width: min(1120px, 100% - 40px);
  margin-inline: auto;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--white);
}
.nav-menu {
  display: flex;
  align-items: center;
  gap: 26px;
}
.nav-menu a {
  color: var(--white);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.2s ease;
}
.nav-menu a:not(.btn):hover { color: var(--teal); }
.nav-menu a.btn { color: var(--white); }

/* Hamburger — widoczny tylko na małych ekranach */
.nav-burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 46px;
  height: 46px;
  padding: 10px;
  background: transparent;
  border: 0;
  cursor: pointer;
}
.nav-burger span {
  display: block;
  height: 2px;
  border-radius: 2px;
  background: var(--white);
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.nav-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 820px) {
  .nav { background: rgba(30, 30, 46, 0.86); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
  .nav-burger { display: flex; }
  .nav-menu {
    position: absolute;
    top: var(--nav-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 12px 20px 20px;
    background: #23232F;
    box-shadow: 0 20px 30px rgba(0, 0, 0, 0.3);
    display: none;
  }
  .nav-menu.open { display: flex; }
  .nav-menu a { padding: 12px 6px; font-size: 1.05rem; }
  .nav-menu a.btn { margin-top: 8px; }
}

/* =========================================================
   HERO
   ========================================================= */
.hero {
  position: relative;
  background: var(--ink);
  color: var(--white);
  padding: calc(var(--nav-h) + 56px) 0 90px;
  overflow: hidden;
  isolation: isolate;
}
.hero-inner {
  position: relative;
  z-index: 2;
  width: min(1120px, 100% - 40px);
  margin-inline: auto;
  display: grid;
  gap: 40px;
  align-items: center;
  text-align: center;
}
@media (min-width: 880px) {
  .hero-inner { grid-template-columns: 1.15fr 0.85fr; text-align: left; }
}

.hero-kicker {
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 18px;
}
.hero h1 {
  font-size: clamp(2.2rem, 5.4vw, 3.6rem);
  margin-bottom: 20px;
}
.hero-lead {
  font-size: 1.08rem;
  color: var(--text-muted-dark);
  max-width: 34em;
  margin-inline: auto;
}
@media (min-width: 880px) { .hero-lead { margin-inline: 0; } }

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
  margin: 28px 0 18px;
}
@media (min-width: 880px) { .hero-cta { justify-content: flex-start; } }

.hero-note {
  font-size: 0.88rem;
  color: var(--text-muted-dark);
  margin: 0;
}

/* Savee w hero */
.hero-savee {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 6px;
}
.savee-img { width: min(360px, 72vw); }

/* Delikatne "oddychanie" Savee */
.savee-float { animation: savee-float 6s ease-in-out infinite; }
@keyframes savee-float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-12px); }
}

/* Plamy gradientu w tle hero (powolny, subtelny ruch) */
.hero-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.5;
  pointer-events: none;
}
.hero-blob-1 {
  width: 480px; height: 480px;
  left: -140px; top: -80px;
  background: radial-gradient(circle, rgba(123, 97, 255, 0.55), transparent 65%);
  animation: blob-drift 22s ease-in-out infinite alternate;
}
.hero-blob-2 {
  width: 520px; height: 520px;
  right: -160px; bottom: -180px;
  background: radial-gradient(circle, rgba(77, 212, 193, 0.4), transparent 65%);
  animation: blob-drift 26s ease-in-out infinite alternate-reverse;
}
@keyframes blob-drift {
  0%   { transform: translate(0, 0) scale(1); }
  100% { transform: translate(60px, 40px) scale(1.15); }
}

/* Iskierki */
.spark {
  position: absolute;
  width: 20px;
  height: 20px;
  fill: var(--teal);
  opacity: 0;
  animation: spark-twinkle 3.4s ease-in-out infinite;
  animation-delay: var(--spark-delay, 0s);
  pointer-events: none;
}
.spark-violet { fill: var(--violet-light); }
@keyframes spark-twinkle {
  0%, 100% { opacity: 0;   transform: scale(0.5) rotate(0deg); }
  50%      { opacity: 0.9; transform: scale(1)   rotate(24deg); }
}

/* =========================================================
   DYMKI SAVEE
   ========================================================= */
.bubble {
  position: relative;
  background: var(--white);
  color: var(--ink);
  border-radius: 18px;
  padding: 16px 22px;
  font-size: 1rem;
  line-height: 1.5;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
  max-width: 320px;
}
.bubble::after {
  content: "";
  position: absolute;
  bottom: -8px;
  left: 50%;
  width: 18px;
  height: 18px;
  background: var(--white);
  transform: translateX(-50%) rotate(45deg);
  border-radius: 3px;
}
.bubble-left::after  { left: 24px; transform: rotate(45deg); }
.bubble-right::after { left: auto; right: 24px; transform: rotate(45deg); }

/* Dymek pojawia się z lekkim "wyskokiem" po wejściu sekcji */
.js .bubble { opacity: 0; transform: scale(0.7); }
.js .reveal.visible .bubble,
.js .hero .bubble {
  animation: bubble-pop 0.55s cubic-bezier(0.34, 1.56, 0.64, 1) 0.5s forwards;
}
@keyframes bubble-pop {
  from { opacity: 0; transform: scale(0.7); }
  to   { opacity: 1; transform: scale(1); }
}

/* Notka z Savee pod sekcją (obrazek + dymek obok) */
.savee-note {
  display: flex;
  align-items: flex-end;
  gap: 14px;
  margin-top: 44px;
  justify-content: center;
}
.savee-img-small { width: 130px; flex-shrink: 0; }
.savee-note .bubble { margin-bottom: 34px; }
.savee-note .bubble::after {
  left: -8px;
  bottom: 22px;
  transform: rotate(45deg);
}

/* =========================================================
   SEKCJE — układ wspólny
   ========================================================= */
.section { padding: 90px 0; position: relative; overflow: hidden; }
.section-light { background: var(--paper); }
.section-white { background: var(--white); }
.section-dark  { background: var(--ink); color: var(--white); isolation: isolate; }

.section-head {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 54px;
}
.section-head-left { text-align: left; margin-inline: 0; }
.section-head h2 { font-size: clamp(1.6rem, 3.6vw, 2.4rem); }
.section-lead { color: var(--text-muted); font-size: 1.05rem; }
.section-dark .section-lead { color: var(--text-muted-dark); }

/* Animacja wejścia przy przewijaniu (tylko z JS) */
.js .reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease var(--rd, 0s), transform 0.7s ease var(--rd, 0s);
}
.js .reveal.visible { opacity: 1; transform: translateY(0); }

/* =========================================================
   KARTY (problem + funkcje)
   ========================================================= */
.problem-grid, .features-grid {
  display: grid;
  gap: 22px;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
}

.card {
  background: var(--white);
  border: 1px solid rgba(30, 30, 46, 0.06);
  border-radius: var(--radius);
  padding: 30px 26px;
  box-shadow: var(--shadow-card);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-card-hover);
  border-color: rgba(123, 97, 255, 0.3);
}
.section-white .card { background: var(--paper); box-shadow: none; }
.section-white .card:hover { background: var(--white); box-shadow: var(--shadow-card-hover); }

.card h3 { font-size: 1.12rem; margin: 18px 0 8px; }
.card p { margin: 0; color: var(--text-muted); font-size: 0.95rem; }

/* Ikony funkcji */
.card-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  display: grid;
  place-items: center;
}
.card-icon svg {
  width: 30px;
  height: 30px;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.chip-violet { background: rgba(123, 97, 255, 0.12); }
.chip-violet svg { stroke: var(--violet); }
.chip-teal { background: rgba(77, 212, 193, 0.16); }
.chip-teal svg { stroke: #189E8A; }

/* =========================================================
   JAK TO DZIAŁA — kroki
   ========================================================= */
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 34px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  counter-reset: krok;
}
.step { position: relative; text-align: center; padding: 0 8px; }
.step-num {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  margin: 0 auto 18px;
  border-radius: 50%;
  background: var(--grad);
  color: var(--white);
  font-size: 1.35rem;
  font-weight: 600;
  box-shadow: 0 8px 20px rgba(123, 97, 255, 0.3);
}
.step h3 { font-size: 1.08rem; }
.step p { color: var(--text-muted); font-size: 0.95rem; margin: 0; }

/* Linia łącząca kroki na szerokich ekranach */
@media (min-width: 980px) {
  .steps { grid-template-columns: repeat(4, 1fr); }
  .step:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 28px;
    left: calc(50% + 42px);
    width: calc(100% - 84px);
    height: 2px;
    background: linear-gradient(90deg, rgba(123, 97, 255, 0.4), rgba(77, 212, 193, 0.4));
  }
}

/* =========================================================
   MOCKUP APLIKACJI
   ========================================================= */
.mockup-wrap {
  display: grid;
  gap: 30px;
  align-items: end;
  justify-items: center;
}
@media (min-width: 980px) {
  .mockup-wrap { grid-template-columns: 1fr auto; }
}

.tablet {
  width: min(860px, 100%);
  background: #101019;
  border: 6px solid #2A2A3D;
  border-radius: 26px;
  padding: 14px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
}

.app-ui {
  display: grid;
  grid-template-columns: 190px 1fr;
  gap: 14px;
  background: var(--ink);
  border-radius: 14px;
  padding: 14px;
  font-size: 13px;
}
@media (max-width: 640px) {
  .app-ui { grid-template-columns: 52px 1fr; }
  .side-label { display: none; }
}

/* Panel boczny */
.app-side {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 8px 6px;
  background: #24243440;
  border-radius: 10px;
}
.app-side-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px 16px;
}
.app-side-logo .logo-text { font-size: 0.95rem; color: var(--white); }
.app-side-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border-radius: 9px;
  color: var(--text-muted-dark);
}
.app-side-item svg {
  width: 17px;
  height: 17px;
  flex-shrink: 0;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.app-side-item.active {
  background: rgba(123, 97, 255, 0.22);
  color: var(--white);
}
.app-side-item.active svg { stroke: var(--violet-light); }

/* Główna część pulpitu */
.app-main { padding: 8px 4px; min-width: 0; }
.app-hello {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--white);
  margin: 0;
}
.app-sub { color: var(--text-muted-dark); margin: 2px 0 14px; }
.app-sub em {
  font-style: normal;
  color: var(--teal);
}

.app-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 12px;
}
@media (max-width: 520px) { .app-cards { grid-template-columns: 1fr; } }
.app-card {
  background: #24243466;
  border: 1px solid #ffffff0f;
  border-radius: 12px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.app-card-label { color: var(--text-muted-dark); font-size: 0.78rem; }
.app-card-value {
  color: var(--white);
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 1.2;
}
.app-card-value small { font-size: 0.9rem; font-weight: 500; }
.app-card-trend { color: var(--teal); font-size: 0.78rem; }

/* Wykres */
.app-chart {
  background: #24243466;
  border: 1px solid #ffffff0f;
  border-radius: 12px;
  padding: 12px 14px 6px;
}
.app-chart-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--white);
  font-weight: 500;
  margin-bottom: 6px;
}
.app-chart-range { color: var(--text-muted-dark); font-size: 0.78rem; font-weight: 400; }
.app-chart-range b { color: var(--teal); font-weight: 600; }

.chart { width: 100%; height: auto; }
.chart-grid line { stroke: rgba(255, 255, 255, 0.07); stroke-width: 1; }
.chart-ylabels text, .chart-xlabels text {
  fill: #8B8DA5;
  font-size: 12px;
  font-family: inherit;
  text-anchor: middle;
}
.chart-ylabels text { text-anchor: end; }
.chart-line { stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.chart-dots circle { fill: var(--teal); stroke: var(--ink); stroke-width: 2; }
.chart-area { opacity: 1; }

/* Animacja rysowania wykresu (uruchamiana z JS po wejściu w kadr) */
.js .chart-anim .chart-line { transition: stroke-dashoffset 1.8s ease 0.2s; }
.js .chart-anim .chart-dots circle {
  opacity: 0;
  transition: opacity 0.4s ease calc(0.35s + var(--i) * 0.18s);
}
.js .chart-anim .chart-area {
  opacity: 0;
  transition: opacity 1s ease 1.4s;
}
.js .chart-anim.drawn .chart-dots circle { opacity: 1; }
.js .chart-anim.drawn .chart-area { opacity: 1; }

.mockup-savee {
  display: grid;
  justify-items: center;
  gap: 6px;
}
.savee-img-medium { width: min(210px, 46vw); }
.mockup-caption {
  text-align: center;
  color: var(--text-muted-dark);
  font-size: 0.85rem;
  margin: 26px 0 0;
}

/* =========================================================
   SEKCJA O SAVEE
   ========================================================= */
.savee-section {
  display: grid;
  gap: 44px;
  align-items: center;
}
@media (min-width: 920px) {
  .savee-section { grid-template-columns: 0.9fr 1.1fr; }
}
.savee-hero {
  position: relative;
  display: grid;
  place-items: center;
  padding: 30px;
}
/* Miękka gradientowa poświata za Savee */
.savee-hero::before {
  content: "";
  position: absolute;
  inset: 10%;
  background: radial-gradient(circle,
              rgba(123, 97, 255, 0.16) 0%,
              rgba(77, 212, 193, 0.12) 45%,
              transparent 70%);
  border-radius: 50%;
}
.savee-img-big { position: relative; width: min(360px, 76vw); }

.savee-list {
  list-style: none;
  padding: 0;
  margin: 0 0 30px;
  display: grid;
  gap: 12px;
}
.savee-list li {
  position: relative;
  padding-left: 34px;
  color: var(--text-muted);
}
.savee-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--grad);
  /* znacznik "ptaszka" wycięty z gradientowego kółka */
  -webkit-mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><circle cx="12" cy="12" r="12" fill="black"/></svg>') center / contain no-repeat;
  mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><circle cx="12" cy="12" r="12" fill="black"/></svg>') center / contain no-repeat;
}
.savee-list li::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 8px;
  width: 9px;
  height: 5px;
  border-left: 2.4px solid var(--white);
  border-bottom: 2.4px solid var(--white);
  transform: rotate(-45deg);
}

/* Przykładowe komunikaty w stylu czatu */
.savee-chat { display: grid; gap: 10px; max-width: 460px; }
.chat-msg {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--paper);
  border: 1px solid rgba(30, 30, 46, 0.06);
  border-radius: 14px;
  padding: 10px 16px;
  box-shadow: var(--shadow-card);
}
.chat-msg img {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--white);
  object-fit: cover;
  object-position: top;
  flex-shrink: 0;
}
.chat-msg p { margin: 0; font-size: 0.92rem; color: var(--ink); }

/* Komunikaty wjeżdżają jeden po drugim */
.js .savee-chat .chat-msg {
  opacity: 0;
  transform: translateX(24px);
  transition: opacity 0.6s ease var(--rd, 0s), transform 0.6s ease var(--rd, 0s);
}
.js .reveal.visible .chat-msg,
.js .savee-chat.visible .chat-msg { opacity: 1; transform: translateX(0); }

/* =========================================================
   CTA KOŃCOWE
   ========================================================= */
.section-cta { padding-bottom: 110px; }
.cta-panel {
  position: relative;
  background: var(--ink);
  color: var(--white);
  border-radius: 28px;
  padding: 54px 48px 0;
  display: grid;
  gap: 20px;
  overflow: hidden;
  box-shadow: 0 30px 70px rgba(30, 30, 46, 0.35);
  will-change: transform;
  transform-style: preserve-3d;
}
/* Gradientowe "pociągnięcie pędzla" w tle panelu */
.cta-panel::before {
  content: "";
  position: absolute;
  right: -80px;
  top: -80px;
  width: 380px;
  height: 380px;
  background: radial-gradient(circle, rgba(123, 97, 255, 0.35), transparent 65%);
  filter: blur(30px);
  pointer-events: none;
}
.cta-panel::after {
  content: "";
  position: absolute;
  left: -60px;
  bottom: -100px;
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(77, 212, 193, 0.28), transparent 65%);
  filter: blur(30px);
  pointer-events: none;
}

/* --- Holograficzny połysk (w palecie marki) --- */
.cta-shine {
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: inherit;
  pointer-events: none;
  /* Iryzujące pasma fiolet → jasny fiolet → turkus, powoli przesuwane */
  background: linear-gradient(
    115deg,
    transparent 22%,
    rgba(123, 97, 255, 0.30) 36%,
    rgba(183, 156, 255, 0.28) 45%,
    rgba(184, 242, 230, 0.26) 53%,
    rgba(77, 212, 193, 0.30) 62%,
    transparent 78%
  );
  background-size: 220% 100%;
  background-position: 0% 50%;
  mix-blend-mode: screen;
  opacity: 0.7;
  animation: holo-drift 9s linear infinite;
  transition: opacity 0.4s ease;
}
/* Świetlny refleks podążający za kursorem (na osobnej warstwie, nie animowany) */
.cta-shine::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(
    520px circle at var(--mx, 72%) var(--my, 16%),
    rgba(184, 242, 230, 0.22),
    transparent 44%
  );
  mix-blend-mode: screen;
  transition: opacity 0.4s ease;
}
.cta-panel:hover .cta-shine { opacity: 1; }

@keyframes holo-drift {
  0%   { background-position: 0% 50%; }
  100% { background-position: 200% 50%; }
}

@media (min-width: 880px) {
  .cta-panel { grid-template-columns: 1.3fr 0.7fr; align-items: end; }
}
/* Na wąskich ekranach mniej paddingu — więcej miejsca na treść */
@media (max-width: 560px) {
  .cta-panel { padding: 40px 24px 0; border-radius: 22px; }
}
.cta-copy { position: relative; z-index: 2; padding-bottom: 54px; min-width: 0; }
.cta-copy h2 { font-size: clamp(1.6rem, 3.4vw, 2.3rem); }
.cta-copy p { color: var(--text-muted-dark); max-width: 32em; }
.cta-buttons { margin: 26px 0 14px; }
.cta-mail { font-size: 0.9rem; margin: 0; overflow-wrap: anywhere; }
/* Długi adres e-mail musi móc się złamać, inaczej rozpycha ramkę na wąskim ekranie */
.cta-mail a { color: var(--teal); text-decoration-color: rgba(77, 212, 193, 0.5); overflow-wrap: anywhere; }
.cta-mail a:hover { color: var(--teal-light); }

.cta-savee {
  position: relative;
  z-index: 2;
  display: grid;
  justify-items: center;
  gap: 6px;
  align-self: end;
}
.cta-savee img { margin-bottom: -5px; }

/* =========================================================
   HOLOGRAFICZNY POŁYSK — wersja dla ciemnych sekcji (tło)
   Ten sam klimat co na ramce CTA, ale subtelniejszy i BEZ
   przechyłu (całych sekcji się nie przechyla). Warstwa siedzi
   pod treścią (z-index:-1), więc tekst zostaje ostry.
   ========================================================= */
.holo-sheen {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  /* Iryzujące pasma w palecie marki, powoli przesuwane */
  background: linear-gradient(
    115deg,
    transparent 22%,
    rgba(123, 97, 255, 0.22) 36%,
    rgba(183, 156, 255, 0.20) 45%,
    rgba(184, 242, 230, 0.18) 53%,
    rgba(77, 212, 193, 0.22) 62%,
    transparent 78%
  );
  background-size: 220% 100%;
  background-position: 0% 50%;
  mix-blend-mode: screen;
  opacity: 0.45;
  animation: holo-drift 14s linear infinite;
}
/* Świetlny refleks podążający za kursorem */
.holo-sheen::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    600px circle at var(--mx, 50%) var(--my, 8%),
    rgba(184, 242, 230, 0.14),
    transparent 46%
  );
  mix-blend-mode: screen;
}
/* Dostrojenie mocy per sekcja */
.hero .holo-sheen        { opacity: 0.38; }
.section-dark .holo-sheen { opacity: 0.5; }
.footer .holo-sheen      { opacity: 0.3; animation-duration: 20s; }

/* =========================================================
   STOPKA
   ========================================================= */
.footer {
  background: #17171F;
  color: var(--text-muted-dark);
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  justify-content: space-between;
  align-items: center;
  padding: 44px 0 30px;
}
.footer-tagline {
  margin: 10px 0 0;
  font-size: 0.88rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
}
.footer-links a {
  color: var(--text-muted-dark);
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.2s ease;
}
.footer-links a:hover { color: var(--teal); }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  text-align: center;
  padding: 18px 20px;
  font-size: 0.85rem;
}
.footer-bottom p { margin: 0; }

/* =========================================================
   OGRANICZENIE ANIMACJI (prefers-reduced-motion)
   ========================================================= */
@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;
    transition-delay: 0s !important;
  }
  .js .bubble { opacity: 1; transform: none; animation: none; }
  .spark { opacity: 0.6; }
  /* Połysk zostaje statyczny i dobrze ustawiony (bez przesuwania) */
  .cta-shine { animation: none; background-position: 62% 50%; opacity: 0.8; }
  .holo-sheen { animation: none; background-position: 60% 50%; }
}
