* {
  box-sizing: border-box;
}

html, body {
  width: 100%;
  min-height: 100%;
  margin: 0;
}

body {
  background: #02070a;
  color: #fff;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  overflow-x: hidden;
}

.hero {
  position: relative;
  min-height: 100svh;
  isolation: isolate;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: #02070a;
}

.background-blur,
.background-picture,
.shade {
  position: absolute;
  inset: 0;
}

.background-blur {
  z-index: -4;
  background-image: url("/assets/bg-desktop.webp");
  background-position: center;
  background-size: cover;
  filter: blur(24px) brightness(.42) saturate(1.15);
  transform: scale(1.08);
}

.background-picture {
  z-index: -3;
  display: block;
  width: 100%;
  height: 100%;
  margin: 0;
}

.background-picture img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

.shade {
  z-index: -2;
  background:
    radial-gradient(circle at 50% 56%, rgba(0, 8, 13, .16) 0 20%, rgba(0, 7, 12, .48) 52%, rgba(0, 5, 9, .76) 100%),
    linear-gradient(to bottom, rgba(0, 0, 0, .05), rgba(0, 0, 0, .18));
}

.topbar {
  position: absolute;
  z-index: 2;
  top: max(18px, env(safe-area-inset-top));
  right: max(22px, env(safe-area-inset-right));
}

.language {
  position: relative;
}

.language-button {
  border: 1px solid rgba(74, 224, 255, .48);
  background: rgba(0, 10, 17, .58);
  color: #dffaff;
  border-radius: 999px;
  padding: 9px 14px;
  font: inherit;
  font-size: .85rem;
  letter-spacing: .08em;
  cursor: pointer;
  backdrop-filter: blur(10px);
}

.language-button:hover {
  border-color: rgba(74, 224, 255, .9);
}

.language-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  min-width: 150px;
  padding: 6px;
  border: 1px solid rgba(74, 224, 255, .28);
  border-radius: 12px;
  background: rgba(1, 9, 15, .94);
  box-shadow: 0 18px 55px rgba(0, 0, 0, .48);
}

.language-menu button {
  width: 100%;
  border: 0;
  border-radius: 8px;
  padding: 9px 10px;
  background: transparent;
  color: #fff;
  text-align: left;
  font: inherit;
  cursor: pointer;
}

.language-menu button:hover {
  background: rgba(44, 198, 255, .1);
}

.content {
  width: min(860px, calc(100% - 40px));
  margin-top: clamp(150px, 26vh, 300px);
  padding: 24px 24px 32px;
  text-align: center;
  text-shadow: 0 2px 18px rgba(0, 0, 0, .9);
}

