:root {
  --midnight: #111b3a;
  --green: #1db954;
  --mist: #f7f9fc;
  --ice: #e7edf5;
  --slate: #58667a;
  --graphite: #1e2430;
  --white: #ffffff;
  --shadow: 0 24px 70px rgba(17, 27, 58, 0.14);
  --radius-lg: 32px;
  --radius-md: 22px;
  color: var(--graphite);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--mist);
}

* {
  box-sizing: border-box;
}

html {
  overflow-x: clip;
  scroll-behavior: smooth;
}

body {
  overflow-x: clip;
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at top left, rgba(29, 185, 84, 0.13), transparent 34rem),
    linear-gradient(180deg, var(--white) 0%, var(--mist) 44%, var(--white) 100%);
}

body,
button,
a {
  font: inherit;
}

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

a:focus-visible,
button:focus-visible,
.table-wrap:focus-visible {
  outline: 3px solid rgba(29, 185, 84, 0.55);
  outline-offset: 4px;
}

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

.success-bar {
  position: fixed;
  top: 1rem;
  left: 50%;
  z-index: 30;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.8rem;
  width: min(720px, calc(100% - 32px));
  padding: 0.9rem 0.95rem;
  border: 1px solid rgba(255, 255, 255, 0.62);
  border-radius: 20px;
  background:
    linear-gradient(135deg, rgba(16, 114, 50, 0.98), rgba(29, 185, 84, 0.94)),
    #107232;
  color: var(--white);
  font-weight: 800;
  line-height: 1.5;
  box-shadow: 0 22px 60px rgba(17, 27, 58, 0.24);
  transform: translateX(-50%);
}

.success-bar[hidden] {
  display: none;
}

.success-bar-icon {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  color: var(--white);
  font-size: 1.05rem;
  font-weight: 900;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22);
}

.success-bar p {
  min-width: 0;
}

.success-bar-close {
  display: inline-grid;
  flex: 0 0 auto;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: var(--white);
  font-size: 1.35rem;
  font-weight: 800;
  line-height: 1;
}

.success-bar-close:hover {
  background: rgba(255, 255, 255, 0.22);
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1,
h2,
h3 {
  color: var(--midnight);
  font-family: Manrope, Inter, sans-serif;
  letter-spacing: -0.045em;
  line-height: 1.02;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  width: 100%;
  margin: 0;
  padding: 1rem max(16px, calc((100% - 1180px) / 2));
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(20px);
  box-shadow: 0 1px 0 rgba(231, 237, 245, 0.72);
}

.brand img {
  width: 200px;
  height: auto;
}

.site-footer img {
  width: 125px;
  height: auto;
}

.site-header nav {
  display: flex;
  align-items: center;
  gap: 1.35rem;
  color: var(--slate);
  font-weight: 700;
}

.site-header nav a:not(.button):hover {
  color: var(--midnight);
}

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

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(420px, 0.86fr);
  align-items: start;
  gap: clamp(2rem, 5vw, 5rem);
  min-height: calc(100vh - 96px);
  padding: clamp(3.5rem, 8vw, 7rem) 0 clamp(2rem, 4vw, 3rem);
}

.hero-copy {
  display: grid;
  gap: 1.6rem;
  min-width: 0;
}

.hero-copy > *,
.dashboard-topbar > div {
  min-width: 0;
}

.hero-copy h1,
.hero-lede,
.dashboard-subtitle {
  overflow-wrap: anywhere;
}

.eyebrow {
  color: var(--green);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 780px;
  font-size: clamp(3.4rem, 9vw, 6.9rem);
}

.hero-lede {
  max-width: 650px;
  color: var(--slate);
  font-size: clamp(1.08rem, 2vw, 1.32rem);
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 0.4rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0.95rem 1.35rem;
  border: 1px solid var(--green);
  border-radius: 999px;
  background: var(--green);
  color: var(--midnight);
  font-weight: 800;
  box-shadow: 0 14px 28px rgba(29, 185, 84, 0.24);
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 34px rgba(29, 185, 84, 0.28);
}

.button-small {
  min-height: 44px;
  padding: 0.75rem 1.1rem;
}

.button-secondary {
  background: var(--white);
  border-color: var(--ice);
  color: var(--midnight);
  box-shadow: none;
}

.button-on-dark {
  background: var(--white);
  border-color: var(--white);
  color: var(--midnight);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.24);
}

.dashboard-card {
  position: relative;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  border: 1px solid rgba(231, 237, 245, 0.95);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(247, 249, 252, 0.94)),
    var(--white);
  box-shadow: var(--shadow);
}

