:root {
  --bg: #edf3f8;
  --surface: rgba(255, 255, 255, 0.9);
  --surface-strong: #ffffff;
  --text: #0e2f4b;
  --muted: #36546e;
  --accent: #1f5f93;
  --accent-dark: #123c61;
  --line: rgba(18, 60, 97, 0.16);
  --shadow: 0 22px 48px rgba(11, 44, 71, 0.14);
  --radius-lg: 28px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Manrope", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 8% 0%, rgba(42, 111, 152, 0.18), transparent 34%),
    radial-gradient(
      circle at 92% 18%,
      rgba(17, 68, 107, 0.16),
      transparent 28%
    ),
    linear-gradient(180deg, #f7fbff 0%, var(--bg) 54%, #e6eef5 100%);
}

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

.page-shell {
  width: min(1160px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 1.25rem 0 3rem;
}

.topbar {
  backdrop-filter: blur(12px);
  position: relative;
  z-index: 3;
}

.subpage-header,
.card,
.schedule-panel,
.feature-band,
.form-card,
.sidebar-card,
.partner-card {
  backdrop-filter: blur(12px);
}

.hero {
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 36px;
  box-shadow: var(--shadow);
  overflow: hidden;
  position: relative;
}

.hero-image {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 0;
}

.hero-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(15, 54, 88, 0.72),
    rgba(42, 111, 152, 0.64),
    rgba(31, 95, 147, 0.68)
  );
  z-index: 1;
}

.hero:not(:has(.hero-image[style*="url"])) {
  background: linear-gradient(
    148deg,
    rgba(255, 255, 255, 0.96),
    rgba(235, 243, 250, 0.9)
  );
}

.hero:has(.hero-image[style*="url"]) {
  background: transparent;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  border-radius: 36px;
  border: 1px solid var(--line);
  box-shadow: inset 0 0 0 1px var(--line);
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.6rem 0.8rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  font-weight: 700;
}

.brand-mark {
  display: block;
  width: 2.5rem;
  height: 2.5rem;
  object-fit: contain;
  object-position: center;
  flex-shrink: 0;
}

.hero-content,
.subpage-header {
  position: relative;
  z-index: 3;
}

.hero-content {
  max-width: 46rem;
  padding: 4.5rem 1rem 4rem;
  animation: rise 700ms ease both;
  color: #ffffff;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.hero-content .eyebrow {
  color: rgba(255, 255, 255, 0.9);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
}

.hero-content h1 {
  color: #ffffff;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
}

.hero-content .lead {
  color: rgba(255, 255, 255, 0.95);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.eyebrow,
.section-tag,
.card-label {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.78rem;
  color: var(--accent-dark);
  margin: 0 0 0.75rem;
}

h1,
h2,
.partner-card h3 {
  font-family: "Cormorant Garamond", serif;
  line-height: 1.06;
  margin: 0;
  letter-spacing: 0.01em;
}

h1 {
  font-size: clamp(2.8rem, 7vw, 5.6rem);
  max-width: 12ch;
}

h2 {
  font-size: clamp(1.8rem, 4vw, 2.7rem);
}

.lead,
.card p,
.content-block p,
.schedule-item p,
.feature-band p,
.form-note,
.confirmation p,
.sidebar-card li,
.partner-card p,
.partners-intro p {
  color: var(--muted);
  line-height: 1.7;
}

.lead {
  max-width: 42rem;
  margin: 1.5rem 0 0;
  font-size: 1.08rem;
}

.lead.compact {
  max-width: 38rem;
}

.hero-actions,
.form-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 2rem;
}

