@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=IBM+Plex+Mono:wght@400;500;600&display=swap');

:root {
  --ink-950: #071218;
  --ink-900: #0c1b22;
  --ink-850: #11232b;
  --ink-800: #172c35;
  --ink-700: #29414b;
  --steel-600: #526973;
  --steel-500: #70858e;
  --steel-400: #91a2a9;
  --steel-300: #bcc8cd;
  --steel-200: #d9e1e4;
  --steel-150: #e8edef;
  --steel-100: #f2f5f6;
  --steel-50: #f7f9fa;
  --surface: #ffffff;
  --teal-700: #08736e;
  --teal-600: #078a83;
  --teal-500: #13a39a;
  --teal-100: #d8f3ef;
  --teal-50: #effaf8;
  --amber-700: #9a5d08;
  --amber-600: #c47a0a;
  --amber-500: #e99b21;
  --amber-100: #ffedc6;
  --amber-50: #fff9eb;
  --red-700: #a33131;
  --red-500: #d64b4b;
  --red-100: #fde2e0;
  --green-700: #187044;
  --green-500: #2b9560;
  --green-100: #dcf5e8;
  --blue-700: #245f8a;
  --blue-100: #dceef9;
  --font-ui: 'DM Sans', 'Segoe UI', sans-serif;
  --font-mono: 'IBM Plex Mono', Consolas, monospace;
  --radius-xs: 5px;
  --radius-sm: 9px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --shadow-xs: 0 1px 2px rgba(7, 18, 24, .05);
  --shadow-sm: 0 8px 24px rgba(7, 18, 24, .07);
  --shadow-lg: 0 26px 70px rgba(7, 18, 24, .18);
  --sidebar: 258px;
  --ease: cubic-bezier(.2, .8, .2, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink-900);
  background: var(--steel-100);
  font-family: var(--font-ui);
  font-size: 14px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
button, input, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; }
svg { width: 18px; height: 18px; stroke-width: 1.8; }
.mono { font-family: var(--font-mono); letter-spacing: -.02em; }
.muted { color: var(--steel-500); }
.eyebrow {
  margin: 0 0 7px;
  color: var(--teal-700);
  font: 600 11px/1 var(--font-mono);
  letter-spacing: .12em;
  text-transform: uppercase;
}
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
:focus-visible {
  outline: 3px solid rgba(19, 163, 154, .28);
  outline-offset: 2px;
}

