:root {
  color-scheme: dark;
  --bg: #06111f;
  --panel: #0d1a2b;
  --panel-2: #13243c;
  --panel-3: #182d4b;
  --border: #2a4365;
  --border-soft: rgba(148, 163, 184, 0.18);
  --text: #f8fafc;
  --muted: #bfd0e6;
  --muted-2: #8ca5c2;
  --accent: #4ea5ff;
  --accent-2: #7dd3fc;
  --danger: #ef4444;
  --danger-soft: #3a161c;
  --success: #22c55e;
  --success-soft: #132f23;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.32);
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 10px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at top, rgba(78, 165, 255, 0.12), transparent 24%),
    linear-gradient(180deg, #071120 0%, #081425 22%, #07101c 100%);
  color: var(--text);
}

button {
  font: inherit;
  cursor: pointer;
}

.page-shell {
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
  padding: 24px 0 60px;
}

.topbar {
  position: sticky;
  top: 12px;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 18px;
  border: 1px solid var(--border-soft);
  background: rgba(7, 16, 28, 0.8);
  backdrop-filter: blur(14px);
  border-radius: 999px;
  box-shadow: var(--shadow);
}

.brand-block {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #14304f, #1f4776);
  color: #fff;
  font-weight: 800;
}

.eyebrow,
.section-tag,
.mini-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent-2);
  font-weight: 800;
}

.brand-subtitle {
  color: var(--muted-2);
  font-size: 0.86rem;
}

.topnav {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.topnav button,
.view-tab,
.workflow-step,
.modal-tab,
.mini-tab,
.role-btn,
.tiny-btn {
  border: 1px solid var(--border-soft);
  background: rgba(19, 36, 60, 0.65);
  color: var(--muted);
  border-radius: 999px;
  padding: 10px 14px;
  transition: 0.18s ease;
}

.topnav button:hover,
.view-tab:hover,
.workflow-step:hover,
.modal-tab:hover,
.mini-tab:hover,
.role-btn:hover,
.tiny-btn:hover,
.topnav button.active,
.view-tab.active,
.modal-tab.active,
.mini-tab.active {
  color: #fff;
  border-color: rgba(125, 211, 252, 0.5);
  background: rgba(29, 78, 216, 0.32);
}

main {
  display: flex;
  flex-direction: column;
  gap: 26px;
  margin-top: 22px;
}

.hero-section,
.content-section {
  scroll-margin-top: 120px;
}

.hero-section,
.content-section {
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
}

.hero-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 520px);
  gap: 26px;
  padding: 34px;
  background:
    radial-gradient(circle at top right, rgba(78, 165, 255, 0.14), transparent 30%),
    linear-gradient(180deg, rgba(9, 21, 37, 0.96), rgba(7, 17, 31, 0.98));
}

.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 16px;
}

.hero-copy h1,
.content-section h2,
.modal-header h3 {
  margin: 0;
  line-height: 1.02;
  letter-spacing: -0.04em;
}

.hero-copy h1 {
  font-size: clamp(2.8rem, 5vw, 4.5rem);
  max-width: 10ch;
}

.hero-lead,
.section-intro,
.hero-support,
.modal-copy-card p,
.depth-list-item p,
.problem-card p,
.role-card p,
.benefit-card p,
.summary-copy,
.detail-copy-card,
.list-row,
.issue-row,
.preview-mini-panel p {
  color: var(--muted);
  line-height: 1.6;
}

.hero-lead {
  max-width: 62ch;
  font-size: 1.08rem;
}

.hero-support {
  max-width: 60ch;
  font-size: 0.98rem;
}

.cta-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.cta-row.centered {
  justify-content: center;
}

.primary-btn,
.secondary-btn,
.mock-cta,
.modal-close {
  border: 0;
  border-radius: 999px;
  padding: 14px 18px;
  font-weight: 700;
}

