/* ==========================================================================
   Safe Family Gateway — styles.css
   Pełny, uporządkowany plik CSS
   ========================================================================== */


/* ==========================================================================
   1. Zmienne projektu
   ========================================================================== */

:root {
  --bg: #050b15;
  --ink: #ffffff;
  --muted: rgba(255, 255, 255, 0.74);
  --line: rgba(255, 255, 255, 0.12);

  --panel: rgba(255, 255, 255, 0.08);
  --panel-strong: rgba(255, 255, 255, 0.12);

  --navy: #0d1d31;
  --hero-dark: #0b1b30;

  --safedr: #1aa06d;
  --safeconnect: #4f95d1;
  --safeguard: #c95a3c;

  --radius: 28px;
  --shadow: 0 30px 90px rgba(0, 0, 0, 0.34);
}


/* ==========================================================================
   2. Reset i ustawienia bazowe
   ========================================================================== */

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
}

a {
  color: inherit;
  text-decoration: none;
}

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


/* ==========================================================================
   3. Dostępność
   ========================================================================== */

.skip-link {
  position: absolute;
  left: 24px;
  top: -70px;
  z-index: 1000;
  padding: 12px 16px;
  border-radius: 14px;
  background: #ffffff;
  color: #07111e;
  font-weight: 800;
  box-shadow: var(--shadow);
}

.skip-link:focus {
  top: 20px;
}


/* ==========================================================================
   4. Tło strony
   ========================================================================== */

.safe-gateway {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  background:
    radial-gradient(circle at 85% 18%, rgba(79, 149, 209, 0.18), transparent 30%),
    radial-gradient(circle at 16% 74%, rgba(26, 160, 109, 0.13), transparent 28%),
    radial-gradient(circle at 88% 84%, rgba(201, 90, 60, 0.14), transparent 26%),
    linear-gradient(135deg, #040913 0%, #081223 36%, #0b1b30 100%);
}

.safe-gateway::before {
  content: none;
}

.safe-gateway::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at 50% -10%, rgba(255, 255, 255, 0.11), transparent 32%);
}


/* ==========================================================================
   5. Header
   ========================================================================== */

.gateway-header {
  position: relative;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: min(1380px, calc(100% - 56px));
  margin: 0 auto;
  padding: 24px 0 10px;
}

.brand {
  display: flex;
  align-items: center;
  line-height: 1;
}

.brand img {
  display: block;
  width: auto;
  height: 42px;
}


/* ==========================================================================
   6. Switch produktów
   ========================================================================== */

.product-switch {
  position: relative;
}

.switch-button {
  appearance: none;
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 50px;
  padding: 15px 22px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  font: 700 15px/1 Inter, system-ui, sans-serif;
  cursor: pointer;
  backdrop-filter: blur(16px);
}

.switch-menu {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  left: auto;
  width: 460px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 24px;
  background: rgba(8, 21, 35, 0.96);
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: 0.18s ease;
  backdrop-filter: blur(18px);
}

.product-switch:hover .switch-menu,
.product-switch:focus-within .switch-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.switch-menu a {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  padding: 14px 16px;
  border-radius: 18px;
  color: rgba(255, 255, 255, 0.8);
}

.switch-menu a:hover {
  background: rgba(255, 255, 255, 0.08);
}

.switch-menu img {
  justify-self: start;
  width: auto;
  height: 30px;
  max-width: 150px;
  object-fit: contain;
  object-position: left center;
  filter: brightness(0) invert(1);
}

.switch-menu span {
  display: block;
  min-width: 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.3;
  white-space: normal;
}


/* ==========================================================================
   7. Hero — układ
   ========================================================================== */

.hero-stage {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(420px, 560px);
  grid-template-areas:
    "copy visual"
    "cards cards";
  align-items: center;
  gap: 22px 56px;
  width: min(1380px, calc(100% - 56px));
  min-height: calc(100vh - 112px);
  margin: 0 auto;
  padding: 22px 0 18px;
}

.hero-copy {
  grid-area: copy;
  max-width: 760px;
}


/* ==========================================================================
   8. Hero — eyebrow
   ========================================================================== */

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 16px;
  padding: 8px 14px;
  border-radius: 999px;
  background: #ffffff;
  color: var(--hero-dark);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.eyebrow::before {
  content: none;
}

.eyebrow-dot {
  padding-left: 14px;
}

.eyebrow-dot::before {
  content: "";
  position: static;
  flex: 0 0 8px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--hero-dark);
  box-shadow: none;
  transform: none;
}


/* ==========================================================================
   9. Hero — tekst
   ========================================================================== */

