/* ==========================================================================
   PASSA — landing
   Palette derived from the PASSA logo: deep navy + lime.
   ========================================================================== */

@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 600 800;
  font-display: swap;
  src: url("../fonts/montserrat-600-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191,
    U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 600 800;
  font-display: swap;
  src: url("../fonts/montserrat-600-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7,
    U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F,
    U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F,
    U+A720-A7FF;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url("../fonts/inter-400-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191,
    U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url("../fonts/inter-400-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7,
    U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F,
    U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F,
    U+A720-A7FF;
}

:root {
  --navy: #030b1c;
  --navy-2: #071426;
  --lime: #c0e048;
  --lime-soft: rgba(192, 224, 72, 0.14);
  --white: #f4f6f2;
  --muted: rgba(244, 246, 242, 0.68);
  --faint: rgba(244, 246, 242, 0.42);
  --line: rgba(255, 255, 255, 0.09);
  --pad-x: clamp(20px, 4.5vw, 64px);
  --font-display: "Montserrat", "Arial Black", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--navy);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

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

a {
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--lime);
  outline-offset: 4px;
  border-radius: 4px;
}

.skip-link {
  position: fixed;
  top: -80px;
  left: 16px;
  z-index: 999;
  padding: 12px 18px;
  border-radius: 8px;
  background: var(--lime);
  color: #06110a;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.8rem;
  text-decoration: none;
  transition: top 0.2s ease;
}
.skip-link:focus {
  top: 16px;
}

/* ==========================================================================
   Animated night-club scene (pure CSS, no external assets)
   ========================================================================== */

.scene {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  background:
    radial-gradient(120% 85% at 50% -10%, #0a1830 0%, #050e21 46%, var(--navy) 100%);
  pointer-events: none;
}

.scene__glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(28px);
  will-change: transform, opacity;
}

.scene__glow--lime {
  width: 78vmax;
  height: 78vmax;
  left: -26vmax;
  bottom: -44vmax;
  background: radial-gradient(
    circle,
    rgba(192, 224, 72, 0.3) 0%,
    rgba(192, 224, 72, 0.1) 40%,
    transparent 68%
  );
  animation: breathe 9s ease-in-out infinite;
}

.scene__glow--blue {
  width: 72vmax;
  height: 72vmax;
  right: -28vmax;
  top: -34vmax;
  background: radial-gradient(
    circle,
    rgba(54, 104, 210, 0.24) 0%,
    rgba(54, 104, 210, 0.08) 42%,
    transparent 68%
  );
  animation: breathe 13s ease-in-out infinite reverse;
}

.scene__beam {
  position: absolute;
  top: -46vh;
  left: 8%;
  width: 34vw;
  height: 160vh;
  transform-origin: top center;
  transform: rotate(16deg);
  background: linear-gradient(
    180deg,
    rgba(192, 224, 72, 0.17) 0%,
    rgba(192, 224, 72, 0.05) 42%,
    transparent 72%
  );
  clip-path: polygon(40% 0, 60% 0, 100% 100%, 0 100%);
  filter: blur(26px);
  opacity: 0.75;
  animation: sway 15s ease-in-out infinite alternate;
  will-change: transform;
}

.scene__beam--2 {
  left: 62%;
  width: 30vw;
  transform: rotate(-13deg);
  background: linear-gradient(
    180deg,
    rgba(118, 166, 255, 0.14) 0%,
    rgba(118, 166, 255, 0.04) 45%,
    transparent 72%
  );
  animation-duration: 21s;
  animation-delay: -6s;
}

.scene__beam--3 {
  left: 37%;
  width: 24vw;
  transform: rotate(3deg);
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.08) 0%,
    rgba(255, 255, 255, 0.02) 40%,
    transparent 70%
  );
  animation-duration: 26s;
  animation-delay: -12s;
  opacity: 0.5;
}

.scene__floor {
  position: absolute;
  left: 50%;
  bottom: -34vmax;
  width: 110vmax;
  height: 74vmax;
  transform: translateX(-50%);
  background: radial-gradient(
    ellipse at center,
    rgba(192, 224, 72, 0.16) 0%,
    rgba(192, 224, 72, 0.05) 42%,
    transparent 70%
  );
  filter: blur(22px);
}

.scene__particles {
  position: absolute;
  inset: 0;
}

.scene__particles span {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: var(--size);
  height: var(--size);
  border-radius: 50%;
  background: var(--tone);
  box-shadow: 0 0 10px var(--tone);
  opacity: 0;
  animation: drift var(--dur) ease-in-out var(--delay) infinite;
  will-change: transform, opacity;
}

.scene__grain {
  position: absolute;
  inset: -50%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='220' height='220' filter='url(%23n)' opacity='0.55'/%3E%3C/svg%3E");
  opacity: 0.05;
  mix-blend-mode: overlay;
}

.scene__vignette {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 90% 70% at 50% 42%, transparent 38%, rgba(2, 6, 15, 0.55) 100%),
    linear-gradient(180deg, rgba(2, 6, 15, 0.55) 0%, transparent 22%, transparent 74%, rgba(2, 6, 15, 0.72) 100%);
}

