/*
 * nebula-chrome.css: page furniture for the redesign. Header, interior-page
 * masthead, features grid, integrations, pricing, FAQ and footer.
 *
 * Split from nebula.css so the homepage's own system (hero, app window,
 * creators, MCP band, workflow graphs) stays readable on its own. Both load
 * together on any page with `nebula: true`.
 */

.nb-doc { background: var(--nb-page); color: var(--nb-ink); }

/* ------------------------------------------------------------------ header */

.nb-header { position: sticky; top: 0; z-index: 40; background: var(--nb-page); border-bottom: 1px solid var(--nb-line); }
/* Over the space hero the header has no surface of its own. It sits on the
   nebula and only the type is visible. */
.nb-header-dark { position: absolute; inset: 0 0 auto; background: transparent; border-bottom: 0; }
.nb-nav { display: flex; align-items: center; gap: 20px; height: 64px; }

.nb-brand { display: flex; align-items: center; gap: 9px; font-family: var(--nb-serif); font-size: 19px; font-weight: 500; color: var(--nb-ink); text-decoration: none; }
.nb-brand svg { width: 22px; height: 24px; fill: currentColor; flex: none; }
.nb-brand .fold { opacity: .55; }
.nb-brand em { font-style: normal; opacity: .55; }
.nb-header-dark .nb-brand, .nb-footer .nb-brand { color: #fff; }

.nb-nav-links { display: flex; align-items: center; gap: 22px; margin-left: auto; font-size: 14.5px; }
.nb-nav-links a { color: var(--nb-ink-2); text-decoration: none; }
.nb-nav-links a:hover { color: var(--nb-ink); }
.nb-nav-links a[aria-current='page'] { color: var(--nb-ink); font-weight: 500; }
.nb-header-dark .nb-nav-links a { color: #c9cadf; }
.nb-header-dark .nb-nav-links a:hover,
.nb-header-dark .nb-nav-links a[aria-current='page'] { color: #fff; }
.nb-nav-login { margin-left: 6px; }
.nb-btn-nav { height: 36px; padding-inline: 15px; font-size: 14px; background: var(--nb-ink); color: var(--nb-page); }
.nb-header-dark .nb-btn-nav { background: #fff; color: var(--nb-space); }

.nb-toggle { display: none; margin-left: auto; background: none; border: 0; font-size: 20px; color: inherit; cursor: pointer; padding: 6px; }

/* --------------------------------------------------------------- masthead */

/* A short band of the same space as the homepage hero, so interior pages read
   as part of the same site without re-running the whole nebula. */
.nb-masthead { position: relative; overflow: hidden; background: var(--nb-space); color: #fff; padding: 128px 0 76px; }
.nb-masthead::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(to bottom, rgba(7, 10, 26, .35) 0%, rgba(7, 10, 26, 0) 45%, var(--nb-page) 100%);
}
.nb-masthead > .nb-wrap { position: relative; z-index: 2; }
.nb-masthead h1 { font-family: var(--nb-serif); font-weight: 400; font-size: clamp(38px, 5.6vw, 66px); line-height: 1.04; letter-spacing: -.02em; max-width: 17ch; margin: 0; }
.nb-masthead p { color: #c9cadf; font-size: 18px; max-width: 52ch; margin: 18px 0 0; }
.nb-aurora-short { height: 100%; filter: blur(70px); opacity: .7; }
.nb-cta-tight { justify-content: flex-start; margin: 28px 0 0; }

/* ---------------------------------------------------------------- sections */

.nb-section-alt { background: var(--nb-card); border-block: 1px solid var(--nb-line); }
.nb-center { text-align: center; }
.nb-h2-center, .nb-sub-center { margin-inline: auto; }
.nb-center .nb-cta { margin-bottom: 0; }

/* The MCP two-column grid again, on a light page instead of the dark band. */
.nb-tools-light .nb-sub { color: var(--nb-ink-2); }
.nb-tools-light .nb-btn-quiet { background: var(--nb-line); color: var(--nb-ink); }

/* ---------------------------------------------------------------- features */

.nb-feat { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 28px 40px; }
.nb-feat-item { border-top: 2px solid var(--nb-ink); padding-top: 16px; }
.nb-feat-item b { display: block; font-size: 17px; font-weight: 500; margin-bottom: 8px; }
.nb-feat-item p { color: var(--nb-ink-2); font-size: 14.5px; margin: 0; }

/* ------------------------------------------------------------ integrations */

.nb-integrations { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; }
.nb-int { background: var(--nb-card); border: 1px solid var(--nb-line); border-radius: 12px; padding: 18px; text-decoration: none; color: inherit; display: block; transition: border-color .2s ease; }
.nb-int:hover { border-color: var(--nb-brand); }
.nb-int img { display: block; margin-bottom: 12px; }
.nb-int b { display: block; font-weight: 500; font-size: 15px; }
.nb-int span { display: block; color: var(--nb-ink-3); font-size: 13px; margin-top: 4px; }
.nb-int em { display: block; font-style: normal; font-size: 11px; color: var(--nb-brand); margin-top: 10px; }
.nb-int-wide { grid-column: 1 / -1; }

/* ----------------------------------------------------------------- pricing */

.nb-tiers { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; max-width: 760px; }
.nb-tier { position: relative; background: var(--nb-card); border: 1px solid var(--nb-line); border-radius: 16px; padding: 28px; }
/* A ring rather than a thicker border, so the highlighted card does not shift
   a pixel against the plain one. */
.nb-tier-on { border-color: transparent; box-shadow: 0 0 0 2px var(--nb-brand); }
.nb-badge { position: absolute; top: -11px; left: 28px; background: var(--nb-brand); color: #fff; font-size: 11px; font-weight: 500; padding: 3px 10px; border-radius: 999px; }
.nb-tier h3 { font-size: 15px; font-weight: 500; color: var(--nb-ink-3); margin: 0 0 6px; }
.nb-price { font-family: var(--nb-serif); font-size: 46px; line-height: 1; margin: 0 0 14px; }
.nb-price span { font-size: 15px; color: var(--nb-ink-3); }
.nb-tier-desc { color: var(--nb-ink-2); font-size: 14px; margin: 0 0 22px; }

.nb-included { margin-top: 72px; }
.nb-included ul { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 10px 32px; }
.nb-included li { position: relative; padding-left: 26px; color: var(--nb-ink-2); font-size: 14.5px; }
.nb-included li::before { content: '\2713'; position: absolute; left: 0; top: 1px; width: 16px; height: 16px; border-radius: 5px; background: #e4f6ee; color: #0b6e4f; font-size: 10px; display: grid; place-items: center; }

.nb-faq { display: grid; gap: 2px; max-width: 760px; }
.nb-faq details { border-bottom: 1px solid var(--nb-line); }
.nb-faq summary { cursor: pointer; padding: 16px 0; font-weight: 500; font-size: 16px; list-style: none; }
.nb-faq summary::-webkit-details-marker { display: none; }
.nb-faq summary::after { content: '+'; float: right; color: var(--nb-ink-3); font-weight: 400; }
.nb-faq details[open] summary::after { content: '\2013'; }
.nb-faq p { color: var(--nb-ink-2); font-size: 14.5px; margin: 0 0 18px; max-width: 68ch; }

/* ------------------------------------------------------------------ footer */

.nb-footer { position: relative; overflow: hidden; background: var(--nb-space); color: #c9cadf; padding: 72px 0 32px; font-size: 14px; }
.nb-footer > .nb-wrap { position: relative; z-index: 2; }
.nb-foot-top { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; }
.nb-foot-top p { margin: 14px 0 0; max-width: 34ch; color: #8e90ac; }
.nb-foot-top a { color: inherit; text-decoration: none; }
.nb-foot-top p a { color: #c9cadf; text-decoration: underline; text-underline-offset: 2px; }
.nb-foot-top h6 { color: #fff; font-size: 13px; font-weight: 500; margin: 0 0 12px; }
.nb-foot-top ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.nb-foot-top ul a:hover { color: #fff; }
.nb-foot-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-top: 56px; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, .1); color: #6e7090; font-size: 13px; }
.nb-foot-bottom a { color: inherit; text-decoration: none; margin-left: 16px; }
.nb-foot-bottom a:hover { color: #c9cadf; }

/* -------------------------------------------------------------- responsive */

@media (max-width: 900px) {
  .nb-toggle { display: block; }
  .nb-nav-links {
    display: none; position: absolute; inset: 64px 0 auto; flex-direction: column;
    align-items: flex-start; gap: 4px; padding: 16px 24px 24px;
    background: var(--nb-page); border-bottom: 1px solid var(--nb-line);
  }
  .nb-header-dark .nb-nav-links { background: var(--nb-space); border-bottom-color: rgba(255, 255, 255, .12); }
  .nb-nav-links.is-open { display: flex; }
  .nb-nav-links a { padding: 8px 0; }
  .nb-btn-nav { margin-top: 8px; }
  .nb-foot-top { grid-template-columns: 1fr 1fr; }
  .nb-masthead { padding: 104px 0 60px; }
}

@media (max-width: 560px) {
  .nb-foot-top { grid-template-columns: 1fr; gap: 28px; }
}
