:root {
  --ink: #303040;
  --muted: #5b6478;
  --line: #c8e0f0;
  --paper: #f7fbfd;
  --white: #ffffff;
  --teal: #28b8c0;
  --teal-dark: #307080;
  --navy: #303040;
  --slate: #404860;
  --ice: #c8e0f0;
  --red: #9b3e52;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

a {
  color: inherit;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 68px;
  padding: 14px clamp(20px, 5vw, 64px);
  border-bottom: 1px solid rgba(48, 48, 64, 0.12);
  background: rgba(247, 251, 253, 0.92);
  backdrop-filter: blur(12px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  text-decoration: none;
}

.brand-copy {
  display: grid;
  gap: 1px;
  line-height: 1.08;
}

.brand-copy strong,
.brand-copy small {
  display: block;
}

.brand-copy small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
}

.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--teal);
  color: var(--white);
  font-size: 14px;
}

.nav {
  display: flex;
  gap: 20px;
  color: var(--muted);
  font-size: 15px;
}

.mobile-nav {
  display: none;
}

.nav a {
  text-decoration: none;
}

.nav a:hover {
  color: var(--ink);
}

.hero {
  position: relative;
  min-height: 78vh;
  display: grid;
  align-items: end;
  overflow: hidden;
  background:
    linear-gradient(110deg, rgba(48, 48, 64, 0.96), rgba(48, 48, 64, 0.78) 48%, rgba(40, 184, 192, 0.12)),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.08) 0 1px, transparent 1px 86px),
    linear-gradient(135deg, var(--navy), var(--teal-dark) 58%, var(--ice));
}

.hero-product {
  position: absolute;
  right: clamp(20px, 6vw, 86px);
  bottom: clamp(30px, 7vw, 94px);
  z-index: 1;
  width: min(520px, 42vw);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 26px 80px rgba(0, 0, 0, 0.3);
}

.hero-inner {
  position: relative;
  z-index: 2;
  max-width: 760px;
  padding: 0 clamp(20px, 6vw, 76px) clamp(48px, 9vw, 92px);
  color: var(--white);
}

.product-top {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 18px;
  border-bottom: 1px solid var(--line);
  background: #f7fbfd;
  font-weight: 800;
}

.product-top span {
  color: var(--teal-dark);
}

.product-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-bottom: 1px solid var(--line);
}

.product-metrics div {
  min-height: 96px;
  padding: 18px;
  border-right: 1px solid var(--line);
}

.product-metrics div:last-child {
  border-right: 0;
}

.product-metrics b {
  display: block;
  color: var(--ink);
  font-size: 32px;
  line-height: 1;
}

.product-metrics span,
.product-import small,
.product-pipeline em {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-style: normal;
}

.product-import {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
  background: #eef7fb;
}

.doc-chip {
  display: inline-flex;
  min-height: 32px;
  align-items: center;
  padding: 6px 10px;
  border-radius: 8px;
  background: var(--teal);
  color: #101822;
  font-weight: 900;
  white-space: nowrap;
}

.product-pipeline {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 18px;
  list-style: none;
}

.product-pipeline li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  min-height: 42px;
  padding: 10px 12px;
  border: 1px solid #dceaf2;
  border-radius: 8px;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--teal);
}

.dot.hot { background: #287a5d; }
.dot.invoice { background: #a87321; }
.dot.due { background: var(--red); }

.eyebrow {
  margin: 0 0 12px;
  color: var(--teal-dark);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: var(--ice);
}

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

h1 {
  max-width: 620px;
  margin: 0;
  font-size: clamp(46px, 8vw, 88px);
  line-height: 0.96;
}

h2 {
  margin: 0 0 16px;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.04;
}

h3 {
  margin: 0 0 8px;
  font-size: 18px;
}

.hero-copy {
  max-width: 590px;
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(18px, 2vw, 23px);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.button,
button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 18px;
  border: 1px solid transparent;
  border-radius: 8px;
  font: inherit;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}

.button.primary,
button {
  background: var(--teal);
  color: #101822;
}

.button.secondary {
  border-color: rgba(255, 255, 255, 0.52);
  color: var(--white);
}

.button.light {
  border-color: var(--line);
  background: var(--white);
  color: var(--ink);
}

.band {
  padding: 28px clamp(20px, 5vw, 64px);
}

.metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
}

.metric {
  min-height: 110px;
  padding: 24px;
  background: var(--white);
}

.metric strong,
.price-row strong {
  display: block;
  font-size: clamp(24px, 4vw, 38px);
  line-height: 1;
}

.metric strong {
  font-size: clamp(22px, 3vw, 34px);
}

.metric span,
.price-row span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
}

.section {
  padding: clamp(58px, 8vw, 112px) clamp(20px, 5vw, 64px);
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(28px, 6vw, 80px);
  align-items: start;
}

.split > div:first-child p,
.dashboard-copy p,
.contact p {
  max-width: 590px;
  color: var(--muted);
  font-size: 18px;
}

.service-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.service-list article {
  min-height: 150px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.service-list p {
  margin: 0;
  color: var(--muted);
}

.dashboard-section {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(320px, 1fr);
  gap: clamp(28px, 6vw, 80px);
  align-items: center;
  background: #eef7fb;
}

.demo-callout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 28px;
  align-items: center;
  background:
    linear-gradient(135deg, rgba(48, 48, 64, 0.96), rgba(48, 48, 64, 0.84)),
    linear-gradient(135deg, var(--navy), var(--teal-dark));
  color: var(--white);
}

