/* Firmgate Enterprise site — professional slate + steel blue */
:root {
  --bg: #111827;
  --bg-elevated: #1a2332;
  --bg-card: #1f2937;
  --bg-alt: #151d2b;
  --text: #f3f4f6;
  --text-muted: #9ca3af;
  --text-dim: #6b7280;
  --accent: #3b82f6;
  --accent-2: #60a5fa;
  --accent-3: #2563eb;
  --accent-rgb: 59, 130, 246;
  --community: #10b981;
  --community-rgb: 16, 185, 129;
  --community-bg: rgba(16, 185, 129, 0.08);
  --enterprise: #60a5fa;
  --enterprise-2: #93c5fd;
  --enterprise-rgb: 96, 165, 250;
  --enterprise-bg: rgba(59, 130, 246, 0.06);
  --highlight: #dbeafe;
  --border: rgba(148, 163, 184, 0.14);
  --radius: 12px;
  --radius-lg: 20px;
  --shadow: 0 24px 48px rgba(0, 0, 0, 0.4);
  --font: "Plus Jakarta Sans", system-ui, -apple-system, sans-serif;
  --container: min(1360px, calc(100% - 1.5rem));
  --header-h: 72px;
  --topbar-bg: #1e293b;
  --nav-bg: #ffffff;
  --nav-text: #111827;
  --nav-muted: #4b5563;
  --nav-border: rgba(17, 24, 39, 0.08);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

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

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

a:hover {
  color: var(--accent);
}

.container {
  width: var(--container);
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 1000;
  padding: 0.75rem 1rem;
  background: var(--accent);
  color: var(--bg);
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

/* Header — OpenNebula-style top bar + white nav band */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-topbar {
  background: var(--topbar-bg);
  color: #fff;
  font-size: 0.8125rem;
}

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

.header-topbar-tagline {
  opacity: 0.92;
}

.header-topbar-links {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.header-topbar-links a {
  color: #fff;
  font-weight: 500;
}

.header-topbar-links a:hover {
  color: var(--highlight);
}

.header-topbar-sep {
  opacity: 0.45;
}

.locale-controls {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.locale-dropdown {
  position: relative;
}

.locale-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.2rem 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  font-family: inherit;
  letter-spacing: 0.02em;
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.locale-btn:hover,
.locale-btn[aria-expanded="true"] {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.38);
}

.locale-btn-chevron {
  opacity: 0.85;
  transition: transform 0.15s ease;
}

.locale-btn[aria-expanded="true"] .locale-btn-chevron {
  transform: rotate(180deg);
}

.locale-menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  z-index: 220;
  min-width: 11.5rem;
  margin: 0;
  padding: 0.35rem;
  list-style: none;
  color: var(--nav-text);
  background: #fff;
  border: 1px solid rgba(6, 42, 74, 0.12);
  border-radius: 8px;
  box-shadow: 0 10px 32px rgba(4, 26, 46, 0.18);
}

.locale-menu button {
  display: block;
  width: 100%;
  padding: 0.45rem 0.6rem;
  font-size: 0.8125rem;
  font-weight: 500;
  font-family: inherit;
  text-align: left;
  color: var(--nav-text);
  background: transparent;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

.locale-menu button:hover,
.locale-menu button:focus-visible {
  background: #f0f6fa;
  color: var(--accent-3);
  outline: none;
}

.locale-menu button[aria-selected="true"] {
  background: rgba(var(--accent-rgb), 0.1);
  color: var(--accent-3);
  font-weight: 600;
}

.locale-menu-scroll {
  max-height: min(18rem, 70vh);
  overflow-y: auto;
}

.locale-menu-group {
  padding: 0.35rem 0.6rem 0.15rem;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--nav-muted);
  list-style: none;
}

.header-navband {
  background: var(--nav-bg);
  border-bottom: 1px solid var(--nav-border);
  box-shadow: 0 4px 24px rgba(4, 26, 46, 0.08);
}

.header-inner {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 1.25rem;
  min-height: var(--header-h);
}

.brand {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  gap: 0.65rem;
  color: var(--nav-text);
  font-weight: 700;
  font-size: 1.125rem;
  white-space: nowrap;
}

.brand-text {
  white-space: nowrap;
}

.brand:hover {
  color: var(--accent-3);
}

.nav {
  display: flex;
  flex-wrap: nowrap;
  flex-shrink: 0;
  gap: 1.25rem;
  margin-left: auto;
}

.nav a {
  color: var(--nav-muted);
  font-size: 0.9375rem;
  font-weight: 500;
  white-space: nowrap;
}

.nav a:hover {
  color: var(--accent-3);
}

.header-cta {
  display: flex;
  flex-shrink: 0;
  gap: 0.65rem;
}

.header-cta .btn {
  white-space: nowrap;
}

.header-navband .btn-nav {
  color: var(--nav-text);
  background: #f0f6fa;
  border: 1.5px solid rgba(6, 42, 74, 0.22);
}

.header-navband .btn-nav:hover {
  background: #e2eef6;
  color: var(--accent-3);
  border-color: rgba(var(--accent-rgb), 0.45);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 0.5rem;
  cursor: pointer;
}

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

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

.mobile-nav a {
  color: var(--nav-muted);
  font-weight: 500;
}

.mobile-nav a:hover {
  color: var(--accent-3);
}

.mobile-nav:not([hidden]) {
  display: flex;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 1.1rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.9375rem;
  border: 1px solid transparent;
  transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.15s;
  cursor: pointer;
  white-space: nowrap;
}

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

.btn-primary {
  background: linear-gradient(135deg, var(--accent-3), var(--accent));
  color: #fff;
  border-color: transparent;
  box-shadow: 0 4px 20px rgba(var(--accent-rgb), 0.35);
}

.btn-primary:hover {
  color: #fff;
  filter: brightness(1.1);
  box-shadow: 0 6px 24px rgba(var(--accent-rgb), 0.45);
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
}

.btn-lg {
  padding: 0.75rem 1.35rem;
  font-size: 1rem;
}

/* Hero */
.hero {
  position: relative;
  padding: 3.5rem 0 4rem;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(var(--accent-rgb), 0.1), transparent),
    radial-gradient(ellipse 60% 40% at 90% 20%, rgba(var(--accent-rgb), 0.06), transparent),
    linear-gradient(180deg, rgba(var(--accent-rgb), 0.04) 0%, transparent 60%);
  pointer-events: none;
}

.hero-swirl {
  position: absolute;
  left: 50%;
  top: 54%;
  width: 140%;
  max-width: none;
  height: auto;
  opacity: 0.5;
  transform: translate(-48%, -42%) rotate(-6deg);
  -webkit-mask-image: linear-gradient(
    to right,
    transparent 0%,
    transparent 38%,
    rgba(0, 0, 0, 0.15) 52%,
    rgba(0, 0, 0, 0.55) 72%,
    rgba(0, 0, 0, 0.85) 100%
  );
  mask-image: linear-gradient(
    to right,
    transparent 0%,
    transparent 38%,
    rgba(0, 0, 0, 0.15) 52%,
    rgba(0, 0, 0, 0.55) 72%,
    rgba(0, 0, 0, 0.85) 100%
  );
  pointer-events: none;
  user-select: none;
}

@media (prefers-reduced-motion: no-preference) {
  .hero-swirl {
    animation: hero-swirl-drift 18s ease-in-out infinite alternate;
  }
}

@keyframes hero-swirl-drift {
  from {
    transform: translate(-48%, -42%) rotate(-6deg) scale(1);
  }
  to {
    transform: translate(-46%, -44%) rotate(-4deg) scale(1.04);
  }
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 3rem;
  align-items: center;
}

.badge {
  display: inline-block;
  margin: 0 0.5rem 0.5rem 0;
  padding: 0.35rem 0.85rem;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--accent);
  background: rgba(var(--accent-rgb), 0.12);
  border: 1px solid rgba(var(--accent-rgb), 0.32);
  border-radius: 999px;
}

