:root {
  --ps-background: #f5f3ff;
  --ps-surface: #ffffff;
  --ps-surface-soft: #f1e9ff;
  --ps-primary: #7c3aed;
  --ps-primary-strong: #5b21b6;
  --ps-accent: #a855f7;
  --ps-link: #7c3aed;
  --ps-text: #1f1f2d;
  --ps-text-muted: #5f5c72;
  --ps-border: rgba(124, 58, 237, 0.18);
  --ps-border-soft: rgba(124, 58, 237, 0.12);
  --ps-shadow: 0 28px 60px rgba(76, 29, 149, 0.16);
  --ps-shadow-hover: 0 32px 70px rgba(76, 29, 149, 0.22);
  --ps-radius-lg: 32px;
  --ps-radius-md: 24px;
  --ps-radius-sm: 14px;
  --ps-transition: 180ms ease;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  font-size: 16px;
}

body {
  margin: 0;
  min-height: 100vh;
  padding: clamp(1.5rem, 4vw, 3rem);
  font-family: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--ps-text);
  background:
    radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.65), transparent 55%),
    radial-gradient(circle at 80% 10%, rgba(124, 58, 237, 0.18), transparent 58%),
    var(--ps-background);
  display: flex;
  justify-content: center;
}

a {
  color: var(--ps-link);
  text-decoration: none;
  transition: color var(--ps-transition);
}

a:hover,
a:focus-visible {
  color: var(--ps-primary-strong);
}

.js-enabled body:not(.show-focus-outlines) :focus {
  outline: none;
  box-shadow: none;
}

body.show-focus-outlines a:focus,
body.show-focus-outlines button:focus,
body.show-focus-outlines [tabindex]:focus {
  outline: 3px solid rgba(124, 58, 237, 0.45);
  outline-offset: 3px;
}

.hub {
  width: min(1120px, 100%);
  display: flex;
  flex-direction: column;
  gap: clamp(2.5rem, 6vw, 3.75rem);
}

.hub__hero {
  position: relative;
  overflow: hidden;
  padding: clamp(2.75rem, 6vw, 4rem);
  border-radius: var(--ps-radius-lg);
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.95), rgba(168, 85, 247, 0.75));
  color: #ffffff;
  box-shadow: var(--ps-shadow);
}

.hub__hero::after {
  content: "";
  position: absolute;
  inset: 12% -25% -35% 55%;
  background: radial-gradient(circle at center, rgba(255, 255, 255, 0.45), transparent 68%);
  transform: rotate(-18deg);
  opacity: 0.65;
}

.hub__content {
  position: relative;
  max-width: 640px;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  z-index: 1;
}

.hub__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 0.95rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.25);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hub__title {
  margin: 0;
  font-size: clamp(2.4rem, 5vw, 3.4rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.hub__subtitle {
  margin: 0;
  font-size: clamp(1.05rem, 2vw, 1.2rem);
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.82);
}

.hub__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
}

.hub__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.85rem 1.55rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 1rem;
  border: 1px solid transparent;
  transition: transform var(--ps-transition), box-shadow var(--ps-transition), background var(--ps-transition), border-color var(--ps-transition);
}

.hub__btn--primary {
  background: #ffffff;
  color: var(--ps-primary);
  box-shadow: 0 16px 28px rgba(255, 255, 255, 0.25);
}

.hub__btn--primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 22px 36px rgba(255, 255, 255, 0.32);
}

.hub__btn--ghost {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.45);
  color: #ffffff;
}

.hub__btn--ghost:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 255, 255, 0.7);
  background: rgba(255, 255, 255, 0.08);
}

.hub__section {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.hub__section-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  row-gap: 0.75rem;
}

.hub__section-title {
  margin: 0;
  font-size: clamp(1.8rem, 3vw, 2.2rem);
  letter-spacing: -0.01em;
  color: var(--ps-primary);
}

.hub__section-copy {
  margin: 0;
  max-width: 480px;
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ps-text-muted);
}

.hub-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: clamp(1.25rem, 3vw, 1.75rem);
}

.hub-card {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  padding: 2rem;
  border-radius: var(--ps-radius-md);
  background: var(--ps-surface);
  border: 1px solid var(--ps-border-soft);
  box-shadow: var(--ps-shadow);
  transition: transform var(--ps-transition), box-shadow var(--ps-transition), border-color var(--ps-transition);
  position: relative;
  overflow: hidden;
}

.hub-card::after {
  content: "";
  position: absolute;
  inset: auto -30% -45% -30%;
  height: 120%;
  background: linear-gradient(120deg, rgba(124, 58, 237, 0.18), transparent 70%);
  opacity: 0;
  transition: opacity var(--ps-transition);
  pointer-events: none;
}

.hub-card:hover {
  transform: translateY(-8px) scale(1.01);
  box-shadow: var(--ps-shadow-hover);
  border-color: rgba(124, 58, 237, 0.28);
}

.hub-card:hover::after {
  opacity: 1;
}

.hub-card__tag {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: rgba(124, 58, 237, 0.12);
  color: var(--ps-primary-strong);
}

.hub-card__title {
  margin: 0;
  font-size: 1.35rem;
  color: var(--ps-text);
  letter-spacing: -0.01em;
}

.hub-card__body {
  margin: 0;
  line-height: 1.65;
  color: var(--ps-text-muted);
  flex: 1;
}

.hub__footer {
  text-align: center;
  font-size: 0.85rem;
  color: var(--ps-text-muted);
}

@media (max-width: 720px) {
  body {
    padding: 1.5rem;
  }

  .hub__hero {
    padding: clamp(2.25rem, 8vw, 3rem);
  }

  .hub__cta {
    flex-direction: column;
    align-items: stretch;
  }

  .hub__btn {
    width: 100%;
    justify-content: center;
  }
}
