/* Design 2, "Live points": a night-sky hero, then bright gallery-led pages. */

:root {
  --night: #061528;
  --night-2: #0a2140;
  --night-3: #12305a;
  --sky: #7cc0f5;
  --sky-soft: #b9dcf7;
  --orange: #f29b4b;
  --ink: #0a1a2e;
  --muted: #52667c;
  --line: #dde6ef;
  --paper: #f7f9fb;
  --card: #ffffff;
  --head: "Space Grotesk", "IBM Plex Sans", sans-serif;
  --code-bg: #0b1d33;
  --code-panel: #081627;
  --runner-accent: var(--orange);
  --runner-accent-fg: #1d0e00;
  --runner-radius: 18px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ink: #e7eef6; --muted: #9fb2c6; --line: #1d334d; --paper: #081a2e; --card: #0c223b;
  }
}

body { background: var(--paper); color: var(--ink); font: 400 17px/1.65 "IBM Plex Sans", system-ui, sans-serif; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
.wrap { width: min(1220px, 100% - 32px); margin-inline: auto; }
h1, h2, h3 { font-family: var(--head); letter-spacing: -.02em; line-height: 1.1; }
h2 { font-size: clamp(2rem, 4vw, 3rem); margin: 0 0 16px; }
.kicker { margin: 0 0 10px; font: 600 .8rem/1 var(--code-font); letter-spacing: .12em; text-transform: uppercase; color: var(--orange); }
.section-lede { color: var(--muted); max-width: 44em; margin: 0 0 32px; }
.section-lede a { color: inherit; }

/* ---------------------------------------------------------------- dark */
.dark { background: radial-gradient(120% 80% at 50% 0%, var(--night-3) 0%, var(--night-2) 35%, var(--night) 75%); color: #e6f0fa; }
.banner { background: var(--orange); color: #1d0e00; font-size: .9rem; font-weight: 500; }
.banner .banner-inner { width: min(1220px, 100% - 32px); margin: auto; min-height: 40px; justify-content: center; }
.banner-text { flex: 0 1 auto; }
.banner a { font-weight: 600; color: inherit; }
.banner-tag { font: 600 .72rem/1 var(--code-font); text-transform: uppercase; letter-spacing: .1em; }

.site-header { position: relative; z-index: 5; }
.header-inner { display: flex; align-items: center; height: 72px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font: 700 1.4rem var(--head); color: #fff; }
.brand img { border-radius: 8px; }
.site-nav { margin-left: auto; display: flex; gap: 2px; align-items: center; }
.site-nav a { padding: 8px 14px; border-radius: 999px; text-decoration: none; color: #c9dcee; font-weight: 500; font-size: .95rem; }
.site-nav a:hover { color: #fff; background: #ffffff14; }
.nav-gh { display: inline-flex; align-items: center; gap: 6px; box-shadow: inset 0 0 0 1px #ffffff2e; margin-left: 8px; }
.nav-toggle { display: none; margin-left: auto; background: none; border: 0; color: #fff; padding: 8px; cursor: pointer; }

.hero { position: relative; min-height: clamp(640px, 86vh, 860px); display: flex; flex-direction: column; justify-content: flex-end; padding-bottom: 40px; }
.hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-copy { position: relative; text-align: center; padding-top: clamp(300px, 46vh, 440px); }
.hero h1 { margin: 0 auto; font-size: clamp(1.8rem, 3.6vw, 2.8rem); max-width: 20em; color: #fff; }
.lede { margin: 16px auto 28px; max-width: 40em; color: #b3c8dd; font-size: 1.08rem; }
.actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 22px; border-radius: 999px; font-weight: 600; text-decoration: none; transition: transform .15s, background .15s; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--orange); color: #1d0e00; }
.btn-primary:hover { background: #ffad63; }
.btn-outline { box-shadow: inset 0 0 0 1.5px #ffffff4d; color: #fff; }
.btn-outline:hover { background: #ffffff12; }
.btn-text { color: var(--sky-soft); }
.hero-hud {
  position: absolute; right: 16px; top: 16px; display: flex; gap: 10px; align-items: center;
  font: 500 11px/1 var(--code-font); color: #7f9bb8;
}
.hero-hud button { font: inherit; color: var(--sky-soft); background: #ffffff10; border: 1px solid #ffffff22; border-radius: 999px; padding: 5px 10px; cursor: pointer; }
.hero-hud button:hover { background: #ffffff22; }
.hero-caption { position: relative; text-align: center; margin-top: 36px; font-size: .78rem; color: #6f8aa6; }

.news { padding: 24px 0 72px; }
.row-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 20px; }
.row-head h2 { font-size: 1.4rem; margin: 0; color: #fff; }
.feed { display: inline-flex; align-items: center; gap: 6px; color: var(--sky-soft); text-decoration: none; font-size: .9rem; }
.news-cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.news-card { padding: 20px; border-radius: 16px; background: #ffffff0a; border: 1px solid #ffffff17; backdrop-filter: blur(6px); }
.news-card.is-pinned { border-color: color-mix(in srgb, var(--orange) 55%, transparent); }
.news-meta { display: flex; gap: 10px; align-items: center; font: 500 .75rem var(--code-font); color: #89a4bf; }
.news-tag { color: var(--orange); text-transform: uppercase; letter-spacing: .08em; }
.news-card h3 { font-size: 1.08rem; margin: 10px 0 8px; color: #fff; }
.news-card h3 a { text-decoration: none; }
.news-card h3 a:hover { text-decoration: underline; }
.news-body { font-size: .9rem; color: #a9bfd4; line-height: 1.55; }
.news-body p { margin: 0; }
.news-body a { color: var(--sky-soft); }
.news-body code { font-size: .85em; }

/* ------------------------------------------------------------- gallery */
.gallery { padding: 96px 0; }
.gallery-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-top: 32px; }
.gallery-item { position: relative; display: flex; flex-direction: column; border-radius: 18px; overflow: hidden; background: #fff; text-decoration: none; color: #0a1a2e; box-shadow: 0 1px 2px #0a1a2e14, 0 14px 40px -18px #0a1a2e40; }
.gallery-item img { width: 100%; aspect-ratio: 16 / 10; object-fit: contain; padding: 16px; transition: transform .4s; }
.gallery-item:hover img { transform: scale(1.03); }
.gallery-item span { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 18px; font-size: .9rem; font-weight: 500; border-top: 1px solid #e3eaf1; }

/* --------------------------------------------------------- get started */
.start { padding: 96px 0; background: var(--card); border-block: 1px solid var(--line); }
.start-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; }
.steps { counter-reset: step; list-style: none; margin: 32px 0 0; padding: 0; display: grid; gap: 28px; }
.steps li { counter-increment: step; position: relative; padding-left: 56px; color: var(--muted); }
.steps li::before {
  content: counter(step); position: absolute; left: 0; top: -4px; width: 38px; height: 38px; border-radius: 50%;
  display: grid; place-items: center; font: 700 1rem var(--head); color: var(--night); background: var(--sky-soft);
}
.steps strong { color: var(--ink); }
.steps a { color: var(--ink); font-weight: 500; }
.install { margin-top: 14px; }
.install-tabs [role="tab"] { padding: 6px 12px; border-radius: 8px 8px 0 0; font-size: .85rem; font-weight: 500; color: var(--muted); }
.install-tabs [role="tab"][aria-selected="true"] { background: var(--code-bg); color: #fff; }
.install-panel { background: var(--code-bg); color: var(--code-fg); padding: 10px 8px 10px 16px; border-radius: 0 10px 10px 10px; font-size: .92rem; }
.install-panel .copy { color: var(--code-fg); }
.feature-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; align-content: start; }
.feature-list li { display: flex; gap: 18px; padding: 22px; border-radius: 16px; transition: background .15s; }
.feature-list li:hover { background: var(--paper); }
.feature-icon { flex: none; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 12px; background: var(--night); color: var(--sky); }
.feature-list h3 { margin: 0 0 6px; font-size: 1.15rem; }
.feature-list h3 a { text-decoration: none; }
.feature-list h3 a:hover { text-decoration: underline; }
.feature-list p { margin: 0; color: var(--muted); font-size: .95rem; }

/* ------------------------------------------------------------- try it */
.try { padding: 96px 0; }

/* ----------------------------------------------------------- samplers */
.samplers { padding: 72px 0; background: var(--night); color: #fff; overflow: hidden; }
.samplers-lead { font: 600 clamp(1.4rem, 3vw, 2rem) var(--head); margin: 0 0 28px; text-align: center; }
.marquee { mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee-track { display: flex; width: max-content; animation: marquee 48s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee ul { display: flex; gap: 14px; list-style: none; margin: 0; padding: 0 14px 0 0; }
.marquee li { display: flex; flex-direction: column; padding: 14px 22px; border-radius: 14px; border: 1px solid #ffffff1f; font: 600 1.15rem var(--head); white-space: nowrap; }
.marquee small { font: 400 .78rem "IBM Plex Sans", sans-serif; color: #8ba6c1; }
@keyframes marquee { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .marquee { mask-image: none; }
  .marquee-track { animation: none; flex-wrap: wrap; width: auto; justify-content: center; }
  .marquee ul { flex-wrap: wrap; justify-content: center; }
  .marquee ul[aria-hidden] { display: none; }
}

/* ----------------------------------------------------------- ecosystem */
.ecosystem { padding: 96px 0; background: var(--card); border-bottom: 1px solid var(--line); }
.eco-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid var(--line); }
.eco-item { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 28px 28px 28px 0; border-bottom: 1px solid var(--line); }
.eco-item:not(:nth-child(3n + 1)) { padding-left: 28px; border-left: 1px solid var(--line); }
.eco-category { font: 600 .72rem/1 var(--code-font); letter-spacing: .1em; text-transform: uppercase; color: var(--orange); }
.eco-name { font: 700 1.5rem var(--head); letter-spacing: -.02em; text-decoration: none; }
.eco-name::after { content: ""; position: absolute; inset: 0; }
.eco-item:hover .eco-name { color: #2171b5; }
.eco-text { margin: 0; color: var(--muted); font-size: .95rem; flex: 1; }
.eco-repo { position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 4px; width: max-content; font-size: .85rem; color: var(--muted); }

.eco-invite { color: var(--muted); }
.eco-invite > .icon { color: var(--orange); }
.eco-invite a { color: var(--ink); }

/* ------------------------------------------------- citing + community */
.bottom { padding: 96px 0; }
.bottom-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 72px; }
.bottom h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
.cite-item { padding: 20px; border-radius: 14px; background: var(--card); border: 1px solid var(--line); }
.cite-title a { font-weight: 600; text-decoration: none; }
.cite-title a:hover { text-decoration: underline; }
.cite-meta { color: var(--muted); font-size: .88rem; margin-top: 4px !important; }
.cite-bibtex summary { margin-top: 8px; font-size: .85rem; font-weight: 600; color: var(--muted); }
.community-list { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 10px; }
.community-list a { display: flex; gap: 16px; align-items: center; padding: 18px 20px; border-radius: 14px; border: 1px solid var(--line); background: var(--card); text-decoration: none; transition: border-color .15s, transform .15s; }
.community-list a:hover { border-color: var(--sky); transform: translateX(4px); }
.community-list .icon { color: var(--orange); }
.community-list span { display: flex; flex-direction: column; color: var(--muted); font-size: .92rem; }
.community-list strong { color: var(--ink); font-size: 1rem; }

/* ------------------------------------------------------------- footer */
.site-footer { background: var(--night); color: #8ba6c1; padding: 48px 0 72px; font-size: .9rem; }
.footer-inner { display: grid; gap: 20px; justify-items: center; text-align: center; }
.site-footer nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 20px; }
.site-footer nav a { color: #d3e3f2; text-decoration: none; }
.site-footer nav a:hover { text-decoration: underline; }
.site-footer p { margin: 0; max-width: 46em; }

/* --------------------------------------------------------- responsive */
@media (max-width: 980px) {
  .eco-list { grid-template-columns: 1fr 1fr; }
  .eco-item:not(:nth-child(3n + 1)) { padding-left: 0; border-left: 0; }
  .eco-item:nth-child(even) { padding-left: 28px; border-left: 1px solid var(--line); }
  .start-grid, .bottom-grid { grid-template-columns: 1fr; gap: 48px; }
}
@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .site-nav { display: none; position: absolute; top: 72px; left: 0; right: 0; flex-direction: column; align-items: stretch; padding: 12px 16px 20px; background: var(--night); }
  .site-nav.open { display: flex; }
  .nav-gh { margin: 8px 0 0; justify-content: center; }
  .hero { min-height: 640px; }
  .hero-copy { padding-top: 300px; }
  .hero-hud { top: auto; bottom: 8px; right: 50%; transform: translateX(50%); white-space: nowrap; }
  .gallery-grid { grid-template-columns: 1fr; }
  .eco-list { grid-template-columns: 1fr; }
  .eco-item:nth-child(even) { padding-left: 0; border-left: 0; }
  .ecosystem { padding: 64px 0; }
  .gallery, .start, .try, .bottom { padding: 64px 0; }
}