.badge-au {
  color: var(--highlight);
  background: rgba(var(--accent-rgb), 0.1);
  border-color: rgba(var(--accent-rgb), 0.4);
}

.pill {
  display: inline-block;
  padding: 0.15rem 0.5rem;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-radius: 4px;
  vertical-align: middle;
}

.pill-community {
  color: #6ee7b7;
  background: rgba(var(--community-rgb), 0.18);
  border: 1px solid rgba(var(--community-rgb), 0.45);
}

.pill-enterprise {
  color: var(--enterprise-2);
  background: rgba(var(--enterprise-rgb), 0.18);
  border: 1px solid rgba(var(--enterprise-rgb), 0.5);
}

.tab-pill {
  margin-left: 0.35rem;
  font-size: 0.625rem;
  padding: 0.1rem 0.35rem;
}

.hero-brand {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin: 0 0 0.75rem;
  font-size: clamp(1.125rem, 2.5vw, 1.375rem);
  line-height: 1;
}

.hero-brand-firmgate {
  font-size: 1em;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text);
}

.hero-brand-logo {
  display: block;
  height: 0.95em;
  width: auto;
  max-width: min(200px, 50vw);
  object-fit: contain;
  transform: translateY(-0.12em);
  flex-shrink: 0;
}

.hero-credit {
  margin: 0 0 1.25rem;
  font-size: 1.0625rem;
  line-height: 1.55;
  color: var(--text-muted);
  max-width: 38rem;
}

.hero-credit strong {
  color: var(--text);
  font-weight: 600;
}

.hero h1 {
  margin: 0 0 1rem;
  font-size: clamp(2.25rem, 5vw, 3.25rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.03em;
}

.hero-sub {
  margin: 0 0 1rem;
  font-size: 1.0625rem;
  line-height: 1.55;
  color: var(--text);
  max-width: 38rem;
}

.hero-sub strong {
  color: var(--accent);
  font-weight: 600;
}

.lead {
  margin: 0 0 1.75rem;
  font-size: 1.0625rem;
  color: var(--text-muted);
  max-width: 36rem;
}

.lead strong {
  color: var(--text);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-bottom: 1.75rem;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.875rem;
  color: var(--text-dim);
}

.hero-meta .dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 0.45rem;
  border-radius: 50%;
  background: var(--accent);
  vertical-align: middle;
}

