:root {
  color-scheme: light;
  --ink: #05070d;
  --muted: #657084;
  --line: #dce4ef;
  --paper: #f4f8fc;
  --panel: #ffffff;
  --green: #1268ff;
  --teal: #064bd8;
  --gold: #10294d;
  --coral: #c75b47;
  --blue: #1268ff;
  --steel: #6f7f86;
  --blue-soft: #eaf2ff;
  --shadow: 0 24px 70px rgba(10, 31, 68, 0.12);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: linear-gradient(180deg, #ffffff 0%, #f7fbff 100%);
}

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

main {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0 64px;
}

.site-header {
  width: min(1180px, calc(100% - 32px));
  margin: 18px auto 0;
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px 18px;
  border: 1px solid rgba(220, 228, 239, 0.9);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
}

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

.brand-mark {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  background: var(--green);
  color: white;
  font-weight: 800;
  border-radius: 8px;
}

.brand small,
small {
  display: block;
  color: var(--muted);
  margin-top: 3px;
}

nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 14px;
}

nav a,
nav button {
  font: inherit;
  color: var(--ink);
  background: transparent;
  border: 0;
  cursor: pointer;
}

.nav-pill,
.icon-btn,
.secondary-action {
  border: 1px solid var(--line);
  background: white;
  padding: 10px 14px;
  min-height: 42px;
  border-radius: 8px;
}

.hero {
  min-height: calc(100vh - 150px);
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(260px, 0.7fr);
  align-items: center;
  gap: 42px;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(circle at 78% 18%, rgba(18, 104, 255, 0.13), transparent 31%),
    linear-gradient(180deg, #ffffff 0%, #f7fbff 100%);
}

.hero h1 {
  margin: 0;
  font-size: clamp(2.6rem, 7vw, 6.5rem);
  line-height: 0.92;
  max-width: 820px;
}

.split-page h1,
.page-heading h1 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.6rem);
  line-height: 1.04;
  max-width: 760px;
}

.hero p,
.lead {
  color: var(--muted);
  font-size: 1.12rem;
  line-height: 1.7;
  max-width: 680px;
}

.eyebrow {
  margin: 0 0 12px;
  text-transform: uppercase;
  font-weight: 800;
  letter-spacing: 0;
  color: var(--green);
}

.help-line {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin: 18px 0 0;
  padding: 12px 14px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.7);
  color: var(--muted);
  font-weight: 800;
  border-radius: 8px;
}

.help-line a {
  color: var(--green);
}

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

.primary-action,
.secondary-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  border: 0;
  border-radius: 8px;
  padding: 12px 18px;
  font-weight: 800;
  cursor: pointer;
}

.primary-action {
  background: var(--green);
  color: white;
}

.small-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  border: 0;
  border-radius: 8px;
  background: var(--blue);
  color: white;
  padding: 9px 14px;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.secondary-action {
  color: var(--green);
  background: var(--blue-soft);
  border: 1px solid rgba(18, 104, 255, 0.2);
}

.signal-panel,
.form-card,
.policy-result {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  padding: 26px;
}

.signal-panel {
  min-height: 320px;
  display: grid;
  align-content: center;
  gap: 18px;
}

.signal-line {
  height: 18px;
  width: 100%;
  background: var(--line);
}

.signal-line.active {
  background: var(--teal);
}

.signal-line.short {
  width: 68%;
  background: var(--gold);
}

.feature-band,
.metric-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  padding: 28px 0;
}

.feature-band article,
.metric-row div,
.customer-card,
.timeline-item {
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 22px;
}

.feature-band span {
  color: var(--gold);
  font-weight: 900;
}

.feature-band h2,
.customer-card h2 {
  margin: 8px 0;
}

.feature-band p,
.customer-card p,
.timeline-item p {
  color: var(--muted);
  line-height: 1.6;
}

.split-page,
.page-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
  gap: 42px;
  align-items: start;
  padding: 54px 0 26px;
}

.page-heading.single {
  grid-template-columns: 1fr;
}

.section-heading {
  padding: 36px 0 14px;
}

.action-heading,
.modal-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(1.5rem, 3vw, 2.3rem);
}

.form-card {
  display: grid;
  gap: 18px;
}

.compact-form {
  gap: 12px;
  padding: 20px;
}

.compact-form .eyebrow {
  margin-bottom: 0;
}

label {
  display: grid;
  gap: 8px;
  font-weight: 800;
}

input,
select {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  color: var(--ink);
  padding: 10px 12px;
  font: inherit;
}

.date-picker {
  display: flex;
  gap: 10px;
}

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

