@font-face {
  font-family: "Chakra Petch";
  font-style: normal;
  font-weight: 400;
  src: url("/static/brand/fonts/chakrapetch-400-latin.woff2") format("woff2");
  font-display: swap;
}

@font-face {
  font-family: "Chakra Petch";
  font-style: normal;
  font-weight: 500;
  src: url("/static/brand/fonts/chakrapetch-500-latin.woff2") format("woff2");
  font-display: swap;
}

@font-face {
  font-family: "Chakra Petch";
  font-style: normal;
  font-weight: 600;
  src: url("/static/brand/fonts/chakrapetch-600-latin.woff2") format("woff2");
  font-display: swap;
}

@font-face {
  font-family: "Chakra Petch";
  font-style: normal;
  font-weight: 700;
  src: url("/static/brand/fonts/chakrapetch-700-latin.woff2") format("woff2");
  font-display: swap;
}

:root {
  color-scheme: dark;
  --ink: #f4f4f4;
  --text: #f7fbff;
  --muted: #b1b0bd;
  --soft: #d8dcea;
  --line: rgba(244, 244, 244, 0.13);
  --panel: rgba(7, 18, 30, 0.92);
  --panel-2: #0c1a29;
  --panel-active: #052c65;
  --panel-active-soft: #dbeeff;
  --panel-active-line: rgba(5, 44, 101, 0.58);
  --night: #020d19;
  --night-2: #07121e;
  --blue: #dbeeff;
  --green: #63e6a8;
  --danger: #ff4f5e;
  --warning: #ff8b36;
  --shadow: 0 22px 70px rgba(0, 0, 0, 0.38);
  --glow: 0 0 28px rgba(5, 44, 101, 0.42);
}

* { box-sizing: border-box; }

html {
  min-height: 100%;
  background: var(--night);
  font-size: 16px;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--muted);
  background:
    linear-gradient(180deg, rgba(5, 44, 101, 0.16), transparent 360px),
    var(--night);
  font-family: "Chakra Petch", Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

.app-body {
  background:
    radial-gradient(circle at 12% 0%, rgba(54, 170, 255, 0.1), transparent 26rem),
    radial-gradient(circle at 86% 18%, rgba(5, 44, 101, 0.2), transparent 32rem),
    linear-gradient(180deg, rgba(5, 44, 101, 0.18), transparent 430px),
    var(--night);
}

a { color: inherit; text-decoration: none; }
a:hover { color: var(--panel-active-soft); }
code, pre { font-family: "Cascadia Mono", "SFMono-Regular", Consolas, monospace; }

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

.portal-container {
  width: min(1400px, calc(100% - 32px));
  margin: 0 auto;
}

.site-header {
  z-index: 50;
  width: 100%;
}

.marketing-body .site-header,
.auth-body .site-header {
  position: absolute;
  top: -28px;
  left: 0;
  background: transparent;
}

