:root {
  --bg: #040505;
  --surface: rgba(17, 27, 31, 0.82);
  --line: rgba(135, 186, 191, 0.2);
  --text: #f5f7f6;
  --muted: rgba(245, 247, 246, 0.72);
  --accent: #00d4d8;
  --gold: #ffd55b;
  --shadow: 0 1.5rem 4rem rgba(0, 0, 0, 0.32);
  --content-width: 1180px;
  --radius-lg: 32px;
  --radius-md: 20px;
  --radius-sm: 14px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Manrope", "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  letter-spacing: 0.02em;
  min-height: 100vh;
}

body.no-scroll {
  overflow: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(circle at top left, rgba(0, 212, 216, 0.2), transparent 40%),
    radial-gradient(circle at bottom right, rgba(255, 213, 91, 0.12), transparent 32%),
    linear-gradient(180deg, rgba(4, 5, 5, 0.18), rgba(4, 5, 5, 0.46));
  pointer-events: none;
  z-index: -1;
}

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

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

button,
input,
textarea {
  font: inherit;
}

#background-video {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  object-fit: cover;
  z-index: -2;
}

.container {
  width: min(var(--content-width), calc(100% - 2rem));
  margin: 0 auto;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: 1.2rem;
  padding: 0.55rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.28);
  color: rgba(255, 255, 255, 0.8);
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.72rem;
}

