/* ---------------------------------------------------------------
   Purple / lime creator homepage
   --------------------------------------------------------------- */

:root {
  --bg: #12061f;
  --bg-2: #1d0a33;
  --accent: #c9f75a;
  --accent-deep: #a8e83f;
  --on-accent: #0f1a06;
  --text: #ffffff;
  --dim: rgba(255, 255, 255, 0.66);
  --faint: rgba(255, 255, 255, 0.5);
  --surface: rgba(255, 255, 255, 0.055);
  --surface-hover: rgba(255, 255, 255, 0.09);
  --border: rgba(255, 255, 255, 0.085);
  --border-strong: rgba(255, 255, 255, 0.18);
  --radius: 16px;
  --maxw: 560px;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, "Helvetica Neue", Arial, sans-serif;
}

[hidden] { display: none !important; }

* { box-sizing: border-box; }

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

body {
  margin: 0;
  min-height: 100svh;
  /* flat at the top so the hero fade lands on an identical colour,
     with the purple glow living lower down the page */
  background:
    radial-gradient(85% 42% at 50% 74%, rgba(124, 58, 237, 0.20) 0%, transparent 72%),
    radial-gradient(70% 38% at 8% 88%, rgba(147, 51, 234, 0.16) 0%, transparent 72%),
    var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* ---------------- hero ---------------- */

.hero {
  position: relative;
  width: 100%;
  height: clamp(330px, 46vh, 520px);
  overflow: hidden;
  /* fade the whole band (photo + scrim) so there is no hard edge */
  -webkit-mask-image: linear-gradient(180deg, #000 56%, rgba(0, 0, 0, 0.92) 78%, transparent 100%);
  mask-image: linear-gradient(180deg, #000 56%, rgba(0, 0, 0, 0.92) 78%, transparent 100%);
}

.hero-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 30%;
  filter: saturate(1.05) contrast(1.02);
}

.hero-scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(18, 6, 31, 0) 28%, rgba(18, 6, 31, 0.24) 56%, rgba(18, 6, 31, 0.5) 82%, rgba(18, 6, 31, 0.68) 100%),
    linear-gradient(100deg, rgba(88, 28, 135, 0.32) 0%, transparent 48%);
}

/* ---------------- page ---------------- */

.page {
  position: relative;
  z-index: 2;
  width: 100%;
  min-width: 0;
  max-width: var(--maxw);
  margin: -132px auto 0;
  padding: 0 18px 34px;
  display: flex;
  flex-direction: column;
}

/* ---------------- identity ---------------- */

.identity {
  text-align: center;
  animation: rise 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.mark {
  display: flex;
  justify-content: center;
  gap: 1px;
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 1;
  margin-bottom: 12px;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.45);
}

.mark-accent { color: var(--accent); }

.wordmark {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.38em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.78);
  margin-bottom: 24px;
}

.wordmark i {
  display: block;
  width: 44px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4));
}

.wordmark i:last-child {
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.4), transparent);
}

.name {
  margin: 0;
  font-size: clamp(2.45rem, 11.5vw, 4.1rem);
  font-weight: 800;
  letter-spacing: -0.038em;
  line-height: 0.94;
  text-shadow: 0 10px 44px rgba(0, 0, 0, 0.5);
}

.tagline {
  margin: 18px auto 0;
  max-width: 22ch;
  font-size: clamp(1.02rem, 4.1vw, 1.22rem);
  font-weight: 700;
  letter-spacing: -0.012em;
  line-height: 1.35;
  text-wrap: balance;
}

.roles {
  margin: 10px 0 0;
  font-size: 0.86rem;
  font-weight: 450;
  letter-spacing: 0.015em;
  color: var(--dim);
}

.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 26px;
  padding: 15px 42px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--on-accent);
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-decoration: none;
  box-shadow: 0 14px 38px rgba(201, 247, 90, 0.26);
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.cta:hover {
  background: var(--accent-deep);
  transform: translateY(-1px);
  box-shadow: 0 18px 46px rgba(201, 247, 90, 0.34);
}

.cta:active { transform: translateY(0); }

/* ---------------- socials ---------------- */

.socials {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 26px;
}

.social {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--surface);
  color: rgba(255, 255, 255, 0.86);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  transition: color 0.18s ease, border-color 0.18s ease, background 0.18s ease, transform 0.18s ease;
}

.social svg { width: 19px; height: 19px; }