.app-body .site-header {
  position: sticky;
  top: 0;
  background: rgba(2, 13, 25, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}

.secure-header {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 90px;
  padding: 36px 24px 6px;
}

.app-body .secure-header {
  min-height: 76px;
  padding: 14px 24px;
}

.secure-header-main {
  display: flex;
  align-items: center;
  flex: 1 1 auto;
  min-width: 0;
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #fff;
  font-weight: 700;
  text-transform: uppercase;
}

.brand-logo {
  display: block;
  width: 208px;
  height: 45px;
  object-fit: cover;
  object-position: center 55%;
}

.secure-menu-wrapper {
  position: absolute;
  top: calc(50% + 15px);
  left: 50%;
  z-index: 5;
  display: flex;
  align-items: center;
  height: 48px;
  padding: 6px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 100px;
  transform: translate(-50%, -50%);
  backdrop-filter: blur(12px);
}

.app-body .secure-menu-wrapper {
  top: 50%;
}

.secure-menu,
.secure-submenu {
  padding: 0;
  margin: 0;
  list-style: none;
}

.secure-menu {
  display: flex;
  align-items: center;
  gap: 0;
}

.secure-menu a,
.secure-menu button {
  display: flex;
  align-items: center;
  min-height: 36px;
  padding: 0 16px;
  color: #f4f4f4;
  background: transparent;
  border: 0;
  border-radius: 100px;
  font: inherit;
  font-size: 0.86rem;
  font-weight: 400;
  text-transform: uppercase;
}

.secure-menu a:hover,
.secure-menu button:hover,
.secure-menu-item:focus-within > .secure-menu-parent {
  color: var(--panel-active-soft);
  background: rgba(255, 255, 255, 0.08);
}

.secure-menu-item { position: relative; }
.secure-menu-parent { cursor: default; }
.secure-menu-parent::after {
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-left: 8px;
  content: "";
  border-right: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
}

.secure-submenu {
  position: absolute;
  top: calc(100% + 12px);
  left: 0;
  z-index: 80;
  min-width: 214px;
  padding: 10px;
  background: rgba(6, 18, 30, 0.98);
  border: 1px solid rgba(54, 170, 255, 0.28);
  border-radius: 18px;
  box-shadow: var(--shadow), var(--glow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s ease;
}

.secure-menu-item:hover .secure-submenu,
.secure-menu-item:focus-within .secure-submenu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.secure-submenu a {
  justify-content: flex-start;
  width: 100%;
  min-height: 40px;
  padding: 8px 12px;
  border-radius: 12px;
  white-space: nowrap;
}

.secure-header-actions {
  position: relative;
  z-index: 6;
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  gap: 14px;
  margin-left: auto;
}

.secure-header-actions form { margin: 0; }

.secure-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 24px;
  color: #0c1a29;
  background: #f4f4f4;
  border: 0;
  border-radius: 32px;
  box-shadow: inset 0 -3px 8px rgba(0, 0, 0, 0.3);
  font: inherit;
  font-size: 0.86rem;
  font-weight: 700;
  line-height: 24px;
  text-transform: uppercase;
  cursor: pointer;
}

.secure-cart-cta {
  width: 42px;
  min-width: 42px;
  min-height: 42px;
  padding: 0;
  color: #dff5ff;
  background:
    linear-gradient(rgba(54, 170, 255, 0.1), rgba(3, 19, 34, 0.92)),
    rgba(5, 44, 101, 0.34);
  border: 1px solid rgba(54, 170, 255, 0.38);
  border-radius: 8px;
  box-shadow: inset 0 0 0 1px rgba(223, 245, 255, 0.04), 0 0 22px rgba(54, 170, 255, 0.1);
}

.secure-cta:hover,
.secure-cta:focus {
  color: #fff;
  background: rgba(7, 18, 30, 0.92);
  box-shadow: inset 0 -3px 8px rgba(255, 255, 255, 0.4);
}

.public-main { min-height: 70vh; }

.hero-band,
.page-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  color: #fff;
  background: var(--night) url("/static/brand/logo/matrix-hero-poster.jpg") center / cover no-repeat;
}

.hero-band::before,
.page-hero::before {
  position: absolute;
  inset: 0;
  z-index: -1;
  content: "";
  background:
    linear-gradient(90deg, rgba(2, 13, 25, 0.98), rgba(2, 13, 25, 0.68)),
    linear-gradient(180deg, rgba(2, 13, 25, 0.1), rgba(2, 13, 25, 0.96));
}

.hero-grid {
  display: grid;
  min-height: 620px;
  align-items: center;
  padding: 150px 0 64px;
}

.hero-copy h1 {
  max-width: 860px;
  margin: 0 0 18px;
  color: #f4f4f4;
  font-size: 5.45rem;
  font-weight: 500;
  line-height: 1.08;
  text-transform: uppercase;
}

