:root {
  --bg: #06080d;
  --bg-elevated: #0c1018;
  --surface: #111827;
  --surface-hover: #161f2e;
  --text: #f1f5fb;
  --muted: #8b9bb8;
  --accent: #4d9fff;
  --accent-2: #7c5cff;
  --accent-glow: rgba(77, 159, 255, 0.35);
  --ok: #34d399;
  --warn: #fbbf24;
  --border: rgba(148, 163, 184, 0.14);
  --radius: 14px;
  --radius-lg: 22px;
  --font: "DM Sans", ui-sans-serif, system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
  --container: 1140px;
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --layout-bottom-pad: max(72px, calc(var(--safe-bottom) + 56px));
  --section-divider: rgba(148, 163, 184, 0.16);
  --header-surface: rgba(10, 15, 24, 0.94);
}

*, *::before, *::after { box-sizing: border-box; }
html {
  scroll-padding-top: calc(88px + env(safe-area-inset-top, 0px));
  color-scheme: dark;
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  padding-bottom: var(--layout-bottom-pad);
  touch-action: manipulation;
}
::selection {
  background: rgba(77, 159, 255, 0.28);
  color: var(--text);
}
img { max-width: 100%; display: block; }
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: #7cb8ff; }

.container { width: min(100% - 40px, var(--container)); margin-inline: auto; }

.skip-link {
  position: absolute;
  left: 12px;
  top: 12px;
  z-index: 200;
  padding: 10px 14px;
  border-radius: 10px;
  background: var(--surface);
  color: var(--text);
  font-weight: 600;
  text-decoration: none;
  box-shadow: var(--shadow);
  transform: translateY(-140%);
}
.skip-link:focus,
.skip-link:focus-visible {
  transform: translateY(0);
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* Ensure page content cleanly stacks above fixed ambient mesh background */
.site-header,
.hero,
.section,
.page-hero,
.prose-wrap,
.site-footer {
  position: relative;
  z-index: 1;
}

/* Development notice marquee */
.dev-notice-banner {
  position: relative;
  z-index: 110;
  background: linear-gradient(90deg, rgba(251, 191, 36, 0.18), rgba(251, 146, 60, 0.14), rgba(251, 191, 36, 0.18));
  border-bottom: 1px solid rgba(251, 191, 36, 0.35);
  overflow: hidden;
  padding-right: 112px;
}
.dev-notice-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(251, 191, 36, 0.08), transparent);
  animation: notice-shimmer 3s ease-in-out infinite;
  pointer-events: none;
}
@keyframes notice-shimmer {
  0%, 100% { opacity: 0.4; transform: translateX(-30%); }
  50% { opacity: 1; transform: translateX(30%); }
}
.dev-notice-track {
  display: flex;
  width: max-content;
  animation: notice-scroll 45s linear infinite;
  padding: 10px 0;
}
.dev-notice-banner:hover .dev-notice-track,
.dev-notice-banner:focus-within .dev-notice-track,
.dev-notice-banner.is-paused .dev-notice-track {
  animation-play-state: paused;
}
.dev-notice-controls {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 6px;
}
.dev-notice-pause {
  min-width: 28px;
  height: 28px;
  padding: 0 8px;
  border: none;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.35);
  color: #fde68a;
  font-size: 0.6875rem;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  transition: background 0.15s;
}
.dev-notice-pause:hover { background: rgba(0, 0, 0, 0.55); }
.dev-notice-pause[aria-pressed="true"] { background: rgba(0, 0, 0, 0.55); }
@keyframes notice-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.dev-notice-content {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 24px;
  white-space: nowrap;
  font-size: 0.875rem;
  font-weight: 500;
  color: #fde68a;
}
.dev-notice-content .notice-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(251, 191, 36, 0.22);
  border: 1px solid rgba(251, 191, 36, 0.45);
  color: #fef3c7;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.dev-notice-content .notice-badge::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--warn);
  animation: notice-pulse 1.5s ease-in-out infinite;
}
@keyframes notice-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.85); }
}
.dev-notice-content a {
  color: #fcd34d;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.dev-notice-content a:hover { color: #fef08a; }
.dev-notice-dismiss {
  position: static;
  transform: none;
  width: 28px;
  height: 28px;
  border: none;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.35);
  color: #fde68a;
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.15s;
}
.dev-notice-dismiss:hover { background: rgba(0, 0, 0, 0.55); }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(18px) saturate(1.15);
  background: rgba(6, 8, 13, 0.9);
  border-bottom: 1px solid rgba(148, 163, 184, 0.14);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.22);
}
.header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0 10px;
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.header-cta {
  white-space: nowrap;
}
.header-nav-shell {
  border-top: 1px solid rgba(148, 163, 184, 0.08);
}
.header-nav {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 4px 16px;
  padding: 7px 0 9px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  mask-image: linear-gradient(90deg, transparent, #000 12px, #000 calc(100% - 12px), transparent);
}
.header-nav::-webkit-scrollbar { display: none; }
.header-nav a {
  flex-shrink: 0;
  white-space: nowrap;
}
@media (min-width: 901px) {
  .header-nav {
    justify-content: center;
  }
}
.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 16px 0;
  flex-wrap: nowrap;
  position: relative;
}
.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--text);
  text-decoration: none;
  transition: opacity 0.15s;
}
.brand:hover { opacity: 0.92; }
.brand-logo {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: 16px;
  background: linear-gradient(145deg, rgba(77,159,255,0.18), rgba(124,92,255,0.12));
  border: 1px solid rgba(77, 159, 255, 0.32);
  box-shadow: 0 0 0 1px rgba(255,255,255,0.06) inset, 0 8px 28px rgba(77, 159, 255, 0.18);
}
.brand-logo img,
.brand-logo svg {
  width: 56px;
  height: 56px;
  border-radius: 13px;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.35));
}
.brand-text {
  display: flex;
  flex-direction: column;
  gap: 1px;
  line-height: 1.2;
}
.brand-name {
  font-weight: 700;
  font-size: 1.12rem;
  letter-spacing: -0.02em;
}
.brand-by {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0.02em;
}
.header-nav a,
.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.84rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  transition: color 0.15s;
}
.header-nav a:hover,
.nav-links a:hover { color: var(--text); }
.nav-links {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: nowrap;
}
.nav-links a:focus-visible,
.brand:focus-visible,
.btn:focus-visible,
.nav-toggle:focus-visible,
.gallery-btn:focus-visible,
.feature-img-btn:focus-visible,
.hero-shot-btn:focus-visible,
.install-img-btn:focus-visible,
.privacy-visual-btn:focus-visible,
.author-visual-btn:focus-visible,
.lightbox-close:focus-visible,
.lightbox-nav:focus-visible,
.subscribe-form input:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.nav-cta {
  padding: 9px 16px !important;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff !important;
  font-weight: 600 !important;
  box-shadow: 0 4px 16px var(--accent-glow);
}
.nav-cta:hover { color: #fff !important; filter: brightness(1.08); }

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  cursor: pointer;
  transition: background 0.15s;
}
.nav-toggle:hover { background: rgba(255, 255, 255, 0.08); }
.nav-toggle-bar {
  display: block;
  width: 100%;
  height: 2px;
  border-radius: 2px;
  background: var(--text);
  transition: transform 0.2s, opacity 0.2s;
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) {
  opacity: 0;
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 900px) {
  .nav-toggle { display: flex; }
  .header-nav-shell {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: rgba(6, 8, 13, 0.98);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.42);
    z-index: 150;
  }
  .header-nav-shell:has(.nav-open) { display: block; }
  .header-nav,
  .nav-links {
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 10px 20px 18px;
    padding-bottom: calc(18px + var(--safe-bottom));
    max-height: min(70vh, calc(100dvh - 88px - var(--safe-bottom)));
    overflow-y: auto;
    overflow-x: hidden;
    mask-image: none;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
  }
  .header-nav.nav-open,
  .nav-links.nav-open { display: flex; }
  .site-header { position: sticky; }
  .nav {
    position: relative;
    flex-wrap: nowrap;
  }
  .header-nav a,
  .nav-links a {
    padding: 11px 4px;
    border-bottom: 1px solid rgba(148, 163, 184, 0.08);
    font-size: 0.95rem;
    white-space: normal;
  }
  .header-nav a:last-child,
  .nav-links a:last-child { border-bottom: none; }
  body.nav-menu-open { overflow: hidden; }
}
@media (max-width: 720px) {
  .brand-by { display: none; }
}

