:root {
  --bg: #071421;
  --bg-soft: #0d1f30;
  --panel: rgba(11, 29, 44, 0.9);
  --panel-strong: #0d2234;
  --panel-muted: #132c41;
  --line: rgba(151, 185, 214, 0.16);
  --text: #e8f1f7;
  --muted: #9eb3c5;
  --teal: #49d6b0;
  --teal-deep: #1b9c8f;
  --amber: #ffbf69;
  --red: #ff6f61;
  --blue: #72b7ff;
  --gray: #5b7388;
  --success: #7ce1bf;
  --surface: #f5f8fb;
  --surface-strong: #ebf2f8;
  --surface-text: #0d2234;
  --shadow: 0 22px 60px rgba(1, 10, 20, 0.35);
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 16px;
  --radius-sm: 12px;
  --content-width: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Manrope", "Avenir Next", "Segoe UI", sans-serif;
  color: var(--text);
  background: radial-gradient(circle at top, rgba(52, 148, 139, 0.2), transparent 32%),
    linear-gradient(180deg, #071421 0%, #081827 48%, #0a1520 100%);
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

.marketing-body {
  position: relative;
  overflow-x: hidden;
}

.hero-backdrop {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 12% 18%, rgba(73, 214, 176, 0.22), transparent 18%),
    radial-gradient(circle at 82% 12%, rgba(114, 183, 255, 0.18), transparent 22%),
    radial-gradient(circle at 75% 66%, rgba(255, 191, 105, 0.12), transparent 18%);
  pointer-events: none;
}

.marketing-header,
.hero-grid,
.content-section {
  width: min(var(--content-width), calc(100% - 40px));
  margin: 0 auto;
}

.marketing-header {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 28px 0;
}

.brand-lockup {
  display: flex;
  gap: 16px;
  align-items: center;
}

.brand-mark {
  width: 52px;
  height: 52px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(73, 214, 176, 0.22), rgba(114, 183, 255, 0.28));
  border: 1px solid rgba(114, 183, 255, 0.24);
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.logo-mark {
  padding: 0;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(73, 214, 176, 0.1), rgba(114, 183, 255, 0.14));
}

.logo-mark svg {
  width: 100%;
  height: 100%;
  display: block;
}

.brand-lockup h1,
.hero-copy h2,
.section-heading h3,
.closing-banner h3 {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--teal);
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.marketing-nav {
  display: flex;
  gap: 22px;
  align-items: center;
  color: var(--muted);
}

.marketing-nav a:hover {
  color: var(--text);
}

