:root {
  --bg: #f3f5f7;
  --surface: #ffffff;
  --surface-alt: #f8fafc;
  --surface-strong: #111827;
  --line: #d7dee7;
  --line-strong: #b9c4d1;
  --text: #182230;
  --muted: #657386;
  --primary: #1f7a68;
  --primary-dark: #175b4e;
  --primary-soft: #e5f3ef;
  --blue: #285fba;
  --blue-soft: #eaf1ff;
  --amber: #b76a12;
  --amber-soft: #fff2d7;
  --danger: #b42318;
  --danger-soft: #fde8e5;
  --ok: #157a4f;
  --shadow: 0 18px 45px rgba(18, 32, 53, 0.1);
  color-scheme: light;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

:root[data-theme="dark"] {
  --bg: #0b1220;
  --surface: #111827;
  --surface-alt: #0f172a;
  --surface-strong: #e5eef8;
  --line: #263244;
  --line-strong: #3b4a60;
  --text: #e5eef8;
  --muted: #9fb0c7;
  --primary: #2fa98f;
  --primary-dark: #55c8b1;
  --primary-soft: #12352f;
  --blue: #7aa7ff;
  --blue-soft: #142747;
  --amber: #f4b44c;
  --amber-soft: #3a2b12;
  --danger: #ff8a7d;
  --danger-soft: #3b1717;
  --ok: #61d4a4;
  --shadow: 0 18px 45px rgba(0, 0, 0, 0.35);
  color-scheme: dark;
}

:root[data-theme="dark"] body,
:root[data-theme="dark"] .auth-view {
  background: #0b1220;
  color: var(--text);
}

:root[data-theme="dark"] input,
:root[data-theme="dark"] select,
:root[data-theme="dark"] textarea {
  background: #0f172a;
  color: var(--text);
  border-color: var(--line);
}

:root[data-theme="dark"] .public-nav {
  background: rgba(15, 23, 42, 0.94) !important;
  border-bottom-color: #263244;
}

:root[data-theme="dark"] .public-brand,
:root[data-theme="dark"] .pro-hero .hero-content h1,
:root[data-theme="dark"] .public-actions .dark,
:root[data-theme="dark"] .hero-button.light {
  color: var(--text) !important;
}

:root[data-theme="dark"] .public-links a,
:root[data-theme="dark"] .pro-hero .hero-content p:not(.eyebrow),
:root[data-theme="dark"] .section-heading p:not(.eyebrow),
:root[data-theme="dark"] .split-proof p,
:root[data-theme="dark"] .access-copy p {
  color: var(--muted) !important;
}

:root[data-theme="dark"] .pro-hero {
  background: linear-gradient(135deg, #0b1220 0%, #101d2e 58%, #0d2c25 100%) !important;
}

:root[data-theme="dark"] .product-window,
:root[data-theme="dark"] .product-kpis article,
:root[data-theme="dark"] .product-grid section,
:root[data-theme="dark"] .product-table,
:root[data-theme="dark"] .module-grid article,
:root[data-theme="dark"] .workflow-track article,
:root[data-theme="dark"] .proof-grid article,
:root[data-theme="dark"] .outcome-grid article,
:root[data-theme="dark"] .trust-strip span,
:root[data-theme="dark"] .auth-panel,
:root[data-theme="dark"] .panel,
:root[data-theme="dark"] .metric-card,
:root[data-theme="dark"] .summary-strip article,
:root[data-theme="dark"] .table-wrap {
  background: var(--surface);
  border-color: var(--line);
  color: var(--text);
}

:root[data-theme="dark"] .product-window-bar,
:root[data-theme="dark"] .product-layout main,
:root[data-theme="dark"] th {
  background: var(--surface-alt);
}

:root[data-theme="dark"] tbody tr:hover {
  background: #142033;
}

:root[data-theme="dark"] .secondary-button,
:root[data-theme="dark"] .ghost-danger,
:root[data-theme="dark"] .hero-button.light,
:root[data-theme="dark"] .public-actions .dark {
  background: #0f172a !important;
  border-color: var(--line-strong) !important;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
}

html {
  scroll-behavior: smooth;
}

button,
input,
select {
  font: inherit;
}

button,
a {
  touch-action: manipulation;
}

a {
  text-decoration: none;
}

code {
  color: #344054;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 12px;
}

.hidden {
  display: none !important;
}

.app-shell {
  min-height: 100vh;
}

.auth-view {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 28px;
  background:
    linear-gradient(120deg, rgba(31, 122, 104, 0.12), rgba(40, 95, 186, 0.08)),
    var(--bg);
}

.auth-layout {
  width: min(1100px, 100%);
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(360px, 0.75fr);
  gap: 18px;
}

.product-story,
.auth-panel,
.panel,
.metric-card,
.summary-strip article,
.table-wrap {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04);
}

.product-story {
  min-height: 620px;
  display: grid;
  align-content: space-between;
  padding: 34px;
  overflow: hidden;
}

.brand-lockup,
.sidebar-brand,
.brand-block {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-mark {
  width: 48px;
  height: 48px;
  display: inline-grid;
  place-items: center;
  border-radius: 8px;
  background: var(--primary);
  color: #fff;
  font-weight: 850;
}

.brand-mark.small {
  width: 38px;
  height: 38px;
  font-size: 13px;
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1 {
  font-size: 34px;
  line-height: 1.05;
}

h2 {
  font-size: 24px;
  line-height: 1.18;
}

h3 {
  font-size: 16px;
  line-height: 1.25;
}

.story-copy {
  max-width: 680px;
  display: grid;
  gap: 16px;
}

.story-copy h2 {
  font-size: clamp(32px, 4vw, 54px);
  line-height: 1.02;
}

.story-copy p,
.auth-panel-header p,
.eyebrow,
.muted {
  color: var(--muted);
}

.story-copy p {
  max-width: 580px;
  font-size: 17px;
  line-height: 1.6;
}

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

.landing-actions .primary-button,
.landing-actions .secondary-button {
  min-width: 160px;
}

.eyebrow {
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.preview-board {
  display: grid;
  gap: 18px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-alt);
}

.preview-toolbar,
.preview-kpis,
.preview-table {
  display: grid;
  gap: 10px;
}

.preview-toolbar {
  grid-template-columns: 90px 1fr 110px;
}

.preview-toolbar span,
.preview-table span {
  height: 12px;
  border-radius: 999px;
  background: #dce4ee;
}

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

.preview-kpis article {
  display: grid;
  gap: 4px;
  min-height: 86px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.preview-kpis strong {
  font-size: 24px;
}

.preview-kpis span {
  color: var(--muted);
  font-size: 12px;
}

.preview-table {
  grid-template-columns: 1.2fr 0.7fr 0.7fr 0.5fr;
}

.auth-panel {
  align-self: center;
  padding: 28px;
  box-shadow: var(--shadow);
}

.auth-panel-header {
  display: grid;
  gap: 6px;
}

.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin: 22px 0 16px;
  padding: 4px;
  border-radius: 8px;
  background: #edf1f5;
}

.tab-button,
.nav-link,
.primary-button,
.secondary-button,
.ghost-danger,
.icon-button {
  border: 0;
  border-radius: 6px;
  cursor: pointer;
  min-height: 38px;
  white-space: nowrap;
}

.tab-button {
  background: transparent;
  color: var(--muted);
  font-weight: 750;
}

.tab-button.active {
  background: var(--surface);
  color: var(--text);
  box-shadow: 0 1px 4px rgba(16, 24, 40, 0.08);
}

.auth-form,
.modal-form {
  display: grid;
  gap: 14px;
}

label {
  display: grid;
  gap: 6px;
  color: var(--text);
  font-size: 14px;
  font-weight: 700;
}

input,
select,
textarea {
  width: 100%;
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
  color: var(--text);
  padding: 9px 11px;
  outline: none;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(31, 122, 104, 0.14);
}

textarea.csv-input {
  min-height: 260px;
  resize: vertical;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 13px;
  line-height: 1.5;
}

.import-result {
  margin-top: 12px;
}

.primary-button {
  background: var(--primary);
  color: #fff;
  padding: 0 14px;
  font-weight: 800;
}

.primary-button:hover {
  background: var(--primary-dark);
}

.secondary-button,
.ghost-danger {
  display: inline-grid;
  place-items: center;
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--line);
  padding: 0 12px;
  font-weight: 750;
}

.secondary-button:hover {
  border-color: var(--line-strong);
  background: var(--surface-alt);
}

.ghost-danger {
  color: var(--danger);
}

.small-button {
  min-height: 30px;
  font-size: 12px;
}

button:disabled {
  cursor: wait;
  opacity: 0.7;
}

.main-view {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 272px minmax(0, 1fr);
}

.sidebar {
  position: sticky;
  top: 0;
  display: flex;
  flex-direction: column;
  gap: 28px;
  min-height: 100vh;
  padding: 22px;
  background: #0f172a;
  color: #e7eef8;
}

.sidebar-brand div {
  display: grid;
  gap: 2px;
}

.sidebar-brand span:not(.brand-mark) {
  color: #9fb0c7;
  font-size: 12px;
}

.side-nav {
  display: grid;
  gap: 6px;
}

.nav-link {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  text-align: left;
  background: transparent;
  color: #b9c8dc;
  padding: 0 12px;
  font-weight: 750;
}

.nav-link span {
  color: #73849d;
  font-size: 11px;
  font-weight: 900;
}

.nav-link.active,
.nav-link:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.sidebar-footer {
  display: grid;
  gap: 12px;
  margin-top: auto;
}

.mini-status {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #b9c8dc;
  font-size: 13px;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #4ade80;
}

.secondary-button.full {
  width: 100%;
}

.workspace {
  min-width: 0;
  padding: 24px;
}

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

.title-block {
  display: grid;
  gap: 4px;
}

.topbar-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.command-search {
  display: flex;
  align-items: center;
  gap: 8px;
  width: min(310px, 100%);
  min-height: 38px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
}

.command-search span {
  color: var(--muted);
  font-weight: 900;
}

.scan-input {
  min-height: 34px;
  border: 0;
  padding: 0;
  box-shadow: none !important;
}

.message {
  margin-bottom: 16px;
  border-radius: 6px;
  padding: 10px 12px;
  background: var(--primary-soft);
  color: var(--primary-dark);
  border: 1px solid #b6d8cd;
  font-weight: 750;
}

.message.error {
  background: var(--danger-soft);
  color: var(--danger);
  border-color: #f4b3ab;
}

.content-view {
  display: grid;
  gap: 14px;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 14px;
}

.executive-grid {
  grid-template-columns: repeat(5, minmax(150px, 1fr));
}

.metric-card {
  display: grid;
  align-content: space-between;
  gap: 8px;
  min-height: 126px;
  padding: 18px;
}

.metric-card span,
.summary-strip span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
}

.metric-card strong {
  font-size: 28px;
  line-height: 1.1;
}

.metric-card small {
  color: var(--muted);
  font-size: 12px;
}

.metric-card.alert {
  background: var(--amber-soft);
  border-color: #efc56d;
}

.metric-card.danger {
  background: var(--danger-soft);
  border-color: #f4b3ab;
}

.metric-card.accent {
  background: var(--blue-soft);
  border-color: #b7caf2;
}

.workbench,
.dashboard-grid,
.operations-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.65fr);
  gap: 14px;
}

