:root {
  --primary: #0b69b3;
  --primary-dark: #074d84;
  --accent: #ff8b1a;
  --sand: #f2ece1;
  --ink: #1f2f3d;
  --muted: #5d6b76;
  --surface: #ffffff;
  --bg: #f7fbff;
  --ring: 0 0 0 3px rgb(255 139 26 / 20%);
  --shadow: 0 14px 30px rgb(8 61 99 / 12%);
  --radius-lg: 20px;
  --radius-md: 14px;
  --container: min(1120px, 92vw);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: "Manrope", "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(1160px 520px at -8% -20%, rgb(11 105 179 / 18%) 0%, rgb(11 105 179 / 0%) 64%),
    radial-gradient(860px 420px at 108% -6%, rgb(14 142 210 / 16%) 0%, rgb(14 142 210 / 0%) 62%),
    radial-gradient(1080px 560px at 12% 118%, rgb(255 139 26 / 17%) 0%, rgb(255 139 26 / 0%) 68%),
    linear-gradient(180deg, #f4faff 0%, #f7fbff 44%, #f6fbff 100%);
  line-height: 1.6;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
}

.container {
  width: var(--container);
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgb(255 255 255 / 94%);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgb(11 105 179 / 10%);
}

.topbar {
  min-height: 84px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding: 14px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  flex-shrink: 0;
}

.brand-logo {
  width: 200px;
  object-fit: contain;
}

.brand-text {
  min-width: 0;
}

.brand-name {
  margin: 0;
  font-family: "Merriweather", Georgia, serif;
  color: var(--primary);
  font-size: clamp(1.3rem, 2.3vw, 1.6rem);
  line-height: 1;
}

.brand-tagline {
  margin: 4px 0 0;
  color: #be9556;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.nav-panel {
  display: flex;
  align-items: center;
  gap: 16px;
  flex: 1;
  justify-content: flex-end;
}

.nav-list {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 2px;
  margin: 0;
  padding: 0;
}

.nav-link {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  border-radius: 999px;
  color: var(--primary-dark);
  font-weight: 700;
  font-size: 0.95rem;
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link:focus-visible {
  background: rgb(11 105 179 / 10%);
  color: var(--primary);
  transform: translateY(-1px);
  outline: none;
}

.nav-link.active {
  background: var(--primary);
  color: #fff;
}

.quick-actions {
  display: flex;
  gap: 10px;
}

.btn {
  border: 0;
  border-radius: 999px;
  padding: 10px 16px;
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:focus-visible {
  outline: none;
  box-shadow: var(--ring);
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-outline {
  color: var(--primary-dark);
  background: #fff;
  border: 1px solid rgb(11 105 179 / 40%);
}

.btn-outline:hover {
  background: rgb(11 105 179 / 6%);
}

.btn-solid {
  color: #fff;
  background: linear-gradient(135deg, var(--primary) 0%, #168fd5 100%);
  box-shadow: 0 10px 20px rgb(11 105 179 / 20%);
}

.btn-solid:hover {
  box-shadow: 0 14px 28px rgb(11 105 179 / 28%);
}

.menu-toggle {
  display: none;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 12px;
  background: rgb(11 105 179 / 10%);
  color: var(--primary-dark);
  cursor: pointer;
}

.menu-icon,
.menu-icon::before,
.menu-icon::after {
  display: block;
  width: 22px;
  height: 2px;
  background: currentColor;
  border-radius: 3px;
  margin: 0 auto;
  position: relative;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.menu-icon::before,
.menu-icon::after {
  content: "";
  position: absolute;
  left: 0;
}

.menu-icon::before {
  top: -7px;
}

.menu-icon::after {
  top: 7px;
}

.menu-open .menu-icon {
  background: transparent;
}

.menu-open .menu-icon::before {
  transform: translateY(7px) rotate(45deg);
}

.menu-open .menu-icon::after {
  transform: translateY(-7px) rotate(-45deg);
}

main {
  min-height: calc(100vh - 180px);
}

.section {
  padding: clamp(48px, 8vw, 82px) 0;
  background: transparent;
}

.gradient-hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.gradient-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(900px 390px at -8% 8%, rgb(11 105 179 / 27%) 0%, rgb(11 105 179 / 0%) 67%),
    radial-gradient(640px 290px at 86% 6%, rgb(255 139 26 / 22%) 0%, rgb(255 139 26 / 0%) 70%),
    radial-gradient(840px 320px at 106% 18%, rgb(14 142 210 / 21%) 0%, rgb(14 142 210 / 0%) 64%),
    radial-gradient(560px 250px at 50% 100%, rgb(11 105 179 / 10%) 0%, rgb(11 105 179 / 0%) 72%),
    linear-gradient(180deg, rgb(11 105 179 / 13%) 0%, rgb(11 105 179 / 6%) 45%, rgb(11 105 179 / 0%) 100%);
  z-index: -2;
}

.gradient-hero::after {
  content: "";
  position: absolute;
  width: 520px;
  height: 520px;
  right: -140px;
  bottom: -220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgb(255 139 26 / 20%) 0%, rgb(255 139 26 / 0%) 70%);
  filter: blur(10px);
  pointer-events: none;
  z-index: -1;
}

.gradient-soft-blue {
  background: linear-gradient(180deg, rgb(11 105 179 / 9%) 0%, rgb(11 105 179 / 0%) 72%);
}

.gradient-soft-orange {
  background: linear-gradient(180deg, rgb(255 139 26 / 11%) 0%, rgb(255 139 26 / 0%) 72%);
}

.section.compact-top {
  padding-top: 0;
}

.hero {
  padding-top: clamp(44px, 7vw, 90px);
}

main.hero > .section:first-child {
  padding-top: 0;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 36px;
  align-items: center;
}

.hero-copy h1 {
  margin: 0;
  font-family: "Merriweather", Georgia, serif;
  font-size: clamp(2rem, 3.8vw, 3.2rem);
  line-height: 1.2;
  color: #073f6b;
}

.hero-copy p {
  margin: 18px 0 0;
  font-size: clamp(1rem, 1.3vw, 1.1rem);
  color: var(--muted);
  max-width: 60ch;
}

.hero-actions {
  margin-top: 26px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-stat {
  margin-top: 22px;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.stat-item {
  background: #fff;
  border: 1px solid rgb(11 105 179 / 10%);
  border-radius: 14px;
  padding: 12px 16px;
  min-width: 120px;
  box-shadow: 0 10px 18px rgb(8 61 99 / 8%);
}

.stat-item strong {
  display: block;
  color: var(--primary-dark);
  font-size: 1.08rem;
}

.stat-item span {
  font-size: 0.82rem;
  color: var(--muted);
}

.hero-card {
  background: #fff;
  border-radius: 24px;
  padding: 28px;
  box-shadow: var(--shadow);
  border: 1px solid rgb(11 105 179 / 10%);
}

.hero-card img {
  width: 100%;
  max-width: 440px;
  margin: 0 auto;
}

.hero-card p {
  margin: 16px 0 0;
  color: var(--muted);
  text-align: center;
}

.section-head {
  text-align: center;
  margin-bottom: 34px;
}

.section-head.tight {
  margin-bottom: 20px;
}

.section-head h2 {
  margin: 0;
  color: #073f6b;
  font-family: "Merriweather", Georgia, serif;
  font-size: clamp(1.6rem, 2.9vw, 2.25rem);
}

.section-head p {
  margin: 10px auto 0;
  max-width: 67ch;
  color: var(--muted);
}

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

.info-card {
  background: var(--surface);
  border: 1px solid rgb(11 105 179 / 10%);
  border-radius: var(--radius-lg);
  padding: 22px;
  box-shadow: 0 9px 16px rgb(8 61 99 / 6%);
}

.info-card h3 {
  margin: 0;
  color: var(--primary-dark);
  font-size: 1.1rem;
}

.info-card p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: #8d6d3c;
  text-transform: uppercase;
}

.badge::before {
  content: "";
  width: 18px;
  height: 3px;
  border-radius: 99px;
  background: var(--accent);
}

.promo-band {
  background: linear-gradient(135deg, #084e87 0%, #0c75c6 100%);
  color: #fff;
  border-radius: 24px;
  box-shadow: var(--shadow);
  padding: clamp(24px, 4vw, 36px);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 20px;
  align-items: center;
}

.promo-band h3 {
  margin: 0;
  font-family: "Merriweather", Georgia, serif;
  font-size: clamp(1.4rem, 2.1vw, 1.8rem);
}

.promo-band p {
  margin: 8px 0 0;
  color: rgb(255 255 255 / 88%);
}

.promo-band .btn {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 12px 20px rgb(0 0 0 / 20%);
  padding-inline: 20px;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.value-card {
  border-radius: var(--radius-md);
  background: #fff;
  border: 1px solid rgb(11 105 179 / 12%);
  padding: 18px 18px 20px;
}

.value-card h4 {
  margin: 0;
  color: var(--primary-dark);
}

.value-card p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 0.94rem;
}

.timeline {
  margin-top: 22px;
  display: grid;
  gap: 12px;
}

.timeline-item {
  background: #fff;
  border: 1px solid rgb(11 105 179 / 10%);
  border-radius: 14px;
  padding: 14px 16px;
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 12px;
  align-items: start;
}

.timeline-item strong {
  font-size: 1.05rem;
  color: var(--primary-dark);
}

.timeline-item span {
  color: var(--muted);
  font-size: 0.95rem;
}

.contact-layout {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 20px;
}

.contact-card,
.contact-form {
  background: #fff;
  border-radius: 18px;
  border: 1px solid rgb(11 105 179 / 10%);
  padding: 22px;
  box-shadow: 0 10px 18px rgb(8 61 99 / 8%);
}

.contact-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.contact-list li {
  padding: 12px;
  border-radius: 12px;
  background: rgb(11 105 179 / 5%);
}

.contact-list strong {
  color: var(--primary-dark);
  display: block;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.field.spaced {
  margin-top: 10px;
}

.field.full {
  grid-column: 1 / -1;
}

label {
  font-size: 0.85rem;
  font-weight: 700;
  color: #2f4960;
}

input,
textarea {
  font: inherit;
  border: 1px solid rgb(11 105 179 / 20%);
  border-radius: 12px;
  padding: 10px 12px;
  background: #fff;
}

input:focus,
textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: var(--ring);
}

textarea {
  min-height: 130px;
  resize: vertical;
}

.form-actions {
  margin-top: 12px;
}

.auth-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.auth-layout.single {
  grid-template-columns: minmax(0, 560px);
  justify-content: center;
}

.auth-card,
.portal-card {
  background: #fff;
  border-radius: 18px;
  border: 1px solid rgb(11 105 179 / 10%);
  padding: 24px;
  box-shadow: 0 10px 18px rgb(8 61 99 / 8%);
}

.auth-card h2,
.portal-card h2 {
  margin: 0;
  color: var(--primary-dark);
  font-family: "Merriweather", Georgia, serif;
  font-size: clamp(1.3rem, 2.4vw, 1.8rem);
}

.auth-card p,
.portal-card p {
  margin: 10px 0 0;
  color: var(--muted);
}

.demo-credentials {
  margin-top: 18px;
  padding: 14px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgb(11 105 179 / 10%) 0%, rgb(255 139 26 / 16%) 100%);
}

.demo-credentials strong {
  display: block;
  color: var(--primary-dark);
  margin-bottom: 6px;
}

.auth-feedback {
  margin-top: 14px;
  border-radius: 12px;
  padding: 10px 12px;
  font-size: 0.9rem;
  font-weight: 700;
  display: none;
}

.auth-feedback.show {
  display: block;
}

.auth-feedback.error {
  background: #fde9e9;
  color: #8d1d1d;
  border: 1px solid #f0b5b5;
}

.auth-feedback.success {
  background: #e6f5ea;
  color: #1b6b36;
  border: 1px solid #addbbb;
}

.programs-grid {
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 12px;
}

.programs-grid li {
  border: 1px solid rgb(11 105 179 / 12%);
  border-radius: 14px;
  padding: 14px;
  background: rgb(11 105 179 / 5%);
}

.programs-grid strong {
  color: var(--primary-dark);
  display: block;
}

.logout-row {
  margin-top: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.site-footer {
  margin-top: 42px;
  border-top: 1px solid rgb(11 105 179 / 12%);
  background: #fff;
}

.footer-wrap {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  font-size: 0.9rem;
  color: var(--muted);
}

.footer-wrap p {
  margin: 0;
}

.reveal {
  opacity: 0;
  transform: translateY(14px);
  animation: showUp 0.55s ease forwards;
}

.reveal.d2 {
  animation-delay: 0.15s;
}

.reveal.d3 {
  animation-delay: 0.3s;
}

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

@media (max-width: 1050px) {
  .topbar {
    gap: 12px;
  }

  .brand-tagline {
    display: none;
  }

  .hero-grid,
  .contact-layout,
  .auth-layout {
    grid-template-columns: 1fr;
  }

  .hero-card {
    max-width: 560px;
  }

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

@media (max-width: 880px) {
  .menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
  }

  .nav-panel {
    position: absolute;
    top: calc(100% + 10px);
    right: 4vw;
    left: 4vw;
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
    background: #fff;
    border: 1px solid rgb(11 105 179 / 14%);
    border-radius: 16px;
    box-shadow: var(--shadow);
    padding: 14px;
    opacity: 0;
    transform: translateY(-8px);
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
  }

  .nav-open .nav-panel {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }

  .nav-list,
  .quick-actions {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
  }

  .nav-link,
  .quick-actions .btn {
    justify-content: center;
    width: 100%;
  }

  .section {
    padding-block: clamp(40px, 8vw, 68px);
  }

  .promo-band {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .brand-logo {
    width: 150px;
  }

  .brand-name {
    font-size: 1.24rem;
  }

  .card-grid,
  .values-grid,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .timeline-item {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .footer-wrap {
    flex-direction: column;
    justify-content: center;
    text-align: center;
    padding: 18px 0;
  }
}
