:root {
  /* Palette harmonized directly with OxideViewer workstation UI & logo */
  --bg: #06081a;
  --bg-deep: #090c29;
  --bg-alt: #0b0f30;
  --surface: #12173a;
  --surface-elevated: #171d46;
  --surface-hover: #1e2557;
  --border: rgba(122, 136, 214, 0.22);
  --border-strong: rgba(90, 204, 230, 0.38);

  --oxide: #d4622a;
  --oxide-bright: #e87a43;
  --oxide-glow: rgba(212, 98, 42, 0.24);
  --cyan: #5acce6;
  --blue: #348cfd;
  --alambec-blue: #0d6efd;
  --green: #5fd39a;
  --amber: #f5b342;
  --purple: #c38bf0;

  /* MPR crosshair triad */
  --plane-axial: #4a90ff;
  --plane-coronal: #3cb44b;
  --plane-sagittal: #f58231;

  --text: #eef1fa;
  --text-muted: #a8b0d3;
  --text-dim: #7b84ae;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --shadow-lg: 0 24px 64px rgba(0, 0, 0, 0.55);

  --font-sans: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;
}

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

html {
  scroll-behavior: smooth;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

body {
  margin: 0;
  background: var(--bg);
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--cyan);
  text-decoration: none;
}

button {
  font: inherit;
  color: inherit;
}

.container {
  width: min(2040px, 92vw);
  margin-inline: auto;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-weight: 600;
  border-radius: 10px;
  padding: 0.72rem 1.25rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.16s ease, background-color 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
  white-space: nowrap;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:focus-visible,
button:focus-visible,
a:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 2px;
}

.btn-sm {
  font-size: 0.875rem;
  padding: 0.5rem 0.95rem;
  border-radius: 8px;
}

.btn-lg {
  font-size: 0.98rem;
  padding: 0.85rem 1.45rem;
}

.btn-primary {
  background: linear-gradient(135deg, var(--oxide), var(--oxide-bright));
  color: #fff;
  box-shadow: 0 8px 24px rgba(212, 98, 42, 0.34);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #de6b31, #f08650);
  box-shadow: 0 10px 28px rgba(212, 98, 42, 0.48);
}

.btn-secondary {
  background: rgba(90, 204, 230, 0.09);
  border-color: rgba(90, 204, 230, 0.38);
  color: var(--text);
}

.btn-secondary:hover {
  background: rgba(90, 204, 230, 0.17);
  border-color: var(--cyan);
  color: #fff;
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.03);
  border-color: var(--border);
  color: var(--text-muted);
}

.btn-ghost:hover {
  border-color: rgba(255, 255, 255, 0.28);
  color: #fff;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(6, 8, 26, 0.84);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  min-height: 68px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--text);
}

.brand-text {
  display: flex;
  align-items: baseline;
  gap: 0.45rem;
}

.brand-name {
  font-weight: 750;
  font-size: 1.12rem;
  letter-spacing: -0.02em;
  color: #fff;
}

.brand-sub {
  font-size: 0.76rem;
  color: var(--text-dim);
  font-weight: 500;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 1.35rem;
}

.main-nav a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.15s ease;
}

.main-nav a:hover {
  color: #fff;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 2px;
}

.lang-link {
  font-size: 0.76rem;
  font-weight: 700;
  padding: 0.3rem 0.52rem;
  border-radius: 6px;
  color: var(--text-muted);
  transition: background-color 0.15s ease, color 0.15s ease;
}

.lang-link:hover {
  color: #fff;
}

.lang-link.is-active {
  background: var(--surface-hover);
  color: var(--cyan);
}

.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 38px;
  height: 38px;
  padding: 8px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
}

.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1rem 1.25rem 1.35rem;
  background: var(--bg-deep);
  border-top: 1px solid var(--border);
}

.mobile-nav[hidden] {
  display: none;
}