/* Hero */
.hero {
  position: relative;
  min-height: min(88vh, 820px);
  display: flex;
  align-items: center;
  overflow: hidden;
  border-bottom: none;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(ellipse 90% 60% at 18% 0%, rgba(77, 159, 255, 0.1), transparent 58%),
    radial-gradient(ellipse 70% 50% at 88% 18%, rgba(124, 92, 255, 0.12), transparent 55%),
    linear-gradient(180deg, rgba(10, 15, 24, 0.72) 0%, rgba(6, 8, 13, 0.2) 72%, transparent 100%);
  overflow: hidden;
}
.hero-mesh {
  position: absolute;
  inset: 0;
  opacity: 0.35;
  background-image:
    linear-gradient(rgba(77,159,255,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(77,159,255,0.06) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, black, transparent);
}
.hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
}
.hero-glow-a {
  width: 420px;
  height: 420px;
  top: -80px;
  right: 10%;
  background: rgba(124, 92, 255, 0.18);
}
.hero-glow-b {
  width: 360px;
  height: 360px;
  bottom: -60px;
  left: -40px;
  background: rgba(77, 159, 255, 0.14);
}
.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: clamp(28px, 4vw, 52px);
  align-items: start;
  padding: clamp(40px, 6vw, 64px) 0 clamp(56px, 7vw, 80px);
}
@media (min-width: 961px) {
  .hero-inner { align-items: center; }
  .hero-visual { justify-content: center; }
}
@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; padding: 36px 0 52px; }
  .hero-visual { order: -1; }
  .hero-cta-primary { grid-template-columns: 1fr; }
  .hero-orbit { height: 280px; }
}
@media (max-width: 520px) {
  .hero { min-height: auto; }
  .hero-inner { padding: 28px 0 44px; }
  .brand-logo { width: 52px; height: 52px; }
  .brand-logo img, .brand-logo svg { width: 44px; height: 44px; }
  .hero-highlights { flex-direction: column; gap: 8px; }
}
.hero-copy {
  position: relative;
  padding: 8px 0 0;
  max-width: 40rem;
}
.hero-intro {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: clamp(22px, 3vw, 30px);
}
.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #8fa3c4;
}
.hero-kicker-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #5eead4;
  box-shadow: none;
  animation: hero-pulse 3s ease-in-out infinite;
}
.hero-status-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin: 0;
}
.hero-release-badge {
  margin-left: 2px;
}
.hero-platforms {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(148, 163, 184, 0.12);
}
.hero-platforms-label {
  flex-shrink: 0;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #7d8fa8;
}
.hero-platforms-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
@keyframes hero-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.7; transform: scale(0.92); }
}
.hero-visual {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: 100%;
  min-height: 0;
}
.hero-visual-stage {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  min-height: 0;
  padding: 0;
  isolation: isolate;
  overflow: visible;
  width: 100%;
}
.hero-orbit {
  position: relative;
  width: min(100%, 320px);
  height: 100%;
  margin: 0 auto;
  pointer-events: none;
  z-index: 1;
  flex-shrink: 0;
}
.hero-orbit-ring--inner {
  inset: 20% 16% 24%;
  border-color: rgba(124, 92, 255, 0.18);
  animation-direction: reverse;
  animation-duration: 22s;
}
.hero-orbit-ring {
  position: absolute;
  inset: 12% 8% 18%;
  border-radius: 50%;
  border: 1px dashed rgba(77, 159, 255, 0.22);
  animation: hero-orbit-spin 28s linear infinite;
}
.hero-orbit-glow {
  position: absolute;
  inset: 22% 18% 28%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(124, 92, 255, 0.16), transparent 68%);
  animation: hero-orbit-pulse 5s ease-in-out infinite;
}
.hero-orbit-mascot {
  position: absolute;
  top: 50%;
  left: 50%;
  width: clamp(76px, 14vw, 112px);
  height: clamp(76px, 14vw, 112px);
  transform: translate(-50%, -50%);
  z-index: 1;
  filter: drop-shadow(0 10px 28px rgba(57, 255, 20, 0.14));
  animation: hero-mascot-breathe 5s ease-in-out infinite;
}
.hero-orbit-icon {
  position: absolute;
  width: 52px;
  height: 52px;
  padding: 10px;
  border-radius: 16px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: linear-gradient(165deg, rgba(17, 24, 39, 0.92), rgba(10, 14, 22, 0.88));
  box-shadow:
    0 14px 32px rgba(0, 0, 0, 0.35),
    0 0 24px rgba(77, 159, 255, 0.08);
  object-fit: contain;
  animation: hero-orbit-float 6s ease-in-out infinite;
}
.hero-orbit-icon--ide {
  top: 6%;
  left: 4%;
  animation-delay: 0s;
}
.hero-orbit-icon--browser {
  top: 14%;
  right: 2%;
  animation-delay: 1.2s;
}
.hero-orbit-icon--shield {
  bottom: 18%;
  left: 0;
  animation-delay: 2.4s;
}
.hero-orbit-icon--budget {
  bottom: 8%;
  right: 6%;
  animation-delay: 3.6s;
}
@keyframes hero-orbit-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
@keyframes hero-orbit-pulse {
  0%, 100% { opacity: 0.55; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.04); }
}
@keyframes hero-orbit-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
@keyframes hero-mascot-breathe {
  0%, 100% {
    transform: translate(-50%, -50%) scale(1);
    filter: drop-shadow(0 10px 28px rgba(57, 255, 20, 0.14));
  }
  50% {
    transform: translate(-50%, -52%) scale(1.05);
    filter: drop-shadow(0 14px 36px rgba(124, 92, 255, 0.28));
  }
}
.hero-visual-stage .hero-stats-dashboard {
  position: relative;
  z-index: 2;
  width: 100%;
  margin: 0;
}
.hero-device {
  border: 1px solid rgba(77, 159, 255, 0.28);
  border-radius: calc(var(--radius-lg) + 2px);
  overflow: hidden;
  background: linear-gradient(180deg, rgba(17, 24, 39, 0.95), rgba(8, 12, 18, 0.98));
  box-shadow:
    0 28px 72px rgba(0, 0, 0, 0.5),
    0 0 48px rgba(77, 159, 255, 0.08),
    0 0 0 1px rgba(255, 255, 255, 0.05) inset;
  transform: translateY(0);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.hero-device:hover {
  transform: translateY(-3px);
  box-shadow:
    0 32px 80px rgba(0, 0, 0, 0.55),
    0 0 64px rgba(124, 92, 255, 0.12),
    0 0 0 1px rgba(255, 255, 255, 0.06) inset;
}
.hero-device-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  background: rgba(8, 12, 18, 0.9);
}
.hero-device-bar span:not(.hero-device-title) {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(148, 163, 184, 0.28);
}
.hero-device-bar span:nth-child(1) { background: #f87171; opacity: 0.85; }
.hero-device-bar span:nth-child(2) { background: #fbbf24; opacity: 0.85; }
.hero-device-bar span:nth-child(3) { background: #34d399; opacity: 0.85; }
.hero-device-title {
  margin-left: auto;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--muted);
  text-transform: uppercase;
}
.hero-shot-btn {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: none;
  border-radius: 0;
  overflow: hidden;
  background: #0a0e14;
  cursor: zoom-in;
  box-shadow: none;
}
.hero-shot {
  width: 100%;
  display: block;
  aspect-ratio: 4/3;
  object-fit: cover;
}
.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 0;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 10px;
  border-radius: 6px;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(148, 163, 184, 0.14);
  color: #9fb0cb;
}
.badge.badge-brand {
  color: #c8daf5;
  border-color: rgba(148, 163, 184, 0.22);
  background: rgba(255, 255, 255, 0.04);
}
.badge.accent {
  color: #b8d4f5;
  border-color: rgba(77, 159, 255, 0.22);
  background: rgba(77, 159, 255, 0.06);
}
.badge.accent.live {
  color: #9fd9c9;
  border-color: rgba(94, 234, 212, 0.22);
  background: rgba(94, 234, 212, 0.06);
}
.badge.accent.live::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #5eead4;
  box-shadow: none;
}
.badge.accent.pending {
  color: #e8d08a;
  border-color: rgba(251, 191, 36, 0.24);
  background: rgba(251, 191, 36, 0.06);
}
.badge.muted {
  text-transform: none;
  letter-spacing: 0.01em;
  font-size: 0.75rem;
  color: #8fa0ba;
}

h1 {
  font-size: clamp(2.15rem, 4.6vw, 3.45rem);
  line-height: 1.06;
  margin: 0 0 14px;
  font-weight: 700;
  letter-spacing: -0.035em;
  text-wrap: balance;
}
.hero-accent {
  background: linear-gradient(135deg, #7cb8ff 0%, #a78bfa 55%, #7c5cff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.lead {
  color: #a8b8d4;
  font-size: clamp(1rem, 1.6vw, 1.1rem);
  line-height: 1.65;
  max-width: 48ch;
  margin: 0 0 20px;
}
.hero-highlights {
  list-style: none;
  margin: 0 0 26px;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
}
.hero-highlights li {
  position: relative;
  padding-left: 18px;
  font-size: 0.9rem;
  font-weight: 500;
  color: #c5d2ea;
}
.hero-highlights li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 0 10px rgba(77, 159, 255, 0.35);
}
.hero-cta {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
}
.hero-cta-group-label {
  margin: 2px 0 0;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #6d7f98;
}
.hero-cta-primary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
}
.hero-install-btn {
  flex-direction: row;
  align-items: center;
  gap: 8px;
}
.hero-install-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.hero-install-icon img,
.hero-install-icon svg {
  display: block;
  width: 16px;
  height: 16px;
}
.hero-install-icon--brand {
  color: #e8a86a;
}
.hero-install-btn--chrome .hero-install-icon--brand {
  color: #8ec0ff;
}
.hero-install-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1px;
  min-width: 0;
  flex: 1;
}
.hero-install-copy .btn-label {
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}
.hero-install-copy small {
  font-size: 0.64rem;
  line-height: 1.2;
  opacity: 0.72;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}
.hero-cta-tertiary {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding-top: 2px;
}
.hero-cta-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  font-size: 0.76rem;
  font-weight: 600;
  border-radius: 8px;
}
.btn-hero {
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  padding: 14px 16px;
  min-height: 64px;
  text-align: left;
}
.btn-hero.hero-install-btn {
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  min-height: 0;
  padding: 5px 9px;
  border-radius: 9px;
  text-align: left;
  background: rgba(11, 15, 23, 0.78);
  border: 1px solid rgba(148, 163, 184, 0.16);
  box-shadow: none;
  color: #e8edf5;
  font-weight: 600;
  font-size: 0.78rem;
  transition: border-color 0.15s, background 0.15s, transform 0.15s;
}
.btn-hero.hero-install-btn:hover {
  transform: translateY(-1px);
  background: rgba(18, 24, 36, 0.92);
  border-color: rgba(148, 163, 184, 0.28);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.18);
}
.btn-hero.hero-install-btn.primary:not(.alt) {
  background: rgba(14, 20, 32, 0.88);
  border-color: rgba(77, 159, 255, 0.28);
  border-left-width: 2px;
  border-left-color: #4d9fff;
  color: #f4f7fb;
}
.btn-hero.hero-install-btn.primary:not(.alt):hover {
  border-color: rgba(77, 159, 255, 0.42);
  border-left-color: #6eb0ff;
}
.hero-cta-chip img {
  opacity: 0.9;
  width: 16px;
  height: 16px;
}
.btn-hero .btn-label {
  font-size: 0.92rem;
  line-height: 1.25;
}
.btn-hero small {
  font-size: 0.76rem;
  opacity: 0.88;
}
.btn-hero.primary {
  box-shadow: 0 4px 18px rgba(77, 159, 255, 0.22);
}
.btn-hero.hero-install-btn.primary {
  box-shadow: none;
}
.btn-hero.primary.alt {
  background: linear-gradient(135deg, #5b8def 0%, #4d9fff 45%, #7c5cff 100%);
}
.btn-hero.hero-install-btn.primary.alt {
  background: rgba(11, 15, 23, 0.78);
  border-left-width: 1px;
  border-left-color: rgba(148, 163, 184, 0.16);
  color: #e8edf5;
}
.btn-hero.hero-install-btn.primary.alt:hover {
  background: rgba(18, 24, 36, 0.92);
  border-left-color: rgba(148, 163, 184, 0.28);
}
.btn-hero.primary.alt:hover {
  background: rgba(24, 32, 48, 0.88);
  border-color: rgba(148, 163, 184, 0.32);
}
.hero-cta-secondary {
  width: fit-content;
  padding: 11px 16px;
  font-size: 0.9rem;
}
.hero-cta-version {
  font-family: var(--mono);
  font-size: 0.82em;
  opacity: 0.9;
}
.hero-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 12px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
  max-width: 100%;
}
.hero-meta-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.hero-meta code {
  font-family: var(--mono);
  font-size: 0.8rem;
  color: #c8daf5;
  word-break: break-all;
}
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 16px; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 13px 22px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform 0.15s, box-shadow 0.15s, background 0.15s;
  cursor: pointer;
}
.btn:hover { transform: translateY(-1px); }
.btn small { opacity: 0.85; font-weight: 500; font-size: 0.8rem; }
.btn.primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
  box-shadow: 0 8px 32px var(--accent-glow);
}
.hero-cta .btn.btn-hero.hero-install-btn {
  padding: 6px 10px;
  min-height: 0;
  border-radius: 10px;
  background: rgba(11, 15, 23, 0.82);
  border: 1px solid rgba(148, 163, 184, 0.18);
  color: #e8edf5;
  transition:
    border-color 0.25s ease,
    background 0.25s ease,
    transform 0.15s ease,
    box-shadow 0.25s ease;
}
.hero-cta .btn.btn-hero.hero-install-btn:hover {
  transform: translateY(-1px);
  border-color: rgba(148, 163, 184, 0.32);
  box-shadow:
    0 0 0 1px rgba(124, 92, 255, 0.2),
    0 6px 22px rgba(0, 0, 0, 0.22);
}
.hero-cta .btn.btn-hero.hero-install-btn.primary.alt {
  background: linear-gradient(135deg, rgba(14, 18, 28, 0.9), rgba(10, 14, 22, 0.88));
  border: 1px solid rgba(148, 163, 184, 0.2);
  color: #e8edf5;
  box-shadow:
    0 0 0 1px rgba(124, 92, 255, 0.08),
    0 2px 14px rgba(0, 0, 0, 0.16);
}
.hero-cta .btn.btn-hero.hero-install-btn.primary.alt:hover {
  border-color: rgba(124, 92, 255, 0.32);
  box-shadow:
    0 0 0 1px rgba(124, 92, 255, 0.22),
    0 6px 24px rgba(124, 92, 255, 0.14);
}
.hero-cta .btn.secondary.hero-cta-chip {
  padding: 5px 10px;
  font-size: 0.76rem;
  border-radius: 8px;
}
.btn.secondary {
  background: var(--surface);
  color: var(--text);
  border-color: var(--border);
}
.btn.ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}
.btn.block { width: 100%; }
.meta-line { color: var(--muted); font-size: 0.88rem; margin: 0; }
.meta-line code {
  font-family: var(--mono);
  font-size: 0.82rem;
  background: rgba(255,255,255,0.05);
  padding: 2px 8px;
  border-radius: 6px;
}