.panel {
  min-width: 0;
  padding: 16px;
}

.panel-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 14px;
}

.operation-grid,
.operations-board {
  display: grid;
  grid-template-columns: repeat(4, minmax(150px, 1fr));
  gap: 12px;
}

.operation-card,
.workflow-card {
  display: grid;
  gap: 8px;
  min-height: 128px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-alt);
}

.operation-card span,
.workflow-card p {
  color: var(--muted);
  font-size: 12px;
}

.operation-card strong {
  font-size: 28px;
}

.operation-card.accent {
  background: var(--blue-soft);
}

.operation-card.danger {
  background: var(--danger-soft);
}

.operation-card.success {
  background: var(--primary-soft);
}

.workflow-card {
  align-content: space-between;
  min-height: 168px;
}

.workflow-count {
  display: inline-grid;
  place-items: center;
  min-width: 38px;
  height: 30px;
  margin-bottom: 10px;
  border-radius: 999px;
  background: var(--surface-strong);
  color: #fff;
  font-weight: 850;
}

.workflow-card strong {
  color: var(--primary-dark);
  font-size: 13px;
}

.list-stack,
.activity-list {
  display: grid;
  gap: 8px;
}

.list-row {
  width: 100%;
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  padding: 10px 0;
  border: 0;
  border-top: 1px solid var(--line);
  background: transparent;
  color: inherit;
  text-align: left;
}

