:root {
  --uxsl-blue: #0057ff;
  --uxsl-dark: #22252b;
}

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

html,
body {
  height: 100%;
}

body {
  font-family: "Open Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--uxsl-dark);
  background: radial-gradient(120% 160% at 0% 0%, #dceeff 12%, #f7fbff 72%, #ffffff 100%);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}



/* FULL-SCREEN HERO, CENTERED BOTH AXES */

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;       /* vertical center */
  justify-content: center;   /* horizontal center */
}

.hero-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;                 /* controls spacing between logo, text, CTA */
  text-align: center;
}

/* TOP: Logo */
.hero-logo {
  margin-top: 32px;
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

/* CENTER: Sentence stage */
.hero-rsvp-stage {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* BOTTOM: CTA */
.hero-cta {
  margin-top: 8px;
  margin-bottom: 40px;
  display: flex;
  justify-content: center;
}

/* Sentence container */
.hero-rsvp-word {
  position: relative;
  max-width: 980px;
  font-size: clamp(2.0rem, 3vw + 1.0rem, 3.0rem);
  font-weight: 700;
  text-align: center;
  line-height: 1.15;
  color: #13348F; /* base brand text */
}

/* One sentence at a time */
.rsvp-sentence {
  position: relative;
  display: inline-block;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.45s ease-out, transform 0.45s ease-out;
  padding: 0.1rem 0; /* no background boxes */
}

/* Final stacked view (after sequence completes) */
.hero-rsvp-word.final {
  font-size: clamp(1.6rem, 1.6vw + 1.0rem, 2.2rem);
  line-height: 1.25;
  max-width: 980px;
}

.hero-rsvp-word.final .rsvp-sentence {
  display: block;
  opacity: 1;
  transform: none;
  margin: 0 0 14px 0;
}

.hero-rsvp-word.final .rsvp-sentence:last-child {
  margin-bottom: 0;
}


/* Visible sentence */
.rsvp-sentence.visible {
  opacity: 1;
  transform: translateY(0);
}

.rsvp-sentence::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;

  background: linear-gradient(
    120deg,
    transparent 0%,
    rgba(255, 255, 255, 0.0) 35%,
    rgba(255, 255, 255, 0.55) 50%,
    rgba(255, 255, 255, 0.0) 65%,
    transparent 100%
  );

  opacity: 0;
  mix-blend-mode: screen;
}

/* single pass */
.rsvp-sentence.sheen-ltr::after {
  opacity: 1;
  animation: text-sheen-ltr 1.15s ease-in-out forwards;
}

.rsvp-sentence.sheen-rtl::after {
  opacity: 1;
  animation: text-sheen-rtl 1.15s ease-in-out forwards;
}

@keyframes text-sheen-ltr {
  0%   { transform: translateX(-120%); }
  100% { transform: translateX(120%); }
}

@keyframes text-sheen-rtl {
  0%   { transform: translateX(120%); }
  100% { transform: translateX(-120%); }
}




/* LOGO ABOVE CTA */
#hero-logo.hidden.show {
  display: inline-flex;   /* logo container */
}

.hero-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  margin-bottom: 4px;       /* small breathing room above button */
}

.hero-logo-img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
}

.hero-logo-text {
  font-size: 1.2rem;
  font-style: italic;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--uxsl-blue);
}

/* CTA BUTTON */

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: 999px;
  background-color: var(--uxsl-blue);
  color: #ffffff;
  font-weight: 600;
  font-size: 1.05rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
  box-shadow: 0 10px 25px rgba(0, 37, 122, 0.25);
  transition:
    transform 0.14s ease-out,
    box-shadow 0.14s ease-out,
    background-color 0.14s ease-out,
    opacity 0.4s ease-out;
  white-space: nowrap;
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background-color: #0044c4;
  transform: translateY(-1px);
  box-shadow: 0 16px 35px rgba(0, 37, 122, 0.35);
}

.btn-primary:active {
  transform: translateY(0);
  box-shadow: 0 6px 18px rgba(0, 37, 122, 0.35);
}

/* Hidden / reveal helpers */

.hidden {
  display: none;
}

.hidden.show {
  display: inline-flex;   /* for the button */
  opacity: 1;
  pointer-events: auto;
}

/* Mobile tweaks */

@media (max-width: 640px) {
  .hero {
    padding: 0 5vw;
  }

  .btn-primary {
    width: 100%;
    justify-content: center;
  }
}
