/* Hero, the notch (the showcase tabs sit in it; the closing CTA hangs it too) and the network
   logo wall. The tabbed product showcase itself is in showcase.css. */

/* ── Hero ── */
.hero .rail { border-inline-color: transparent; padding: 64px 48px 80px; }
.hero-grid { position: absolute; inset: 0; pointer-events: none; overflow: hidden;
  -webkit-mask-image: linear-gradient(transparent, #000), radial-gradient(130% 50% at 50% 100%, transparent, #000);
  mask-image: linear-gradient(transparent, #000), radial-gradient(130% 50% at 50% 100%, transparent, #000);
  -webkit-mask-composite: source-in; mask-composite: intersect; }
.hero-grid .grid-bg { background-position: -1px 0; }
/* The grid spills past the rails and fades out sideways, as dub's does. */
.hero-spill { position: absolute; inset: 0 auto 0 50%; width: calc(var(--grid-width) + 720px); transform: translateX(-50%); pointer-events: none;
  -webkit-mask-image: linear-gradient(transparent, #000); mask-image: linear-gradient(transparent, #000); }
.hero-spill .grid-bg { top: auto; height: 600px; width: 360px; }
.hero-spill .left { left: 0; -webkit-mask-image: linear-gradient(90deg, transparent, #000); mask-image: linear-gradient(90deg, transparent, #000); }
.hero-spill .right { left: auto; right: 0; -webkit-mask-image: linear-gradient(270deg, transparent, #000); mask-image: linear-gradient(270deg, transparent, #000); }
.hero-rails { position: absolute; inset: 0; border-inline: 1px solid var(--grid-border); pointer-events: none;
  -webkit-mask-image: linear-gradient(transparent, #000); mask-image: linear-gradient(transparent, #000); }
.hero-copy .lede { max-width: 640px; }
.hero-copy { position: relative; max-width: 880px; margin: 0 auto; padding: 0 16px; display: flex; flex-direction: column; align-items: center; text-align: center; }
.hero-copy .h1 { margin-top: 20px; text-wrap: balance; }
.hero-copy .lede { margin-top: 20px; text-wrap: balance; }
.hero-ctas { display: flex; gap: 16px; margin-top: 40px; }

.announce {
  display: inline-flex; align-items: stretch; border: 1px solid var(--n-300); border-radius: 999px; background: #fff;
  font-size: 12px; line-height: 16px; font-weight: 500; filter: drop-shadow(0 1px 1px rgb(0 0 0 / .05)); transition: background-color 75ms;
}
.announce:hover { background: var(--n-50); }
.announce > span { padding: 6px 12px; }
.announce > span + span { display: inline-flex; align-items: center; gap: 6px; border-left: 1px solid var(--n-300); color: var(--n-600); }
.announce .arrow { display: grid; place-items: center; width: 14px; height: 14px; border-radius: 50%; background: var(--n-100); }
.announce .arrow svg { width: 8px; height: 8px; transition: transform .1s; }
.announce:hover .arrow svg { transform: translate(1px, -1px); }

/* ── The notch: the white tab-shaped cut-out at the top of the showcase and the dark CTA ── */
.showcase .rail { padding-bottom: 0; }
.notch { position: relative; z-index: 1; display: flex; justify-content: center; height: 64px; max-width: min(700px, calc(100vw - 2rem)); margin: 0 auto; color: #fff; transform: translateY(-1px); }
.notch > svg { height: 64px; width: 85px; flex: none; overflow: visible; }
.notch > svg.flip { transform: scaleX(-1); }
.notch-fill { flex: 1; min-width: 0; margin: 0 -1px; /* overlap the shoulders so no seam shows */ background: currentColor; display: flex; align-items: center; justify-content: center; gap: 10px; }
.chip { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--n-200); border-radius: 6px; padding: 3px 8px; font-size: 11px; font-weight: 500; color: var(--n-600); background: #fff; white-space: nowrap; }
.ok { color: #15803d; background: #f0fdf4; border-color: #bbf7d0; }
.warn { color: #b45309; background: #fffbeb; border-color: #fde68a; }
.bad { color: #b91c1c; background: #fef2f2; border-color: #fecaca; }
.info { color: #1d4ed8; background: #eff6ff; border-color: #bfdbfe; }

/* ── Logo wall: 2 rows × 5, cross-fading between sets ── */
.logos { position: relative; display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; padding: 40px 16px; }
.logo { position: relative; height: 48px; display: flex; align-items: center; justify-content: center; gap: 8px;
  font: 700 20px/1 var(--font-display); letter-spacing: -.03em; color: var(--n-800); }
.logo .mark { width: 24px; height: 24px; flex: none; }
.logo.swap-out { animation: logo-out .18s ease-out both; }
.logo.swap-in { animation: logo-in .28s ease-out both; }
.badge { position: absolute; bottom: -8px; left: 50%; transform: translateX(-50%); white-space: nowrap; border-radius: 999px; background: var(--n-100); padding: 2px 5px; font: 600 8px/12px var(--font-sans); text-transform: uppercase; letter-spacing: .02em; color: var(--n-500); }
@keyframes logo-out { 60% { filter: blur(1px); opacity: .25; transform: scale(.98); } to { filter: blur(2px); opacity: 0; transform: scale(.96); } }
@keyframes logo-in { from { filter: blur(2px); opacity: 0; transform: scale(.96); } to { filter: none; opacity: 1; transform: none; } }

@media (max-width: 767px) {
  .hero .rail { padding: 48px 8px 56px; }
  .notch { height: auto; } .notch > svg { display: none; }
  .notch-fill { background: transparent; flex-wrap: wrap; padding-top: 16px; }
  .logos { grid-template-columns: repeat(2, 1fr); }
  .logos .logo:nth-child(n+7) { display: none; }
}
@media (min-width: 768px) and (max-width: 1023px) { .logos { grid-template-columns: repeat(3, 1fr); } .logos .logo:nth-child(n+7) { display: none; } }