.mobile-nav a {
  color: var(--text);
  font-weight: 500;
  padding: 0.35rem 0;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 3.5rem 0 3.75rem;
  background:
    radial-gradient(ellipse 68% 48% at 50% -8%, rgba(212, 98, 42, 0.2), transparent 65%),
    radial-gradient(ellipse 55% 40% at 85% 22%, rgba(90, 204, 230, 0.14), transparent 65%),
    linear-gradient(180deg, var(--bg-deep) 0%, var(--bg) 100%);
  overflow: hidden;
}

.hero-grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(90, 204, 230, 0.045) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(90, 204, 230, 0.045) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 85% 75% at 50% 30%, #000 20%, transparent 82%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
}

.hero-top {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.32fr);
  gap: clamp(2rem, 3.4vw, 4rem);
  align-items: center;
}

.hero-copy {
  text-align: left;
}

.eyebrow-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--cyan);
  background: rgba(90, 204, 230, 0.08);
  border: 1px solid rgba(90, 204, 230, 0.28);
  padding: 0.36rem 0.9rem;
  border-radius: 999px;
  margin-bottom: 1.25rem;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--oxide-bright);
  box-shadow: 0 0 0 4px rgba(232, 122, 67, 0.25);
}

.hero h1 {
  margin: 0;
  font-size: clamp(2rem, 3.1vw, 3.35rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.03em;
  color: #fff;
}

.hero-subtitle {
  margin: 1.2rem 0 0;
  max-width: 64ch;
  font-size: clamp(1rem, 1.15vw, 1.14rem);
  color: var(--text-muted);
}

.hero-cta-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 0.8rem;
  margin-top: 1.75rem;
}

.research-notice {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin: 1.25rem 0 0;
  font-size: 0.82rem;
  color: var(--text-dim);
}

/* Hero Workstation Stage */
.hero-stage {
  margin-top: 0;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(90, 204, 230, 0.08);
}

.stage-chrome {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.72rem 1rem;
  background: #0b0f30;
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
}

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

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.dot--axial { background: var(--plane-axial); }
.dot--coronal { background: var(--plane-coronal); }
.dot--sagittal { background: var(--plane-sagittal); }
.dot--oxide { background: var(--oxide-bright); }

.stage-url {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
}

.live-indicator {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 8px var(--green);
}

.stage-open-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--cyan);
}

.stage-open-link:hover {
  color: #fff;
  text-decoration: underline;
}

.stage-viewport {
  position: relative;
  background: #000;
  aspect-ratio: 16 / 10;
}

.stage-zoom-trigger {
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: zoom-in;
  position: relative;
}

.stage-zoom-trigger img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.22s ease;
}

.stage-zoom-badge {
  position: absolute;
  right: 1rem;
  bottom: 1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: #fff;
  background: rgba(9, 12, 41, 0.82);
  border: 1px solid rgba(90, 204, 230, 0.35);
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  backdrop-filter: blur(8px);
  opacity: 0.85;
  transition: opacity 0.15s ease, transform 0.15s ease;
}

.stage-zoom-trigger:hover .stage-zoom-badge {
  opacity: 1;
  transform: translateY(-1px);
}

.stage-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  padding: 0.75rem 0.9rem;
  background: #0b0f30;
  border-top: 1px solid var(--border);
  justify-content: center;
}

.stage-tab {
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.38rem 0.72rem;
  border-radius: 8px;
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.15s ease;
}

.stage-tab:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.05);
}

.stage-tab.is-active {
  background: rgba(212, 98, 42, 0.18);
  border-color: rgba(232, 122, 67, 0.65);
  color: #fff;
}

/* Hero Stats */
.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-top: 2rem;
}

.stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.2rem 1.25rem;
}

.stat-value {
  font-size: 1.85rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--oxide-bright);
  line-height: 1.15;
}

.stat-label {
  font-size: 0.92rem;
  font-weight: 650;
  color: #fff;
  margin-top: 0.35rem;
}

.stat-detail {
  font-size: 0.8rem;
  color: var(--text-dim);
  margin-top: 0.25rem;
}

/* ---------- Sections ---------- */
.section {
  padding: 5.5rem 0;
  position: relative;
}

