* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

:root {
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  color: #121212;
  background-color: #ffffff;
  --text: #121212;
  --muted: #6c737d;
  --border: #e4e1da;
  --bg-soft: #f7f5f0;
  --accent: #111111;
  --accent-light: #fef4e7;
  --gradient: linear-gradient(90deg, #ff6b42, #ffb347, #ff4dd6);
  --mockup-min-height: clamp(470px, 58vh, 600px);
}

body {
  margin: 0;
  color: var(--text);
  background: #fff;
}

img {
  max-width: 100%;
  display: block;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem clamp(1.25rem, 5vw, 4rem);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 600;
}

.brand-mark svg {
  width: 40px;
  height: 20px;
  fill: var(--accent);
}

.nav-links {
  display: inline-flex;
  gap: 1rem;
  font-size: 0.95rem;
}

.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 500;
}

.btn {
  border: none;
  border-radius: 999px;
  padding: 0.8rem 2rem;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  font-family: inherit;
}

.btn-solid {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.15);
}

.btn-outline {
  border: 1px solid var(--border);
  background: transparent;
  color: var(--accent);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-ghost {
  background: rgba(17, 17, 17, 0.06);
  color: var(--accent);
}

.btn:active {
  transform: translateY(1px);
}

.hero {
  text-align: center;
  padding: 4rem clamp(1.5rem, 5vw, 5rem) 3rem;
  max-width: 960px;
  margin: 0 auto;
}

.eyebrow {
  display: inline-flex;
  padding: 0.25rem 0.85rem;
  border-radius: 999px;
  background: #f3f2ec;
  font-size: 0.85rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

h1,
h2,
h3 {
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(2.5rem, 6vw, 4.25rem);
  margin: 1rem 0 0.75rem;
}

.gradient-text {
  background: var(--gradient);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  color: transparent;
  animation: gradientShift 4s ease infinite;
}

@keyframes gradientShift {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

.lead {
  color: var(--muted);
  font-size: 1.2rem;
  line-height: 1.7;
  margin: 0 auto 2rem;
  max-width: 680px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  align-items: center;
}

.section-label {
  display: inline-flex;
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

section {
  padding: 4.5rem clamp(1.5rem, 5vw, 5rem);
}

.problem {
  position: relative;
  background: linear-gradient(180deg, #f6f1ea 0%, #f1ede7 100%);
}

.problem::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(
    circle at 20% 20%,
    rgba(255, 255, 255, 0.4),
    transparent 45%
  );
  opacity: 0.5;
  pointer-events: none;
}

.trust {
  background: #fff;
}

.problem h2,
.trust h2,
.network h2,
.workflow h2,
.industries h2,
.request h2 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  margin: 1rem 0 1rem;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.cards article {
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 1.75rem;
  background: #fff;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.05);
}

.problem-cards {
  position: relative;
  z-index: 1;
}

.problem-cards article {
  position: relative;
  padding: 2rem;
  border-left: 4px solid rgba(193, 73, 73, 0.35);
  box-shadow: 0 30px 60px rgba(28, 16, 3, 0.08);
}
.problem-card {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 1.25rem;
  align-items: start;
}

.problem-icon {
  width: 72px;
  height: 72px;
  border-radius: 18px;
  background: rgba(193, 73, 73, 0.14);
  color: #b43434;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.problem-icon svg {
  width: 32px;
  height: 32px;
}

.problem-copy h3 {
  margin: 0 0 0.4rem;
  font-size: 1.35rem;
}

.problem-copy p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

@media (max-width: 640px) {
  .problem-card {
    grid-template-columns: 1fr;
  }

  .problem-icon {
    width: 56px;
    height: 56px;
  }
}

.trust-lead {
  max-width: 780px;
  color: var(--muted);
  line-height: 1.7;
  margin: 0.75rem 0 2.75rem;
}

.trust-grid {
  display: grid;
  grid-template-columns: minmax(0, 420px) minmax(0, 1fr);
  gap: clamp(1.5rem, 4vw, 4rem);
  align-items: stretch;
}

.trust-points ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.trust-points li {
  display: flex;
  gap: 1.2rem;
  padding: 1.75rem 1.9rem;
  border-radius: 32px;
  border: 1.5px solid rgba(8, 15, 40, 0.06);
  background: linear-gradient(135deg, #ffffff 0%, #f9fafb 100%);
  box-shadow: 0 4px 14px rgba(8, 15, 40, 0.04), 0 20px 60px rgba(8, 15, 40, 0.06);
  align-items: flex-start;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.trust-points li:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(8, 15, 40, 0.08), 0 30px 70px rgba(8, 15, 40, 0.1);
  border-color: rgba(27, 102, 255, 0.15);
}

.trust-icon {
  font-size: 1.5rem;
  line-height: 1;
  margin-top: 0.1rem;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.12), rgba(5, 150, 105, 0.15));
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.15);
}

.trust-points strong {
  display: block;
  font-size: 1.1rem;
  margin-bottom: 0.45rem;
  letter-spacing: -0.01em;
  color: #0a0f1e;
}

.trust-points p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
  font-size: 0.98rem;
}

.trust-dossiers {
  position: relative;
  min-height: 420px;
  padding: 0.5rem;
}

.dossier-card {
  position: absolute;
  inset: 0;
  border-radius: 36px;
  border: 1.5px solid rgba(8, 15, 40, 0.06);
  background: linear-gradient(145deg, #ffffff 0%, #fafbfc 100%);
  padding: 2rem 2.2rem;
  box-shadow: 0 8px 24px rgba(8, 15, 40, 0.06), 0 30px 80px rgba(8, 15, 40, 0.08);
  opacity: 0;
  transform: translateY(35px) scale(0.98);
  animation: dossierCycle 16s ease-in-out infinite;
  animation-delay: var(--delay, 0s);
  pointer-events: none;
}

.dossier-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.4rem;
  padding-bottom: 1.2rem;
  border-bottom: 1.5px solid rgba(8, 15, 40, 0.06);
}

.dossier-label {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.72rem;
  color: rgba(108, 115, 125, 0.8);
  margin: 0 0 0.5rem;
  font-weight: 600;
}

.dossier-card h3 {
  font-size: 1.35rem;
  margin: 0.3rem 0 0;
  letter-spacing: -0.02em;
  color: #0a0f1e;
  font-weight: 700;
}

.dossier-status {
  border-radius: 999px;
  padding: 0.4rem 1.1rem;
  font-size: 0.82rem;
  font-weight: 600;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.14), rgba(5, 150, 105, 0.18));
  color: #0a7a4d;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.15);
}