.hero-copy h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(38px, 4.4vw, 62px);
  line-height: 1.03;
  letter-spacing: -0.055em;
  text-wrap: balance;
}

.lead {
  max-width: 680px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.76);
  font-size: clamp(17px, 1.4vw, 20px);
  line-height: 1.7;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.meta-pill {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 8px 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.9);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: -0.01em;
}


/* ==========================================================================
   10. Hero — wsparcie zgodności
   ========================================================================== */

.regulations-highlight {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.regulations-highlight strong {
  margin-right: 4px;
  color: #ffffff;
  font-size: 15px;
  font-weight: 800;
}

.regulations-highlight span {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 7px 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.9);
  font-size: 13px;
  font-weight: 700;
}


/* ==========================================================================
   11. Hero — grafika
   ========================================================================== */

.hero-visual {
  position: relative;
  isolation: isolate;
  grid-area: visual;
  display: grid;
  place-items: center;
  min-height: 470px;
}

.hero-visual::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 42px;
  z-index: 0;
  width: 220px;
  height: 54px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.34);
  filter: blur(24px);
  transform: translateX(-50%);
}

.hero-glow {
  position: absolute;
  z-index: 1;
  border-radius: 50%;
  opacity: 0.85;
  filter: blur(70px);
}

.glow-dr {
  left: 10%;
  bottom: 12%;
  width: 220px;
  height: 220px;
  background: rgba(26, 160, 109, 0.26);
}

.glow-connect {
  top: 6%;
  right: 4%;
  width: 280px;
  height: 280px;
  background: rgba(79, 149, 209, 0.24);
}

.glow-guard {
  top: 18%;
  left: 36%;
  width: 220px;
  height: 220px;
  background: rgba(201, 90, 60, 0.2);
}

.hero-graphic {
  position: relative;
  z-index: 2;
  width: min(100%, 560px);
  height: auto;
  filter: drop-shadow(0 16px 30px rgba(0, 0, 0, 0.18));
}


/* ==========================================================================
   12. Karty produktów
   ========================================================================== */

.product-choice {
  grid-area: cards;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  align-self: start;
  margin-top: -44px;
}

.choice-card {
  position: relative;
  min-height: 252px;
  padding: 26px 24px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(11, 19, 35, 0.88), rgba(8, 17, 30, 0.78));
  box-shadow: 0 24px 68px rgba(0, 0, 0, 0.24);
  backdrop-filter: blur(18px);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  animation: cardPulse 9s ease-in-out infinite;
}

.choice-card:hover {
  border-color: rgba(255, 255, 255, 0.26);
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.32);
  transform: translateY(-4px);
  animation-play-state: paused;
}

.choice-dr {
  box-shadow:
    0 24px 68px rgba(0, 0, 0, 0.24),
    inset 0 1px 0 rgba(26, 160, 109, 0.22);
  animation-delay: 0s;
}

.choice-connect {
  box-shadow:
    0 24px 68px rgba(0, 0, 0, 0.24),
    inset 0 1px 0 rgba(79, 149, 209, 0.24);
  animation-delay: 1.5s;
}

.choice-guard {
  box-shadow:
    0 24px 68px rgba(0, 0, 0, 0.24),
    inset 0 1px 0 rgba(201, 90, 60, 0.24);
  animation-delay: 3s;
}

.logo-row {
  display: flex;
  align-items: center;
  height: 42px;
  margin-bottom: 20px;
}

.logo-row img {
  width: auto;
  max-height: 33px;
  filter: brightness(0) invert(1);
}

.choice-card h2 {
  margin: 0;
  color: #ffffff;
  font-size: clamp(21px, 1.7vw, 27px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.045em;
}

.choice-card p {
  max-width: 36ch;
  margin: 14px 0 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 15px;
  line-height: 1.62;
}

.choice-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 22px;
}

.primary-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 12px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.98);
  color: var(--navy);
  font-size: 13px;
  font-weight: 800;
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.16);
}

.primary-link::after {
  content: "→";
  margin-left: 8px;
  font-size: 14px;
}


/* ==========================================================================
   13. Animacje
   ========================================================================== */

@keyframes cardPulse {
  0%,
  22%,
  100% {
    border-color: rgba(255, 255, 255, 0.14);
    transform: translateY(0);
  }

  6% {
    border-color: rgba(255, 255, 255, 0.26);
    transform: translateY(-7px);
  }

  12% {
    border-color: rgba(255, 255, 255, 0.18);
    transform: translateY(0);
  }
}


/* ==========================================================================
   14. Stopka
   ========================================================================== */