.section--alt {
  background: linear-gradient(180deg, var(--bg-alt) 0%, #080b24 100%);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-head {
  max-width: 960px;
  margin-bottom: 2.5rem;
}

.section-eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--oxide-bright);
  margin-bottom: 0.6rem;
}

.section-eyebrow--alambec {
  color: var(--cyan);
}

.section h2 {
  margin: 0;
  font-size: clamp(1.75rem, 3.1vw, 2.5rem);
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: -0.025em;
  color: #fff;
}

.section-sub {
  margin: 0.9rem 0 0;
  font-size: 1.04rem;
  color: var(--text-muted);
}

/* ---------- Live Demo Gallery ---------- */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-bottom: 1.8rem;
}

.filter-pill {
  font-size: 0.86rem;
  font-weight: 600;
  padding: 0.48rem 1rem;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.15s ease;
}

.filter-pill:hover {
  border-color: var(--cyan);
  color: #fff;
}

.filter-pill.is-active {
  background: rgba(90, 204, 230, 0.16);
  border-color: var(--cyan);
  color: #fff;
}

.demo-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.35rem;
}

.demo-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.demo-card[hidden] {
  display: none;
}

.demo-card:hover {
  transform: translateY(-3px);
  border-color: var(--border-strong);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.4);
}

.demo-media {
  position: relative;
  aspect-ratio: 16 / 10;
  background: #000;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}

.demo-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.demo-card:hover .demo-media img {
  transform: scale(1.02);
}

.demo-zoom-btn {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(9, 12, 41, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  color: #fff;
  cursor: pointer;
  backdrop-filter: blur(6px);
  transition: background-color 0.15s ease, border-color 0.15s ease;
}

.demo-zoom-btn:hover {
  background: var(--oxide);
  border-color: var(--oxide-bright);
}

.demo-modalities {
  position: absolute;
  left: 0.75rem;
  bottom: 0.75rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.mod-chip {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.18rem 0.5rem;
  border-radius: 5px;
  background: rgba(9, 12, 41, 0.86);
  border: 1px solid rgba(90, 204, 230, 0.45);
  color: var(--cyan);
  backdrop-filter: blur(6px);
}

.mod--pet { border-color: rgba(245, 130, 49, 0.65); color: #ffb37a; }
.mod--rt { border-color: rgba(195, 139, 240, 0.65); color: #ddb8ff; }
.mod--path { border-color: rgba(240, 122, 168, 0.65); color: #ffacc9; }
.mod--seg { border-color: rgba(95, 211, 154, 0.6); color: var(--green); }

.demo-body {
  padding: 1.35rem 1.4rem 1.45rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.demo-meta {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  font-size: 0.78rem;
  color: var(--text-dim);
  margin-bottom: 0.45rem;
}

.demo-collection {
  font-weight: 600;
  color: var(--cyan);
}

.demo-patient {
  font-family: var(--font-mono);
}

.demo-body h3 {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 750;
  color: #fff;
  line-height: 1.3;
}

.demo-caption {
  margin: 0.65rem 0 0;
  font-size: 0.92rem;
  color: var(--text-muted);
}

.demo-highlights {
  list-style: none;
  padding: 0;
  margin: 1rem 0 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.demo-highlights li {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.85rem;
  color: var(--text);
}

.demo-highlights svg {
  color: var(--green);
  flex-shrink: 0;
}

.demo-actions {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.demo-uid {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--text-dim);
}

/* More Demos Bar */
.more-demos-bar {
  margin-top: 2.2rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.5rem;
}

.more-demos-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.2rem;
}

.more-demos-head h3 {
  margin: 0;
  font-size: 1.08rem;
  color: #fff;
}

.more-demos-head p {
  margin: 0.25rem 0 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.more-demos-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.9rem;
}

.quick-demo-link {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  padding: 1rem;
  background: var(--surface-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: border-color 0.16s ease, transform 0.16s ease, background-color 0.16s ease;
}

.quick-demo-link:hover {
  border-color: var(--cyan);
  background: var(--surface-hover);
  transform: translateY(-2px);
}

.quick-demo-mods {
  display: flex;
  gap: 0.35rem;
}

.quick-demo-title {
  font-size: 0.92rem;
  font-weight: 650;
  color: #fff;
  line-height: 1.35;
}

.quick-demo-sub {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.78rem;
  color: var(--cyan);
}

/* ---------- Features Grid ---------- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  transition: border-color 0.18s ease;
}

.feature-card:hover {
  border-color: rgba(90, 204, 230, 0.36);
}

.feature-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(212, 98, 42, 0.14);
  border: 1px solid rgba(232, 122, 67, 0.34);
  color: var(--oxide-bright);
  margin-bottom: 1rem;
}

.feature-card h3 {
  margin: 0 0 0.85rem;
  font-size: 1.12rem;
  color: #fff;
}

.feature-list {
  margin: 0;
  padding-left: 1.15rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.feature-list li::marker {
  color: var(--cyan);
}

.scope-note {
  margin-top: 2rem;
  display: flex;
  gap: 0.9rem;
  align-items: flex-start;
  padding: 1.15rem 1.35rem;
  background: rgba(245, 179, 66, 0.06);
  border: 1px solid rgba(245, 179, 66, 0.28);
  border-radius: var(--radius-md);
}

.scope-note-icon {
  color: var(--amber);
  margin-top: 2px;
  flex-shrink: 0;
}

.scope-note strong {
  color: #fff;
  font-size: 0.94rem;
}

.scope-note p {
  margin: 0.25rem 0 0;
  font-size: 0.88rem;
  color: var(--text-muted);
}

/* ---------- Architecture Diagram ---------- */
.arch-wrapper {
  display: grid;
  grid-template-columns: minmax(0, 1.8fr) minmax(320px, 0.85fr);
  gap: 1.35rem;
  align-items: start;
}

.arch-diagram-card {
  background: #0a0e29;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
}

.arch-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border);
}

.arch-hint {
  font-size: 0.85rem;
  color: var(--cyan);
  font-weight: 500;
}

.arch-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.arch-legend span {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.swatch {
  display: inline-block;
  width: 11px;
  height: 11px;
  border-radius: 3px;
}

.swatch--srv { background: #262e5c; border: 1px solid #6c7bc2; }
.swatch--wasm { background: #14325e; border: 1px solid var(--cyan); }
.swatch--rust { background: #3e221d; border: 1px solid var(--oxide-bright); }
.swatch--test { background: #13362f; border: 1px solid var(--green); }

.arch-svg-scroll {
  overflow-x: auto;
}

.arch-svg {
  width: 100%;
  min-width: 720px;
  height: auto;
  display: block;
}

.arch-tier-label {
  font-size: 11px;
  font-weight: 700;
  fill: var(--text-dim);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.arch-tier-label--cyan { fill: var(--cyan); }
.arch-tier-label--oxide { fill: var(--oxide-bright); }
.arch-tier-label--green { fill: var(--green); }

.arch-group {
  fill: rgba(255, 255, 255, 0.015);
  stroke: rgba(122, 136, 214, 0.35);
  stroke-width: 1.2;
  stroke-dasharray: 6 4;
}

.arch-group--browser {
  fill: rgba(90, 204, 230, 0.03);
  stroke: rgba(90, 204, 230, 0.4);
}

.arch-group--rust {
  fill: rgba(212, 98, 42, 0.04);
  stroke: rgba(232, 122, 67, 0.45);
}

.arch-appmod {
  fill: rgba(18, 34, 74, 0.55);
  stroke: rgba(90, 204, 230, 0.55);
  stroke-width: 1.2;
}

.arch-appmod-label {
  font-size: 10.5px;
  font-weight: 700;
  fill: var(--cyan);
}

.arch-node {
  cursor: pointer;
  outline: none;
}

.arch-node rect {
  stroke-width: 1.2;
  transition: filter 0.16s ease, stroke-width 0.16s ease, stroke 0.16s ease;
}

.arch-node--server rect { fill: #1a214a; stroke: #6a78be; }
.arch-node--wasm rect { fill: #122952; stroke: #4eb2d6; }
.arch-node--wasm-lazy rect { fill: #112244; stroke: #4eb2d6; stroke-dasharray: 4 3; }
.arch-node--store rect { fill: #181c38; stroke: #8c95c2; }
.arch-node--crate rect { fill: #2c1c26; stroke: #d4622a; }
.arch-node--crate-core rect { fill: #3b201c; stroke: #e87a43; stroke-width: 1.6; }
.arch-node--test rect { fill: #112f2d; stroke: #4ec48d; }

.arch-node:hover rect,
.arch-node:focus rect,
.arch-node.is-selected rect {
  stroke: #fff;
  stroke-width: 2;
  filter: drop-shadow(0 0 10px rgba(90, 204, 230, 0.42));
}

.arch-node-title {
  font-size: 11.5px;
  font-weight: 700;
  fill: #f4f7ff;
  pointer-events: none;
}

.arch-node-sub {
  font-size: 9.8px;
  fill: #aeb8dc;
  pointer-events: none;
}

.arch-flow {
  stroke: #7c90c9;
  stroke-width: 1.4;
}

.arch-flow--cyan { stroke: var(--cyan); }
.arch-flow--oxide { stroke: var(--oxide-bright); }
.arch-flow--green { stroke: var(--green); }
.arch-flow--dashed { stroke-dasharray: 5 4; }

.arch-flow-label {
  font-size: 9.5px;
  fill: #9aa7d4;
  font-weight: 600;
}

.arch-flow-label--cyan { fill: var(--cyan); }
.arch-flow-label--oxide { fill: var(--oxide-bright); }

.arch-inspector {
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-left: 4px solid var(--oxide-bright);
  border-radius: var(--radius-md);
  padding: 1.45rem 1.55rem;
  position: sticky;
  top: 88px;
}

.arch-inspector-tag {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--cyan);
}

.arch-inspector h3 {
  margin: 0.25rem 0 0.45rem;
  font-size: 1.12rem;
  color: #fff;
}

.arch-inspector p {
  margin: 0;
  font-size: 0.94rem;
  color: var(--text-muted);
}

.principles-grid {
  margin-top: 2rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.principle-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.45rem;
}

.principle-num {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--oxide-bright);
}

.principle-card h3 {
  margin: 0.45rem 0 0.55rem;
  font-size: 1.06rem;
  color: #fff;
}

.principle-card p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* ---------- Benchmarks ---------- */
.bench-tabs {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  padding: 5px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  margin-bottom: 1.6rem;
}

.bench-tab {
  font-size: 0.88rem;
  font-weight: 650;
  padding: 0.55rem 1.1rem;
  border-radius: 8px;
  background: transparent;
  border: 0;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.15s ease;
}

.bench-tab:hover {
  color: #fff;
}

.bench-tab.is-active {
  background: var(--surface-hover);
  color: var(--cyan);
  box-shadow: inset 0 0 0 1px rgba(90, 204, 230, 0.35);
}

.bench-panel[hidden] {
  display: none;
}

.bench-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.5rem;
}

.bench-card h3 {
  margin: 0 0 1rem;
  font-size: 1.02rem;
  color: #fff;
}

.bench-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.bench-card-head h3 {
  margin: 0;
}

.bench-legend {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.1rem;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.bench-legend span {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.dot-legend {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 3px;
}

.dot-legend--oxide { background: var(--oxide-bright); }
.dot-legend--cyan { background: var(--cyan); }
.dot-legend--green { background: var(--green); }

.bench-svg {
  width: 100%;
  height: auto;
  display: block;
}

.chart-grid {
  stroke: rgba(154, 160, 195, 0.14);
  stroke-width: 1;
}

.chart-axis {
  stroke: rgba(154, 160, 195, 0.45);
  stroke-width: 1.2;
}

.chart-ylabel {
  font-family: var(--font-mono);
  font-size: 11px;
  fill: var(--text-dim);
}

.chart-xlabel {
  font-size: 12px;
  font-weight: 600;
  fill: var(--text-muted);
}

.chart-val {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  fill: var(--text);
}

.chart-val--accent {
  fill: var(--oxide-bright);
}

.bench-speed-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(320px, 0.95fr);
  gap: 1.35rem;
  align-items: stretch;
}

.bench-kpis {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 0;
}

.bench-kpi-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.25rem;
}

.bench-kpi-val {
  font-family: var(--font-mono);
  font-size: 1.32rem;
  font-weight: 800;
  color: var(--oxide-bright);
}

.bench-kpi-label {
  font-size: 0.94rem;
  font-weight: 650;
  color: #fff;
  margin-top: 0.3rem;
}

.bench-kpi-sub {
  margin: 0.35rem 0 0;
  font-size: 0.84rem;
  color: var(--text-muted);
}

/* Profile tab */
.profile-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

.profile-footer {
  margin-top: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.dot-note {
  font-style: italic;
  color: var(--text-dim);
}

.insight-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--cyan);
  border-radius: var(--radius-sm);
  padding: 1rem 1.25rem;
}

.insight-box strong {
  color: #fff;
  font-size: 0.94rem;
}

.insight-box p {
  margin: 0.35rem 0 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* Security tab */
.security-grid {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 1.25rem;
}

.security-bars {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.sec-row-label {
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.35rem;
}

.sec-bar-group {
  display: flex;
  flex-direction: column;
  gap: 0.32rem;
}

.sec-bar-line {
  display: grid;
  grid-template-columns: 88px 1fr 72px;
  align-items: center;
  gap: 0.65rem;
}

.sec-bar-tag {
  font-size: 0.76rem;
  color: var(--text-dim);
}

.sec-bar-tag--oxide {
  color: var(--oxide-bright);
  font-weight: 700;
}

.sec-bar-track {
  height: 10px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 999px;
  overflow: hidden;
}

.sec-bar-fill {
  height: 100%;
  border-radius: 999px;
}

.sec-bar-fill--oxide { background: linear-gradient(90deg, var(--oxide), var(--oxide-bright)); }
.sec-bar-fill--cyan { background: rgba(90, 204, 230, 0.55); }

.sec-bar-val {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  text-align: right;
  color: var(--text-muted);
}

.sec-bar-val--oxide {
  color: #fff;
  font-weight: 700;
}

.security-badges {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.sec-badge-card {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.1rem 1.2rem;
}

.sec-badge-icon {
  color: var(--green);
  margin-top: 2px;
  flex-shrink: 0;
}

.sec-badge-card h4 {
  margin: 0;
  font-size: 0.95rem;
  color: #fff;
}

.sec-badge-card p {
  margin: 0.25rem 0 0;
  font-size: 0.84rem;
  color: var(--text-muted);
}

.tradeoffs-note {
  margin: 1.5rem 0 0;
  font-size: 0.84rem;
  color: var(--text-dim);
  line-height: 1.55;
}

/* ---------- Deploy & Licensing ---------- */
.deploy-layout {
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
}

.terminal-card {
  background: #07091c;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.terminal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  padding: 0.7rem 1rem;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
}

.terminal-title {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
}

.copy-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.36rem 0.75rem;
  border-radius: 7px;
  background: var(--surface-elevated);
  border: 1px solid var(--border);
  color: var(--text);
  cursor: pointer;
  transition: all 0.15s ease;
}

.copy-btn:hover {
  border-color: var(--cyan);
  color: var(--cyan);
}

.copy-btn.is-copied {
  border-color: var(--green);
  color: var(--green);
}

.terminal-code {
  margin: 0;
  padding: 1.25rem 1.35rem;
  font-family: var(--font-mono);
  font-size: 0.9rem;
  line-height: 1.65;
  color: var(--cyan);
  overflow-x: auto;
}

.compat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.15rem;
}

.compat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.3rem 1.4rem;
}

.compat-card h3 {
  margin: 0 0 0.45rem;
  font-size: 1.02rem;
  color: #fff;
}

.compat-card p {
  margin: 0;
  font-size: 0.89rem;
  color: var(--text-muted);
}

.license-banner {
  margin-top: 2rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.5rem;
}

.license-banner > h3 {
  margin: 0 0 1.1rem;
  font-size: 1.12rem;
  color: #fff;
}

.license-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.15rem;
}

.license-card {
  background: var(--surface-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1.25rem;
}

.license-card--commercial {
  border-color: rgba(232, 122, 67, 0.42);
}

.license-pill {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.2rem 0.55rem;
  border-radius: 6px;
}

.license-pill--agpl {
  background: rgba(90, 204, 230, 0.14);
  color: var(--cyan);
}

.license-pill--comm {
  background: rgba(212, 98, 42, 0.2);
  color: var(--oxide-bright);
}

.license-card h4 {
  margin: 0.65rem 0 0.4rem;
  font-size: 1rem;
  color: #fff;
}

.license-card p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--text-muted);
}

/* ---------- Alambec & SaaS Spotlight ---------- */
.section--alambec {
  background:
    radial-gradient(ellipse 65% 55% at 85% 20%, rgba(13, 110, 253, 0.16), transparent 68%),
    radial-gradient(ellipse 55% 45% at 15% 80%, rgba(212, 98, 42, 0.14), transparent 68%),
    var(--bg);
}

.alambec-shell {
  background: linear-gradient(160deg, rgba(21, 26, 59, 0.94), rgba(11, 15, 45, 0.98));
  border: 1px solid rgba(90, 204, 230, 0.34);
  border-radius: 24px;
  padding: 3rem;
  box-shadow: var(--shadow-lg);
}

.alambec-header {
  max-width: 820px;
}

.trust-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1.4rem;
}

.trust-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.42rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text);
  background: rgba(13, 110, 253, 0.14);
  border: 1px solid rgba(90, 204, 230, 0.32);
  padding: 0.38rem 0.8rem;
  border-radius: 999px;
}

.trust-badge svg {
  color: var(--cyan);
}

.alambec-offerings {
  margin-top: 2.25rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
}

.offering-card {
  background: rgba(9, 12, 41, 0.65);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.45rem;
}

.offering-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--oxide-bright);
  background: rgba(212, 98, 42, 0.14);
  padding: 0.22rem 0.58rem;
  border-radius: 6px;
}

.offering-card h3 {
  margin: 0.75rem 0 0.55rem;
  font-size: 1.08rem;
  color: #fff;
}

.offering-card p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.alambec-bottom {
  margin-top: 2rem;
  display: grid;
  grid-template-columns: 0.92fr 1.35fr;
  gap: 1.35rem;
  align-items: stretch;
}

.founders-card {
  background: rgba(9, 12, 41, 0.65);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.founders-eyebrow {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-dim);
  margin-bottom: 1.15rem;
}

.founders-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.founder {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.founder-avatar {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.92rem;
  color: #fff;
  background: linear-gradient(135deg, var(--alambec-blue), var(--cyan));
  flex-shrink: 0;
}

.founder-name {
  font-weight: 700;
  color: #fff;
  font-size: 0.98rem;
}

.founder-role {
  font-size: 0.84rem;
  color: var(--text-muted);
}

.contact-card {
  background: linear-gradient(135deg, rgba(13, 110, 253, 0.14), rgba(212, 98, 42, 0.12));
  border: 1px solid rgba(90, 204, 230, 0.42);
  border-radius: var(--radius-md);
  padding: 1.65rem 1.75rem;
}

.contact-eyebrow {
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--cyan);
}

.contact-card h3 {
  margin: 0.4rem 0 0.55rem;
  font-size: 1.28rem;
  color: #fff;
}

.contact-card p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--text-muted);
}

.contact-email-box {
  margin-top: 1.15rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
  background: rgba(6, 8, 26, 0.78);
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  padding: 0.65rem 0.9rem;
}

.contact-email-link {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-mono);
  font-size: 1.02rem;
  font-weight: 700;
  color: #fff;
}

.contact-email-link svg {
  color: var(--cyan);
}

.contact-cta-row {
  margin-top: 1.15rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* ---------- Footer ---------- */
.site-footer {
  background: #050715;
  border-top: 1px solid var(--border);
  padding: 2.75rem 0 2.25rem;
}

.footer-inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

.footer-brand p {
  margin: 0.55rem 0 0;
  max-width: 340px;
  font-size: 0.88rem;
  color: var(--text-dim);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem 1.5rem;
  align-items: center;
}

.footer-links a {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.footer-links a:hover {
  color: var(--cyan);
}

.footer-lang {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.88rem;
  color: var(--text-dim);
}

.footer-lang a {
  color: var(--text-muted);
}

.footer-lang a.is-active {
  color: var(--cyan);
  font-weight: 700;
}

.footer-bottom {
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(122, 136, 214, 0.14);
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.footer-bottom p {
  margin: 0;
  font-size: 0.82rem;
  color: var(--text-dim);
}

.footer-disclaimer {
  color: #6b749e !important;
}

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
}

.lightbox[hidden] {
  display: none;
}

.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(3, 5, 16, 0.88);
  backdrop-filter: blur(8px);
}

.lightbox-dialog {
  position: relative;
  z-index: 1;
  width: min(1240px, 100%);
  max-height: 92vh;
  display: flex;
  flex-direction: column;
  background: var(--bg-deep);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.lightbox-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.95rem 1.2rem;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
}

.lightbox-bar h3 {
  margin: 0;
  font-size: 1rem;
  color: #fff;
}

.lightbox-bar p {
  margin: 0.2rem 0 0;
  font-size: 0.84rem;
  color: var(--text-muted);
  max-width: 720px;
}

.lightbox-actions {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.lightbox-close {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--surface-elevated);
  color: #fff;
  cursor: pointer;
}

.lightbox-close:hover {
  border-color: var(--oxide-bright);
  color: var(--oxide-bright);
}

.lightbox-img-wrap {
  background: #000;
  overflow: auto;
  display: flex;
  justify-content: center;
  align-items: center;
}

.lightbox-img-wrap img {
  max-height: calc(92vh - 96px);
  width: auto;
  object-fit: contain;
}

/* ---------- Responsive ---------- */
@media (min-width: 1760px) {
  html {
    font-size: 17px;
  }
}

@media (max-width: 1480px) {
  .demo-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .compat-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 1240px) {
  .hero-top {
    grid-template-columns: 1fr;
    gap: 2.25rem;
  }
  .hero-copy {
    max-width: 860px;
    margin-inline: auto;
    text-align: center;
  }
  .hero-subtitle {
    margin-inline: auto;
  }
  .hero-cta-row {
    justify-content: center;
  }
  .research-notice {
    margin-inline: auto;
  }
  .arch-wrapper {
    grid-template-columns: 1fr;
  }
  .arch-inspector {
    position: static;
  }
  .bench-speed-layout {
    grid-template-columns: 1fr;
  }
  .bench-kpis {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 1024px) {
  .main-nav {
    display: none;
  }
  .menu-toggle {
    display: inline-flex;
  }
  .hero-stats {
    grid-template-columns: repeat(2, 1fr);
  }
  .more-demos-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .principles-grid,
  .alambec-offerings,
  .bench-kpis {
    grid-template-columns: 1fr;
  }
  .security-grid,
  .alambec-bottom,
  .profile-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .container {
    width: min(1720px, 100% - 1.75rem);
  }
  .header-cta {
    display: none;
  }
  .brand-sub {
    display: none;
  }
  .hero {
    padding: 3rem 0 2.75rem;
  }
  .section {
    padding: 3.75rem 0;
  }
  .demo-grid,
  .feature-grid,
  .compat-grid,
  .license-grid,
  .hero-stats,
  .more-demos-grid {
    grid-template-columns: 1fr;
  }
  .alambec-shell {
    padding: 1.65rem;
    border-radius: 18px;
  }
  .sec-bar-line {
    grid-template-columns: 76px 1fr 62px;
  }
}
