:root {
  --bg: #0a0e1a;
  --panel: #111830;
  --panel-2: #182242;
  --border: #263258;
  --text: #e8edfa;
  --muted: #93a1c8;
  --accent: #326ce5;
  --radius: 16px;
  --mono: ui-monospace, Menlo, Consolas, monospace;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica,
    Arial, sans-serif;
  color-scheme: dark;
}

/* Polite light mode for viewers who prefer it. */
@media (prefers-color-scheme: light) {
  :root {
    --bg: #f4f6fc;
    --panel: #ffffff;
    --panel-2: #eef1fa;
    --border: #d5ddf0;
    --text: #16203a;
    --muted: #55618a;
    color-scheme: light;
  }
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(1100px 620px at 12% -8%, rgba(50, 108, 229, 0.16), transparent 60%),
    radial-gradient(1000px 620px at 100% 0%, rgba(0, 163, 224, 0.14), transparent 55%),
    var(--bg);
  background-attachment: fixed;
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}

.wrap {
  max-width: 1080px;
  margin: 0 auto;
  padding: clamp(48px, 9vw, 104px) 24px 64px;
}

/* ---------------- hero ---------------- */
.hero {
  text-align: center;
  margin-bottom: clamp(36px, 6vw, 64px);
}

.mark {
  width: 56px;
  height: 56px;
  margin: 0 auto 22px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 6px;
}
.mark span {
  border-radius: 50%;
  background: var(--muted);
}
.mark span:nth-child(1),
.mark span:nth-child(4) {
  background: #326ce5;
}
.mark span:nth-child(2),
.mark span:nth-child(3) {
  background: #00a3e0;
}

.hero h1 {
  font-size: clamp(40px, 8vw, 68px);
  letter-spacing: -0.02em;
  margin: 0 0 16px;
  font-weight: 800;
  background: linear-gradient(100deg, #86aef7, #e8edfa 45%, #7fd3f2);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
@media (prefers-color-scheme: light) {
  .hero h1 {
    background: linear-gradient(100deg, #2456c7, #16203a 50%, #0374a3);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
  }
}

.lede {
  max-width: 44ch;
  margin: 0 auto;
  font-size: clamp(16px, 2.4vw, 19px);
  line-height: 1.6;
  color: var(--muted);
}

/* ---------------- grid ---------------- */
.grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 22px;
}

.card {
  --accent: #326ce5;
}

.card-link {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 26px 26px 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--panel);
  text-decoration: none;
  color: inherit;
  position: relative;
  overflow: hidden;
  transition:
    transform 0.18s ease,
    border-color 0.18s ease,
    box-shadow 0.18s ease;
}
/* accent bar along the top edge */
.card-link::before {
  content: '';
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: var(--accent);
  opacity: 0.85;
}
.card-link:hover {
  transform: translateY(-4px);
  border-color: color-mix(in srgb, var(--accent) 60%, var(--border));
  box-shadow:
    0 14px 40px -18px color-mix(in srgb, var(--accent) 70%, transparent),
    0 4px 14px -10px rgba(0, 0, 0, 0.5);
}
.card-link:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}
.icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  font-size: 24px;
  border-radius: 12px;
  color: #fff;
  background: color-mix(in srgb, var(--accent) 82%, black);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 40%, transparent);
}
.tag {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent);
  background: color-mix(in srgb, var(--accent) 16%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent) 34%, transparent);
  padding: 4px 10px;
  border-radius: 999px;
}

.card-title {
  font-size: 24px;
  margin: 0 0 6px;
  font-weight: 700;
  font-family: var(--mono);
}
.card-tagline {
  margin: 0 0 12px;
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
}
.card-blurb {
  margin: 0 0 22px;
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--muted);
}
.card-cta {
  margin-top: auto;
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
}
.card-cta span {
  display: inline-block;
  transition: transform 0.18s ease;
}
.card-link:hover .card-cta span {
  transform: translateX(4px);
}

/* ---------------- footer ---------------- */
.foot {
  margin-top: 48px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: var(--muted);
}
.foot a {
  color: var(--accent);
  text-decoration: none;
}
.foot a:hover {
  text-decoration: underline;
}