.dossier-status--amber {
  background: linear-gradient(135deg, rgba(255, 193, 7, 0.16), rgba(245, 158, 11, 0.2));
  color: #a66800;
  box-shadow: 0 4px 12px rgba(255, 193, 7, 0.15);
  border-color: rgba(255, 193, 7, 0.2);
}

.dossier-status--green {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.14), rgba(5, 150, 105, 0.18));
  color: #0a7a4d;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.12);
  border-color: rgba(16, 185, 129, 0.15);
}

.dossier-details {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1.3rem;
}

.dossier-details li {
  background: linear-gradient(135deg, rgba(8, 15, 40, 0.02), rgba(8, 15, 40, 0.04));
  border-radius: 16px;
  padding: 0.95rem 1.1rem;
  border: 1px solid rgba(8, 15, 40, 0.05);
}

.dossier-details li span {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.7rem;
  color: rgba(108, 115, 125, 0.85);
  font-weight: 600;
}

.dossier-details li strong {
  display: block;
  margin-top: 0.4rem;
  font-size: 1.08rem;
  letter-spacing: -0.01em;
  color: #0a0f1e;
}

@keyframes dossierCycle {
  0% {
    opacity: 0;
    transform: translateY(35px) scale(0.97);
  }
  5%,
  25% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
  32%,
  100% {
    opacity: 0;
    transform: translateY(-25px) scale(0.97);
  }
}

.workflow {
  background: #f4f6fb;
  padding: 3.5rem clamp(1.5rem, 4vw, 4rem) clamp(3.5rem, 10vh, 5rem);
  scroll-margin-top: 80px;
}

.workflow-layout {
  margin-top: 2.5rem;
  display: grid;
  grid-template-columns: minmax(0, 360px) minmax(0, 1fr);
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: flex-start;
}

.workflow-copy {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.step-card {
  text-align: left;
  border-radius: 36px;
  padding: 1.25rem 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  cursor: pointer;
  border: 1.8px solid rgba(12, 28, 78, 0.08);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(240, 244, 252, 0.9));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65), 0 18px 38px rgba(8, 13, 40, 0.08);
  transition: border 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease, background 0.25s ease;
}

.step-card .step-label {
  font-size: 0.75rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: rgba(17, 28, 66, 0.45);
  margin: 0;
}

.step-card h3 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
  color: rgba(6, 11, 32, 0.5);
}

.step-card .step-body {
  margin: 0;
  font-size: 0.96rem;
  line-height: 1.5;
  color: rgba(6, 11, 32, 0.5);
}

.step-card.active {
  background: #fff;
  border-color: #1b66ff;
  box-shadow: 0 25px 65px rgba(30, 88, 255, 0.3);
  transform: translateY(-3px);
}

.step-card.active .step-label {
  color: #1b66ff;
}

.step-card.active h3,
.step-card.active .step-body {
  color: #060b20;
}

.workflow-visual {
  width: 100%;
  position: relative;
  align-self: stretch;
}

.browser-frame {
  border-radius: 32px;
  background: radial-gradient(circle at 20% 20%, rgba(93, 133, 255, 0.25), rgba(9, 14, 37, 0.95));
  padding: 1.2rem;
  box-shadow: 0 30px 80px rgba(4, 7, 22, 0.45);
  position: sticky;
  top: clamp(4rem, 8vh, 6.5rem);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.browser-frame::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.browser-body {
  background: #fdfdfd;
  border-radius: 26px;
  display: flex;
  overflow: hidden;
  flex: 1;
  height: 100%;
  min-height: var(--mockup-min-height);
}

.sidebar {
  width: 76px;
  background: #0f1733;
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1.25rem 0.75rem;
  gap: 1.5rem;
}

.sidebar-logo {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.1);
  display: grid;
  place-items: center;
  font-weight: 600;
  letter-spacing: 0.05em;
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.nav-pill {
  width: 6px;
  height: 28px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.2);
}

.nav-pill.active {
  background: #5c8bff;
}

.browser-main {
  flex: 1;
  position: relative;
  overflow: hidden;
}

.mockup-screen {
  position: absolute;
  inset: 0;
  padding: 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  overflow-y: auto;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity 0.35s ease, transform 0.35s ease;
  background: #fff;
}

.mockup-screen::-webkit-scrollbar {
  width: 6px;
}

.mockup-screen::-webkit-scrollbar-thumb {
  background: rgba(17, 23, 51, 0.2);
  border-radius: 999px;
}

.mockup-screen.active {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.screen-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
}

.screen-kicker {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.72rem;
  color: var(--muted);
  margin: 0 0 0.25rem;
}

.screen-head h4 {
  margin: 0;
  font-size: 1.45rem;
}

.order-context {
  margin: 0.5rem 0 0;
  font-size: 0.9rem;
  color: var(--muted);
}

.order-context strong {
  color: #0f183a;
  font-weight: 600;
}

.badge {
  border-radius: 999px;
  padding: 0.35rem 1rem;
  font-size: 0.85rem;
  background: rgba(17, 17, 17, 0.08);
  font-weight: 600;
}

.badge-soft {
  background: rgba(92, 139, 255, 0.15);
  color: #1e3ea5;
}

.badge-success {
  background: rgba(53, 176, 124, 0.16);
  color: #199063;
}

.badge-warning {
  background: rgba(255, 159, 67, 0.18);
  color: #c45a12;
}

.screen-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

.screen-grid--dual {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 1.2rem;
  align-items: stretch;
}

.intake-card,
.qc-card,
.map-card,
.match-card {
  border: 1px solid rgba(8, 15, 40, 0.08);
  border-radius: 20px;
  background: #fff;
  padding: 1.1rem;
}

.status-chip {
  border-radius: 999px;
  padding: 0.35rem 1rem;
  font-size: 0.85rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(30, 160, 110, 0.25);
  background: rgba(30, 160, 110, 0.08);
  color: #138c60;
}

.step-three-head small {
  color: var(--muted);
}

.step-three-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 1rem;
}

.production-card,
.qc-panel {
  border: 1px solid rgba(8, 15, 40, 0.08);
  border-radius: 22px;
  background: #fff;
  padding: 0.9rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.production-meta {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.production-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
}

.timeline-bar {
  width: 100%;
  height: 16px;
  border-radius: 999px;
  background: rgba(15, 23, 51, 0.08);
  overflow: hidden;
}

.timeline-fill {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #6ea7ff, #3c6bff);
  width: 0%;
}

.timeline-stats {
  display: flex;
  justify-content: flex-end;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--muted);
}

.timeline-current {
  color: #1e3ea5;
}