.hero-shot-stage {
  position: relative;
  perspective: 1200px;
  perspective-origin: 42% 46%;
  padding: 0.5rem 0.5rem 2.5rem;
}

.hero-shot {
  position: relative;
  margin: 0;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.22);
  background: var(--bg-card);
  transform: rotateY(-16deg) rotateX(7deg) translateZ(24px);
  transform-style: preserve-3d;
  box-shadow:
    1px 2px 2px rgba(0, 0, 0, 0.18),
    0 18px 36px rgba(0, 0, 0, 0.32),
    0 42px 72px rgba(4, 26, 46, 0.45),
    -18px 14px 48px rgba(0, 0, 0, 0.28),
    0 0 0 1px rgba(255, 255, 255, 0.04) inset;
  transition: transform 0.45s ease, box-shadow 0.45s ease;
}

.hero-shot::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.14) 0%,
    rgba(255, 255, 255, 0.03) 28%,
    transparent 52%
  );
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.hero-shot::after {
  content: "";
  position: absolute;
  left: 8%;
  right: 8%;
  bottom: -14%;
  height: 28%;
  z-index: -1;
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(var(--accent-rgb), 0.22), transparent 70%);
  transform: rotateX(72deg) scaleY(0.55);
  filter: blur(10px);
  opacity: 0.75;
}

.hero-shot-glow {
  position: absolute;
  inset: -12%;
  z-index: -2;
  border-radius: 24px;
  background: radial-gradient(
    ellipse 80% 70% at 55% 45%,
    rgba(var(--accent-rgb), 0.18),
    transparent 68%
  );
  transform: translateZ(-40px);
  pointer-events: none;
}

.hero-shot img {
  position: relative;
  z-index: 1;
  width: 100%;
  display: block;
  backface-visibility: hidden;
}

@media (prefers-reduced-motion: no-preference) {
  .hero-shot-stage:hover .hero-shot {
    transform: rotateY(-12deg) rotateX(5deg) translateZ(36px) scale(1.01);
    box-shadow:
      1px 2px 2px rgba(0, 0, 0, 0.18),
      0 22px 44px rgba(0, 0, 0, 0.36),
      0 48px 84px rgba(4, 26, 46, 0.5),
      -14px 10px 40px rgba(0, 0, 0, 0.24),
      0 0 0 1px rgba(255, 255, 255, 0.05) inset;
  }
}

/* Trust bar */
.trust {
  border-block: 1px solid var(--border);
  background: var(--bg-alt);
}

.trust-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 0;
}

.trust-inner p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.9375rem;
}

.trust-sovereign {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 500;
}

.au-mark {
  font-size: 1.125rem;
}

.trust-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
}

.trust-links a {
  font-size: 0.875rem;
  font-weight: 600;
}

/* Sections */
.section {
  padding: 4.5rem 0;
}

.section-alt {
  background: var(--bg-alt);
}

.section-head {
  text-align: center;
  max-width: 40rem;
  margin: 0 auto 2.75rem;
}

.section-head-left {
  text-align: left;
  margin-left: 0;
  margin-right: 0;
}

.section-head h2 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.section-head p {
  margin: 0;
  color: var(--text-muted);
}

.section-head-compact {
  margin-top: 3rem;
}

.platform-pitch {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 1.5rem;
  align-items: stretch;
  margin-bottom: 0.5rem;
}

.platform-bundle h3,
.platform-compare h3 {
  margin: 0 0 1rem;
  font-size: 1.125rem;
  color: var(--text);
}

.platform-compare-intro {
  margin: -0.35rem 0 1rem;
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--text-muted);
}

.platform-bundle-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.55rem;
}

.platform-bundle-list li {
  position: relative;
  padding-left: 1.35rem;
  font-size: 0.9375rem;
  line-height: 1.45;
  color: var(--text-muted);
}

.platform-bundle-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px rgba(var(--accent-rgb), 0.15);
}

.platform-bundle-close,
.platform-compare-close {
  margin: 1.25rem 0 0;
  font-size: 0.9375rem;
  line-height: 1.55;
  color: var(--text-muted);
}

.platform-bundle-close {
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  color: var(--text);
  font-weight: 600;
}

.platform-compare-table-wrap {
  overflow-x: auto;
  margin: 0 -0.25rem;
}

.platform-compare-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}

.platform-compare-table th,
.platform-compare-table td {
  padding: 0.65rem 0.75rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

.platform-compare-table thead th {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-dim);
  background: rgba(var(--accent-rgb), 0.06);
}

.platform-compare-table tbody th[scope="row"] {
  font-weight: 600;
  color: var(--text);
  width: 42%;
}

.platform-compare-table tbody td {
  color: var(--text-muted);
}

.platform-compare-table tbody tr:last-child th,
.platform-compare-table tbody tr:last-child td {
  border-bottom: none;
}

/* Cards */
.card-grid {
  display: grid;
  gap: 1.25rem;
}

.card-grid-4 {
  grid-template-columns: repeat(4, 1fr);
}