.nav-cta,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 999px;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.nav-cta,
.button-primary {
  color: #05131a;
  background: linear-gradient(135deg, var(--teal), #79f0d1);
  box-shadow: 0 12px 26px rgba(73, 214, 176, 0.22);
}

.button-secondary {
  color: var(--text);
  border: 1px solid rgba(114, 183, 255, 0.24);
  background: rgba(255, 255, 255, 0.04);
}

.button:hover,
.nav-cta:hover {
  transform: translateY(-1px);
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.2fr 0.9fr;
  gap: 32px;
  padding: 44px 0 56px;
}

.hero-copy h2 {
  font-size: clamp(2.6rem, 5vw, 4.5rem);
  line-height: 0.98;
  max-width: 12ch;
}

.hero-text {
  max-width: 62ch;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.75;
  margin: 24px 0 0;
}

.hero-actions {
  display: flex;
  gap: 14px;
  margin-top: 28px;
}

.hero-points {
  padding-left: 20px;
  margin: 28px 0 0;
  color: var(--muted);
  line-height: 1.8;
}

.hero-panel {
  position: relative;
  border-radius: var(--radius-xl);
  padding: 24px;
  background: rgba(9, 24, 37, 0.82);
  border: 1px solid rgba(114, 183, 255, 0.16);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.panel-glow {
  position: absolute;
  inset: auto auto -60px 20px;
  width: 180px;
  height: 180px;
  background: radial-gradient(circle, rgba(73, 214, 176, 0.28), transparent 70%);
  pointer-events: none;
}

.metric-strip {
  display: grid;
  gap: 14px;
}

.metric-strip article,
.content-card,
.timeline-card,
.role-card,
.module-card,
.app-card,
.pane,
.score-card,
.question-card,
.bom-row,
.feed-item,
.permission-row,
.review-card,
.empty-panel,
.login-panel,
.status-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}

.metric-strip article {
  padding: 18px 18px 16px;
}

.metric-strip span,
.mini-label,
.field-label {
  display: block;
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.metric-strip strong {
  display: block;
  margin-top: 8px;
  font-size: 1.35rem;
}

.metric-strip p {
  margin: 8px 0 0;
  color: var(--muted);
}

.process-preview {
  margin-top: 18px;
  padding: 22px;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
}

.process-preview-header,
.section-heading,
.row-between,
.tab-header,
.topbar,
.project-header,
.login-header,
.dashboard-header,
.project-meta,
.page-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 0.84rem;
  font-weight: 700;
}

.status-green {
  background: rgba(124, 225, 191, 0.15);
  color: var(--success);
}

.status-yellow {
  background: rgba(255, 191, 105, 0.14);
  color: var(--amber);
}

.status-red {
  background: rgba(255, 111, 97, 0.16);
  color: #ff9186;
}

.status-blue {
  background: rgba(114, 183, 255, 0.16);
  color: #99ccff;
}

.status-gray {
  background: rgba(91, 115, 136, 0.18);
  color: #b5c6d4;
}

.process-preview ol {
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 12px;
}

.process-preview li {
  position: relative;
  padding-left: 26px;
  color: var(--muted);
}

.process-preview li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
}

.process-preview li.done::before {
  background: var(--success);
}

.process-preview li.active {
  color: var(--text);
}

.process-preview li.active::before {
  background: var(--amber);
}

.content-section {
  position: relative;
  z-index: 1;
  padding: 54px 0;
}

.alt-surface {
  padding: 64px 28px;
  border-radius: calc(var(--radius-xl) + 4px);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.section-heading {
  align-items: end;
  margin-bottom: 24px;
}

.section-heading h3 {
  font-size: clamp(1.8rem, 3vw, 3rem);
  max-width: 14ch;
}

.thesis-grid,
.role-grid,
.modules-grid,
.timeline-grid {
  display: grid;
  gap: 18px;
}

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

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

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

.content-card,
.role-card,
.module-card,
.timeline-card {
  padding: 24px;
}

.timeline-card span {
  font-family: "Space Grotesk", sans-serif;
  font-size: 2.6rem;
  color: rgba(114, 183, 255, 0.44);
}

.content-card h4,
.role-card h4,
.module-card h4,
.timeline-card h4,
.pane h3,
.app-card h3,
.score-card h3,
.review-card h3,
.login-panel h2,
.project-title,
.status-card h3 {
  margin: 0 0 10px;
}

.content-card p,
.role-card p,
.module-card p,
.timeline-card p,
.muted,
.app-card p,
.review-card p,
.permission-row p,
.feed-item p,
.bom-row p,
.question-card p,
.status-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.closing-banner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  margin-bottom: 48px;
  padding: 32px;
  border-radius: var(--radius-xl);
  background: linear-gradient(135deg, rgba(73, 214, 176, 0.18), rgba(114, 183, 255, 0.12));
  border: 1px solid rgba(114, 183, 255, 0.16);
}

.app-body {
  min-height: 100vh;
  background: linear-gradient(180deg, #06111b 0%, #091826 100%);
}

.login-shell,
.portal-shell {
  min-height: 100vh;
}

.login-shell {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
}

.login-showcase {
  padding: 48px;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
}

.login-panel-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
}

.login-panel {
  width: min(100%, 520px);
  padding: 28px;
}

.login-panel p,
.login-showcase p {
  color: var(--muted);
}