.eyebrow::before {
  content: "";
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: radial-gradient(circle, #f0f4ff 0%, #a8c8ff 40%, #5b7fff 100%);
  box-shadow:
    0 0 0.6rem rgba(160, 200, 255, 0.9),
    0 0 1.4rem rgba(91, 127, 255, 0.6);
}

/* Loader */

.loader {
  position: fixed;
  inset: 0;
  background: #000;
  display: grid;
  place-items: center;
  z-index: 9999;
}

.loader-word {
  display: flex;
  gap: 0.35rem;
}

.lettre {
  font-size: clamp(2rem, 4vw, 4rem);
  color: #484848;
  letter-spacing: 0.18em;
  animation: flash 1.2s linear infinite, moving 1.2s infinite;
}

.lettre:nth-child(1) { animation-delay: 0.1s; }
.lettre:nth-child(2) { animation-delay: 0.2s; }
.lettre:nth-child(3) { animation-delay: 0.3s; }
.lettre:nth-child(4) { animation-delay: 0.4s; }
.lettre:nth-child(5) { animation-delay: 0.5s; }
.lettre:nth-child(6) { animation-delay: 0.6s; }
.lettre:nth-child(7) { animation-delay: 0.7s; }

@keyframes flash {
  0% { color: var(--accent); text-shadow: 0 0 7px var(--accent); }
  90% { color: #484848; text-shadow: none; }
  100% { color: var(--accent); text-shadow: 0 0 7px var(--accent); }
}

@keyframes moving {
  0% { transform: translate(0, 0); }
  50% { transform: translate(40px, -40px) scale(1.2); }
  100% { transform: translate(0, 0); }
}

.fading-out {
  animation: move-behind 0.8s ease-out forwards;
}

@keyframes move-behind {
  0% { z-index: 9998; opacity: 1; pointer-events: auto; }
  100% { z-index: -1; opacity: 0; pointer-events: none; }
}

/* Hero */

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 6rem 0 4rem;
}

.hero-grid {
  display: grid;
  gap: 2.5rem;
}

.hero-copy {
  display: grid;
  gap: 1.2rem;
  align-content: center;
}

.hero-copy h1 {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(3.5rem, 10vw, 7rem);
  line-height: 0.95;
  letter-spacing: -0.04em;
}

.hero-copy p {
  margin: 0;
  max-width: 42rem;
  color: var(--muted);
  line-height: 1.9;
  font-size: 1.02rem;
}

.hero-aside {
  display: grid;
  gap: 1rem;
}

/* Fluorescent button */

.button-fluo {
  --main-color: var(--accent);
  --ring-color: rgba(255, 255, 255, 0.82);
  --text-color: #021214;
  cursor: pointer;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.7rem;
  padding: 1rem 1.6rem;
  color: var(--main-color);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  overflow: visible;
  isolation: isolate;
  transition:
    color 0.3s ease,
    background-color 0.3s ease,
    border-color 0.3s ease,
    box-shadow 0.3s ease,
    transform 0.3s ease;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.button-fluo::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1.5px;
  background:
    linear-gradient(
      120deg,
      rgba(255, 255, 255, 0.12),
      var(--main-color),
      rgba(255, 255, 255, 0.08),
      var(--main-color),
      rgba(255, 255, 255, 0.12)
    );
  background-size: 220% 100%;
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  mask-composite: exclude;
  pointer-events: none;
  animation: button-fluo-outline 2.6s linear infinite;
}

.button-fluo:hover {
  background: var(--main-color);
  color: var(--text-color);
  border-color: transparent;
  box-shadow:
    0 0 5px var(--main-color),
    0 0 22px var(--main-color),
    0 0 44px rgba(255, 255, 255, 0.12);
  transform: translateY(-1px);
}

.button-fluo:focus-visible {
  outline: none;
  border-color: transparent;
  box-shadow:
    0 0 0 0.2rem rgba(255, 255, 255, 0.08),
    0 0 0 0.35rem var(--main-color);
}

.button-fluo > span:nth-child(1):empty {
  position: absolute;
  inset: 50% auto auto 50%;
  z-index: -1;
  width: calc(100% - 0.4rem);
  height: calc(100% - 0.4rem);
  border-radius: inherit;
  border: 2px solid var(--ring-color);
  transform: translate(-50%, -50%) scale(0);
  transform-origin: center;
  opacity: 0;
  pointer-events: none;
  animation: button-fluo-ring 2.2s ease-out infinite;
}

.button-fluo > span:nth-child(n + 2):empty {
  display: none;
}

.button-fluo::after {
  content: "";
  position: absolute;
  inset: -0.12rem;
  border-radius: inherit;
  border: 1px solid rgba(255, 255, 255, 0);
  box-shadow: 0 0 0 rgba(0, 0, 0, 0);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.button-fluo:hover::after,
.button-fluo:focus-visible::after {
  opacity: 1;
  border-color: rgba(255, 255, 255, 0.16);
  box-shadow:
    0 0 0.8rem var(--main-color),
    0 0 1.6rem rgba(255, 255, 255, 0.08);
}

@keyframes button-fluo-outline {
  0% { background-position: 0% 50%; }
  100% { background-position: 220% 50%; }
}

@keyframes button-fluo-ring {
  0% { transform: translate(-50%, -50%) scale(0); opacity: 0.75; }
  65% {
    transform: translate(-50%, -50%) scale(0.88);
    opacity: 0.22;
    border-color: var(--main-color);
    box-shadow: 0 0 1.1rem rgba(255, 255, 255, 0.08);
  }
  100% {
    transform: translate(-50%, -50%) scale(1.12);
    opacity: 0;
    border-color: rgba(255, 255, 255, 0);
    box-shadow: 0 0 1.8rem rgba(255, 255, 255, 0);
  }
}

/* Cards */

.panel,
.metric-card {
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(11, 18, 21, 0.82), rgba(11, 18, 21, 0.62));
  border-radius: var(--radius-md);
  box-shadow: var(--shadow);
}

.panel {
  padding: clamp(1.4rem, 3vw, 2rem);
}

.metric-card {
  padding: 1.3rem;
  display: grid;
  gap: 0.45rem;
}

.metric-card strong {
  font-size: 2rem;
  color: var(--gold);
}

.metric-card span {
  color: var(--muted);
}

/* Gate (login) page */

.gate-page {
  display: grid;
  place-items: center;
  min-height: 100vh;
  padding: 2rem;
}

.gate-page::before {
  background:
    radial-gradient(circle at top left, rgba(0, 212, 216, 0.18), transparent 38%),
    radial-gradient(circle at bottom right, rgba(91, 127, 255, 0.16), transparent 30%),
    linear-gradient(180deg, rgba(4, 5, 5, 0.28), rgba(4, 5, 5, 0.62));
}

.gate {
  display: grid;
  place-items: center;
  width: 100%;
}

.gate-card {
  width: min(440px, 100%);
  display: grid;
  gap: 1rem;
  padding: clamp(2rem, 5vw, 2.8rem);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(160deg, rgba(10, 15, 16, 0.82), rgba(18, 25, 31, 0.62));
  backdrop-filter: blur(22px);
  box-shadow: var(--shadow);
  text-align: center;
}

.gate-card .eyebrow {
  justify-self: center;
  margin: 0 0 0.4rem;
}

.gate-card h1 {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  letter-spacing: -0.02em;
}

.gate-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.gate-input {
  width: 100%;
  padding: 1rem 1.1rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  text-align: center;
  letter-spacing: 0.18em;
}

.gate-input::placeholder {
  color: rgba(245, 247, 246, 0.4);
  letter-spacing: 0.08em;
}

.gate-input:focus {
  outline: none;
  border-color: rgba(0, 212, 216, 0.48);
  box-shadow: 0 0 0 0.2rem rgba(0, 212, 216, 0.15);
}

.gate-submit {
  justify-self: center;
  width: 100%;
}

.gate-error {
  color: #ff8a80;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
}

/* Secret birthday page */

.secret-page::before {
  background:
    radial-gradient(circle at top left, rgba(247, 202, 201, 0.28), transparent 38%),
    radial-gradient(circle at bottom right, rgba(255, 213, 91, 0.16), transparent 30%),
    linear-gradient(180deg, rgba(14, 6, 12, 0.18), rgba(4, 5, 5, 0.46));
}

.secret-hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.secret-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: radial-gradient(circle at 20% 20%, rgba(247, 202, 201, 0.14), transparent 34%);
  pointer-events: none;
}