.lead-copy {
  max-width: 660px;
  margin: 0 0 30px;
  color: rgba(244, 244, 244, 0.82);
  font-size: 1.15rem;
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.hero-button {
  min-width: 156px;
  min-height: 52px;
}

.page-hero.compact .portal-container {
  padding: 154px 0 62px;
}

.page-hero h1 {
  margin: 8px 0 14px;
  color: #f6fbff;
  font-size: 4.8rem;
  font-weight: 500;
  line-height: 1;
  text-transform: uppercase;
}

.page-hero p {
  max-width: 780px;
  margin: 0;
  color: rgba(235, 244, 255, 0.78);
  font-size: 1.08rem;
}

.portal-section,
.auth-section {
  padding: 76px 0;
}

.section-heading {
  max-width: 820px;
  margin: 0 auto 30px;
  text-align: center;
}

h1, h2, h3, p { margin-top: 0; }
h1 { color: var(--text); font-size: 2rem; margin-bottom: 4px; }
h2 { color: #fff; font-size: 1.55rem; margin-bottom: 16px; }
h3 { color: #fff; font-size: 1.16rem; margin-bottom: 10px; }

.section-heading h2 {
  color: #f4f4f4;
  font-size: 3.3rem;
  font-weight: 500;
  line-height: 1.08;
  text-transform: uppercase;
}

.eyebrow {
  display: block;
  color: var(--panel-active-soft);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.muted,
.hint { color: var(--muted); }
.hint { margin: 12px 0 0; font-size: 0.82rem; }

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

.feature-card {
  display: flex;
  min-height: 332px;
  flex-direction: column;
  padding: 36px;
  color: var(--muted);
  background: var(--panel);
  border: 1px solid var(--panel-active-line);
  border-radius: 30px;
  box-shadow: var(--glow), var(--shadow);
}

.feature-card img {
  width: 58px;
  height: 58px;
  object-fit: contain;
  margin-bottom: 22px;
}

.feature-card p {
  color: rgba(244, 244, 244, 0.72);
}

.feature-card span {
  margin-top: auto;
  color: var(--green);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.cta-box-section {
  padding: 40px 0 76px;
}

.cta-box {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.58fr);
  gap: 34px;
  align-items: center;
  padding: 56px 26px 56px 60px;
  color: #fff;
  background:
    radial-gradient(circle at 78% 12%, rgba(244, 244, 244, 0.12), transparent 24%),
    linear-gradient(90.15deg, #052c65 1.15%, #063472 98.84%);
  border: 1px solid rgba(244, 244, 244, 0.18);
  border-radius: 30px;
  box-shadow: var(--glow), var(--shadow);
}

.cta-box h2 {
  max-width: 760px;
  margin-bottom: 26px;
  font-size: 3.2rem;
  font-weight: 500;
  line-height: 1.06;
  text-transform: uppercase;
}

.cta-contact-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 16px;
  align-items: center;
}

.icon-box {
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  border: 1px solid rgba(244, 244, 244, 0.18);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.08);
}

.icon-box img {
  width: 34px;
  height: 34px;
}

.cta-contact-content h3 {
  margin-bottom: 2px;
  text-transform: uppercase;
}

.cta-contact-content p {
  margin: 0;
  color: rgba(244, 244, 244, 0.78);
}

.cta-box-image img {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 0.74;
  object-fit: cover;
  border-radius: 24px;
}

.promo-strip-section {
  padding: 48px 0 88px;
  background: var(--night);
}

.promo-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 28px;
  border: 1px solid rgba(0, 174, 255, 0.28);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(0, 174, 255, 0.14), rgba(3, 14, 26, 0.86)),
    rgba(9, 25, 39, 0.92);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.24);
}

.promo-strip h2 {
  margin: 6px 0 8px;
  color: #f4f9ff;
  font-size: 2rem;
  font-weight: 500;
}

.promo-strip p {
  max-width: 760px;
  margin: 0;
  color: rgba(235, 244, 255, 0.76);
}

.docs-hero .hero-copy {
  max-width: 920px;
}

.docs-hero .hero-grid {
  min-height: 430px;
  padding: 132px 0 46px;
}

.docs-section {
  padding-top: 26px;
}

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

