:root {
  --abyss: #030418;
  --abyss-2: #070a2b;
  --deep: #0d1247;
  --violet: #3b1e7a;
  --lilac: #a06bff;
  --neon: #6be1ff;
  --pink: #ff7bd5;
  --cream: #f4ecff;
  --hair: rgba(180, 150, 255, 0.18);
}

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

html, body { overflow-x: hidden; }

body {
  font-family: 'Space Grotesk', system-ui, sans-serif;
  background:
    radial-gradient(ellipse at 20% -10%, #1a0b4d 0%, transparent 55%),
    radial-gradient(ellipse at 80% 110%, #4a1178 0%, transparent 55%),
    linear-gradient(180deg, var(--abyss) 0%, var(--abyss-2) 40%, #0a0630 100%);
  background-attachment: fixed;
  color: var(--cream);
  min-height: 100vh;
  position: relative;
  line-height: 1.55;
}

/* Caustic light shimmer */
.caustics {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(circle at 30% 20%, rgba(107, 225, 255, 0.08), transparent 40%),
    radial-gradient(circle at 70% 60%, rgba(255, 123, 213, 0.06), transparent 45%),
    radial-gradient(circle at 50% 90%, rgba(160, 107, 255, 0.10), transparent 40%);
  animation: shimmer 14s ease-in-out infinite alternate;
}
@keyframes shimmer {
  0%   { transform: translate3d(0,0,0) scale(1); opacity: 0.9; }
  50%  { transform: translate3d(-2%, 1%, 0) scale(1.05); opacity: 1; }
  100% { transform: translate3d(2%, -1%, 0) scale(1.03); opacity: 0.85; }
}

/* Floating jellyfish */
.jellies {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
.jelly {
  position: absolute;
  opacity: 0.55;
  filter: drop-shadow(0 0 24px rgba(160, 107, 255, 0.45));
  animation: float 18s ease-in-out infinite, drift 30s linear infinite;
}
.j1 { width: 140px; left: 6%;  top: 15%; animation-duration: 16s, 34s; }
.j2 { width: 90px;  left: 82%; top: 25%; animation-duration: 20s, 28s; opacity: 0.4; }
.j3 { width: 170px; left: 55%; top: 55%; animation-duration: 22s, 40s; opacity: 0.5; }
.j4 { width: 110px; left: 15%; top: 70%; animation-duration: 18s, 32s; opacity: 0.6; }
.j5 { width: 80px;  left: 70%; top: 80%; animation-duration: 24s, 36s; opacity: 0.45; }
.j6 { width: 130px; left: 40%; top: 8%;  animation-duration: 19s, 30s; opacity: 0.35; }

@keyframes float {
  0%, 100% { transform: translateY(0) scaleY(1); }
  50%      { transform: translateY(-40px) scaleY(1.05); }
}
@keyframes drift {
  0%   { transform: translateX(0); }
  50%  { transform: translateX(30px); }
  100% { transform: translateX(0); }
}

/* NAV */
.nav {
  position: relative;
  z-index: 5;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 22px 28px;
}
.brand {
  font-family: 'Fraunces', serif;
  font-weight: 800;
  font-size: 22px;
  letter-spacing: 0.02em;
  color: var(--cream);
}
.brand span {
  background: linear-gradient(90deg, var(--neon), var(--lilac), var(--pink));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-left: 6px;
}
.nav-cta {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--cream);
  text-decoration: none;
  padding: 10px 18px;
  border: 1px solid var(--hair);
  border-radius: 999px;
  backdrop-filter: blur(6px);
  background: rgba(255,255,255,0.03);
  transition: all 0.3s ease;
}
.nav-cta:hover {
  border-color: var(--neon);
  color: var(--neon);
  box-shadow: 0 0 24px rgba(107, 225, 255, 0.35);
}

main { position: relative; z-index: 2; }

/* HERO */
.hero {
  padding: 80px 28px 100px;
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
}
.kicker {
  font-family: 'Space Grotesk', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  font-size: 11px;
  color: var(--neon);
  margin-bottom: 24px;
  opacity: 0.85;
}
h1 {
  font-family: 'Fraunces', serif;
  font-weight: 800;
  font-size: clamp(58px, 14vw, 180px);
  line-height: 0.88;
  letter-spacing: -0.03em;
  margin-bottom: 28px;
}
h1 .line-1 { display: block; color: var(--cream); }
h1 .line-2 {
  display: block;
  font-style: italic;
  background: linear-gradient(180deg, #ffd1f4 0%, var(--pink) 30%, var(--lilac) 65%, var(--neon) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 32px rgba(255, 123, 213, 0.35));
}
.tagline {
  font-size: clamp(16px, 2.2vw, 20px);
  max-width: 620px;
  margin: 0 auto 40px;
  color: rgba(244, 236, 255, 0.85);
}
.hero-cta {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-primary {
  display: inline-block;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  color: #0a0630;
  padding: 16px 28px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--neon), var(--pink));
  border: none;
  cursor: pointer;
  box-shadow: 0 8px 40px rgba(107, 225, 255, 0.35), 0 0 0 1px rgba(255,255,255,0.15) inset;
  transition: transform 0.2s ease, box-shadow 0.3s ease;
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 50px rgba(255, 123, 213, 0.5), 0 0 0 1px rgba(255,255,255,0.25) inset;
}
.btn-ghost {
  display: inline-block;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cream);
  padding: 16px 28px;
  border-radius: 999px;
  border: 1px solid var(--hair);
  text-decoration: none;
  transition: all 0.3s ease;
}
.btn-ghost:hover { border-color: var(--lilac); color: var(--lilac); }

/* DETAILS */
.details {
  max-width: 1100px;
  margin: 40px auto 100px;
  padding: 0 28px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}
.detail-card {
  padding: 32px 26px;
  border-radius: 24px;
  background: linear-gradient(160deg, #1a0d4a 0%, #0d0a3a 100%);
  border: 1px solid var(--hair);
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 20px 60px rgba(0,0,0,0.45);
  position: relative;
  overflow: hidden;
}
.detail-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 100% 0%, rgba(160, 107, 255, 0.25), transparent 60%);
  pointer-events: none;
}
.detail-card > * { position: relative; z-index: 1; }
.detail-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 123, 213, 0.4);
}
.detail-icon {
  font-size: 34px;
  margin-bottom: 14px;
  filter: drop-shadow(0 0 12px rgba(107, 225, 255, 0.4));
}
.detail-card h3 {
  font-family: 'Fraunces', serif;
  font-weight: 600;
  font-size: 22px;
  margin-bottom: 10px;
  color: var(--cream);
}
.detail-card p {
  font-size: 15px;
  color: rgba(244, 236, 255, 0.9);
  line-height: 1.55;
}