.list-row:first-child {
  border-top: 0;
}

.list-row.clickable:hover {
  color: var(--primary-dark);
}

.status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  border-radius: 999px;
  padding: 2px 8px;
  font-size: 12px;
  font-weight: 850;
}

.status-pill.ok {
  background: var(--primary-soft);
  color: var(--ok);
}

.status-pill.warn {
  background: var(--amber-soft);
  color: var(--amber);
}

.status-pill.danger {
  background: var(--danger-soft);
  color: var(--danger);
}

.category-row {
  display: grid;
  gap: 8px;
  padding: 10px 0;
  border-top: 1px solid var(--line);
}

.chart-list {
  display: grid;
  gap: 12px;
}

.chart-row {
  display: grid;
  gap: 8px;
}

.chart-row > div:first-child {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: var(--muted);
  font-size: 13px;
}

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

.category-row:first-child {
  border-top: 0;
}

.category-meta {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: var(--muted);
  font-size: 13px;
}

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

.progress-track {
  height: 7px;
  overflow: hidden;
  border-radius: 999px;
  background: #e3e9f1;
}

.progress-track span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--primary);
}

.activity-item {
  display: grid;
  grid-template-columns: 12px minmax(0, 1fr);
  gap: 10px;
  padding: 10px 0;
  border-top: 1px solid var(--line);
}

