:root {
  --green-950: #062f1b;
  --green-900: #0a3d24;
  --green-700: #17834a;
  --green-600: #229954;
  --green-100: #eaf7ef;
  --blue-950: #16233d;
  --blue-800: #1d4f7a;
  --blue-100: #eaf4fc;
  --burgundy-900: #67263a;
  --burgundy-700: #92435a;
  --burgundy-100: #faedf1;
  --teal-900: #075451;
  --teal-700: #0e7a75;
  --teal-100: #e8f7f5;
  --ink: #102033;
  --muted: #667385;
  --line: #d7e3dd;
  --surface: #ffffff;
  --shadow: 0 22px 65px rgba(13, 46, 31, 0.13);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: #f7faf8;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(247, 250, 248, 0.94) 48%, rgba(238, 248, 242, 0.98)),
    radial-gradient(circle at 16% 14%, rgba(34, 153, 84, 0.16), transparent 28%),
    radial-gradient(circle at 85% 76%, rgba(29, 79, 122, 0.15), transparent 30%);
}

a {
  color: inherit;
}

.page-shell {
  display: flex;
  min-height: 100vh;
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 34px 0 28px;
  flex-direction: column;
}

.site-header,
.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  text-decoration: none;
}

.brand-logo {
  display: block;
  width: min(76px, 20vw);
  height: min(76px, 20vw);
  object-fit: contain;
}

.brand-copy {
  display: grid;
  min-width: min(300px, 48vw);
  color: var(--green-950);
}

.brand-copy strong {
  padding-bottom: 5px;
  border-bottom: 2px solid var(--green-900);
  font-size: clamp(1.35rem, 2.4vw, 2rem);
  font-weight: 720;
  line-height: 1.1;
}

.brand-copy span {
  padding-top: 6px;
  color: var(--muted);
  font-size: clamp(0.6rem, 1vw, 0.76rem);
  font-weight: 750;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.institutional-message {
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.institutional-message {
  display: grid;
  position: relative;
  padding-bottom: 10px;
  text-align: right;
}

.institutional-message::after {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 44px;
  height: 3px;
  border-radius: 999px;
  background: var(--green-600);
  content: "";
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.intro {
  margin: auto auto 32px;
  padding-top: 58px;
  text-align: center;
}

.intro p {
  margin: 0 0 12px;
  color: var(--blue-950);
  font-size: clamp(1.28rem, 2.2vw, 1.72rem);
  font-weight: 800;
}

.intro h1 {
  margin: 0;
  color: var(--green-950);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.5rem, 6vw, 5rem);
  line-height: 0.96;
  text-wrap: balance;
}

.intro span {
  display: inline-block;
  margin-top: 12px;
  color: var(--muted);
  font-size: clamp(1.2rem, 2.6vw, 2rem);
  font-weight: 650;
}

.apps-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
  margin: 0 auto auto;
  width: min(900px, 100%);
}

.app-card {
  display: grid;
  min-height: 330px;
  padding: 34px;
  align-content: space-between;
  justify-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: var(--shadow);
  text-align: center;
  text-decoration: none;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.app-card:hover,
.app-card:focus-visible {
  transform: translateY(-5px);
  box-shadow: 0 28px 78px rgba(13, 46, 31, 0.18);
}

.app-card:focus-visible {
  outline: 4px solid rgba(34, 153, 84, 0.28);
  outline-offset: 5px;
}

.app-card--green {
  border-color: rgba(34, 153, 84, 0.23);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), var(--green-100));
}

.app-card--blue {
  border-color: rgba(29, 79, 122, 0.2);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.94), var(--blue-100));
}

.app-card--burgundy {
  border-color: rgba(146, 67, 90, 0.22);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.94), var(--burgundy-100));
}

.app-card--teal {
  border-color: rgba(14, 122, 117, 0.22);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.94), var(--teal-100));
}

.app-icon {
  display: grid;
  width: 108px;
  height: 108px;
  place-items: center;
}

.app-icon svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 4.5;
}

.app-card--green .app-icon {
  color: var(--green-700);
}

