:root {
  --blue: #0b318d;
  --blue-soft: #315bb5;
  --red: #e3191d;
  --red-soft: #ff5555;
  --ink: #0f1d35;
  --muted: #5d6678;
  --glass: rgba(255, 255, 255, 0.80);
  --glass-strong: rgba(255, 255, 255, 0.94);
  --line: rgba(11, 49, 141, 0.15);
  --shadow: 0 24px 70px rgba(12, 37, 84, 0.18);
  --radius: 28px;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 18% 18%, rgba(227, 25, 29, 0.10), transparent 26rem),
    radial-gradient(circle at 82% 16%, rgba(11, 49, 141, 0.12), transparent 28rem),
    linear-gradient(180deg, #ffffff 0%, #f7f9ff 52%, #ffffff 100%);
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(11, 49, 141, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(11, 49, 141, 0.045) 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,0.70), transparent 76%);
}

.site-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.glow {
  position: absolute;
  width: 34rem;
  height: 34rem;
  border-radius: 999px;
  filter: blur(24px);
  opacity: 0.22;
}

.glow-red {
  left: -12rem;
  bottom: 4rem;
  background: var(--red-soft);
}

.glow-blue {
  right: -14rem;
  top: 7rem;
  background: var(--blue-soft);
}

.wave {
  position: absolute;
  left: -6vw;
  width: 112vw;
  height: 16rem;
  bottom: -8rem;
  border-radius: 50% 50% 0 0;
  opacity: 0.92;
  transform: rotate(-2deg);
}

.wave-red {
  bottom: -6.2rem;
  background: linear-gradient(90deg, rgba(227,25,29,0.92), rgba(255,89,89,0.80));
}

.wave-blue {
  bottom: -8rem;
  transform: rotate(3deg);
  background: linear-gradient(90deg, rgba(11,49,141,0.95), rgba(48,84,168,0.78));
}

.page-shell {
  width: min(1200px, calc(100% - 32px));
  min-height: calc(100vh - 72px);
  margin: 0 auto;
  display: grid;
  place-items: center;
  padding: 34px 0 22px;
}

.hero {
  width: 100%;
  text-align: center;
}

.eyebrow {
  width: fit-content;
  margin: 0 auto 10px;
  padding: 8px 14px;
  border: 1px solid rgba(11, 49, 141, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.74);
  color: var(--blue);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  box-shadow: 0 10px 30px rgba(11, 49, 141, 0.07);
}

h1 {
  margin: 0;
  color: var(--blue);
  font-size: clamp(2rem, 5vw, 4.8rem);
  line-height: 0.96;
  letter-spacing: -0.055em;
}

.intro {
  margin: 12px auto 18px;
  max-width: 720px;
  color: var(--muted);
  font-size: clamp(1rem, 1.8vw, 1.2rem);
  line-height: 1.55;
}

.orbit {
  position: relative;
  width: min(100%, 1020px);
  height: clamp(650px, 74vh, 780px);
  margin: 0 auto;
  border: 1px solid rgba(255,255,255,0.68);
  border-radius: 42px;
  background:
    linear-gradient(135deg, rgba(255,255,255,0.86), rgba(255,255,255,0.58)),
    radial-gradient(circle at 50% 50%, rgba(255,255,255,0.92), rgba(244,247,255,0.65));
  box-shadow: var(--shadow);
  overflow: hidden;
  backdrop-filter: blur(16px);
}

.orbit::before {
  content: "";
  position: absolute;
  inset: 20px;
  border-radius: 32px;
  border: 1px solid rgba(11, 49, 141, 0.08);
  pointer-events: none;
}

.orbit::after {
  content: "";
  position: absolute;
  width: 34rem;
  height: 34rem;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  border-radius: 999px;
  background: radial-gradient(circle, rgba(255,255,255,0.62), rgba(255,255,255,0.15) 44%, transparent 66%);
  pointer-events: none;
}

.orbit-line {
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(72%, 680px);
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  border: 1px dashed rgba(11, 49, 141, 0.18);
  border-radius: 999px;
  opacity: 0.8;
}

.center-logo {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 2;
  width: clamp(220px, 32vw, 360px);
  min-height: clamp(220px, 32vw, 360px);
  transform: translate(-50%, -50%);
  display: grid;
  place-items: center;
  gap: 8px;
  padding: 24px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255,255,255,0.96), rgba(255,255,255,0.74));
  border: 1px solid rgba(255,255,255,0.86);
  box-shadow:
    0 26px 80px rgba(11, 49, 141, 0.16),
    inset 0 0 0 10px rgba(255,255,255,0.50);
}

.center-logo img {
  width: 92%;
  max-height: 280px;
  object-fit: contain;
  filter: drop-shadow(0 12px 18px rgba(11, 49, 141, 0.12));
}

.center-logo span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(11, 49, 141, 0.08);
  color: var(--blue);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.program-card {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 3;
  width: 148px;
  min-height: 138px;
  display: grid;
  justify-items: center;
  gap: 10px;
  padding: 12px 10px 14px;
  color: var(--ink);
  text-decoration: none;
  border-radius: 26px;
  outline: none;
  transform: translate(-50%, -50%);
  transition: transform 220ms ease, filter 220ms ease;
  will-change: transform;
}

.program-card::before {
  content: "";
  position: absolute;
  inset: 14px 10px 8px;
  z-index: -1;
  border-radius: 28px;
  background: rgba(255,255,255,0.50);
  border: 1px solid rgba(255,255,255,0.62);
  box-shadow: 0 12px 30px rgba(15, 29, 53, 0.08);
  opacity: 0;
  transform: scale(0.82);
  transition: opacity 220ms ease, transform 220ms ease;
}