.activity-item.unread {
  padding-left: 10px;
  border-left: 3px solid var(--primary);
  background: var(--primary-soft);
}

.activity-item:first-child {
  border-top: 0;
}

.activity-dot {
  width: 10px;
  height: 10px;
  margin-top: 5px;
  border-radius: 999px;
}

.activity-dot.in {
  background: var(--primary);
}

.activity-dot.out {
  background: var(--amber);
}

.activity-item p {
  margin-top: 3px;
  color: var(--muted);
  font-size: 13px;
}

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

.search-input {
  max-width: 620px;
}

.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  min-width: 980px;
  border-collapse: collapse;
}

th,
td {
  padding: 13px 14px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}

th {
  color: var(--muted);
  background: #f8fafc;
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
}

tr:last-child td {
  border-bottom: 0;
}

tbody tr:hover {
  background: #fbfcfe;
}

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

.summary-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(180px, 1fr));
  gap: 14px;
}

.summary-strip article {
  display: grid;
  gap: 6px;
  min-height: 92px;
  padding: 16px;
}

.summary-strip strong {
  font-size: 26px;
}

dialog {
  width: min(640px, calc(100vw - 32px));
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0;
  box-shadow: var(--shadow);
}

dialog::backdrop {
  background: rgba(15, 23, 42, 0.42);
}

