/* The landing page's frame for the static crawler pages: floating pill nav,
   night-sky header with stars, serif headlines, and the five-column footer.
   Mirrors src/pages/landing.css and LandingNav/LandingFooter. */

:root {
  --fx-ink: #17171e;
  --fx-muted: #62616d;
  --fx-line: #e6e5ee;
  --fx-accent: #4338d8;
  --fx-night-top: #04050d;
  --fx-night-mid: #0a0d24;
  --fx-night-bottom: #070a1c;
  --fx-serif: 'EB Garamond', 'Iowan Old Style', Georgia, ui-serif, serif;
  --fx-sans: Geist, Inter, ui-sans-serif, system-ui, -apple-system, sans-serif;
}

body.fx-page {
  margin: 0;
  color: var(--fx-ink);
  background:
    radial-gradient(60% 40% at 15% 30%, #dcd8ff66, transparent 70%),
    radial-gradient(50% 40% at 85% 70%, #d9f1fb66, transparent 70%),
    #fbfbfe;
  font-family: var(--fx-sans);
  -webkit-font-smoothing: antialiased;
}

.fx-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  padding: 12px 16px 0;
  pointer-events: none;
}

.fx-nav {
  pointer-events: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  max-width: 1216px;
  height: 56px;
  margin: 0 auto;
  padding: 0 14px;
  border: 1px solid #ffffff1f;
  border-radius: 999px;
  background: #0b0d22b3;
  color: #f4f4f8;
  backdrop-filter: blur(16px);
  box-shadow: 0 18px 50px -30px #0008;
}

.fx-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: inherit;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}

.fx-brand img {
  width: 28px;
  height: 28px;
  padding: 4px;
  border-radius: 8px;
  background: #18181b;
}

.fx-links {
  display: flex;
  gap: 22px;
  font-size: 13.5px;
}

.fx-links a,
.fx-login {
  color: #c9c9d6;
  text-decoration: none;
  transition: color 0.2s;
}

.fx-links a:hover,
.fx-login:hover {
  color: #fff;
}

.fx-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 13.5px;
}

.fx-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 36px;
  padding: 0 16px;
  border-radius: 999px;
  background: #a5a1ff;
  color: #13122a !important;
  font-weight: 600;
  text-decoration: none;
}

.fx-cta:hover {
  background: #b9b6ff;
}

.fx-nav a:focus-visible {
  outline: 2px solid #a5a1ff;
  outline-offset: 3px;
  border-radius: 8px;
}

@media (max-width: 1000px) {
  .fx-links {
    display: none;
  }
}