.program-card:hover,
.program-card:focus-visible {
  filter: saturate(1.08);
}

.program-card:hover::before,
.program-card:focus-visible::before {
  opacity: 1;
  transform: scale(1);
}

.program-card:focus-visible {
  outline: 3px solid rgba(227, 25, 29, 0.28);
  outline-offset: 4px;
}

.icon-bubble {
  position: relative;
  width: 82px;
  height: 82px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.98), rgba(247,249,255,0.84)),
    radial-gradient(circle at 30% 20%, rgba(255,255,255,1), transparent 42%);
  border: 1px solid rgba(255,255,255,0.95);
  box-shadow:
    0 18px 35px rgba(11, 49, 141, 0.14),
    inset 0 0 0 1px rgba(11, 49, 141, 0.06);
  transition: transform 220ms ease, box-shadow 220ms ease;
  overflow: hidden;
}

.icon-bubble::before {
  content: "";
  position: absolute;
  inset: -12px;
  border-radius: inherit;
  background: conic-gradient(from 130deg, rgba(227,25,29,0.22), rgba(11,49,141,0.22), rgba(255,255,255,0.12), rgba(227,25,29,0.22));
  opacity: 0;
  transition: opacity 220ms ease;
}

.icon-bubble::after {
  content: "";
  position: absolute;
  width: 24px;
  height: 10px;
  left: 16px;
  top: 15px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.75);
  transform: rotate(-22deg);
}

.program-card:hover .icon-bubble,
.program-card:focus-visible .icon-bubble {
  transform: scale(1.18) translateY(-4px);
  box-shadow:
    0 26px 46px rgba(11, 49, 141, 0.22),
    0 0 0 10px rgba(227, 25, 29, 0.06);
}

.program-card:hover .icon-bubble::before,
.program-card:focus-visible .icon-bubble::before {
  opacity: 1;
}

.icon-bubble img {
  position: relative;
  z-index: 1;
  width: 48px;
  height: 48px;
  object-fit: contain;
  border-radius: 12px;
}

.icon-bubble.fallback {
  color: #fff;
  font-weight: 900;
  letter-spacing: -0.06em;
  font-size: 1.25rem;
  background: linear-gradient(135deg, var(--blue), var(--red));
}

.icon-bubble.fallback img {
  display: none;
}

.program-name {
  display: block;
  width: 100%;
  color: #192846;
  font-size: 0.88rem;
  font-weight: 800;
  line-height: 1.15;
  text-align: center;
  text-wrap: balance;
  text-shadow: 0 1px 0 rgba(255,255,255,0.78);
}

.helper-text {
  width: fit-content;
  margin: 18px auto 0;
  padding: 12px 18px;
  color: var(--muted);
  background: rgba(255,255,255,0.70);
  border: 1px solid rgba(11,49,141,0.10);
  border-radius: 999px;
  box-shadow: 0 14px 32px rgba(11,49,141,0.08);
  font-size: 0.95rem;
}

.footer {
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
  padding: 0 0 22px;
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  color: rgba(15, 29, 53, 0.62);
  font-size: 0.86rem;
}

.footer span + span::before {
  content: "•";
  margin-right: 12px;
  color: rgba(227, 25, 29, 0.7);
}

@media (max-width: 900px) {
  .page-shell {
    width: min(100% - 22px, 780px);
    padding-top: 22px;
  }

  .orbit {
    height: auto;
    min-height: 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    align-items: stretch;
    padding: 20px;
    border-radius: 34px;
  }

  .orbit::before,
  .orbit::after,
  .orbit-line {
    display: none;
  }

  .center-logo {
    position: relative;
    left: auto;
    top: auto;
    transform: none;
    grid-column: 1 / -1;
    width: min(100%, 330px);
    min-height: 260px;
    justify-self: center;
    margin: 0 auto 8px;
    border-radius: 34px;
  }

  .program-card {
    position: relative;
    left: auto;
    top: auto;
    width: 100%;
    min-height: 132px;
    transform: none !important;
    border-radius: 24px;
    background: rgba(255,255,255,0.55);
    border: 1px solid rgba(255,255,255,0.68);
  }

  .program-card:hover,
  .program-card:focus-visible {
    transform: translateY(-4px) !important;
  }

  .program-card::before {
    opacity: 1;
    transform: scale(1);
    inset: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
  }
}

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

  h1 {
    font-size: clamp(2rem, 13vw, 3.1rem);
  }

  .intro {
    margin-bottom: 14px;
  }

  .orbit {
    grid-template-columns: 1fr;
    padding: 14px;
    gap: 12px;
  }

  .center-logo {
    width: 100%;
    min-height: 230px;
    padding: 18px;
  }

  .center-logo img {
    width: min(94%, 275px);
  }

  .program-card {
    grid-template-columns: 64px 1fr;
    align-items: center;
    justify-items: start;
    min-height: 88px;
    padding: 12px 14px;
    text-align: left;
  }

  .icon-bubble {
    width: 64px;
    height: 64px;
  }

  .icon-bubble img {
    width: 38px;
    height: 38px;
  }

  .program-name {
    text-align: left;
    font-size: 1rem;
  }

  .helper-text {
    border-radius: 22px;
    line-height: 1.45;
  }

  .footer {
    display: grid;
    text-align: center;
    gap: 4px;
  }

  .footer span + span::before {
    content: "";
    margin: 0;
  }
}

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