/* ==========================================================================
   Nebula — Site Web Officiel (Édition 1.0 test · Ntest1)
   Charte graphique : Nebula Light Theme + Aperçu Workbench Nebula Dark
   Typographie : Google Sans Flex, Google Sans, Google Sans Code, Inter
   ========================================================================== */

:root {
  color-scheme: light;

  /* Nebula Minimalist Neutral Palette (Black / Zinc) */
  --nebula-bg: #fafafa;
  --nebula-surface: #ffffff;
  --nebula-surface-soft: #f4f4f5;
  --nebula-ink: #09090b;
  --nebula-ink-secondary: #27272a;
  --nebula-ink-muted: #52525b;
  --nebula-ink-subtle: #71717a;
  --nebula-border: rgba(9, 9, 11, 0.08);
  --nebula-border-strong: rgba(9, 9, 11, 0.16);

  /* Accents Noir & Logo Nebula + Sémantiques */
  --nebula-accent: #09090b;
  --nebula-accent-hover: #27272a;
  --nebula-accent-soft: rgba(9, 9, 11, 0.045);
  --nebula-accent-border: rgba(9, 9, 11, 0.16);
  --nebula-logo-accent: #b51bdf;
  --nebula-logo-soft: rgba(181, 27, 223, 0.07);
  --nebula-logo-border: rgba(181, 27, 223, 0.22);
  --nebula-logo-text: #86198f;
  --nebula-green: #16a34a;
  --nebula-green-soft: rgba(22, 163, 74, 0.09);
  --nebula-green-border: rgba(22, 163, 74, 0.28);
  --nebula-amber: #d97706;
  --nebula-amber-soft: rgba(245, 158, 11, 0.10);
  --nebula-red: #dc2626;

  /* Logo Authoritative Gradient */
  --nebula-brand-gradient: linear-gradient(95deg, #4216f5 0%, #7417f2 28%, #b51bdf 55%, #e51b9d 78%, #ff1b78 100%);

  /* Nebula Dark Workbench Tokens (for IDE Preview Showcase) */
  --ide-bg: #0f1014;
  --ide-sidebar: #14151b;
  --ide-elevated: #181920;
  --ide-fg: #eceef4;
  --ide-fg-sec: #a8acb8;
  --ide-fg-muted: #767b89;
  --ide-border: rgba(255, 255, 255, 0.085);
  --ide-accent: #e07cff;
  --ide-pink: #ff4d97;
  --ide-green: #3fb950;
  --ide-purple: #a371f7;
  --ide-orange: #d29922;
  --ide-red: #f85149;
  --ide-code: #e2b887;

  /* Typography */
  --font-sans: "Google Sans Flex", "Google Sans", "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: "Google Sans Code", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;

  /* Radii & Shadows */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-xl: 22px;
  --shadow-card: 0 1px 2px rgba(9, 9, 11, 0.04), 0 12px 32px -18px rgba(9, 9, 11, 0.09);
  --shadow-soft: 0 1px 3px rgba(9, 9, 11, 0.04);
  --shadow-ide: 0 28px 64px -20px rgba(9, 9, 11, 0.28), 0 0 0 1px rgba(9, 9, 11, 0.12);
}

*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body.nebula-site-body {
  margin: 0;
  padding: 0;
  min-height: 100vh;
  background-color: var(--nebula-bg);
  color: var(--nebula-ink);
  font-family: var(--font-sans);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  position: relative;
  overflow-x: hidden;
}

/* Filigrane officiel Nebula */
.site-watermark {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(760px, 88vw);
  opacity: 0.032;
  pointer-events: none;
  user-select: none;
  z-index: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 2;
}

/* ==========================================================================
   Header / Sticky Glass Navbar
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 250, 250, 0.86);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--nebula-border);
}

.navbar {
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  flex-shrink: 0;
}

.brand-logo-wrap {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: #ffffff;
  border: 1px solid var(--nebula-border);
  box-shadow: 0 2px 8px rgba(9, 9, 11, 0.07);
  display: flex;
  align-items: center;
  justify-content: center;
}

.brand-logo-wrap img {
  width: 24px;
  height: auto;
  display: block;
}

.brand-name {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--nebula-ink);
}

.brand-tag {
  font-size: 0.6875rem;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 9999px;
  background: var(--nebula-surface-soft);
  border: 1px solid var(--nebula-border-strong);
  color: var(--nebula-ink);
  line-height: 1;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-links a {
  padding: 7px 13px;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--nebula-ink-secondary);
  transition: background-color 140ms ease, color 140ms ease;
}

.nav-links a:hover {
  background: rgba(9, 9, 11, 0.05);
  color: var(--nebula-ink);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.mobile-menu-btn {
  display: none;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid var(--nebula-border);
  background: #ffffff;
  color: var(--nebula-ink);
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: inherit;
  font-weight: 600;
  font-size: 0.875rem;
  border-radius: 11px;
  padding: 10px 18px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 170ms cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
}

.btn-lg {
  font-size: 0.9375rem;
  padding: 13px 24px;
  border-radius: 12px;
}

.btn-primary {
  background: var(--nebula-accent);
  color: #ffffff;
  box-shadow: 0 6px 18px -6px rgba(9, 9, 11, 0.36);
}

.btn-primary:hover {
  background: var(--nebula-accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 10px 22px -6px rgba(9, 9, 11, 0.42);
}

.btn-secondary {
  background: #ffffff;
  color: var(--nebula-ink);
  border-color: var(--nebula-border-strong);
  box-shadow: 0 1px 2px rgba(9, 9, 11, 0.04);
}

.btn-secondary:hover {
  background: var(--nebula-surface-soft);
  border-color: var(--nebula-ink);
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  color: var(--nebula-ink-secondary);
  padding: 9px 14px;
}

.btn-ghost:hover {
  background: rgba(9, 9, 11, 0.05);
  color: var(--nebula-ink);
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
  padding: 68px 0 56px;
  text-align: center;
}

.hero-motto {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin-bottom: 26px;
}

.hero-motto-logo {
  width: 96px;
  height: auto;
  display: block;
}

.hero-motto-text {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px 12px;
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.3;
}

.hero-pills {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 24px;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 14px;
  border-radius: 9999px;
  font-size: 0.78125rem;
  font-weight: 600;
  background: #ffffff;
  border: 1px solid var(--nebula-border);
  color: var(--nebula-ink-secondary);
  box-shadow: 0 1px 3px rgba(9, 9, 11, 0.04);
}

.status-pill-accent {
  background: #ffffff;
  border-color: var(--nebula-logo-border);
  color: var(--nebula-ink);
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--nebula-green);
  box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.18);
}

.hero-title {
  margin: 0 auto 18px;
  max-width: 820px;
  font-size: clamp(2.1rem, 4.6vw, 3.45rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.09;
  color: var(--nebula-ink);
}

.text-nebula-gradient {
  background: var(--nebula-brand-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-subtitle {
  margin: 0 auto 30px;
  max-width: 650px;
  font-size: 1.0625rem;
  color: var(--nebula-ink-muted);
  line-height: 1.6;
}

.hero-cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 14px;
}

.hero-micro-note {
  font-size: 0.8125rem;
  color: var(--nebula-ink-muted);
  margin-bottom: 44px;
}

.hero-micro-note strong {
  color: var(--nebula-ink-secondary);
}

/* ==========================================================================
   Interactive Nebula Dark Workbench Preview
   ========================================================================== */
.ide-showcase-wrap {
  max-width: 980px;
  margin: 0 auto;
  text-align: left;
}

.ide-mode-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-bottom: 18px;
}