.primary-btn,
.mock-cta {
  background: linear-gradient(135deg, #1d4ed8, #3b82f6);
  color: #fff;
  box-shadow: 0 14px 30px rgba(37, 99, 235, 0.28);
}

.secondary-btn {
  background: rgba(15, 23, 42, 0.72);
  color: #dbeafe;
  border: 1px solid rgba(125, 211, 252, 0.28);
}

.hero-proof-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.proof-chip,
.assignment-pill,
.badge,
.chip,
.pill-pill {
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 0.82rem;
  font-weight: 700;
}

.proof-chip,
.assignment-pill {
  background: rgba(19, 36, 60, 0.92);
  border: 1px solid var(--border-soft);
  color: var(--muted);
}

.hero-visual,
.depth-preview-card,
.modal-card,
.workflow-detail,
.problem-card,
.role-card,
.benefit-card,
.list-card,
.modal-product-card,
.modal-copy-card,
.summary-card,
.gauge-card,
.detail-copy-card,
.detail-column,
.detail-visual {
  background: linear-gradient(180deg, rgba(13, 26, 43, 0.98), rgba(9, 18, 32, 0.98));
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
}

.hero-visual {
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.visual-toolbar,
.preview-mini-tabs,
.modal-tab-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.hero-visual-stage {
  min-height: 560px;
  position: relative;
}

.visual-panel {
  display: none;
  height: 100%;
}

.visual-panel.active {
  display: block;
}

.phone-mockup,
.dashboard-card,
.manager-board {
  height: 100%;
  padding: 18px;
  background: linear-gradient(180deg, #08111f, #0b1525);
  border: 1px solid rgba(125, 211, 252, 0.18);
  border-radius: 24px;
}

.phone-mockup {
  max-width: 340px;
  min-height: 520px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.phone-header,
.dashboard-header,
.preview-card-header,
.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.asset-title {
  font-size: 1.65rem;
  font-weight: 800;
}

.asset-subtitle {
  color: var(--muted-2);
}

.badge-required {
  background: rgba(133, 77, 14, 0.36);
  color: #fde68a;
  border: 1px solid rgba(251, 191, 36, 0.24);
}

.check-item,
.modal-check-row,
.list-row,
.issue-row,
.role-card,
.benefit-card,
.problem-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.check-item,
.modal-check-row,
.list-row,
.issue-row.block,
.detail-copy-card,
.detail-column,
.assignment-pill {
  padding: 12px 14px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-soft);
  background: rgba(17, 24, 39, 0.88);
}

.check-item.fail,
.modal-check-row.alert,
.list-card-issue,
.issue-row.block {
  background: rgba(58, 22, 28, 0.82);
  border-color: rgba(239, 68, 68, 0.24);
}

.chip-pass {
  background: rgba(20, 83, 45, 0.5);
  color: #bbf7d0;
}

.chip-fail {
  background: rgba(127, 29, 29, 0.64);
  color: #fecaca;
}

.note-box {
  padding: 12px 14px;
  border-radius: var(--radius-md);
  background: rgba(15, 23, 42, 0.9);
  color: var(--muted);
  border: 1px dashed rgba(125, 211, 252, 0.25);
}

.mock-cta {
  margin-top: auto;
}

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

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

.metric-card {
  padding: 14px;
  border-radius: var(--radius-md);
  background: rgba(17, 24, 39, 0.9);
  border: 1px solid var(--border-soft);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.metric-card span,
.problem-card strong,
.role-card h3,
.benefit-card span,
.summary-title,
.list-card-title,
.depth-list-item strong,
.preview-mini-panel strong,
.modal-copy-card h4,
.modal-product-card h4,
.workflow-step strong {
  font-weight: 700;
}

.metric-card strong {
  font-size: 1.8rem;
}

.metric-alert {
  background: rgba(58, 22, 28, 0.82);
}

.metric-good {
  background: rgba(19, 47, 35, 0.82);
}

.split-card-grid,
.problem-grid,
.benefit-grid,
.depth-grid,
.modal-grid,
.oversight-row,
.workflow-shell,
.role-grid,
.trust-grid,
.trust-detail-grid {
  display: grid;
  gap: 16px;
}

.split-card-grid,
.depth-grid,
.oversight-row,
.trust-grid,
.trust-detail-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

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

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

.content-section {
  padding: 30px;
}

.section-dark {
  background: linear-gradient(180deg, rgba(11, 22, 38, 0.97), rgba(7, 16, 28, 0.98));
}

.section-blue {
  background: linear-gradient(180deg, rgba(14, 28, 47, 0.98), rgba(11, 22, 38, 0.98));
}

.section-slate {
  background: linear-gradient(180deg, rgba(10, 18, 31, 0.98), rgba(9, 18, 29, 0.98));
}

.closing-section {
  background: linear-gradient(180deg, rgba(17, 29, 47, 0.98), rgba(10, 18, 31, 0.98));
  text-align: center;
}

.content-section h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  max-width: 15ch;
  margin-top: 10px;
}

.section-intro {
  max-width: 70ch;
  margin-top: 14px;
}

.problem-card,
.role-card,
.benefit-card,
.trust-card {
  align-items: flex-start;
  flex-direction: column;
  padding: 20px;
}

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

.screenshot-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 18px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-soft);
  background: linear-gradient(180deg, rgba(13, 26, 43, 0.98), rgba(9, 18, 32, 0.98));
}

.screenshot-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.screenshot-card-head strong {
  display: block;
  margin-top: 6px;
  font-size: 1.08rem;
}

.screenshot-card img {
  width: 100%;
  display: block;
  border-radius: 18px;
  border: 1px solid rgba(125, 211, 252, 0.18);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.26);
}