.content h1 {
  margin: 0;
  font-size: clamp(3.2rem, 8vw, 6.7rem);
  line-height: .95;
  font-weight: 700;
  letter-spacing: -.045em;
  background: linear-gradient(180deg, #ffffff 0%, #d6f5ff 58%, #78d9ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 18px rgba(79, 206, 255, .18));
}

.tagline {
  margin: 20px 0 0;
  color: #63ddff;
  font-size: clamp(1.4rem, 3vw, 2.3rem);
  line-height: 1.25;
  font-weight: 400;
}

.description {
  margin: 34px auto 0;
  max-width: 700px;
  color: rgba(255,255,255,.94);
  font-size: clamp(1.05rem, 1.7vw, 1.45rem);
  line-height: 1.55;
}

.coming {
  margin: 28px 0 0;
  color: #35d9ff;
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  line-height: 1.2;
  font-weight: 400;
  filter: drop-shadow(0 0 12px rgba(53, 217, 255, .18));
}

@media (max-width: 720px) {
  .background-blur {
    background-image: url("/assets/bg-mobile.webp");
    filter: blur(18px) brightness(.36) saturate(1.12);
  }

  .background-picture img {
    object-fit: cover;
    object-position: center top;
  }

  .shade {
    background:
      radial-gradient(circle at 50% 58%, rgba(0, 8, 13, .16) 0 22%, rgba(0, 7, 12, .50) 54%, rgba(0, 5, 9, .77) 100%);
  }

  .content {
    width: min(100% - 26px, 560px);
    margin-top: clamp(170px, 31vh, 290px);
    padding: 18px 12px calc(28px + env(safe-area-inset-bottom));
  }

  .content h1 {
    font-size: clamp(3.2rem, 15vw, 5.2rem);
  }

  .tagline {
    margin-top: 15px;
    font-size: clamp(1.2rem, 6vw, 1.7rem);
  }

  .description {
    margin-top: 27px;
    max-width: 330px;
    font-size: clamp(1rem, 4.5vw, 1.22rem);
  }

  .coming {
    margin-top: 25px;
    font-size: clamp(1.75rem, 8vw, 2.35rem);
  }

  .topbar {
    top: max(14px, env(safe-area-inset-top));
    right: max(14px, env(safe-area-inset-right));
  }

  .language-button {
    padding: 8px 12px;
    font-size: .78rem;
  }
}

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


/* MeaPriva multilingual language selector */
.topbar { z-index: 10; }
.language-button { display:inline-flex; align-items:center; justify-content:center; gap:8px; min-width:92px; background:rgba(0,10,17,.65); box-shadow:0 8px 28px rgba(0,0,0,.28); }
.language-flag,.language-option .flag { font-family:"Segoe UI Emoji","Apple Color Emoji","Noto Color Emoji",sans-serif; }
.language-flag { font-size:1.15rem; line-height:1; letter-spacing:0; }
.language-code { font-weight:650; }
.language-chevron { opacity:.75; transform:translateY(-1px); }
.language-menu { width:224px; min-width:224px; max-height:min(68vh,580px); overflow-y:auto; padding:7px; border-radius:15px; background:rgba(1,9,15,.96); backdrop-filter:blur(16px); scrollbar-width:thin; }
.language-menu .language-option { width:100%; display:flex; align-items:center; gap:11px; border:0; border-radius:10px; padding:10px 11px; background:transparent; color:#effcff; text-align:left; font:inherit; cursor:pointer; }
.language-menu .language-option:hover,.language-menu .language-option:focus-visible,.language-menu .language-option[aria-current="true"] { background:rgba(44,198,255,.11); outline:none; }
.language-option .flag { flex:0 0 auto; width:25px; text-align:center; font-size:1.2rem; line-height:1; }
.language-option .native-name { flex:1 1 auto; font-size:.95rem; letter-spacing:0; }
.language-option .short-code { flex:0 0 auto; color:rgba(176,232,247,.68); font-size:.72rem; font-weight:700; letter-spacing:.07em; }
.tagline { margin-left:auto; margin-right:auto; max-width:850px; }
.description { max-width:760px; }
html[dir="rtl"] .content,html[dir="rtl"] .language-menu { direction:rtl; }
html[dir="rtl"] .language-menu .language-option { text-align:right; }
@media (max-width:720px) {
  .language-button { min-width:86px; padding:8px 11px; }
  .language-menu { width:min(224px,calc(100vw - 28px)); min-width:0; max-height:62vh; }
  .content { width:min(100% - 26px,600px); }
  .description { max-width:350px; }
}

/* MEAPRIVA LAYOUT V3 START */

/* =========================
   PC / DESKTOP
   ========================= */
@media (min-width: 721px) {

  .content {
    position: absolute;
    inset: 0;
    width: 100%;
    margin: 0;
    padding: 0;
    text-align: center;
  }

  /* MeaPriva — góra/lewa */
  .content h1 {
    position: absolute;
    top: clamp(28px, 4vh, 52px);
    left: clamp(28px, 4vw, 64px);
    margin: 0;
  }

  /* slogan — niżej */
  .content .tagline {
    position: absolute;
    top: 63%;
    left: 50%;
    width: max-content;
    max-width: calc(100vw - 80px);
    margin: 0;
    transform: translate(-50%, -50%);
  }

  /* opis — niżej i przesunięty w lewo */
  .content .description {
    position: absolute;
    top: 74%;
    left: 25%;
    width: max-content;
    max-width: min(760px, calc(100vw - 80px));
    margin: 0;
    transform: translate(-25%, -50%);
  }

  /* Coming soon — niżej i przesunięty w prawo */
  .content .coming {
    position: absolute;
    top: 84%;
    left: 75%;
    width: max-content;
    max-width: calc(100vw - 80px);
    margin: 0;
    transform: translate(-75%, -50%);
  }
}


/* =========================
   TELEFON
   ========================= */
@media (max-width: 720px) {

  .content {
    position: absolute;
    inset: 0;
    width: 100%;
    margin: 0;
    padding: 0;
    text-align: center;
  }

  /* MeaPriva — góra */
  .content h1 {
    position: absolute;
    top: max(58px, calc(env(safe-area-inset-top) + 42px));
    left: 50%;
    margin: 0;
    transform: translateX(-50%);
    white-space: nowrap;
  }

  /* slogan bezpośrednio pod MeaPriva */
  .content .tagline {
    position: absolute;
    top: max(145px, calc(env(safe-area-inset-top) + 130px));
    left: 50%;
    width: calc(100% - 28px);
    margin: 0;
    transform: translateX(-50%);
  }

  /* opis prawie na dole */
  .content .description {
    position: absolute;
    left: 50%;
    bottom: calc(112px + env(safe-area-inset-bottom));
    width: calc(100% - 38px);
    max-width: 350px;
    margin: 0;
    transform: translateX(-50%);
  }

  /* Coming soon — dół */
  .content .coming {
    position: absolute;
    left: 50%;
    bottom: calc(30px + env(safe-area-inset-bottom));
    width: max-content;
    max-width: calc(100% - 30px);
    margin: 0;
    transform: translateX(-50%);
  }
}

/* MEAPRIVA LAYOUT V3 END */

/* MEAPRIVA GOLD V4 START */

.content h1 {
  background: linear-gradient(
    180deg,
    #fffdf5 0%,
    #f8ecc7 22%,
    #e7c96f 46%,
    #d4af37 61%,
    #f4dda0 77%,
    #cceeff 100%
  );

  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;

  filter:
    drop-shadow(0 0 8px rgba(212, 175, 55, .24))
    drop-shadow(0 0 18px rgba(79, 206, 255, .10));
}

/* MEAPRIVA GOLD V4 END */