.dashboard-card::before {
  position: absolute;
  inset: 0 0 auto 0;
  height: 9px;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  background: linear-gradient(90deg, var(--green), #75e69c, var(--midnight));
  content: "";
}

.dashboard-glow {
  position: absolute;
  right: -46px;
  top: 38px;
  width: 190px;
  height: 190px;
  border-radius: 999px;
  background: rgba(29, 185, 84, 0.12);
  filter: blur(12px);
  pointer-events: none;
}

.dashboard-topbar {
  position: relative;
  display: flex;
  min-width: 0;
  align-items: start;
  justify-content: space-between;
  gap: 1rem;
  padding: 2rem 2rem 1.35rem;
}

.dashboard-topbar h2 {
  margin-top: 0.45rem;
  font-size: clamp(1.8rem, 4vw, 2.7rem);
}

.dashboard-subtitle {
  max-width: 440px;
  margin-top: 0.65rem;
  color: var(--slate);
  font-size: 0.96rem;
  font-weight: 700;
  line-height: 1.55;
}

.live-badge,
.status {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 800;
  white-space: nowrap;
}

.live-badge {
  padding: 0.44rem 0.72rem;
  background: rgba(29, 185, 84, 0.12);
  color: #107232;
}

.metric-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.85rem;
  padding: 0 2rem 1.35rem;
}

.metric-card {
  padding: 1rem;
  border: 1px solid rgba(231, 237, 245, 0.95);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 14px 36px rgba(17, 27, 58, 0.06);
}

.metric-card span {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.metric-card span::before {
  width: 0.52rem;
  height: 0.52rem;
  border-radius: 999px;
  background: var(--ice);
  content: "";
}

.metric-good {
  border-color: rgba(29, 185, 84, 0.42);
  background: linear-gradient(180deg, rgba(29, 185, 84, 0.1), rgba(255, 255, 255, 0.88));
}

.metric-good span::before {
  background: var(--green);
  box-shadow: 0 0 0 4px rgba(29, 185, 84, 0.14);
}

.metric-good strong {
  color: #107232;
}

.metric-caution {
  border-color: rgba(245, 158, 11, 0.42);
  background: linear-gradient(180deg, rgba(245, 158, 11, 0.12), rgba(255, 255, 255, 0.88));
}

.metric-caution span::before {
  background: #f59e0b;
  box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.16);
}

.metric-caution strong {
  color: #9a5b00;
}

.metric-grid span,
table caption {
  color: var(--slate);
  font-size: 0.78rem;
  font-weight: 700;
}

.metric-grid strong {
  display: block;
  margin-top: 0.32rem;
  color: var(--midnight);
  font-family: Manrope, Inter, sans-serif;
  font-size: 1.65rem;
}

.metric-grid .metric-good strong {
  color: #107232;
}

.metric-grid .metric-caution strong {
  color: #9a5b00;
}

.metric-grid small {
  display: block;
  margin-top: 0.22rem;
  color: var(--slate);
  font-size: 0.76rem;
  font-weight: 800;
}

.queue-toolbar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 1rem;
  padding: 0 2rem 1rem;
}

.scroll-hint {
  flex: 0 0 auto;
  padding: 0.52rem 0.72rem;
  border: 1px solid rgba(29, 185, 84, 0.28);
  border-radius: 999px;
  background: rgba(29, 185, 84, 0.1);
  color: #107232;
  font-size: 0.76rem;
  font-weight: 900;
  white-space: nowrap;
}

.scroll-hint span {
  display: inline-block;
  margin-left: 0.25rem;
  animation: nudge-right 1.4s ease-in-out infinite;
}

@keyframes nudge-right {
  0%, 100% {
    transform: translateX(0);
  }

  50% {
    transform: translateX(4px);
  }
}

.table-wrap {
  position: relative;
  display: block;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  padding: 0 2rem 8rem;
  margin-bottom: -6rem;
  scrollbar-color: var(--green) var(--ice);
  overscroll-behavior-x: contain;
  scrollbar-width: thin;
}

.table-wrap::-webkit-scrollbar {
  height: 10px;
}

.table-wrap::-webkit-scrollbar-track {
  border-radius: 999px;
  background: var(--ice);
}

.table-wrap::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: var(--green);
}

table {
  width: 100%;
  min-width: 1080px;
  border-collapse: separate;
  border-spacing: 0;
  border: 1px solid var(--ice);
  border-radius: 22px;
  background: var(--white);
  box-shadow: 0 16px 40px rgba(17, 27, 58, 0.07);
}