.app-card--green .app-icon svg path:first-child,
.app-card--blue .app-icon svg path:first-child {
  fill: currentColor;
  stroke: none;
  opacity: 0.82;
}

.app-card--blue .app-icon {
  color: var(--blue-800);
}

.app-card--burgundy .app-icon {
  color: var(--burgundy-700);
}

.app-card--teal .app-icon {
  color: var(--teal-700);
}

.app-copy {
  display: grid;
  gap: 4px;
}

.app-copy strong {
  color: var(--green-950);
  font-size: clamp(2rem, 3.4vw, 2.8rem);
  line-height: 1;
}

.app-card--blue .app-copy strong {
  color: var(--blue-950);
}

.app-card--burgundy .app-copy strong {
  color: var(--burgundy-900);
}

.app-card--teal .app-copy strong {
  color: var(--teal-900);
}

.app-copy span {
  color: #47566a;
  font-size: 1.1rem;
  font-weight: 560;
}

.app-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  min-height: 58px;
  border-radius: 8px;
  color: #fff;
  background: var(--green-900);
  font-size: 1.12rem;
  font-weight: 800;
}

.app-card--blue .app-action {
  background: var(--blue-950);
}

.app-card--burgundy .app-action {
  background: var(--burgundy-900);
}

.app-card--teal .app-action {
  background: var(--teal-900);
}

.app-action svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.4;
  transition: transform 180ms ease;
}

.app-card:hover .app-action svg,
.app-card:focus-visible .app-action svg {
  transform: translateX(4px);
}

.site-footer {
  margin-top: 48px;
  padding: 28px 0;
  color: #ffffff;
  background: var(--green-900);
  box-shadow: 0 0 0 100vmax var(--green-900);
  clip-path: inset(0 -100vmax);
  font-size: 0.96rem;
}

.footer-identity {
  display: grid;
  gap: 1px;
}

.footer-identity strong {
  font-size: 1rem;
}

.site-footer a {
  padding-left: 32px;
  border-left: 1px solid rgba(255, 255, 255, 0.6);
  color: inherit;
  text-decoration: none;
}

.site-footer a:hover,
.site-footer a:focus-visible {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.site-footer a:focus-visible {
  outline: 3px solid rgba(255, 255, 255, 0.55);
  outline-offset: 6px;
}

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

  .site-header {
    align-items: flex-start;
  }

  .institutional-message {
    max-width: 160px;
    font-size: 0.72rem;
  }

  .brand-logo {
    width: min(72px, 22vw);
    height: min(72px, 22vw);
  }

  .brand {
    gap: 12px;
  }

  .brand-copy {
    min-width: min(250px, 46vw);
  }

  .intro {
    margin-bottom: 24px;
    padding-top: 42px;
  }

  .apps-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .app-card {
    min-height: 260px;
    padding: 26px;
  }

  .app-icon {
    width: 82px;
    height: 82px;
  }

  .site-footer {
    align-items: flex-start;
  }
}

@media (max-width: 520px) {
  .site-header {
    display: grid;
    gap: 18px;
  }

  .brand-copy {
    min-width: 0;
    width: min(250px, calc(100vw - 124px));
  }

  .brand-copy strong {
    font-size: clamp(1.15rem, 6vw, 1.55rem);
  }

  .brand-copy span {
    font-size: clamp(0.5rem, 2.35vw, 0.66rem);
  }

  .institutional-message {
    max-width: none;
    text-align: left;
  }

  .institutional-message::after {
    right: auto;
    left: 0;
  }

  .intro h1 {
    font-size: clamp(2.25rem, 10vw, 2.72rem);
    line-height: 1.04;
  }

  .app-action {
    min-height: 54px;
  }

  .site-footer {
    display: grid;
    gap: 18px;
    margin-top: 36px;
    padding: 24px 0;
  }

  .site-footer a {
    padding: 14px 0 0;
    border-top: 1px solid rgba(255, 255, 255, 0.5);
    border-left: 0;
    overflow-wrap: anywhere;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