.ide-mode-tab {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 15px;
  border-radius: 9999px;
  border: 1px solid var(--nebula-border);
  background: #ffffff;
  color: var(--nebula-ink-secondary);
  font-family: inherit;
  font-size: 0.8125rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 140ms ease;
}

.ide-mode-tab:hover {
  border-color: var(--nebula-ink);
  color: var(--nebula-ink);
}

.ide-mode-tab.active {
  background: var(--nebula-ink);
  border-color: var(--nebula-ink);
  color: #ffffff;
  box-shadow: 0 4px 12px -4px rgba(9, 9, 11, 0.28);
}

.ide-window {
  background: var(--ide-bg);
  color: var(--ide-fg);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-ide);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.ide-titlebar {
  height: 38px;
  background: var(--ide-sidebar);
  border-bottom: 1px solid var(--ide-border);
  padding: 0 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.75rem;
}

.ide-titlebar-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.ide-traffic-dots {
  display: flex;
  gap: 6px;
}

.ide-traffic-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
}

.ide-traffic-dots span:nth-child(1) { background: #ff5f56; }
.ide-traffic-dots span:nth-child(2) { background: #ffbd2e; }
.ide-traffic-dots span:nth-child(3) { background: #27c93f; }

.ide-brand-mini {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--ide-fg);
  font-weight: 600;
}

.ide-brand-mini img {
  height: 13px;
  width: auto;
}

.ide-command-pill {
  padding: 4px 14px;
  border-radius: 8px;
  background: var(--ide-elevated);
  border: 1px solid var(--ide-border);
  color: var(--ide-fg-sec);
  font-size: 0.72rem;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.ide-command-pill kbd {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  padding: 1px 5px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--ide-fg-muted);
}

.ide-titlebar-badge {
  padding: 2px 9px;
  border-radius: 999px;
  background: rgba(181, 27, 223, 0.16);
  border: 1px solid rgba(181, 27, 223, 0.38);
  color: var(--ide-accent);
  font-size: 0.6875rem;
  font-weight: 600;
}

.ide-body {
  display: grid;
  grid-template-columns: 220px 1fr;
  min-height: 360px;
}

.ide-sidebar {
  background: var(--ide-sidebar);
  border-right: 1px solid var(--ide-border);
  padding: 14px 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ide-sidebar-heading {
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ide-fg-muted);
  padding: 0 6px;
}

.ide-tree {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
  font-size: 0.8rem;
  font-family: var(--font-mono);
}

.ide-tree li {
  padding: 5px 8px;
  border-radius: 6px;
  color: var(--ide-fg-sec);
  display: flex;
  align-items: center;
  gap: 7px;
}

.ide-tree li.active {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
}

.ide-tree .dot-ts { color: var(--ide-pink); }
.ide-tree .dot-json { color: var(--ide-orange); }
.ide-tree .dot-ok { color: var(--ide-green); }

.ide-sidebar-card {
  margin-top: auto;
  padding: 10px 11px;
  border-radius: 10px;
  border: 1px solid rgba(63, 185, 80, 0.35);
  background: rgba(63, 185, 80, 0.08);
  font-size: 0.72rem;
}

.ide-sidebar-card strong {
  display: block;
  color: #4ade80;
  margin-bottom: 2px;
}

.ide-sidebar-card span {
  color: var(--ide-fg-sec);
  line-height: 1.4;
}

.ide-main {
  padding: 20px 22px;
  background: var(--ide-bg);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
}

.ide-panel {
  display: none;
  flex-direction: column;
  gap: 14px;
  animation: ideFade 200ms ease;
}

.ide-panel.active {
  display: flex;
}

@keyframes ideFade {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

.ide-chat-bubble {
  background: var(--ide-elevated);
  border: 1px solid var(--ide-border);
  border-radius: 12px;
  padding: 13px 15px;
  font-size: 0.84rem;
  color: var(--ide-fg);
}

.ide-chat-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
  font-size: 0.72rem;
  color: var(--ide-fg-muted);
}

.ide-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 0.6875rem;
  font-weight: 600;
}

.ide-chip-brand { background: rgba(181, 27, 223, 0.16); color: var(--ide-accent); }
.ide-chip-green { background: rgba(63, 185, 80, 0.15); color: var(--ide-green); }
.ide-chip-purple { background: rgba(163, 113, 247, 0.16); color: var(--ide-purple); }
.ide-chip-orange { background: rgba(210, 153, 34, 0.16); color: var(--ide-orange); }

.ide-code-block {
  background: #0a0b0e;
  border: 1px solid var(--ide-border);
  border-radius: 10px;
  padding: 12px 14px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  line-height: 1.6;
  color: var(--ide-fg-sec);
  overflow-x: auto;
}

.ide-code-add {
  display: block;
  background: rgba(63, 185, 80, 0.13);
  color: #8affc1;
  padding: 0 6px;
  border-radius: 4px;
}

.ide-code-del {
  display: block;
  background: rgba(248, 81, 73, 0.14);
  color: #ff9a9a;
  padding: 0 6px;
  border-radius: 4px;
}

.ide-code-kw { color: var(--ide-purple); }
.ide-code-fn { color: var(--ide-accent); }
.ide-code-str { color: var(--ide-code); }

.ide-grid-mini {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.ide-model-card {
  background: var(--ide-elevated);
  border: 1px solid var(--ide-border);
  border-radius: 10px;
  padding: 12px 14px;
}

.ide-model-card h4 {
  margin: 0 0 4px;
  font-size: 0.84rem;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.ide-model-card p {
  margin: 0;
  font-size: 0.75rem;
  color: var(--ide-fg-sec);
  line-height: 1.45;
}

.ide-statusbar {
  height: 26px;
  background: var(--ide-sidebar);
  border-top: 1px solid var(--ide-border);
  padding: 0 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.7rem;
  color: var(--ide-fg-muted);
  font-family: var(--font-mono);
}

.ide-statusbar-group {
  display: flex;
  align-items: center;
  gap: 14px;
}

/* ==========================================================================
   Metrics Strip
   ========================================================================== */
.metrics-strip {
  padding: 26px 0 44px;
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.metric-card {
  background: #ffffff;
  border: 1px solid var(--nebula-border);
  border-radius: 16px;
  padding: 22px 20px;
  text-align: center;
  box-shadow: var(--shadow-soft);
}

.metric-value {
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--nebula-ink);
  line-height: 1.1;
  margin-bottom: 6px;
}

.metric-label {
  font-size: 0.8125rem;
  color: var(--nebula-ink-muted);
}

/* ==========================================================================
   Sections
   ========================================================================== */
.section {
  padding: 64px 0;
}

.section-header {
  max-width: 680px;
  margin: 0 auto 40px;
  text-align: center;
}

.section-eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  background: var(--nebula-brand-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 10px;
}

.section-title {
  margin: 0 0 12px;
  font-size: clamp(1.65rem, 3vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.18;
  color: var(--nebula-ink);
}

.section-desc {
  margin: 0;
  font-size: 0.96875rem;
  color: var(--nebula-ink-muted);
  line-height: 1.6;
}

/* Bento Features Grid */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.feature-card {
  background: #ffffff;
  border: 1px solid var(--nebula-border);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-card);
  transition: transform 160ms ease, border-color 160ms ease;
}

.feature-card:hover {
  transform: translateY(-2px);
  border-color: rgba(9, 9, 11, 0.24);
}

.feature-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--nebula-surface-soft);
  border: 1px solid var(--nebula-border);
  color: var(--nebula-ink);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  transition: background-color 150ms ease, border-color 150ms ease, color 150ms ease;
}

.feature-card:hover .feature-icon {
  background: var(--nebula-logo-soft);
  border-color: var(--nebula-logo-border);
  color: var(--nebula-logo-accent);
}

.feature-card h3 {
  margin: 0 0 8px;
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--nebula-ink);
}