.demo-account-grid,
.summary-card-grid,
.dashboard-grid,
.overview-grid,
.file-grid,
.analysis-grid,
.question-grid,
.sow-grid,
.bom-grid,
.activity-grid,
.export-grid,
.review-grid,
.settings-grid {
  display: grid;
  gap: 16px;
}

.demo-account-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 24px;
}

.demo-account {
  padding: 18px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.07);
  cursor: pointer;
}

.demo-account.active {
  border-color: rgba(73, 214, 176, 0.48);
  box-shadow: 0 0 0 1px rgba(73, 214, 176, 0.28);
}

.demo-account strong {
  display: block;
  margin-bottom: 6px;
}

.field {
  margin-top: 16px;
}

.field input,
.field textarea,
.field select {
  width: 100%;
  margin-top: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  border-radius: 14px;
  padding: 14px 14px;
}

.field textarea {
  min-height: 110px;
  resize: vertical;
}

.login-actions,
.inline-actions,
.question-actions,
.tab-actions,
.toolbar-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.helper-note {
  margin-top: 14px;
  font-size: 0.92rem;
}

.portal-shell {
  display: grid;
  grid-template-columns: 280px 1fr;
}

.sidebar {
  padding: 24px 18px;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(4, 14, 24, 0.76);
}

.sidebar-nav {
  display: grid;
  gap: 8px;
  margin-top: 24px;
}

.sidebar-nav button,
.tab-list button,
.filter-chip,
.secondary-button,
.ghost-button {
  border: 0;
  cursor: pointer;
}

.sidebar-nav button,
.tab-list button {
  width: 100%;
  text-align: left;
  padding: 14px 16px;
  border-radius: 14px;
  background: transparent;
  color: var(--muted);
}

.sidebar-nav button.active,
.sidebar-nav button:hover,
.tab-list button.active,
.tab-list button:hover {
  background: rgba(114, 183, 255, 0.12);
  color: var(--text);
}

.sidebar-footer {
  margin-top: 24px;
  padding: 16px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.main-shell {
  padding: 22px;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 2;
  margin-bottom: 18px;
  padding: 18px 20px;
  border-radius: 20px;
  background: rgba(8, 24, 38, 0.82);
  backdrop-filter: blur(18px);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.topbar-search {
  flex: 1;
  max-width: 420px;
}

.topbar-search input {
  width: 100%;
  min-height: 46px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  padding: 0 18px;
}

.user-chip {
  display: flex;
  align-items: center;
  gap: 12px;
}

.avatar {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(73, 214, 176, 0.24), rgba(114, 183, 255, 0.3));
  display: grid;
  place-items: center;
  font-weight: 800;
}

.summary-card-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 16px;
}

.app-card,
.score-card,
.pane,
.review-card,
.status-card,
.empty-panel {
  padding: 20px;
}

.summary-card-grid .app-card {
  min-height: 150px;
}

.score-value,
.score-inline strong,
.project-stat strong,
.status-card strong {
  display: block;
  margin-top: 8px;
  font-size: 1.75rem;
}

.dashboard-grid,
.overview-grid,
.analysis-grid,
.sow-grid,
.activity-grid,
.export-grid,
.review-grid,
.settings-grid {
  grid-template-columns: 1.2fr 0.8fr;
}

.file-grid,
.question-grid,
.bom-grid {
  grid-template-columns: 1fr;
}

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

.project-row,
.question-card,
.bom-row,
.feed-item,
.permission-row {
  padding: 18px;
}

.project-row {
  display: grid;
  grid-template-columns: 1.2fr repeat(4, minmax(0, 0.7fr));
  gap: 12px;
  align-items: center;
}

.project-row strong,
.project-title {
  font-size: 1rem;
}

.score-inline {
  display: flex;
  align-items: center;
  gap: 12px;
}

.score-dot {
  width: 12px;
  height: 12px;
  border-radius: 999px;
}

.score-dot.green {
  background: var(--success);
}

.score-dot.yellow {
  background: var(--amber);
}

.score-dot.red {
  background: var(--red);
}