.glass {
  background: rgba(17, 24, 39, 0.72);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow);
}
.panel-head {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #8fa0ba;
  margin-bottom: 16px;
  font-weight: 600;
}
.panel-live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #5eead4;
  box-shadow: none;
  animation: hero-pulse 3s ease-in-out infinite;
}
.stat-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 0.92rem;
}
.stat-row strong { color: var(--text); font-weight: 600; }
.stat-row strong.ok { color: var(--ok); }
.stat-row strong.warn { color: var(--warn); }
.meter {
  height: 9px;
  background: rgba(255,255,255,0.06);
  border-radius: 999px;
  overflow: hidden;
  margin: 6px 0 18px;
}
.meter-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  border-radius: 999px;
}
.panel-note { font-size: 0.78rem; color: var(--muted); margin: 16px 0 0; }

/* Sections */
.section {
  padding: clamp(56px, 8vw, 88px) 0;
  background: transparent;
}
.section-head {
  margin-bottom: clamp(28px, 4vw, 44px);
  max-width: 42rem;
}
.section-head h2 {
  margin: 8px 0 12px;
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  letter-spacing: -0.02em;
  line-height: 1.15;
  text-wrap: balance;
}
.section-lead {
  color: var(--muted);
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.65;
  max-width: 38rem;
}
.eyebrow {
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin: 0;
}

/* Features */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
@media (max-width: 960px) { .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .feature-grid { grid-template-columns: 1fr; } }
.feature-card {
  background: rgba(14, 18, 28, 0.72);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.feature-card:hover {
  border-color: rgba(77, 159, 255, 0.28);
  background: rgba(17, 24, 39, 0.82);
  transform: none;
  box-shadow: none;
}
.feature-img-btn,
.gallery-btn,
.hero-shot-btn,
.install-img-btn,
.privacy-visual-btn {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  margin: 0;
  border: none;
  background: #0a0e14;
  cursor: zoom-in;
  overflow: hidden;
}
.feature-img-btn img {
  width: 100%;
  display: block;
  aspect-ratio: 4/3;
  object-fit: contain;
  background: #0a0e14;
}
.zoom-hint {
  position: absolute;
  right: 12px;
  bottom: 12px;
  padding: 6px 10px;
  border-radius: 8px;
  font-size: 0.72rem;
  font-weight: 600;
  color: #fff;
  background: rgba(6, 8, 13, 0.78);
  border: 1px solid rgba(255,255,255,0.12);
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.2s, transform 0.2s;
  pointer-events: none;
}
.feature-img-btn:hover .zoom-hint,
.gallery-btn:hover .zoom-hint,
.hero-shot-btn:hover .zoom-hint,
.install-img-btn:hover .zoom-hint,
.privacy-visual-btn:hover .zoom-hint,
.author-visual-btn:hover .zoom-hint {
  opacity: 1;
  transform: translateY(0);
}
.feature-body { padding: 22px 24px 26px; }
.feature-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 8px;
  font-size: 1.15rem;
}
.feature-title img {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  opacity: 0.95;
}
.feature-body h3 { margin: 0 0 8px; font-size: 1.15rem; }
.feature-body p { margin: 0; color: var(--muted); font-size: 0.95rem; }

.feature-list-wrap {
  margin-top: clamp(44px, 6vw, 72px);
  padding-top: clamp(44px, 6vw, 72px);
  border-top: 1px solid var(--border);
}
.feature-list-head {
  max-width: 640px;
  margin-bottom: clamp(24px, 4vw, 36px);
}
.feature-list-title {
  margin: 0 0 10px;
  font-size: clamp(1.25rem, 2.2vw, 1.55rem);
  letter-spacing: -0.02em;
}
.feature-list-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
@media (max-width: 1024px) {
  .feature-list-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .feature-list-grid { grid-template-columns: 1fr; }
}
.feature-list-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 18px 18px 20px;
  background: linear-gradient(145deg, rgba(17, 24, 39, 0.72), rgba(12, 16, 24, 0.88));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color 0.22s ease, transform 0.22s ease, box-shadow 0.22s ease;
}
.feature-list-item:hover {
  border-color: rgba(77, 159, 255, 0.32);
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.22);
}
.feature-list-icon {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(145deg, rgba(77, 159, 255, 0.14), rgba(124, 92, 255, 0.1));
  border: 1px solid rgba(77, 159, 255, 0.22);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}
.feature-list-icon img {
  width: 24px;
  height: 24px;
  opacity: 0.95;
}
.feature-list-copy strong {
  display: block;
  margin-bottom: 6px;
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.01em;
}
.feature-list-copy p {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.55;
  color: var(--muted);
}

/* Gallery */
.gallery-section { background: var(--bg-elevated); border-block: 1px solid var(--border); }
.gallery-masonry {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  align-items: stretch;
}
@media (max-width: 900px) { .gallery-masonry { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .gallery-masonry { grid-template-columns: minmax(0, 1fr); } }
.gallery-item {
  margin: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  background: linear-gradient(180deg, var(--surface) 0%, rgba(17, 24, 39, 0.92) 100%);
  display: flex;
  flex-direction: column;
  min-width: 0;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.gallery-item:hover {
  transform: translateY(-3px);
  border-color: rgba(77, 159, 255, 0.35);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.28);
}
.gallery-item.wide { grid-column: 1 / -1; }
.gallery-btn {
  flex: 1 1 auto;
  min-height: 0;
}
.gallery-btn img {
  width: 100%;
  display: block;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  background: #0a0e14;
  transition: transform 0.35s ease;
}
.gallery-item.wide .gallery-btn img {
  aspect-ratio: 21 / 9;
  max-height: 360px;
}
.gallery-item:hover .gallery-btn img { transform: scale(1.02); }
.gallery-item figcaption {
  padding: 12px 16px;
  font-size: 0.84rem;
  font-weight: 500;
  color: var(--muted);
  border-top: 1px solid var(--border);
  background: rgba(8, 12, 18, 0.55);
}

/* Install */
.install-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  align-items: stretch;
}
.install-card.visual {
  grid-column: 1 / -1;
  min-height: 280px;
}
@media (max-width: 900px) {
  .install-grid { grid-template-columns: 1fr; }
  .install-card.visual { grid-column: auto; min-height: 220px; }
}
.marketplace-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}
@media (max-width: 720px) {
  .marketplace-grid { grid-template-columns: 1fr; }
}
.install-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 26px;
  display: flex;
  flex-direction: column;
  height: 100%;
}
.install-card .btn.block { margin-top: auto; }
.install-card.recommended {
  border-color: rgba(77,159,255,0.35);
  box-shadow: 0 0 0 1px rgba(77,159,255,0.08), 0 16px 48px rgba(0,0,0,0.25);
}
.install-card.visual { padding: 0; overflow: hidden; }

.offline-browser-section {
  margin-top: 36px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}
.offline-install-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}
@media (max-width: 900px) {
  .offline-install-grid { grid-template-columns: 1fr; }
}
.install-card.offline-card {
  border-color: rgba(124, 92, 255, 0.22);
  background: linear-gradient(180deg, rgba(124, 92, 255, 0.06), var(--surface));
}
.install-steps {
  margin: 0 0 16px;
  padding-left: 1.15rem;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.55;
}
.install-steps li + li { margin-top: 8px; }
.install-steps code {
  font-size: 0.84em;
  color: var(--text);
}
.muted-note {
  margin: 0 0 16px;
  font-size: 0.86rem;
  color: var(--muted);
  line-height: 1.5;
}
.offline-actions {
  display: grid;
  gap: 10px;
  margin-top: auto;
}

.install-img-btn { height: 100%; min-height: 280px; }
.install-img-btn img { width: 100%; height: 100%; min-height: 280px; object-fit: cover; object-position: center top; background: #0a0e14; }
.install-label {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 10px;
}
.install-card h3 { margin: 0 0 10px; }
.install-card p { color: var(--muted); margin: 0 0 14px; font-size: 0.94rem; }
.code-block {
  background: #080c12;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px 16px;
  margin: 0 0 16px;
  overflow-x: auto;
}
.code-block code {
  font-family: var(--mono);
  font-size: 0.82rem;
  color: #c8daf5;
  white-space: pre-wrap;
  word-break: break-all;
}

/* Release */
.release-section {
  background: linear-gradient(180deg, var(--bg-elevated), var(--bg));
  border-block: 1px solid var(--border);
}
.release-flow {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}
.flow-step {
  flex: 1;
  min-width: 180px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.flow-step span {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
  font-weight: 700;
  font-size: 0.85rem;
  display: grid;
  place-items: center;
}
.flow-step p { margin: 0; color: var(--muted); font-size: 0.92rem; }
.flow-arrow { color: var(--muted); font-size: 1.2rem; }
@media (max-width: 700px) { .flow-arrow { display: none; } }
.release-commands {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
@media (max-width: 800px) { .release-commands { grid-template-columns: 1fr; } }
.cmd-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
}
.cmd-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: 10px;
}
.sync-note { color: var(--muted); font-size: 0.85rem; margin-top: 24px; }

/* Privacy */
.privacy-section { padding: 80px 0; }
.privacy-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
@media (max-width: 860px) { .privacy-inner { grid-template-columns: 1fr; } }
.check-list {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
  color: var(--muted);
}
.check-list li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 12px;
}
.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--ok);
  font-weight: 700;
}
.check-list strong { color: var(--text); }
.privacy-visual-btn {
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}
.privacy-visual {
  border-radius: var(--radius-lg);
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: contain;
  background: #0a0e14;
  display: block;
}

