:root {
  --ink: #17232c;
  --muted: #66757b;
  --paper: #f4f7f5;
  --surface: #ffffff;
  --line: #dbe5df;
  --brand: #166b56;
  --brand-dark: #0f4f40;
  --gold: #d7a840;
  --blue: #2c6f9e;
  --terracotta: #b96748;
  --danger: #b5403d;
  --shadow: 0 24px 70px rgba(23, 35, 44, .13);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  line-height: 1.45;
}

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

button, input {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: minmax(190px, auto) 1fr auto;
  align-items: center;
  gap: 1.2rem;
  min-height: 68px;
  padding: .4rem clamp(1rem, 4vw, 3rem);
  border-bottom: 1px solid rgba(219, 229, 223, .82);
  background: rgba(244, 247, 245, .92);
  backdrop-filter: blur(16px);
}

.brand, .site-header nav, .hero-actions, .hero-metrics, .topbar-actions {
  display: flex;
  align-items: center;
}

.brand {
  gap: .7rem;
  font-weight: 800;
  letter-spacing: 0;
  min-width: 0;
}

.brand img {
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  object-fit: contain;
}

.brand span {
  display: grid;
  gap: .08rem;
  min-width: 0;
}

.brand strong {
  color: var(--ink);
  font-size: 1rem;
  line-height: 1;
  white-space: nowrap;
}

.brand small {
  color: var(--muted);
  font-size: .68rem;
  font-weight: 800;
  line-height: 1;
  text-transform: uppercase;
}

.site-header nav {
  justify-content: center;
  gap: clamp(1rem, 2.3vw, 2rem);
  color: #526169;
  font-size: .94rem;
  font-weight: 700;
}

.site-header nav a:hover {
  color: var(--brand);
}

.header-action, .button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: .72rem 1rem;
  border-radius: 8px;
  font-weight: 800;
}

.header-action {
  color: #fff;
  background: var(--ink);
  white-space: nowrap;
}

.image-feature {
  display: grid;
  grid-template-columns: minmax(340px, .85fr) minmax(0, 1fr);
  gap: clamp(1.4rem, 4vw, 3.5rem);
  align-items: center;
  background: #fff;
}

.image-feature-media {
  overflow: hidden;
  border-radius: 8px;
  min-height: 420px;
  box-shadow: var(--shadow);
}

.image-feature-media img {
  width: 100%;
  height: 100%;
  min-height: 420px;
  display: block;
  object-fit: cover;
}

.image-feature-copy {
  max-width: 760px;
}

.image-feature-copy p {
  color: var(--muted);
  font-size: 1.05rem;
}

.mini-stat-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .75rem;
  margin-top: 1.4rem;
}

.mini-stat-grid span {
  display: grid;
  gap: .2rem;
  min-height: 86px;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f7faf8;
  color: var(--muted);
  font-size: .9rem;
}

.mini-stat-grid b {
  color: var(--ink);
  font-size: .98rem;
}