.feature-card p {
  margin: 0 0 14px;
  font-size: 0.9rem;
  color: var(--nebula-ink-muted);
  line-height: 1.58;
}

.feature-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.feature-tag {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  padding: 3px 9px;
  border-radius: 6px;
  background: var(--nebula-surface-soft);
  border: 1px solid var(--nebula-border);
  color: var(--nebula-ink-secondary);
}

/* ==========================================================================
   Dual Mode AI: nstore + BYOK
   ========================================================================== */
.dual-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.mode-card {
  background: #ffffff;
  border-radius: var(--radius-xl);
  padding: 32px 30px;
  border: 1px solid var(--nebula-border);
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: relative;
  overflow: hidden;
}

.mode-card-nstore::before,
.mode-card-byok::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
}

.mode-card-nstore::before {
  background: var(--nebula-green);
}

.mode-card-byok::before {
  background: var(--nebula-brand-gradient);
}

.mode-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pill-green {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 11px;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
  background: var(--nebula-green-soft);
  border: 1px solid var(--nebula-green-border);
  color: var(--nebula-green);
}

.pill-brand {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 11px;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
  background: var(--nebula-logo-soft);
  border: 1px solid var(--nebula-logo-border);
  color: var(--nebula-logo-text);
}

.mode-card h3 {
  margin: 0;
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.mode-card > p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--nebula-ink-muted);
}