.milestone-row {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.milestone-chip {
  border-radius: 18px;
  padding: 0.3rem 0.95rem;
  font-size: 0.85rem;
  font-weight: 600;
  background: rgba(8, 15, 40, 0.05);
  color: var(--muted);
  position: relative;
  overflow: hidden;
}

.milestone-chip.is-complete {
  background: rgba(29, 159, 113, 0.16);
  color: #17704f;
  padding-left: 2rem;
  position: relative;
}

.milestone-chip.is-complete::before {
  content: '✓';
  position: absolute;
  left: 0.8rem;
  top: 50%;
  transform: translateY(-50%);
  width: 1.1rem;
  height: 1.1rem;
  border-radius: 50%;
  background: rgba(23, 132, 87, 0.1);
  border: 1px solid rgba(23, 132, 87, 0.4);
  display: grid;
  place-items: center;
  font-size: 0.75rem;
}

.milestone-chip.is-active {
  background: rgba(92, 139, 255, 0.18);
  color: #1e3ea5;
}

.milestone-chip.is-active::after {
  content: '';
  position: absolute;
  inset: -8px;
  border-radius: 22px;
  border: 1px solid rgba(92, 139, 255, 0.4);
  animation: milestonePulse 1.8s ease-out infinite;
}

.milestone-chip.is-pending {
  background: rgba(8, 15, 40, 0.04);
  color: var(--muted);
}

.qc-panel header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.qc-panel header h5 {
  margin: 0;
}

.qc-panel header small {
  color: var(--muted);
}

.qc-feed {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  height: 160px;
  overflow-y: auto;
  padding-right: 0.35rem;
  scrollbar-gutter: stable both-edges;
}

.qc-empty {
  color: var(--muted);
  font-size: 0.9rem;
  padding: 0.6rem 0;
}

.qc-empty.is-hidden {
  display: none;
}

.qc-entry {
  display: flex;
  gap: 0.8rem;
  border: 1px solid rgba(8, 15, 40, 0.08);
  border-radius: 16px;
  padding: 0.75rem;
  background: #fff;
  box-shadow: 0 12px 24px rgba(5, 9, 30, 0.08);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.qc-entry.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.qc-photo {
  width: 60px;
  height: 60px;
  border-radius: 14px;
  background-image: var(--qc-gradient, linear-gradient(135deg, rgba(92, 139, 255, 0.2), rgba(30, 62, 165, 0.35)));
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  flex-shrink: 0;
}

.qc-photo.has-photo {
  background-image: var(--qc-image);
}

.qc-entry h6 {
  margin: 0;
  font-size: 0.95rem;
}

.qc-entry p {
  margin: 0.15rem 0 0;
  font-size: 0.85rem;
  color: var(--muted);
}

.metric-grid {
  margin-top: 1.1rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.75rem;
}

.metric-card {
  border: 1px solid rgba(8, 15, 40, 0.08);
  border-radius: 18px;
  background: #fff;
  padding: 0.85rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.metric-card span {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
}

.metric-card strong {
  font-size: 1.2rem;
  letter-spacing: -0.01em;
}

.metric-positive {
  color: #178457;
}

@keyframes milestonePulse {
  0% {
    opacity: 0.85;
    transform: scale(0.9);
  }
  70% {
    opacity: 0;
    transform: scale(1.25);
  }
  100% {
    opacity: 0;
    transform: scale(1.4);
  }
}

.intake-card {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  box-shadow: 0 22px 50px rgba(7, 12, 36, 0.08);
}

.intake-fields label {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
  display: block;
  margin-bottom: 0.35rem;
}

.input-field {
  border: 1px solid rgba(8, 15, 40, 0.12);
  border-radius: 12px;
  padding: 0.65rem 0.85rem;
  font-weight: 600;
  margin-bottom: 0;
  background: #f9fafc;
  font-size: 0.95rem;
}

.input-field[data-order-field] {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  min-height: 2.2rem;
}

.input-field.with-icon {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.field-helper {
  margin: 0;
  color: var(--muted);
  font-size: 0.85rem;
}

.order-details {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.order-details-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
}

.order-eyebrow {
  margin: 0;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
}

.order-field-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 0.6rem;
}

.order-field {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.order-field-label {
  margin: 0;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
}

.order-input {
  font-size: 0.95rem;
  letter-spacing: -0.01em;
}

.upload-card {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  background: linear-gradient(135deg, rgba(92, 139, 255, 0.06), rgba(255, 255, 255, 0.9));
}

.dropzone {
  border: 2px dashed rgba(92, 139, 255, 0.5);
  border-radius: 16px;
  padding: 1.2rem;
  text-align: left;
  background: rgba(255, 255, 255, 0.85);
}

.dropzone strong {
  display: block;
  margin-bottom: 0.4rem;
}

.dropzone p {
  margin: 0;
  font-weight: 600;
  color: #1e3ea5;
}

[data-upload-zone].is-dragging {
  border-color: rgba(30, 62, 165, 0.7);
  background: rgba(242, 246, 255, 0.95);
}

[data-upload-zone].is-uploading {
  border-color: rgba(30, 62, 165, 0.45);
  background: rgba(244, 248, 255, 0.95);
}

[data-upload-zone].is-complete {
  border-color: rgba(25, 144, 99, 0.7);
  background: rgba(233, 250, 243, 0.95);
}

.file-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: rgba(30, 62, 165, 0.12);
  color: #1e3ea5;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 0.6rem;
  opacity: 0;
  transform: translate(-120%, -25%);
  transition: opacity 260ms ease, transform 260ms ease, box-shadow 260ms ease;
}

.file-icon {
  font-size: 0.95rem;
}

.upload-message {
  display: block;
  margin-bottom: 0.45rem;
  transition: color 200ms ease;
}

[data-upload-zone].is-dragging .file-chip,
[data-upload-zone].is-uploading .file-chip,
[data-upload-zone].is-complete .file-chip {
  opacity: 1;
  transform: translateY(0);
}

[data-upload-zone].is-complete .file-chip {
  box-shadow: 0 10px 30px rgba(30, 62, 165, 0.2);
}

[data-upload-zone] .upload-status {
  margin: 0 0 0.35rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: #5b6b92;
}

[data-upload-zone].is-complete .upload-message {
  color: #199063;
}

[data-upload-zone].is-complete .upload-status {
  color: #199063;
}

.feature-list {
  list-style: none;
  padding: 0;
  margin: 0.6rem 0 0;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-weight: 600;
  color: var(--text);
}

.feature-list li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.feature-check {
  width: 22px;
  height: 22px;
  border-radius: 8px;
  background: rgba(30, 62, 165, 0.12);
  color: #1e3ea5;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 0.85rem;
}

.summary-card {
  border-radius: 20px;
  border: 1px solid rgba(8, 15, 40, 0.08);
  padding: 1rem;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 18px 40px rgba(7, 12, 36, 0.08);
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  height: 100%;
}

.summary-label-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
}

.summary-label {
  margin: 0;
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #1d2146;
}

.summary-chip {
  padding: 0.2rem 0.75rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  background: rgba(92, 139, 255, 0.15);
  color: #1e3ea5;
}

.summary-checklist {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.summary-checklist li {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  padding: 0.55rem 0.65rem;
  border-radius: 16px;
  background: rgba(8, 15, 40, 0.03);
}

.summary-checklist small {
  display: block;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.7rem;
  color: var(--muted);
}

.summary-checklist strong {
  font-size: 1rem;
  letter-spacing: -0.01em;
}

.ai-brief-card {
  gap: 0.8rem;
}

.ai-brief-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.5rem;
}

.parse-status {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.66rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #9aa2c3;
}

.parse-status.is-active {
  color: #2f4fc7;
  animation: parsePulse 1s ease-in-out infinite;
}

.ai-field-list {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.ai-field {
  border: 1px dashed rgba(8, 15, 40, 0.08);
  border-radius: 12px;
  padding: 0.5rem 0.65rem;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.ai-field small {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.68rem;
  color: var(--muted);
}

.ai-field-value {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  min-height: 1.3em;
}

.ai-value {
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  min-height: 1.2em;
}

.ai-score {
  border: 1px dashed rgba(8, 15, 40, 0.08);
  border-radius: 14px;
  padding: 0.65rem 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.score-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
}

.score-head p {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.7rem;
  color: var(--muted);
}

.score-head strong {
  font-size: 1.05rem;
}

.score-bar {
  width: 100%;
  height: 8px;
  border-radius: 999px;
  background: rgba(8, 15, 40, 0.08);
  overflow: hidden;
}

.score-fill {
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, #1e3ea5, #3bb79e);
}

.score-ready-text {
  margin: 0;
  font-weight: 600;
  font-size: 0.8rem;
  color: #199063;
}

.score-ready-text::before {
  content: '✓';
  margin-right: 0.4rem;
}

.score-ready-text {
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 260ms ease, transform 260ms ease;
}

.score-ready-text.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.typing-text {
  flex: 0 0 auto;
  min-height: 1.3em;
  letter-spacing: -0.01em;
  white-space: nowrap;
}
.typing-text {
  flex: 0 0 auto;
  min-height: 1.3em;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.typing-text-multiline {
  white-space: normal;
  word-wrap: break-word;
  overflow-wrap: break-word;
  word-break: break-word;
  line-height: 1.5;
  display: block;
  width: 100%;
}

.order-field-full {
  grid-column: 1 / -1;
  margin-top: 0.25rem;
}

.order-input-multiline {
  min-height: 3rem;
  align-items: flex-start;
  padding: 0.65rem 0.85rem;
  overflow-wrap: break-word;
  word-break: break-word;
  font-size: 0.92rem;
}

.upload-section {
  margin-top: 0.25rem;
}

.dropzone-compact {
  border: 2px dashed rgba(92, 139, 255, 0.35);
  border-radius: 12px;
  padding: 0.65rem 0.85rem;
  text-align: center;
  background: rgba(255, 255, 255, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  min-height: 2.5rem;
  transition: all 0.25s ease;
  position: relative;
}

.dropzone-compact.is-dragging {
  border-color: rgba(30, 62, 165, 0.6);
  background: rgba(242, 246, 255, 0.95);
}

.dropzone-compact.is-uploading {
  border-color: rgba(30, 62, 165, 0.45);
  background: rgba(244, 248, 255, 0.95);
}

.dropzone-compact.is-complete {
  border-color: rgba(25, 144, 99, 0.6);
  background: rgba(233, 250, 243, 0.95);
}

.dropzone-compact .file-chip {
  margin-bottom: 0;
  font-size: 0.85rem;
  padding: 0.25rem 0.6rem;
  display: none;
}

.dropzone-compact.is-dragging .file-chip,
.dropzone-compact.is-uploading .file-chip,
.dropzone-compact.is-complete .file-chip {
  display: inline-flex;
  animation: scaleIn 0.25s ease;
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.8);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.upload-message-compact {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--muted);
  transition: opacity 0.25s ease;
}

.dropzone-compact.is-dragging .upload-message-compact,
.dropzone-compact.is-uploading .upload-message-compact,
.dropzone-compact.is-complete .upload-message-compact {
  display: none;
}

.upload-status-compact {
  font-size: 0.8rem;
  font-weight: 600;
  color: #5b6b92;
  transition: opacity 0.25s ease;
}

.upload-status-compact:empty {
  display: none;
}

.dropzone-compact.is-complete .upload-status-compact {
  color: #199063;
}

.generate-brief-btn {
  margin-top: 0.65rem;
  width: 100%;
  border: 2px solid #1e3ea5;
  background: #1e3ea5;
  color: #fff;
  border-radius: 14px;
  padding: 0.7rem 1.25rem;
  font-weight: 600;
  font-size: 0.95rem;
  font-family: inherit;
  cursor: pointer;
  position: relative;
  transition: all 0.25s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.generate-brief-btn:hover {
  background: #163288;
  border-color: #163288;
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(30, 62, 165, 0.25);
}

.generate-brief-btn:active {
  transform: translateY(0);
}

.btn-loader {
  width: 18px;
  height: 18px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-top-color: #fff;
  border-radius: 50%;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.generate-brief-btn.is-loading .btn-loader {
  opacity: 1;
  animation: spin 0.8s linear infinite;
}

.generate-brief-btn.is-loading .btn-text {
  opacity: 0.7;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.mockup-screen[data-step="step-1"].auto-demo .ai-brief-card {
  opacity: 0;
  transform: translateX(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.mockup-screen[data-step="step-1"].auto-demo .ai-brief-card.is-visible {
  opacity: 1;
  transform: translateX(0);
}

.mockup-screen[data-step="step-1"].auto-demo [data-order-field="due"] {
  position: relative;
  transition: border-color 220ms ease, box-shadow 220ms ease, background 220ms ease;
}

.mockup-screen[data-step="step-1"].auto-demo [data-order-field="due"] .typing-text {
  opacity: 0;
  transition: opacity 220ms ease;
}

.mockup-screen[data-step="step-1"].auto-demo [data-order-field="due"].is-selecting {
  border-color: rgba(30, 62, 165, 0.35);
  box-shadow: 0 0 0 3px rgba(30, 62, 165, 0.12);
  background: rgba(240, 244, 255, 0.95);
}

.mockup-screen[data-step="step-1"].auto-demo [data-order-field="due"].typing-complete .typing-text {
  opacity: 1;
}

.mockup-screen[data-step="step-1"].auto-demo [data-order-field="due"].is-selecting .calendar-chip,
.mockup-screen[data-step="step-1"].auto-demo .calendar-chip.is-active {
  opacity: 1;
}

.mockup-screen[data-step="step-1"].auto-demo .ai-value {
  opacity: 0;
  transition: opacity 260ms ease;
}

.mockup-screen[data-step="step-1"].auto-demo .ai-field.is-filled .ai-value {
  opacity: 1;
}

.mockup-screen[data-step="step-1"].auto-demo .ai-field.is-active {
  background: rgba(30, 62, 165, 0.06);
}

.mockup-screen[data-step="step-1"].auto-demo .ai-field {
  transition: background 240ms ease;
}

.mockup-screen[data-step="step-1"].auto-demo .score-fill {
  transition: width 420ms ease;
}

.mockup-screen[data-step="step-1"].auto-demo.is-resetting .intake-card,
.mockup-screen[data-step="step-1"].auto-demo.is-resetting .ai-brief-card {
  opacity: 0.12;
  transition: opacity 320ms ease;
}

@keyframes parsePulse {
  0%,
  100% {
    opacity: 0.6;
  }
  50% {
    opacity: 1;
  }
}

.ghost-btn {
  border: 1px solid rgba(8, 15, 40, 0.15);
  background: transparent;
  border-radius: 12px;
  padding: 0.65rem 1rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
}

.match-layout {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
}

.flag-panel,
.comparison-panel {
  border: 1px solid rgba(8, 15, 40, 0.08);
  border-radius: 22px;
  background: #fff;
  padding: 1.15rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  box-shadow: 0 18px 50px rgba(6, 12, 37, 0.08);
}

.panel-head h5 {
  margin: 0.25rem 0 0;
  font-size: 1.05rem;
}

.flag-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
}

.flag-card {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  border: 1px solid rgba(8, 15, 40, 0.08);
  border-radius: 18px;
  padding: 0.75rem 0.95rem;
  background: rgba(250, 251, 255, 0.9);
}

.flag-card.active {
  border-color: rgba(30, 62, 165, 0.35);
  box-shadow: 0 12px 30px rgba(18, 33, 84, 0.12);
}

.flag-image {
  width: 62px;
  height: 42px;
  border-radius: 10px;
  flex: 0 0 auto;
  object-fit: cover;
  border: 1px solid rgba(8, 15, 40, 0.2);
  box-shadow: 0 6px 18px rgba(12, 19, 42, 0.15);
}

.flag-card strong {
  display: block;
  font-size: 1rem;
}

.flag-card p {
  margin: 0.2rem 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.flag-count {
  margin-left: auto;
  font-weight: 700;
  color: #1e3ea5;
  font-size: 0.95rem;
}

.comparison-panel {
  gap: 1rem;
}

.selection-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 0.9rem;
  border: 1px solid rgba(8, 15, 40, 0.08);
  border-radius: 16px;
  background: rgba(245, 248, 255, 0.9);
}

.selection-status {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 600;
  color: #0f183a;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.75rem;
  white-space: nowrap;
}

.selection-number {
  color: #1e3ea5;
  font-weight: 700;
  font-size: 0.85rem;
}

.selection-icon {
  display: inline-flex;
  width: 22px;
  height: 22px;
  border-radius: 8px;
  background: rgba(30, 62, 165, 0.15);
  color: #1e3ea5;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

.btn-compact {
  padding: 0.45rem 1rem;
  font-size: 0.85rem;
  border-radius: 12px;
}

.comparison-panel .btn-compact.btn-outline {
  border-color: rgba(8, 15, 40, 0.2);
}

.factory-scroll {
  border: 1px solid rgba(8, 15, 40, 0.08);
  border-radius: 18px;
  padding: 0.75rem;
  background: rgba(255, 255, 255, 0.95);
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  max-height: 320px;
  overflow: auto;
  position: relative;
}

.factory-scroll::after {
  content: '';
  position: sticky;
  bottom: 0;
  left: 0;
  right: 0;
  height: 30px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.95));
  pointer-events: none;
}

.factory-entry {
  position: relative;
  border-radius: 16px;
  border: 1px solid rgba(8, 15, 40, 0.05);
  padding: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  background: #fff;
}

.factory-entry.selected {
  border-color: rgba(30, 62, 165, 0.3);
  box-shadow: 0 12px 24px rgba(18, 33, 84, 0.12);
}

.factory-row {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.factory-checkbox {
  position: relative;
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
}

.factory-checkbox input {
  opacity: 0;
  position: absolute;
  inset: 0;
  cursor: pointer;
}

.factory-checkbox span {
  position: absolute;
  inset: 0;
  border-radius: 6px;
  border: 2px solid rgba(8, 15, 40, 0.3);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  color: transparent;
  transition: all 0.15s ease;
}

.factory-checkbox input:checked + span {
  background: #1e3ea5;
  border-color: #1e3ea5;
  color: #fff;
}

.factory-meta strong {
  font-size: 1rem;
}

.factory-meta p {
  margin: 0.15rem 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.factory-meta small {
  color: rgba(15, 24, 58, 0.65);
  font-weight: 600;
}

.factory-score {
  margin-left: auto;
  text-align: right;
  min-width: 72px;
  color: #1e3ea5;
}

.factory-score strong {
  display: block;
  font-size: 1.1rem;
}

.factory-score span {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

/* Match score color coding */
.factory-score.score-high {
  color: #10b981;
}

.factory-score.score-medium {
  color: #f59e0b;
}

.factory-score.score-low {
  color: #ef4444;
}

.factory-score.steel {
  color: #0f8a6d;
}

.factory-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: rgba(15, 24, 58, 0.85);
}

.btn-ai-compare {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 2px dashed rgba(30, 62, 165, 0.25);
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(235, 245, 255, 0.5) 0%, rgba(245, 248, 255, 0.8) 100%);
  color: #1e3ea5;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: all 0.25s ease;
  margin-top: 0.5rem;
}

.btn-ai-compare:hover {
  border-color: rgba(30, 62, 165, 0.4);
  background: linear-gradient(135deg, rgba(235, 245, 255, 0.8) 0%, rgba(245, 248, 255, 1) 100%);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(30, 62, 165, 0.15);
}

.btn-ai-compare .ai-sparkle {
  font-size: 1rem;
  animation: sparkle 2s ease-in-out infinite;
}

@keyframes sparkle {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.7;
    transform: scale(1.1);
  }
}

/* Step 2 AI Hint Tags */
.ai-hint {
  position: absolute;
  top: -10px;
  right: 12px;
  padding: 0.35rem 0.65rem;
  border-radius: 8px;
  font-size: 0.75rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  z-index: 10;
  opacity: 0;
  transform: translateY(5px);
  transition: all 0.3s ease;
}

.ai-hint-top {
  background: linear-gradient(135deg, #1e3ea5 0%, #2952cc 100%);
  color: #fff;
  box-shadow: 0 4px 12px rgba(30, 62, 165, 0.35);
}

.ai-hint-warning {
  background: linear-gradient(135deg, #f59e0b 0%, #f97316 100%);
  color: #fff;
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.35);
}

/* Step 2 Animation States */
.mockup-screen[data-step="step-2"].auto-demo .factory-entry {
  opacity: 0;
  transform: translateX(20px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.mockup-screen[data-step="step-2"].auto-demo.is-resetting .factory-entry {
  opacity: 0 !important;
  transform: translateX(20px) !important;
  transition: none !important;
}

.mockup-screen[data-step="step-2"].auto-demo.is-resetting .ai-hint {
  opacity: 0 !important;
  transition: none !important;
}

.mockup-screen[data-step="step-2"].auto-demo.is-resetting .flag-count {
  transition: none !important;
}

.mockup-screen[data-step="step-2"].auto-demo .ai-hint {
  opacity: 0;
  transform: translateY(5px);
}

.mockup-screen[data-step="step-2"].auto-demo .ai-hint.is-revealing {
  opacity: 0.5;
  transform: translateY(2px);
}

.mockup-screen[data-step="step-2"].auto-demo .ai-hint.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.mockup-screen[data-step="step-2"].auto-demo .factory-entry.has-top-match {
  border-color: rgba(30, 62, 165, 0.4);
  box-shadow: 0 8px 24px rgba(30, 62, 165, 0.25);
}

.mockup-screen[data-step="step-2"].auto-demo .factory-entry.is-revealing {
  opacity: 0.5;
  transform: translateX(10px);
}

.mockup-screen[data-step="step-2"].auto-demo .factory-entry.is-visible {
  opacity: 1;
  transform: translateX(0);
}

.mockup-screen[data-step="step-2"].auto-demo .factory-entry.is-selecting {
  animation: pulse-selection 0.3s ease;
}

@keyframes pulse-selection {
  0%, 100% {
    transform: translateX(0) scale(1);
  }
  50% {
    transform: translateX(0) scale(1.02);
    box-shadow: 0 16px 32px rgba(30, 62, 165, 0.2);
  }
}

.mockup-screen[data-step="step-2"].auto-demo .factory-entry.selected {
  border-color: rgba(30, 62, 165, 0.3);
  box-shadow: 0 12px 24px rgba(18, 33, 84, 0.12);
}

.mockup-screen[data-step="step-2"].auto-demo .flag-card.is-animating {
  animation: pulse-flag 0.6s ease infinite alternate;
}

@keyframes pulse-flag {
  from {
    background: rgba(250, 251, 255, 0.9);
  }
  to {
    background: rgba(235, 240, 255, 1);
  }
}

.mockup-screen[data-step="step-2"].auto-demo .flag-card.animation-complete {
  animation: none;
}

.mockup-screen[data-step="step-2"].auto-demo .selection-bar {
  transition: all 0.3s ease;
}

.mockup-screen[data-step="step-2"].auto-demo .selection-bar.is-active {
  background: rgba(235, 245, 255, 1);
  border-color: rgba(30, 62, 165, 0.2);
}

.mockup-screen[data-step="step-2"].auto-demo .btn-compact {
  transition: all 0.3s ease;
  opacity: 0.5;
  pointer-events: none;
}

.mockup-screen[data-step="step-2"].auto-demo .btn-compact.is-active {
  opacity: 1;
  transform: scale(1);
}

.mockup-screen[data-step="step-2"].is-resetting .factory-entry,
.mockup-screen[data-step="step-2"].is-resetting .flag-count,
.mockup-screen[data-step="step-2"].is-resetting .selection-bar {
  opacity: 0.35;
  transition: opacity 0.35s ease;
}

.milestone-track {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 0.75rem;
}

.milestone {
  border-radius: 16px;
  padding: 0.55rem 0.9rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(8, 15, 40, 0.05);
}

.milestone.complete {
  background: rgba(29, 159, 113, 0.15);
  color: #1a805d;
}

.milestone.active {
  background: rgba(92, 139, 255, 0.16);
  color: #1e3ea5;
}

.milestone.active.warning {
  background: rgba(255, 159, 67, 0.2);
  color: #b34a0f;
}

.milestone.pending {
  color: var(--muted);
}

.qc-card header,
.map-card header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.6rem;
}

.qc-card header h5,
.map-card header h5 {
  margin: 0;
  font-size: 1rem;
}

.qc-card header small,
.map-card header small {
  color: var(--muted);
}

.qc-photos {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 0.75rem;
}

.qc-thumb {
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(92, 139, 255, 0.18), rgba(9, 14, 37, 0.08));
  height: 90px;
}

.qc-card figcaption {
  margin-top: 0.35rem;
  font-size: 0.85rem;
  color: var(--muted);
}

.map-visual {
  border-radius: 16px;
  background: radial-gradient(circle at 40% 40%, rgba(92, 139, 255, 0.3), rgba(9, 14, 37, 0.08));
  height: 160px;
  position: relative;
  overflow: hidden;
}

.map-visual.muted {
  background: radial-gradient(circle at 40% 40%, rgba(255, 159, 67, 0.35), rgba(9, 14, 37, 0.08));
}

.ping {
  position: absolute;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: rgba(46, 204, 113, 0.9);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation: ping 1.5s infinite;
}

.ping.warning {
  background: rgba(255, 108, 74, 0.95);
}

@keyframes ping {
  0% {
    transform: translate(-50%, -50%) scale(0.8);
    opacity: 0.9;
  }
  100% {
    transform: translate(-50%, -50%) scale(1.6);
    opacity: 0;
  }
}

.stat-list {
  list-style: none;
  padding: 0;
  margin: 0.8rem 0 0;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.stat-list li {
  display: flex;
  justify-content: space-between;
  font-size: 0.95rem;
  color: var(--muted);
}

.stat-list strong {
  color: var(--text);
}

.ai-alert {
  border: 1px solid rgba(255, 159, 67, 0.4);
  border-radius: 20px;
  padding: 1rem;
  background: rgba(255, 159, 67, 0.1);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.ai-alert small {
  color: var(--muted);
}

.alert-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.btn-mini {
  border-radius: 12px;
  padding: 0.45rem 0.9rem;
  font-size: 0.85rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
}

.btn-mini.primary {
  background: #1e3ea5;
  color: #fff;
}

.btn-mini.ghost {
  background: transparent;
  border: 1px solid rgba(8, 15, 40, 0.2);
  color: var(--text);
}

@media (max-width: 960px) {
  .workflow-layout {
    grid-template-columns: 1fr;
  }

  .workflow-visual {
    margin-top: 2rem;
  }

  .browser-frame {
    position: static;
    height: auto;
  }

  .browser-body {
    min-height: 480px;
    height: auto;
  }
}

@media (max-width: 640px) {
  .workflow-layout {
    gap: 1.5rem;
  }

  .browser-body {
    flex-direction: column;
  }

  .sidebar {
    flex-direction: row;
    width: 100%;
    justify-content: space-between;
  }

  .sidebar-nav {
    flex-direction: row;
  }
}

.split-card.primary {
  color: #b45812;
}

.split-card.backup {
  color: #1b7a4d;
}

.result-card {
  grid-column: span 2;
  text-align: center;
  border-radius: 16px;
  padding: 0.9rem;
  background: rgba(27, 122, 77, 0.12);
  color: #1b7a4d;
  font-weight: 600;
}

.panel-label {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.factory-showcase article {
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 1.5rem;
  background: #fff;
}

.factory-showcase ul {
  padding-left: 1.2rem;
  color: var(--muted);
}

.industries {
  background: #fff;
  text-align: center;
  scroll-margin-top: 80px;
}

.industries-subhead {
  max-width: 760px;
  margin: 0.35rem auto 2.5rem;
  color: var(--muted);
  font-size: 1.15rem;
  line-height: 1.7;
}

.industries-ticker {
  position: relative;
  overflow: hidden;
  border-radius: 999px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: linear-gradient(135deg, #ffffff, #f6f1ea);
  padding: 0.9rem 0;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.05);
}

.ticker-track {
  display: inline-flex;
  gap: 0;
  min-width: max-content;
  white-space: nowrap;
  animation: industries-marquee 28s linear infinite;
  font-weight: 600;
  letter-spacing: 0.18em;
}

.ticker-item {
  color: #111;
  opacity: 0.9;
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
}

.ticker-item::after {
  content: '•';
  margin: 0 1.1rem;
  opacity: 0.35;
  font-weight: 400;
  letter-spacing: normal;
}

.ticker-item:last-child::after {
  content: '';
  margin: 0;
}

.ticker-icon {
  font-size: 1.25rem;
  line-height: 1;
}

.industries-cta {
  margin-top: 2.5rem;
  display: inline-flex;
  justify-content: center;
  min-width: 320px;
  font-size: 1.05rem;
  padding: 1.1rem 2.8rem;
  border-radius: 999px;
  background: linear-gradient(135deg, #121212, #1f1f1f);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.28), 0 12px 24px rgba(0, 0, 0, 0.18);
  text-decoration: none;
  letter-spacing: 0.04em;
  gap: 0.6rem;
  align-items: center;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.industries-cta::after {
  content: '→';
  font-size: 1.15rem;
  transition: transform 0.25s ease;
}

.industries-cta:hover,
.industries-cta:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.32);
  background: linear-gradient(135deg, #000000, #1a1a1a);
}

.industries-cta:hover::after,
.industries-cta:focus-visible::after {
  transform: translateX(4px);
}

@keyframes industries-marquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

.network {
  background: var(--bg-soft);
}

.network-head {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  align-items: flex-start;
}

.network-pillars {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.network-pillars span {
  padding: 0.5rem 1rem;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--border);
  font-weight: 600;
  font-size: 0.9rem;
}

.factory-showcase {
  margin-top: 2.5rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
}

.request {
  background: linear-gradient(180deg, #fafbfc 0%, #f0f2f5 100%);
  position: relative;
  overflow: hidden;
}

.request::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(27, 102, 255, 0.2), transparent);
}

.request h2 {
  background: linear-gradient(135deg, #0a0f1e 0%, #1a2544 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.request-lead {
  max-width: 640px;
  font-size: 1.15rem;
  line-height: 1.7;
  color: rgba(18, 18, 18, 0.75);
}

.request-lead strong {
  font-weight: 600;
  color: #0a0f1e;
}

.request-form {
  margin-top: 2.5rem;
  border: 1.5px solid rgba(8, 15, 40, 0.08);
  border-radius: 40px;
  padding: clamp(2rem, 4vw, 3rem);
  box-shadow: 0 8px 24px rgba(8, 15, 40, 0.04), 0 30px 80px rgba(8, 15, 40, 0.08);
  background: linear-gradient(145deg, #ffffff 0%, #fafbfc 100%);
  position: relative;
  overflow: hidden;
}

.request-form::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1.5px;
  background: linear-gradient(135deg, rgba(27, 102, 255, 0.08), transparent, rgba(27, 102, 255, 0.08));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.request-form-head {
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-size: 0.72rem;
  color: rgba(108, 115, 125, 0.7);
  margin-bottom: 1.8rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.request-form-head::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, rgba(108, 115, 125, 0.15), transparent);
}

.form-grid.request-fields {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.2rem;
}

.request-fields label {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.request-fields label.full {
  grid-column: 1 / -1;
}

.form-grid label {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-weight: 600;
  font-size: 0.95rem;
  color: #0a0f1e;
}

input,
select,
textarea {
  border-radius: 16px;
  border: 1.5px solid rgba(8, 15, 40, 0.1);
  padding: 0.95rem 1.2rem;
  font-size: 1rem;
  font-family: inherit;
  background: #fff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  color: #0a0f1e;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: rgba(27, 102, 255, 0.4);
  box-shadow: 0 0 0 4px rgba(27, 102, 255, 0.08);
}

input::placeholder,
textarea::placeholder {
  color: rgba(108, 115, 125, 0.5);
}

textarea {
  resize: vertical;
  min-height: 120px;
}

.request-form .btn {
  margin-top: 2rem;
  width: 100%;
  font-size: 1.08rem;
  padding: 1.3rem 2rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  background: linear-gradient(135deg, #0a0f1e 0%, #1a2544 100%);
  box-shadow: 0 4px 14px rgba(10, 15, 30, 0.2), 0 12px 32px rgba(10, 15, 30, 0.15);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.request-form .btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(10, 15, 30, 0.25), 0 18px 48px rgba(10, 15, 30, 0.2);
}

.request-form .btn:active {
  transform: translateY(0);
}

.form-status {
  margin: 1rem 0 0;
  font-size: 0.92rem;
  font-weight: 600;
  color: rgba(108, 115, 125, 0.9);
}

.form-status[data-status-variant='success'] {
  color: #1b7a4d;
}

.form-status[data-status-variant='error'] {
  color: #b03131;
}

.optional {
  font-weight: 400;
  font-size: 0.85rem;
  color: var(--muted);
}

.site-footer {
  border-top: 1px solid var(--border);
  padding: 2rem clamp(1.5rem, 5vw, 5rem);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  color: var(--muted);
}

.footer-links {
  display: inline-flex;
  gap: 1rem;
}

.footer-links a {
  color: inherit;
  text-decoration: none;
  font-weight: 600;
}

@media (max-width: 900px) {
  .site-header {
    flex-direction: column;
    gap: 0.75rem;
  }
  .nav-links {
    flex-wrap: wrap;
    justify-content: center;
  }
  .workflow-visual {
    min-height: 360px;
  }

  .screen-grid--dual {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .step-three-grid {
    grid-template-columns: 1fr;
  }

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

  .trust-grid {
    grid-template-columns: 1fr;
  }

  .trust-dossiers {
    min-height: 360px;
    margin-top: 1rem;
  }
}

@media (max-width: 600px) {
  .hero-actions {
    flex-direction: column;
  }
  .product-head {
    flex-direction: column;
  }

  .form-grid.request-fields {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}

/* Step 4 - Auto-playing Animation Styles */
.step-four-head small {
  color: var(--muted);
  margin-top: 0.3rem;
}

.step-four-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 1rem;
}

.mockup-screen[data-step="step-4"] .metric-grid {
  margin-bottom: 5rem;
}

.mockup-screen[data-step="step-4"] {
  position: relative;
  overflow: visible;
}

/* Bottom Alert Bar */
.bottom-alert-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(255, 159, 67, 0.15);
  border-top: 2px solid rgba(255, 159, 67, 0.4);
  border-radius: 20px 20px 0 0;
  padding: 0.9rem 1.2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  transform: translateY(100%);
  opacity: 0;
  transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.5s ease;
  z-index: 10;
  box-shadow: 0 -8px 24px rgba(255, 159, 67, 0.2);
}

.bottom-alert-bar.is-visible {
  transform: translateY(0);
  opacity: 1;
}

.bottom-alert-bar.is-resolved {
  background: rgba(53, 176, 124, 0.15);
  border-top-color: rgba(53, 176, 124, 0.4);
  box-shadow: 0 -8px 24px rgba(53, 176, 124, 0.2);
}

.alert-bar-content {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex: 1;
}

.alert-icon {
  font-size: 1.3rem;
  flex-shrink: 0;
}

.alert-text {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.alert-text strong {
  font-size: 0.95rem;
  color: #c45a12;
}

.bottom-alert-bar.is-resolved .alert-text strong {
  color: #199063;
}

.alert-text span {
  font-size: 0.85rem;
  color: var(--muted);
}

.btn-alert-action {
  border: 2px solid #1e3ea5;
  background: #1e3ea5;
  color: #fff;
  border-radius: 12px;
  padding: 0.6rem 1.2rem;
  font-weight: 600;
  font-size: 0.9rem;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn-alert-action:hover {
  background: #163288;
  border-color: #163288;
  transform: translateY(-1px);
}

.btn-alert-action.is-clicked {
  animation: button-flash 0.6s ease;
}

@keyframes button-flash {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 4px 12px rgba(30, 62, 165, 0.25);
  }
  50% {
    transform: scale(1.05);
    box-shadow: 0 8px 24px rgba(30, 62, 165, 0.5);
    background: #2952cc;
  }
}

/* Side Solution Panel */
.side-solution-panel {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: clamp(340px, 52%, 480px);
  background: #fff;
  border-left: 1px solid rgba(8, 15, 40, 0.12);
  border-radius: 22px 0 0 22px;
  box-shadow: -8px 0 32px rgba(8, 15, 40, 0.15);
  display: flex;
  flex-direction: column;
  padding: 1.5rem 1.8rem;
  gap: 1.2rem;
  transform: translateX(100%);
  opacity: 0;
  transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.6s ease;
  z-index: 15;
  overflow-y: auto;
}

.side-solution-panel.is-visible {
  transform: translateX(0);
  opacity: 1;
}

.solution-header h5 {
  margin: 0 0 0.2rem;
  font-size: 1.25rem;
  color: var(--text);
  letter-spacing: -0.01em;
}

.solution-subtitle {
  margin: 0;
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.35;
}

.solution-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.95rem;
}

.solution-info {
  background: rgba(8, 15, 40, 0.03);
  border-radius: 14px;
  padding: 0.9rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.solution-info p {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.5;
}

.solution-info strong {
  color: var(--text);
  font-weight: 600;
}

.solution-stats {
  border: 1px solid rgba(8, 15, 40, 0.08);
  border-radius: 14px;
  padding: 0.9rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.stat-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.92rem;
  gap: 1rem;
}

.stat-item span {
  color: var(--muted);
}

.stat-item strong {
  color: var(--text);
  font-weight: 600;
  white-space: nowrap;
}

.solution-actions {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  padding-top: 0.6rem;
  border-top: 1px solid rgba(8, 15, 40, 0.08);
}

.btn-solution-primary {
  border: 2px solid #1e3ea5;
  background: #1e3ea5;
  color: #fff;
  border-radius: 13px;
  padding: 0.8rem 1.3rem;
  font-weight: 600;
  font-size: 0.96rem;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-solution-primary:hover {
  background: #163288;
  border-color: #163288;
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(30, 62, 165, 0.25);
}

.btn-solution-primary.is-clicked {
  animation: button-flash 0.6s ease;
}

.btn-solution-secondary {
  border: 1px solid rgba(8, 15, 40, 0.2);
  background: transparent;
  color: var(--text);
  border-radius: 13px;
  padding: 0.75rem 1.2rem;
  font-weight: 600;
  font-size: 0.92rem;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-solution-secondary:hover {
  background: rgba(8, 15, 40, 0.05);
  border-color: rgba(8, 15, 40, 0.3);
}

/* Step 4 Status Animations */
.mockup-screen[data-step="step-4"].auto-demo .status-chip {
  transition: all 0.4s ease;
}

.mockup-screen[data-step="step-4"].auto-demo .status-chip.status-danger {
  background: rgba(239, 68, 68, 0.16);
  color: #c72d2d;
  border-color: rgba(239, 68, 68, 0.25);
  animation: status-flash 0.8s ease-in-out 3;
}

@keyframes status-flash {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.6;
  }
}

.mockup-screen[data-step="step-4"].auto-demo .metric-positive {
  transition: color 0.4s ease;
}

.mockup-screen[data-step="step-4"].auto-demo .metric-danger {
  color: #c72d2d;
}

/* Responsive adjustments for Step 4 */
@media (max-width: 900px) {
  .step-four-grid {
    grid-template-columns: 1fr;
  }

  .side-solution-panel {
    width: 85%;
  }
}
.ticker-track span > span:first-child {
  font-size: 1.25rem;
  line-height: 1;
}