/* Brand */
.brand { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; }
.brand-mark {
  position: relative; width: 38px; height: 38px; border: 1px solid rgba(255,255,255,.16);
  border-radius: 10px; background: linear-gradient(145deg, #18343e, #0a171d);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.1), 0 7px 18px rgba(0,0,0,.24);
}
.brand-mark::before, .brand-mark::after {
  content: ''; position: absolute; left: 8px; right: 8px; height: 4px;
  border: 1px solid var(--teal-500); border-radius: 4px;
}
.brand-mark::before { top: 10px; box-shadow: 0 11px 0 -1px var(--amber-500); }
.brand-mark::after { top: 15px; left: 13px; right: 13px; border-color: var(--steel-400); }
.brand-copy strong { display: block; color: white; font-size: 15px; letter-spacing: -.02em; }
.brand-copy span { color: var(--steel-400); font: 500 9px/1.2 var(--font-mono); letter-spacing: .13em; text-transform: uppercase; }

/* Shell */
.app-shell { min-height: 100vh; }
.sidebar {
  position: fixed; inset: 0 auto 0 0; z-index: 50; width: var(--sidebar);
  display: flex; flex-direction: column; overflow: hidden;
  background:
    radial-gradient(circle at 15% 0, rgba(19,163,154,.16), transparent 30%),
    linear-gradient(165deg, var(--ink-850), var(--ink-950));
  color: var(--steel-300);
  border-right: 1px solid rgba(255,255,255,.07);
  transition: transform .28s var(--ease);
}
.sidebar::after {
  content: ''; position: absolute; inset: 0; pointer-events: none; opacity: .11;
  background-image:
    linear-gradient(rgba(255,255,255,.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.12) 1px, transparent 1px);
  background-size: 26px 26px;
  mask-image: linear-gradient(to bottom, black, transparent 44%);
}
.sidebar-head { position: relative; z-index: 1; padding: 22px 20px 18px; border-bottom: 1px solid rgba(255,255,255,.07); }
.sidebar-nav { position: relative; z-index: 1; flex: 1; overflow-y: auto; padding: 18px 12px; }
.nav-label { margin: 17px 10px 8px; color: #647a84; font: 600 10px/1 var(--font-mono); letter-spacing: .14em; text-transform: uppercase; }
.nav-label:first-child { margin-top: 2px; }
.nav-item {
  display: flex; align-items: center; gap: 11px; min-height: 42px; margin: 3px 0;
  padding: 0 12px; border-radius: 8px; color: #9fb0b7; text-decoration: none;
  font-weight: 500; transition: .16s var(--ease);
}
.nav-item svg { color: #6f8891; }
.nav-item:hover { color: #f2fbfa; background: rgba(255,255,255,.055); }
.nav-item.active {
  color: #effffb; background: linear-gradient(90deg, rgba(19,163,154,.22), rgba(19,163,154,.09));
  box-shadow: inset 3px 0 var(--teal-500);
}
.nav-item.active svg { color: #51d4ca; }
.nav-item .nav-badge {
  margin-left: auto; min-width: 22px; padding: 2px 7px; color: var(--amber-100);
  background: rgba(233,155,33,.16); border: 1px solid rgba(233,155,33,.24);
  border-radius: 99px; text-align: center; font: 600 10px var(--font-mono);
}
.sidebar-foot { position: relative; z-index: 1; margin: 12px; padding: 13px; border: 1px solid rgba(255,255,255,.08); border-radius: 10px; background: rgba(255,255,255,.035); }
.system-line { display: flex; align-items: center; gap: 8px; color: #aab9bf; font-size: 12px; }
.pulse-dot { width: 8px; height: 8px; border-radius: 50%; background: #43c383; box-shadow: 0 0 0 5px rgba(67,195,131,.1); }
.sidebar-foot small { display: block; margin-top: 5px; color: #617780; font: 10px var(--font-mono); }

.main { min-width: 0; min-height: 100vh; margin-left: var(--sidebar); overflow-x: hidden; }
.topbar {
  position: sticky; top: 0; z-index: 40; height: 70px; display: flex; align-items: center;
  justify-content: space-between; padding: 0 28px; background: rgba(255,255,255,.9);
  border-bottom: 1px solid var(--steel-200); backdrop-filter: blur(16px);
}
.topbar-left, .topbar-actions { display: flex; align-items: center; gap: 10px; }
.mobile-brand { display: none; }
.menu-button { display: none !important; }
.breadcrumbs { display: flex; align-items: center; gap: 8px; color: var(--steel-500); font-size: 13px; }
.breadcrumbs b { color: var(--ink-900); }
.divider { width: 1px; height: 22px; margin: 0 3px; background: var(--steel-200); }
.icon-button {
  position: relative; width: 39px; height: 39px; display: inline-flex; align-items: center;
  justify-content: center; padding: 0; color: var(--steel-600); background: var(--surface);
  border: 1px solid var(--steel-200); border-radius: 9px; cursor: pointer;
}
.icon-button:hover { color: var(--teal-700); border-color: #aad2ce; background: var(--teal-50); }
.notification-dot { position: absolute; top: 7px; right: 7px; width: 7px; height: 7px; border-radius: 50%; background: var(--amber-500); border: 2px solid white; }
.tenant-select {
  height: 39px; max-width: 190px; padding: 0 34px 0 12px; color: var(--ink-900);
  background: white; border: 1px solid var(--steel-200); border-radius: 9px; font-weight: 600;
}
.avatar-button {
  display: flex; align-items: center; gap: 9px; padding: 4px 8px 4px 4px;
  color: var(--ink-900); background: transparent; border: 0; border-radius: 9px; cursor: pointer;
}
.avatar { width: 32px; height: 32px; display: grid; place-items: center; color: #e9fffb; background: linear-gradient(145deg, var(--teal-700), var(--ink-800)); border-radius: 8px; font-weight: 700; font-size: 12px; }
.avatar-copy { text-align: left; line-height: 1.2; }
.avatar-copy strong { display: block; font-size: 12px; }
.avatar-copy small { color: var(--steel-500); font-size: 10px; }
.content { max-width: 1540px; margin: 0 auto; padding: 30px 30px 48px; }
.page-heading { display: flex; justify-content: space-between; align-items: flex-end; gap: 18px; margin-bottom: 24px; }
.page-heading h1 { margin: 0; color: var(--ink-950); font-size: clamp(25px, 2.5vw, 34px); line-height: 1.15; letter-spacing: -.045em; }
.page-heading p:not(.eyebrow) { max-width: 660px; margin: 7px 0 0; color: var(--steel-600); }
.page-actions { display: flex; flex-wrap: wrap; gap: 9px; }

/* Controls */
.button {
  min-height: 40px; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 0 15px; border: 1px solid transparent; border-radius: 9px; cursor: pointer;
  text-decoration: none; font-weight: 600; transition: transform .15s var(--ease), box-shadow .15s var(--ease), background .15s;
}
.button:hover { transform: translateY(-1px); }
.button-primary { color: white; background: linear-gradient(145deg, var(--teal-600), var(--teal-700)); box-shadow: 0 8px 18px rgba(8,115,110,.18); }
.button-primary:hover { box-shadow: 0 10px 25px rgba(8,115,110,.26); }
.button-amber { color: #251707; background: linear-gradient(145deg, #ffb84d, var(--amber-500)); box-shadow: 0 8px 20px rgba(196,122,10,.18); }
.button-secondary { color: var(--ink-900); background: white; border-color: var(--steel-200); }
.button-secondary:hover { border-color: var(--steel-300); background: var(--steel-50); }
.button-danger { color: var(--red-700); background: white; border-color: #edc6c2; }
.button-sm { min-height: 34px; padding: 0 11px; border-radius: 7px; font-size: 12px; }
.button:disabled { opacity: .55; cursor: not-allowed; transform: none; }
.field { display: grid; gap: 7px; }
.field label { color: var(--ink-800); font-weight: 600; font-size: 12px; }
.input, .select {
  width: 100%; height: 42px; padding: 0 12px; color: var(--ink-900);
  background: white; border: 1px solid var(--steel-200); border-radius: 8px;
  transition: border .15s, box-shadow .15s;
}
.input::placeholder { color: var(--steel-400); }
.input:focus, .select:focus { outline: 0; border-color: var(--teal-500); box-shadow: 0 0 0 3px rgba(19,163,154,.11); }
.search-field { position: relative; }
.search-field svg { position: absolute; left: 12px; top: 12px; color: var(--steel-400); }
.search-field .input { padding-left: 39px; }

/* Cards and grids */
.grid { display: grid; gap: 18px; }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.span-2 { grid-column: span 2; }
.card {
  position: relative; min-width: 0; background: var(--surface); border: 1px solid var(--steel-200);
  border-radius: var(--radius-md); box-shadow: var(--shadow-xs); overflow: hidden;
}
.card-head { min-height: 58px; display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 14px 18px; border-bottom: 1px solid var(--steel-150); }
.card-head h2, .card-head h3 { margin: 0; color: var(--ink-900); font-size: 15px; letter-spacing: -.02em; }
.card-body { padding: 18px; }
.card-link { color: var(--teal-700); text-decoration: none; font-size: 12px; font-weight: 700; }
.card-link:hover { text-decoration: underline; }
.metric-card { min-height: 144px; padding: 18px; }
.metric-card::before { content: ''; position: absolute; inset: 0 auto 0 0; width: 3px; background: var(--teal-500); }
.metric-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.metric-icon { width: 38px; height: 38px; display: grid; place-items: center; color: var(--teal-700); background: var(--teal-50); border: 1px solid var(--teal-100); border-radius: 9px; }
.metric-label { color: var(--steel-500); font: 600 10px var(--font-mono); letter-spacing: .1em; text-transform: uppercase; }
.metric-value { margin-top: 13px; font-size: 28px; font-weight: 700; line-height: 1; letter-spacing: -.05em; }
.metric-foot { display: flex; align-items: center; gap: 5px; margin-top: 9px; color: var(--steel-500); font-size: 11px; }
.trend-up { color: var(--green-700); font-weight: 700; }
.trend-warn { color: var(--amber-700); font-weight: 700; }

/* Status */
.status {
  display: inline-flex; align-items: center; gap: 6px; min-height: 25px; padding: 3px 9px;
  border: 1px solid transparent; border-radius: 99px; font: 600 10px var(--font-mono); text-transform: uppercase;
}
.status::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.status-done, .status-active, .status-paid { color: var(--green-700); background: var(--green-100); border-color: #bfe7d1; }
.status-processing { color: var(--blue-700); background: var(--blue-100); border-color: #bdd9eb; }
.status-pending, .status-draft { color: var(--steel-600); background: var(--steel-100); border-color: var(--steel-200); }
.status-warning, .status-validation_fail { color: var(--amber-700); background: var(--amber-100); border-color: #f0d599; }
.status-failed, .status-suspended { color: var(--red-700); background: var(--red-100); border-color: #efc1bd; }

/* Tables */
.table-wrap { overflow: auto; }
.data-table { width: 100%; border-collapse: collapse; white-space: nowrap; }
.data-table th {
  height: 42px; padding: 0 16px; color: var(--steel-500); background: var(--steel-50);
  border-bottom: 1px solid var(--steel-200); text-align: left; font: 600 10px var(--font-mono);
  letter-spacing: .08em; text-transform: uppercase;
}
.data-table td { height: 61px; padding: 0 16px; border-bottom: 1px solid var(--steel-150); vertical-align: middle; }
.data-table tr:last-child td { border-bottom: 0; }
.data-table tbody tr:hover { background: #fbfdfd; }
.job-link { color: var(--ink-900); text-decoration: none; font-weight: 700; }
.job-link:hover { color: var(--teal-700); }
.table-sub { display: block; margin-top: 2px; color: var(--steel-500); font-size: 11px; }
.table-action { color: var(--steel-500); }
.table-action:hover { color: var(--teal-700); }
.table-check { width: 16px; height: 16px; accent-color: var(--teal-600); }
.pagination { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 13px 16px; background: var(--steel-50); border-top: 1px solid var(--steel-150); color: var(--steel-500); font-size: 12px; }
.pages { display: flex; gap: 4px; }
.page { min-width: 30px; height: 30px; display: grid; place-items: center; border: 1px solid var(--steel-200); border-radius: 6px; background: white; text-decoration: none; }
.page.current { color: white; background: var(--teal-700); border-color: var(--teal-700); }

/* Filter toolbar */
.filter-card { padding: 15px; margin-bottom: 16px; }
.filter-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.filter-row .search-field { flex: 1 1 260px; }
.filter-row .select { width: auto; min-width: 140px; }
.chips { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 13px; padding-top: 13px; border-top: 1px solid var(--steel-150); }
.chip {
  min-height: 30px; padding: 4px 10px; color: var(--steel-600); background: white;
  border: 1px solid var(--steel-200); border-radius: 99px; cursor: pointer; font-size: 11px; font-weight: 600;
}
.chip.active { color: var(--teal-700); background: var(--teal-50); border-color: #9bd3cd; box-shadow: inset 0 0 0 1px rgba(19,163,154,.08); }
.bulk-bar { display: none; align-items: center; gap: 10px; margin-bottom: 12px; padding: 10px 13px; background: var(--ink-850); border-radius: 9px; color: white; box-shadow: var(--shadow-sm); }
.bulk-bar.visible { display: flex; }
.bulk-bar .selected-count { margin-right: auto; color: var(--steel-300); font-size: 12px; }

/* Charts and activity */
.chart {
  height: 224px; display: flex; align-items: flex-end; gap: 8px; padding: 22px 3px 26px;
  border-bottom: 1px solid var(--steel-200);
  background-image: linear-gradient(to bottom, transparent calc(25% - 1px), var(--steel-150) 25%, transparent calc(25% + 1px));
  background-size: 100% 25%;
}
.bar-group { flex: 1; height: 100%; display: flex; align-items: flex-end; gap: 3px; position: relative; }
.bar { flex: 1; min-width: 5px; border-radius: 3px 3px 0 0; background: linear-gradient(to top, var(--teal-700), var(--teal-500)); }
.bar.alt { background: var(--steel-300); }
.bar-group label { position: absolute; left: 50%; bottom: -22px; transform: translateX(-50%); color: var(--steel-500); font: 9px var(--font-mono); }
.chart-legend { display: flex; gap: 16px; margin-top: 14px; color: var(--steel-500); font-size: 11px; }
.legend-key { display: inline-flex; align-items: center; gap: 6px; }
.legend-key::before { content: ''; width: 9px; height: 9px; background: var(--teal-600); border-radius: 2px; }
.legend-key.secondary::before { background: var(--steel-300); }
.activity-list { list-style: none; margin: 0; padding: 0; }
.activity-item { position: relative; display: grid; grid-template-columns: 34px 1fr auto; gap: 10px; padding: 13px 0; border-bottom: 1px solid var(--steel-150); }
.activity-item:last-child { border-bottom: 0; }
.activity-icon { width: 32px; height: 32px; display: grid; place-items: center; color: var(--teal-700); background: var(--teal-50); border-radius: 8px; }
.activity-copy strong { display: block; font-size: 12px; }
.activity-copy span, .activity-time { color: var(--steel-500); font-size: 10px; }

/* Job detail */
.job-hero {
  margin-bottom: 16px; padding: 22px; color: white; border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--radius-md);
  background:
    linear-gradient(110deg, rgba(19,163,154,.2), transparent 42%),
    linear-gradient(155deg, var(--ink-800), var(--ink-950));
  box-shadow: var(--shadow-sm); overflow: hidden;
}
.job-hero::after {
  content: ''; position: absolute; top: -80px; right: -30px; width: 330px; height: 260px;
  opacity: .15; transform: rotate(-9deg);
  background-image: linear-gradient(#68c9c1 1px, transparent 1px), linear-gradient(90deg, #68c9c1 1px, transparent 1px);
  background-size: 18px 18px;
}
.job-hero-top { position: relative; z-index: 1; display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.job-hero .eyebrow { color: #78d9d1; }
.job-hero h1 { margin: 0; font: 600 clamp(22px, 2.3vw, 31px) var(--font-mono); letter-spacing: -.04em; }
.job-hero p { margin: 7px 0 0; color: #9eb2ba; }
.hero-metrics { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; margin-top: 22px; }
.hero-metric { padding: 10px 12px; background: rgba(255,255,255,.055); border: 1px solid rgba(255,255,255,.08); border-radius: 8px; }
.hero-metric span { display: block; color: #75909a; font: 9px var(--font-mono); letter-spacing: .1em; text-transform: uppercase; }
.hero-metric strong { display: block; margin-top: 4px; color: #f3fbfa; font-size: 13px; }
.sticky-actions { position: sticky; top: 78px; z-index: 25; display: flex; align-items: center; gap: 8px; margin: 0 0 16px; padding: 10px; background: rgba(242,245,246,.92); border: 1px solid var(--steel-200); border-radius: 11px; backdrop-filter: blur(12px); }
.sticky-actions .section-links { display: flex; gap: 4px; margin-right: auto; overflow: auto; }
.section-link { padding: 7px 9px; color: var(--steel-600); border-radius: 6px; text-decoration: none; white-space: nowrap; font-size: 11px; font-weight: 600; }
.section-link:hover { color: var(--teal-700); background: white; }
.pipeline { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.pipeline-step { position: relative; min-height: 106px; padding: 14px; border: 1px solid var(--steel-200); border-radius: 10px; background: white; }
.pipeline-step::before { content: ''; position: absolute; inset: 0 0 auto; height: 3px; background: var(--steel-300); }
.pipeline-step.pass::before { background: var(--green-500); }
.pipeline-step.active::before { background: var(--blue-700); }
.pipeline-step.warn::before { background: var(--amber-500); }
.step-no { color: var(--steel-400); font: 600 10px var(--font-mono); }
.pipeline-step h3 { margin: 12px 0 4px; font-size: 13px; }
.pipeline-step p { margin: 0; color: var(--steel-500); font-size: 10px; }
.validation-score { display: flex; align-items: center; gap: 18px; }
.score-ring {
  width: 86px; height: 86px; display: grid; place-items: center; flex: 0 0 auto;
  border-radius: 50%; background: conic-gradient(var(--green-500) 0 96%, var(--steel-150) 96%);
}
.score-ring::before { content: '96%'; width: 68px; height: 68px; display: grid; place-items: center; color: var(--ink-900); background: white; border-radius: 50%; font: 700 18px var(--font-mono); }
.validation-stats { flex: 1; }
.stat-row { display: flex; justify-content: space-between; gap: 20px; padding: 8px 0; border-bottom: 1px solid var(--steel-150); font-size: 12px; }
.stat-row:last-child { border-bottom: 0; }
.package-card { min-height: 196px; display: flex; flex-direction: column; padding: 18px; }
.package-card::before { content: ''; position: absolute; inset: 0 0 auto; height: 3px; background: var(--teal-500); }
.package-card.holes::before { background: #3d83b6; }
.package-card.nuts::before { background: var(--amber-500); }
.package-icon { width: 40px; height: 40px; display: grid; place-items: center; color: var(--teal-700); background: var(--teal-50); border-radius: 9px; }
.package-card h3 { margin: 15px 0 5px; font-size: 15px; }
.package-card p { margin: 0 0 16px; color: var(--steel-500); font-size: 11px; }
.package-actions { display: flex; gap: 7px; margin-top: auto; }

/* Admin */
.health-gauge { display: grid; grid-template-columns: 96px 1fr; gap: 18px; align-items: center; }
.gauge {
  width: 92px; height: 92px; display: grid; place-items: center; border-radius: 50%;
  background: conic-gradient(var(--green-500) 0 78%, var(--steel-150) 78%);
}
.gauge::before { content: '78%'; width: 72px; height: 72px; display: grid; place-items: center; background: white; border-radius: 50%; font: 700 17px var(--font-mono); }
.health-bars { display: grid; gap: 12px; }
.health-row { display: grid; grid-template-columns: 62px 1fr 40px; gap: 10px; align-items: center; color: var(--steel-500); font-size: 10px; }
.progress { height: 7px; overflow: hidden; background: var(--steel-150); border-radius: 99px; }
.progress span { display: block; height: 100%; background: var(--teal-600); border-radius: inherit; }
.company-list { display: grid; gap: 9px; }
.company-row { display: grid; grid-template-columns: 36px 1fr auto; gap: 11px; align-items: center; padding: 10px; border: 1px solid var(--steel-150); border-radius: 9px; }
.company-logo { width: 36px; height: 36px; display: grid; place-items: center; color: var(--ink-800); background: var(--steel-100); border-radius: 8px; font-weight: 700; }
.company-row strong { display: block; font-size: 12px; }
.company-row small { color: var(--steel-500); font-size: 10px; }

/* Dialog */
dialog { width: min(620px, calc(100% - 24px)); padding: 0; border: 0; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); }
dialog::backdrop { background: rgba(7,18,24,.68); backdrop-filter: blur(4px); }
.dialog-head { display: flex; align-items: center; justify-content: space-between; padding: 19px 21px; border-bottom: 1px solid var(--steel-150); }
.dialog-head h2 { margin: 0; font-size: 18px; }
.dialog-body { padding: 21px; }
.dropzone {
  min-height: 215px; display: grid; place-items: center; padding: 26px; text-align: center;
  background:
    linear-gradient(var(--teal-50), var(--teal-50)) padding-box,
    repeating-linear-gradient(45deg, var(--teal-500) 0 7px, transparent 7px 14px) border-box;
  border: 1px dashed transparent; border-radius: 13px; cursor: pointer;
}
.dropzone.dragover { background-color: var(--teal-100); transform: scale(.995); }
.dropzone-icon { width: 54px; height: 54px; display: grid; place-items: center; margin: 0 auto 13px; color: var(--teal-700); background: white; border: 1px solid var(--teal-100); border-radius: 13px; box-shadow: var(--shadow-xs); }
.dropzone h3 { margin: 0; font-size: 15px; }
.dropzone p { margin: 5px 0 0; color: var(--steel-500); font-size: 11px; }
.dialog-foot { display: flex; justify-content: flex-end; gap: 8px; padding: 14px 21px; background: var(--steel-50); border-top: 1px solid var(--steel-150); }

/* Login */
.auth-page { min-height: 100vh; display: grid; grid-template-columns: minmax(420px, 44%) 1fr; background: var(--ink-950); }
.auth-panel { position: relative; z-index: 2; display: flex; align-items: center; justify-content: center; padding: 44px; background: white; }
.auth-form { width: min(400px, 100%); }
.auth-form .brand .brand-copy strong { color: var(--ink-900); }
.auth-form .brand .brand-copy span { color: var(--steel-500); }
.auth-title { margin: 46px 0 7px; font-size: 34px; line-height: 1.08; letter-spacing: -.05em; }
.auth-sub { margin: 0 0 28px; color: var(--steel-500); }
.auth-fields { display: grid; gap: 16px; }
.password-wrap { position: relative; }
.password-wrap .input { padding-right: 45px; }
.password-toggle { position: absolute; top: 2px; right: 2px; width: 38px; height: 38px; display: grid; place-items: center; color: var(--steel-500); background: transparent; border: 0; cursor: pointer; }
.auth-options { display: flex; justify-content: space-between; gap: 10px; margin: 15px 0 20px; font-size: 12px; }
.check-label { display: inline-flex; align-items: center; gap: 7px; color: var(--steel-600); }
.check-label input { accent-color: var(--teal-600); }
.auth-options a { color: var(--teal-700); font-weight: 700; text-decoration: none; }
.auth-submit { width: 100%; min-height: 46px; }
.auth-note { display: flex; gap: 9px; margin-top: 24px; padding-top: 20px; color: var(--steel-500); border-top: 1px solid var(--steel-150); font-size: 11px; }
.auth-visual {
  position: relative; overflow: hidden; display: flex; align-items: flex-end; padding: 60px;
  background:
    radial-gradient(circle at 70% 25%, rgba(19,163,154,.22), transparent 30%),
    linear-gradient(145deg, #0f2730, #061015 72%);
}
.auth-visual::before {
  content: ''; position: absolute; inset: 0; opacity: .17;
  background-image: linear-gradient(#78aeb0 1px, transparent 1px), linear-gradient(90deg, #78aeb0 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(to bottom right, black, transparent 80%);
}
.rail-art { position: absolute; top: 18%; left: 13%; width: 76%; height: 38%; transform: perspective(800px) rotateX(57deg) rotateZ(-12deg); border: 2px solid rgba(99,226,215,.42); border-radius: 16px; box-shadow: inset 0 0 60px rgba(19,163,154,.13), 0 0 50px rgba(19,163,154,.1); }
.rail-art::before, .rail-art::after { content: ''; position: absolute; inset: 14% 3%; border: 1px solid rgba(99,226,215,.25); border-radius: 8px; }
.rail-art::after { inset: 34% 8%; box-shadow: 38px 0 0 -7px rgba(233,155,33,.6), 115px 0 0 -7px rgba(99,226,215,.6), 210px 0 0 -7px rgba(99,226,215,.6), 300px 0 0 -7px rgba(233,155,33,.6); }
.visual-copy { position: relative; z-index: 1; max-width: 620px; }
.visual-copy .eyebrow { color: var(--amber-500); }
.visual-copy h2 { margin: 0; color: white; font-size: clamp(30px, 4vw, 54px); line-height: 1.05; letter-spacing: -.055em; }
.visual-copy p { max-width: 530px; margin: 17px 0 0; color: #93aab3; font-size: 15px; }
.trust-row { display: flex; flex-wrap: wrap; gap: 22px; margin-top: 30px; }
.trust-item { display: flex; align-items: center; gap: 8px; color: #b9c9ce; font-size: 11px; }
.trust-item svg { color: #61d5cc; }

/* Gallery */
.gallery-page { min-height: 100vh; color: white; background: linear-gradient(145deg, var(--ink-850), var(--ink-950)); }
.gallery-wrap { max-width: 1240px; margin: 0 auto; padding: 42px 28px 70px; }
.gallery-hero { position: relative; overflow: hidden; padding: 42px; border: 1px solid rgba(255,255,255,.1); border-radius: 24px; background: rgba(255,255,255,.045); }
.gallery-hero::after { content: ''; position: absolute; inset: 0 0 0 50%; opacity: .14; background-image: linear-gradient(#68c9c1 1px, transparent 1px), linear-gradient(90deg, #68c9c1 1px, transparent 1px); background-size: 26px 26px; mask-image: linear-gradient(to left, black, transparent); }
.gallery-hero > * { position: relative; z-index: 1; }
.gallery-hero h1 { max-width: 770px; margin: 34px 0 13px; font-size: clamp(34px, 5vw, 62px); line-height: 1; letter-spacing: -.06em; }
.gallery-hero p { max-width: 640px; color: #9db0b7; font-size: 15px; }
.gallery-tag { display: inline-flex; gap: 8px; align-items: center; margin-top: 18px; padding: 6px 10px; color: var(--amber-100); background: rgba(233,155,33,.12); border: 1px solid rgba(233,155,33,.25); border-radius: 99px; font: 600 10px var(--font-mono); letter-spacing: .07em; text-transform: uppercase; }
.screen-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-top: 24px; }
.screen-card { position: relative; min-height: 230px; overflow: hidden; padding: 25px; color: white; background: linear-gradient(145deg, #142b34, #0b1a20); border: 1px solid rgba(255,255,255,.09); border-radius: 17px; text-decoration: none; transition: .22s var(--ease); }
.screen-card:hover { transform: translateY(-3px); border-color: rgba(83,214,204,.42); box-shadow: 0 24px 50px rgba(0,0,0,.18); }
.screen-card.featured { grid-column: span 2; min-height: 270px; }
.screen-no { color: #526d77; font: 600 11px var(--font-mono); }
.screen-card h2 { margin: 38px 0 6px; font-size: 25px; letter-spacing: -.04em; }
.screen-card p { max-width: 490px; margin: 0; color: #8fa5ad; }
.screen-open { position: absolute; right: 20px; bottom: 20px; width: 42px; height: 42px; display: grid; place-items: center; color: var(--ink-900); background: var(--amber-500); border-radius: 50%; }
.approval-panel { margin-top: 24px; padding: 26px; color: var(--ink-900); background: white; border-radius: 17px; }
.approval-panel h2 { margin: 0 0 14px; font-size: 20px; }
.approval-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 11px; }
.approval-item { padding: 13px; background: var(--steel-50); border: 1px solid var(--steel-150); border-radius: 9px; }
.approval-item strong { display: block; font-size: 12px; }
.approval-item span { color: var(--steel-500); font-size: 10px; }

/* Marketing landing */
.landing-page { background: var(--ink-950); }
.landing-container { width: min(1240px, calc(100% - 48px)); margin: 0 auto; }
.landing-nav {
  position: fixed; inset: 0 0 auto; z-index: 80; height: 72px;
  background: rgba(7,18,24,.82); border-bottom: 1px solid rgba(255,255,255,.08);
  backdrop-filter: blur(18px);
}
.nav-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.landing-links { display: flex; align-items: center; gap: 29px; margin-left: auto; }
.landing-links a, .landing-signin { color: #9bb0b8; text-decoration: none; font-size: 12px; font-weight: 600; }
.landing-links a:hover, .landing-signin:hover { color: white; }
.nav-actions { display: flex; align-items: center; gap: 18px; }

.landing-hero {
  position: relative; min-height: 780px; overflow: hidden; padding-top: 72px;
  color: white; background:
    radial-gradient(circle at 78% 31%, rgba(19,163,154,.18), transparent 28%),
    radial-gradient(circle at 5% 78%, rgba(233,155,33,.07), transparent 26%),
    linear-gradient(145deg, #0d222a, var(--ink-950) 68%);
}
.landing-hero::before {
  content: ''; position: absolute; inset: 72px 0 0; pointer-events: none; opacity: .11;
  background-image: linear-gradient(rgba(126,190,191,.28) 1px, transparent 1px), linear-gradient(90deg, rgba(126,190,191,.28) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(90deg, transparent 5%, black 58%, transparent 95%);
}
.hero-grid { position: relative; z-index: 2; min-height: 680px; display: grid; grid-template-columns: .9fr 1.25fr; align-items: center; gap: 40px; }
.landing-hero-copy { padding: 58px 0 42px; }
.landing-kicker {
  display: inline-flex; align-items: center; gap: 8px; padding: 7px 11px;
  color: #8fdbd5; background: rgba(19,163,154,.09); border: 1px solid rgba(91,205,196,.18);
  border-radius: 99px; font: 600 10px var(--font-mono); letter-spacing: .08em; text-transform: uppercase;
}
.landing-kicker svg { width: 14px; height: 14px; }
.landing-hero h1 { margin: 25px 0 20px; font-size: clamp(40px, 5vw, 68px); line-height: 1.08; letter-spacing: -.045em; }
.landing-hero h1 .hero-line { display: block; }
.landing-hero h1 em { color: #61d5cc; font-style: normal; }
.landing-hero-copy > p { max-width: 600px; margin: 0; color: #a0b3ba; font-size: 16px; line-height: 1.75; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 24px; margin-top: 31px; }
.landing-cta { min-height: 49px; padding: 0 19px; }
.landing-text-link { display: inline-flex; align-items: center; gap: 9px; color: #d5e0e3; text-decoration: none; font-size: 12px; font-weight: 700; }
.landing-text-link span { width: 34px; height: 34px; display: grid; place-items: center; color: var(--teal-500); border: 1px solid rgba(255,255,255,.13); border-radius: 50%; }
.landing-text-link svg { width: 14px; }
.hero-proof { display: flex; gap: 0; margin-top: 47px; }
.hero-proof div { min-width: 128px; padding: 0 22px; border-left: 1px solid rgba(255,255,255,.12); }
.hero-proof div:first-child { padding-left: 0; border-left: 0; }
.hero-proof strong { display: block; color: white; font: 600 18px var(--font-mono); }
.hero-proof span { display: block; margin-top: 3px; color: #6d858e; font-size: 10px; }

.model-stage { position: relative; height: 610px; overflow: hidden; border-left: 1px solid rgba(255,255,255,.06); }
.model-grid { position: absolute; inset: 5% -12% 4% 8%; opacity: .18; transform: perspective(900px) rotateX(66deg) rotateZ(-10deg); background-image: linear-gradient(#66b6b5 1px, transparent 1px), linear-gradient(90deg, #66b6b5 1px, transparent 1px); background-size: 34px 34px; mask-image: radial-gradient(ellipse, black, transparent 69%); }
.model-orbit { position: absolute; border: 1px solid rgba(105,215,207,.18); border-radius: 50%; transform: rotate(-14deg); }
.orbit-one { width: 520px; height: 260px; top: 170px; left: 90px; }
.orbit-two { width: 620px; height: 330px; top: 130px; left: 38px; border-color: rgba(233,155,33,.12); }
.hero-rail-render, .stock-photo--hero {
  position: absolute; z-index: 2; width: 94%; max-width: none; top: 96px; left: 3%;
  height: 360px; object-fit: cover; object-position: center;
  border: 1px solid rgba(110,204,199,.22); border-radius: 16px;
  box-shadow: 0 28px 70px rgba(0,0,0,.35), 0 0 0 1px rgba(255,255,255,.04);
  opacity: 1; transform: rotate(-1deg);
}
.stock-photo {
  display: block; width: 100%; object-fit: cover;
  border: 1px solid rgba(110,204,199,.18); border-radius: 12px;
  box-shadow: 0 18px 40px rgba(0,0,0,.28);
}
.stock-photo--feature {
  position: absolute; z-index: 2; inset: 8% 4% 8% 4%; width: auto; height: auto;
  min-height: 78%; border-radius: 14px;
}
.stock-photo--mini {
  position: absolute; z-index: 2; inset: 8% 6% 8% 6%; width: auto; height: auto;
  min-height: 84%; border-radius: 12px;
}
.stock-photo--card {
  width: 100%; height: 92px; margin-bottom: 10px; object-position: center;
  border-radius: 10px;
}
.stock-photo--proof {
  width: 100%; height: 100%; padding: 0; object-fit: cover; border-radius: 0;
  border: 0; box-shadow: none;
}
.stock-photo--preview {
  width: 100%; height: 170px; object-fit: cover; border-radius: 10px;
}
.feature-model .stock-photo--feature, .mini-model .stock-photo--mini { mix-blend-mode: normal; filter: none; }
.platform-proof-card .stock-photo--proof { min-height: 180px; }
.platform-card .stock-photo--card { filter: none; mix-blend-mode: normal; }

.cad-render {
  display: block; width: 100%; height: 100%; object-fit: contain;
  filter: drop-shadow(0 18px 40px rgba(19,163,154,.22));
}
.cad-render--hero { width: 108%; max-width: none; height: auto; }
.cad-render--feature { position: absolute; z-index: 2; width: 96%; top: 8%; left: 2%; height: auto; }
.cad-render--mini { position: absolute; z-index: 2; width: 118%; max-width: none; top: 4%; left: -9%; height: auto; }
.cad-render--card { width: 100%; height: 92px; object-fit: contain; margin-bottom: 10px; filter: drop-shadow(0 8px 18px rgba(19,163,154,.18)); }
.cad-render--proof { width: 100%; height: 100%; object-fit: contain; padding: 18px; filter: drop-shadow(0 12px 28px rgba(19,163,154,.2)); }
.model-render {
  object-fit: contain;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
.hero-rail-render.model-render {
  width: 108%; max-width: none; top: 88px; left: -2%; height: auto;
  filter: drop-shadow(0 28px 70px rgba(19,163,154,.28)) drop-shadow(0 0 42px rgba(83,214,204,.14));
}
.platform-proof-card .model-render.cad-render--proof {
  padding: 12px;
  background: radial-gradient(circle, rgba(19,163,154,.14), transparent 62%);
}
.compare-render {
  width: 100%; height: 170px; object-fit: contain; padding: 12px;
  background: radial-gradient(circle, rgba(19,163,154,.12), transparent 65%);
  filter: drop-shadow(0 12px 28px rgba(19,163,154,.18));
}
.compare-preview-rail .compare-render { object-fit: contain; filter: drop-shadow(0 16px 34px rgba(19,163,154,.22)); }

.premium-render {
  display: block;
  object-fit: cover;
  border: 1px solid rgba(110,204,199,.16);
  border-radius: 14px;
  box-shadow: 0 28px 70px rgba(0,0,0,.42), 0 0 0 1px rgba(255,255,255,.03);
  filter: saturate(1.05) contrast(1.04);
}
.premium-render--hero {
  position: absolute; z-index: 2; width: 100%; max-width: none; top: 84px; left: 0;
  height: 390px; border-radius: 16px; transform: none;
}
.premium-render--feature {
  position: absolute; z-index: 2; inset: 0; width: 100%; height: 100%;
  border-radius: 0 0 0 0; border: 0; box-shadow: none; filter: none;
}
.premium-render--mini {
  position: absolute; z-index: 2; inset: 0; width: 100%; height: 100%;
  border: 0; border-radius: 0; box-shadow: none; filter: none;
}
.premium-render--card {
  width: 100%; height: 92px; margin-bottom: 10px; object-position: center 55%;
  border-radius: 10px;
}
.premium-render--proof {
  width: 100%; height: 100%; min-height: 180px; object-fit: cover; object-position: center;
  border: 0; border-radius: 0; box-shadow: none; filter: none;
}
.premium-render--preview {
  width: 100%; height: 170px; object-fit: cover; object-position: center;
  border-radius: 10px;
}
.feature-model .premium-render--feature,
.mini-model .premium-render--mini,
.platform-proof-card .premium-render--proof {
  mix-blend-mode: normal;
}

.real-render {
  display: block;
  border: 1px solid rgba(110,204,199,.2);
  border-radius: 12px;
  box-shadow: 0 22px 56px rgba(0,0,0,.32), 0 0 0 1px rgba(255,255,255,.04);
}
.real-render--3d {
  object-fit: contain;
  background: #e8eaed;
}
.real-render--drawing {
  object-fit: cover;
  object-position: center top;
  background: #fff;
  border-color: rgba(255,255,255,.14);
}
.real-render--hero {
  position: absolute; z-index: 2; width: 100%; max-width: none; top: 84px; left: 0;
  height: 390px; border-radius: 16px; transform: none; object-fit: contain;
}
.real-render--feature {
  position: absolute; z-index: 2; inset: 0; width: 100%; height: 100%;
  border: 0; border-radius: 0; box-shadow: none; filter: none;
}
.real-render--mini {
  position: absolute; z-index: 2; inset: 0; width: 100%; height: 100%;
  border: 0; border-radius: 0; box-shadow: none; filter: none;
}
.real-render--card {
  width: 100%; height: 92px; margin-bottom: 10px; object-position: center 55%;
  border-radius: 10px;
}
.real-render--proof {
  width: 100%; height: 100%; min-height: 180px; object-fit: contain; object-position: center;
  border: 0; border-radius: 0; box-shadow: none; filter: none; padding: 10px;
}
.real-render--preview {
  width: 100%; height: 170px; object-fit: contain; object-position: center;
  border-radius: 10px;
}
.feature-model .real-render--feature,
.mini-model .real-render--mini,
.platform-proof-card .real-render--proof {
  mix-blend-mode: normal;
}
.hero-rail-render.real-render--3d {
  filter: drop-shadow(0 24px 60px rgba(0,0,0,.34));
}

.photo-render {
  display: block;
  object-fit: cover;
  border: 1px solid rgba(110,204,199,.18);
  border-radius: 14px;
  box-shadow: 0 28px 70px rgba(0,0,0,.42), 0 0 0 1px rgba(255,255,255,.03);
}
.photo-render--hero {
  position: absolute; z-index: 2; width: 100%; max-width: none; top: 84px; left: 0;
  height: 390px; border-radius: 16px; transform: none; object-position: center 45%;
}
.photo-render--feature {
  position: absolute; z-index: 2; inset: 0; width: 100%; height: 100%;
  border: 0; border-radius: 0; box-shadow: none; object-position: center 40%;
}
.photo-render--mini {
  position: absolute; z-index: 2; inset: 0; width: 100%; height: 100%;
  border: 0; border-radius: 0; box-shadow: none; object-position: center;
}
.photo-render--card {
  width: 100%; height: 92px; margin-bottom: 10px; object-position: center 40%;
  border-radius: 10px;
}
.photo-render--proof {
  width: 100%; height: 100%; min-height: 180px; object-fit: cover; object-position: center;
  border: 0; border-radius: 0; box-shadow: none;
}
.photo-render--preview {
  width: 100%; height: 170px; object-fit: cover; object-position: center 40%;
  border-radius: 10px;
}
.feature-model .photo-render--feature,
.mini-model .photo-render--mini,
.platform-proof-card .photo-render--proof {
  mix-blend-mode: normal;
}
.hero-rail-render.photo-render {
  filter: none;
}

.model-label {
  position: absolute; z-index: 4; min-width: 150px; display: grid; grid-template-columns: 28px 1fr;
  column-gap: 8px; padding: 10px 12px; color: #d9e7ea; background: rgba(10,29,36,.84);
  border: 1px solid rgba(110,204,199,.18); border-radius: 9px; box-shadow: 0 14px 34px rgba(0,0,0,.22); backdrop-filter: blur(12px);
}
.model-label svg { grid-row: span 2; align-self: center; color: var(--teal-500); }
.model-label b { font-size: 10px; }
.model-label small { color: #718b94; font: 9px var(--font-mono); }
.label-input { top: 105px; left: 55px; }
.label-engine { top: 225px; right: 9px; }
.label-verified { right: 34px; bottom: 106px; border-color: rgba(67,195,131,.28); }
.label-verified svg { color: #43c383; }
.model-caption {
  position: absolute; z-index: 4; left: 60px; bottom: 54px; display: flex; align-items: center; gap: 11px;
  padding: 10px 14px; color: white; background: rgba(8,23,29,.7); border: 1px solid rgba(255,255,255,.08); border-radius: 9px; backdrop-filter: blur(10px);
}
.model-caption b, .model-caption small { display: block; }
.model-caption b { font-size: 10px; }
.model-caption small { margin-top: 2px; color: #718991; font: 9px var(--font-mono); }
.hero-ruler {
  position: absolute; z-index: 3; right: 0; bottom: 0; left: 0; height: 48px; display: flex; align-items: flex-end; justify-content: space-between;
  padding: 0 4% 11px; color: #526c75; border-top: 1px solid rgba(255,255,255,.08); font: 8px var(--font-mono);
  background-image: repeating-linear-gradient(90deg, rgba(255,255,255,.16) 0 1px, transparent 1px 16px);
  background-size: 100% 9px; background-repeat: no-repeat;
}
.proof-strip { color: white; background: #0b1c23; border-top: 1px solid rgba(255,255,255,.06); border-bottom: 1px solid rgba(255,255,255,.06); }
.proof-strip-inner { min-height: 92px; display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.proof-strip p { margin: 0; color: #778f98; font-size: 11px; }
.proof-points { display: flex; align-items: center; gap: 28px; }
.proof-points span { display: inline-flex; align-items: center; gap: 8px; color: #aabcc2; font-size: 10px; font-weight: 600; }
.proof-points svg { width: 15px; color: var(--teal-500); }

.landing-section { padding: 112px 0; }
.landing-section.light { color: var(--ink-900); background: #f4f7f7; }
.landing-section.dark { color: white; background: linear-gradient(155deg, #102832, #08171d 70%); }
.landing-section-head { display: grid; grid-template-columns: 1.2fr .8fr; align-items: end; gap: 80px; margin-bottom: 48px; }
.landing-section-head h2, .validation-copy h2 { max-width: 720px; margin: 0; font-size: clamp(34px, 4.5vw, 54px); line-height: 1.05; letter-spacing: -.06em; }
.landing-section-head > p { margin: 0; color: var(--steel-600); font-size: 16px; line-height: 1.75; }
.landing-section-head.inverted > p { color: #8da2aa; }
.landing-section-head.inverted .eyebrow, .dark .eyebrow { color: #59ccc3; }
.workflow-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 13px; }
.workflow-card { position: relative; min-height: 320px; padding: 24px; background: white; border: 1px solid var(--steel-200); border-radius: 13px; box-shadow: var(--shadow-xs); }
.workflow-card::after { content: ''; position: absolute; top: 40px; right: -14px; z-index: 2; width: 14px; height: 1px; background: var(--steel-300); }
.workflow-card:last-child::after { display: none; }
.workflow-number { color: var(--steel-400); font: 600 12px var(--font-mono); }
.workflow-icon { width: 45px; height: 45px; display: grid; place-items: center; margin-top: 27px; color: var(--teal-700); background: var(--teal-50); border: 1px solid var(--teal-100); border-radius: 11px; }
.workflow-card h3 { margin: 22px 0 10px; font-size: 18px; line-height: 1.3; }
.workflow-card p { margin: 0; color: var(--steel-500); font-size: 15px; line-height: 1.65; }
.workflow-meta { position: absolute; right: 22px; bottom: 19px; left: 22px; padding-top: 12px; color: var(--steel-400); border-top: 1px solid var(--steel-150); font-size: 11px; letter-spacing: .02em; }

.feature-showcase { min-height: 520px; display: grid; grid-template-columns: .72fr 1.28fr; overflow: hidden; border: 1px solid rgba(255,255,255,.09); border-radius: 18px; background: rgba(255,255,255,.035); }
.feature-copy { padding: 50px; }
.feature-index { color: #58727c; font-size: 9px; }
.feature-icon { width: 48px; height: 48px; display: grid; place-items: center; margin-top: 47px; color: var(--teal-500); background: rgba(19,163,154,.1); border: 1px solid rgba(19,163,154,.2); border-radius: 11px; }
.feature-copy h3, .feature-mini h3 { margin: 22px 0 10px; color: white; font-size: 27px; letter-spacing: -.045em; }
.feature-copy > p { margin: 0; color: #8da2aa; line-height: 1.7; }
.feature-list { display: grid; gap: 9px; margin: 25px 0; padding: 0; list-style: none; color: #b2c2c7; font-size: 11px; }
.feature-list li { display: flex; align-items: center; gap: 8px; }
.feature-list svg { width: 14px; color: var(--teal-500); }
.feature-copy > a { display: inline-flex; align-items: center; gap: 7px; color: #66d6cd; text-decoration: none; font-size: 11px; font-weight: 700; }
.feature-model, .mini-model { position: relative; overflow: hidden; background: radial-gradient(circle, rgba(19,163,154,.15), transparent 56%); }
.feature-model::before, .mini-model::before { content: ''; position: absolute; inset: 0; opacity: .16; background-image: linear-gradient(#67aaa8 1px, transparent 1px), linear-gradient(90deg, #67aaa8 1px, transparent 1px); background-size: 28px 28px; mask-image: radial-gradient(circle, black, transparent 72%); }
.feature-model img, .feature-model .cad-render--feature { position: absolute; z-index: 2; width: 96%; top: 8%; left: 2%; filter: drop-shadow(0 16px 36px rgba(19,163,154,.2)); mix-blend-mode: normal; }
.model-chip { position: absolute; z-index: 4; top: 22px; right: 22px; display: inline-flex; align-items: center; gap: 7px; padding: 7px 10px; color: #83dcd5; background: rgba(5,20,26,.78); border: 1px solid rgba(100,211,203,.2); border-radius: 99px; font: 600 9px var(--font-mono); }
.model-chip svg { width: 14px; }
.model-chip.amber { color: var(--amber-100); border-color: rgba(233,155,33,.24); }
.feature-pair { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-top: 16px; }
.feature-mini { overflow: hidden; display: grid; grid-template-columns: 1.04fr .96fr; min-height: 310px; border: 1px solid rgba(255,255,255,.09); border-radius: 15px; background: rgba(255,255,255,.035); }
.feature-mini > div:last-child { padding: 34px 30px; }
.feature-mini h3 { margin-top: 32px; font-size: 21px; }
.feature-mini p { margin: 0; color: #8399a1; font-size: 11px; line-height: 1.7; }
.mini-model img, .mini-model .cad-render--mini { position: absolute; z-index: 2; width: 118%; max-width: none; top: 4%; left: -9%; filter: drop-shadow(0 14px 30px rgba(19,163,154,.18)); mix-blend-mode: normal; }
.nuts-model img, .nuts-model .cad-render--mini { filter: drop-shadow(0 14px 30px rgba(233,155,33,.18)); }

.validation-section { color: var(--ink-900); background: white; }
.validation-grid { display: grid; grid-template-columns: 1fr .82fr; align-items: center; gap: 95px; }
.validation-copy > p:not(.eyebrow) { max-width: 660px; color: var(--steel-600); font-size: 15px; line-height: 1.75; }
.validation-levels { display: grid; gap: 12px; margin-top: 32px; }
.validation-levels > div { display: grid; grid-template-columns: 48px 1fr 24px; align-items: center; gap: 14px; padding: 14px; border: 1px solid var(--steel-150); border-radius: 9px; }
.validation-levels > div > span { width: 44px; height: 44px; display: grid; place-items: center; color: var(--teal-700); background: var(--teal-50); border-radius: 8px; font: 700 13px var(--font-mono); }
.validation-levels p { margin: 0; }
.validation-levels b, .validation-levels small { display: block; }
.validation-levels b { font-size: 15px; }
.validation-levels small { margin-top: 3px; color: var(--steel-500); font-size: 13px; line-height: 1.45; }
.validation-levels svg { color: var(--green-500); }
.validation-console { overflow: hidden; padding: 22px; color: white; background: linear-gradient(145deg, #112a33, #07161c); border: 1px solid #29434d; border-radius: 16px; box-shadow: 0 28px 60px rgba(7,18,24,.18); }
.console-top { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding-bottom: 17px; color: #79919a; border-bottom: 1px solid rgba(255,255,255,.08); font: 12px var(--font-mono); }
.console-top > span { display: flex; align-items: center; gap: 7px; }
.console-live { color: #71d5a2 !important; }
.console-score { padding: 32px 0; text-align: center; }
.console-score span { display: block; color: #63d3ca; font: 600 68px/.9 var(--font-mono); letter-spacing: -.08em; }
.console-score small { color: #718891; font: 12px var(--font-mono); }
.console-rail { display: grid; grid-template-columns: 1fr auto; gap: 8px; margin: 14px 0; color: #8299a1; font: 12px var(--font-mono); }
.console-rail b { color: #d7e5e8; }
.console-rail div { grid-column: span 2; height: 4px; overflow: hidden; background: #203941; border-radius: 99px; }
.console-rail i { display: block; height: 100%; background: var(--teal-500); }
.console-tolerance { display: flex; justify-content: space-between; margin-top: 23px; padding: 14px 0; color: #78909a; border-top: 1px solid rgba(255,255,255,.08); font: 12px var(--font-mono); }
.console-tolerance b { color: var(--amber-500); }
.console-result { display: flex; align-items: center; gap: 11px; padding: 12px; color: #80ddb0; background: rgba(43,149,96,.1); border: 1px solid rgba(67,195,131,.17); border-radius: 9px; }
.console-result b, .console-result small { display: block; }
.console-result b { font-size: 14px; }
.console-result small { margin-top: 2px; color: #67877a; font: 11px var(--font-mono); }

.product-section { background: #f2f5f6; }
.product-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.product-cards > a { min-height: 285px; display: flex; flex-direction: column; padding: 22px; color: var(--ink-900); background: white; border: 1px solid var(--steel-200); border-radius: 12px; text-decoration: none; transition: .2s var(--ease); }
.product-cards > a:hover { transform: translateY(-4px); border-color: #a6d5d1; box-shadow: var(--shadow-sm); }
.product-cards > a > span { width: 43px; height: 43px; display: grid; place-items: center; color: var(--teal-700); background: var(--teal-50); border-radius: 10px; }
.product-cards small { margin-top: 34px; color: var(--steel-400); font: 600 9px var(--font-mono); text-transform: uppercase; letter-spacing: .1em; }
.product-cards h3 { margin: 8px 0; font-size: 17px; }
.product-cards p { margin: 0; color: var(--steel-500); font-size: 11px; }
.product-cards b { display: inline-flex; align-items: center; gap: 6px; margin-top: auto; color: var(--teal-700); font-size: 10px; }
.product-cards b svg { width: 14px; }

.landing-cta-section { padding: 90px 0; color: white; background: #09171d; }
.landing-cta-panel { position: relative; overflow: hidden; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 50px; padding: 52px; background: linear-gradient(135deg, #13333d, #0b2028); border: 1px solid rgba(255,255,255,.09); border-radius: 18px; }
.landing-cta-panel::after { content: ''; position: absolute; inset: 0 0 0 55%; opacity: .14; background-image: linear-gradient(#5badaa 1px, transparent 1px), linear-gradient(90deg, #5badaa 1px, transparent 1px); background-size: 25px 25px; mask-image: linear-gradient(to right, transparent, black); }
.landing-cta-panel > * { position: relative; z-index: 1; }
.landing-cta-panel h2 { margin: 0; font-size: clamp(31px, 4vw, 47px); letter-spacing: -.06em; }
.landing-cta-panel p:not(.eyebrow) { max-width: 690px; margin: 11px 0 0; color: #8ea3aa; }
.landing-cta-panel > div:last-child { display: grid; gap: 12px; text-align: center; }
.landing-cta-panel > div:last-child > a:last-child { color: #8298a0; font-size: 10px; }
.landing-footer { color: white; background: var(--ink-950); border-top: 1px solid rgba(255,255,255,.07); }
.footer-inner { min-height: 112px; display: flex; align-items: center; justify-content: space-between; gap: 25px; }
.footer-inner p { color: #7b929a; font-size: 11px; }
.footer-inner > span { color: #4f6871; font-size: 8px; }

/* Platform landing variant */
.variant-banner { margin-top: 72px; color: #9bb0b8; background: rgba(19,163,154,.08); border-bottom: 1px solid rgba(91,205,196,.14); }
.variant-banner-inner { min-height: 42px; display: flex; align-items: center; justify-content: space-between; gap: 16px; font-size: 11px; }
.variant-banner-inner > span { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; }
.variant-banner-inner svg { width: 14px; color: var(--teal-500); }
.variant-banner a { color: #66d6cd; text-decoration: none; font-weight: 700; white-space: nowrap; }

.landing-page--platform .platform-hero { padding-top: 0; }
.landing-page--platform .landing-hero-copy { padding-top: 48px; }

.platform-stage {
  position: relative; height: 640px; overflow: hidden;
  border-left: 1px solid rgba(255,255,255,.06);
}
.platform-orbit {
  position: absolute; width: 560px; height: 280px; top: 180px; left: 70px;
  border: 1px solid rgba(105,215,207,.16); border-radius: 50%; transform: rotate(-12deg);
}
.platform-card {
  position: absolute; z-index: 3; width: 210px; padding: 12px;
  color: #d9e7ea; background: rgba(10,29,36,.88);
  border: 1px solid rgba(110,204,199,.16); border-radius: 12px;
  box-shadow: 0 18px 40px rgba(0,0,0,.24); backdrop-filter: blur(12px);
  transition: transform .25s var(--ease), border-color .25s var(--ease);
}
.platform-card.is-active { border-color: rgba(83,214,204,.45); transform: scale(1.03); }
.nuts-model { background: radial-gradient(circle, rgba(233,155,33,.13), transparent 56%); }
.platform-card img, .platform-card .cad-render--card { width: 100%; height: 92px; object-fit: contain; margin-bottom: 10px; filter: drop-shadow(0 8px 18px rgba(19,163,154,.18)); mix-blend-mode: normal; }
.platform-proof-card img, .platform-proof-card .cad-render--proof { width: 100%; height: 100%; object-fit: contain; padding: 18px; filter: drop-shadow(0 12px 28px rgba(19,163,154,.2)); mix-blend-mode: normal; background: radial-gradient(circle, rgba(19,163,154,.12), transparent 56%); }
.platform-card-tag {
  display: inline-flex; margin-bottom: 8px; padding: 4px 8px; color: #7a929b;
  background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.08); border-radius: 99px;
  font: 600 8px var(--font-mono); letter-spacing: .06em; text-transform: uppercase;
}
.platform-card-tag.live { color: #71d5a2; border-color: rgba(67,195,131,.24); }
.platform-card b { display: block; font-size: 11px; }
.platform-card small { display: block; margin-top: 3px; color: #718991; font: 8px var(--font-mono); }
.card-rail { width: 250px; top: 120px; left: 48px; }
.card-sheet { top: 78px; right: 18px; }
.card-weld { right: 34px; bottom: 168px; }
.card-assembly { left: 72px; bottom: 92px; }
.abstract-part {
  height: 92px; margin-bottom: 10px; border: 1px solid rgba(99,226,215,.28); border-radius: 8px;
  background: linear-gradient(145deg, rgba(19,163,154,.12), rgba(19,163,154,.02));
}
.sheet-part {
  clip-path: polygon(8% 18%, 92% 10%, 88% 82%, 12% 90%);
  background: linear-gradient(135deg, rgba(61,131,182,.22), rgba(19,163,154,.08));
}
.weld-part {
  border-radius: 4px;
  background:
    linear-gradient(90deg, rgba(99,226,215,.35) 0 8%, transparent 8% 92%, rgba(99,226,215,.35) 92%),
    linear-gradient(rgba(99,226,215,.35) 0 8%, transparent 8% 92%, rgba(99,226,215,.35) 92%);
}
.assembly-part {
  background:
    radial-gradient(circle at 28% 38%, rgba(233,155,33,.35) 0 18%, transparent 19%),
    radial-gradient(circle at 72% 62%, rgba(99,226,215,.35) 0 16%, transparent 17%),
    linear-gradient(145deg, rgba(19,163,154,.1), rgba(19,163,154,.02));
}
.platform-hub {
  position: absolute; z-index: 4; top: 50%; left: 50%; width: 148px; padding: 16px;
  text-align: center; color: white; background: rgba(8,23,29,.92);
  border: 1px solid rgba(83,214,204,.28); border-radius: 14px;
  transform: translate(-50%, -50%); box-shadow: 0 0 40px rgba(19,163,154,.16);
}
.platform-hub svg { width: 28px; color: var(--teal-500); }
.platform-hub span { display: block; margin-top: 8px; font-size: 11px; font-weight: 700; }
.platform-hub small { display: block; margin-top: 4px; color: #718991; font: 8px var(--font-mono); }

.capability-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.capability-card {
  min-height: 280px; padding: 22px; background: white;
  border: 1px solid var(--steel-200); border-radius: 13px; box-shadow: var(--shadow-xs);
}
.capability-card.is-live { border-color: #a6d5d1; box-shadow: 0 0 0 1px rgba(19,163,154,.08); }
.capability-status {
  display: inline-flex; margin-bottom: 18px; padding: 5px 8px; color: var(--steel-500);
  background: var(--steel-50); border-radius: 99px; font: 600 8px var(--font-mono); letter-spacing: .08em; text-transform: uppercase;
}
.capability-card.is-live .capability-status { color: var(--teal-700); background: var(--teal-50); }
.capability-icon {
  width: 44px; height: 44px; display: grid; place-items: center; color: var(--teal-700);
  background: var(--teal-50); border: 1px solid var(--teal-100); border-radius: 10px;
}
.capability-card h3 { margin: 18px 0 8px; font-size: 17px; }
.capability-card > p { margin: 0; color: var(--steel-500); font-size: 12px; line-height: 1.65; }
.capability-card ul { margin: 18px 0 0; padding-left: 16px; color: var(--steel-600); font-size: 11px; line-height: 1.8; }

.platform-architecture .architecture-flow {
  display: grid; grid-template-columns: 1fr 1.1fr 1fr; gap: 18px; align-items: stretch;
}
.architecture-column, .architecture-core {
  padding: 28px; border: 1px solid rgba(255,255,255,.09); border-radius: 14px; background: rgba(255,255,255,.03);
}
.architecture-column h3, .architecture-core h3 { margin: 0 0 16px; font-size: 15px; }
.architecture-core { text-align: center; border-color: rgba(83,214,204,.24); background: rgba(19,163,154,.06); }
.core-icon {
  width: 56px; height: 56px; display: grid; place-items: center; margin: 0 auto 14px;
  color: var(--teal-500); background: rgba(19,163,154,.12); border: 1px solid rgba(83,214,204,.24); border-radius: 14px;
}
.architecture-core p { margin: 0; color: #8da2aa; font-size: 12px; line-height: 1.7; }
.core-tags { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 18px; }
.core-tags span {
  padding: 5px 9px; color: #83dcd5; background: rgba(19,163,154,.1); border: 1px solid rgba(83,214,204,.18);
  border-radius: 99px; font: 600 8px var(--font-mono); letter-spacing: .06em; text-transform: uppercase;
}
.adapter-list { display: flex; flex-wrap: wrap; gap: 8px; }
.adapter-pill {
  display: inline-flex; align-items: center; gap: 7px; padding: 8px 10px; color: #9bb0b8;
  background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.08); border-radius: 99px; font-size: 10px; font-weight: 600;
}
.adapter-pill svg { width: 14px; color: #6d858e; }
.adapter-pill.is-live { color: #d9e7ea; border-color: rgba(83,214,204,.24); }
.adapter-pill.is-live svg { color: var(--teal-500); }

.platform-proof-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.platform-proof-card {
  overflow: hidden; display: grid; grid-template-rows: 180px auto; min-height: 320px;
  border: 1px solid rgba(255,255,255,.09); border-radius: 14px; background: rgba(255,255,255,.035);
}
.platform-proof-card img {
  width: 100%; height: 100%; object-fit: contain; padding: 18px;
  filter: drop-shadow(0 12px 28px rgba(19,163,154,.2));
  background: radial-gradient(circle, rgba(19,163,154,.12), transparent 56%);
}
.platform-proof-card > div { padding: 22px; }
.platform-proof-card h3 { margin: 10px 0 8px; color: white; font-size: 18px; }
.platform-proof-card p { margin: 0; color: #8399a1; font-size: 11px; line-height: 1.7; }

/* Landing comparison page */
.compare-page .compare-main { padding: 112px 0 90px; color: white; }
.compare-hero { max-width: 760px; padding-bottom: 42px; }
.compare-hero h1 { margin: 14px 0 16px; font-size: clamp(36px, 5vw, 58px); line-height: 1.02; letter-spacing: -.06em; }
.compare-hero > p { margin: 0; color: #8fa5ad; line-height: 1.75; }
.compare-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.compare-card {
  display: flex; flex-direction: column; padding: 28px;
  background: linear-gradient(145deg, #142b34, #0b1a20); border: 1px solid rgba(255,255,255,.09); border-radius: 18px;
}
.compare-card.featured { border-color: rgba(233,155,33,.28); box-shadow: 0 0 0 1px rgba(233,155,33,.08); }
.compare-badge {
  display: inline-flex; align-self: flex-start; margin-bottom: 14px; padding: 6px 10px;
  color: #83dcd5; background: rgba(19,163,154,.1); border: 1px solid rgba(83,214,204,.18); border-radius: 99px;
  font: 600 9px var(--font-mono); letter-spacing: .08em; text-transform: uppercase;
}
.compare-badge.amber { color: var(--amber-100); background: rgba(233,155,33,.12); border-color: rgba(233,155,33,.24); }
.compare-card h2 { margin: 0 0 10px; font-size: 28px; letter-spacing: -.04em; }
.compare-lead { margin: 0; color: #8fa5ad; font-size: 13px; line-height: 1.7; }
.compare-points { display: grid; gap: 10px; margin: 22px 0; padding: 0; list-style: none; color: #b2c2c7; font-size: 11px; }
.compare-points li { display: flex; align-items: flex-start; gap: 8px; }
.compare-points svg { width: 14px; flex: 0 0 auto; margin-top: 1px; color: var(--teal-500); }
.compare-preview {
  overflow: hidden; min-height: 180px; margin-top: auto; border: 1px solid rgba(255,255,255,.08); border-radius: 12px;
  background: #08171d;
}
.compare-preview-rail img, .compare-preview-rail .stock-photo,
.compare-preview-platform img, .compare-preview-platform .stock-photo {
  width: 100%; margin: 0; opacity: 1; filter: none;
}
.compare-preview-rail, .compare-preview-platform {
  position: relative; min-height: 200px; display: grid; place-items: center; padding: 18px;
}
.compare-preview-rail > span, .compare-preview-platform > span {
  position: absolute; right: 12px; bottom: 12px; left: 12px; padding: 8px 10px; color: #8fa5ad;
  background: rgba(8,23,29,.82); border-radius: 8px; font: 600 9px var(--font-mono); text-align: center;
}

.compare-actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 18px; }
.compare-file { color: #526d77; font-size: 9px; }
.compare-matrix { margin-top: 42px; padding-top: 36px; border-top: 1px solid rgba(255,255,255,.08); }
.compare-matrix h2 { margin: 0 0 18px; font-size: 24px; letter-spacing: -.04em; }
.matrix-table-wrap { overflow: auto; border: 1px solid rgba(255,255,255,.08); border-radius: 12px; }
.matrix-table { width: 100%; border-collapse: collapse; font-size: 12px; }
.matrix-table th, .matrix-table td { padding: 14px 16px; text-align: left; border-bottom: 1px solid rgba(255,255,255,.06); }
.matrix-table th { color: #83dcd5; background: rgba(255,255,255,.03); font: 600 10px var(--font-mono); letter-spacing: .06em; text-transform: uppercase; }
.matrix-table td { color: #b2c2c7; }
.matrix-table tr:last-child td { border-bottom: 0; }

/* Prototype feedback */
.prototype-toast {
  position: fixed; right: 22px; bottom: 22px; z-index: 120; min-width: 290px;
  display: flex; align-items: center; gap: 11px; padding: 13px 15px; color: white;
  background: var(--ink-850); border: 1px solid rgba(255,255,255,.1); border-radius: 11px;
  box-shadow: var(--shadow-lg); opacity: 0; transform: translateY(14px);
  transition: opacity .22s var(--ease), transform .22s var(--ease);
}
.prototype-toast.visible { opacity: 1; transform: translateY(0); }
.toast-icon {
  width: 30px; height: 30px; display: grid; place-items: center; flex: 0 0 auto;
  color: var(--ink-950); background: var(--teal-500); border-radius: 8px; font-weight: 800;
}
.prototype-toast strong, .prototype-toast small { display: block; }
.prototype-toast strong { font-size: 12px; }
.prototype-toast small { margin-top: 2px; color: var(--steel-300); font-size: 10px; }

/* Responsive */
.sidebar-overlay { display: none; }
@media (max-width: 1180px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .hero-metrics { grid-template-columns: repeat(3, 1fr); }
  .approval-grid { grid-template-columns: repeat(2, 1fr); }
  .landing-links { display: none; }
  .hero-grid { grid-template-columns: 1fr 1.05fr; }
  .model-stage { height: 560px; }
  .workflow-grid, .product-cards { grid-template-columns: repeat(2, 1fr); }
  .workflow-card::after { display: none; }
  .feature-showcase { grid-template-columns: .85fr 1.15fr; }
  .feature-pair { grid-template-columns: 1fr; }
  .capability-grid, .platform-proof-grid { grid-template-columns: repeat(2, 1fr); }
  .platform-architecture .architecture-flow { grid-template-columns: 1fr; }
  .compare-grid { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .sidebar { transform: translateX(-100%); }
  .sidebar.open { transform: translateX(0); box-shadow: 20px 0 50px rgba(0,0,0,.26); }
  .sidebar-overlay { position: fixed; inset: 0; z-index: 45; display: none; background: rgba(7,18,24,.6); }
  .sidebar-overlay.visible { display: block; }
  .main { margin-left: 0; }
  .menu-button { display: inline-flex !important; }
  .mobile-brand { display: inline-flex; }
  .breadcrumbs { display: none; }
  .content { padding: 24px 20px 42px; }
  .topbar { padding: 0 20px; }
  .pipeline { grid-template-columns: repeat(2, 1fr); }
  .auth-page { grid-template-columns: 1fr; }
  .auth-panel { min-height: 100vh; }
  .auth-visual { display: none; }
  .landing-hero { min-height: auto; }
  .hero-grid { grid-template-columns: 1fr; }
  .landing-hero-copy { padding-top: 92px; }
  .model-stage { height: 520px; border-left: 0; }
  .landing-section { padding: 85px 0; }
  .landing-section-head, .validation-grid { grid-template-columns: 1fr; gap: 25px; }
  .feature-showcase { grid-template-columns: 1fr; }
  .feature-model { min-height: 420px; }
  .validation-grid { gap: 48px; }
  .landing-cta-panel { grid-template-columns: 1fr; }
  .proof-strip-inner { align-items: flex-start; flex-direction: column; padding: 24px 0; }
  .proof-points { flex-wrap: wrap; }
}
@media (max-width: 680px) {
  .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .span-2 { grid-column: auto; }
  .page-heading { align-items: flex-start; flex-direction: column; }
  .page-actions { width: 100%; }
  .page-actions .button { min-width: 0; flex: 1; padding-right: 10px; padding-left: 10px; white-space: nowrap; }
  .tenant-select, .avatar-copy, .topbar .divider { display: none; }
  .topbar { height: 62px; padding: 0 14px; }
  .content { padding: 20px 14px 38px; }
  .hero-metrics { grid-template-columns: repeat(2, 1fr); }
  .job-hero { padding: 17px; }
  .job-hero-top { flex-direction: column; }
  .sticky-actions { top: 68px; overflow: auto; }
  .sticky-actions .button { flex: 0 0 auto; }
  .pipeline { grid-template-columns: 1fr; }
  .filter-row > * { width: 100% !important; }
  .pagination { align-items: flex-start; flex-direction: column; }
  .auth-panel { padding: 28px 20px; }
  .auth-title { margin-top: 38px; font-size: 30px; }
  .gallery-wrap { padding: 20px 14px 40px; }
  .gallery-hero { padding: 26px 20px; }
  .screen-grid { grid-template-columns: 1fr; }
  .screen-card.featured { grid-column: auto; }
  .approval-grid { grid-template-columns: 1fr; }
  .prototype-toast { right: 12px; bottom: 12px; left: 12px; min-width: 0; }
  .landing-container { width: min(100% - 28px, 1240px); }
  .landing-nav { height: 64px; }
  .landing-nav .brand-copy { display: none; }
  .nav-actions { gap: 10px; }
  .landing-signin { display: none; }
  .landing-hero { padding-top: 64px; }
  .landing-hero-copy { padding-top: 62px; }
  .landing-hero h1 { font-size: clamp(34px, 10vw, 52px); }
  .landing-hero-copy > p { font-size: 14px; }
  .hero-actions { align-items: stretch; flex-direction: column; }
  .landing-text-link { justify-content: center; }
  .hero-proof { justify-content: space-between; }
  .hero-proof div { min-width: 0; padding: 0 11px; }
  .hero-proof strong { font-size: 14px; }
  .hero-proof span { font-size: 8px; }
  .model-stage { height: 405px; margin: 0 -14px; }
  .premium-render--hero { top: 64px; height: 280px; }
  .real-render--hero { top: 64px; height: 280px; }
  .photo-render--hero { top: 64px; height: 280px; }
  .hero-rail-render.model-render { width: 112%; top: 72px; left: -6%; height: auto; transform: none; }
  .hero-rail-render, .stock-photo--hero { width: 100%; top: 64px; left: 0; height: 260px; transform: none; }
  .label-input { top: 24px; left: 19px; }
  .label-engine { display: none; }
  .label-verified { right: 16px; bottom: 79px; }
  .model-caption { right: 16px; bottom: 17px; left: 16px; }
  .hero-ruler { display: none; }
  .proof-points { display: grid; grid-template-columns: repeat(2, 1fr); gap: 13px; }
  .landing-section { padding: 68px 0; }
  .landing-section-head h2, .validation-copy h2 { font-size: 35px; }
  .workflow-grid, .product-cards { grid-template-columns: 1fr; }
  .workflow-card { min-height: 260px; }
  .feature-copy { padding: 30px 22px; }
  .feature-model { min-height: 320px; }
  .feature-model .stock-photo--feature, .feature-model img { inset: 10% 5%; min-height: 70%; }
  .feature-mini { grid-template-columns: 1fr; }
  .mini-model { min-height: 255px; }
  .mini-model img { width: 125%; top: -4%; left: -14%; }
  .feature-mini > div:last-child { padding: 25px 22px 30px; }
  .platform-stage { height: 420px; margin: 0 -14px; border-left: 0; }
  .platform-card { width: 170px; padding: 10px; }
  .card-rail { width: 190px; top: 88px; left: 16px; }
  .card-sheet { top: 24px; right: 8px; }
  .card-weld { right: 12px; bottom: 96px; }
  .card-assembly { left: 16px; bottom: 18px; }
  .platform-hub { width: 118px; padding: 12px; }
  .capability-grid, .platform-proof-grid { grid-template-columns: 1fr; }
  .compare-actions { align-items: stretch; flex-direction: column; }
  .landing-cta-panel { padding: 30px 22px; }
  .footer-inner { align-items: flex-start; flex-direction: column; justify-content: center; padding: 27px 0; }
  .footer-inner p { margin: 0; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* Phase 1: Subscription & Usage */
.nav-item .nav-badge.later {
  color: var(--steel-500);
  background: var(--steel-100);
  border: 1px solid var(--steel-200);
}
.nav-item.nav-later { opacity: .72; }
.quota-chip {
  display: inline-flex; align-items: center; gap: 8px; min-height: 34px;
  padding: 0 12px; color: var(--ink-800); background: var(--teal-50);
  border: 1px solid var(--teal-100); border-radius: 99px;
  font: 600 11px/1 var(--font-mono); text-decoration: none;
}
.quota-chip.warn { color: var(--amber-700); background: var(--amber-50); border-color: var(--amber-100); }
.quota-chip.full { color: var(--red-700); background: var(--red-100); border-color: #efc1bd; }
.quota-chip .quota-bar {
  width: 52px; height: 5px; overflow: hidden; background: rgba(7,18,24,.08); border-radius: 99px;
}
.quota-chip .quota-bar > span { display: block; height: 100%; background: currentColor; border-radius: inherit; }

.alert-banner {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 16px;
  margin-bottom: 18px; padding: 14px 16px; border: 1px solid var(--amber-100);
  border-radius: var(--radius-md); background: var(--amber-50);
}
.alert-banner.danger { border-color: #efc1bd; background: var(--red-100); }
.alert-banner.ok { border-color: #bfe7d1; background: var(--green-100); }
.alert-banner-copy { display: flex; gap: 12px; align-items: flex-start; }
.alert-banner-copy i { width: 20px; height: 20px; flex: 0 0 auto; margin-top: 1px; }
.alert-banner h3 { margin: 0 0 4px; font-size: 14px; letter-spacing: -.02em; }
.alert-banner p { margin: 0; color: var(--steel-600); font-size: 12px; line-height: 1.5; }
.alert-banner .button { flex: 0 0 auto; }

.sub-hero {
  display: grid; grid-template-columns: 1.2fr .8fr; gap: 18px; margin-bottom: 18px;
}
.plan-current {
  padding: 22px; border: 1px solid var(--steel-200); border-radius: var(--radius-md);
  background: linear-gradient(145deg, #0c1b22 0%, #123038 55%, #0e242c 100%); color: #dce8ec;
  box-shadow: var(--shadow-sm);
}
.plan-current .eyebrow { color: #5fd0c7; }
.plan-current h2 { margin: 4px 0 8px; color: white; font-size: 28px; letter-spacing: -.04em; }
.plan-current p { margin: 0; color: #8fa5ad; font-size: 13px; }
.plan-meta {
  display: flex; flex-wrap: wrap; gap: 18px; margin-top: 20px; padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,.1);
}
.plan-meta div strong { display: block; color: white; font: 600 14px var(--font-mono); }
.plan-meta div span { color: #718991; font-size: 11px; }
.quota-panel { padding: 22px; }
.quota-big { display: flex; align-items: baseline; gap: 8px; margin: 12px 0 8px; }
.quota-big b { font-size: 36px; letter-spacing: -.05em; line-height: 1; }
.quota-big span { color: var(--steel-500); font: 600 14px var(--font-mono); }
.progress.lg { height: 10px; margin: 14px 0 10px; }
.progress.warn span { background: var(--amber-500); }
.progress.full span { background: var(--red-500); }
.quota-foot { display: flex; justify-content: space-between; gap: 12px; color: var(--steel-500); font-size: 12px; }
.status-sent { color: var(--blue-700); background: var(--blue-100); border-color: #bdd9eb; }

.plan-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.plan-card {
  position: relative; display: flex; flex-direction: column; gap: 12px; padding: 20px;
  border: 1px solid var(--steel-200); border-radius: var(--radius-md); background: white;
}
.plan-card.featured {
  border-color: #9ad9d3; box-shadow: 0 16px 40px rgba(8,115,110,.12);
  background: linear-gradient(180deg, #f3fbfa, white 42%);
}
.plan-card .plan-tag {
  position: absolute; top: 14px; right: 14px; padding: 3px 8px;
  color: var(--teal-700); background: var(--teal-100); border-radius: 99px;
  font: 600 10px var(--font-mono); text-transform: uppercase;
}
.plan-card h3 { margin: 0; font-size: 18px; letter-spacing: -.03em; }
.plan-price { display: flex; align-items: baseline; gap: 4px; }
.plan-price b { font-size: 28px; letter-spacing: -.04em; }
.plan-price span { color: var(--steel-500); font-size: 12px; }
.plan-card ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; flex: 1; }
.plan-card li {
  display: flex; gap: 8px; align-items: flex-start; color: var(--steel-600); font-size: 12px; line-height: 1.45;
}
.plan-card li i { width: 15px; height: 15px; color: var(--teal-600); flex: 0 0 auto; margin-top: 1px; }
.plan-card .button { width: 100%; margin-top: 8px; }
.plan-card.current-plan { outline: 2px solid rgba(19,163,154,.35); }

.gate-panel {
  display: grid; grid-template-columns: 1.1fr .9fr; gap: 18px; align-items: center;
  padding: 22px; border: 1px solid #efc1bd; border-radius: var(--radius-md); background: #fff7f6;
}
.gate-panel h3 { margin: 0 0 8px; font-size: 18px; }
.gate-panel p { margin: 0; color: var(--steel-600); font-size: 13px; }
.gate-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }

.usage-filters {
  display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 18px;
}
.usage-chart {
  display: grid; grid-template-columns: repeat(12, 1fr); gap: 8px; align-items: end;
  min-height: 160px; padding: 8px 0 0;
}
.usage-chart .bar-col {
  display: grid; gap: 6px; justify-items: center; align-content: end;
}
.usage-chart .bar-col span {
  width: 100%; max-width: 28px; border-radius: 6px 6px 2px 2px;
  background: linear-gradient(180deg, var(--teal-500), var(--teal-700));
}
.usage-chart .bar-col small { color: var(--steel-400); font: 600 9px var(--font-mono); }

@media (max-width: 980px) {
  .sub-hero, .plan-grid, .gate-panel { grid-template-columns: 1fr; }
}

/* Class aliases used by Phase 1 prototype pages */
.sub-hero { display: grid; grid-template-columns: 1.2fr .8fr; gap: 18px; margin-bottom: 18px; }
.plan-current {
  padding: 22px; border: 1px solid var(--steel-200); border-radius: var(--radius-md);
  background: linear-gradient(145deg, #0c1b22 0%, #123038 55%, #0e242c 100%); color: #dce8ec;
  box-shadow: var(--shadow-sm);
}
.plan-current .eyebrow { color: #5fd0c7; }
.plan-current h2 { margin: 4px 0 8px; color: white; font-size: 28px; letter-spacing: -.04em; }
.plan-current p { margin: 0; color: #8fa5ad; font-size: 13px; }
.plan-meta {
  display: flex; flex-wrap: wrap; gap: 18px; margin-top: 20px; padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,.1);
}
.plan-meta div strong { display: block; color: white; font: 600 14px var(--font-mono); }
.plan-meta div span { color: #718991; font-size: 11px; }
.quota-panel { padding: 22px; }
.gate-panel {
  display: grid; grid-template-columns: 1.1fr .9fr; gap: 18px; align-items: center;
  padding: 22px; border: 1px solid #efc1bd; border-radius: var(--radius-md); background: #fff7f6;
}
.gate-panel h3 { margin: 0 0 8px; font-size: 18px; }
.gate-panel p { margin: 0; color: var(--steel-600); font-size: 13px; }
.gate-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.alert-banner.warn { border-color: var(--amber-100); background: var(--amber-50); }
.progress.lg { height: 10px; margin: 14px 0 10px; }
.button-sm { min-height: 34px; padding: 0 11px; border-radius: 7px; font-size: 12px; }
.quota-chip.warn { color: var(--amber-700); background: var(--amber-50); border-color: var(--amber-100); }
.plan-card .plan-tag {
  position: absolute; top: 14px; right: 14px; padding: 3px 8px;
  color: var(--teal-700); background: var(--teal-100); border-radius: 99px;
  font: 600 10px var(--font-mono); text-transform: uppercase;
}
.plan-price { display: flex; align-items: baseline; gap: 4px; }
.plan-price b { font-size: 28px; letter-spacing: -.04em; }
.plan-price span { color: var(--steel-500); font-size: 12px; }
.table-wrap { overflow: auto; }

/* Landing index enhancements */
.landing-nav.is-scrolled {
  background: rgba(7, 18, 24, .92);
  backdrop-filter: blur(12px);
  box-shadow: 0 8px 28px rgba(7, 18, 24, .28);
}

.reveal-pending {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .55s var(--ease), transform .55s var(--ease);
}
.reveal-in {
  opacity: 1;
  transform: none;
}

.feature-model .model-render,
.mini-model .model-render {
  position: absolute;
  z-index: 2;
  inset: 8% 6%;
  width: auto;
  height: auto;
  max-width: 88%;
  max-height: 84%;
  margin: auto;
  object-fit: contain;
  filter: drop-shadow(0 18px 40px rgba(19, 163, 154, .22));
}

