/* Landing page. Three across, then the next row. */

.markdown-body .hero {
  text-align: center;
  margin: 0.15rem auto 0;
  max-width: 46rem;
}

.markdown-body .hero-kicker {
  margin: 0 0 0.75rem;
  color: #c9a6ff;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.markdown-body .hero h1 {
  margin: 0;
  padding: 0;
  border: 0;
  color: #fff;
  font-size: clamp(2.2rem, 4.8vw, 3.45rem);
  font-weight: 740;
  line-height: 1.02;
  letter-spacing: -0.04em;
  text-wrap: balance;
}

.markdown-body .hero-lead {
  margin: 1rem auto 0;
  max-width: 34rem;
  color: #c9c2d4;
  font-size: 1.12rem;
  line-height: 1.5;
}

.markdown-body .hero::after {
  content: "";
  display: block;
  width: min(100%, 22rem);
  height: 1px;
  margin: 1.45rem auto 0;
  background: linear-gradient(90deg, transparent, rgba(201, 166, 255, 0.85), transparent);
}

.markdown-body .band {
  margin-top: 1.15rem;
  scroll-margin-top: calc(var(--chrome-h) + 0.8rem);
}

.markdown-body .hero + .band {
  margin-top: 1.85rem;
}

.markdown-body .band-head {
  max-width: 40rem;
  margin: 0 0 1rem;
}