/* Author */
.author-card {
  display: grid;
  grid-template-columns: minmax(240px, 320px) 1fr;
  gap: 32px;
  align-items: center;
  background: linear-gradient(145deg, rgba(17, 24, 39, 0.95), rgba(12, 16, 24, 0.9));
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  overflow: hidden;
}
@media (max-width: 700px) {
  .author-card { grid-template-columns: 1fr; }
  .author-visual-btn { max-width: min(260px, 72vw); }
}
.author-visual-btn {
  position: relative;
  display: block;
  width: 100%;
  max-width: 280px;
  aspect-ratio: 1;
  margin-inline: auto;
  justify-self: center;
  padding: 0;
  border: 2px solid color-mix(in srgb, var(--accent) 42%, transparent);
  border-radius: 50%;
  overflow: hidden;
  background: #0a0e14;
  cursor: zoom-in;
  box-shadow:
    0 0 0 1px rgba(124, 92, 255, 0.18),
    0 0 32px rgba(124, 92, 255, 0.1),
    0 12px 40px rgba(0, 0, 0, 0.32);
  transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
  animation: author-portrait-glow 4.2s ease-in-out infinite;
}
.author-visual-btn:hover {
  border-color: color-mix(in srgb, var(--accent) 68%, transparent);
  box-shadow:
    0 0 0 1px rgba(124, 92, 255, 0.32),
    0 0 42px rgba(124, 92, 255, 0.22),
    0 16px 48px rgba(0, 0, 0, 0.38);
  transform: scale(1.02);
}
.author-visual-btn .zoom-hint {
  right: auto;
  left: 50%;
  bottom: 12%;
  transform: translateX(-50%) translateY(4px);
  white-space: nowrap;
}
.author-visual-btn:hover .zoom-hint {
  transform: translateX(-50%) translateY(0);
}
.author-visual {
  border-radius: 50%;
  width: 100%;
  height: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  object-position: center 18%;
  display: block;
  background: #0a0e14;
}
@keyframes author-portrait-glow {
  0%, 100% {
    box-shadow:
      0 0 0 1px color-mix(in srgb, var(--accent) 22%, transparent),
      0 0 28px rgba(77, 159, 255, 0.1),
      0 12px 40px rgba(0, 0, 0, 0.32);
  }
  50% {
    box-shadow:
      0 0 0 1px color-mix(in srgb, var(--accent-2) 34%, transparent),
      0 0 38px rgba(124, 92, 255, 0.2),
      0 12px 40px rgba(0, 0, 0, 0.32);
  }
}
.author-card h2 { margin: 8px 0 10px; font-size: 1.5rem; }
.author-card p { color: var(--muted); margin: 0 0 8px; }
.oss-note,
.license-note { font-size: 0.9rem; }
.founder-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
  align-items: center;
  margin: 14px 0 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(148, 163, 184, 0.14);
}
.founder-strip a {
  color: var(--accent);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
}
.founder-strip a:hover { color: #7cb8ff; }

/* Subscribe */
.subscribe-section {
  background: transparent;
  border-top: none;
  border-bottom: none;
  padding: 64px 0;
  position: relative;
}
.subscribe-section::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(77, 159, 255, 0.06), transparent 70%);
}

.subscribe-discord-fallback {
  margin: 0 auto 1.25rem;
  max-width: 36rem;
  padding: 1rem 1.25rem;
  border-radius: 14px;
  border: 1px solid rgba(124, 92, 255, 0.28);
  background: rgba(124, 92, 255, 0.08);
  text-align: center;
}

.subscribe-discord-fallback-lead {
  margin: 0 0 0.85rem;
  color: var(--text-muted, #94a3b8);
  font-size: 0.95rem;
}

.subscribe-inner {
  position: relative;
  z-index: 1;
  max-width: 560px;
  margin-inline: auto;
  text-align: center;
}
.subscribe-inner .section-head { margin-inline: auto; }
.subscribe-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 24px;
  text-align: left;
}
.subscribe-form-row {
  display: flex;
  gap: 10px;
  align-items: stretch;
}
.subscribe-form input[type="email"] {
  flex: 1;
  min-width: 0;
  padding: 13px 16px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-family: var(--font);
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.subscribe-consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.88rem;
  line-height: 1.45;
  color: var(--muted);
  max-width: 100%;
}
.subscribe-consent input[type="checkbox"] {
  margin-top: 3px;
  flex-shrink: 0;
}
.subscribe-form input[type="email"]:focus,
.subscribe-form input[type="email"]:focus-visible {
  border-color: rgba(77, 159, 255, 0.5);
  box-shadow: 0 0 0 3px rgba(77, 159, 255, 0.15);
}
.subscribe-form-row .btn { flex-shrink: 0; }
@media (max-width: 520px) {
  .subscribe-form-row { flex-direction: column; }
  .subscribe-form-row .btn { width: 100%; }
}

/* Welcome modal (first visit) */
@keyframes fade-slide-up {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes welcome-glow-pulse {
  0%, 100% {
    opacity: 0.55;
    transform: scale(1);
  }
  50% {
    opacity: 0.9;
    transform: scale(1.04);
  }
}
.welcome-modal {
  position: fixed;
  inset: 0;
  z-index: 520;
  display: grid;
  place-items: center;
  padding: 20px;
  padding-bottom: calc(20px + var(--safe-bottom));
}
.welcome-modal[hidden] { display: none !important; }
.welcome-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(3, 5, 10, 0.76);
  backdrop-filter: blur(5px);
}
.welcome-modal-panel {
  position: relative;
  width: min(100%, 460px);
  max-height: min(92vh, calc(100dvh - 40px - var(--safe-bottom)));
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 30px 26px 24px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(232, 168, 106, 0.28);
  background: linear-gradient(165deg, rgba(18, 14, 24, 0.98), rgba(8, 10, 16, 0.98));
  box-shadow:
    var(--shadow),
    0 0 36px rgba(232, 168, 106, 0.14),
    0 0 72px rgba(124, 92, 255, 0.1);
  text-align: center;
  animation: fade-slide-up 0.4s ease-out both;
}
.welcome-modal-glow {
  position: absolute;
  inset: -40%;
  background:
    radial-gradient(ellipse at 30% 20%, rgba(232, 168, 106, 0.18), transparent 55%),
    radial-gradient(ellipse at 70% 80%, rgba(124, 92, 255, 0.16), transparent 50%);
  pointer-events: none;
  animation: welcome-glow-pulse 4.5s ease-in-out infinite;
}
.welcome-modal-logo {
  position: relative;
  margin: 0 auto 14px;
}
.welcome-modal-eyebrow {
  position: relative;
  margin: 0 0 6px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #e8b878;
}
.welcome-modal-panel h2 {
  position: relative;
  margin: 0 0 12px;
  font-size: 1.45rem;
  line-height: 1.25;
  color: #f4f7fb;
}
.welcome-modal-lead {
  position: relative;
  margin: 0 0 20px;
  color: #b8c5d9;
  font-size: 0.95rem;
  line-height: 1.6;
  text-align: left;
}
.welcome-modal-lead strong {
  color: #e8d4b8;
  font-weight: 600;
}
.welcome-modal-actions {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.welcome-modal-actions .btn {
  width: 100%;
  justify-content: center;
}
.welcome-modal-discord {
  background: linear-gradient(135deg, #e8a86a 0%, #c97bff 55%, #7c5cff 100%);
  border-color: transparent;
  box-shadow: 0 8px 28px rgba(124, 92, 255, 0.28);
}
.welcome-modal-discord:hover {
  box-shadow: 0 10px 34px rgba(232, 168, 106, 0.32);
}
.welcome-modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 1;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--muted);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
}
.welcome-modal-close:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.1);
}
body.welcome-modal-open { overflow: hidden; }

@media (max-width: 520px) {
  .welcome-modal {
    padding: 12px;
    padding-bottom: calc(12px + var(--safe-bottom));
  }
  .welcome-modal-panel {
    padding: 24px 18px 20px;
    max-height: min(94vh, calc(100dvh - 24px - var(--safe-bottom)));
  }
  .welcome-modal-panel h2 {
    font-size: 1.28rem;
  }
  .welcome-modal-close {
    top: 10px;
    right: 10px;
    width: 44px;
    height: 44px;
  }
}

/* Newsletter modal */
.subscribe-modal {
  position: fixed;
  inset: 0;
  z-index: 500;
  display: grid;
  place-items: center;
  padding: 20px;
  padding-bottom: calc(20px + var(--safe-bottom));
}
.subscribe-modal[hidden] { display: none !important; }
.subscribe-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(3, 5, 10, 0.72);
  backdrop-filter: blur(4px);
}
.subscribe-modal-panel {
  position: relative;
  width: min(100%, 440px);
  max-height: min(92vh, calc(100dvh - 40px - var(--safe-bottom)));
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 28px 24px 24px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(77, 159, 255, 0.25);
  background: linear-gradient(165deg, rgba(12, 16, 24, 0.98), rgba(6, 8, 13, 0.98));
  box-shadow: var(--shadow), 0 0 40px rgba(57, 255, 20, 0.08);
  text-align: center;
  animation: fade-slide-up 0.35s ease-out both;
}
.subscribe-modal-logo { margin: 0 auto 12px; }
.subscribe-modal-lead {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.55;
}
.subscribe-modal-form { text-align: left; }
.subscribe-modal-form input[type="email"] {
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  font: inherit;
  margin-bottom: 12px;
}
.subscribe-modal-consent {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 16px;
  cursor: pointer;
}
.subscribe-modal-consent input { margin-top: 3px; flex-shrink: 0; }
.subscribe-modal-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.subscribe-modal-actions .btn { width: 100%; justify-content: center; }
.subscribe-modal-actions .subscribe-decline {
  color: var(--muted);
  border-color: transparent;
  background: transparent;
}
.subscribe-modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--muted);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
}
.subscribe-modal-close:hover { color: var(--text); background: rgba(255, 255, 255, 0.1); }
body.subscribe-modal-open { overflow: hidden; }

/* Footer */
.site-footer {
  background: transparent;
  border-top: 1px solid rgba(148, 163, 184, 0.12);
  padding: 36px 0 calc(36px + var(--safe-bottom));
  text-align: center;
  position: relative;
}
.site-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, transparent, rgba(6, 8, 13, 0.35) 28%);
}
.site-footer > .footer-inner {
  position: relative;
  z-index: 1;
}
.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 52rem;
  margin-inline: auto;
}
.footer-social {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 20px;
}
.footer-social a {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
  text-decoration: none;
  transition: color 0.15s, background 0.15s, border-color 0.15s, transform 0.15s;
}
.footer-social a:hover {
  color: var(--text);
  background: rgba(77, 159, 255, 0.1);
  border-color: rgba(77, 159, 255, 0.35);
  transform: translateY(-2px);
}
.footer-social-divider {
  width: 1px;
  height: 28px;
  align-self: center;
  background: var(--border);
  margin: 0 2px;
}
.footer-social .footer-admin {
  color: var(--accent);
  border-color: rgba(77, 159, 255, 0.32);
  background: rgba(77, 159, 255, 0.08);
  box-shadow: 0 0 0 1px rgba(77, 159, 255, 0.06) inset;
}
.footer-social .footer-admin:hover {
  color: #fff;
  background: linear-gradient(135deg, rgba(77, 159, 255, 0.35), rgba(124, 92, 255, 0.28));
  border-color: rgba(124, 92, 255, 0.45);
}
.footer-inner p {
  margin: 6px 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.6;
  max-width: 46rem;
  text-align: center;
}
.footer-inner a { color: var(--muted); text-decoration: none; }
.footer-inner a:hover { color: var(--text); }
.footer-contribute { font-size: 0.86rem !important; }
.footer-contribute a { color: var(--accent); }
.footer-contribute a:hover { color: var(--text); }