.section-band {
  background:
    linear-gradient(115deg, rgba(22, 107, 86, .10), transparent 46%),
    linear-gradient(180deg, #f8faf8, var(--paper));
}

.hero {
  min-height: calc(100vh - 72px);
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(560px, 1.1fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
  padding: clamp(2rem, 5vw, 4.5rem) clamp(1rem, 4vw, 3rem) 3rem;
}

.hero-copy {
  max-width: 660px;
}

.eyebrow {
  margin: 0 0 .8rem;
  color: var(--brand);
  font-size: .76rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

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

h1 {
  margin-bottom: 1rem;
  font-size: clamp(3rem, 7vw, 6.4rem);
  line-height: .92;
  letter-spacing: 0;
}

h2 {
  margin-bottom: .75rem;
  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: 1;
  letter-spacing: 0;
}

h3 {
  margin-bottom: .5rem;
  font-size: 1.08rem;
}

.hero-text, .section-heading p, .cta p {
  max-width: 760px;
  color: var(--muted);
  font-size: 1.08rem;
}

.hero-actions {
  gap: .75rem;
  flex-wrap: wrap;
  margin: 1.7rem 0;
}

.button.primary {
  color: #fff;
  background: var(--brand);
}

.button.secondary {
  color: var(--brand-dark);
  background: #e4eee9;
}

.hero-metrics {
  gap: .75rem;
  flex-wrap: wrap;
  margin: 0;
}

.hero-metrics div {
  min-width: 132px;
  padding: .9rem 1rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, .72);
}

.hero-metrics dt {
  font-size: 1.35rem;
  font-weight: 800;
}

.hero-metrics dd {
  margin: .1rem 0 0;
  color: var(--muted);
  font-size: .82rem;
  font-weight: 700;
}

.product-window {
  overflow: hidden;
  border: 1px solid rgba(23, 35, 44, .1);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.window-bar {
  display: flex;
  align-items: center;
  gap: .45rem;
  height: 42px;
  padding: 0 .85rem;
  border-bottom: 1px solid var(--line);
  background: #f9fbfa;
}

.window-bar span {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #c9d5ce;
}

.window-bar span:first-child { background: #d8735c; }
.window-bar span:nth-child(2) { background: #e2b94f; }
.window-bar span:nth-child(3) { background: #68a982; }

.window-bar strong {
  margin-left: .45rem;
  color: #66757b;
  font-size: .78rem;
}

.app-layout {
  display: grid;
  grid-template-columns: 172px minmax(0, 1fr);
  min-height: 500px;
}

.app-layout aside {
  display: grid;
  align-content: start;
  gap: .45rem;
  padding: 1.1rem;
  color: #d9e7e1;
  background: #102d27;
}

.app-layout aside b {
  margin-bottom: .9rem;
  color: #fff;
}

.app-layout aside span {
  padding: .58rem .65rem;
  border-radius: 8px;
  font-size: .8rem;
  font-weight: 700;
}

.app-layout aside .active {
  color: #fff;
  background: #1c473d;
}

.app-content {
  padding: 1.2rem;
  background: #f5f7f5;
}

.screen-title {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  margin-bottom: 1rem;
}

.screen-title h2 {
  margin: 0;
  font-size: 1.5rem;
}

.screen-title button, .calendar-screen button, .folio-actions button, .close-panel button, .hk-filter button {
  border: 0;
  border-radius: 8px;
  color: #fff;
  background: var(--brand);
  font-weight: 800;
  padding: .58rem .75rem;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: .7rem;
  margin-bottom: 1rem;
}

.metric-grid article {
  padding: .85rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.metric-grid span {
  display: block;
  color: var(--muted);
  font-size: .72rem;
  font-weight: 800;
}

.metric-grid strong {
  display: block;
  margin-top: .2rem;
  font-size: 1.35rem;
}

.screen-table {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.screen-table div {
  display: grid;
  grid-template-columns: 1.4fr .8fr .8fr;
  gap: .75rem;
  padding: .8rem .95rem;
  border-bottom: 1px solid #edf0ee;
}

.screen-table div:first-child {
  color: var(--muted);
  font-size: .72rem;
  text-transform: uppercase;
}

.screen-table em {
  justify-self: start;
  border-radius: 999px;
  background: #e1f0e8;
  color: var(--brand-dark);
  font-size: .75rem;
  font-style: normal;
  font-weight: 800;
  padding: .22rem .55rem;
}

.section {
  padding: clamp(3.5rem, 7vw, 6rem) clamp(1rem, 4vw, 3rem);
}

.section-heading {
  max-width: 860px;
  margin-bottom: 2rem;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.feature-grid article, .workflow article {
  min-height: 220px;
  padding: 1.3rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.feature-icon {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 1rem;
  border-radius: 8px;
  color: var(--brand-dark);
  background: #dfeee7;
  font-size: .82rem;
  font-weight: 800;
}

.feature-grid p, .workflow p, .gallery-copy p {
  color: var(--muted);
}

.muted-section {
  background: #e9efec;
}

.gallery-tabs {
  display: flex;
  gap: .5rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.tab {
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: #46565d;
  cursor: pointer;
  font-weight: 800;
  padding: .55rem .8rem;
}

.tab.active {
  color: #fff;
  border-color: var(--brand);
  background: var(--brand);
}

.gallery-stage {
  position: relative;
  margin-bottom: 1.2rem;
}

.gallery-panel {
  display: none;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, .55fr);
  align-items: center;
  gap: clamp(1.2rem, 4vw, 3rem);
}

.gallery-panel.active {
  display: grid;
}

.gallery-copy {
  padding: 1rem 0;
}

.gallery-copy h3 {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  line-height: 1;
}

.calendar-screen, .rack-screen, .housekeeping-screen, .folio-screen, .close-screen {
  min-height: 460px;
  padding: 1.2rem;
  background: #f5f7f5;
}

.calendar-screen header, .folio-head, .hk-filter {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: .75rem;
  margin-bottom: 1rem;
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .8rem;
}

.calendar-grid div {
  min-height: 126px;
  display: grid;
  align-content: start;
  gap: .35rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: .9rem;
  background: #fff;
}

.calendar-grid strong {
  font-size: 1.7rem;
}

.calendar-grid span, .calendar-grid small {
  color: var(--muted);
  font-weight: 700;
}

.calendar-grid .open { border-color: #cfe5db; background: #f2faf6; }
.calendar-grid .tight { border-color: #e9d393; background: #fff7de; }
.calendar-grid .full { border-color: #e0b580; background: #f7e1c9; }
.calendar-grid .over { border-color: #e3aaa7; background: #f7dddd; }

.rack-screen {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .8rem;
}

.rack-card {
  min-height: 155px;
  display: grid;
  align-content: space-between;
  border-top: 8px solid var(--brand);
  border-radius: 8px;
  padding: 1rem;
  background: #fff;
  box-shadow: 0 6px 20px rgba(23, 35, 44, .08);
}

.rack-card b {
  font-size: 2.1rem;
}

.rack-card span {
  font-weight: 800;
}

.rack-card small {
  color: var(--muted);
  font-weight: 700;
}

.rack-card.arrival { border-top-color: var(--blue); }
.rack-card.dirty { border-top-color: var(--danger); }
.rack-card.open { border-top-color: #6aa57f; }
.rack-card.blocked { border-top-color: #747f84; background: #eef1f0; }
.rack-card.reserved { border-top-color: var(--gold); }

.housekeeping-screen {
  display: grid;
  grid-template-rows: auto 1fr;
}

.hk-filter span {
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--line);
  font-weight: 800;
  padding: .46rem .7rem;
}

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

.hk-grid article {
  border: 1px solid var(--line);
  border-left: 6px solid var(--brand);
  border-radius: 8px;
  padding: 1rem;
  background: #fff;
}

.hk-grid b, .hk-grid em, .hk-grid p {
  display: block;
}

.hk-grid b {
  font-size: 2.2rem;
}

.hk-grid em {
  color: var(--brand);
  font-style: normal;
  font-weight: 800;
}

.hk-grid p {
  margin: .7rem 0 0;
  color: var(--muted);
}

.folio-screen {
  display: grid;
  align-content: start;
}

.folio-head {
  padding: 1rem;
  border-radius: 8px;
  background: #102d27;
  color: #fff;
}

.folio-head b {
  font-size: 1.4rem;
}

.folio-lines {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.folio-lines p {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin: 0;
  padding: 1rem;
  border-bottom: 1px solid #edf0ee;
}

.folio-actions {
  display: flex;
  gap: .7rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}

.close-checks {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .8rem;
  margin-bottom: 1rem;
}

.close-checks article, .close-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 1rem;
}

.close-checks b {
  display: block;
  color: var(--brand);
  font-size: 1.8rem;
}

.close-checks span {
  color: var(--muted);
  font-weight: 800;
}

.close-checks .warning {
  background: #fff7de;
  border-color: #e9d393;
}

.close-panel {
  min-height: 250px;
  display: grid;
  align-content: center;
  justify-items: start;
}

.screen-wall {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.4rem;
}

.shot-card {
  min-height: 255px;
  display: grid;
  align-content: start;
  gap: .9rem;
  overflow: hidden;
  padding: 1rem;
  border: 1px solid rgba(23, 35, 44, .09);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 12px 34px rgba(23, 35, 44, .08);
}

.shot-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: .7rem;
  padding-bottom: .75rem;
  border-bottom: 1px solid #edf0ee;
  color: var(--muted);
  font-size: .78rem;
  font-weight: 800;
}

.shot-toolbar b {
  color: var(--brand);
}

.shot-card p {
  margin: auto 0 0;
  color: var(--muted);
  font-size: .9rem;
}

.shot-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .5rem;
}

.shot-metrics b {
  min-height: 68px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: #e8f3ee;
  color: var(--brand-dark);
  font-size: 1.3rem;
}

.form-lines,
.group-blocks,
.rate-bars,
.audit-list {
  display: grid;
  gap: .55rem;
}

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

.form-lines i,
.group-blocks i,
.rate-bars i,
.audit-list i,
.timeline i {
  display: block;
  border-radius: 7px;
  background: #e9efec;
}

.form-lines i {
  height: 34px;
}

.mini-table {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: .35rem;
}

.mini-table span {
  height: 30px;
  border-radius: 6px;
  background: #e8f3ee;
}

.mini-table .busy {
  background: #f5e7bc;
}

.mini-table .full {
  background: #efd1bd;
}

.group-blocks {
  grid-template-columns: repeat(4, 1fr);
}

.group-blocks i {
  height: 84px;
  background: linear-gradient(180deg, #f8eac2, #e8c76e);
}

.profile-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: .85rem;
  border-radius: 8px;
  background: #102d27;
  color: #fff;
}

.profile-row span {
  color: #c7ddd5;
  font-size: .8rem;
  font-weight: 800;
}

.timeline {
  display: grid;
  gap: .45rem;
}

.timeline i {
  height: 24px;
}

.credit-meter {
  height: 96px;
  display: flex;
  align-items: end;
  padding: .8rem;
  border-radius: 8px;
  background: #eef3f0;
}

.credit-meter i {
  display: block;
  width: 72%;
  height: 16px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--brand), var(--gold));
}

.rate-bars {
  align-items: end;
  grid-template-columns: repeat(4, 1fr);
  min-height: 112px;
}

.rate-bars i:first-child { height: 52px; background: #cfe5db; }
.rate-bars i:nth-child(2) { height: 82px; background: #f5e7bc; }
.rate-bars i:nth-child(3) { height: 108px; background: #d5e6f0; }
.rate-bars i:nth-child(4) { height: 68px; background: #efd1bd; }

.audit-list i {
  height: 28px;
  background: linear-gradient(90deg, #e9efec 72%, #dfe9e4 72%);
}

.workflow {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.workflow span {
  display: inline-flex;
  margin-bottom: .9rem;
  border-radius: 999px;
  color: #fff;
  background: var(--terracotta);
  font-size: .74rem;
  font-weight: 800;
  padding: .3rem .6rem;
}

.cta {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(340px, .7fr) auto;
  align-items: center;
  gap: 1.5rem;
  color: #fff;
  background: #102d27;
}

.cta .eyebrow, .cta p {
  color: #b9d2c9;
}

.cta .button.primary {
  background: var(--gold);
  color: #2a2515;
}

.company-card {
  display: grid;
  grid-template-columns: 74px 1fr;
  gap: 1rem;
  align-items: start;
  padding: 1rem;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 8px;
  background: rgba(255, 255, 255, .06);
}

.company-card img {
  width: 72px;
  height: 72px;
  object-fit: contain;
  grid-row: span 3;
}

.company-card h3 {
  margin-bottom: .2rem;
  color: #fff;
  font-size: .95rem;
}

.company-card p {
  margin: 0;
  color: #c7ddd5;
  font-size: .9rem;
}

.company-card a {
  color: #f0cf73;
  font-weight: 800;
}

.contact-list {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem .8rem;
}

.contact-list a {
  font-size: .9rem;
}

footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.4rem clamp(1rem, 4vw, 3rem);
  color: #5c6a70;
  background: #fff;
  border-top: 1px solid var(--line);
  font-size: .9rem;
  font-weight: 700;
}

@media (max-width: 1080px) {
  .hero {
    grid-template-columns: 1fr;
  }

  .hero-screen {
    width: min(100%, 860px);
  }

  .feature-grid, .workflow {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .image-feature {
    grid-template-columns: 1fr;
  }

  .gallery-panel {
    grid-template-columns: 1fr;
  }

  .screen-wall {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .site-header nav {
    grid-column: 1 / -1;
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: .15rem;
  }

  .header-action {
    min-width: 118px;
  }

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

  .app-layout aside {
    grid-auto-flow: column;
    overflow-x: auto;
  }

  .app-layout aside b {
    display: none;
  }

  .metric-grid, .feature-grid, .workflow, .close-checks {
    grid-template-columns: 1fr;
  }

  .calendar-grid, .rack-screen, .hk-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .calendar-screen, .rack-screen, .housekeeping-screen, .folio-screen, .close-screen {
    min-height: 0;
  }

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

  footer {
    display: grid;
  }
}

@media (max-width: 520px) {
  .site-header {
    align-items: start;
  }

  .brand span:last-child {
    display: grid;
  }

  .brand img {
    width: 42px;
    height: 42px;
    flex-basis: 42px;
  }

  .brand small {
    display: none;
  }

  .hero {
    padding-top: 2rem;
  }

  h1 {
    font-size: 3rem;
  }

  .hero-metrics div {
    width: 100%;
  }

  .calendar-grid, .rack-screen, .hk-grid {
    grid-template-columns: 1fr;
  }

  .mini-stat-grid,
  .screen-wall {
    grid-template-columns: 1fr;
  }

  .image-feature-media,
  .image-feature-media img {
    min-height: 280px;
  }

  .screen-title, .calendar-screen header, .folio-head, .hk-filter {
    align-items: flex-start;
    flex-direction: column;
  }

  .screen-table div {
    grid-template-columns: 1fr;
  }

  .company-card {
    grid-template-columns: 1fr;
  }

  .company-card img {
    grid-row: auto;
  }
}