/* MANIFESTO */
.manifesto {
  max-width: 780px;
  margin: 0 auto 100px;
  padding: 60px 36px;
  text-align: center;
  font-family: 'Fraunces', serif;
  background: linear-gradient(160deg, rgba(30, 14, 90, 0.7), rgba(10, 6, 48, 0.85));
  border-radius: 28px;
  border: 1px solid var(--hair);
  position: relative;
  overflow: hidden;
}
.manifesto::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 20%, rgba(255, 123, 213, 0.15), transparent 55%),
              radial-gradient(circle at 80% 80%, rgba(107, 225, 255, 0.12), transparent 55%);
  pointer-events: none;
}
.manifesto > * { position: relative; z-index: 1; }
@media (max-width: 640px) {
  .manifesto { margin: 0 20px 60px; padding: 40px 24px; }
}
.manifesto p {
  font-size: clamp(20px, 2.6vw, 28px);
  line-height: 1.45;
  margin-bottom: 22px;
  color: #f4ecff;
  font-weight: 400;
  text-shadow: 0 2px 30px rgba(3, 4, 24, 0.8);
}
.manifesto .drop::first-letter,
.manifesto .drop span {
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-weight: 800;
  font-size: 1.6em;
  line-height: 1;
  background: linear-gradient(180deg, var(--pink), var(--lilac));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  padding-right: 4px;
}
.manifesto .fk {
  font-style: italic;
  font-weight: 600;
  font-size: clamp(22px, 3vw, 34px);
  background: linear-gradient(90deg, var(--neon), var(--pink));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-top: 30px;
}

/* RSVP */
.rsvp {
  padding: 40px 20px 120px;
}
.rsvp-inner {
  max-width: 560px;
  margin: 0 auto;
  padding: 48px 36px;
  border-radius: 28px;
  background: linear-gradient(160deg, #1e0e5a 0%, #0a0630 100%);
  border: 1px solid var(--hair);
  box-shadow: 0 30px 100px rgba(0,0,0,0.65), 0 0 60px rgba(160, 107, 255, 0.2) inset;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.rsvp-inner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 0%, rgba(255, 123, 213, 0.18), transparent 55%);
  pointer-events: none;
}
.rsvp-inner > * { position: relative; z-index: 1; }
.rsvp-inner h2 {
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-weight: 700;
  font-size: clamp(42px, 7vw, 68px);
  line-height: 0.95;
  letter-spacing: -0.02em;
  margin: 8px 0 18px;
  color: #f4ecff;
}
.rsvp-sub {
  color: rgba(244, 236, 255, 0.85);
  margin-bottom: 32px;
  font-size: 15px;
}

#rsvp-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  text-align: left;
}
.field span {
  display: block;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--neon);
  margin-bottom: 8px;
  font-weight: 500;
}
.field em {
  font-style: normal;
  opacity: 0.55;
  text-transform: none;
  letter-spacing: 0;
  margin-left: 4px;
}
.field input {
  width: 100%;
  padding: 14px 18px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 16px;
  color: var(--cream);
  background: rgba(3, 4, 24, 0.55);
  border: 1px solid var(--hair);
  border-radius: 14px;
  outline: none;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
.field input::placeholder { color: rgba(244, 236, 255, 0.3); }
.field input:focus {
  border-color: var(--neon);
  box-shadow: 0 0 0 4px rgba(107, 225, 255, 0.15);
}
.submit {
  margin-top: 10px;
  width: 100%;
  padding: 18px;
  font-size: 15px;
}
.form-msg {
  margin-top: 6px;
  font-size: 14px;
  min-height: 20px;
  text-align: center;
  color: var(--neon);
}
.form-msg.error { color: var(--pink); }

.counter {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px dashed var(--hair);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.count {
  font-family: 'Fraunces', serif;
  font-weight: 800;
  font-size: 48px;
  background: linear-gradient(90deg, var(--neon), var(--pink));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1;
}
.count-label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: rgba(244, 236, 255, 0.55);
}

footer {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 30px 20px 50px;
  font-size: 13px;
  color: rgba(244, 236, 255, 0.4);
}
footer a { color: var(--lilac); text-decoration: none; }
footer a:hover { color: var(--neon); }

/* MOBILE */
@media (max-width: 640px) {
  .nav { padding: 18px 20px; }
  .brand { font-size: 18px; }
  .hero { padding: 40px 20px 60px; }
  .details { margin: 20px auto 60px; padding: 0 20px; }
  .detail-card { padding: 26px 22px; }

  .rsvp-inner { padding: 36px 22px; }
  .j2, .j5 { display: none; }
}