.markdown-body .kicker {
  margin: 0 0 0.28rem;
  color: #c9a6ff;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.markdown-body .band h2,
.markdown-body h2.feature-title {
  margin: 0;
  padding: 0;
  border: 0;
  color: #fff;
  font-size: clamp(1.45rem, 2.2vw, 1.85rem);
  font-weight: 680;
  letter-spacing: -0.03em;
  line-height: 1.15;
  text-wrap: balance;
}

.markdown-body .band-head p {
  margin: 0.4rem 0 0;
  max-width: 42rem;
  color: #b7b0c4;
  font-size: 1.02rem;
  line-height: 1.5;
}

.markdown-body .beat {
  margin: 2.55rem auto 0.35rem;
  max-width: 36rem;
  text-align: center;
  color: #e4dced;
  font-size: 1.08rem;
  line-height: 1.45;
}

.markdown-body .beat::before {
  content: "";
  display: block;
  width: 2.25rem;
  height: 2px;
  margin: 0 auto 0.8rem;
  border-radius: 2px;
  background: #c9a6ff;
}

.markdown-body .shelf {
  display: grid;
  gap: 1.05rem;
  margin: 0;
}

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

/* Same card width as a 3-up row, pair centered on the line. */
.markdown-body .shelf-2 {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.markdown-body .shelf-2 .card:nth-child(1) {
  grid-column: 2 / span 2;
}

.markdown-body .shelf-2 .card:nth-child(2) {
  grid-column: 4 / span 2;
}

.markdown-body a.card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  color: #e8e8e8;
  text-decoration: none;
  background: linear-gradient(180deg, #17141e 0%, #100e16 100%);
  border: 1px solid #2c2638;
  border-radius: 16px;
  overflow: hidden;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 14px 32px rgba(0, 0, 0, 0.32);
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.markdown-body a.card:hover {
  color: #e8e8e8;
  text-decoration: none;
  transform: translateY(-4px);
  border-color: #c9a6ff;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 18px 40px rgba(0, 0, 0, 0.45),
    0 0 0 1px rgba(201, 166, 255, 0.35);
}

.markdown-body a.card:focus-visible {
  outline: 2px solid #c9a6ff;
  outline-offset: 3px;
}

.markdown-body a.card img {
  width: 100%;
  height: auto;
  max-width: 100%;
  aspect-ratio: 1200 / 630;
  object-fit: cover;
  object-position: center;
  display: block;
  background: #000;
  border: 0;
  transition: transform 0.35s ease;
}

.markdown-body a.card:hover img {
  transform: scale(1.035);
}

.markdown-body .card-body {
  display: flex;
  flex-direction: column;
  gap: 0.32rem;
  padding: 0.9rem 1rem 1.05rem;
  flex: 1;
}

.markdown-body .card-title {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.6rem;
  color: #fff;
  font-size: 1.12rem;
  font-weight: 680;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.markdown-body .card-go {
  flex: none;
  color: #c9a6ff;
  font-size: 1rem;
  line-height: 1;
  opacity: 0.55;
  transform: translateX(-3px);
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.markdown-body a.card:hover .card-go {
  opacity: 1;
  transform: none;
}

.markdown-body .card-copy {
  color: #b7b0c4;
  font-size: 0.94rem;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.markdown-body .banner {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 0.2rem;
  aspect-ratio: 1200 / 630;
  padding: 1rem 1.05rem 0.95rem;
  position: relative;
  overflow: hidden;
}

.markdown-body .banner-word {
  position: relative;
  color: #fff;
  font-size: clamp(1.55rem, 2vw, 1.9rem);
  font-weight: 750;
  letter-spacing: -0.035em;
  line-height: 1;
}

.markdown-body .banner-sub {
  position: relative;
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.92rem;
  line-height: 1.35;
}

.markdown-body .banner-yt {
  background:
    radial-gradient(140px 110px at 16% 42%, rgba(255, 45, 70, 0.55), transparent 70%),
    linear-gradient(155deg, #3a1020 0%, #14080d 52%, #2a0610 100%);
}

.markdown-body .banner-icon {
  position: absolute;
  top: 0.95rem;
  right: 0.95rem;
  width: 58px;
  height: auto;
  filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.35));
}

.markdown-body .banner-x {
  background:
    radial-gradient(220px 140px at 88% 18%, rgba(255, 255, 255, 0.08), transparent 62%),
    linear-gradient(160deg, #141418 0%, #070709 70%);
}

.markdown-body .banner-xmark {
  position: absolute;
  right: 0.15rem;
  top: -0.45rem;
  color: rgba(255, 255, 255, 0.22);
  font-size: 8.2rem;
  font-weight: 760;
  letter-spacing: -0.08em;
  line-height: 0.8;
  pointer-events: none;
}

.markdown-body .card-handle {
  min-width: 0;
  font-size: clamp(0.78rem, 0.72rem + 0.35vw, 0.92rem);
  letter-spacing: -0.02em;
  line-height: 1.25;
  overflow-wrap: normal;
}

.markdown-body .banner-bsky {
  padding-bottom: 1.65rem;
  background:
    radial-gradient(78px 78px at 86% 30%, #fff 0 36%, rgba(255, 255, 255, 0.28) 37% 58%, transparent 59%),
    linear-gradient(155deg, #08398a 0%, #1478e6 46%, #6ec2ff 100%);
}

.markdown-body .banner-bsky::after {
  content: "";
  position: absolute;
  left: -8%;
  right: -8%;
  bottom: 5px;
  height: 12px;
  border-bottom: 3px solid rgba(255, 255, 255, 0.92);
  border-radius: 50%;
  pointer-events: none;
}

.markdown-body a.card.yt:hover {
  border-color: #ff5a73;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 18px 40px rgba(80, 0, 20, 0.45),
    0 0 0 1px rgba(255, 70, 100, 0.45);
}

.markdown-body a.card.x:hover {
  border-color: #f2f2f2;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 18px 40px rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(255, 255, 255, 0.4);
}

.markdown-body a.card.bsky:hover {
  border-color: #7ec8ff;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 18px 40px rgba(10, 60, 140, 0.45),
    0 0 0 1px rgba(110, 190, 255, 0.5);
}

.markdown-body .sky-pair {
  display: flex;
  flex-direction: column;
  gap: 1.05rem;
}

.markdown-body a.feature {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr);
  min-width: 0;
  color: #e8e8e8;
  text-decoration: none;
  background: #061226;
  border: 1px solid #1c3d6e;
  border-radius: 16px;
  overflow: hidden;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 16px 36px rgba(4, 16, 40, 0.4);
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.markdown-body a.feature:hover {
  color: #e8e8e8;
  text-decoration: none;
  transform: translateY(-3px);
  border-color: #7eb6ff;
  box-shadow:
    0 20px 44px rgba(8, 40, 100, 0.45),
    0 0 0 1px rgba(120, 180, 255, 0.4);
}

.markdown-body a.feature:focus-visible {
  outline: 2px solid #7eb6ff;
  outline-offset: 3px;
}

.markdown-body a.feature img {
  width: 100%;
  height: auto;
  max-width: 100%;
  align-self: center;
  object-fit: contain;
  object-position: center;
  display: block;
  background: #0b4db8;
  border: 0;
}

.markdown-body .feature-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.45rem;
  padding: 1.35rem 1.4rem 1.4rem;
  background:
    radial-gradient(420px 200px at 100% 0%, rgba(70, 150, 255, 0.2), transparent 62%),
    #061226;
  border-left: 1px solid rgba(130, 180, 255, 0.22);
}

.markdown-body .feature-copy .kicker {
  color: #8ec4ff;
}

.markdown-body .feature-name {
  color: #fff;
  font-size: clamp(1.35rem, 2vw, 1.75rem);
  font-weight: 750;
  letter-spacing: -0.03em;
  line-height: 1.15;
}
.markdown-body .feature-text {
  margin: 0.15rem 0 0;
  color: #c5d4ea;
  font-size: 0.98rem;
  line-height: 1.5;
  text-wrap: pretty;
}

.markdown-body .feature-go {
  margin-top: 0.55rem;
  color: #fff;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.markdown-body a.feature:hover .feature-go {
  color: #d7ecff;
}

.markdown-body a.feature-corporate {
  background: #071018;
  border-color: #3a3424;
}

.markdown-body a.feature-corporate img {
  background: #0c3f86;
}

.markdown-body a.feature-corporate .feature-copy {
  background:
    radial-gradient(420px 200px at 100% 0%, rgba(228, 197, 106, 0.16), transparent 62%),
    #071018;
  border-left-color: rgba(228, 197, 106, 0.28);
}

.markdown-body a.feature-corporate .feature-copy .kicker {
  color: #e4c56a;
}

.markdown-body a.feature-corporate:hover {
  border-color: #e4c56a;
  box-shadow:
    0 20px 44px rgba(24, 18, 4, 0.5),
    0 0 0 1px rgba(228, 197, 106, 0.42);
}

.markdown-body a.feature-corporate:focus-visible {
  outline-color: #e4c56a;
}

.markdown-body a.feature-corporate:hover .feature-go {
  color: #f3e2b0;
}

.markdown-body .plate {
  margin: 1.5rem auto 0;
  max-width: 920px;
}

.markdown-body .plate img {
  width: 100%;
  height: auto;
  display: block;
  border: 0;
  border-radius: 16px;
  background: #0c3f86;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 16px 36px rgba(4, 16, 40, 0.45);
}

.markdown-body .close-note {
  margin: 2.6rem 0 0.2rem;
  text-align: center;
  color: #b7b0c4;
  font-size: 1rem;
}

.markdown-body .close-note a {
  font-weight: 650;
}

@media (max-width: 860px) {
  .markdown-body .shelf-3,
  .markdown-body .shelf-2 {
    grid-template-columns: 1fr;
  }

  .markdown-body .shelf-2 .card:nth-child(1),
  .markdown-body .shelf-2 .card:nth-child(2) {
    grid-column: auto;
  }

  .markdown-body a.feature {
    grid-template-columns: 1fr;
  }

  .markdown-body a.feature img {
    height: auto;
    aspect-ratio: 1200 / 630;
    min-height: 0;
  }

  .markdown-body .feature-copy {
    border-left: 0;
    border-top: 1px solid rgba(130, 180, 255, 0.22);
  }

  .markdown-body a.feature-corporate .feature-copy {
    border-top-color: rgba(228, 197, 106, 0.28);
  }
}

@media (prefers-reduced-motion: reduce) {
  .markdown-body a.card,
  .markdown-body a.card img,
  .markdown-body .card-go,
  .markdown-body a.feature {
    transition: none;
  }

  .markdown-body a.card:hover,
  .markdown-body a.feature:hover,
  .markdown-body a.card:hover img {
    transform: none;
  }
}
