:root {
  color-scheme: light;
  --night: #07142e;
  --deep: #0b1f44;
  --paper: #fffaf0;
  --paper-strong: #fffdf8;
  --ink: #171713;
  --muted: #766c5a;
  --line: #dfcfad;
  --gold: #ffd36c;
  --gold-deep: #c58a25;
  --teal: #35a49d;
  --teal-dark: #15706b;
  --coral: #d46b54;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.28);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0) 18%),
    linear-gradient(160deg, #07142e 0%, #0b1a39 44%, #112946 100%);
  color: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    radial-gradient(circle, rgba(255, 255, 255, 0.65) 0 1px, transparent 1.5px),
    radial-gradient(circle, rgba(255, 211, 108, 0.65) 0 1px, transparent 1.5px);
  background-position: 0 0, 34px 48px;
  background-size: 92px 92px, 138px 138px;
  opacity: 0.28;
}

.page-shell {
  position: relative;
  z-index: 1;
  width: min(1120px, calc(100% - 36px));
  min-height: 100vh;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 430px);
  gap: 38px;
  align-items: center;
  padding: 34px 0 42px;
}

.intro {
  position: relative;
  display: grid;
  gap: 18px;
  padding: 24px 40px 28px 0;
}

.intro::after {
  content: "";
  position: absolute;
  top: 0;
  right: -70px;
  width: min(30vw, 360px);
  aspect-ratio: 1;
  border-radius: 999px;
  background:
    radial-gradient(circle at 35% 35%, rgba(255, 211, 108, 0.24), rgba(255, 211, 108, 0.05) 36%, transparent 68%),
    radial-gradient(circle at 62% 60%, rgba(53, 164, 157, 0.14), transparent 58%);
  filter: blur(8px);
  pointer-events: none;
}

.intro > * {
  position: relative;
  z-index: 1;
}

.brand-lockup {
  width: fit-content;
  max-width: min(100%, 560px);
  padding: 14px 18px;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 22px 56px rgba(0, 0, 0, 0.22);
}

.brand-lockup-image {
  width: min(100%, 520px);
  height: auto;
  display: block;
}

.eyebrow {
  margin: 0;
  color: var(--gold);
  font-size: 13px;
  font-weight: 750;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  max-width: 10ch;
  color: #fffef9;
  font-size: clamp(38px, 5.7vw, 68px);
  line-height: 0.98;
  letter-spacing: 0;
  text-wrap: balance;
}

.intro-copy {
  max-width: 570px;
  margin: 0;
  color: #e7decb;
  font-size: 18px;
  line-height: 1.6;
}

.invite-strip {
  width: min(100%, 560px);
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.invite-strip span {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(255, 211, 108, 0.28);
  border-radius: 999px;
  background: rgba(255, 250, 240, 0.08);
  color: #fff5d8;
  padding: 0 13px;
  font-size: 14px;
  font-weight: 720;
}

.form-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(180deg, var(--paper-strong), var(--paper));
  box-shadow: var(--shadow);
  padding: 26px;
  color: var(--ink);
}

.panel-heading {
  margin-bottom: 18px;
}

.panel-heading p {
  margin: 0 0 4px;
  color: var(--teal-dark);
  font-size: 12px;
  font-weight: 820;
  letter-spacing: 0;
  text-transform: uppercase;
}

.panel-heading h2 {
  margin: 0;
  font-size: 28px;
  line-height: 1.15;
  letter-spacing: 0;
}

.status-bar {
  min-height: 38px;
  display: flex;
  align-items: center;
  margin-bottom: 18px;
  padding: 9px 12px;
  border: 1px solid #e8dfd1;
  border-radius: 8px;
  background: #f7efe1;
  color: #514b42;
  font-size: 14px;
  line-height: 1.35;
}

.status-bar.ready {
  border-color: rgba(30, 116, 109, 0.3);
  background: rgba(30, 116, 109, 0.08);
  color: var(--teal-dark);
}

.status-bar.empty {
  border-color: rgba(200, 95, 74, 0.34);
  background: rgba(200, 95, 74, 0.09);
  color: #84402f;
}

form {
  display: grid;
  gap: 18px;
}

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

.field {
  display: grid;
  gap: 8px;
}

label {
  color: #343027;
  font-size: 14px;
  font-weight: 760;
}

label span {
  color: var(--coral);
  font-size: 12px;
  font-weight: 760;
}

input,
select {
  width: 100%;
  min-height: 48px;
  border: 1px solid #d8cebd;
  border-radius: 8px;
  background: #fffdfa;
  color: var(--ink);
  font: inherit;
  padding: 0 13px;
  outline: none;
}

input:focus,
select:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(30, 116, 109, 0.14);
}

.trap {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.submit-button {
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 0;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--teal-dark), var(--teal));
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-weight: 820;
}

.submit-button svg {
  width: 21px;
  height: 21px;
}

.submit-button:hover {
  background: linear-gradient(135deg, #0f5f5b, #238c85);
}

.submit-button:disabled {
  cursor: wait;
  background: #9aa7a4;
}

.fine-print {
  margin: -4px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.result {
  min-height: 24px;
  margin-top: 18px;
  font-size: 15px;
  line-height: 1.55;
}

.result.success {
  color: var(--teal-dark);
}

.result.error {
  color: #944332;
}

@media (max-width: 820px) {
  .page-shell {
    min-height: auto;
    grid-template-columns: 1fr;
    padding: 28px 0;
  }

  .intro {
    padding: 14px 0 10px;
  }

  .intro::after {
    top: 6px;
    right: -38px;
    width: 210px;
    opacity: 0.95;
  }

  h1 {
    font-size: 42px;
  }

  .intro-copy {
    font-size: 17px;
  }
}

@media (max-width: 560px) {
  .page-shell {
    width: min(100% - 22px, 520px);
    padding: 18px 0;
  }

  .intro {
    gap: 14px;
    padding-top: 8px;
  }

  .intro::after {
    width: 156px;
    right: -28px;
    top: 4px;
    opacity: 0.92;
  }

  h1 {
    max-width: 8ch;
    font-size: 34px;
  }

  .brand-lockup {
    max-width: 100%;
    padding: 10px 12px;
    border-radius: 22px;
  }

  .brand-lockup-image {
    width: 100%;
    max-width: 300px;
  }

  .field-grid {
    grid-template-columns: 1fr;
  }

  .invite-strip {
    gap: 8px;
  }

  .invite-strip span {
    min-height: 32px;
    padding: 0 12px;
    font-size: 13px;
  }

  .form-panel {
    padding: 18px;
  }
}
