:root {
  --bg: #f7fbfc;
  --bg-soft: #eaf8fb;
  --ink: #10202b;
  --muted: #667986;
  --primary: #0698ad;
  --primary-dark: #066b80;
  --secondary: #64d3e2;
  --aqua: #baf1f7;
  --white: #ffffff;
  --glass: rgba(255, 255, 255, 0.7);
  --glass-strong: rgba(255, 255, 255, 0.88);
  --border: rgba(33, 148, 166, 0.18);
  --shadow: 0 24px 80px rgba(13, 87, 108, 0.16);
  --shadow-soft: 0 18px 44px rgba(13, 87, 108, 0.11);
  --radius-lg: 30px;
  --radius-md: 22px;
  --radius-sm: 16px;
  --max: 1120px;
  --font-main: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-display: Georgia, "Times New Roman", serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-main);
  background:
    radial-gradient(circle at 14% 8%, rgba(58, 201, 220, 0.22), transparent 28rem),
    radial-gradient(circle at 88% 20%, rgba(186, 241, 247, 0.5), transparent 26rem),
    linear-gradient(180deg, #ffffff 0%, var(--bg) 38%, #effbfc 100%);
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background-image:
    linear-gradient(rgba(6, 152, 173, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(6, 152, 173, 0.035) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: linear-gradient(to bottom, black 0%, transparent 80%);
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(circle at 8% 48%, rgba(0, 164, 189, 0.12), transparent 18rem),
    radial-gradient(circle at 95% 70%, rgba(9, 105, 128, 0.12), transparent 18rem);
}

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

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

button,
input,
select,
textarea {
  font: inherit;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 200;
  transform: translateY(-150%);
  padding: 10px 14px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--white);
}

.skip-link:focus {
  transform: translateY(0);
}

.section {
  position: relative;
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
  padding: 76px 0;
}

.hero {
  min-height: 100svh;
  width: 100%;
  max-width: none;
  display: grid;
  grid-template-rows: auto 1fr auto;
  align-items: center;
  padding: 28px 16px 34px;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 30% 12%, rgba(100, 211, 226, 0.5), transparent 24rem),
    radial-gradient(circle at 80% 42%, rgba(6, 152, 173, 0.18), transparent 22rem),
    linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(241, 252, 253, 0.92));
}

.hero__bg::before,
.hero__bg::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  filter: blur(2px);
  opacity: 0.65;
}

.hero__bg::before {
  width: 340px;
  height: 340px;
  left: -120px;
  bottom: 18%;
  background: radial-gradient(circle, rgba(0, 173, 196, 0.24), transparent 68%);
}

.hero__bg::after {
  width: 420px;
  height: 420px;
  right: -180px;
  top: 12%;
  background: radial-gradient(circle, rgba(6, 107, 128, 0.18), transparent 70%);
}

.hero__content {
  z-index: 2;
  width: min(560px, 100%);
  margin: 0 auto;
  padding: 22px;
  text-align: center;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0.45));
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(18px);
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--primary-dark);
  font-size: 0.73rem;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 2px;
  font-family: var(--font-display);
  font-size: clamp(4.1rem, 21vw, 9rem);
  font-weight: 400;
  line-height: 0.82;
  letter-spacing: -0.08em;
  color: #061b25;
  text-shadow: 0 14px 35px rgba(7, 120, 142, 0.14);
}

.hero__subtitle {
  margin-bottom: 22px;
  color: var(--primary-dark);
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 8vw, 3rem);
  font-style: italic;
}

.hero__date-card {
  width: fit-content;
  min-width: 220px;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 12px 18px;
  border: 1px solid rgba(6, 152, 173, 0.22);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
}

.hero__date-day {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 999px;
  color: var(--white);
  font-size: 1.4rem;
  font-weight: 900;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  box-shadow: 0 14px 30px rgba(6, 152, 173, 0.28);
}

.hero__date-text {
  color: var(--ink);
  font-size: 0.93rem;
  font-weight: 800;
}

.hero__intro {
  margin: 0 auto 24px;
  max-width: 430px;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.7;
}

