/* Global styles for the site. */
:root {
  --bg: #070812;
  --text: rgba(255, 255, 255, 0.93);
  --muted: rgba(255, 255, 255, 0.72);

  /* Only purple + pink accents */
  --purple: #7c3aed;
  --pink: #ec4899;

  --surface: rgba(255, 255, 255, 0.06);
  --surface2: rgba(255, 255, 255, 0.095);
  --border: rgba(255, 255, 255, 0.14);

  --glow-purple: rgba(124, 58, 237, 0.42);
  --glow-pink: rgba(236, 72, 153, 0.35);
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  display: flex;
  flex-direction: column;
  font-family:
    "Ubuntu",
    system-ui,
    -apple-system,
    Segoe UI,
    Roboto,
    Helvetica,
    Arial,
    "Apple Color Emoji",
    "Segoe UI Emoji";
  color: var(--text);
  overflow-x: hidden;
  background:
    radial-gradient(1100px circle at 18% 10%, var(--glow-purple) 0%, transparent 50%),
    radial-gradient(900px circle at 84% 18%, var(--glow-pink) 0%, transparent 52%),
    linear-gradient(180deg, #05030b 0%, var(--bg) 46%, #04020a 100%);
}

.page {
  max-width: 1280px;
  margin: 0 auto;
  padding: 56px 18px 48px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.header {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 72px;
  align-items: center;
  text-align: center;
}

.title {
  margin: 0;
  font-family: "Fredoka", "Ubuntu", system-ui, -apple-system, Segoe UI, Roboto,
    Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  font-size: clamp(3.0rem, 5.4vw, 4.4rem);
  letter-spacing: -0.04em;
  line-height: 1.05;
  font-weight: 900;
  position: relative;
  padding-bottom: 10px;

  /* Purple -> Pink title gradient */
  background: linear-gradient(90deg, var(--purple), var(--pink));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.title::after {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: 0;
  height: 3px;
  width: min(280px, 88%);
  border-radius: 999px;
  background: linear-gradient(90deg, var(--purple), var(--pink));
  opacity: 0.85;
  filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.35));
}

.subtitle {
  margin: 0;
  color: var(--muted);
  font-size: 1.06rem;
  font-weight: 700;
  max-width: 52ch;
  padding-bottom: 14px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(1, minmax(0, 1fr));
  grid-auto-rows: 1fr;
  gap: 22px;
  justify-content: center;
  justify-items: center;
  max-width: 1320px;
  margin: 0 auto;
}

@media (min-width: 640px) {
  .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 980px) {
  .grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.card {
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 22px 24px 18px;
  border-radius: 22px;
  background: var(--surface);
  border: 1px solid var(--border);
  width: min(100%, 500px);
  height: 100%;
  min-height: 300px;
  box-shadow:
    0 18px 44px rgba(0, 0, 0, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    background 160ms ease,
    box-shadow 160ms ease;
  position: relative;
  overflow: hidden;
}

.card > * {
  position: relative;
  z-index: 1;
}

.card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(124, 58, 237, 0.26),
    rgba(236, 72, 153, 0.18)
  );
  opacity: 0;
  transition: opacity 160ms ease;
}

.card::after {
  content: "";
  position: absolute;
  inset: -60px;
  background:
    radial-gradient(circle at 20% 20%, rgba(124, 58, 237, 0.42), transparent 46%),
    radial-gradient(circle at 80% 30%, rgba(236, 72, 153, 0.32), transparent 52%);
  opacity: 0;
  transition: opacity 220ms ease;
  filter: blur(18px);
  pointer-events: none;
}

.card:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 255, 255, 0.22);
  background: var(--surface2);
  box-shadow:
    0 22px 60px rgba(0, 0, 0, 0.3),
    0 0 0 1px rgba(236, 72, 153, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.card:hover::before,
.card:hover::after {
  opacity: 1;
}

.card:focus-visible {
  outline: 3px solid rgba(236, 72, 153, 0.38);
  outline-offset: 3px;
}

.card--disabled {
  cursor: not-allowed;
  opacity: 0.92;
}

.card--disabled:hover {
  transform: none;
  border-color: var(--border);
  background: var(--surface);
}

.card--disabled:hover::before,
.card--disabled:hover::after {
  opacity: 0;
}

.icon {
  display: grid;
  place-items: center;
}

.icon svg {
  width: clamp(120px, 11vw, 182px);
  height: auto;
  display: block;
}

.card-body {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.card-title {
  margin: 0;
  font-size: clamp(1.35rem, 2.0vw, 1.65rem);
  letter-spacing: -0.01em;
}

.card-subtitle {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.35;
  letter-spacing: -0.005em;
  max-width: 46ch;
  font-style: italic;
  padding-top: 6px;
  padding-bottom: 10px;
}

.chip {
  font-size: 0.92rem;
  padding: 9px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: rgba(255, 255, 255, 0.94);
  background:
    linear-gradient(90deg, rgba(124, 58, 237, 0.14), rgba(236, 72, 153, 0.12));
  white-space: nowrap;
  backdrop-filter: blur(10px);
}

.chip--ghost {
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(255, 255, 255, 0.14);
  color: var(--muted);
}

@media (max-width: 560px) {
  .page {
    padding: 28px 14px 30px;
  }

  .header {
    gap: 10px;
    margin-bottom: 34px;
  }

  .title {
    font-size: clamp(2.05rem, 9vw, 2.8rem);
    line-height: 1.08;
  }

  .subtitle {
    font-size: 0.96rem;
    max-width: 32ch;
    padding-bottom: 8px;
  }

  .grid {
    gap: 14px;
  }

  .card {
    min-height: 0;
    padding: 16px 16px 14px;
    gap: 10px;
    border-radius: 18px;
  }

  .icon svg {
    width: min(44vw, 144px);
  }

  .card-body {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .card-title {
    font-size: 1.2rem;
  }

  .card-subtitle {
    font-size: 0.9rem;
    max-width: 100%;
    padding-top: 2px;
    padding-bottom: 4px;
  }

  .chip {
    font-size: 0.84rem;
    padding: 7px 10px;
    white-space: normal;
  }

  .footnote {
    margin-top: 26px;
    font-size: 1rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .card,
  .card::before,
  .card::after {
    transition: none !important;
  }

  .card:hover {
    transform: none;
  }
}

.footnote {
  margin-top: auto;
  margin-bottom: 0;
  text-align: center;
  width: 100%;
  font-size: 1.1rem;
  color: var(--muted);
  letter-spacing: 0.01em;
  padding-bottom: 0;
  font-family: "Dancing Script", cursive;
  font-weight: 600;
}

.footnote a,
.footnote a:visited {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, 0.45);
  text-underline-offset: 0.18em;
}

.footnote a:hover,
.footnote a:focus-visible {
  color: rgba(255, 255, 255, 0.88);
  text-decoration-color: rgba(255, 255, 255, 0.65);
}