@keyframes breathe {
  0%,
  100% {
    opacity: 0.75;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.07);
  }
}

@keyframes sway {
  0% {
    transform: rotate(16deg) translateX(-2vw);
  }
  100% {
    transform: rotate(6deg) translateX(3vw);
  }
}

@keyframes drift {
  0% {
    opacity: 0;
    transform: translate3d(0, 12px, 0) scale(0.6);
  }
  18% {
    opacity: var(--peak);
  }
  82% {
    opacity: var(--peak);
  }
  100% {
    opacity: 0;
    transform: translate3d(var(--dx), calc(-1 * var(--dy)), 0) scale(1.1);
  }
}

/* ==========================================================================
   Layout
   ========================================================================== */

.page {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
}

/* ---- Top bar ------------------------------------------------------------ */

.topbar {
  display: flex;
  align-items: center;
  gap: clamp(18px, 3vw, 40px);
  padding: clamp(16px, 2.2vw, 26px) var(--pad-x);
  animation: fade-down 0.8s 0.05s both cubic-bezier(0.2, 0.7, 0.2, 1);
}

.brand {
  display: inline-flex;
  flex: none;
  border-radius: 6px;
}
.brand img {
  display: block;
  width: auto;
  height: clamp(34px, 3.2vw, 44px);
}

.mainnav {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2.6vw, 40px);
  margin-inline: auto;
}

.navlink {
  padding: 10px 2px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--lime);
  opacity: 0.92;
  white-space: nowrap;
  transition: color 0.2s ease, opacity 0.2s ease;
}
.navlink:hover {
  color: #ffffff;
  opacity: 1;
}

.actions {
  display: flex;
  align-items: center;
  gap: clamp(6px, 1vw, 14px);
  flex: none;
}

.iconbtn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  color: var(--lime);
  transition: background-color 0.2s ease, color 0.2s ease;
}
.iconbtn svg,
.account svg {
  flex: none;
}
.iconbtn:hover {
  background: rgba(192, 224, 72, 0.1);
  color: #ffffff;
}

.langbtn {
  width: auto;
  padding: 0 12px;
  border-radius: 999px;
}
.langbtn__code {
  font-family: var(--font-display);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.1em;
}

.dot {
  position: absolute;
  top: 9px;
  right: 10px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 8px var(--lime);
}

.account {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(192, 224, 72, 0.55);
  background: rgba(192, 224, 72, 0.12);
  color: var(--lime);
  transition: background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}
.account:hover {
  background: var(--lime);
  color: #06110a;
  box-shadow: 0 0 22px rgba(192, 224, 72, 0.4);
}

/* ---- Hero --------------------------------------------------------------- */

.hero {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: clamp(28px, 6vh, 80px) var(--pad-x) clamp(84px, 12vh, 130px);
  transition: transform 0.45s cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* While the consent card is on screen, lift the hero so the CTAs stay clear. */
body.cookie-open .hero {
  transform: translateY(-70px);
}

.hero > * {
  animation: rise 0.9s both cubic-bezier(0.2, 0.7, 0.2, 1);
}
.hero > :nth-child(1) {
  animation-delay: 0.15s;
}
.hero > :nth-child(2) {
  animation-delay: 0.25s;
}
.hero > :nth-child(3) {
  animation-delay: 0.38s;
}
.hero > :nth-child(4) {
  animation-delay: 0.5s;
}

.eyebrow {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(0.68rem, 1vw, 0.82rem);
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(244, 246, 242, 0.62);
  text-shadow: 0 0 26px rgba(192, 224, 72, 0.18);
}

.hero h1 {
  max-width: 18ch;
  margin: 0.42em 0 0.3em;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.15rem, 6.4vw, 5.3rem);
  line-height: 0.98;
  letter-spacing: -0.015em;
  text-transform: uppercase;
  text-wrap: balance;
  text-shadow: 0 2px 40px rgba(0, 0, 0, 0.45);
}

.lede {
  margin: 0;
  max-width: 42ch;
  font-size: clamp(0.98rem, 1.35vw, 1.12rem);
  line-height: 1.6;
  color: var(--muted);
  text-wrap: balance;
}

.cta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: clamp(12px, 1.6vw, 20px);
  margin-top: clamp(28px, 4.4vh, 44px);
}

.btn {
  min-width: clamp(170px, 17vw, 224px);
  padding: clamp(16px, 2.2vh, 20px) 34px;
  border: 1.5px solid var(--lime);
  border-radius: 9px;
  background: rgba(192, 224, 72, 0.045);
  color: var(--lime);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(0.8rem, 1vw, 0.94rem);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  box-shadow:
    0 0 26px rgba(192, 224, 72, 0.2),
    inset 0 0 22px rgba(192, 224, 72, 0.07);
  transition:
    background-color 0.22s ease,
    color 0.22s ease,
    box-shadow 0.22s ease,
    transform 0.22s ease;
}
.btn:hover {
  background: var(--lime);
  color: #06110a;
  box-shadow:
    0 0 46px rgba(192, 224, 72, 0.5),
    0 8px 30px rgba(0, 0, 0, 0.35);
  transform: translateY(-2px);
}
.btn:active {
  transform: translateY(0);
  box-shadow: 0 0 24px rgba(192, 224, 72, 0.35);
}