.hero__actions,
.location-panel__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.btn {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 18px;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 850;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn--primary {
  color: var(--white);
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  box-shadow: 0 16px 34px rgba(6, 152, 173, 0.26);
}

.btn--secondary {
  color: var(--primary-dark);
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid var(--border);
}

.btn--ghost {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--border);
}

.hero__art {
  z-index: 1;
  width: min(520px, 94vw);
  margin: -6px auto 0;
  border-radius: 38px;
  overflow: hidden;
  box-shadow: 0 28px 90px rgba(5, 65, 86, 0.22);
  transform: rotate(-1.1deg);
}

.hero__art img {
  width: 100%;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  object-position: center top;
}

.scroll-hint {
  z-index: 3;
  justify-self: center;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.scroll-hint i {
  width: 20px;
  height: 32px;
  border: 1px solid rgba(6, 152, 173, 0.45);
  border-radius: 999px;
  position: relative;
}

.scroll-hint i::after {
  content: "";
  position: absolute;
  top: 7px;
  left: 50%;
  width: 4px;
  height: 4px;
  border-radius: 999px;
  background: var(--primary);
  transform: translateX(-50%);
  animation: scrollDot 1.6s infinite;
}

@keyframes scrollDot {
  0% { transform: translate(-50%, 0); opacity: 0; }
  35% { opacity: 1; }
  100% { transform: translate(-50%, 11px); opacity: 0; }
}

.section__header {
  max-width: 650px;
  margin: 0 auto 30px;
  text-align: center;
}

.section__header h2 {
  margin-bottom: 12px;
  font-family: var(--font-display);
  font-size: clamp(2.3rem, 12vw, 5.1rem);
  font-weight: 400;
  line-height: 0.95;
  letter-spacing: -0.06em;
}

.section__header p:not(.eyebrow) {
  color: var(--muted);
  line-height: 1.7;
}

.countdown {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.countdown__item {
  min-height: 140px;
  display: grid;
  place-items: center;
  padding: 22px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--glass);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(18px);
}

.countdown__item strong {
  display: block;
  color: var(--primary-dark);
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 14vw, 5.2rem);
  font-weight: 400;
  line-height: 0.85;
}

.countdown__item span {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 850;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.video-card {
  position: relative;
  width: min(420px, 100%);
  margin: 0 auto;
  padding: 10px;
  border: 1px solid rgba(6, 152, 173, 0.22);
  border-radius: 34px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.invite-video {
  width: 100%;
  aspect-ratio: 9 / 16;
  border-radius: 26px;
  object-fit: cover;
  background: #dff7fb;
}

.video-placeholder {
  position: absolute;
  inset: 10px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 8px;
  border-radius: 26px;
  pointer-events: none;
  color: var(--white);
  text-align: center;
  background:
    linear-gradient(180deg, rgba(6, 152, 173, 0.1), rgba(3, 42, 55, 0.48)),
    url("assets/pato-video-poster.png") center / cover;
  opacity: 0;
  transition: opacity 180ms ease;
}

.video-card.is-missing-video .video-placeholder {
  opacity: 1;
}

.video-placeholder span {
  font-family: var(--font-display);
  font-size: 2.1rem;
}

.video-placeholder small {
  font-weight: 700;
  opacity: 0.9;
}

.event-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.glass-card,
.location-panel,
.experience-card,
.quote-card,
.rsvp-form {
  border: 1px solid var(--border);
  background: var(--glass);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(18px);
}

.glass-card {
  padding: 24px;
  border-radius: var(--radius-md);
}

.card-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin-bottom: 18px;
  border-radius: 16px;
  color: var(--primary-dark);
  background: rgba(100, 211, 226, 0.24);
}

.glass-card h3,
.location-panel h3,
.experience-card h3 {
  margin-bottom: 8px;
  font-size: 1.15rem;
}

.glass-card p,
.location-panel p,
.experience-card p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.65;
}