.modal-form {
  padding: 20px;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

.icon-button {
  width: 34px;
  height: 34px;
  display: inline-grid;
  place-items: center;
  background: #eef2f6;
  color: var(--text);
  font-size: 22px;
  line-height: 1;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 4px;
}

@media (max-width: 1180px) {
  .executive-grid,
  .operation-grid,
  .operations-board {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .workbench,
  .dashboard-grid,
  .operations-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 980px) {
  .auth-layout,
  .main-view {
    grid-template-columns: 1fr;
  }

  .product-story {
    min-height: auto;
  }

  .sidebar {
    position: static;
    min-height: auto;
  }

  .side-nav {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  }

  .topbar {
    flex-direction: column;
  }

  .topbar-actions {
    width: 100%;
    justify-content: stretch;
  }

  .topbar-actions > * {
    flex: 1 1 180px;
  }
}

@media (max-width: 720px) {
  .auth-view,
  .workspace {
    padding: 16px;
  }

  .product-story,
  .auth-panel {
    padding: 20px;
  }

  .story-copy h2 {
    font-size: 32px;
  }

  .preview-kpis,
  .preview-toolbar,
  .preview-table,
  .side-nav,
  .metric-grid,
  .executive-grid,
  .operation-grid,
  .operations-board,
  .summary-strip,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .modal-actions {
    flex-direction: column-reverse;
  }
}

/* Professional public presentation */
.auth-view {
  display: block !important;
  min-height: 100vh;
  padding: 0 !important;
  overflow-x: hidden;
  background: #f6f8fb;
}

.auth-view.hidden,
.main-view.hidden {
  display: none !important;
}

.public-nav {
  position: sticky !important;
  top: 0 !important;
  left: auto !important;
  transform: none !important;
  width: 100% !important;
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 24px;
  border: 0;
  border-bottom: 1px solid #dfe5ec;
  border-radius: 0;
  background: rgba(255, 255, 255, 0.94) !important;
  box-shadow: none;
  backdrop-filter: blur(16px);
}

.public-nav > * {
  max-width: 1180px;
}

.public-brand {
  margin-right: auto;
  color: #111827 !important;
}

.public-links {
  flex: 1;
  justify-content: center;
}

.public-links a {
  color: #4b5b70 !important;
}

.public-links a:hover {
  color: #111827 !important;
}

.public-actions {
  margin-left: auto;
}

.public-actions .dark {
  background: #ffffff !important;
  color: #111827 !important;
  border-color: #cfd8e3 !important;
}

.pro-hero {
  position: relative;
  width: 100%;
  min-height: auto !important;
  display: grid !important;
  grid-template-columns: minmax(0, 0.9fr) minmax(520px, 1.1fr);
  gap: 48px;
  align-items: center;
  padding: 92px max(24px, calc((100vw - 1180px) / 2)) 78px !important;
  background:
    linear-gradient(135deg, #f8fafc 0%, #eef4f3 58%, #e8eff8 100%) !important;
  color: #111827 !important;
  overflow: hidden;
}

.pro-hero::after,
.pro-hero .hero-scene {
  display: none !important;
}

.pro-hero .hero-content {
  position: relative;
  z-index: 2;
  max-width: 620px;
  display: grid;
  justify-items: start !important;
  text-align: left !important;
  gap: 22px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid #c9d8d3;
  border-radius: 999px;
  background: #ffffff;
  color: #1f7a68;
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
}

.pro-hero .hero-content h1 {
  max-width: 620px;
  color: #111827;
  font-size: clamp(44px, 5vw, 66px);
  line-height: 1.02;
  letter-spacing: 0;
}

.pro-hero .hero-content p:not(.eyebrow) {
  max-width: 590px;
  color: #4b5b70;
  font-size: 18px;
  line-height: 1.65;
}

.pro-hero .hero-actions,
.pro-hero .hero-proof {
  justify-content: flex-start !important;
}

.hero-button {
  min-width: 176px;
  min-height: 46px;
}

.hero-button.light {
  background: #ffffff !important;
  color: #111827 !important;
  border-color: #cfd8e3 !important;
}

.pro-hero .hero-proof span {
  border-color: #cfd8e3;
  background: rgba(255, 255, 255, 0.72);
  color: #4b5b70;
}

.hero-product {
  position: relative;
  z-index: 2;
}

.product-window {
  overflow: hidden;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 28px 80px rgba(15, 23, 42, 0.18);
}

.product-window-bar {
  min-height: 48px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
  padding: 0 14px;
  border-bottom: 1px solid #e2e8f0;
  background: #f8fafc;
}

.product-window-bar div {
  display: flex;
  gap: 6px;
}

.product-window-bar div span {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #cbd5e1;
}

.product-window-bar small {
  justify-self: end;
  color: #64748b;
  font-weight: 750;
}

.product-layout {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr);
  min-height: 520px;
}

.product-layout aside {
  display: grid;
  align-content: start;
  gap: 12px;
  padding: 18px 14px;
  background: #0f172a;
}

.product-layout aside span {
  height: 34px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.12);
}

.product-layout aside span.active {
  background: #1f7a68;
}

.product-layout main {
  display: grid;
  gap: 14px;
  padding: 18px;
  background: #f8fafc;
}

.product-header,
.mini-row,
.product-table div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.product-header {
  min-height: 54px;
}

.product-header small,
.product-kpis span,
.mini-title {
  color: #64748b;
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
}

.product-header button {
  min-height: 34px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  background: #fff;
  color: #111827;
  font-weight: 750;
}

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

.product-kpis article,
.product-grid section,
.product-table {
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #ffffff;
}

.product-kpis article {
  display: grid;
  gap: 8px;
  min-height: 112px;
  padding: 14px;
}

.product-kpis strong {
  font-size: 28px;
}

.product-grid {
  display: grid;
  grid-template-columns: 1fr 0.8fr;
  gap: 12px;
}

.product-grid section {
  display: grid;
  gap: 12px;
  padding: 14px;
}

.mini-row {
  padding-top: 9px;
  border-top: 1px solid #edf2f7;
}

.mini-row span {
  color: #4b5b70;
}

.mini-alert {
  min-height: 32px;
  display: flex;
  align-items: center;
  border-radius: 999px;
  padding: 0 10px;
  font-size: 13px;
  font-weight: 800;
}

.mini-alert.danger {
  background: #fde8e5;
  color: #b42318;
}

.mini-alert.warn {
  background: #fff2d7;
  color: #b76a12;
}

.mini-alert.ok {
  background: #e5f3ef;
  color: #157a4f;
}

.product-table {
  overflow: hidden;
}

.product-table div {
  display: grid;
  grid-template-columns: 1fr 0.7fr 0.7fr;
  padding: 11px 12px;
  border-top: 1px solid #edf2f7;
  color: #475569;
  font-size: 13px;
}

.product-table div:first-child {
  border-top: 0;
  background: #f1f5f9;
  color: #64748b;
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
}

.ok-text {
  color: #157a4f;
}

.warn-text {
  color: #b76a12;
}

.danger-text {
  color: #b42318;
}

.trust-strip {
  width: min(1180px, calc(100% - 32px));
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
  margin: 22px auto 0;
}

.trust-strip span {
  min-height: 48px;
  display: grid;
  place-items: center;
  border: 1px solid #dfe5ec;
  border-radius: 8px;
  background: #ffffff;
  color: #4b5b70;
  font-weight: 850;
}

.outcome-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 64px;
}