.social:hover,
.social:focus-visible {
  color: var(--accent);
  border-color: rgba(201, 247, 90, 0.5);
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

.save-contact {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  align-self: center;
  margin-top: 16px;
  padding: 9px 18px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: transparent;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-decoration: none;
  transition: color 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.save-contact svg { width: 15px; height: 15px; }

.save-contact:hover,
.save-contact:focus-visible {
  color: var(--accent);
  border-color: rgba(201, 247, 90, 0.5);
  background: rgba(255, 255, 255, 0.05);
}

/* ---------------- links ---------------- */

.links {
  display: flex;
  flex-direction: column;
  gap: 11px;
  margin-top: 34px;
  min-width: 0;
}

.link {
  --i: 0;
  position: relative;
  display: flex;
  min-width: 0;
  overflow: hidden;
  align-items: center;
  gap: 15px;
  padding: 16px 17px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  text-decoration: none;
  font-size: 1.03rem;
  font-weight: 600;
  letter-spacing: -0.005em;
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  backdrop-filter: blur(14px) saturate(140%);
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease, box-shadow 0.22s ease;
  animation: rise 0.6s cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-delay: calc(120ms + var(--i) * 55ms);
}

.link:hover,
.link:focus-visible {
  background: var(--surface-hover);
  border-color: rgba(201, 247, 90, 0.45);
  transform: translateY(-1px);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.3);
}

.link:active { transform: translateY(0); }

.link-icon {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  color: var(--text);
}

.link-icon svg { width: 22px; height: 22px; }

.link-label {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.link-main {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.link-sub {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  margin-top: 2px;
  font-size: 0.77rem;
  font-weight: 450;
  letter-spacing: 0.005em;
  color: var(--faint);
}

.link-arrow {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  color: var(--accent);
  transition: transform 0.18s ease;
}

.link-arrow svg { width: 19px; height: 19px; }

.link:hover .link-arrow { transform: translateX(3px); }

.link.is-featured {
  background: var(--accent);
  border-color: transparent;
  color: var(--on-accent);
  box-shadow: 0 12px 34px rgba(201, 247, 90, 0.24);
}

.link.is-featured .link-icon,
.link.is-featured .link-arrow { color: var(--on-accent); }
.link.is-featured .link-sub { color: rgba(15, 26, 6, 0.62); }

.link.is-featured:hover {
  background: var(--accent-deep);
  border-color: transparent;
}

/* ---------------- note card ---------------- */

.note-card {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 22px;
  padding: 13px;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: var(--surface);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}

.note-img {
  flex: 0 0 auto;
  width: 112px;
  height: 112px;
  border-radius: 14px;
  object-fit: cover;
}

.note-body {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
}

.note-rule {
  display: block;
  width: 1px;
  align-self: stretch;
  margin: 6px 0;
  background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.22), transparent);
}

.note-text {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 600;
  line-height: 1.38;
  letter-spacing: -0.01em;
  text-wrap: pretty;
}

/* ---------------- sections ---------------- */

.section { margin-top: 34px; min-width: 0; }
.sponsors, .events { min-width: 0; }

.section-title {
  margin: 0 0 12px 2px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--faint);
}

.events { display: flex; flex-direction: column; gap: 10px; }

.event {
  display: flex;
  min-width: 0;
  gap: 15px;
  padding: 16px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  animation: rise 0.6s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.event.is-full { opacity: 0.72; }

.event-date {
  flex: 0 0 auto;
  width: 52px;
  align-self: flex-start;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  padding: 9px 0 8px;
  border-radius: 13px;
  background: rgba(201, 247, 90, 0.12);
  border: 1px solid rgba(201, 247, 90, 0.28);
}

.event-day {
  font-size: 1.3rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--accent);
}

.event-month {
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--dim);
}

.event-body { min-width: 0; flex: 1 1 auto; }

.event-title {
  margin: 2px 0 0;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.3;
}

.event-meta { margin: 3px 0 0; font-size: 0.8rem; color: var(--dim); line-height: 1.5; }

.event-desc { margin: 9px 0 0; font-size: 0.86rem; color: var(--dim); line-height: 1.55; text-wrap: pretty; }

.event-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 14px;
}