.metric-row strong {
  display: block;
  font-size: 2.2rem;
}

.metric-row span {
  color: var(--muted);
}

.table-shell {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.82);
}

table {
  width: 100%;
  min-width: 860px;
  border-collapse: collapse;
}

th,
td {
  padding: 16px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

th {
  color: var(--muted);
  font-size: 0.84rem;
  text-transform: uppercase;
}

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 10px;
  background: rgba(49, 95, 159, 0.12);
  color: var(--blue);
  border-radius: 8px;
  font-weight: 800;
  text-transform: capitalize;
}

.badge.claim {
  background: rgba(199, 91, 71, 0.14);
  color: var(--coral);
}

.badge.registration {
  background: var(--blue-soft);
  color: var(--green);
}

.badge.order-status,
.badge.ready-to-ship,
.badge.shipped {
  background: rgba(49, 95, 159, 0.12);
  color: var(--blue);
}

.badge.in-production,
.badge.active,
.badge.entered {
  background: var(--blue-soft);
  color: var(--green);
}

.badge.delayed {
  background: rgba(199, 91, 71, 0.14);
  color: var(--coral);
}

.badge.complete,
.badge.cancelled {
  background: rgba(111, 127, 134, 0.14);
  color: var(--steel);
}

.status-form {
  min-width: 135px;
}

.customer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}

.customer-card span {
  color: var(--green);
  font-weight: 900;
}

.customer-card div {
  display: flex;
  gap: 14px;
  color: var(--muted);
}

.customer-card strong {
  color: var(--ink);
}

.timeline {
  display: grid;
  gap: 14px;
}

.timeline-item {
  display: grid;
  gap: 10px;
}

.timeline-item div {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

.policy-result {
  margin: 20px 0;
}

.policy-result h2 {
  margin: 0;
  font-size: 2.1rem;
}

.order-form {
  grid-template-columns: repeat(6, minmax(0, 1fr));
  align-items: end;
  margin-bottom: 18px;
}

.customer-add-form {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  align-items: end;
  margin-bottom: 18px;
}

.modal-open {
  overflow: hidden;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(5, 7, 13, 0.58);
}

.modal-backdrop[hidden] {
  display: none;
}

.modal-panel {
  width: min(560px, 100%);
  max-height: min(760px, calc(100vh - 40px));
  overflow-y: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  box-shadow: var(--shadow);
  padding: 24px;
}

.modal-panel.wide-modal {
  width: min(760px, 100%);
}

.modal-heading {
  margin-bottom: 18px;
}

.modal-heading h2 {
  margin: 0;
  font-size: clamp(1.7rem, 4vw, 2.4rem);
}

.modal-close {
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--blue-soft);
  color: var(--ink);
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

.modal-form {
  box-shadow: none;
  padding: 0;
  border: 0;
}

.order-form label:nth-child(2),
.order-form label:nth-child(6) {
  grid-column: span 2;
}

.order-list,
.customer-order-grid {
  display: grid;
  gap: 16px;
}

.order-card,
.customer-order-card {
  display: grid;
  gap: 14px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 22px;
}

.order-card-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(180px, 240px);
  gap: 14px;
}

.customer-order-grid {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.customer-order-card h3 {
  margin: 0;
  font-size: 1.7rem;
}

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

.customer-order-card dl {
  display: grid;
  gap: 10px;
  margin: 0;
}

.customer-order-card dl div {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  border-top: 1px solid var(--line);
  padding-top: 10px;
}

.customer-order-card dt {
  color: var(--muted);
  font-weight: 800;
}

.customer-order-card dd {
  margin: 0;
  font-weight: 800;
  text-align: right;
}

.empty {
  color: var(--muted);
  padding: 28px;
  text-align: center;
}

.wide {
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.flash-stack {
  width: min(1180px, calc(100% - 32px));
  margin: 16px auto 0;
}

.flash {
  background: white;
  border-left: 5px solid var(--coral);
  border-radius: 8px;
  padding: 12px 16px;
}

@media (max-width: 760px) {
  .site-header,
  .hero,
  .split-page,
  .page-heading {
    grid-template-columns: 1fr;
  }

  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

  nav {
    justify-content: flex-start;
  }

  .hero {
    min-height: auto;
    padding: 52px 0 28px;
  }

  .feature-band,
  .metric-row {
    grid-template-columns: 1fr;
  }

  .date-picker {
    flex-direction: column;
  }

  .action-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .order-form,
  .customer-add-form,
  .order-card-top {
    grid-template-columns: 1fr;
  }

  .order-form label:nth-child(2),
  .order-form label:nth-child(6) {
    grid-column: auto;
  }
}