.callout-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.demo-callout .eyebrow {
  color: var(--ice);
}

.demo-callout p:not(.eyebrow) {
  max-width: 720px;
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 18px;
}

.dashboard {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 24px 72px rgba(48, 48, 64, 0.15);
}

.dash-head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 18px;
  border-bottom: 1px solid var(--line);
  font-weight: 800;
}

.status {
  color: var(--teal-dark);
}

.dash-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-bottom: 1px solid var(--line);
}

.dash-grid div {
  min-height: 104px;
  padding: 20px;
  border-right: 1px solid var(--line);
}

.dash-grid div:last-child {
  border-right: 0;
}

.dash-grid b {
  display: block;
  font-size: 34px;
  line-height: 1;
}

.dash-grid span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
}

.task-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 18px;
  list-style: none;
}

.task-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  padding: 10px 12px;
  border: 1px solid #dceaf2;
  border-radius: 8px;
}

.task-list span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--red);
  flex: 0 0 auto;
}

.pricing {
  display: grid;
  grid-template-columns: minmax(280px, 0.45fr) minmax(0, 1fr);
  gap: 30px;
  align-items: center;
  background: var(--navy);
  color: var(--white);
}

.pricing .eyebrow {
  color: var(--ice);
}

.pricing-copy {
  max-width: 520px;
  color: rgba(255, 255, 255, 0.78);
}

.price-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: rgba(255, 255, 255, 0.22);
}

.price-row strong {
  font-size: clamp(27px, 2.2vw, 42px);
  overflow-wrap: anywhere;
}

.price-card {
  display: grid;
  align-content: start;
  gap: 8px;
  min-height: 118px;
  padding: 22px;
  background: rgba(255, 255, 255, 0.08);
}

.price-card.is-highlighted {
  background: rgba(40, 184, 192, 0.2);
}

.price-label {
  color: var(--ice);
  font-size: 14px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.price-row span {
  color: rgba(255, 255, 255, 0.78);
}

.contact {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1fr);
  gap: clamp(28px, 6vw, 80px);
}

.contact-stack,
.contact-form,
.contact-card {
  display: grid;
  gap: 14px;
}

.contact-form,
.contact-card {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.form-status {
  display: none;
  padding: 12px 14px;
  border-radius: 8px;
  font-weight: 800;
}

.form-status.is-success {
  display: block;
  background: #e8f8f3;
  color: #287a5d;
}

.form-status.is-error {
  display: block;
  background: #fff1f4;
  color: var(--red);
}

.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.contact-card > div:not(.contact-actions) {
  display: grid;
  gap: 6px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

.contact-card span {
  color: var(--muted);
  font-weight: 800;
  text-transform: uppercase;
  font-size: 12px;
}

.contact-card strong {
  font-size: clamp(22px, 3vw, 32px);
  line-height: 1.16;
  overflow-wrap: anywhere;
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 8px;
}

label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-weight: 700;
}

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

textarea {
  resize: vertical;
}

.form-note {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 28px clamp(20px, 5vw, 64px);
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}

@media (max-width: 880px) {
  .topbar {
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 12px;
  }

  .nav {
    display: none;
  }

  .mobile-nav {
    display: flex;
    width: 100%;
    gap: 8px;
  }

  .mobile-nav a {
    display: inline-flex;
    flex: 1;
    justify-content: center;
    min-height: 38px;
    padding: 8px 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--white);
    color: var(--ink);
    font-size: 14px;
    font-weight: 800;
    text-decoration: none;
  }

  .hero {
    min-height: 76vh;
  }

  .hero {
    display: block;
    min-height: auto;
    padding-top: 58px;
    padding-bottom: 24px;
  }

  .hero-inner {
    padding: 0 20px 18px;
  }

  .hero-product {
    position: relative;
    right: auto;
    bottom: auto;
    width: auto;
    margin: 0 20px;
  }

  .metrics,
  .split,
  .dashboard-section,
  .demo-callout,
  .pricing,
  .price-row,
  .contact,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .service-list {
    grid-template-columns: 1fr;
  }

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

  .dash-grid div {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .dash-grid div:last-child {
    border-bottom: 0;
  }

  .product-metrics {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .product-metrics div {
    min-height: 76px;
    padding: 13px 10px;
  }

  .product-metrics b {
    font-size: 25px;
  }

  .product-metrics span {
    font-size: 12px;
    line-height: 1.2;
  }

  .product-import,
  .product-pipeline {
    display: none;
  }

  .product-top {
    padding: 14px;
  }

  .product-top {
    display: grid;
    gap: 2px;
  }

  .product-top span,
  .product-top strong {
    display: block;
  }

  .product-top span {
    color: var(--muted);
    font-size: 13px;
  }

  .product-top strong {
    font-size: 16px;
  }

  .product-metrics span {
    margin-top: 0;
  }

  .callout-actions {
    justify-content: stretch;
  }

  .footer {
    flex-direction: column;
  }
}

@media (max-width: 520px) {
  .topbar {
    min-height: 60px;
  }

  .brand span:last-child {
    max-width: 180px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .button,
  button {
    width: 100%;
  }
}