table caption {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

th,
td {
  padding: 0.92rem 0.85rem;
  border-bottom: 1px solid var(--ice);
  text-align: left;
}

th {
  background: #f9fbfe;
  color: var(--slate);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

th:first-child {
  border-top-left-radius: 22px;
}

th:last-child {
  border-top-right-radius: 22px;
}

.sort-button {
  display: inline-flex;
  align-items: center;
  gap: 0.28rem;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  font-weight: 900;
  letter-spacing: inherit;
  text-transform: inherit;
  cursor: pointer;
}

.sort-button:hover,
.sort-button.is-active {
  color: var(--midnight);
}

.sort-arrows {
  position: relative;
  width: 0.62rem;
  height: 0.82rem;
  opacity: 0.6;
}

.sort-arrows::before,
.sort-arrows::after {
  position: absolute;
  left: 0;
  font-size: 0.58rem;
  line-height: 1;
}

.sort-arrows::before {
  top: -0.1rem;
  content: "▲";
}

.sort-arrows::after {
  bottom: -0.1rem;
  content: "▼";
}

.sort-button[data-sort-direction="asc"] .sort-arrows::before,
.sort-button[data-sort-direction="desc"] .sort-arrows::after {
  color: var(--green);
  opacity: 1;
}

.sort-button[data-sort-direction="asc"] .sort-arrows::after,
.sort-button[data-sort-direction="desc"] .sort-arrows::before {
  opacity: 0.2;
}

td {
  color: var(--graphite);
  font-size: 0.86rem;
  font-weight: 750;
  vertical-align: middle;
}

tbody tr {
  cursor: pointer;
  transition: background 160ms ease, transform 160ms ease;
}

tbody tr:hover,
tbody tr:focus-visible {
  background: rgba(29, 185, 84, 0.045);
}

tbody tr:focus-visible {
  outline: 3px solid rgba(29, 185, 84, 0.45);
  outline-offset: -3px;
}

tbody tr:last-child td {
  border-bottom: 0;
}

.case-meta {
  display: block;
  margin-top: 0.2rem;
  color: var(--slate);
  font-size: 0.72rem;
  font-weight: 800;
}

.status,
.sla-badge {
  padding: 0.38rem 0.58rem;
}

.sla-badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 800;
  white-space: nowrap;
}

.sla-ok {
  background: rgba(29, 185, 84, 0.12);
  color: #107232;
}

.sla-overdue {
  background: #fde8e8;
  color: #b42318;
}

.status-approved {
  background: rgba(29, 185, 84, 0.14);
  color: #107232;
}

.status-in-review {
  background: rgba(17, 27, 58, 0.1);
  color: var(--midnight);
}

.status-needs-info {
  background: #fff3cf;
  color: #805c00;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.sample-case-modal {
  width: min(560px, calc(100% - 32px));
  padding: 0;
  border: 0;
  border-radius: 28px;
  background: transparent;
  color: var(--graphite);
}

.sample-case-modal::backdrop {
  background: rgba(17, 27, 58, 0.62);
  backdrop-filter: blur(8px);
}

.sample-case-card .button {
  justify-self: start;
  margin-top: 0.35rem;
}

.pillars,
.process,
.features {
  padding: clamp(3.5rem, 8vw, 6rem) 0;
}

.section-heading {
  display: grid;
  gap: 0.75rem;
  max-width: 720px;
  margin-bottom: 2rem;
}

.section-heading h2,
.cta-band h2 {
  font-size: clamp(2rem, 5vw, 4.1rem);
}

.pillar-grid,
.feature-grid,
.process-flow {
  display: grid;
  gap: 1rem;
}

.pillar-grid {
  grid-template-columns: repeat(5, 1fr);
}

.pillar-card,
.feature-card,
.process-step {
  border: 1px solid var(--ice);
  border-radius: var(--radius-md);
  background: var(--white);
  box-shadow: 0 12px 36px rgba(17, 27, 58, 0.06);
}

.pillar-card {
  min-height: 170px;
  padding: 1.25rem;
}

.pillar-card span {
  color: var(--green);
  font-size: 0.78rem;
  font-weight: 900;
}

.pillar-card h3 {
  margin-top: 3.2rem;
  font-size: 1.45rem;
}

.process-flow {
  position: relative;
  grid-template-columns: repeat(3, 1fr);
}

.process-step {
  position: relative;
  padding: 1.5rem;
}

.step-number {
  display: inline-grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 16px;
  background: var(--midnight);
  color: var(--white);
  font-weight: 900;
}

.process-step h3,
.feature-card h3 {
  margin-top: 1.2rem;
  font-size: 1.5rem;
}

.process-step p,
.pillar-grid p,
.feature-card p,
.footer-inner p {
  margin-top: 0.75rem;
  color: var(--slate);
  line-height: 1.7;
}

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

.feature-card {
  padding: 1.5rem;
}

.feature-icon {
  width: 56px;
  height: 56px;
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(29, 185, 84, 0.15), rgba(29, 185, 84, 0)),
    var(--ice);
}