.secret-hero .container {
  position: relative;
  z-index: 1;
}

#fireworks {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.secret-copy {
  gap: 1rem;
}

.secret-lead {
  margin: 0;
  max-width: 42rem;
  color: rgba(245, 247, 246, 0.84);
  font-size: clamp(1.05rem, 2vw, 1.2rem);
  line-height: 1.8;
}

.secret-type {
  margin: 0;
  min-height: 9rem;
  max-width: 43rem;
  padding: 1.35rem 1.5rem;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: linear-gradient(160deg, rgba(17, 11, 18, 0.86), rgba(13, 20, 25, 0.7));
  box-shadow: var(--shadow);
  color: rgba(245, 247, 246, 0.92);
  line-height: 1.85;
}

.secret-type .wrap {
  border-right: 0.08em solid rgba(255, 213, 91, 0.75);
}

.secret-soundboard {
  display: grid;
  gap: 1.4rem;
  position: relative;
  overflow: hidden;
}

.secret-soundboard::before {
  content: "";
  position: absolute;
  right: -3rem;
  bottom: -3rem;
  width: 11rem;
  height: 11rem;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(247, 202, 201, 0.18), transparent 70%);
  pointer-events: none;
}

.secret-page #pleaseClick {
  display: grid;
  gap: 0.55rem;
  padding: 1rem 1.15rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.05);
  color: rgba(245, 247, 246, 0.9);
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
}

.secret-page #pleaseClick span {
  display: inline-block;
  font-size: 1.45rem;
  letter-spacing: 0.18rem;
  animation: secret-word-jump 1s ease-in-out infinite alternate;
}

.secret-page #wishes {
  display: grid;
  gap: 0.7rem;
  padding: 1.45rem;
  border-radius: var(--radius-md);
  border: 1px solid rgba(247, 202, 201, 0.28);
  background: linear-gradient(180deg, rgba(24, 14, 25, 0.88), rgba(14, 22, 28, 0.74));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
  text-align: center;
}

.secret-page #wishes p {
  margin: 0;
  min-height: 1.7rem;
  color: var(--text);
  line-height: 1.65;
}

.secret-page #wishes span {
  display: inline-block;
}

.secret-page #wishes .jump {
  animation: secret-word-jump 0.25s cubic-bezier(0.68, -0.55, 0.265, 1.55) 0s 2 alternate;
}

@keyframes secret-word-jump {
  to { transform: translateY(-0.7em); }
}

.secret-page .control {
  display: grid;
  gap: 0.6rem;
  justify-items: center;
  padding-top: 0.35rem;
}

.secret-page .control label {
  color: rgba(245, 247, 246, 0.64);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.72rem;
}

.secret-page #inputSpeed {
  -webkit-appearance: none;
  appearance: none;
  width: min(18rem, 100%);
  background: transparent;
}

.secret-page #inputSpeed::-webkit-slider-runnable-track {
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(247, 202, 201, 0.95), rgba(255, 213, 91, 0.92));
}

.secret-page #inputSpeed::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  margin-top: -7px;
  border: 2px solid rgba(13, 18, 22, 0.94);
  border-radius: 50%;
  background: #fff7fb;
  box-shadow: 0 0 0 0.25rem rgba(247, 202, 201, 0.22);
}

.secret-page #inputSpeed::-moz-range-track {
  height: 4px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(247, 202, 201, 0.95), rgba(255, 213, 91, 0.92));
}

.secret-page #inputSpeed::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border: 2px solid rgba(13, 18, 22, 0.94);
  border-radius: 50%;
  background: #fff7fb;
  box-shadow: 0 0 0 0.25rem rgba(247, 202, 201, 0.22);
}

.secret-occasion {
  padding: 1.5rem;
}

.secret-occasion strong {
  font-size: clamp(1.6rem, 3vw, 2.1rem);
}

/* Responsive */

@media (min-width: 720px) {
  .hero-grid {
    grid-template-columns: 1.2fr 0.8fr;
    align-items: center;
  }
}

@media (min-width: 980px) {
  .hero-grid {
    grid-template-columns: 1.3fr 0.7fr;
    align-items: center;
  }
}

@media (max-width: 719px) {
  .button-fluo {
    width: 100%;
    justify-content: center;
  }

  .secret-type {
    min-height: 11rem;
  }

  .secret-page #pleaseClick {
    font-size: 0.72rem;
  }
}