.card-grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.ai-section {
  background: linear-gradient(180deg, var(--bg) 0%, rgba(var(--accent-rgb), 0.07) 50%, var(--bg) 100%);
}

.ai-modules-banner {
  text-align: center;
  margin-bottom: 2rem;
}

.ai-modules-label {
  margin: 0 0 0.75rem;
  font-size: 0.9375rem;
  color: var(--text-muted);
}

.ai-modules-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.card-ai {
  border-color: rgba(var(--enterprise-rgb), 0.35);
  background: linear-gradient(165deg, var(--bg-card) 0%, var(--enterprise-bg) 100%);
}

.card-ai h3 {
  color: var(--enterprise-2);
}

.ai-costs-callout {
  margin-bottom: 2rem;
  padding: 1.75rem;
  background: var(--bg-card);
  border: 1px solid rgba(var(--accent-rgb), 0.22);
  border-radius: var(--radius-lg);
}

.ai-costs-head h3 {
  margin: 0 0 0.65rem;
  font-size: 1.25rem;
  color: var(--text);
}

.ai-costs-head p {
  margin: 0 0 0.5rem;
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.55;
}

.ai-costs-importance {
  color: var(--accent-2) !important;
  font-weight: 500;
}

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

.ai-costs-card h4 {
  margin: 0 0 0.75rem;
  font-size: 1rem;
  color: var(--enterprise-2);
}

.ai-costs-providers {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0 0 0.85rem;
  padding: 0;
  list-style: none;
}

.ai-costs-providers li {
  padding: 0.2rem 0.55rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text);
  background: rgba(var(--accent-rgb), 0.1);
  border: 1px solid rgba(var(--accent-rgb), 0.2);
  border-radius: 999px;
}

.ai-costs-card p {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.55;
  color: var(--text-muted);
}

.ai-costs-self-hosted {
  border-color: rgba(16, 185, 129, 0.25);
  background: linear-gradient(165deg, var(--bg-card) 0%, rgba(16, 185, 129, 0.06) 100%);
}

.ai-costs-self-hosted .ai-costs-providers li {
  background: rgba(16, 185, 129, 0.1);
  border-color: rgba(16, 185, 129, 0.25);
}

.ai-costs-foot {
  margin: 1.25rem 0 0;
  font-size: 0.875rem;
  color: var(--text-dim);
  text-align: center;
}

.ai-cta-note {
  text-align: center;
  margin: 2rem auto 0;
  max-width: 42rem;
  font-size: 0.9375rem;
  color: var(--text-muted);
}

.ai-modules-label-secondary {
  margin-top: 1.25rem;
}

.pill-muted {
  font-size: 0.625rem;
  text-transform: none;
  letter-spacing: 0;
}

.enterprise-group-heading {
  margin: 1.5rem 0 1rem;
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--enterprise);
  letter-spacing: 0.02em;
}

.features-block-enterprise > .enterprise-group-heading:first-of-type {
  margin-top: 0;
}

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

.card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.0625rem;
}

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

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

.feature-item {
  padding: 1.15rem 1.25rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.feature-item h3,
.feature-item h4 {
  margin: 0 0 0.35rem;
  font-size: 0.9375rem;
  color: var(--accent);
}

/* Edition legend */
.edition-legend {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem 2.5rem;
  margin-bottom: 2rem;
  padding: 1rem 1.25rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.edition-legend-item {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.9375rem;
  color: var(--text-muted);
}

.edition-legend-swatch {
  width: 14px;
  height: 14px;
  border-radius: 3px;
  flex-shrink: 0;
}

.edition-legend-community .edition-legend-swatch {
  background: var(--community);
  box-shadow: 0 0 0 2px rgba(var(--community-rgb), 0.35);
}

.edition-legend-enterprise .edition-legend-swatch {
  background: var(--enterprise);
  box-shadow: 0 0 0 2px rgba(var(--enterprise-rgb), 0.35);
}

.features-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  align-items: start;
}

.features-panel {
  border-radius: var(--radius-lg);
  padding: 1.35rem 1.35rem 1.5rem;
  border: 2px solid transparent;
}

.features-panel-community {
  background: var(--community-bg);
  border-color: rgba(var(--community-rgb), 0.35);
  box-shadow: inset 4px 0 0 var(--community);
}

.features-panel-enterprise {
  background: var(--enterprise-bg);
  border-color: rgba(var(--enterprise-rgb), 0.4);
  box-shadow: inset 4px 0 0 var(--enterprise);
}

.features-panel-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.25rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}

.features-panel-header .pill {
  margin-left: auto;
  font-size: 0.75rem;
  padding: 0.3rem 0.75rem;
}

.features-panel-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  font-size: 1.25rem;
  font-weight: 800;
  flex-shrink: 0;
}

.features-panel-icon-community {
  background: rgba(var(--community-rgb), 0.2);
  color: #6ee7b7;
  border: 1px solid rgba(var(--community-rgb), 0.4);
}

.features-panel-icon-enterprise {
  background: rgba(var(--enterprise-rgb), 0.2);
  color: var(--enterprise-2);
  border: 1px solid rgba(var(--enterprise-rgb), 0.45);
}