.event-spots { font-size: 0.79rem; color: var(--faint); }
.event-spots strong { color: var(--text); font-weight: 650; }
.event-spots.is-full { color: #ffb0b0; }
/* only shown under 10 seats left — scarcity should read as scarcity */
.event-spots.is-low { color: var(--accent); font-weight: 600; }

.btn-rsvp {
  appearance: none;
  border: 1px solid rgba(201, 247, 90, 0.42);
  background: rgba(201, 247, 90, 0.13);
  color: var(--text);
  font: inherit;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  padding: 9px 20px;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.btn-rsvp:hover:not(:disabled) {
  background: rgba(201, 247, 90, 0.22);
  border-color: rgba(201, 247, 90, 0.7);
  transform: translateY(-1px);
}

.btn-rsvp:disabled { opacity: 0.45; cursor: default; }

.sponsors { display: flex; flex-direction: column; gap: 11px; min-width: 0; }

.badge {
  flex: 0 0 auto;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(201, 247, 90, 0.32);
  background: rgba(201, 247, 90, 0.14);
  color: var(--accent);
  font-size: 0.67rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.badge-sponsor {
  border-color: var(--border-strong);
  background: rgba(255, 255, 255, 0.07);
  color: var(--dim);
}

.disclosure {
  margin: 11px 2px 0;
  font-size: 0.68rem;
  line-height: 1.55;
  color: var(--faint);
  text-wrap: pretty;
}

/* ---------------- footer ---------------- */

.footer { margin-top: 44px; }

.footline {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  font-size: 0.76rem;
  letter-spacing: 0.05em;
  color: var(--faint);
}

.footline i {
  display: block;
  width: 38px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.28));
}

.footline i:last-child {
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.28), transparent);
}

/* ---------------- RSVP dialog ---------------- */

dialog.rsvp {
  position: relative;
  width: min(440px, calc(100vw - 28px));
  max-height: min(88vh, 760px);
  overflow-y: auto;
  padding: 26px 24px 24px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  background: #1b0b30;
  color: var(--text);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.65);
}

dialog.rsvp::backdrop {
  background: rgba(10, 3, 18, 0.68);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

dialog.rsvp[open] { animation: rise 0.28s cubic-bezier(0.22, 1, 0.36, 1) both; }

.rsvp-close-form { position: absolute; top: 12px; right: 12px; margin: 0; }

.rsvp-close {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  padding: 0;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--dim);
  cursor: pointer;
}

.rsvp-close:hover { color: var(--text); border-color: var(--border-strong); }
.rsvp-close svg { width: 13px; height: 13px; }

.rsvp-kicker {
  margin: 0 0 6px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
}

.rsvp-title {
  margin: 0;
  padding-right: 28px;
  font-size: 1.25rem;
  font-weight: 750;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.rsvp-meta { margin: 7px 0 20px; font-size: 0.82rem; line-height: 1.55; color: var(--dim); }

.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 13px; }
.field label { font-size: 0.8rem; font-weight: 500; color: var(--dim); }
.field .opt { color: var(--faint); font-weight: 400; }

input,
select,
textarea {
  width: 100%;
  padding: 11px 12px;
  font: inherit;
  font-size: 0.94rem;
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  transition: border-color 0.15s ease, background 0.15s ease;
}

textarea { resize: vertical; min-height: 70px; line-height: 1.5; }

input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: rgba(201, 247, 90, 0.6);
  background: rgba(255, 255, 255, 0.09);
}

.field-row { display: grid; grid-template-columns: 1fr 92px; gap: 12px; }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.btn-primary {
  width: 100%;
  padding: 13px 16px;
  border: 0;
  border-radius: 14px;
  font: inherit;
  font-size: 0.94rem;
  font-weight: 750;
  background: var(--accent);
  color: var(--on-accent);
  cursor: pointer;
  transition: filter 0.15s ease, transform 0.15s ease;
}

.btn-primary:hover:not(:disabled) { filter: brightness(1.06); }
.btn-primary:active:not(:disabled) { transform: scale(0.995); }
.btn-primary:disabled { opacity: 0.65; cursor: default; }

.form-note { margin: 11px 0 0; font-size: 0.73rem; line-height: 1.55; color: var(--faint); text-align: center; }
.form-error { margin: 0 0 12px; font-size: 0.81rem; line-height: 1.5; color: #ff9d9d; }

/* ---------------- motion ---------------- */

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 8px;
}

@keyframes rise {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-delay: 0ms !important;
    transition-duration: 0.001ms !important;
  }
  .link:hover, .cta:hover { transform: none; }
}

@media (max-width: 380px) {
  .page { padding-left: 14px; padding-right: 14px; margin-top: -110px; }
  .hero { height: clamp(300px, 42vh, 460px); }
  .note-img { width: 92px; height: 92px; }
  .note-text { font-size: 1rem; }
  .field-row { grid-template-columns: 1fr 80px; }
  .cta { padding: 14px 32px; }
}

@media (min-width: 700px) {
  .hero { height: 640px; }
  .page { margin-top: -150px; }
}
