:root {
  color-scheme: light;
  --navy: #0e1a2b;
  --deep: #17123e;
  --purple: #5135e8;
  --purple-dark: #3621ad;
  --purple-soft: #eeeaff;
  --lavender: #8f7cff;
  --ink: #18182b;
  --muted: #6d6d7d;
  --canvas: #f7f6fc;
  --surface: #ffffff;
  --line: #e5e2f0;
  --shadow: 0 18px 45px rgba(36, 28, 77, 0.09);
}

* { box-sizing: border-box; }

html {
  background: var(--canvas);
  scroll-behavior: smooth;
}

body {
  background: radial-gradient(circle at 8% 36%, rgba(81, 53, 232, 0.055), transparent 23rem), var(--canvas);
  color: var(--ink);
  font-family: "Montserrat", ui-sans-serif, system-ui, sans-serif;
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
}

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

.site-header {
  align-items: center;
  display: flex;
  justify-content: space-between;
  margin: 0 auto;
  max-width: 1120px;
  padding: 20px 24px;
}

.brand {
  align-items: center;
  display: inline-flex;
  gap: 11px;
}

.brand img {
  background: #070914;
  border-radius: 14px;
  height: 48px;
  object-fit: cover;
  width: 48px;
}

.brand span, .brand strong, .brand small { display: block; }

.brand strong {
  font-size: 0.94rem;
  letter-spacing: 0.03em;
}

.brand small {
  color: var(--muted);
  font-size: 0.66rem;
  margin-top: 2px;
}