.check-list {
  list-style: none;
  margin: 4px 0 6px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 9px;
  font-size: 0.875rem;
  color: var(--nebula-ink-secondary);
}

.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 9px;
}

.check-icon {
  flex-shrink: 0;
  margin-top: 2px;
  font-weight: 700;
}

.check-green { color: var(--nebula-green); }
.check-brand { color: var(--nebula-logo-accent); }

.mode-card-footer {
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--nebula-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 0.8125rem;
  color: var(--nebula-ink-muted);
}

.inline-link {
  color: var(--nebula-ink);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(9, 9, 11, 0.28);
  transition: color 140ms ease, text-decoration-color 140ms ease;
}

.inline-link:hover {
  color: var(--nebula-logo-accent);
  text-decoration-color: var(--nebula-logo-accent);
}

/* ==========================================================================
   Releases / Publications Hub
   ========================================================================== */
.release-filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-bottom: 24px;
}

.release-filter-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 15px;
  border-radius: 9999px;
  border: 1px solid var(--nebula-border);
  background: #ffffff;
  color: var(--nebula-ink-secondary);
  font-family: inherit;
  font-size: 0.8125rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 140ms ease;
}

.release-filter-btn:hover {
  border-color: var(--nebula-ink);
  color: var(--nebula-ink);
}