.features-panel-title {
  margin: 0;
  font-size: 1.125rem;
  font-weight: 700;
}

.features-panel-community .features-panel-title {
  color: #6ee7b7;
}

.features-panel-enterprise .features-panel-title {
  color: var(--enterprise-2);
}

.features-panel-sub {
  margin: 0.2rem 0 0;
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.feature-item-community {
  border-color: rgba(var(--community-rgb), 0.22);
  background: rgba(4, 26, 46, 0.45);
}

.feature-item-community h4 {
  color: #6ee7b7;
}

.feature-item-enterprise {
  position: relative;
  border-color: rgba(var(--enterprise-rgb), 0.3);
  background: rgba(4, 26, 46, 0.5);
  padding-top: 1.75rem;
}

.feature-tier-tag {
  position: absolute;
  top: 0.55rem;
  right: 0.65rem;
  font-size: 0.5625rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--enterprise-2);
  background: rgba(var(--enterprise-rgb), 0.2);
  border: 1px solid rgba(var(--enterprise-rgb), 0.4);
  padding: 0.12rem 0.4rem;
  border-radius: 3px;
}

.feature-item-enterprise h4 {
  color: var(--enterprise-2);
}

.feature-grid-community,
.feature-grid-enterprise {
  grid-template-columns: 1fr;
  gap: 0.65rem;
  margin-bottom: 0.5rem;
}

.edition-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  max-width: 56rem;
  margin: 0 auto;
}

.edition-card {
  position: relative;
  padding: 1.75rem;
  padding-top: 2rem;
  background: var(--bg-card);
  border: 2px solid var(--border);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.edition-card-stripe {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
}

.edition-community {
  border-color: rgba(var(--community-rgb), 0.4);
  background: linear-gradient(180deg, var(--community-bg) 0%, var(--bg-card) 35%);
}

.edition-community .edition-card-stripe {
  background: linear-gradient(90deg, var(--community), #34d399);
}

.edition-community .edition-head h3 {
  color: #6ee7b7;
}

.edition-enterprise {
  border-color: rgba(148, 163, 184, 0.22);
  background: linear-gradient(180deg, var(--enterprise-bg) 0%, var(--bg-card) 40%);
}

.edition-enterprise .edition-card-stripe {
  background: linear-gradient(90deg, var(--accent-3), var(--accent-2));
}

.edition-enterprise .edition-head h3 {
  color: var(--enterprise-2);
}

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

.edition-head h3 {
  margin: 0;
  font-size: 1.25rem;
}

.edition-badge {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
}

.edition-community .edition-badge {
  color: #6ee7b7;
  background: rgba(var(--community-rgb), 0.15);
  border: 1px solid rgba(var(--community-rgb), 0.4);
}

.edition-enterprise .edition-badge {
  color: var(--enterprise-2);
  background: rgba(var(--enterprise-rgb), 0.15);
  border: 1px solid rgba(var(--enterprise-rgb), 0.45);
}

.edition-summary {
  margin: 0 0 1rem;
  color: var(--text-muted);
  font-size: 0.9375rem;
}

.edition-includes {
  margin: 0 0 1.25rem;
  padding-left: 1.2rem;
  flex: 1;
  color: var(--text-muted);
  font-size: 0.875rem;
}

.edition-includes li {
  margin-bottom: 0.4rem;
}

.edition-note {
  text-align: center;
  margin: 2rem auto 0;
  max-width: 40rem;
  font-size: 0.875rem;
  color: var(--text-dim);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  align-items: stretch;
}

.pricing-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.pricing-card .btn {
  margin-top: auto;
  width: 100%;
  text-align: center;
  justify-content: center;
}

.pricing-card-featured {
  border-color: rgba(var(--accent-rgb), 0.35);
  box-shadow:
    0 0 0 1px rgba(var(--accent-rgb), 0.12),
    0 20px 40px rgba(0, 0, 0, 0.35);
}

.pricing-popular {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  padding: 0.25rem 0.65rem;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #fff;
  background: var(--accent-3);
  border: 1px solid rgba(var(--accent-rgb), 0.35);
  border-radius: 999px;
}

.pricing-head {
  margin-bottom: 1.25rem;
}

.pricing-head h3 {
  margin: 0 0 0.75rem;
  font-size: 1.25rem;
  color: var(--enterprise-2);
}

.pricing-amount {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.35rem 0.5rem;
  margin-bottom: 0.35rem;
}

.pricing-price {
  font-size: clamp(2rem, 4vw, 2.5rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--text);
}

.pricing-period {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text-muted);
}

.pricing-users {
  margin: 0;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--accent-2);
}

.pricing-includes {
  flex: 1;
  margin-bottom: 1.25rem;
}

.pricing-includes-label {
  margin: 0 0 0.5rem;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.pricing-includes-preface {
  margin: 0 0 0.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text);
}

.pricing-excludes {
  margin: 0.75rem 0 0;
  font-size: 0.875rem;
  font-style: italic;
  color: var(--text-dim);
}

.pricing-note {
  margin: 0.85rem 0 0;
  padding: 0.65rem 0.85rem;
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.45;
  color: var(--enterprise-2);
  background: rgba(var(--enterprise-rgb), 0.1);
  border: 1px solid rgba(var(--enterprise-rgb), 0.25);
  border-radius: var(--radius);
}

