:root {
  --teal-900: #013548;
  --teal-700: #128383;
  --teal-100: #eaf5f4;
  --gold-500: #e3b468;
  --gold-600: #d49b3f;
  --sand-100: #f6f2e9;
  --white: #ffffff;
  --text: #2d2d2d;
  --muted: #5a6670;
  --border: #d7e0e4;
  --shadow: 0 20px 50px rgba(1, 53, 72, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Open Sans", sans-serif;
  color: var(--text);
  background:
    linear-gradient(rgba(1, 53, 72, 0.88), rgba(1, 53, 72, 0.88)),
    radial-gradient(circle at top, rgba(227, 180, 104, 0.18), transparent 36%),
    linear-gradient(180deg, #f8fafb 0%, #eef4f6 100%);
  min-height: 100vh;
}

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

button,
input {
  font: inherit;
}

.site-header {
  background: var(--teal-900);
  border-bottom: 4px solid var(--gold-500);
}

.site-header__inner,
.hero__inner,
.registration-section__inner {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.site-header__inner {
  display: flex;
  align-items: center;
  min-height: 110px;
  padding: 14px 0;
}

.brand img {
  display: block;
  width: min(240px, 52vw);
  height: auto;
}

.hero {
  padding: 68px 0 28px;
  color: var(--white);
}

.hero__eyebrow {
  margin: 0 0 10px;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-500);
}

.hero h1 {
  margin: 0;
  font-size: clamp(2.5rem, 6vw, 4rem);
  line-height: 1.15;
}

.hero__lead {
  margin: 14px 0 0;
  font-size: clamp(1.1rem, 2.2vw, 1.5rem);
  color: rgba(255, 255, 255, 0.88);
}

.registration-section {
  padding: 28px 0 72px;
}

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

.registration-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 184px;
  padding: 24px;
  border: 1px solid rgba(19, 64, 78, 0.12);
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(246, 250, 251, 0.98));
  box-shadow: var(--shadow);
  text-align: left;
  cursor: pointer;
  transition:
    transform 140ms ease,
    box-shadow 140ms ease,
    border-color 140ms ease;
}

.registration-card:hover,
.registration-card:focus-visible {
  transform: translateY(-3px);
  box-shadow: 0 26px 60px rgba(1, 53, 72, 0.16);
  border-color: rgba(18, 131, 131, 0.35);
  outline: none;
}

.registration-card__kicker {
  color: var(--teal-700);
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.registration-card strong {
  font-size: 1.35rem;
  line-height: 1.32;
}

.registration-card span:last-child {
  color: var(--muted);
  line-height: 1.6;
}

.membership-dialog {
  width: min(560px, calc(100% - 24px));
  border: 0;
  border-radius: 24px;
  padding: 0;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.28);
}

.membership-dialog::backdrop {
  background: rgba(1, 24, 33, 0.62);
}

.membership-dialog__panel {
  display: grid;
  gap: 16px;
  padding: 28px;
  background: var(--white);
}

.membership-dialog__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.membership-dialog__eyebrow {
  margin: 0 0 8px;
  color: var(--teal-700);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.membership-dialog h2 {
  margin: 0;
  font-size: clamp(1.5rem, 3vw, 2rem);
  line-height: 1.2;
}

.membership-dialog__intro {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.membership-dialog label {
  font-weight: 700;
}

.membership-dialog input {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: 14px;
}

.membership-dialog input:focus {
  outline: 2px solid rgba(18, 131, 131, 0.18);
  border-color: var(--teal-700);
}

.membership-dialog__status {
  min-height: 1.5em;
  margin: 0;
  color: var(--muted);
}

.membership-dialog__status.error {
  color: #b53b33;
}

.membership-dialog__actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 4px;
}

.membership-dialog__close {
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
}

.button {
  border: 0;
  border-radius: 999px;
  padding: 12px 20px;
  background: var(--teal-700);
  color: var(--white);
  font-weight: 700;
  cursor: pointer;
}

.button:hover:not(:disabled),
.button:focus-visible:not(:disabled) {
  background: #0f7070;
  outline: none;
}

.button:disabled {
  opacity: 0.72;
  cursor: wait;
}

.button--secondary {
  background: var(--sand-100);
  color: var(--teal-900);
}

.button--secondary:hover:not(:disabled),
.button--secondary:focus-visible:not(:disabled) {
  background: #ece3d2;
}

@media (max-width: 820px) {
  .registration-grid {
    grid-template-columns: 1fr;
  }

  .site-header__inner {
    min-height: 92px;
  }

  .hero {
    padding-top: 44px;
  }
}

@media (max-width: 560px) {
  .site-header__inner,
  .hero__inner,
  .registration-section__inner {
    width: min(100% - 20px, 1120px);
  }

  .registration-card {
    min-height: auto;
    padding: 20px;
    border-radius: 18px;
  }

  .membership-dialog__panel {
    padding: 22px;
  }

  .membership-dialog__actions {
    flex-direction: column-reverse;
  }

  .button {
    width: 100%;
  }
}
