:root {
  --navy: #101d32;
  --navy-2: #172942;
  --teal: #168f87;
  --teal-bright: #39c6b3;
  --teal-soft: #e7f6f3;
  --gold: #e8b66b;
  --text: #223248;
  --muted: #66768b;
  --muted-2: #8592a3;
  --line: #e2e9ef;
  --panel: #ffffff;
  --surface: #f5f8fa;
  --shadow: 0 14px 38px rgba(16, 29, 50, .055);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--surface); color: var(--text); font-family: Vazirmatn, Tahoma, sans-serif; font-size: 14px; line-height: 1.8; }
button, input { font: inherit; }
button, a, input { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
button:focus-visible, a:focus-visible, input:focus-visible, summary:focus-visible { outline: 3px solid rgba(57,198,179,.55); outline-offset: 3px; }
.topbar { min-height: 78px; display: flex; justify-content: space-between; align-items: center; gap: 18px; padding: 12px max(28px, calc((100vw - 1240px) / 2)); background: var(--navy); color: #fff; border-bottom: 1px solid rgba(255,255,255,.08); }
.brand { display: inline-flex; align-items: center; gap: 11px; min-width: 0; }
.brand-mark { display: grid; place-items: center; width: 38px; height: 38px; border: 1px solid rgba(57,198,179,.48); color: var(--teal-bright); border-radius: 11px; font-size: 19px; font-weight: 900; }
.brand-copy { display: flex; flex-direction: column; line-height: 1.35; }
.brand-copy strong { color: #fff; font-size: 16px; font-weight: 900; }
.brand-copy small { color: #a7b7c9; font-size: 9.5px; margin-top: 3px; }
.topbar-side { display: flex; align-items: center; gap: 25px; }
.demo-badge { display: inline-flex; align-items: center; gap: 8px; padding: 6px 11px; border: 1px solid rgba(57,198,179,.2); border-radius: 100px; background: rgba(57,198,179,.08); color: #b7f0e8; font-size: 10px; font-weight: 700; white-space: nowrap; }
.status-dot, .eyebrow-dot { width: 7px; height: 7px; display: inline-block; flex: 0 0 auto; border-radius: 50%; background: var(--teal-bright); }
.back-link { color: #c3d0df; font-size: 11px; white-space: nowrap; transition: color .2s; }
.back-link:hover { color: var(--teal-bright); }
.page-shell { width: min(1240px, calc(100% - 44px)); margin: 0 auto; padding: 40px 0 70px; }
.intro-block { max-width: 880px; padding: 16px 0 26px; }
.eyebrow { display: inline-flex; align-items: center; gap: 9px; color: var(--teal); font-size: 10px; font-weight: 900; letter-spacing: .1px; margin-bottom: 12px; }
.intro-block h1 { max-width: 820px; color: var(--navy); font-size: clamp(2rem, 4vw, 3.1rem); font-weight: 900; line-height: 1.45; margin: 0 0 12px; letter-spacing: -.7px; }
.intro-block h1 span { color: var(--teal); }
.intro-text { max-width: 800px; color: #536377; font-size: 13px; line-height: 2.15; margin: 0; }
.feature-pills { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 19px; }
.feature-pills span { display: inline-flex; align-items: center; gap: 7px; padding: 6px 11px; color: #425269; background: #fff; border: 1px solid var(--line); border-radius: 100px; font-size: 10px; }
.feature-pills b { color: var(--teal); font-size: 12px; }
.panel { border: 1px solid #e5ebf0; border-radius: 19px; background: var(--panel); box-shadow: var(--shadow); }
.control-panel { padding: 25px 26px 20px; margin-top: 12px; }
.panel-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 17px; }
.panel-heading h2 { margin: 0; color: var(--navy); font-size: 19px; line-height: 1.55; }
.panel-heading p { margin: 5px 0 0; color: var(--muted); font-size: 11px; }
.small-eyebrow { margin-bottom: 5px; font-size: 9px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 42px; padding: 9px 16px; border-radius: 11px; border: 1px solid transparent; font-size: 11px; font-weight: 850; cursor: pointer; transition: background .18s, transform .18s, border-color .18s; }
.button:hover { transform: translateY(-1px); }
.button-primary { color: #fff; background: var(--teal); }
.button-primary:hover { background: #117d75; }
.button-light { color: #4d5e71; background: #fff; border-color: #dce5eb; }
.button-light:hover { background: #f5f8fa; border-color: #bbcbd7; }
.table-wrap { overflow-x: auto; border: 1px solid #e5ebf0; border-radius: 13px; }
.jobs-table { width: 100%; min-width: 710px; border-collapse: separate; border-spacing: 0; font-size: 11px; }
.jobs-table th { text-align: center; padding: 12px 10px; color: #56667a; background: #f6f9fb; font-size: 10px; font-weight: 850; white-space: nowrap; border-bottom: 1px solid var(--line); }
.jobs-table th:first-child { text-align: right; padding-right: 17px; }
.jobs-table td { text-align: center; padding: 8px 10px; border-bottom: 1px solid #edf1f4; }
.jobs-table tr:last-child td { border-bottom: 0; }
.jobs-table tr:hover td { background: #fbfdfd; }
.job-name { display: inline-flex; align-items: center; gap: 9px; min-width: 94px; white-space: nowrap; font-weight: 800; color: var(--navy); }
.job-dot { display: inline-grid; place-items: center; width: 27px; height: 27px; color: var(--teal); background: var(--teal-soft); border-radius: 8px; font-size: 10px; font-weight: 900; }
.job-input { width: 79px; height: 35px; border: 1px solid #dce5eb; border-radius: 8px; text-align: center; color: var(--navy); background: #fbfcfd; font-size: 12px; font-weight: 750; outline: none; }
.job-input:focus { background: #fff; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(22,143,135,.1); }
.job-input[aria-invalid="true"] { border-color: #c94d4d; background: #fff6f6; }
.priority-input { width: 67px; }
.table-help { margin: 11px 0 0; color: var(--muted); font-size: 10px; line-height: 1.8; }
.solve-status { display: flex; align-items: center; gap: 9px; margin-top: 16px; padding: 10px 12px; border-radius: 10px; color: #536377; background: #f6f9fb; font-size: 11px; }
.solve-status.is-success { color: #14695f; background: #edf8f5; }
.solve-status.is-error { color: #9b3030; background: #fff3f3; }
.spinner { width: 14px; height: 14px; border: 2px solid #cbd9df; border-top-color: var(--teal); border-radius: 50%; flex: 0 0 auto; animation: spin .8s linear infinite; }
.is-success .spinner { display: none; }
@keyframes spin { to { transform: rotate(360deg); } }
.results-section { margin-top: 33px; }
.section-heading { max-width: 790px; margin-bottom: 20px; }
.section-heading h2 { margin: 0 0 8px; color: var(--navy); font-size: clamp(1.45rem,2.4vw,2rem); line-height: 1.55; }
.section-heading p { margin: 0; color: var(--muted); font-size: 12px; line-height: 2; }
.comparison-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 16px; }
.comparison-card { padding: 23px; border: 1px solid var(--line); border-radius: 17px; background: #fff; }
.comparison-card.is-best { border-color: rgba(22,143,135,.4); box-shadow: 0 10px 28px rgba(22,143,135,.07); }
.comparison-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; margin-bottom: 18px; }
.comparison-top h3 { margin: 0; color: var(--navy); font-size: 15px; }
.comparison-top p { margin: 4px 0 0; color: var(--muted); font-size: 10px; }
.method-pill { display: inline-flex; padding: 5px 8px; white-space: nowrap; border-radius: 7px; color: #5b6879; background: #f1f5f7; font-size: 9px; font-weight: 800; }
.is-best .method-pill { color: #0d756d; background: var(--teal-soft); }
.metric-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
.metric { border-radius: 11px; background: #f6f9fb; padding: 12px 13px; min-width: 0; }
.metric small { display: block; margin-bottom: 5px; color: var(--muted); font-size: 9px; }
.metric strong { display: block; color: var(--navy); font-size: 21px; font-weight: 900; line-height: 1.4; font-variant-numeric: tabular-nums; }
.metric span { color: var(--muted-2); font-size: 9px; }
.comparison-foot { padding-top: 13px; margin-top: 13px; border-top: 1px solid #e9eef2; color: #69798b; font-size: 10px; line-height: 1.9; }
.comparison-note { margin-top: 15px; padding: 14px 16px; border-right: 3px solid var(--teal); border-radius: 0 10px 10px 0; background: #edf8f5; color: #2d635d; font-size: 11px; line-height: 1.9; }
.timeline-section { margin-top: 31px; }
.timeline-panel { padding: 24px; }
.timeline-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; margin-bottom: 22px; }
.timeline-header h2 { margin: 0 0 5px; color: var(--navy); font-size: 18px; }
.timeline-header p { margin: 0; color: var(--muted); font-size: 10px; line-height: 1.9; }
.plan-switch { display: inline-flex; flex-shrink: 0; gap: 4px; padding: 4px; background: #f0f4f7; border-radius: 11px; }
.plan-switch button { border: 0; padding: 8px 11px; border-radius: 8px; background: transparent; color: #5b6a7c; font-size: 10px; font-weight: 850; cursor: pointer; }
.plan-switch button.is-selected { background: var(--navy); color: #fff; box-shadow: 0 3px 8px rgba(16,29,50,.13); }
.timeline-axis { display: flex; justify-content: space-between; gap: 0; direction: ltr; margin: 0 0 8px; padding-right: 132px; color: #7a8999; font-size: 9px; font-variant-numeric: tabular-nums; }
.timeline-row { display: grid; grid-template-columns: 118px minmax(0,1fr); gap: 14px; align-items: center; margin: 12px 0; }
.timeline-label { display: flex; flex-direction: column; gap: 3px; }
.timeline-label strong { color: var(--navy); font-size: 11px; }
.timeline-label small { color: var(--muted); font-size: 9px; }
.timeline-track { position: relative; direction: ltr; min-height: 55px; border: 1px solid #e1e8ed; border-radius: 9px; overflow: hidden; background: repeating-linear-gradient(to right, #f2f6f8 0, #f2f6f8 calc(25% - 1px), #e3eaf0 calc(25% - 1px), #e3eaf0 25%); }
.timeline-track::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 1px; background: #ccd8e0; }
.job-bar { position: absolute; top: 7px; bottom: 7px; min-width: 20px; display: flex; align-items: center; justify-content: center; padding: 0 3px; border-radius: 6px; color: #fff; background-color: #087f8c; border: 1px solid rgba(255,255,255,.28); font-size: 10px; font-weight: 900; overflow: hidden; white-space: nowrap; text-overflow: clip; box-shadow: 0 2px 5px rgba(16,29,50,.12); }
.gantt-legend { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; margin: 0 132px 12px 0; color: #425269; font-size: 10px; }
.gantt-legend span { display: inline-flex; align-items: center; gap: 7px; }
.legend-swatch { display: inline-block; width: 13px; height: 13px; border-radius: 4px; border: 1px solid rgba(16,29,50,.16); }
.legend-swatch.machine-1 { background: #087f8c; }
.legend-swatch.machine-2 { background: #2457a6; }
.legend-swatch.is-late { background: #b42318; }
.job-bar.machine-1 { background: #087f8c; border-color: #056873; }
.job-bar.machine-2 { background: #2457a6; border-color: #1d4789; }
.job-bar.is-late { background: #b42318 !important; border-color: #8f1d14 !important; box-shadow: 0 2px 6px rgba(180,35,24,.24); }
.timeline-orders { display: grid; gap: 8px; margin-top: 16px; }
.timeline-order-row { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; padding: 9px 11px; border: 1px solid #e9eef2; border-radius: 9px; font-size: 10px; }
.timeline-order-row strong { min-width: 76px; color: var(--navy); }
.timeline-order-row span { color: #657589; }
.timeline-order-row .late-flag { color: #a13d3d; }
.timeline-order-row .ontime-flag { color: #137568; }
.method-notes { margin-top: 28px; border: 1px solid var(--line); border-radius: 16px; background: #fff; overflow: hidden; }
.method-notes summary { padding: 17px 20px; color: var(--navy); font-weight: 850; font-size: 12px; cursor: pointer; }
.method-notes[open] summary { border-bottom: 1px solid var(--line); }
.method-notes-content { padding: 18px 22px 22px; color: #536377; font-size: 11px; line-height: 2; }
.method-notes-content p { margin: 0 0 10px; }
.method-notes-content ul { padding-right: 20px; margin: 9px 0; }
.method-notes-content li { margin-bottom: 5px; }
.demo-footer { margin-top: 34px; padding-top: 17px; display: flex; justify-content: space-between; gap: 16px; border-top: 1px solid #dfe7ed; color: var(--muted); font-size: 10px; }
.demo-footer a { color: var(--teal); font-weight: 850; }
@media (max-width: 980px) {
  .comparison-grid { grid-template-columns: 1fr; }
  .timeline-header { flex-direction: column; }
}
@media (max-width: 700px) {
  .topbar { padding: 13px 17px; align-items: flex-start; }
  .topbar-side { align-items: flex-end; flex-direction: column; gap: 7px; }
  .demo-badge { font-size: 9px; padding: 5px 8px; }
  .page-shell { width: calc(100% - 28px); padding-top: 24px; }
  .intro-block { padding: 8px 0 19px; }
  .intro-block h1 { font-size: clamp(1.8rem,8vw,2.5rem); }
  .intro-text { font-size: 12px; }
  .control-panel { padding: 18px 13px 14px; }
  .panel-heading { align-items: flex-start; }
  .panel-heading h2 { font-size: 16px; }
  .panel-heading .button { white-space: nowrap; padding: 8px 10px; min-height: 37px; font-size: 9px; }
  .comparison-card { padding: 17px; }
  .metric { padding: 11px; }
  .metric strong { font-size: 18px; }
  .timeline-panel { padding: 17px 13px; }
  .plan-switch { width: 100%; }
  .plan-switch button { flex: 1; padding: 8px 5px; }
  .timeline-axis { padding-right: 95px; font-size: 8px; }
  .gantt-legend { margin-right: 95px; gap: 7px 12px; font-size: 9px; }
  .timeline-row { grid-template-columns: 82px minmax(0,1fr); gap: 8px; }
  .timeline-label strong { font-size: 10px; }
  .timeline-track { min-height: 48px; }
  .job-bar { top: 6px; bottom: 6px; font-size: 9px; min-width: 14px; }
  .timeline-order-row { font-size: 9px; }
  .method-notes-content { padding: 15px; }
  .demo-footer { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .spinner { animation: none; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}

/* Wordmark/tagline proportion refinement. */
.topbar .brand { flex-direction: column; align-items: flex-start; gap: 2px; }
.topbar .brand-logo { display: block; width: 150px; height: auto; }
.topbar .brand-tagline { display: block; color: #a7b7c9; font-size: 11px; font-weight: 650; line-height: 1.5; white-space: nowrap; text-align: right; }
.topbar .brand-tagline strong { color: #39c6b3; font-weight: 850; }
@media (max-width: 720px) {
  .topbar .brand-logo { width: 128px; }
  .topbar .brand-tagline { font-size: 10px; }
}


/* Center the tagline on the visible wordmark instead of aligning both to the right. */
.topbar .brand { align-items: center; width: max-content; }
.topbar .brand-tagline { width: max-content; text-align: center; }


/* Keep the dark wordmark visible on the navy demo header. */
.topbar .brand-logo { filter: brightness(0) invert(1); }