.score-dot.blue {
  background: var(--blue);
}

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

.tab-list button {
  width: auto;
  background: rgba(255, 255, 255, 0.03);
}

.project-header {
  margin-bottom: 18px;
}

.project-header .project-title {
  font-size: 1.6rem;
}

.project-meta {
  flex-wrap: wrap;
  color: var(--muted);
}

.process-meter {
  display: grid;
  gap: 14px;
}

.meter-track {
  display: grid;
  grid-template-columns: repeat(10, minmax(0, 1fr));
  gap: 8px;
}

.meter-step {
  padding: 14px 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  min-height: 110px;
}

.meter-step.active {
  border-color: rgba(255, 191, 105, 0.45);
  background: rgba(255, 191, 105, 0.08);
}

.meter-step.done {
  border-color: rgba(124, 225, 191, 0.32);
}

.meter-step-title {
  display: block;
  margin-top: 8px;
  font-size: 0.92rem;
  font-weight: 700;
}

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

.progress-bar span {
  display: block;
  height: 100%;
  background: linear-gradient(135deg, var(--teal), var(--blue));
}

.tag-list,
.chip-row,
.owners-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.tag,
.filter-chip {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--muted);
}

.filter-chip.active {
  background: rgba(73, 214, 176, 0.14);
  color: var(--teal);
}

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

.question-card {
  display: grid;
  gap: 14px;
}

.question-card textarea {
  min-height: 100px;
}

.question-meta,
.file-meta,
.permission-meta,
.activity-meta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 0.92rem;
}

.bom-table {
  display: grid;
  gap: 12px;
}

.bom-row {
  display: grid;
  grid-template-columns: 1.1fr 1fr 0.6fr 0.75fr 1.2fr;
  gap: 12px;
}

.review-stack,
.feed-stack,
.permission-stack,
.file-stack {
  display: grid;
  gap: 12px;
}

.secondary-button,
.ghost-button {
  min-height: 44px;
  padding: 0 16px;
  border-radius: 999px;
}

.secondary-button {
  color: #08131b;
  background: linear-gradient(135deg, #d7ecff, #a5d2ff);
}

.ghost-button {
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
}

.customer-banner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
  margin-bottom: 16px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(73, 214, 176, 0.12), rgba(114, 183, 255, 0.08));
  border: 1px solid rgba(73, 214, 176, 0.18);
}

.status-history {
  display: grid;
  gap: 12px;
}

.status-history article {
  padding: 16px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.empty-panel {
  display: grid;
  place-items: center;
  min-height: 220px;
  text-align: center;
}

@media (max-width: 1100px) {
  .hero-grid,
  .login-shell,
  .portal-shell,
  .dashboard-grid,
  .overview-grid,
  .analysis-grid,
  .sow-grid,
  .activity-grid,
  .export-grid,
  .review-grid,
  .settings-grid {
    grid-template-columns: 1fr;
  }

  .summary-card-grid,
  .thesis-grid,
  .role-grid,
  .modules-grid,
  .timeline-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .meter-track,
  .project-row,
  .bom-row {
    grid-template-columns: 1fr;
  }

  .sidebar {
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }
}

@media (max-width: 760px) {
  .marketing-header,
  .process-preview-header,
  .section-heading,
  .topbar,
  .project-header,
  .project-meta,
  .row-between,
  .customer-banner,
  .closing-banner {
    flex-direction: column;
    align-items: flex-start;
  }

  .summary-card-grid,
  .thesis-grid,
  .role-grid,
  .modules-grid,
  .timeline-grid,
  .demo-account-grid {
    grid-template-columns: 1fr;
  }

  .marketing-nav {
    display: none;
  }

  .hero-actions,
  .tab-list,
  .toolbar-actions {
    width: 100%;
  }

  .button,
  .button-primary,
  .button-secondary,
  .secondary-button,
  .ghost-button {
    width: 100%;
  }

  .main-shell,
  .login-showcase,
  .login-panel-wrap {
    padding: 18px;
  }
}