.screenshot-filters {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.filter-btn {
  padding: 0.45rem 1rem;
  font-family: inherit;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-muted);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 999px;
  cursor: pointer;
}

.filter-btn:hover {
  color: var(--text);
  border-color: rgba(var(--accent-rgb), 0.45);
  background: rgba(var(--accent-rgb), 0.1);
}

.filter-btn.is-active {
  color: var(--text);
}

.filter-btn[data-filter="community"].is-active {
  border-color: rgba(var(--community-rgb), 0.5);
  background: rgba(var(--community-rgb), 0.15);
  color: #6ee7b7;
}

.filter-btn[data-filter="enterprise"].is-active {
  border-color: rgba(var(--enterprise-rgb), 0.5);
  background: rgba(var(--enterprise-rgb), 0.15);
  color: var(--enterprise-2);
}

.filter-btn[data-filter="all"].is-active {
  border-color: rgba(var(--accent-rgb), 0.45);
  background: rgba(var(--accent-rgb), 0.12);
}

.screenshot-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
  max-height: 8rem;
  overflow-y: auto;
  padding-bottom: 0.25rem;
}

.feature-item p {
  margin: 0;
  font-size: 0.8125rem;
  color: var(--text-muted);
  line-height: 1.45;
}

/* Screenshots */
.tab {
  padding: 0.5rem 1rem;
  font-family: inherit;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-muted);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 999px;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}

.tab:hover,
.tab.is-active {
  color: var(--text);
  border-color: rgba(var(--accent-rgb), 0.45);
  background: rgba(var(--accent-rgb), 0.12);
}

.screenshot-panels {
  position: relative;
}

.screenshot-panel {
  margin: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-card);
  box-shadow: var(--shadow);
}

.screenshot-panel img {
  width: 100%;
  height: auto;
  display: block;
}

.screenshot-panel:not(.is-active) {
  display: none;
}

.screenshot-panel figcaption {
  padding: 1rem 1.25rem;
  font-size: 0.9375rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border);
}

.screenshot-panel figcaption .pill {
  margin-right: 0.5rem;
}

.screenshot-title {
  display: inline;
  color: var(--text);
  font-weight: 700;
}

.screenshot-caption {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.875rem;
  color: var(--accent-2);
}

.screenshot-description {
  margin: 0.75rem 0 0;
  font-size: 0.9375rem;
  line-height: 1.55;
  color: var(--text-muted);
}

.sales-aside {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.sales-card h3 {
  margin: 0 0 0.75rem;
  font-size: 1.125rem;
  color: var(--text);
}

.sales-email {
  margin: 0 0 0.75rem;
  font-size: 1.25rem;
  font-weight: 700;
}

.sales-email a {
  color: var(--accent-2);
}

.sales-email a:hover {
  color: var(--accent);
}

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

.sla-card {
  padding: 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

.sla-card-critical {
  border-color: rgba(var(--accent-rgb), 0.35);
  box-shadow: 0 0 0 1px rgba(var(--accent-rgb), 0.1);
}

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

.sla-severity {
  font-size: 1.125rem;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.02em;
}

.sla-label {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--accent-2);
  padding: 0.2rem 0.55rem;
  background: rgba(var(--accent-rgb), 0.1);
  border: 1px solid rgba(var(--accent-rgb), 0.22);
  border-radius: 999px;
}

.sla-card-critical .sla-label {
  color: #fff;
  background: var(--accent-3);
  border-color: rgba(var(--accent-rgb), 0.4);
}

.sla-details {
  margin: 0;
  padding: 0;
  list-style: none;
}

.sla-details li {
  margin-bottom: 0.65rem;
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--text-muted);
}

.sla-details li:last-child {
  margin-bottom: 0;
}

.sla-details strong {
  display: block;
  margin-bottom: 0.15rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-dim);
}

/* Commercial terms */
.legal-page {
  padding: 3rem 0 4rem;
}

.legal-head {
  margin-bottom: 2.5rem;
}

.legal-head h1 {
  margin: 0 0 0.75rem;
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.legal-meta {
  margin: 0 0 1rem;
  font-size: 0.9375rem;
  color: var(--text-muted);
}

.legal-intro {
  margin: 0;
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--text-muted);
}

.legal-body {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem 2.5rem;
}

.legal-section {
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border);
}

.legal-section-wide {
  grid-column: 1 / -1;
}

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

.legal-column {
  padding: 1.25rem;
}

.legal-column h3 {
  margin: 0 0 0.75rem;
  font-size: 1rem;
  color: var(--accent-2);
}

.legal-column p {
  margin: 0.75rem 0 0;
  font-size: 0.875rem;
  line-height: 1.55;
  color: var(--text-muted);
}

.legal-section:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.legal-section h2 {
  margin: 0 0 1rem;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text);
}

.legal-section p {
  margin: 0 0 0.85rem;
  font-size: 0.9375rem;
  line-height: 1.65;
  color: var(--text-muted);
}

.legal-section p:last-child {
  margin-bottom: 0;
}