.release-filter-btn.active {
  background: var(--nebula-ink);
  border-color: var(--nebula-ink);
  color: #ffffff;
  box-shadow: 0 4px 12px -4px rgba(9, 9, 11, 0.25);
}

.releases-stack {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.release-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.release-card {
  background: var(--nebula-surface);
  border: 1px solid var(--nebula-border);
  border-radius: var(--radius-xl);
  padding: 28px 30px;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.release-card-featured {
  position: relative;
  overflow: hidden;
  border-color: rgba(9, 9, 11, 0.16);
}

.release-card-featured::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--nebula-brand-gradient);
}

.release-card.is-hidden {
  display: none;
}

.release-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.release-badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.release-status-ready {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 4px 12px;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 700;
  background: var(--nebula-green-soft);
  border: 1px solid var(--nebula-green-border);
  color: var(--nebula-green);
}

.release-status-upcoming {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
  background: var(--nebula-amber-soft);
  border: 1px solid rgba(217, 119, 6, 0.28);
  color: #b45309;
}

.release-status-planned {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
  background: var(--nebula-surface-soft);
  border: 1px solid var(--nebula-border);
  color: var(--nebula-ink-secondary);
}

.release-date {
  font-size: 0.8125rem;
  color: var(--nebula-ink-muted);
  font-weight: 500;
}

.release-title-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 10px;
}

.release-title-row h3 {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--nebula-ink);
}

.release-version-code {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 6px;
  background: var(--nebula-surface-soft);
  border: 1px solid var(--nebula-border);
  color: var(--nebula-ink-secondary);
}

.release-summary {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--nebula-ink-muted);
  line-height: 1.58;
}

.release-meta-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  padding: 14px 16px;
  background: var(--nebula-surface-soft);
  border: 1px solid var(--nebula-border);
  border-radius: 12px;
}

.release-meta-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.release-meta-label {
  font-size: 0.71875rem;
  color: var(--nebula-ink-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
}

.release-meta-value {
  font-size: 0.84375rem;
  font-weight: 600;
  color: var(--nebula-ink);
  word-break: break-word;
}

.release-notes {
  border-top: 1px solid var(--nebula-border);
  padding-top: 12px;
}

.release-notes-toggle {
  background: transparent;
  border: none;
  padding: 0;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: inherit;
  font-size: 0.84375rem;
  font-weight: 600;
  color: var(--nebula-ink);
  cursor: pointer;
  transition: color 140ms ease;
}

.release-notes-toggle:hover {
  color: var(--nebula-logo-accent);
  text-decoration: underline;
}

.release-notes-toggle svg {
  transition: transform 170ms ease;
}

.release-notes.open .release-notes-toggle svg {
  transform: rotate(180deg);
}

.release-notes-body {
  display: none;
  margin-top: 12px;
}

.release-notes.open .release-notes-body {
  display: block;
}

.release-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  padding-top: 14px;
  border-top: 1px solid var(--nebula-border);
  margin-top: auto;
}

/* ==========================================================================
   Tester Access & Security Callout
   ========================================================================== */
.tester-banner {
  background: #ffffff;
  border: 1px solid var(--nebula-border);
  border-radius: var(--radius-xl);
  padding: 42px 40px;
  box-shadow: var(--shadow-card);
  display: grid;
  grid-template-columns: 1.25fr 0.95fr;
  gap: 36px;
  align-items: center;
}

.tester-steps {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 20px;
}

