:root {
  color-scheme: light;
  --ink: #16212b;
  --muted: #63707c;
  --paper: #f7f3ff;
  --surface: rgba(255, 255, 255, 0.78);
  --line: rgba(91, 80, 128, 0.16);
  --violet: #7c4dff;
  --blue: #5d6df6;
  --teal: #16a3a0;
  --coral: #ff6c8c;
  --shadow: 0 18px 42px rgba(54, 48, 92, 0.12);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    linear-gradient(90deg, rgba(124, 77, 255, 0.08) 0 1px, transparent 1px 100%),
    linear-gradient(rgba(22, 163, 160, 0.07) 0 1px, transparent 1px 100%),
    linear-gradient(115deg, #f7f3ff 0%, #eef8ff 62%, #fffaf2 100%);
  background-size: 44px 44px, 44px 44px, auto;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

a {
  color: #4f3bd9;
  font-weight: 850;
}

.page-shell {
  width: min(980px, calc(100% - 32px));
  margin: 0 auto;
  padding: 26px 0 48px;
}

.page-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  color: inherit;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  color: #fff;
  background: conic-gradient(from 220deg, var(--violet), var(--teal), #ffb14a, var(--coral), var(--violet));
  border: 3px solid #fff;
  border-radius: 16px;
  box-shadow: 0 12px 26px rgba(124, 77, 255, 0.26);
  font-weight: 950;
}

.brand h1 {
  margin: 0;
  font-size: clamp(1.65rem, 4vw, 2.5rem);
  line-height: 1;
}

.brand p {
  margin: 5px 0 0;
  color: var(--muted);
  font-weight: 750;
}

.home-link,
.pill-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.74);
  box-shadow: 0 12px 24px rgba(54, 48, 92, 0.08);
  text-decoration: none;
  white-space: nowrap;
}

.page-card {
  display: grid;
  gap: 18px;
  padding: clamp(20px, 4vw, 34px);
  border: 1px solid var(--line);
  border-radius: 26px;
  background: var(--surface);
  box-shadow: var(--shadow);
  backdrop-filter: blur(22px) saturate(1.35);
  -webkit-backdrop-filter: blur(22px) saturate(1.35);
}

.eyebrow {
  margin: 0 0 -8px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 950;
  letter-spacing: 0;
  text-transform: uppercase;
}

h2 {
  margin: 0;
  font-size: clamp(1.8rem, 4vw, 3rem);
  line-height: 1.05;
}

h3 {
  margin: 12px 0 6px;
  font-size: 1.1rem;
}

p,
li {
  color: #3d4652;
  font-size: 1rem;
  font-weight: 650;
  line-height: 1.65;
}

p {
  margin: 0;
}

ul,
ol {
  margin: 0;
  padding-left: 22px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
}

.mini-card {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.72);
}

.link-list {
  display: grid;
  gap: 10px;
  padding: 0;
  list-style: none;
}

.link-list a {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink);
  text-decoration: none;
}

.page-footer {
  margin-top: 18px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 750;
  text-align: center;
}

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

  .page-top {
    align-items: flex-start;
    flex-direction: column;
  }

  .home-link {
    width: 100%;
  }
}