/* ---- Footer ------------------------------------------------------------- */

.footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 18px var(--pad-x) 22px;
  font-size: 0.74rem;
  letter-spacing: 0.02em;
  color: var(--faint);
  animation: fade-up 0.9s 0.7s both ease;
}

/* ==========================================================================
   Cookie notice
   ========================================================================== */

.cookie {
  position: fixed;
  left: 50%;
  bottom: max(18px, env(safe-area-inset-bottom));
  z-index: 60;
  width: min(452px, calc(100vw - 32px));
  padding: 16px 18px 14px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: linear-gradient(180deg, #0b1d3a 0%, #071426 100%);
  box-shadow:
    0 24px 60px rgba(0, 0, 0, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  transform: translate(-50%, 18px);
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.35s ease,
    transform 0.35s ease,
    visibility 0s linear 0.35s;
}
.cookie.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
  transition:
    opacity 0.4s ease,
    transform 0.4s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.cookie__head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 9px;
}
.cookie__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  flex: none;
  border-radius: 50%;
  background: var(--lime);
  color: #06110a;
}
.cookie h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 0.98rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}
.cookie__text {
  margin: 0 0 12px;
  font-size: 0.75rem;
  line-height: 1.5;
  color: var(--muted);
}

.cookie__actions {
  display: grid;
  gap: 7px;
}
.cookie__btn {
  width: 100%;
  min-height: 38px;
  padding: 9px 16px;
  border-radius: 7px;
  background: var(--lime);
  color: #06110a;
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  transition: filter 0.2s ease, transform 0.2s ease;
}
.cookie__btn:hover {
  filter: brightness(1.08);
}
.cookie__btn:active {
  transform: scale(0.99);
}
.cookie__link {
  display: block;
  margin: 10px auto 0;
  padding: 3px 6px;
  font-size: 0.7rem;
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.cookie__link:hover {
  color: var(--white);
}

/* ==========================================================================
   Dialogs
   ========================================================================== */

.dialog {
  position: relative;
  width: min(440px, calc(100vw - 32px));
  padding: 28px 26px 24px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: linear-gradient(180deg, #0b1d3a 0%, #071426 100%);
  color: var(--white);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
}
.dialog::backdrop {
  background: rgba(2, 6, 15, 0.72);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.dialog h2 {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}
.dialog p {
  margin: 0 0 12px;
  font-size: 0.88rem;
  line-height: 1.6;
  color: var(--muted);
}
.dialog__body p:last-child {
  margin-bottom: 0;
}
.dialog__close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  font-size: 1.3rem;
  line-height: 1;
  color: var(--muted);
  transition: background-color 0.2s ease, color 0.2s ease;
}
.dialog__close:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
}
.dialog__ok {
  width: 100%;
  min-height: 42px;
  margin-top: 6px;
  padding: 10px 18px;
  border-radius: 8px;
  background: var(--lime);
  color: #06110a;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: filter 0.2s ease;
}
.dialog__ok:hover {
  filter: brightness(1.08);
}
.dialog[open] {
  animation: dialog-in 0.28s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

/* ==========================================================================
   Motion
   ========================================================================== */

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(22px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes fade-down {
  from {
    opacity: 0;
    transform: translateY(-14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes dialog-in {
  from {
    opacity: 0;
    transform: translateY(14px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 900px) {
  .mainnav {
    display: none;
  }
  .actions {
    margin-left: auto;
  }
  .topbar {
    gap: 12px;
  }
  .footer {
    justify-content: center;
    text-align: center;
    padding-bottom: max(22px, env(safe-area-inset-bottom));
  }
}

@media (max-width: 560px) {
  .topbar {
    padding-top: max(16px, env(safe-area-inset-top));
  }
  .brand img {
    height: 32px;
  }
  .iconbtn {
    width: 38px;
    height: 38px;
  }
  .langbtn {
    width: auto;
    padding: 0 10px;
  }
  .account {
    width: 38px;
    height: 38px;
  }
  .hero {
    padding-bottom: 108px;
  }
  body.cookie-open .hero {
    transform: translateY(-94px);
  }
  .hero h1 {
    max-width: 12ch;
    font-size: clamp(2rem, 10.5vw, 3rem);
  }
  .lede {
    font-size: 0.95rem;
  }
  .cta {
    width: 100%;
    max-width: 340px;
    flex-direction: column;
    gap: 11px;
  }
  .btn {
    width: 100%;
    min-width: 0;
  }
  .cookie {
    padding: 16px 16px 14px;
  }
}

/* ==========================================================================
   Reduced motion
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-delay: 0s !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .hero > *,
  .topbar,
  .footer {
    opacity: 1;
    transform: none;
  }
  .scene__particles {
    display: none;
  }
}