.site-link {
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 12px;
  display: inline-flex;
  font-size: 0.74rem;
  font-weight: 800;
  gap: 8px;
  padding: 11px 14px;
  transition: border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.site-link:hover {
  border-color: rgba(81, 53, 232, 0.35);
  color: var(--purple);
  transform: translateY(-1px);
}

main {
  margin: 0 auto;
  max-width: 1120px;
  padding: 0 24px;
  width: 100%;
}

.hero {
  background: linear-gradient(138deg, #10152f 0%, #231755 57%, #5235c6 100%);
  border-radius: 36px;
  box-shadow: 0 28px 70px rgba(28, 20, 72, 0.2);
  color: #fff;
  min-height: 420px;
  overflow: hidden;
  padding: clamp(38px, 7vw, 72px);
  position: relative;
}

.hero::before, .hero::after {
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 50%;
  content: "";
  pointer-events: none;
  position: absolute;
}

.hero::before {
  height: 370px;
  right: -170px;
  top: -210px;
  width: 370px;
}

.hero::after {
  bottom: -230px;
  height: 390px;
  left: -190px;
  width: 390px;
}

.hero-glow {
  background: rgba(143, 124, 255, 0.14);
  border-radius: 50%;
  filter: blur(4px);
  height: 260px;
  position: absolute;
  right: 4%;
  top: 21%;
  width: 260px;
}

.hero-mark {
  align-items: center;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 34px;
  display: flex;
  height: 200px;
  justify-content: center;
  position: absolute;
  right: clamp(38px, 8vw, 95px);
  top: 82px;
  transform: rotate(4deg);
  width: 200px;
}

.hero-mark img {
  border-radius: 24px;
  height: 132px;
  object-fit: cover;
  transform: rotate(-4deg);
  width: 132px;
}

.hero-copy {
  max-width: 650px;
  min-width: 0;
  position: relative;
  z-index: 1;
}

.eyebrow, .section-kicker {
  font-size: 0.69rem;
  font-weight: 850;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.eyebrow {
  background: rgba(255, 255, 255, 0.11);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 999px;
  display: inline-flex;
  padding: 8px 12px;
}

h1 {
  font-size: clamp(2.8rem, 7.5vw, 5.6rem);
  letter-spacing: -0.07em;
  line-height: 0.94;
  margin: 22px 0 20px;
}

.hero-copy p {
  color: rgba(255, 255, 255, 0.72);
  font-size: clamp(0.94rem, 1.6vw, 1.1rem);
  line-height: 1.75;
  margin: 0;
  max-width: 580px;
}

.hero-meta {
  align-items: center;
  bottom: clamp(30px, 5vw, 50px);
  color: rgba(255, 255, 255, 0.68);
  display: flex;
  font-size: 0.69rem;
  font-weight: 650;
  gap: 18px;
  position: absolute;
  right: clamp(38px, 7vw, 72px);
}

.hero-meta span:first-child {
  align-items: center;
  display: inline-flex;
  gap: 7px;
}

.hero-meta i {
  background: #53dca2;
  border-radius: 50%;
  box-shadow: 0 0 0 5px rgba(83, 220, 162, 0.11);
  height: 7px;
  width: 7px;
}

.content-shell { padding: clamp(54px, 8vw, 88px) 0; }

.section-heading {
  align-items: end;
  display: flex;
  gap: 30px;
  justify-content: space-between;
  margin-bottom: 22px;
}

.section-kicker {
  color: var(--purple);
  display: block;
  margin-bottom: 8px;
}

.section-heading h2, .hub-section h2, .fallback h2 {
  color: var(--ink);
  font-size: clamp(1.55rem, 3vw, 2.1rem);
  letter-spacing: -0.045em;
  line-height: 1.1;
  margin: 0;
}

.section-note {
  color: var(--muted);
  font-size: 0.72rem;
}

.featured-grid, .section-grid {
  display: grid;
  gap: 14px;
}

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

.hub-card {
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: 0 9px 25px rgba(36, 28, 77, 0.045);
  display: grid;
  gap: 14px;
  grid-template-columns: 48px minmax(0, 1fr) 32px;
  min-width: 0;
  padding: 15px;
  position: relative;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.hub-card:hover {
  border-color: rgba(81, 53, 232, 0.3);
  box-shadow: var(--shadow);
  transform: translateY(-3px);
}

.hub-card:focus-visible, .site-link:focus-visible {
  outline: 3px solid rgba(81, 53, 232, 0.26);
  outline-offset: 3px;
}

.hub-card.featured {
  align-content: start;
  background: linear-gradient(145deg, #211556, #5336d0);
  border-color: transparent;
  box-shadow: 0 18px 36px rgba(50, 31, 151, 0.17);
  color: #fff;
  grid-template-columns: 1fr auto;
  min-height: 205px;
  padding: 22px;
}

.hub-card.featured .icon { grid-column: 1; }

.hub-card.featured .card-copy {
  align-self: end;
  grid-column: 1 / -1;
}

.hub-card.featured .arrow {
  align-self: start;
  grid-column: 2;
  grid-row: 1;
}

.hub-card.skeleton {
  animation: pulse 1.4s ease-in-out infinite;
  opacity: 0.78;
}

.icon {
  align-items: center;
  background: var(--purple-soft);
  border-radius: 15px;
  color: var(--purple);
  display: flex;
  font-size: 0.76rem;
  font-style: normal;
  font-weight: 850;
  height: 48px;
  justify-content: center;
  letter-spacing: -0.02em;
  overflow: hidden;
  text-align: center;
  width: 48px;
}

.featured .icon {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.card-copy, .card-copy strong, .card-copy span {
  display: block;
  min-width: 0;
}

.card-copy strong {
  font-size: 0.88rem;
  line-height: 1.3;
}

.card-copy span {
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.5;
  margin-top: 4px;
}

.featured .card-copy strong { font-size: 1.05rem; }
.featured .card-copy span { color: rgba(255, 255, 255, 0.69); }

.arrow {
  align-items: center;
  background: #f3f1fa;
  border-radius: 11px;
  color: var(--purple);
  display: flex;
  font-size: 0.95rem;
  height: 32px;
  justify-content: center;
  transition: transform 0.2s ease;
  width: 32px;
}

.featured .arrow {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.hub-card:hover .arrow { transform: translateX(2px); }

.hub-sections {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 46px;
}

.hub-section {
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(229, 226, 240, 0.9);
  border-radius: 26px;
  padding: 24px;
}

.hub-section__heading {
  align-items: center;
  display: flex;
  justify-content: space-between;
  margin-bottom: 15px;
}

.hub-section h2 {
  font-size: 1.05rem;
  letter-spacing: -0.025em;
}

.hub-section__count {
  background: var(--purple-soft);
  border-radius: 999px;
  color: var(--purple-dark);
  font-size: 0.61rem;
  font-weight: 800;
  padding: 6px 9px;
}

.fallback {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 28px;
  box-shadow: var(--shadow);
  margin: 40px auto 0;
  max-width: 620px;
  padding: 30px;
  text-align: center;
}

.fallback p {
  color: var(--muted);
  font-size: 0.85rem;
  line-height: 1.6;
  margin: 12px 0 20px;
}

.fallback .hub-card { text-align: left; }

.footer {
  align-items: center;
  border-top: 1px solid var(--line);
  color: var(--muted);
  display: flex;
  font-size: 0.68rem;
  justify-content: space-between;
  margin: 0 auto;
  max-width: 1120px;
  padding: 28px 24px 38px;
}

.footer div {
  align-items: center;
  display: flex;
  gap: 8px;
}

.footer-crown {
  color: var(--purple);
  font-size: 1.1rem;
}

.footer a {
  color: var(--purple);
  font-weight: 800;
}

@keyframes pulse { 50% { opacity: 0.48; } }

@media (max-width: 860px) {
  .hero-mark {
    opacity: 0.22;
    right: 24px;
    top: 30px;
  }

  .hero-copy { max-width: 620px; }

  .hero-meta {
    bottom: 30px;
    left: clamp(38px, 7vw, 72px);
    right: auto;
  }

  .featured-grid { grid-template-columns: 1fr; }

  .hub-card.featured {
    grid-template-columns: 52px minmax(0, 1fr) 32px;
    min-height: 0;
  }

  .hub-card.featured .icon, .hub-card.featured .card-copy, .hub-card.featured .arrow {
    align-self: center;
    grid-column: auto;
    grid-row: auto;
  }

  .hub-sections { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .site-header { padding: 14px 16px; }

  .brand img {
    border-radius: 12px;
    height: 42px;
    width: 42px;
  }

  .site-link {
    font-size: 0;
    height: 42px;
    justify-content: center;
    padding: 0;
    width: 42px;
  }

  .site-link span { font-size: 1rem; }
  main { padding: 0 12px; }

  .hero {
    border-radius: 25px;
    min-height: 470px;
    padding: 36px 24px 96px;
  }

  .hero-mark {
    height: 150px;
    right: -20px;
    top: 18px;
    width: 150px;
  }

  .hero-mark img {
    height: 96px;
    width: 96px;
  }

  h1 {
    font-size: clamp(2.65rem, 12.5vw, 3.55rem);
    margin-top: 64px;
  }

  .hero-meta {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
    left: 24px;
  }

  .content-shell { padding: 48px 4px 62px; }

  .section-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 7px;
  }

  .section-note { display: none; }

  .hub-card.featured {
    grid-template-columns: 46px minmax(0, 1fr) 30px;
    padding: 16px;
  }

  .hub-card.featured .icon, .icon {
    border-radius: 14px;
    height: 46px;
    width: 46px;
  }

  .hub-sections {
    gap: 14px;
    margin-top: 34px;
  }

  .hub-section {
    border-radius: 22px;
    padding: 17px;
  }

  .footer {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
    margin: 0 16px;
    padding-left: 0;
    padding-right: 0;
  }

  .footer div {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .footer div > span:last-child {
    flex-basis: 100%;
    line-height: 1.5;
    padding-left: 25px;
  }
}

@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;
  }
}