.cta-band {
  margin-top: 3rem;
  background: var(--midnight);
  color: var(--white);
}

.cta-inner {
  display: grid;
  justify-items: start;
  gap: 1.4rem;
  padding: clamp(3.5rem, 8vw, 5rem) 0;
}

.cta-band h2 {
  max-width: 860px;
  color: var(--white);
}

.site-footer {
  background: var(--white);
}

.footer-inner {
  display: grid;
  grid-template-columns: auto minmax(240px, 1fr) auto;
  align-items: center;
  gap: 2rem;
  padding: 2rem 0;
}

.footer-inner p {
  margin-top: 0;
}

.copyright {
  font-size: 0.9rem;
  white-space: nowrap;
}

@media (max-width: 980px) {
  .hero,
  .pillar-grid,
  .feature-grid,
  .process-flow,
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .pillar-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-inner {
    justify-items: start;
  }
}

@media (max-width: 720px) {
  .site-header {
    align-items: flex-start;
    padding-block: 0.85rem;
  }

  .site-header nav {
    justify-content: flex-end;
    gap: 0.7rem;
    font-size: 0.84rem;
  }

  .site-header nav a:not(.button) {
    display: none;
  }

  .brand img,
  .site-footer img {
    width: 166px;
  }

  .hero.section-shell {
    width: 100%;
    max-width: 100%;
    padding-inline: 16px;
    overflow: hidden;
  }

  .hero h1 {
    font-size: clamp(3rem, 15vw, 4.4rem);
  }

  .hero-actions,
  .hero-actions .button,
  .dashboard-card {
    width: 100%;
    max-width: 100%;
  }

  .dashboard-topbar,
  .queue-toolbar,
  .table-wrap {
    padding-inline: 1rem;
  }

  .dashboard-topbar {
    flex-wrap: wrap;
  }

  .live-badge {
    white-space: normal;
  }

  .queue-toolbar {
    justify-content: flex-start;
  }

  .scroll-hint {
    flex: 1 1 auto;
    max-width: 100%;
    white-space: normal;
  }

  .metric-grid {
    grid-template-columns: 1fr;
    padding-inline: 1rem;
  }

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

  .button {
    width: 100%;
  }

  .button-small {
    width: auto;
  }
}

button {
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.68;
  transform: none;
}

.demo-modal {
  width: min(560px, calc(100% - 32px));
  padding: 0;
  border: 0;
  border-radius: 28px;
  background: transparent;
  color: var(--graphite);
}

.demo-modal::backdrop {
  background: rgba(17, 27, 58, 0.62);
  backdrop-filter: blur(8px);
}

.modal-card {
  position: relative;
  display: grid;
  gap: 0.85rem;
  padding: clamp(1.4rem, 5vw, 2.2rem);
  border: 1px solid var(--ice);
  border-radius: 28px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.modal-card h2 {
  max-width: 430px;
  font-size: clamp(2rem, 6vw, 3.25rem);
}

.modal-intro {
  color: var(--slate);
  line-height: 1.7;
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--ice);
  border-radius: 999px;
  background: var(--mist);
  color: var(--midnight);
  font-size: 1.5rem;
  line-height: 1;
}

.demo-form {
  display: grid;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.demo-form label {
  color: var(--midnight);
  font-weight: 800;
}

.contact-choice {
  color: var(--slate);
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.5;
}

.demo-form input {
  width: 100%;
  min-height: 52px;
  padding: 0.9rem 1rem;
  border: 1px solid var(--ice);
  border-radius: 16px;
  background: var(--mist);
  color: var(--graphite);
  font: inherit;
}

.demo-form input:focus {
  outline: 3px solid rgba(29, 185, 84, 0.35);
  border-color: var(--green);
}

.demo-form input:user-invalid {
  border-color: #b42318;
  box-shadow: 0 0 0 3px rgba(180, 35, 24, 0.12);
}

.form-status {
  min-height: 1.6rem;
  color: var(--slate);
  font-weight: 700;
  line-height: 1.5;
}

.form-status[data-status="success"] {
  color: #107232;
}

.form-status[data-status="error"] {
  color: #b42318;
}