.footer-platforms {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.35rem 0.5rem;
  margin: 0 0 0.75rem;
  font-size: 0.86rem;
  color: var(--muted);
  text-align: center;
}
.footer-platforms a { color: var(--accent); text-decoration: none; font-weight: 600; }
.footer-platforms a:hover { color: var(--text); }
.footer-platforms span { opacity: 0.45; }
.hero-contribute {
  margin: 14px 0 0;
  font-size: 0.9rem;
  line-height: 1.5;
  max-width: 36rem;
}
.hero-contribute a { color: var(--accent); text-decoration: none; }
.hero-contribute a:hover { color: var(--text); text-decoration: underline; }
.subscribe-contribute {
  margin: 16px 0 0;
  font-size: 0.9rem;
  text-align: center;
}
.subscribe-contribute a { color: var(--accent); text-decoration: none; }
.subscribe-contribute a:hover { color: var(--text); text-decoration: underline; }
.footer-contact-fallback { font-size: 0.8rem !important; opacity: 0.85; }
@media (max-width: 520px) {
  .footer-inner p {
    font-size: 0.85rem;
    line-height: 1.55;
    padding-inline: 2px;
  }
  .footer-social a {
    width: 44px;
    height: 44px;
  }
  .footer-contact-fallback {
    margin-bottom: 8px;
  }
}

/* KPI strip (downloads / visits) */
.kpi-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin: 0 0 32px;
}
.kpi-item {
  padding: 20px 18px;
  border: 1px solid rgba(124, 92, 255, 0.22);
  border-radius: var(--radius-lg);
  background: linear-gradient(155deg, rgba(17, 24, 39, 0.98) 0%, rgba(12, 16, 24, 0.9) 55%, rgba(77, 159, 255, 0.06) 100%);
  text-align: center;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 12px 32px rgba(0, 0, 0, 0.22);
}
.kpi-item-accent {
  border-color: rgba(77, 159, 255, 0.35);
  background: linear-gradient(155deg, rgba(17, 24, 39, 0.98) 0%, rgba(12, 16, 24, 0.92) 45%, rgba(124, 92, 255, 0.12) 100%);
}
.kpi-sub {
  display: block;
  margin-top: 8px;
  font-size: 0.72rem;
  color: var(--muted);
  line-height: 1.4;
}
.kpi-label {
  display: block;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: 8px;
  font-weight: 600;
}
.kpi-value {
  font-family: var(--mono);
  font-size: clamp(1.2rem, 2.5vw, 1.5rem);
  color: var(--accent);
  font-weight: 600;
  line-height: 1.2;
}
@media (max-width: 900px) {
  .kpi-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .kpi-strip { grid-template-columns: 1fr; }
}