.screenshot-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.screenshot-card-mobile img {
  max-width: 340px;
  margin: 0 auto;
}

.role-card.active,
.role-card:hover {
  border-color: rgba(125, 211, 252, 0.42);
  box-shadow: inset 0 0 0 1px rgba(125, 211, 252, 0.16);
}

.trust-card {
  border: 1px solid rgba(125, 211, 252, 0.18);
  background: linear-gradient(180deg, rgba(11, 22, 38, 0.98), rgba(8, 17, 31, 0.98));
}

.trust-detail-card {
  padding: 20px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(125, 211, 252, 0.18);
  background: linear-gradient(180deg, rgba(11, 22, 38, 0.98), rgba(8, 17, 31, 0.98));
}

.trust-detail-card strong {
  display: block;
  margin-top: 8px;
}

.trust-bullet-list {
  margin: 16px 0 0;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.7;
}

.trust-bullet-list li + li {
  margin-top: 10px;
}

.trust-note {
  margin-top: 18px;
  padding: 18px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(125, 211, 252, 0.18);
  background: rgba(8, 17, 31, 0.88);
  color: var(--muted);
  line-height: 1.6;
}

.role-card h3,
.problem-card strong,
.trust-card strong,
.modal-product-card h4,
.modal-copy-card h4,
.workflow-detail h3 {
  margin: 0;
}

.role-btn {
  margin-top: auto;
}

.workflow-shell {
  grid-template-columns: minmax(290px, 360px) minmax(0, 1fr);
  align-items: start;
  margin-top: 18px;
}