.outcome-grid article {
  display: grid;
  gap: 10px;
  min-height: 150px;
  padding: 20px;
  border: 1px solid #dfe5ec;
  border-radius: 8px;
  background: #ffffff;
}

.outcome-grid strong {
  font-size: 20px;
}

.outcome-grid p {
  color: #64748b;
  line-height: 1.55;
}

@media (max-width: 1100px) {
  .pro-hero {
    grid-template-columns: 1fr !important;
  }

  .pro-hero .hero-content {
    max-width: 760px;
  }

  .hero-product {
    width: min(100%, 760px);
  }
}

@media (max-width: 820px) {
  .public-nav {
    justify-content: space-between;
  }

  .public-links {
    display: none !important;
  }

  .pro-hero {
    padding: 58px 18px 52px !important;
  }

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

  .product-layout aside {
    display: none;
  }

  .product-kpis,
  .product-grid,
  .trust-strip,
  .outcome-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .public-actions .dark {
    display: none;
  }

  .pro-hero .hero-content h1 {
    font-size: 38px;
  }

  .product-window {
    display: none;
  }
}

/* Landing readability reset */
.auth-view {
  width: 100%;
  display: block !important;
  place-items: initial !important;
  padding: 0 !important;
  overflow-x: hidden;
  background: #f6f8fb;
}

.landing-hero {
  width: 100% !important;
  min-height: 780px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 132px 24px 96px;
}

.landing-hero::after {
  height: 90px;
}

.hero-content {
  max-width: 960px;
  margin: 0 auto;
  justify-items: center;
  text-align: center;
}

.hero-content h1 {
  max-width: 940px;
  font-size: clamp(44px, 5.4vw, 72px);
  line-height: 1.03;
}