.tester-step {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.step-num {
  width: 28px;
  height: 28px;
  border-radius: 9999px;
  background: var(--nebula-ink);
  border: 1px solid var(--nebula-ink);
  color: #ffffff;
  font-size: 0.8125rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.tester-step strong {
  display: block;
  font-size: 0.9375rem;
  color: var(--nebula-ink);
  margin-bottom: 2px;
}

.tester-step span {
  font-size: 0.84rem;
  color: var(--nebula-ink-muted);
}

.tester-cta-box {
  background: var(--nebula-surface-soft);
  border: 1px solid var(--nebula-border);
  border-radius: 18px;
  padding: 28px 26px;
  text-align: center;
}

.tester-cta-logo {
  width: 54px;
  height: 54px;
  margin: 0 auto 14px;
  border-radius: 14px;
  background: #ffffff;
  border: 1px solid var(--nebula-border);
  box-shadow: 0 4px 12px rgba(9, 9, 11, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
}

.tester-cta-logo img {
  width: 32px;
  height: auto;
}

.tester-cta-box h3 {
  margin: 0 0 6px;
  font-size: 1.2rem;
  font-weight: 700;
}

.tester-cta-box p {
  margin: 0 0 20px;
  font-size: 0.85rem;
  color: var(--nebula-ink-muted);
}

.tester-cta-box .btn {
  width: 100%;
}

.tester-security-list {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--nebula-border);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 14px;
  font-size: 0.74rem;
  color: var(--nebula-ink-muted);
}

/* ==========================================================================
   Docs & Legal Cards
   ========================================================================== */
.docs-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.doc-card {
  display: flex;
  flex-direction: column;
  background: #ffffff;
  border: 1px solid var(--nebula-border);
  border-radius: 14px;
  padding: 22px;
  box-shadow: var(--shadow-soft);
  transition: border-color 150ms ease, transform 150ms ease, box-shadow 150ms ease;
}

.doc-card:hover {
  border-color: var(--nebula-ink);
  transform: translateY(-2px);
  box-shadow: 0 10px 24px -14px rgba(9, 9, 11, 0.18);
}

.doc-kicker {
  display: inline-block;
  width: fit-content;
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: var(--nebula-brand-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 6px;
}

.doc-card h3 {
  margin: 0 0 6px;
  font-size: 1rem;
  font-weight: 700;
  color: var(--nebula-ink);
}

.doc-card p {
  margin: 0;
  font-size: 0.84rem;
  color: var(--nebula-ink-muted);
  line-height: 1.5;
}

/* ==========================================================================
   FAQ Accordion
   ========================================================================== */
.faq-list {
  max-width: 780px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background: #ffffff;
  border: 1px solid var(--nebula-border);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}

.faq-trigger {
  width: 100%;
  background: transparent;
  border: none;
  padding: 18px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--nebula-ink);
  text-align: left;
  cursor: pointer;
}

.faq-trigger svg {
  flex-shrink: 0;
  color: var(--nebula-ink-muted);
  transition: transform 180ms ease;
}

.faq-item.open .faq-trigger svg {
  transform: rotate(180deg);
  color: var(--nebula-logo-accent);
}

.faq-answer {
  display: none;
  padding: 0 22px 18px;
  font-size: 0.88rem;
  color: var(--nebula-ink-muted);
  line-height: 1.6;
}

.faq-item.open .faq-answer {
  display: block;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  margin-top: 48px;
  border-top: 1px solid var(--nebula-border);
  background: #ffffff;
  padding: 48px 0 32px;
  position: relative;
  z-index: 2;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 36px;
}

.footer-desc {
  margin: 12px 0 0;
  font-size: 0.84rem;
  color: var(--nebula-ink-muted);
  max-width: 300px;
  line-height: 1.55;
}

.footer-col h4 {
  margin: 0 0 12px;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--nebula-ink);
}

.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-col a {
  font-size: 0.84rem;
  color: var(--nebula-ink-muted);
  transition: color 130ms ease;
}

.footer-col a:hover {
  color: var(--nebula-ink);
}

.footer-bottom {
  padding-top: 22px;
  border-top: 1px solid var(--nebula-border);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.78rem;
  color: var(--nebula-ink-subtle);
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 960px) {
  .metrics-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bento-grid,
  .dual-grid,
  .release-grid,
  .tester-banner { grid-template-columns: 1fr; }
  .release-meta-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .docs-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ide-body { grid-template-columns: 1fr; }
  .ide-sidebar { display: none; }
}

@media (max-width: 720px) {
  .nav-links,
  .nav-actions .btn-ghost {
    display: none;
  }

  .mobile-menu-btn {
    display: inline-flex;
  }

  .site-header.menu-open .nav-links {
    display: flex;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    background: #ffffff;
    border-bottom: 1px solid var(--nebula-border);
    flex-direction: column;
    align-items: stretch;
    padding: 14px 24px 18px;
    box-shadow: 0 14px 30px rgba(9, 9, 11, 0.08);
  }

  .hero { padding: 44px 0 36px; }
  .docs-grid,
  .footer-grid,
  .ide-grid-mini,
  .release-meta-grid { grid-template-columns: 1fr; }
  .release-card { padding: 22px 20px; }
  .tester-banner { padding: 26px 22px; }
  .ide-command-pill { display: none; }
}