.legal-list {
  margin: 0 0 0.85rem;
  padding-left: 1.25rem;
  color: var(--text-muted);
  font-size: 0.9375rem;
  line-height: 1.65;
}

.legal-list li {
  margin-bottom: 0.5rem;
}

.legal-foot {
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
  font-size: 0.9375rem;
  color: var(--text-muted);
}

.legal-foot p {
  margin: 0 0 0.75rem;
}

.legal-header .header-inner {
  justify-content: space-between;
}

/* Install */
.install-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 2.5rem;
  align-items: start;
}

.install-steps {
  margin: 0 0 1.25rem;
  padding-left: 1.25rem;
  color: var(--text-muted);
}

.install-steps li {
  margin-bottom: 0.5rem;
}

.install-note {
  margin: 0;
  font-size: 0.875rem;
  color: var(--text-dim);
}

.code-blocks {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.code-block {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-elevated);
}

.code-label {
  padding: 0.55rem 1rem;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-dim);
  background: var(--bg-elevated);
  border-bottom: 1px solid var(--border);
}

.code-block pre {
  margin: 0;
  padding: 1rem 1.15rem;
  overflow-x: auto;
  font-size: 0.8125rem;
  line-height: 1.55;
}

.code-block code {
  font-family: ui-monospace, "Cascadia Code", "SF Mono", Menlo, monospace;
  color: var(--accent-2);
}

code {
  font-family: ui-monospace, Menlo, monospace;
  font-size: 0.875em;
  padding: 0.12em 0.4em;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 4px;
}

/* FAQ */
.faq-page {
  padding: 3rem 0 4rem;
}

.faq-page .section-head h1 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.faq-back {
  margin: 2rem 0 0;
  text-align: center;
  font-size: 0.9375rem;
}

.nav a[aria-current="page"] {
  color: var(--text);
  border-color: rgba(var(--accent-rgb), 0.45);
  background: rgba(var(--accent-rgb), 0.12);
}

.faq-list {
  max-width: 48rem;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 1.1rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  margin-left: auto;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--accent);
}

.faq-item[open] summary::after {
  content: "−";
}

.faq-question {
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.4;
}

.faq-item p {
  margin: 0;
  padding: 0 1.25rem 1.15rem;
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Firmgate Project B appliance */
.appliance-section {
  position: relative;
  padding: 0;
  overflow: hidden;
  border-top: 1px solid var(--border);
}

.appliance-stage {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.appliance-stage .appliance-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
  opacity: 0.22;
  filter: saturate(0.85) contrast(1.05);
}

.appliance-vignette {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, var(--bg) 0%, rgba(17, 24, 39, 0.92) 42%, rgba(17, 24, 39, 0.55) 100%),
    linear-gradient(180deg, rgba(17, 24, 39, 0.35) 0%, var(--bg) 100%);
}

.appliance-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 2.5rem;
  align-items: center;
  padding: 4rem 0;
}

.badge-appliance {
  color: #93c5fd;
  background: rgba(59, 130, 246, 0.14);
  border-color: rgba(96, 165, 250, 0.4);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.75rem;
}

.appliance-copy h2 {
  margin: 0 0 0.35rem;
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.05;
}

.appliance-tagline {
  margin: 0 0 1rem;
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--accent-2);
}

.appliance-summary {
  margin: 0 0 1.25rem;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-muted);
  max-width: 36rem;
}

.appliance-highlights {
  margin: 0 0 1.25rem;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.55rem;
}

.appliance-highlights li {
  position: relative;
  padding-left: 1.2rem;
  font-size: 0.9375rem;
  line-height: 1.45;
  color: var(--text-muted);
}

.appliance-highlights li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px rgba(var(--accent-rgb), 0.55);
}

.appliance-footnote {
  margin: 0 0 1.5rem;
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--text-dim);
  max-width: 34rem;
}

.appliance-figure {
  margin: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(var(--accent-rgb), 0.2);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.04) inset,
    0 24px 64px rgba(0, 0, 0, 0.55),
    0 0 48px rgba(var(--accent-rgb), 0.12);
}

.appliance-figure img {
  width: 100%;
  height: auto;
  display: block;
  vertical-align: top;
}

@media (max-width: 1024px) {
  .appliance-grid {
    grid-template-columns: 1fr;
    padding: 3rem 0;
  }

  .appliance-figure {
    order: -1;
    max-width: 36rem;
    margin: 0 auto;
    width: 100%;
  }

  .appliance-stage .appliance-image {
    opacity: 0.14;
  }
}

/* CTA band */
.cta-band {
  padding: 3.5rem 0;
  background: linear-gradient(135deg, rgba(var(--accent-rgb), 0.14), rgba(0, 119, 200, 0.1));
  border-top: 1px solid var(--border);
}

.cta-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.cta-inner h2 {
  margin: 0 0 0.5rem;
  font-size: 1.5rem;
}

.cta-inner p {
  margin: 0;
  color: var(--text-muted);
  max-width: 32rem;
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* Footer */
.site-footer {
  padding: 2.5rem 0;
  border-top: 1px solid var(--border);
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-weight: 600;
  color: var(--text-muted);
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
}

.footer-nav a {
  font-size: 0.9375rem;
  font-weight: 500;
}

.footer-contact {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--text-muted);
}