/* Platform availability ribbon */
.platform-ribbon {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  margin: 0;
  padding: 0;
  border: none;
  border-radius: 0;
  background: transparent;
  backdrop-filter: none;
}
.platform-ribbon-label {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #7d8fa8;
  font-weight: 600;
}
.platform-ribbon-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.platform-pill {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 5px 10px;
  border-radius: 6px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  background: rgba(255, 255, 255, 0.03);
  color: #c5d4ea;
  font-size: 0.75rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.platform-pill:hover {
  color: #eef3fb;
  border-color: rgba(77, 159, 255, 0.28);
  background: rgba(77, 159, 255, 0.08);
  transform: none;
}
/* Secondary channels sit under the two primary install buttons, so the
   ribbon needs its own breathing room instead of the intro's divider. */
.hero-copy .platform-ribbon {
  gap: 8px 12px;
  margin: 0 0 20px;
}
.platform-pill-note {
  margin-left: 6px;
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  color: #8b9bb8;
}
.platform-pill:hover .platform-pill-note { color: #c5d4ea; }
.platform-pill.platform-pending .platform-pill-note { color: var(--warn); }
@media (max-width: 640px) {
  .hero-platforms {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  .platform-pill {
    min-height: 44px;
    padding-inline: 12px;
  }
}

/* Open VSX download breakdown */
.download-breakdown {
  margin: 0 0 28px;
  padding: 22px 20px;
  border: 1px solid rgba(77, 159, 255, 0.2);
  border-radius: var(--radius-lg);
  background: linear-gradient(160deg, rgba(17, 24, 39, 0.95), rgba(12, 16, 24, 0.88));
}
.download-breakdown-head h3 {
  margin: 0 0 6px;
  font-size: 1.05rem;
}
.download-breakdown-head p {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 0.9rem;
}
.download-bar {
  display: flex;
  height: 12px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(148, 163, 184, 0.12);
  margin-bottom: 12px;
}
.download-bar-canonical {
  background: linear-gradient(90deg, #4d9fff, #7c5cff);
}
.download-bar-duplicate {
  background: linear-gradient(90deg, #f59e0b, #fbbf24);
}
.download-breakdown-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 20px;
  align-items: center;
  font-size: 0.86rem;
  color: var(--muted);
  margin-bottom: 14px;
}
.download-breakdown-legend .swatch {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 2px;
  margin-right: 6px;
  vertical-align: middle;
}
.download-breakdown-legend .swatch.canonical {
  background: linear-gradient(90deg, #4d9fff, #7c5cff);
}
.download-breakdown-legend .swatch.duplicate {
  background: linear-gradient(90deg, #f59e0b, #fbbf24);
}
.download-breakdown-total {
  margin-left: auto;
  color: var(--text);
}
.btn.small {
  padding: 8px 14px;
  font-size: 0.82rem;
}
.marketplace-stats-note {
  margin: 0 0 24px;
  padding: 12px 16px;
  border-radius: var(--radius);
  border: 1px solid rgba(77, 159, 255, 0.18);
  background: rgba(77, 159, 255, 0.06);
  color: var(--muted);
  font-size: 0.9rem;
  text-align: center;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Privacy page */
.page-hero {
  padding: 40px 0 32px;
  background: var(--bg-elevated);
  border-bottom: 1px solid var(--border);
}
.page-hero h1 {
  margin: 8px 0 10px;
  font-size: clamp(1.9rem, 4vw, 2.75rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  text-shadow: none;
}
.page-hero .lead {
  margin: 0;
  font-size: 1rem;
}
.prose-wrap {
  padding: 48px 0 80px;
}
.prose {
  max-width: 720px;
  margin: 0 auto;
  padding: 32px 28px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}
.prose h2 {
  margin: 2rem 0 0.75rem;
  font-size: 1.25rem;
  color: var(--text);
}
.prose h2:first-child { margin-top: 0; }
.prose p,
.prose li { color: var(--muted); margin: 0 0 1rem; }
.prose ul {
  margin: 0 0 1.25rem;
  padding-left: 1.25rem;
}
.prose li { margin-bottom: 0.5rem; }
.prose strong { color: var(--text); }
.prose code {
  font-family: var(--mono);
  font-size: 0.88em;
  background: rgba(255, 255, 255, 0.06);
  padding: 2px 7px;
  border-radius: 6px;
  color: #c8daf5;
}
.prose a { color: var(--accent); }

/* Legacy alias */
.hero.compact {
  position: relative;
  min-height: auto;
  display: block;
  overflow: visible;
  padding: 48px 0 32px;
  background: var(--bg-elevated);
  border-bottom: 1px solid var(--border);
}

/* Lightbox / photo viewer */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 20px;
}
.lightbox[hidden] { display: none; }
.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 6, 10, 0.92);
  backdrop-filter: blur(8px);
}
.lightbox-stage {
  position: relative;
  z-index: 1;
  margin: 0;
  max-width: min(96vw, 1200px);
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
/* Animated moving ambient light background across website */
.site-ambient-mesh {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: var(--bg);
}
.site-ambient-mesh::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.55;
  background:
    radial-gradient(ellipse 80% 50% at 100% 0%, rgba(124, 92, 255, 0.14), transparent 52%),
    radial-gradient(ellipse 60% 40% at 0% 100%, rgba(77, 159, 255, 0.1), transparent 50%),
    radial-gradient(circle at 50% 50%, rgba(57, 255, 20, 0.025), transparent 60%);
  animation: site-mesh-drift 18s ease-in-out infinite alternate;
}
@keyframes site-mesh-drift {
  0% {
    transform: scale(1) translate(0, 0);
  }
  50% {
    transform: scale(1.06) translate(-2%, 2%);
  }
  100% {
    transform: scale(1) translate(2%, -2%);
  }
}

/* Gallery category filter bar */
.gallery-filter-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 28px;
}
.gallery-filter-btn {
  padding: 8px 16px;
  border-radius: 9999px;
  font-size: 0.85rem;
  font-weight: 500;
  background: rgba(17, 24, 39, 0.7);
  color: var(--muted);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}
.gallery-filter-btn:hover {
  color: var(--text);
  border-color: rgba(124, 92, 255, 0.4);
  background: rgba(124, 92, 255, 0.1);
}
.gallery-filter-btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.gallery-filter-btn.active {
  color: #ffffff;
  background: linear-gradient(135deg, rgba(124, 92, 255, 0.35), rgba(77, 159, 255, 0.25));
  border-color: var(--accent);
  box-shadow: 0 0 16px rgba(77, 159, 255, 0.25);
}

.gallery-item[hidden] {
  display: none !important;
}

.lightbox-stage img {
  max-width: 100%;
  max-height: calc(90vh - 80px);
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 12px;
  border: 1px solid var(--border);
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.6);
  background: #0a0e14;
  opacity: 1;
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.lightbox-stage img.is-loaded { opacity: 1; }
.lightbox-stage figcaption {
  color: var(--text);
  font-size: 0.95rem;
  text-align: center;
  max-width: 60ch;
}
.lightbox-counter {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
}
.lightbox-close,
.lightbox-nav {
  position: absolute;
  z-index: 2;
  border: 1px solid var(--border);
  background: rgba(17, 24, 39, 0.9);
  color: var(--text);
  cursor: pointer;
  transition: background 0.15s, transform 0.15s;
}
.lightbox-close:hover,
.lightbox-nav:hover {
  background: rgba(30, 41, 59, 0.95);
  transform: scale(1.05);
}
.lightbox-close {
  top: 16px;
  right: 16px;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  font-size: 1.6rem;
  line-height: 1;
}
.lightbox-nav {
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  font-size: 1.8rem;
  line-height: 1;
}
.lightbox-nav:hover { transform: translateY(-50%) scale(1.05); }
.lightbox-prev { left: 16px; }
.lightbox-next { right: 16px; }
body.lightbox-open { overflow: hidden; }
@media (max-width: 640px) {
  .lightbox-nav { width: 40px; height: 40px; font-size: 1.5rem; }
  .lightbox-prev { left: 8px; }
  .lightbox-next { right: 8px; }
  .lightbox-close { top: 12px; right: 12px; }
}

/* Branded 404 / wrong URL */
.error-body {
  min-height: 100vh;
  overflow-x: hidden;
}
.error-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  background: linear-gradient(165deg, #0a0f18 0%, var(--bg) 55%, #080b12 100%);
  pointer-events: none;
}
.error-mesh {
  position: absolute;
  inset: 0;
  opacity: 0.4;
  background-image:
    linear-gradient(rgba(77, 159, 255, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(77, 159, 255, 0.07) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 90% 80% at 50% 40%, black, transparent);
  animation: error-mesh-drift 18s ease-in-out infinite alternate;
}
@keyframes error-mesh-drift {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(-12px, 8px) scale(1.02); }
}
.error-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
}
.error-glow-a {
  width: 440px;
  height: 440px;
  top: -120px;
  right: 8%;
  background: rgba(124, 92, 255, 0.22);
  animation: error-glow-pulse 6s ease-in-out infinite;
}
.error-glow-b {
  width: 380px;
  height: 380px;
  bottom: -100px;
  left: -60px;
  background: rgba(77, 159, 255, 0.16);
  animation: error-glow-pulse 7s ease-in-out infinite reverse;
}
@keyframes error-glow-pulse {
  0%, 100% { opacity: 0.75; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.08); }
}
.error-scanlines {
  position: absolute;
  inset: 0;
  opacity: 0.06;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(255, 255, 255, 0.04) 2px,
    rgba(255, 255, 255, 0.04) 4px
  );
  animation: error-scan 8s linear infinite;
}
@keyframes error-scan {
  0% { transform: translateY(0); }
  100% { transform: translateY(8px); }
}
.error-page {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: clamp(32px, 6vw, 64px) 20px;
}
.error-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: clamp(24px, 5vw, 40px);
  color: var(--text);
  text-decoration: none;
}
.error-brand strong {
  display: block;
  font-size: 0.95rem;
  font-weight: 700;
}
.error-brand small {
  display: block;
  font-size: 0.72rem;
  color: var(--muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.error-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 12px;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #9eb4d4;
}
.error-code {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(8px, 3vw, 20px);
  margin: 0 0 16px;
  font-family: var(--mono);
  font-size: clamp(4.5rem, 18vw, 8rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.04em;
}
.error-digit {
  position: relative;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 55%, #a78bfa 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: error-glitch 4s ease-in-out infinite;
}
.error-digit::before,
.error-digit::after {
  content: attr(data-text);
  position: absolute;
  inset: 0;
  background: inherit;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  opacity: 0.65;
}
.error-digit::before {
  animation: error-glitch-shift 4s ease-in-out infinite;
  clip-path: inset(12% 0 58% 0);
}
.error-digit::after {
  animation: error-glitch-shift 4s ease-in-out infinite reverse;
  clip-path: inset(58% 0 8% 0);
}
@keyframes error-glitch {
  0%, 92%, 100% { transform: translate(0); }
  93% { transform: translate(-2px, 1px); }
  95% { transform: translate(2px, -1px); }
  97% { transform: translate(-1px, -1px); }
}
@keyframes error-glitch-shift {
  0%, 90%, 100% { transform: translate(0); opacity: 0; }
  91% { transform: translate(3px, 0); opacity: 0.8; }
  93% { transform: translate(-3px, 0); opacity: 0.6; }
}
.error-orbit {
  display: grid;
  place-items: center;
  width: clamp(64px, 14vw, 96px);
  height: clamp(64px, 14vw, 96px);
  border-radius: 50%;
  border: 1px solid rgba(124, 92, 255, 0.35);
  background: rgba(12, 16, 24, 0.85);
  box-shadow: 0 0 40px rgba(124, 92, 255, 0.25);
  animation: error-orbit-spin 12s linear infinite;
}
.error-orbit img {
  width: 55%;
  height: 55%;
  animation: error-orbit-spin 12s linear infinite reverse;
}
@keyframes error-orbit-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
.error-title {
  margin: 0 0 10px;
  font-size: clamp(1.35rem, 4vw, 1.85rem);
  font-weight: 700;
}
.error-lead {
  margin: 0 0 16px;
  max-width: 36rem;
  color: var(--muted);
  font-size: 1.02rem;
}
.error-path {
  font-family: var(--mono);
  font-size: 0.88em;
  color: var(--accent);
  word-break: break-all;
}
.error-hint {
  max-width: 32rem;
  margin: 0 0 20px;
  padding: 12px 16px;
  border-radius: var(--radius);
  border: 1px solid rgba(124, 92, 255, 0.28);
  background: rgba(124, 92, 255, 0.08);
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.5;
}
.error-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-bottom: 28px;
}
.error-footer {
  margin: 0;
  font-size: 0.88rem;
  color: var(--muted);
}
.error-footer a { color: var(--muted); }
.error-footer a:hover { color: var(--accent); }

/* —— Supported VS Code wrapper IDEs —— */
.supported-ides-section {
  --ide-motion-enter: 280ms cubic-bezier(0, 0, 0.2, 1);
  --ide-motion-hover: 200ms cubic-bezier(0.34, 1.56, 0.64, 1);
  --ide-motion-idle: 2.4s linear;

  position: relative;
  padding-block: clamp(48px, 8vw, 88px);
  background: transparent;
}
.supported-ides-section::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 70% 50% at 18% 18%, rgba(91, 157, 255, 0.07), transparent 55%),
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(124, 92, 255, 0.09), transparent 70%);
}
.supported-ides-section > .container {
  position: relative;
  z-index: 1;
}
.supported-ides-head { max-width: 760px; }
.supported-ides-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 14px;
  margin-bottom: 20px;
}
.ide-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  min-height: 216px;
  padding: 16px 12px 14px;
  border-radius: 16px;
  border: 1px solid rgba(124, 92, 255, 0.18);
  background: rgba(10, 14, 22, 0.72);
  text-align: center;
  color: inherit;
  text-decoration: none;
  transition:
    border-color var(--ide-motion-hover),
    box-shadow var(--ide-motion-hover),
    transform var(--ide-motion-hover),
    opacity var(--ide-motion-hover);
}
a.ide-card:hover { color: inherit; }
.ide-card.ide-card-unseen {
  animation: none;
  opacity: 0;
}
.ides-visible .ide-card {
  animation: ide-constellation-in var(--ide-motion-enter) backwards;
  animation-delay: var(--ide-stagger-ms, 0ms);
}
.ide-card:hover {
  border-color: color-mix(in srgb, var(--ide-color, #7c5cff) 72%, transparent);
  transform: translateY(-4px);
  box-shadow:
    0 16px 36px rgba(0, 0, 0, 0.38),
    0 0 32px color-mix(in srgb, var(--ide-color, #7c5cff) 32%, transparent);
}
.ide-card:hover .ide-icon {
  animation: ide-icon-squash var(--ide-motion-hover) forwards;
}
.ide-card:active {
  transform: translateY(-1px);
}
.ide-card:active .ide-icon {
  animation: none;
  transform: scale(1.02) rotate(-1deg);
}
a.ide-card:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
.ide-card.featured {
  border-color: color-mix(in srgb, var(--ide-color, #7c5cff) 58%, rgba(124, 92, 255, 0.42));
  background: linear-gradient(
    180deg,
    color-mix(in srgb, var(--ide-color, #7c5cff) 18%, transparent),
    rgba(10, 14, 22, 0.8)
  );
  box-shadow: 0 0 24px color-mix(in srgb, var(--ide-color, #7c5cff) 16%, transparent);
}
.ide-card.featured:hover {
  box-shadow:
    0 16px 36px rgba(0, 0, 0, 0.38),
    0 0 40px color-mix(in srgb, var(--ide-color, #7c5cff) 42%, transparent);
}
.ide-card.featured .ide-icon {
  animation: ide-idle-glow var(--ide-motion-idle) infinite;
  animation-delay: calc(var(--ide-stagger-ms, 0ms) + 280ms);
}
.ide-card:hover .ide-icon,
.ide-card.featured:hover .ide-icon {
  animation: ide-icon-squash var(--ide-motion-hover) forwards;
}
.ide-card:active .ide-icon,
.ide-card.featured:active .ide-icon {
  animation: none;
  transform: scale(1.02) rotate(-1deg);
}
.ide-icon {
  position: relative;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  color: #fff;
  background: var(--ide-color, #7c5cff);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.2),
    0 8px 20px color-mix(in srgb, var(--ide-color, #7c5cff) 40%, transparent);
  transform-origin: 50% 70%;
  transition: transform var(--ide-motion-hover);
}
.ide-icon-mark {
  width: 32px;
  height: 32px;
  display: block;
  pointer-events: none;
}
.ide-icon-watching::after {
  content: "";
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  inset: 0;
  margin: auto;
  background: #fff;
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.85);
  animation: ide-watch-pulse var(--ide-motion-idle) infinite;
  animation-delay: calc(var(--ide-stagger-ms, 0ms) + 280ms);
  pointer-events: none;
}
.ide-name {
  margin: 0;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.25;
}
.ide-tagline {
  margin: 0;
  font-size: 0.72rem;
  color: var(--muted);
  line-height: 1.35;
}
.ide-market {
  margin: auto 0 0;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent-2);
}
.supported-ides-foot {
  margin: 0;
  font-size: 0.88rem;
  text-align: center;
}
.supported-ides-foot a {
  color: var(--accent-2);
  font-weight: 600;
}

@keyframes ide-constellation-in {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.92);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}
@keyframes ide-icon-squash {
  0% { transform: scale(1) rotate(0deg); }
  12% { transform: scale(1.02, 0.92) rotate(-1deg); }
  100% { transform: scale(1.08) rotate(-4deg); }
}
@keyframes ide-idle-glow {
  0%, 100% { filter: brightness(1); }
  50% { filter: brightness(1.16); }
}
@keyframes ide-watch-pulse {
  0%, 100% { opacity: 0.4; transform: scale(0.82); }
  50% { opacity: 1; transform: scale(1.18); }
}

/* —— Full ecosystem showcase —— */
.ecosystem-section {
  padding-top: 0;
}
.ecosystem-tabs-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 24px;
}
.ecosystem-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.ecosystem-rotation-pause {
  flex-shrink: 0;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  font: inherit;
  font-size: 0.8125rem;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s, background 0.15s;
}
.ecosystem-rotation-pause:hover {
  color: var(--text);
  border-color: rgba(148, 163, 184, 0.35);
  background: rgba(255, 255, 255, 0.07);
}
.ecosystem-rotation-pause[aria-pressed="true"] {
  color: var(--accent);
  border-color: rgba(77, 159, 255, 0.35);
  background: rgba(77, 159, 255, 0.1);
}
.ecosystem-tab {
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid rgba(124, 92, 255, 0.25);
  background: rgba(12, 16, 24, 0.6);
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.25s, color 0.25s, box-shadow 0.25s, transform 0.25s;
}
.ecosystem-tab:hover {
  color: var(--text);
  border-color: rgba(124, 92, 255, 0.45);
}
.ecosystem-tab:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.ecosystem-tab.active {
  color: var(--text);
  border-color: rgba(124, 92, 255, 0.65);
  box-shadow: 0 0 24px rgba(124, 92, 255, 0.2);
  transform: translateY(-1px);
}
.ecosystem-stage {
  position: relative;
  min-height: 420px;
}
.ecosystem-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  gap: 28px;
  align-items: center;
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  position: absolute;
  inset: 0;
  transition: opacity 0.45s ease, transform 0.45s ease;
}
.ecosystem-panel.active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
  position: relative;
}
.ecosystem-copy h3 {
  margin: 0 0 10px;
  font-size: 1.35rem;
}
.ecosystem-copy p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}
.ecosystem-shot {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: none;
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: zoom-in;
  background: rgba(8, 10, 16, 0.8);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  animation: ecosystem-float 6s ease-in-out infinite;
}
.ecosystem-shot img {
  display: block;
  width: 100%;
  height: auto;
  vertical-align: middle;
}
@keyframes ecosystem-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}
@media (max-width: 900px) {
  .ecosystem-panel {
    grid-template-columns: 1fr;
  }
  .ecosystem-stage { min-height: auto; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .dev-notice-track,
  .dev-notice-banner::before { animation: none; }
  .dev-notice-pause { display: none; }
  .hero-kicker-dot,
  .panel-live-dot { animation: none; }
  .error-mesh,
  .error-glow-a,
  .error-glow-b,
  .error-scanlines,
  .error-digit,
  .error-digit::before,
  .error-digit::after,
  .error-orbit,
  .error-orbit img { animation: none; }
  .ecosystem-shot { animation: none; }
  .author-visual-btn { animation: none; }
  .author-visual-btn:hover { transform: none; }
  .ecosystem-rotation-pause { display: none; }
  .hero-orbit-ring,
  .hero-orbit-glow,
  .hero-orbit-icon,
  .hero-orbit-mascot { animation: none !important; }
  .welcome-modal-panel,
  .welcome-modal-glow { animation: none !important; }
  .supported-ides-section .ide-card,
  .supported-ides-section .ide-card:hover,
  .supported-ides-section .ide-card:active,
  .supported-ides-section .ide-card:hover .ide-icon,
  .supported-ides-section .ide-card:active .ide-icon,
  .supported-ides-section .ide-card.featured .ide-icon,
  .supported-ides-section .ide-icon,
  .supported-ides-section .ide-icon-watching::after {
    animation: none;
    transform: none;
    filter: none;
  }
  .supported-ides-section .ide-card {
    opacity: 1;
    transition-property: border-color, box-shadow, opacity;
  }
  .supported-ides-section .ide-card:hover {
    transform: none;
  }
  .architecture-mermaid-animated .node,
  .architecture-mermaid-animated .edgePath,
  .architecture-mermaid-animated .edgePath path,
  .architecture-mermaid-animated .cluster,
  .architecture-mermaid-live .node rect,
  .architecture-mermaid-live .node polygon,
  .architecture-mermaid-live .cluster rect,
  .architecture-ambient-glow,
  .architecture-panels::before,
  .architecture-tab.active,
  .arch-edge-live {
    animation: none !important;
    opacity: 1 !important;
    filter: none !important;
    stroke-dashoffset: 0 !important;
  }
  .architecture-diagram-skeleton-node,
  .architecture-diagram-skeleton-line {
    animation: none;
    background: rgba(148, 163, 184, 0.1);
  }
}

/* ── Architecture section (animated Mermaid) ── */
.architecture-section {
  position: relative;
  overflow: hidden;
}

.architecture-section-head {
  position: relative;
  z-index: 1;
}

.architecture-ambient {
  pointer-events: none;
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.architecture-ambient-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(72px);
  opacity: 0.5;
  animation: arch-ambient-drift 14s ease-in-out infinite;
}

.architecture-ambient-glow--a {
  width: 340px;
  height: 340px;
  top: 8%;
  right: -4%;
  background: rgba(124, 92, 255, 0.16);
}

.architecture-ambient-glow--b {
  width: 300px;
  height: 300px;
  bottom: 6%;
  left: -6%;
  background: rgba(77, 159, 255, 0.12);
  animation-delay: -7s;
}

@keyframes arch-ambient-drift {
  0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.42; }
  50% { transform: translate(-12px, 10px) scale(1.06); opacity: 0.72; }
}

.architecture-tabs-row {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}

.architecture-tab {
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--surface) 80%, transparent);
  color: var(--muted);
  border-radius: 999px;
  padding: 0.55rem 1rem;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition:
    border-color 0.25s ease-out,
    color 0.25s ease-out,
    background 0.25s ease-out,
    transform 0.2s ease-out,
    box-shadow 0.25s ease-out;
}

.architecture-tab:hover {
  color: var(--text);
  border-color: color-mix(in srgb, var(--accent) 35%, var(--border));
  transform: translateY(-1px);
}

.architecture-tab.active {
  color: var(--accent);
  border-color: color-mix(in srgb, var(--accent) 55%, var(--border));
  background: color-mix(in srgb, var(--accent) 12%, var(--surface));
  box-shadow:
    0 0 0 1px color-mix(in srgb, var(--accent) 18%, transparent),
    0 0 24px rgba(77, 159, 255, 0.14);
  transform: translateY(-1px);
  animation: arch-tab-glow 3.5s ease-in-out infinite;
}

@keyframes arch-tab-glow {
  0%, 100% { box-shadow: 0 0 0 1px color-mix(in srgb, var(--accent) 18%, transparent), 0 0 18px rgba(77, 159, 255, 0.1); }
  50% { box-shadow: 0 0 0 1px color-mix(in srgb, var(--accent) 28%, transparent), 0 0 28px rgba(124, 92, 255, 0.2); }
}

.architecture-panels {
  position: relative;
  z-index: 1;
  border: 1px solid color-mix(in srgb, var(--accent) 14%, var(--border));
  border-radius: 1rem;
  background:
    linear-gradient(165deg, color-mix(in srgb, var(--surface) 92%, transparent), var(--bg-elevated)),
    radial-gradient(ellipse 90% 55% at 50% 0%, rgba(77, 159, 255, 0.07), transparent 68%);
  padding: 1.25rem;
  overflow: hidden;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 18px 44px rgba(0, 0, 0, 0.28);
}

.architecture-panels::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    110deg,
    transparent 0%,
    rgba(77, 159, 255, 0.03) 45%,
    rgba(124, 92, 255, 0.05) 55%,
    transparent 100%
  );
  background-size: 220% 100%;
  animation: arch-panel-shimmer 9s ease-in-out infinite;
}

@keyframes arch-panel-shimmer {
  0%, 100% { background-position: 120% 0; opacity: 0.35; }
  50% { background-position: -20% 0; opacity: 0.75; }
}

.architecture-panel {
  position: relative;
  z-index: 1;
}

.architecture-panel--enter .architecture-panel-copy {
  animation: arch-panel-in 0.32s ease-out both;
}

.architecture-panel--enter .architecture-diagram-mount {
  animation: arch-panel-in 0.38s ease-out 0.06s both;
}

@keyframes arch-panel-in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.architecture-panel-copy {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.6;
  margin: 0 0 1rem;
  max-width: 52rem;
}

.architecture-diagram-mount {
  position: relative;
  min-height: 14rem;
  border-radius: 0.75rem;
  border: 1px solid color-mix(in srgb, var(--accent) 10%, var(--border));
  background:
    linear-gradient(180deg, rgba(10, 14, 22, 0.72), rgba(8, 11, 18, 0.88)),
    radial-gradient(circle at 50% 0%, rgba(124, 92, 255, 0.08), transparent 58%);
  padding: 0.75rem;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.45s ease-out, transform 0.45s ease-out;
  overflow-x: auto;
}

.architecture-diagram-mount.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.architecture-load-fallback {
  margin: 0;
  padding: 1.25rem 1rem;
  font-size: 0.92rem;
  line-height: 1.55;
  text-align: center;
}

.architecture-load-fallback code {
  font-size: 0.85em;
}

.architecture-diagram-skeleton {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  min-height: 12rem;
  padding: 1.5rem 1rem;
}

.architecture-diagram-skeleton-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
  width: min(100%, 280px);
  margin-bottom: 0.35rem;
}

.architecture-diagram-skeleton-node {
  height: 2.25rem;
  border-radius: 0.65rem;
  border: 1px solid rgba(148, 163, 184, 0.12);
  background: linear-gradient(
    90deg,
    rgba(148, 163, 184, 0.06),
    rgba(124, 92, 255, 0.14),
    rgba(77, 159, 255, 0.1),
    rgba(148, 163, 184, 0.06)
  );
  background-size: 220% 100%;
  animation: arch-skeleton-shimmer 1.35s ease-in-out infinite;
}

.architecture-diagram-skeleton-node--wide {
  grid-column: 1 / -1;
}

.architecture-diagram-skeleton-line {
  width: min(100%, 320px);
  height: 0.55rem;
  border-radius: 999px;
  background: linear-gradient(
    90deg,
    rgba(148, 163, 184, 0.08),
    rgba(124, 92, 255, 0.18),
    rgba(148, 163, 184, 0.08)
  );
  background-size: 200% 100%;
  animation: arch-skeleton-shimmer 1.4s ease-in-out infinite;
}

.architecture-diagram-skeleton-line--short {
  width: 62%;
}

.architecture-diagram-skeleton-label {
  margin: 0.35rem 0 0;
  font-size: 0.8rem;
  color: var(--muted);
  letter-spacing: 0.04em;
}

@keyframes arch-skeleton-shimmer {
  0% { background-position: 100% 0; }
  100% { background-position: -100% 0; }
}

.architecture-diagram-mount .architecture-mermaid-svg {
  width: 100%;
  height: auto;
  display: block;
}

/* Mermaid positions nodes via SVG transform — animate opacity only on enter */
.architecture-diagram-mount .architecture-mermaid-animated .node,
.architecture-diagram-mount .architecture-mermaid-animated .cluster {
  opacity: 0;
  animation: arch-node-in 0.55s ease-out forwards;
}

.architecture-diagram-mount .architecture-mermaid-animated .edgePath path {
  stroke-dasharray: 1200;
  stroke-dashoffset: 1200;
  animation: arch-edge-draw 1.1s ease-out forwards;
}

.architecture-mermaid-live .edgePath path.arch-edge-live {
  stroke-dasharray: 7 11 !important;
  stroke-dashoffset: 0;
  animation: arch-edge-flow 2.4s linear infinite !important;
  opacity: 0.85;
}

.architecture-mermaid-live .node rect,
.architecture-mermaid-live .node polygon,
.architecture-mermaid-live .cluster rect {
  animation: arch-node-glow 4.2s ease-in-out infinite;
}

@keyframes arch-node-glow {
  0%, 100% { filter: drop-shadow(0 0 1px rgba(77, 159, 255, 0.12)); }
  50% { filter: drop-shadow(0 0 6px rgba(124, 92, 255, 0.28)); }
}

.architecture-foot {
  position: relative;
  z-index: 1;
  margin-top: 1rem;
  font-size: 0.85rem;
}

.architecture-error {
  color: #f87171;
  font-size: 0.9rem;
}

@keyframes arch-node-in {
  from {
    opacity: 0;
    filter: drop-shadow(0 0 0 rgba(124, 92, 255, 0));
  }
  to {
    opacity: 1;
    filter: drop-shadow(0 0 4px rgba(77, 159, 255, 0.12));
  }
}

@keyframes arch-edge-draw {
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes arch-edge-flow {
  to {
    stroke-dashoffset: -36;
  }
}

.architecture-reduced-motion .architecture-ambient-glow,
.architecture-reduced-motion .architecture-panels::before,
.architecture-reduced-motion .architecture-tab.active {
  animation: none !important;
}

.architecture-reduced-motion .architecture-diagram-skeleton-node,
.architecture-reduced-motion .architecture-diagram-skeleton-line {
  animation: none;
  background: rgba(148, 163, 184, 0.1);
}

/* ── Custom glowing workflow (reference-style topology) ── */
.architecture-diagram-mount .arch-flow {
  position: relative;
  min-height: 28rem;
  padding: 1.25rem 0.75rem 1rem;
  overflow: hidden;
}

.arch-flow-grid {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(148, 163, 184, 0.14) 1px, transparent 1px);
  background-size: 22px 22px;
  mask-image: radial-gradient(ellipse 85% 75% at 50% 42%, #000 20%, transparent 100%);
  opacity: 0.55;
  pointer-events: none;
}

.arch-flow-layout {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(9.5rem, 11.5rem);
  gap: 1.25rem;
  align-items: start;
  z-index: 1;
}

.arch-flow-main {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.5rem 0.5rem;
  position: relative;
  z-index: 1;
}

.arch-flow-row {
  display: flex;
  justify-content: center;
  width: 100%;
}

.arch-flow-row--branch {
  gap: 1.25rem;
  flex-wrap: wrap;
}

.arch-flow-node {
  position: relative;
  width: min(100%, 15.5rem);
  opacity: 0;
  transform: translateY(12px) scale(0.98);
  animation: arch-flow-node-in 0.55s ease-out forwards;
}

.arch-flow-row:nth-child(1) .arch-flow-node { animation-delay: 0.05s; }
.arch-flow-row:nth-child(2) .arch-flow-node { animation-delay: 0.14s; }
.arch-flow-row:nth-child(3) .arch-flow-node { animation-delay: 0.23s; }
.arch-flow-row:nth-child(4) .arch-flow-node { animation-delay: 0.32s; }
.arch-flow-row:nth-child(5) .arch-flow-node { animation-delay: 0.41s; }
.arch-flow-row:nth-child(6) .arch-flow-node { animation-delay: 0.5s; }
.arch-flow-row:nth-child(7) .arch-flow-node { animation-delay: 0.59s; }
.arch-flow-row:nth-child(8) .arch-flow-node { animation-delay: 0.68s; }
.arch-flow-row:nth-child(9) .arch-flow-node { animation-delay: 0.77s; }
.arch-flow-row:nth-child(10) .arch-flow-node { animation-delay: 0.86s; }

.arch-flow-node-inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.72rem 0.95rem;
  border-radius: 0.85rem;
  border: 1px solid color-mix(in srgb, var(--node-accent, #4d9fff) 42%, var(--border));
  background:
    linear-gradient(155deg, color-mix(in srgb, var(--node-accent, #4d9fff) 10%, rgba(12, 16, 24, 0.94)), rgba(8, 11, 18, 0.92));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 10px 28px rgba(0, 0, 0, 0.28);
  transition:
    border-color 0.35s ease,
    box-shadow 0.35s ease,
    transform 0.35s ease;
}

.arch-flow-node-glow {
  position: absolute;
  inset: -2px;
  border-radius: 0.95rem;
  background: radial-gradient(ellipse at 50% 50%, color-mix(in srgb, var(--node-accent, #4d9fff) 35%, transparent), transparent 70%);
  opacity: 0.35;
  filter: blur(10px);
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.arch-flow-node-icon {
  flex: 0 0 auto;
  width: 1.35rem;
  height: 1.35rem;
  color: var(--node-accent, #4d9fff);
}

.arch-flow-node-copy {
  display: flex;
  flex-direction: column;
  gap: 0.12rem;
  min-width: 0;
}

.arch-flow-node-label {
  font-size: 0.92rem;
  font-weight: 650;
  color: var(--text);
  line-height: 1.25;
}

.arch-flow-node-sub {
  font-size: 0.72rem;
  color: var(--muted);
  line-height: 1.35;
}

.arch-flow-node--blue { --node-accent: #4d9fff; }
.arch-flow-node--purple { --node-accent: #9b7bff; }
.arch-flow-node--teal { --node-accent: #38d9c0; }
.arch-flow-node--green { --node-accent: #4ade80; }
.arch-flow-node--amber { --node-accent: #fbbf24; }

.arch-flow-node.is-active .arch-flow-node-inner {
  border-color: color-mix(in srgb, var(--node-accent) 72%, #fff);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 0 0 1px color-mix(in srgb, var(--node-accent) 22%, transparent),
    0 0 28px color-mix(in srgb, var(--node-accent) 28%, transparent);
  transform: translateY(-1px);
}

.arch-flow-node.is-active .arch-flow-node-glow {
  opacity: 0.95;
  transform: scale(1.04);
  animation: arch-flow-node-pulse 1.4s ease-in-out infinite;
}

.arch-flow-node.is-visited:not(.is-active) .arch-flow-node-inner {
  border-color: color-mix(in srgb, var(--node-accent) 32%, var(--border));
}

.arch-flow-sidebar {
  position: relative;
  margin-top: 2.5rem;
  opacity: 0;
  transform: translateX(12px);
  animation: arch-flow-sidebar-in 0.6s ease-out 0.35s forwards;
  z-index: 1;
}

.arch-flow-sidebar-inner {
  position: relative;
  z-index: 1;
  padding: 1rem 0.9rem;
  border-radius: 0.9rem;
  border: 1px solid color-mix(in srgb, #7c5cff 38%, var(--border));
  background: linear-gradient(165deg, rgba(18, 14, 32, 0.92), rgba(10, 12, 20, 0.94));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.arch-flow-sidebar-glow {
  position: absolute;
  inset: -4px;
  border-radius: 1rem;
  background: radial-gradient(ellipse at 50% 30%, rgba(124, 92, 255, 0.22), transparent 68%);
  filter: blur(12px);
  opacity: 0.55;
  transition: opacity 0.35s ease;
}

.arch-flow-sidebar.is-active .arch-flow-sidebar-glow {
  opacity: 1;
  animation: arch-flow-node-pulse 2s ease-in-out infinite;
}

.arch-flow-sidebar-head {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
  color: #b9a6ff;
}

.arch-flow-sidebar-head .arch-flow-node-icon {
  width: 1.1rem;
  height: 1.1rem;
}

.arch-flow-sidebar-title {
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.arch-flow-sidebar-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.arch-flow-sidebar-list li {
  font-size: 0.78rem;
  color: var(--muted);
  padding-left: 0.85rem;
  position: relative;
}

.arch-flow-sidebar-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 0.35rem;
  height: 0.35rem;
  border-radius: 50%;
  background: linear-gradient(135deg, #4d9fff, #7c5cff);
  box-shadow: 0 0 8px rgba(77, 159, 255, 0.45);
}

.arch-flow-edges {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  overflow: visible;
}

.arch-flow-edge {
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  opacity: 0;
  stroke-dasharray: 900;
  stroke-dashoffset: 900;
  animation: arch-flow-edge-draw 1.1s ease-out forwards;
}

.arch-flow-edge--dashed {
  stroke: rgba(148, 163, 184, 0.45);
  stroke-dasharray: 7 9;
  stroke-dashoffset: 0;
  opacity: 0.65;
  animation: arch-flow-edge-fade 0.8s ease-out 0.5s forwards;
}

.arch-flow-pulse {
  opacity: 0.9;
  filter: drop-shadow(0 0 4px rgba(77, 159, 255, 0.8));
}

.arch-flow--live .arch-flow-edge:not(.arch-flow-edge--dashed) {
  stroke: rgba(77, 159, 255, 0.55);
}

@keyframes arch-flow-node-in {
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes arch-flow-sidebar-in {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes arch-flow-node-pulse {
  0%, 100% { opacity: 0.55; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.06); }
}

@keyframes arch-flow-edge-draw {
  to {
    stroke-dashoffset: 0;
    opacity: 0.85;
  }
}

@keyframes arch-flow-edge-fade {
  to { opacity: 0.7; }
}

.arch-flow--reduced .arch-flow-node,
.arch-flow--reduced .arch-flow-sidebar {
  animation: none;
  opacity: 1;
  transform: none;
}

.arch-flow--reduced .arch-flow-edge {
  animation: none;
  stroke-dashoffset: 0;
  opacity: 0.7;
}

.arch-flow--reduced .arch-flow-pulse {
  display: none;
}

@media (max-width: 720px) {
  .architecture-tab {
    min-height: 44px;
    padding: 0.65rem 1rem;
  }

  .arch-flow-layout {
    grid-template-columns: 1fr;
  }

  .arch-flow-sidebar {
    margin-top: 0.5rem;
    max-width: 16rem;
    margin-inline: auto;
  }

  .architecture-diagram-mount .arch-flow {
    min-height: 24rem;
  }
}

.architecture-reduced-motion .arch-flow-node.is-active .arch-flow-node-glow,
.architecture-reduced-motion .arch-flow-sidebar.is-active .arch-flow-sidebar-glow,
.architecture-reduced-motion .arch-flow-pulse {
  animation: none !important;
}

/* ── Behind the scenes / engineering (WEB-08) ── */
.engineering-section {
  position: relative;
  overflow: hidden;
}

.engineering-section-head {
  position: relative;
  z-index: 1;
  max-width: 42rem;
}

.engineering-ambient {
  pointer-events: none;
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.engineering-ambient-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.42;
}

.engineering-ambient-glow--a {
  width: 280px;
  height: 280px;
  top: 12%;
  left: -6%;
  background: color-mix(in srgb, var(--accent) 55%, transparent);
}

.engineering-ambient-glow--b {
  width: 320px;
  height: 320px;
  bottom: 8%;
  right: -8%;
  background: color-mix(in srgb, var(--ok) 35%, transparent);
}

.engineering-surfaces {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.85rem;
  margin-bottom: clamp(1.75rem, 3vw, 2.5rem);
}

.engineering-surface {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 1rem 1.1rem;
  border-radius: var(--radius);
  border: 1px solid color-mix(in srgb, var(--accent) 28%, var(--border));
  background: linear-gradient(160deg, color-mix(in srgb, var(--accent) 8%, rgba(12, 16, 24, 0.92)), rgba(8, 11, 18, 0.9));
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s ease, transform 0.25s ease, box-shadow 0.25s ease;
  opacity: 0;
  transform: translateY(10px);
  animation: engineering-in 0.55s ease-out forwards;
}

.engineering-surface:nth-child(1) { animation-delay: 0.05s; }
.engineering-surface:nth-child(2) { animation-delay: 0.12s; }
.engineering-surface:nth-child(3) { animation-delay: 0.19s; }
.engineering-surface:nth-child(4) { animation-delay: 0.26s; }

.engineering-surface:hover,
.engineering-surface:focus-visible {
  border-color: color-mix(in srgb, var(--accent) 70%, var(--border));
  transform: translateY(-2px);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.35);
  outline: none;
}

.engineering-surface-label {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text);
}

.engineering-surface-meta {
  font-size: 0.78rem;
  color: var(--muted);
  line-height: 1.4;
}

.engineering-topics {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.1rem 1.35rem;
}

.engineering-topic {
  padding: 1.15rem 1.2rem 1.2rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--bg-elevated) 88%, transparent);
  opacity: 0;
  transform: translateY(12px);
  animation: engineering-in 0.6s ease-out forwards;
}

.engineering-topic:nth-child(1) { animation-delay: 0.18s; }
.engineering-topic:nth-child(2) { animation-delay: 0.26s; }
.engineering-topic:nth-child(3) { animation-delay: 0.34s; }
.engineering-topic:nth-child(4) { animation-delay: 0.42s; }

.engineering-topic h3 {
  margin: 0 0 0.55rem;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
}

.engineering-topic p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.6;
}

.engineering-topic code {
  font-family: var(--mono);
  font-size: 0.82em;
  color: color-mix(in srgb, var(--ok) 70%, var(--text));
}

.engineering-topic-links {
  margin-top: 0.75rem !important;
  font-size: 0.85rem !important;
}

.engineering-topic-links a {
  color: var(--accent);
  text-decoration: none;
}

.engineering-topic-links a:hover,
.engineering-topic-links a:focus-visible {
  text-decoration: underline;
}

.engineering-foot {
  position: relative;
  z-index: 1;
  margin: 1.75rem 0 0;
  font-size: 0.88rem;
}

.engineering-foot a {
  color: var(--accent);
}

@keyframes engineering-in {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

@media (max-width: 640px) {
  .engineering-surfaces,
  .engineering-topics {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .engineering-surface,
  .engineering-topic {
    animation: none;
    opacity: 1;
    transform: none;
  }
}