.docs-card {
  min-width: 0;
  padding: 24px;
  color: var(--muted);
  background: var(--panel);
  border: 1px solid rgba(244, 244, 244, 0.1);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.docs-card h2 {
  margin: 6px 0 12px;
  color: #fff;
  font-size: 1.55rem;
}

.docs-card p {
  margin: 0 0 14px;
}

.docs-card pre {
  overflow-x: auto;
  margin: 14px 0 0;
  padding: 14px;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.docs-list {
  display: grid;
  gap: 8px;
  padding-left: 18px;
  margin: 0;
}

.two-column {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.74fr);
  gap: 24px;
}

.auth-page-shell {
  align-items: stretch;
}

.auth-info-panel {
  align-self: stretch;
}

.auth-benefit-list {
  display: grid;
  gap: 14px;
  margin-top: 20px;
}

.auth-benefit-list div {
  padding: 16px;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(244, 244, 244, 0.08);
  border-radius: 16px;
}

.auth-benefit-list strong,
.auth-benefit-list span {
  display: block;
}

.auth-benefit-list strong {
  color: #fff;
  text-transform: uppercase;
}

.auth-benefit-list span {
  color: var(--muted);
  font-size: 0.92rem;
}

.shell {
  width: min(1440px, calc(100vw - 32px));
  margin: 0 auto;
  padding: 24px 0 56px;
}

.app-hero {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 22px;
  align-items: end;
  overflow: hidden;
  min-height: 278px;
  margin-bottom: 22px;
  padding: 34px;
  color: #fff;
  background: var(--night) url("/static/brand/logo/matrix-hero-poster.jpg") center / cover no-repeat;
  border: 1px solid rgba(54, 170, 255, 0.28);
  border-radius: 30px;
  box-shadow: var(--glow), var(--shadow);
}

.app-hero::before {
  position: absolute;
  inset: 0;
  z-index: -1;
  content: "";
  background:
    linear-gradient(90deg, rgba(2, 13, 25, 0.98), rgba(2, 13, 25, 0.72)),
    linear-gradient(180deg, rgba(2, 13, 25, 0.16), rgba(2, 13, 25, 0.94));
}

.app-hero-copy,
.app-hero-actions,
.app-kpi-strip {
  position: relative;
  z-index: 1;
}

.app-hero-copy h1 {
  max-width: 920px;
  margin: 0 0 12px;
  color: #f6fbff;
  font-size: 3.55rem;
  font-weight: 500;
  line-height: 1.04;
  text-transform: uppercase;
}

.app-hero-copy p {
  max-width: 860px;
  margin: 0;
  color: rgba(235, 244, 255, 0.8);
  font-size: 1.02rem;
}

.app-hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 12px;
}

.app-kpi-strip {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 12px;
  margin-top: 10px;
}

.app-kpi {
  min-height: 104px;
  padding: 16px;
  background:
    linear-gradient(180deg, rgba(54, 170, 255, 0.08), rgba(255, 255, 255, 0.035)),
    rgba(7, 18, 30, 0.84);
  border: 1px solid rgba(54, 170, 255, 0.24);
  border-radius: 18px;
}

.app-kpi span,
.app-kpi small {
  display: block;
}

.app-kpi span {
  color: rgba(235, 244, 255, 0.76);
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
}

.app-kpi strong {
  display: block;
  margin: 6px 0 2px;
  color: #fff;
  font-size: 2.05rem;
  font-weight: 700;
  line-height: 1;
}

.app-kpi small {
  color: rgba(235, 244, 255, 0.62);
  font-size: 0.82rem;
  line-height: 1.35;
}

.heading-row {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
}

.panel {
  padding: 22px;
  overflow-x: auto;
  overflow-y: hidden;
  color: var(--muted);
  background: var(--panel);
  border: 1px solid rgba(244, 244, 244, 0.1);
  border-radius: 30px;
  box-shadow: var(--shadow);
}

.panel:target {
  border-color: rgba(54, 170, 255, 0.48);
  box-shadow: var(--glow), var(--shadow);
}