.gateway-footer {
  position: relative;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: min(1380px, calc(100% - 56px));
  min-height: 42px;
  margin: -2px auto 0;
  padding-bottom: 0;
  color: rgba(255, 255, 255, 0.54);
  font-size: 13px;
  transform: translateY(-20px);
}

.gateway-footer a {
  color: rgba(255, 255, 255, 0.86);
  font-weight: 800;
}

.footer-contact-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
}

.footer-contact-list a {
  color: rgba(255, 255, 255, 0.72);
  font-weight: 500;
}

.footer-contact-list a:last-child {
  color: rgba(255, 255, 255, 0.62);
}


/* ==========================================================================
   15. Responsywność — średnie ekrany
   ========================================================================== */

@media (max-width: 1120px) {
  .hero-stage {
    grid-template-columns: 1fr;
    grid-template-areas:
      "copy"
      "visual"
      "cards";
    gap: 22px;
    min-height: auto;
    padding-top: 22px;
    padding-bottom: 14px;
  }

  .hero-copy {
    margin: 0 auto;
    text-align: center;
  }

  .eyebrow {
    justify-content: center;
  }

  .lead {
    margin-right: auto;
    margin-left: auto;
  }

  .hero-meta,
  .regulations-highlight {
    justify-content: center;
  }

  .hero-visual {
    min-height: 390px;
  }

  .hero-graphic {
    width: min(100%, 460px);
  }

  .product-choice {
    grid-template-columns: 1fr;
    margin-top: 0;
  }

  .choice-card {
    min-height: auto;
  }

  .logo-row {
    height: 38px;
  }

  .gateway-footer {
    padding-bottom: 24px;
    transform: none;
  }
}


/* ==========================================================================
   16. Responsywność — mobile
   ========================================================================== */

@media (max-width: 720px) {
  .gateway-header,
  .hero-stage,
  .gateway-footer {
    width: min(100% - 28px, 1380px);
  }

  .gateway-header {
    padding: 18px 0 8px;
  }

  .brand img {
    height: 38px;
  }

  .switch-button {
    min-height: 46px;
    padding: 11px 13px;
    font-size: 13px;
  }

  .switch-menu {
    right: 0;
    width: min(460px, calc(100vw - 28px));
  }

  .switch-menu a {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .switch-menu img {
    height: 30px;
    max-width: 150px;
  }

  .switch-menu span {
    white-space: normal;
  }

  .hero-stage {
    gap: 22px;
    padding: 24px 0 18px;
  }

  .eyebrow {
    font-size: 14px;
  }

  .hero-copy h1 {
    font-size: clamp(34px, 10.5vw, 50px);
    line-height: 1.05;
  }

  .lead {
    font-size: 16.5px;
  }

  .hero-visual {
    min-height: 280px;
  }

  .hero-visual::after {
    bottom: 26px;
    width: 170px;
    height: 42px;
  }

  .hero-graphic {
    width: min(100%, 360px);
  }

  .choice-card {
    padding: 22px;
    border-radius: 24px;
  }

  .choice-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .primary-link {
    width: 100%;
  }

  .gateway-footer {
    flex-direction: column;
    align-items: flex-start;
    padding-bottom: 24px;
  }

  .footer-contact-list {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
}


/* ==========================================================================
   17. Responsywność — niskie ekrany desktopowe
   ========================================================================== */

@media (max-height: 760px) and (min-width: 1121px) {
  .gateway-header {
    padding: 18px 0 6px;
  }

  .hero-stage {
    gap: 18px 48px;
    min-height: calc(100vh - 86px);
    padding-top: 10px;
    padding-bottom: 8px;
  }

  .hero-copy h1 {
    font-size: clamp(38px, 4.2vw, 56px);
    line-height: 1.03;
  }

  .lead {
    margin-top: 18px;
    font-size: 17px;
  }

  .hero-visual {
    min-height: 390px;
  }

  .hero-graphic {
    width: min(100%, 470px);
  }

  .product-choice {
    margin-top: -34px;
  }

  .choice-card {
    min-height: 222px;
    padding: 22px;
  }

  .choice-card p {
    font-size: 14px;
    line-height: 1.54;
  }

  .logo-row {
    margin-bottom: 16px;
  }

  .gateway-footer {
    display: flex;
    margin-top: -10px;
    padding-bottom: 0;
    transform: translateY(-20px);
  }
}


/* ==========================================================================
   18. Reduced motion
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .choice-card,
  .switch-menu {
    transition: none;
  }

  .choice-card {
    animation: none;
  }

  .choice-card:hover {
    transform: none;
  }
}
