:root {
  color-scheme: light;
  --bg: #f7fafc;
  --surface: #ffffff;
  --ink: #1d2630;
  --muted: #637083;
  --line: #d9e0e7;
  --teal: #1f7a73;
  --teal-dark: #13514d;
  --blue: #2459a6;
  --amber: #b26a00;
  --red: #b54747;
  --shadow: 0 22px 70px rgba(23, 34, 48, 0.13);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    linear-gradient(145deg, rgba(31, 122, 115, 0.08), rgba(36, 89, 166, 0.08) 42%, rgba(178, 106, 0, 0.05)),
    var(--bg);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.45;
}

a {
  color: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.site-header,
.hero-section,
.dashboard-preview,
.problem-section,
.banks-section,
footer {
  width: min(1180px, calc(100% - 32px));
  margin-inline: auto;
}

.site-header {
  min-height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand img {
  width: clamp(152px, 18vw, 236px);
  height: auto;
  display: block;
}

.nav-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
}

.nav-actions a,
.primary-link,
.secondary-link {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  padding: 0 14px;
  font-weight: 800;
  text-decoration: none;
}

.nav-actions a {
  color: var(--muted);
}

.nav-actions .nav-access,
.secondary-link {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.78);
  color: var(--ink);
}

.primary-link {
  border: 1px solid var(--teal);
  background: var(--teal);
  color: #ffffff;
}

.primary-link.full-width {
  width: 100%;
}

.hero-section {
  min-height: min(690px, calc(100vh - 126px));
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 430px);
  gap: 28px;
  align-items: center;
  padding: 28px 0 54px;
}

.hero-copy {
  position: relative;
  padding: 26px 0;
}

.hero-copy::after {
  content: "";
  position: absolute;
  right: 4%;
  bottom: -56px;
  width: min(44vw, 430px);
  aspect-ratio: 1;
  background: url("assets/crewflow-mark.png") center / contain no-repeat;
  opacity: 0.08;
  pointer-events: none;
}

.eyebrow,
.panel-kicker {
  margin: 0 0 10px;
  color: var(--teal-dark);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  letter-spacing: 0;
}

h1 {
  max-width: 810px;
  margin: 0;
  font-size: clamp(2.8rem, 7vw, 6.1rem);
  line-height: 0.94;
}

.hero-text {
  max-width: 680px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: clamp(1.03rem, 1.9vw, 1.24rem);
}

.hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 32px;
}

.hero-actions .primary-link,
.hero-actions .secondary-link {
  min-height: 50px;
  padding-inline: 20px;
}

.access-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow);
  padding: 14px;
}

.access-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #eef3f7;
}

.access-tab {
  min-height: 42px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font: inherit;
  font-weight: 900;
}

.access-tab.active {
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 6px 20px rgba(31, 42, 55, 0.08);
}

.access-content {
  padding: 26px 8px 8px;
}

.access-content h2 {
  margin: 0;
  font-size: clamp(1.65rem, 3vw, 2.2rem);
  line-height: 1.05;
}

.access-content p:not(.panel-kicker) {
  margin: 14px 0 22px;
  color: var(--muted);
}

.dashboard-preview {
  margin-top: -22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #182334;
  color: #ffffff;
  box-shadow: var(--shadow);
  padding: 18px;
}

.preview-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.preview-header span,
.preview-metric span,
.preview-metric small {
  color: rgba(255, 255, 255, 0.68);
}

.preview-header strong {
  font-size: clamp(1.1rem, 2vw, 1.45rem);
}

.preview-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.preview-metric {
  min-height: 140px;
  display: grid;
  align-content: space-between;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(31, 122, 115, 0.55), rgba(31, 122, 115, 0.18));
  padding: 16px;
}

.preview-metric.amber {
  background: linear-gradient(135deg, rgba(178, 106, 0, 0.55), rgba(178, 106, 0, 0.16));
}

.preview-metric.blue {
  background: linear-gradient(135deg, rgba(36, 89, 166, 0.58), rgba(36, 89, 166, 0.17));
}

.preview-metric strong {
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1;
}

.timeline-strip {
  display: grid;
  grid-template-columns: 1.2fr 1.8fr 0.8fr 1fr;
  gap: 8px;
  margin-top: 14px;
}

.timeline-strip span {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  border-radius: 6px;
  padding-inline: 12px;
  color: #ffffff;
  font-size: 0.82rem;
  font-weight: 900;
}

.scheduled {
  background: #526070;
}

.working {
  background: var(--teal);
}

.off {
  background: var(--amber);
}

.export {
  background: var(--blue);
}

.problem-section,
.banks-section {
  padding: 74px 0;
}

.section-copy {
  max-width: 780px;
}

.section-copy h2 {
  margin: 0;
  font-size: clamp(2rem, 4.5vw, 4rem);
  line-height: 1;
}

.section-copy p:not(.eyebrow) {
  max-width: 660px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 1.05rem;
}

.problem-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 34px;
}

.problem-grid article {
  min-height: 210px;
  border-top: 1px solid var(--line);
  padding-top: 22px;
}

.problem-grid h3 {
  margin: 0 0 10px;
  font-size: 1.25rem;
}

.problem-grid p {
  margin: 0;
  color: var(--muted);
}

.banks-section {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 0.8fr);
  gap: 38px;
  align-items: center;
}

.bank-visual {
  display: grid;
  gap: 14px;
}

.bank-visual span {
  width: var(--size);
  min-height: 48px;
  display: flex;
  align-items: center;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: 0 12px 36px rgba(23, 34, 48, 0.09);
  padding: 0 16px;
  color: var(--ink);
  font-weight: 900;
}

.bank-visual span:nth-child(2) {
  background: #fff8ea;
}

.bank-visual span:nth-child(3) {
  background: #eef7ff;
}

.bank-visual span:nth-child(4) {
  background: #edf8f6;
}

footer {
  min-height: 86px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

footer span {
  color: var(--ink);
  font-weight: 900;
}

footer a {
  font-weight: 800;
  text-decoration: none;
}

@media (max-width: 980px) {
  .hero-section,
  .banks-section {
    grid-template-columns: 1fr;
  }

  .hero-section {
    min-height: auto;
    padding-top: 12px;
  }

  .dashboard-preview {
    margin-top: 0;
  }

  .problem-grid,
  .preview-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 700px) {
  .site-header {
    min-height: auto;
    align-items: flex-start;
    flex-direction: column;
    padding: 18px 0;
  }

  .nav-actions {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr;
  }

  .nav-actions a,
  .hero-actions a {
    width: 100%;
  }

  h1 {
    font-size: clamp(2.45rem, 14vw, 4.4rem);
  }

  .timeline-strip {
    grid-template-columns: 1fr;
  }

  .problem-section,
  .banks-section {
    padding: 50px 0;
  }

  footer {
    align-items: flex-start;
    flex-direction: column;
    padding: 22px 0;
  }
}