.location-panel {
  display: grid;
  gap: 22px;
  margin-top: 18px;
  padding: 26px;
  border-radius: var(--radius-lg);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.86), rgba(226, 249, 252, 0.7)),
    radial-gradient(circle at 0 0, rgba(6, 152, 173, 0.18), transparent 18rem);
}

.experience-list {
  display: grid;
  gap: 14px;
}

.experience-card {
  padding: 24px;
  border-radius: var(--radius-md);
}

.experience-card span {
  display: inline-block;
  margin-bottom: 18px;
  color: var(--primary);
  font-family: var(--font-display);
  font-size: 2.2rem;
  line-height: 1;
}

.quote-card {
  padding: clamp(28px, 8vw, 70px);
  border-radius: 40px;
  text-align: center;
  background:
    radial-gradient(circle at 50% 0%, rgba(100, 211, 226, 0.35), transparent 22rem),
    rgba(255, 255, 255, 0.78);
}

.quote-card p {
  max-width: 760px;
  margin: 0 auto 22px;
  font-family: var(--font-display);
  font-size: clamp(2rem, 9vw, 5rem);
  font-style: italic;
  line-height: 1.02;
  letter-spacing: -0.06em;
}

.quote-card span {
  color: var(--primary-dark);
  font-weight: 850;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.rsvp-form {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  width: min(760px, 100%);
  margin: 0 auto;
  padding: 22px;
  border-radius: var(--radius-lg);
}

.rsvp-form label {
  display: grid;
  gap: 8px;
}

.rsvp-form span {
  color: var(--primary-dark);
  font-size: 0.82rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.rsvp-form input,
.rsvp-form select,
.rsvp-form textarea {
  width: 100%;
  min-height: 50px;
  padding: 13px 14px;
  border: 1px solid rgba(6, 152, 173, 0.22);
  border-radius: 16px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.86);
  outline: none;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.rsvp-form textarea {
  resize: vertical;
}

.rsvp-form input:focus,
.rsvp-form select:focus,
.rsvp-form textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(6, 152, 173, 0.12);
}

.form-feedback {
  min-height: 20px;
  margin: 0;
  color: var(--primary-dark);
  font-weight: 750;
}

.form-feedback.is-error {
  color: #a33b3b;
}

.floating-cta {
  position: fixed;
  left: 50%;
  bottom: 18px;
  z-index: 90;
  min-width: min(320px, calc(100% - 32px));
  min-height: 54px;
  border: 0;
  border-radius: 999px;
  color: var(--white);
  font-weight: 900;
  letter-spacing: 0.02em;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  box-shadow: 0 20px 52px rgba(6, 107, 128, 0.34);
  transform: translate(-50%, 120px);
  opacity: 0;
  pointer-events: none;
  transition: transform 220ms ease, opacity 220ms ease;
}

.floating-cta.is-visible {
  transform: translate(-50%, 0);
  opacity: 1;
  pointer-events: auto;
}

.footer {
  padding: 30px 18px 88px;
  color: var(--muted);
  text-align: center;
  font-size: 0.88rem;
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 650ms ease, transform 650ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (min-width: 720px) {
  .section {
    padding: 96px 0;
  }

  .hero {
    grid-template-columns: minmax(320px, 0.86fr) minmax(350px, 0.74fr);
    grid-template-rows: 1fr auto;
    column-gap: clamp(28px, 5vw, 90px);
    padding: 42px min(5vw, 68px) 34px;
  }

  .hero__content {
    justify-self: end;
    margin: 0;
    padding: clamp(30px, 4vw, 56px);
    text-align: left;
  }

  .hero__date-card,
  .hero__intro {
    margin-left: 0;
  }

  .hero__actions,
  .location-panel__actions {
    justify-content: flex-start;
  }

  .hero__art {
    justify-self: start;
    width: min(430px, 34vw);
    margin: 0;
  }

  .scroll-hint {
    grid-column: 1 / -1;
  }

  .countdown {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .event-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .location-panel {
    grid-template-columns: 1fr auto;
    align-items: center;
  }

  .experience-list {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .rsvp-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 30px;
  }

  .form-full {
    grid-column: 1 / -1;
  }

  .footer {
    padding-bottom: 34px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