.onboarding-panel {
  display: grid;
  grid-template-columns: minmax(280px, 0.72fr) minmax(320px, 1fr);
  gap: 18px;
  margin-bottom: 18px;
  padding: 22px;
  color: var(--muted);
  background:
    linear-gradient(135deg, rgba(54, 170, 255, 0.12), rgba(5, 44, 101, 0.1)),
    rgba(7, 18, 30, 0.94);
  border: 1px solid rgba(54, 170, 255, 0.22);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.onboarding-summary h2 {
  margin: 4px 0 8px;
  color: #fff;
  font-size: 2.35rem;
  font-weight: 700;
}

.onboarding-summary p {
  margin-bottom: 14px;
}

.readiness-bar {
  overflow: hidden;
  height: 10px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(244, 244, 244, 0.1);
  border-radius: 999px;
}

.readiness-bar span {
  display: block;
  height: 100%;
  min-width: 2px;
  background: linear-gradient(90deg, #36aaff, #63e6a8);
}

.onboarding-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

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

.readiness-step {
  min-height: 104px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(244, 244, 244, 0.1);
  border-radius: 8px;
}

.readiness-step span,
.readiness-step strong,
.readiness-step small {
  display: block;
}

.readiness-step span {
  margin-bottom: 8px;
  color: #dff4ff;
  font-size: 0.68rem;
  font-weight: 900;
  text-transform: uppercase;
}

.readiness-step.complete span { color: #63e6a8; }
.readiness-step.pending span { color: #ffcc8a; }

.readiness-step strong {
  color: #fff;
  font-size: 0.95rem;
}

.readiness-step small {
  margin-top: 4px;
  color: rgba(235, 244, 255, 0.66);
  line-height: 1.35;
}

.readiness-domains {
  grid-column: 1 / -1;
}

.readiness-domains h3 {
  margin-bottom: 10px;
  color: #fff;
  font-size: 1rem;
  text-transform: uppercase;
}

.panel.narrow {
  max-width: 480px;
  margin: 22px auto 0;
}

.token-panel {
  max-width: 720px;
}

.form-panel {
  display: flex;
  flex-direction: column;
}

.error {
  color: #ffe0e3;
  background: rgba(255, 79, 94, 0.16);
  border: 1px solid rgba(255, 79, 94, 0.38);
  padding: 12px 14px;
  border-radius: 14px;
}

.error-inline {
  color: #ffb7c2;
  font-size: 0.78rem;
}

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

.actions form { margin: 0; }

.status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 8px;
  border-radius: 999px;
  border: 1px solid rgba(54, 170, 255, 0.28);
  background: rgba(5, 44, 101, 0.34);
  color: #dff4ff;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
}

.status-queued,
.status-provision_queued,
.status-refresh_queued,
.status-rules_sync_queued,
.status-purge_queued,
.status-validation_queued,
.status-degraded,
.status-stale {
  color: #ffe7d0;
  background: rgba(255, 139, 54, 0.16);
  border-color: rgba(255, 139, 54, 0.36);
}

.status-running,
.status-provisioning,
.status-refreshing,
.status-rules_syncing,
.status-purging,
.status-validating {
  color: #dff4ff;
  background: rgba(5, 44, 101, 0.34);
  border-color: rgba(5, 44, 101, 0.58);
}

.status-succeeded,
.status-ok,
.status-provisioned,
.status-runtime_validated,
.status-cache_purged {
  color: #ddffe8;
  background: rgba(99, 230, 168, 0.16);
  border-color: rgba(99, 230, 168, 0.34);
}

.status-failed,
.status-error {
  color: #ffe0e3;
  background: rgba(255, 79, 94, 0.16);
  border-color: rgba(255, 79, 94, 0.38);
}

.layout {
  display: grid;
  gap: 18px;
  margin-bottom: 18px;
}

.layout.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.metric-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 16px;
}

.metric-grid.compact {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.metric-grid div {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
  padding: 12px;
}

.metric-grid span {
  display: block;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 700;
}

.metric-grid strong {
  display: block;
  margin-top: 4px;
  color: #fff;
  font-size: 1.5rem;
}

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

.analytics-grid > div {
  min-width: 0;
}

.analytics-grid h3 {
  margin-bottom: 8px;
  font-size: 0.92rem;
  text-transform: uppercase;
}

.analytics-grid table {
  margin: 0;
}

.analytics-grid.two-up {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.export-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 18px;
}

.compact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.compact-actions form {
  margin: 0;
}

.compact-actions .button {
  min-height: 34px;
  padding: 8px 12px;
}

.action-list {
  display: grid;
  gap: 10px;
}

.action-list.small {
  margin-top: 14px;
}

.action-item {
  display: grid;
  gap: 4px;
  min-height: 82px;
  padding: 13px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(244, 244, 244, 0.1);
  border-radius: 8px;
}

.action-item:hover {
  color: var(--muted);
  border-color: rgba(54, 170, 255, 0.42);
}

.action-item span {
  color: #dff4ff;
  font-size: 0.68rem;
  font-weight: 900;
  text-transform: uppercase;
}

.action-item strong {
  color: #fff;
  line-height: 1.25;
}

.action-item small {
  color: rgba(235, 244, 255, 0.68);
  line-height: 1.35;
}

.action-high { border-color: rgba(255, 79, 94, 0.38); }
.action-high span { color: #ffb7c2; }
.action-medium { border-color: rgba(255, 139, 54, 0.36); }
.action-medium span { color: #ffcc8a; }
.action-low span { color: #dff4ff; }
.action-ok { border-color: rgba(99, 230, 168, 0.34); }
.action-ok span { color: #63e6a8; }

.report-preview {
  display: grid;
  gap: 4px;
  margin-bottom: 14px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.report-preview strong {
  color: #fff;
  font-size: 2rem;
  line-height: 1;
}

.report-preview small {
  color: rgba(235, 244, 255, 0.68);
}

.section-split-heading {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.section-split-heading p {
  margin-bottom: 0;
}

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

.waf-profile-form {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.row-editor {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.row-editor-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.row-editor-actions form { margin: 0; }

.row-editor-meta {
  color: var(--muted);
  font-size: 0.75rem;
  margin-top: 8px;
}

.stack { display: grid; gap: 12px; }
.wide { grid-column: 1 / -1; }

label {
  display: grid;
  gap: 6px;
  color: var(--soft);
  font-weight: 650;
  text-transform: uppercase;
  font-size: 0.78rem;
}

label.check {
  display: flex;
  align-items: center;
  gap: 8px;
}

input,
select,
textarea {
  width: 100%;
  min-height: 42px;
  border: 1px solid rgba(244, 244, 244, 0.12);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  padding: 9px 12px;
  font: inherit;
}

input:hover,
select:hover,
textarea:hover,
input:focus,
select:focus,
textarea:focus {
  outline: none;
  background-color: rgba(255, 255, 255, 0.08);
  border-color: var(--panel-active-line);
  box-shadow: 0 0 0 0.16rem rgba(5, 44, 101, 0.14);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid transparent;
  color: #0c1a29;
  background: #f4f4f4;
  font: inherit;
  font-weight: 800;
  text-transform: uppercase;
  cursor: pointer;
}

.button.primary {
  color: #0c1a29;
  background: #f4f4f4;
  box-shadow: inset 0 -3px 8px rgba(0, 0, 0, 0.3);
}

.button.secondary {
  color: #dff5ff;
  background: rgba(5, 44, 101, 0.34);
  border-color: rgba(54, 170, 255, 0.38);
}

.button.outline {
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.34);
}

.button.danger {
  color: #ffe0e3;
  background: rgba(255, 79, 94, 0.16);
  border-color: rgba(255, 79, 94, 0.38);
}

.button:hover {
  color: #fff;
  background: rgba(7, 18, 30, 0.92);
  border-color: rgba(244, 244, 244, 0.28);
}

.button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  color: rgba(223, 245, 255, 0.72);
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(244, 244, 244, 0.12);
  box-shadow: none;
}

.link-button {
  background: none;
  border: 0;
  color: var(--panel-active-soft);
  cursor: pointer;
  font: inherit;
}

table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

th,
td {
  border-bottom: 1px solid var(--line);
  padding: 10px 8px;
  text-align: left;
  vertical-align: top;
  overflow-wrap: anywhere;
}

th {
  color: #d8dcea;
  font-size: 0.75rem;
  text-transform: uppercase;
}

.site-footer {
  flex-shrink: 0;
  overflow: hidden;
  padding: 28px 0;
  color: rgba(244, 244, 244, 0.68);
  background: var(--night);
  border-top: 1px solid var(--line);
}

.footer-grid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 96px;
}

.footer-brand-logo {
  display: block;
  width: 220px;
  height: 42px;
  object-fit: cover;
  object-position: center 55%;
}

.footer-grid strong,
.footer-grid span {
  display: block;
}

.footer-grid strong {
  color: #fff;
  text-transform: uppercase;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 10px 16px;
}

.footer-links a {
  color: #fff;
  font-size: 0.86rem;
  font-weight: 600;
  text-transform: uppercase;
}

@media (max-width: 1180px) {
  .secure-menu-wrapper {
    position: static;
    transform: none;
    margin-left: 24px;
  }

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

@media (max-width: 900px) {
  .marketing-body .site-header,
  .auth-body .site-header,
  .app-body .site-header {
    position: sticky;
    top: 0;
    background: rgba(2, 13, 25, 0.94);
    border-bottom: 1px solid var(--line);
  }

  .secure-header {
    min-height: 72px;
    padding: 12px 0;
  }

  .secure-header-main {
    justify-content: space-between;
  }

  .brand-logo {
    width: 164px;
    height: 35px;
  }

  .secure-menu-wrapper {
    display: none;
  }

  .secure-header-actions .secure-cta:not(.secure-cart-cta) {
    display: none;
  }

  .hero-grid {
    min-height: auto;
    padding: 54px 0 42px;
  }

  .docs-hero .hero-grid {
    min-height: auto;
    padding: 54px 0 34px;
  }

  .hero-copy h1 {
    font-size: 3.25rem;
  }

  .page-hero.compact .portal-container {
    padding: 42px 0 24px;
  }

  .page-hero h1 {
    font-size: 3rem;
  }

  .portal-section,
  .auth-section {
    padding: 38px 0;
  }

  .app-hero {
    grid-template-columns: 1fr;
    align-items: start;
    min-height: auto;
    padding: 28px;
  }

  .app-hero-copy h1 {
    font-size: 2.65rem;
  }

  .app-hero-actions {
    justify-content: flex-start;
  }

  .app-kpi-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .auth-body .page-hero.compact .portal-container {
    padding: 32px 0 98px;
  }

  .auth-body .page-hero h1 {
    margin-bottom: 10px;
    font-size: 2.85rem;
  }

  .auth-body .page-hero p {
    max-width: 360px;
    font-size: 1rem;
    line-height: 1.45;
  }

  .auth-body .auth-section {
    position: relative;
    z-index: 2;
    margin-top: -72px;
    padding: 0 0 36px;
  }

  .auth-body .auth-page-shell {
    gap: 16px;
  }

  .auth-body .form-panel {
    padding: 24px;
    border-radius: 24px;
  }

  .auth-body .form-panel h2 {
    margin-bottom: 14px;
    font-size: 1.55rem;
  }

  .section-heading h2,
  .cta-box h2 {
    font-size: 2.4rem;
  }

  .feature-grid,
  .layout.two,
  .onboarding-panel,
  .readiness-checklist,
  .grid-form,
  .waf-profile-form,
  .row-editor,
  .analytics-grid,
  .analytics-grid.two-up,
  .docs-grid,
  .two-column,
  .cta-box {
    grid-template-columns: 1fr;
  }

  .section-split-heading {
    align-items: flex-start;
    flex-direction: column;
  }

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

  .promo-strip {
    align-items: flex-start;
    flex-direction: column;
  }

  .footer-grid {
    flex-direction: column;
    justify-content: center;
    text-align: center;
  }

  .footer-links {
    justify-content: center;
  }
}

@media (max-width: 560px) {
  .portal-container,
  .shell {
    width: min(100% - 22px, 1400px);
  }

  .hero-copy h1 {
    font-size: 2.5rem;
  }

  .lead-copy {
    font-size: 1rem;
  }

  .hero-actions,
  .hero-actions .button,
  .app-hero-actions,
  .app-hero-actions .button,
  .onboarding-actions,
  .onboarding-actions .button,
  .promo-strip .button {
    width: 100%;
  }

  .feature-card,
  .app-hero,
  .onboarding-panel,
  .panel,
  .cta-box {
    border-radius: 24px;
    padding: 24px;
  }

  .app-hero-copy h1 {
    font-size: 2.15rem;
  }

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

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

  .app-kpi-strip {
    grid-template-columns: 1fr;
  }
}