/* The night header every page opens on. */
.fx-night {
  position: relative;
  overflow: hidden;
  color: #f4f4f8;
  text-align: center;
  background:
    radial-gradient(90% 40% at 50% 100%, #4338d833, transparent 70%),
    linear-gradient(180deg, var(--fx-night-top) 0%, var(--fx-night-mid) 55%, var(--fx-night-bottom) 100%);
}

.fx-night::before {
  position: absolute;
  inset: 0;
  content: '';
  pointer-events: none;
  opacity: 0.8;
  background-image:
    radial-gradient(1px 1px at 12% 22%, #fff, transparent),
    radial-gradient(1px 1px at 28% 68%, #fffc, transparent),
    radial-gradient(1.5px 1.5px at 41% 14%, #fff, transparent),
    radial-gradient(1px 1px at 57% 46%, #fffb, transparent),
    radial-gradient(1px 1px at 66% 78%, #fff, transparent),
    radial-gradient(1.5px 1.5px at 79% 26%, #fffd, transparent),
    radial-gradient(1px 1px at 88% 58%, #fff, transparent),
    radial-gradient(1px 1px at 7% 84%, #fffa, transparent),
    radial-gradient(1px 1px at 94% 9%, #fff, transparent),
    radial-gradient(1px 1px at 35% 38%, #fff9, transparent),
    radial-gradient(1px 1px at 72% 6%, #fffb, transparent),
    radial-gradient(1px 1px at 50% 88%, #fff9, transparent);
  background-size: 640px 420px;
}

.fx-night > * {
  position: relative;
}

.fx-night h1 {
  max-width: 18ch;
  margin: 18px auto 0;
  color: #fff;
  font-family: var(--fx-serif);
  font-size: clamp(2.4rem, 6vw, 4.4rem);
  font-weight: 400;
  line-height: 1.03;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.fx-night h1 em {
  font-style: italic;
}

.fx-night .eyebrow,
.fx-night .article-kicker,
.fx-night .na-eyebrow {
  color: #b7b3ff;
  letter-spacing: 0.16em;
}

.fx-night .lede,
.fx-night p {
  color: #c4c4d2;
}

/* Footer */
.fx-footer {
  margin-top: 64px;
  padding: 56px 24px 36px;
  border-top: 1px solid var(--fx-line);
  color: var(--fx-muted);
  font-family: var(--fx-sans);
  font-size: 14px;
}

.fx-footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(5, 1fr);
  gap: 32px;
  max-width: 1216px;
  margin: 0 auto;
}

.fx-footer .fx-brand {
  color: var(--fx-ink);
}

.fx-footer-brand p {
  max-width: 260px;
  margin: 14px 0 0;
  line-height: 1.6;
}

.fx-footer h2 {
  margin: 0 0 12px;
  color: var(--fx-ink);
  font-size: 13px;
  font-weight: 600;
}

.fx-footer ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.fx-footer a {
  color: var(--fx-muted);
  text-decoration: none;
}

.fx-footer a:hover {
  color: var(--fx-accent);
}

.fx-footer-note {
  max-width: 1216px;
  margin: 40px auto 0;
  font-size: 12.5px;
}

@media (max-width: 900px) {
  .fx-footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Notion comparison: its hero opens on the same night sky. */
.na .na-hero.fx-night {
  background:
    radial-gradient(90% 40% at 50% 100%, #4338d833, transparent 70%),
    linear-gradient(180deg, var(--fx-night-top) 0%, var(--fx-night-mid) 55%, var(--fx-night-bottom) 100%);
}

.na .na-hero.fx-night::after {
  opacity: 0.25;
}

.na .na-hero.fx-night h1 {
  color: #fff;
  font-size: clamp(2.8rem, 6.6vw, 4.75rem);
}

.na .na-hero.fx-night .na-lede,
.na .na-hero.fx-night .na-proof,
.na .na-hero.fx-night .na-hero-next {
  color: #c4c4d2;
}

.na .na-hero.fx-night .na-button-secondary {
  border-color: #ffffff2e;
  background: #ffffff0f;
  color: #f4f4f8 !important;
}

.na .na-hero.fx-night .na-orbit-chip {
  border-color: #ffffff24;
  background: #161936cc;
  color: #e7e7f1;
}

/* Generated article pages: clear the fixed nav. */
.article-document .article-shell {
  padding-top: 88px;
}

/* Articles index: the hero is the night header, centred, full width. */
.articles-index-shell .articles-index-hero.fx-night {
  display: block;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 150px 24px 72px;
}

.articles-index-shell .articles-index-hero.fx-night > div {
  max-width: 760px;
  margin: 0 auto;
}

.articles-index-shell .articles-index-hero.fx-night .articles-filter {
  justify-content: center;
  border-color: #ffffff24;
  background: #ffffff0d;
}

.articles-index-shell .articles-index-hero.fx-night .article-filter-chip {
  color: #d8d8e4;
}

.article-document .articles-preview h2,
.article-document .article-hero h1 {
  font-family: var(--fx-serif);
  font-weight: 500;
  letter-spacing: -0.015em;
}

.article-document .articles-preview h2 {
  font-size: 1.5rem;
  line-height: 1.2;
}

.articles-index-shell .articles-index-hero.fx-night .article-filter-chip {
  border-color: #ffffff24;
  background: transparent;
}