.hero-content p:not(.eyebrow) {
  max-width: 760px;
}

.hero-actions,
.hero-proof {
  justify-content: center;
}

.hero-scene {
  z-index: 1;
  opacity: 0.45;
  pointer-events: none;
}

.hero-content {
  z-index: 3;
}

.main-window {
  top: 190px;
  right: max(-180px, calc((100vw - 1180px) / 2 - 120px));
  bottom: auto;
  width: min(760px, 56vw);
  min-height: 410px;
  opacity: 0.52;
}

.side-window {
  top: 170px;
  left: max(-80px, calc((100vw - 1180px) / 2 - 70px));
  right: auto;
  opacity: 0.45;
}

.phone-window {
  right: max(60px, calc((100vw - 1180px) / 2 + 20px));
  bottom: 84px;
  opacity: 0.42;
}

.landing-section {
  padding: 74px 0;
}

.section-heading {
  margin-inline: auto;
  text-align: center;
  justify-items: center;
}

.module-grid article,
.workflow-track article,
.proof-grid article {
  min-height: 0;
}

.module-grid article {
  align-content: start;
}

.workflow-track article {
  align-content: start;
}

.split-proof {
  padding-top: 42px;
  padding-bottom: 42px;
}

.access-section {
  padding-top: 60px;
}

@media (max-width: 1040px) {
  .main-window,
  .side-window,
  .phone-window {
    display: none;
  }

  .hero-scene {
    opacity: 0.2;
  }

  .landing-hero {
    min-height: 700px;
  }
}

@media (max-width: 720px) {
  .landing-hero {
    min-height: 680px;
    padding: 112px 18px 72px;
  }

  .hero-content {
    text-align: left;
    align-items: start;
    justify-items: start;
  }

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

/* Public landing page */
.auth-view {
  min-height: 100vh;
  display: block;
  padding: 0;
  background: #f5f7f9;
}

.public-nav {
  position: fixed;
  z-index: 20;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  width: min(1180px, calc(100% - 28px));
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  background: rgba(15, 23, 42, 0.86);
  box-shadow: 0 16px 45px rgba(15, 23, 42, 0.24);
  backdrop-filter: blur(18px);
}

.public-brand,
.public-links,
.public-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.public-brand {
  color: #fff;
}

.public-links a {
  color: #cbd5e1;
  font-size: 14px;
  font-weight: 750;
}

.public-links a:hover {
  color: #fff;
}

.public-actions .dark,
.hero-actions .secondary-button {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
  color: #fff;
}

.nav-cta {
  min-height: 38px;
  display: inline-grid;
  place-items: center;
}

.landing-hero {
  position: relative;
  min-height: 780px;
  display: grid;
  align-items: center;
  overflow: hidden;
  padding: 128px max(24px, calc((100vw - 1180px) / 2)) 84px;
  background: #0f172a;
  color: #fff;
}

.landing-hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 130px;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0), #f5f7f9);
}

.hero-scene {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.hero-scene::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 78% 28%, rgba(31, 122, 104, 0.35), transparent 34%),
    radial-gradient(circle at 32% 82%, rgba(40, 95, 186, 0.28), transparent 28%),
    linear-gradient(120deg, #0f172a 10%, #172033 55%, #10251f 100%);
}

.scene-window {
  position: absolute;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.26);
  backdrop-filter: blur(16px);
}

.main-window {
  right: max(24px, calc((100vw - 1180px) / 2));
  bottom: 104px;
  width: min(660px, 52vw);
  min-height: 410px;
  padding: 18px;
}

.side-window {
  right: max(38px, calc((100vw - 1180px) / 2 + 40px));
  top: 150px;
  width: 300px;
  padding: 18px;
}

.phone-window {
  right: max(520px, calc((100vw - 1180px) / 2 + 430px));
  bottom: 72px;
  width: 190px;
  min-height: 210px;
  display: grid;
  align-content: center;
  gap: 8px;
  padding: 20px;
}

.scene-bar,
.scene-kpis,
.scene-table {
  display: grid;
  gap: 12px;
}

.scene-bar {
  grid-template-columns: 80px 1fr 120px;
  margin-bottom: 18px;
}