.footer-contact a {
  font-weight: 600;
  color: var(--accent-2);
}

.footer-contact a:hover {
  color: var(--accent);
}

.footer-copy {
  margin: 0;
  font-size: 0.8125rem;
  color: var(--text-dim);
  max-width: 42rem;
}

/* Lightbox — only visible when [hidden] is removed (display:grid overrides UA [hidden] otherwise) */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  place-items: center;
  padding: 2rem;
  background: rgba(0, 0, 0, 0.88);
}

.lightbox[hidden] {
  display: none !important;
}

.lightbox:not([hidden]) {
  display: grid;
}

.lightbox img {
  width: auto;
  height: auto;
  max-width: min(1280px, 96vw);
  max-height: 92vh;
  border-radius: var(--radius);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.45);
}

.lightbox-close {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  width: 44px;
  height: 44px;
  font-size: 1.75rem;
  line-height: 1;
  color: var(--text);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border);
  border-radius: 50%;
  cursor: pointer;
}

/* Responsive */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }

  .hero-shot-stage {
    order: -1;
    perspective-origin: 50% 50%;
    padding-bottom: 2rem;
  }

  .hero-shot {
    transform: rotateY(-10deg) rotateX(5deg) translateZ(12px);
  }

  .card-grid-4,
  .card-grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }

  .feature-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .install-grid {
    grid-template-columns: 1fr;
  }

  .edition-grid,
  .pricing-grid,
  .sla-grid,
  .features-split,
  .platform-pitch {
    grid-template-columns: 1fr;
  }

  .entitlements-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .nav,
  .header-cta .btn-ghost {
    display: none;
  }

  .header-cta .btn-primary {
    display: none;
  }

  .header-topbar-tagline {
    display: none;
  }

  .nav-toggle {
    display: flex;
    margin-left: auto;
  }

  .hero-shot-stage {
    perspective: none;
    padding-bottom: 1rem;
  }

  .hero-shot {
    transform: none;
    box-shadow: var(--shadow);
  }

  .hero-shot::after,
  .hero-shot-glow {
    display: none;
  }

  .card-grid-4,
  .card-grid-3,
  .sla-grid,
  .legal-body,
  .legal-columns,
  .ai-costs-grid,
  .entitlements-grid,
  .feature-grid:not(.feature-grid-community):not(.feature-grid-enterprise) {
    grid-template-columns: 1fr;
  }

  .features-panel-header .pill {
    display: none;
  }

  .hero {
    padding-top: 2rem;
  }

  .section {
    padding: 3rem 0;
  }
}

/* Enterprise site — full-width entitlements panel */
.badge-enterprise {
  color: var(--enterprise-2);
  background: rgba(var(--enterprise-rgb), 0.14);
  border-color: rgba(var(--enterprise-rgb), 0.45);
}

.features-panel-full {
  max-width: none;
}

#features .section-head-compact {
  margin-bottom: 1.75rem;
}

.entitlements-compact {
  padding: 1rem 1.15rem 1.1rem;
}

.entitlements-compact .enterprise-group-heading {
  margin: 0 0 0.5rem;
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--enterprise-2);
}

.entitlements-compact .enterprise-group-heading:not(:first-child) {
  margin-top: 1.1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

.entitlements-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
}

.entitlement-item {
  padding: 0.6rem 0.75rem;
  background: rgba(4, 26, 46, 0.45);
  border: 1px solid rgba(var(--enterprise-rgb), 0.22);
  border-radius: 8px;
}

.entitlement-item h5 {
  margin: 0 0 0.2rem;
  font-size: 0.8125rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--enterprise-2);
}

.entitlement-item p {
  margin: 0;
  font-size: 0.75rem;
  line-height: 1.4;
  color: var(--text-muted);
}

.site-enterprise .hero-bg {
  background:
    radial-gradient(ellipse 70% 55% at 72% 18%, rgba(var(--accent-rgb), 0.12), transparent 58%),
    radial-gradient(ellipse 55% 45% at 12% 88%, rgba(37, 99, 235, 0.08), transparent 52%),
    radial-gradient(ellipse 40% 30% at 50% 50%, rgba(var(--accent-rgb), 0.04), transparent 70%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-alt) 100%);
}

.site-enterprise .hero-swirl {
  opacity: 0.55;
}

.site-enterprise .btn-primary {
  background: var(--accent-3);
  border-color: rgba(var(--accent-rgb), 0.35);
  color: #fff;
  box-shadow: 0 4px 16px rgba(var(--accent-rgb), 0.22);
}

.site-enterprise .btn-primary:hover {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 6px 20px rgba(var(--accent-rgb), 0.28);
}

.site-enterprise .header-navband .btn-nav {
  color: var(--nav-text);
  background: #f8fafc;
  border-color: var(--nav-border);
}

.site-enterprise .header-navband .btn-nav:hover {
  background: #f1f5f9;
  color: var(--accent-3);
  border-color: rgba(var(--accent-rgb), 0.2);
}