.workflow-steps {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.workflow-step {
  border-radius: var(--radius-md);
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  padding: 14px;
  text-align: left;
}

.workflow-step span:first-child,
.benefit-card span {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  background: rgba(29, 78, 216, 0.22);
  color: #dbeafe;
}

.workflow-step small {
  color: var(--muted-2);
}

.workflow-step.active {
  background: rgba(29, 78, 216, 0.24);
}

.workflow-detail {
  padding: 20px;
}

.detail-tag {
  color: var(--accent-2);
  font-weight: 700;
  margin-bottom: 8px;
}

.detail-visual {
  margin-top: 18px;
  padding: 18px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.detail-nav-row {
  margin-top: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.workflow-nav-btn {
  border: 1px solid var(--border-soft);
  background: rgba(19, 36, 60, 0.72);
  color: var(--text);
  border-radius: 999px;
  padding: 12px 16px;
  font-weight: 700;
}

.workflow-nav-btn-primary {
  background: linear-gradient(135deg, #1d4ed8, #3b82f6);
  border-color: rgba(96, 165, 250, 0.42);
}

.workflow-nav-spacer {
  flex: 1 1 auto;
}

.detail-column {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.benefit-card {
  min-height: 140px;
}

.depth-copy {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.depth-list-item,
.preview-mini-panel,
.list-card,
.summary-card,
.gauge-card,
.modal-product-card,
.modal-copy-card {
  padding: 18px;
}

.preview-mini-panel,
.summary-card,
.gauge-card,
.modal-copy-card {
  min-height: 130px;
}

.preview-mini-panel {
  margin-top: 14px;
}

.gauge-ring {
  width: 108px;
  height: 108px;
  border-radius: 999px;
  border: 10px solid rgba(59, 130, 246, 0.32);
  display: grid;
  place-items: center;
  font-size: 1.35rem;
  font-weight: 800;
}

.gauge-ring.danger {
  border-color: rgba(239, 68, 68, 0.32);
}

.dot-row {
  display: flex;
  gap: 8px;
  margin: 12px 0;
}

.dot-row span {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: rgba(191, 208, 230, 0.22);
}

.dot-row .dot-alert {
  background: rgba(239, 68, 68, 0.86);
}

.tiny-btn {
  padding: 8px 12px;
}

.modal-shell {
  position: fixed;
  inset: 0;
  display: none;
  z-index: 40;
}

.modal-shell.open {
  display: block;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.62);
  backdrop-filter: blur(8px);
}

.modal-card {
  position: relative;
  width: min(1080px, calc(100% - 28px));
  max-height: calc(100vh - 32px);
  overflow: auto;
  margin: 16px auto;
  padding: 22px;
  background: linear-gradient(180deg, rgba(10, 18, 31, 0.99), rgba(7, 16, 28, 0.995));
}

.modal-close {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  background: rgba(17, 24, 39, 0.9);
  color: #fff;
}

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

.modal-panel {
  display: none;
  margin-top: 18px;
}

.modal-panel.active {
  display: block;
}

.modal-check-row.success {
  background: rgba(19, 47, 35, 0.76);
}

.mock-cta.full {
  width: 100%;
}

.issue-row {
  flex-direction: column;
  align-items: flex-start;
}

.issue-row span,
.list-row span:last-child,
.workflow-detail p,
.detail-copy-card,
.preview-mini-panel p,
.modal-copy-card p {
  color: var(--muted);
}

.issue-row.block {
  margin-top: 14px;
}

.assignment-pill,
.detail-copy-card {
  font-size: 0.94rem;
}

@media (max-width: 1040px) {
  .hero-section,
  .workflow-shell,
  .depth-grid,
  .split-card-grid,
  .modal-grid.two-up,
  .problem-grid,
  .benefit-grid,
  .role-grid,
  .trust-grid,
  .trust-detail-grid,
  .oversight-row,
  .screenshot-grid {
    grid-template-columns: 1fr;
  }

  .hero-copy h1,
  .content-section h2 {
    max-width: 100%;
  }

  .hero-visual-stage {
    min-height: auto;
  }
}

@media (max-width: 760px) {
  .page-shell {
    width: min(100% - 20px, 1200px);
    padding-top: 14px;
  }

  .topbar {
    border-radius: 24px;
    align-items: flex-start;
    flex-direction: column;
  }

  .hero-section,
  .content-section,
  .modal-card {
    padding: 20px;
  }

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

  .visual-toolbar,
  .preview-mini-tabs,
  .modal-tab-row,
  .cta-row,
  .screenshot-card-head {
    flex-direction: column;
  }

  .topnav {
    width: 100%;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .topnav button {
    flex: 0 0 auto;
    white-space: nowrap;
  }

  .view-tab,
  .modal-tab,
  .mini-tab,
  .primary-btn,
  .secondary-btn {
    width: 100%;
  }

  .detail-nav-row {
    flex-direction: column;
    align-items: stretch;
  }

  .workflow-nav-spacer {
    display: none;
  }

  .workflow-nav-btn {
    width: 100%;
  }

  .phone-mockup {
    min-height: auto;
  }
}