.scene-bar span,
.scene-table span {
  height: 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.22);
}

.scene-kpis {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: 18px;
}

.scene-kpis article {
  display: grid;
  gap: 6px;
  min-height: 96px;
  padding: 14px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.12);
}

.scene-kpis span,
.side-window p,
.phone-window p {
  color: #cbd5e1;
  font-size: 12px;
}

.scene-kpis strong {
  font-size: 28px;
}

.scene-table {
  grid-template-columns: 1.2fr 0.7fr 0.8fr 0.6fr 0.5fr;
  align-content: end;
  min-height: 230px;
}

.scene-progress {
  height: 8px;
  margin-top: 14px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
}

.scene-progress span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: #4ade80;
}

.scan-line {
  width: 100%;
  height: 72px;
  border-radius: 8px;
  background:
    repeating-linear-gradient(90deg, #e2e8f0 0 4px, transparent 4px 8px),
    rgba(255, 255, 255, 0.12);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 690px;
  display: grid;
  gap: 22px;
}

.hero-content h1 {
  font-size: clamp(44px, 6vw, 76px);
  line-height: 0.98;
  letter-spacing: 0;
}

.hero-content p:not(.eyebrow) {
  max-width: 620px;
  color: #d5dde9;
  font-size: 18px;
  line-height: 1.65;
}

.hero-actions,
.hero-proof,
.landing-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-button {
  min-width: 180px;
  min-height: 46px;
}

.hero-proof {
  margin-top: 6px;
}

.hero-proof span {
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  padding: 0 11px;
  color: #d5dde9;
  font-size: 13px;
  font-weight: 750;
}

.landing-section,
.access-section {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 82px 0;
}

.section-heading {
  max-width: 760px;
  display: grid;
  gap: 12px;
  margin-bottom: 26px;
}

.section-heading.compact {
  max-width: 620px;
}

.section-heading h2,
.split-proof h2,
.access-copy h2 {
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.06;
}

.section-heading p:not(.eyebrow),
.split-proof p,
.access-copy p {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.6;
}

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

.module-grid article,
.workflow-track article,
.proof-grid article {
  display: grid;
  gap: 12px;
  min-height: 210px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04);
}

.module-grid span {
  color: var(--primary);
  font-size: 12px;
  font-weight: 900;
}

.module-grid p,
.workflow-track p {
  color: var(--muted);
  line-height: 1.55;
}

.workflow-section {
  padding-top: 36px;
}

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

.workflow-track strong {
  width: 38px;
  height: 38px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  background: #0f172a;
  color: #fff;
}

.split-proof {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(420px, 1.15fr);
  gap: 28px;
  align-items: center;
}

.split-proof > div:first-child {
  display: grid;
  gap: 14px;
}

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

.proof-grid article {
  min-height: 150px;
  align-content: center;
}

.proof-grid strong {
  font-size: 40px;
}

.proof-grid span {
  color: var(--muted);
  font-weight: 750;
}

.access-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 440px);
  gap: 24px;
  align-items: center;
  padding-bottom: 96px;
}

.access-copy {
  display: grid;
  gap: 14px;
}

@media (max-width: 1040px) {
  .public-links {
    display: none;
  }

  .main-window {
    opacity: 0.55;
    width: 70vw;
  }

  .side-window,
  .phone-window {
    opacity: 0.42;
  }

  .module-grid,
  .workflow-track,
  .split-proof,
  .access-section {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .public-nav {
    top: 8px;
    width: calc(100% - 16px);
  }

  .public-actions .dark {
    display: none;
  }

  .landing-hero {
    min-height: 720px;
    padding: 112px 18px 70px;
  }

  .hero-content h1 {
    font-size: 42px;
  }

  .main-window {
    right: -110px;
    bottom: 40px;
    width: 520px;
  }

  .side-window,
  .phone-window {
    display: none;
  }

  .scene-kpis,
  .scene-table,
  .proof-grid,
  .module-grid,
  .workflow-track {
    grid-template-columns: 1fr;
  }

  .landing-section,
  .access-section {
    width: calc(100% - 32px);
    padding: 58px 0;
  }
}