.button,
button.button {
  border: 0;
  border-radius: 999px;
  padding: 0.95rem 1.45rem;
  font: inherit;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #ffffff;
  background: linear-gradient(135deg, #1f5f93, #174d78);
  box-shadow: 0 12px 24px rgba(18, 60, 97, 0.28);
  cursor: pointer;
}

.button-secondary {
  color: var(--accent-dark);
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid var(--line);
  box-shadow: none;
}

.button-light {
  background: #ffffff;
  color: var(--accent-dark);
  box-shadow: none;
}

.text-link {
  font-weight: 700;
  color: var(--accent-dark);
}

.info-grid,
.content-split,
.form-layout {
  display: grid;
  gap: 1.5rem;
  margin-top: 1.75rem;
}

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

.card,
.schedule-panel,
.form-card,
.sidebar-card,
.partner-card {
  padding: 1.6rem;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.accent-card {
  background: linear-gradient(
    160deg,
    rgba(42, 111, 152, 0.2),
    rgba(255, 255, 255, 0.94)
  );
}

.content-split {
  grid-template-columns: 1.1fr 0.9fr;
  align-items: start;
}

.schedule-panel {
  display: grid;
  gap: 1rem;
}

.schedule-item {
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--line);
}

.schedule-item:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.schedule-item span {
  display: block;
  font-weight: 700;
  margin-bottom: 0.35rem;
}

.feature-band {
  margin-top: 1.75rem;
  padding: 1.75rem;
  border-radius: var(--radius-lg);
  background: linear-gradient(140deg, #0f3658, #1e5885 62%, #2e729c);
  color: #edf6ff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.feature-band .section-tag,
.feature-band p,
.feature-band h2 {
  color: inherit;
}

.partners-section {
  margin-top: 1.75rem;
  display: grid;
  gap: 1.25rem;
}

.partners-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}

.page-shell-form {
  max-width: 1080px;
}

.subpage-header {
  margin-top: 1rem;
  padding: 2rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: linear-gradient(
    145deg,
    rgba(255, 255, 255, 0.95),
    rgba(233, 243, 250, 0.9)
  );
  box-shadow: var(--shadow);
}

.back-link {
  display: inline-block;
  margin-bottom: 1.25rem;
}

.form-layout {
  grid-template-columns: 1.35fr 0.65fr;
  align-items: start;
}

.signup-form {
  display: grid;
  gap: 1.25rem;
}

.field-group {
  display: grid;
  gap: 1rem;
}

.two-column {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.three-column {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

label {
  display: grid;
  gap: 0.55rem;
  font-weight: 500;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid rgba(18, 60, 97, 0.18);
  border-radius: 16px;
  padding: 0.95rem 1rem;
  font: inherit;
  font-size: 16px;
  color: var(--text);
  background: var(--surface-strong);
}

input:focus,
select:focus,
textarea:focus {
  outline: 2px solid rgba(42, 111, 152, 0.24);
  border-color: rgba(31, 95, 147, 0.46);
}

textarea {
  resize: vertical;
}

.form-note {
  margin: 0;
  max-width: 24rem;
}

.confirmation[hidden] {
  display: none;
}

.confirmation {
  padding-top: 0.5rem;
}

.sidebar-card ul {
  margin: 1rem 0 0;
  padding-left: 1.15rem;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 900px) {
  .info-grid,
  .content-split,
  .form-layout,
  .partners-grid,
  .two-column,
  .three-column,
  .feature-band {
    grid-template-columns: 1fr;
  }

  h1 {
    max-width: 100%;
  }
}

@media (max-width: 640px) {
  .page-shell {
    width: min(100% - 1rem, 1160px);
    padding-top: 0.5rem;
  }

  .hero-content {
    padding: 3rem 1rem 2.5rem;
  }

  .topbar {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.65rem;
    padding: 0.4rem;
  }

  .topbar .button-secondary,
  .button,
  button.button,
  .button-light {
    width: 100%;
    text-align: center;
  }

  h1 {
    font-size: clamp(2.1rem, 11vw, 3.2rem);
    line-height: 1.08;
  }

  h2 {
    font-size: clamp(1.45rem, 7vw, 2rem);
  }

  .lead {
    font-size: 1rem;
  }

  .hero-content,
  .subpage-header,
  .card,
  .schedule-panel,
  .form-card,
  .sidebar-card,
  .feature-band,
  .partner-card {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .hero-content {
    padding-top: 2.7rem;
    padding-bottom: 2.5rem;
  }

  .hero-actions,
  .form-actions {
    align-items: stretch;
  }
}

@media (max-width: 420px) {
  .page-shell {
    width: min(100% - 0.75rem, 1160px);
  }

  .brand-text {
    font-size: 0.96rem;
  }

  .brand-mark {
    width: 2.25rem;
    height: 2.25rem;
  }
}
