:root {
  color-scheme: light;
  --ink: #14211f;
  --ink-2: #2f413e;
  --muted: #667572;
  --line: #d9e4e1;
  --paper: #f6f8fa;
  --white: #ffffff;
  --wash: #eef6f4;
  --wash-2: #e4f1ee;
  --green-950: #003d35;
  --green-900: #005347;
  --green-800: #087365;
  --teal: #44d5c7;
  --teal-soft: #c9f5ed;
  --blue: #226fbd;
  --blue-soft: #e3f0fb;
  --amber: #f4ad36;
  --amber-soft: #fff1d7;
  --red: #c92a2a;
  --red-soft: #ffe2e2;
  --shadow-soft: 0 16px 44px rgba(18, 33, 31, 0.1);
  --shadow-strong: 0 26px 70px rgba(0, 61, 53, 0.2);
  --radius: 8px;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

[id] {
  scroll-margin-top: 96px;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Avenir Next, Aptos, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}

body.nav-open {
  overflow: hidden;
}

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

a {
  color: inherit;
}

:focus-visible {
  outline: 3px solid rgba(68, 213, 199, 0.75);
  outline-offset: 3px;
}

.skip-link {
  background: var(--green-950);
  color: var(--white);
  left: 16px;
  padding: 10px 14px;
  position: fixed;
  text-decoration: none;
  top: -60px;
  z-index: 100;
}

.skip-link:focus {
  top: 16px;
}

.site-header {
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid rgba(217, 228, 225, 0.86);
  position: sticky;
  top: 0;
  z-index: 50;
}

.nav-shell {
  align-items: center;
  display: flex;
  gap: 18px;
  justify-content: space-between;
  margin: 0 auto;
  max-width: var(--max);
  min-height: 78px;
  padding: 0 20px;
}

.brand {
  align-items: center;
  display: inline-flex;
  gap: 12px;
  min-width: max-content;
  text-decoration: none;
}

.brand img {
  border-radius: var(--radius);
  box-shadow: 0 10px 24px rgba(0, 83, 71, 0.16);
  height: 42px;
  width: 42px;
}

.brand strong {
  color: var(--green-950);
  display: block;
  font-size: 1.05rem;
  line-height: 1.1;
}

.brand span span {
  color: var(--muted);
  display: block;
  font-size: 0.78rem;
  line-height: 1.2;
  margin-top: 2px;
}

.nav-links {
  align-items: center;
  display: flex;
  gap: 4px;
}

.nav-links a {
  border-radius: var(--radius);
  color: var(--ink-2);
  font-size: 0.94rem;
  font-weight: 700;
  padding: 9px 11px;
  text-decoration: none;
}

.nav-links a:hover,
.nav-links a.active {
  background: var(--wash);
  color: var(--green-900);
}

.nav-links a.web-app-link {
  background: var(--green-900);
  color: var(--white);
  margin-left: 4px;
}

.nav-toggle {
  align-items: center;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--green-950);
  cursor: pointer;
  display: none;
  font: inherit;
  font-weight: 800;
  gap: 8px;
  min-height: 42px;
  padding: 0 12px;
}

.nav-toggle i,
.nav-toggle i::before,
.nav-toggle i::after {
  background: currentColor;
  border-radius: 999px;
  content: "";
  display: block;
  height: 2px;
  width: 18px;
}

.nav-toggle i {
  position: relative;
}

.nav-toggle i::before,
.nav-toggle i::after {
  left: 0;
  position: absolute;
}

.nav-toggle i::before {
  top: -6px;
}

.nav-toggle i::after {
  top: 6px;
}

.hero {
  background-color: #17322f;
  background-image:
    linear-gradient(90deg, rgba(0, 33, 29, 0.88) 0%, rgba(0, 33, 29, 0.76) 42%, rgba(0, 33, 29, 0.18) 100%),
    url("screenshots/desktop-04-dashboard.png");
  background-position: center;
  background-size: cover;
  color: var(--white);
  display: grid;
  min-height: 620px;
  place-items: center start;
  position: relative;
}

.hero::after {
  background: rgba(255, 255, 255, 0.12);
  bottom: 0;
  content: "";
  height: 1px;
  left: 0;
  position: absolute;
  right: 0;
}

.hero-content {
  margin: 0 auto;
  max-width: var(--max);
  padding: 70px 20px 78px;
  width: 100%;
}

.eyebrow {
  align-items: center;
  color: var(--teal-soft);
  display: inline-flex;
  font-size: 0.86rem;
  font-weight: 800;
  gap: 10px;
  letter-spacing: 0;
  margin-bottom: 18px;
  text-transform: uppercase;
}

.eyebrow::before {
  background: var(--teal);
  border-radius: 999px;
  content: "";
  height: 9px;
  width: 9px;
}

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

h1,
.page-hero h1 {
  font-size: 3.1rem;
  letter-spacing: 0;
  line-height: 1.02;
  margin-bottom: 20px;
  max-width: 760px;
}

.hero .lead {
  color: rgba(255, 255, 255, 0.86);
  font-size: 1.18rem;
  line-height: 1.65;
  margin-bottom: 0;
  max-width: 680px;
}

.hero-actions,
.button-row {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.button {
  align-items: center;
  border: 1px solid transparent;
  border-radius: var(--radius);
  display: inline-flex;
  font-weight: 800;
  justify-content: center;
  line-height: 1.2;
  min-height: 48px;
  padding: 12px 18px;
  text-decoration: none;
  transition: background 160ms ease, border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
  white-space: normal;
}

.button:hover {
  transform: translateY(-1px);
}

.button.primary {
  background: var(--teal);
  box-shadow: 0 16px 34px rgba(68, 213, 199, 0.23);
  color: #04231f;
}

.button.dark {
  background: var(--green-900);
  box-shadow: 0 16px 34px rgba(0, 83, 71, 0.18);
  color: var(--white);
}

.button.light {
  background: rgba(255, 255, 255, 0.92);
  border-color: rgba(255, 255, 255, 0.3);
  color: var(--green-950);
}

.button.outline {
  background: var(--white);
  border-color: var(--line);
  color: var(--green-900);
}

.hero-points {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
  max-width: 780px;
}

.hero-points span {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius);
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.9rem;
  font-weight: 700;
  padding: 8px 10px;
}

.section {
  padding: 76px 20px;
}

.section.compact {
  padding: 54px 20px;
}

.section.white {
  background: var(--white);
}

.section.soft {
  background: var(--wash);
}

.section.dark {
  background: var(--green-950);
  color: var(--white);
}

.section-inner {
  margin: 0 auto;
  max-width: var(--max);
}

.section-heading {
  align-items: end;
  display: grid;
  gap: 20px;
  grid-template-columns: minmax(0, 0.72fr) minmax(280px, 0.28fr);
  margin-bottom: 28px;
}

.section-heading.full {
  display: block;
  max-width: 780px;
}

.section-heading h2 {
  color: var(--green-950);
  font-size: 2.2rem;
  letter-spacing: 0;
  line-height: 1.12;
  margin-bottom: 12px;
}

.section.dark .section-heading h2,
.section.dark h2,
.section.dark h3 {
  color: var(--white);
}

.section-heading p {
  color: var(--muted);
  font-size: 1.04rem;
  margin-bottom: 0;
}

.section.dark .section-heading p,
.section.dark p {
  color: rgba(255, 255, 255, 0.76);
}

.stat-line {
  border-left: 4px solid var(--teal);
  color: var(--ink-2);
  font-size: 0.96rem;
  font-weight: 800;
  padding-left: 16px;
}

.role-grid,
.security-grid,
.support-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.role-card,
.security-card,
.support-card,
.gallery-card,
.feature-card,
.value-card,
.legal-panel,
.form-panel,
.contact-panel,
.workflow-step,
.mini-panel {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 1px 0 rgba(18, 33, 31, 0.02);
}

.role-card,
.security-card,
.support-card,
.value-card,
.mini-panel {
  padding: 22px;
}

.role-mark,
.security-mark {
  align-items: center;
  background: var(--teal-soft);
  border-radius: var(--radius);
  color: var(--green-950);
  display: inline-flex;
  font-size: 0.78rem;
  font-weight: 900;
  height: 40px;
  justify-content: center;
  margin-bottom: 20px;
  width: 48px;
}

.role-card h3,
.security-card h3,
.support-card h3,
.value-card h3,
.mini-panel h3 {
  color: var(--green-950);
  font-size: 1.08rem;
  line-height: 1.25;
  margin-bottom: 9px;
}

.role-card p,
.security-card p,
.support-card p,
.value-card p,
.mini-panel p {
  color: var(--muted);
  margin-bottom: 0;
}

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

.feature-card {
  display: grid;
  grid-template-rows: auto 1fr;
  overflow: hidden;
}

.feature-card .screen {
  aspect-ratio: 16 / 9;
  background: var(--wash-2);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}

.feature-card .screen.mobile {
  align-items: start center;
  display: grid;
  justify-content: center;
}

.feature-card .screen img {
  height: 100%;
  object-fit: cover;
  object-position: top center;
  width: 100%;
}

.feature-card .screen.mobile img {
  height: 100%;
  object-fit: cover;
  width: auto;
}

.feature-copy {
  padding: 22px;
}

.feature-copy h3 {
  color: var(--green-950);
  font-size: 1.22rem;
  margin-bottom: 8px;
}

.feature-copy p {
  color: var(--muted);
  margin-bottom: 15px;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
}

.tag-list li {
  background: var(--wash);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink-2);
  font-size: 0.82rem;
  font-weight: 800;
  list-style: none;
  padding: 6px 8px;
}

.workflow-track {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(7, minmax(0, 1fr));
}

.workflow-step {
  min-height: 132px;
  padding: 18px 14px;
  position: relative;
}

.workflow-step:not(:last-child)::after {
  color: var(--green-800);
  content: ">";
  font-size: 1.2rem;
  font-weight: 900;
  position: absolute;
  right: -10px;
  top: 42px;
  z-index: 2;
}

.workflow-step b {
  align-items: center;
  background: var(--green-900);
  border-radius: var(--radius);
  color: var(--white);
  display: inline-flex;
  font-size: 0.82rem;
  height: 30px;
  justify-content: center;
  margin-bottom: 16px;
  width: 30px;
}

.workflow-step h3 {
  color: var(--green-950);
  font-size: 0.98rem;
  line-height: 1.24;
  margin-bottom: 0;
}

.security-layout {
  display: grid;
  gap: 22px;
  grid-template-columns: minmax(0, 0.42fr) minmax(0, 0.58fr);
}

.trust-panel {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  padding: 26px;
}

.trust-panel h3 {
  font-size: 1.45rem;
  margin-bottom: 14px;
}

.trust-list {
  display: grid;
  gap: 12px;
  margin: 22px 0 0;
  padding: 0;
}

.trust-list li {
  align-items: start;
  color: rgba(255, 255, 255, 0.84);
  display: grid;
  gap: 10px;
  grid-template-columns: 22px 1fr;
  list-style: none;
}

.trust-list li::before {
  background: var(--teal);
  border-radius: var(--radius);
  content: "";
  height: 10px;
  margin-top: 6px;
  width: 10px;
}

.section.dark .security-card {
  background: rgba(255, 255, 255, 0.96);
}

.section.dark .security-grid {
  grid-template-columns: repeat(2, minmax(220px, 1fr));
}

.section.dark .security-card h3 {
  color: var(--green-950);
}

.section.dark .security-card p {
  color: var(--muted);
}

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

.gallery-card {
  overflow: hidden;
}

.gallery-card .screen {
  aspect-ratio: 16 / 10;
  background: var(--wash-2);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}

.gallery-card .screen.tall {
  aspect-ratio: 4 / 5;
}

.gallery-card img {
  height: 100%;
  object-fit: cover;
  object-position: top center;
  width: 100%;
}

.gallery-copy {
  padding: 16px;
}

.gallery-copy h3 {
  color: var(--green-950);
  font-size: 1rem;
  line-height: 1.25;
  margin-bottom: 4px;
}

.gallery-copy p {
  color: var(--muted);
  font-size: 0.92rem;
  margin-bottom: 0;
}

.video-wrap {
  background: #071d1a;
  border-radius: var(--radius);
  box-shadow: var(--shadow-strong);
  overflow: hidden;
}

.video-wrap video {
  aspect-ratio: 16 / 9;
  background: #071d1a;
  width: 100%;
}

.downloads-layout,
.demo-layout,
.about-layout,
.two-column {
  display: grid;
  gap: 22px;
  grid-template-columns: minmax(0, 0.58fr) minmax(0, 0.42fr);
}

.store-badges {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}

.store-badge {
  display: inline-flex;
  line-height: 0;
  text-decoration: none;
  transition: box-shadow 160ms ease, transform 160ms ease;
}

.store-badge:hover {
  box-shadow: 0 14px 32px rgba(7, 8, 7, 0.18);
  transform: translateY(-1px);
}

.store-badge img {
  border-radius: 8px;
  display: block;
  height: 54px;
  width: 180px;
}

.form-panel,
.contact-panel,
.legal-panel {
  padding: 26px;
}

.legal-panel h2 {
  color: var(--green-950);
  font-size: 1.45rem;
  line-height: 1.22;
  margin: 32px 0 10px;
}

.legal-panel h3 {
  color: var(--ink-2);
  font-size: 1.06rem;
  margin: 20px 0 8px;
}

.legal-panel p,
.legal-panel li {
  color: var(--ink-2);
}

.legal-panel a {
  color: var(--green-900);
  font-weight: 800;
}

.demo-form {
  display: grid;
  gap: 14px;
}

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

.field {
  display: grid;
  gap: 6px;
}

.field.full {
  grid-column: 1 / -1;
}

.field label {
  color: var(--ink-2);
  font-size: 0.9rem;
  font-weight: 800;
}

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

.field textarea {
  min-height: 132px;
  resize: vertical;
}

.form-note,
.small-note {
  color: var(--muted);
  font-size: 0.9rem;
  margin: 0;
}

.contact-list,
.link-list {
  display: grid;
  gap: 10px;
  margin: 18px 0 0;
  padding: 0;
}

.contact-list li,
.link-list li {
  list-style: none;
}

.contact-list a,
.link-list a {
  color: var(--green-900);
  font-weight: 800;
  text-decoration: none;
}

.contact-list a:hover,
.link-list a:hover {
  text-decoration: underline;
}

.page-hero {
  background:
    linear-gradient(90deg, rgba(0, 61, 53, 0.94), rgba(0, 61, 53, 0.78)),
    url("screenshots/desktop-07-map.png");
  background-position: center;
  background-size: cover;
  color: var(--white);
  padding: 72px 20px;
}

.page-hero.plain {
  background: var(--green-950);
}

.page-hero .section-inner {
  max-width: var(--max);
}

.page-hero p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.12rem;
  max-width: 760px;
}

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

.feature-detail {
  align-items: center;
  display: grid;
  gap: 28px;
  grid-template-columns: minmax(0, 0.47fr) minmax(0, 0.53fr);
  padding: 38px 0;
}

.feature-detail + .feature-detail {
  border-top: 1px solid var(--line);
}

.feature-detail h2 {
  color: var(--green-950);
  font-size: 1.8rem;
  line-height: 1.18;
  margin-bottom: 12px;
}

.feature-detail p {
  color: var(--muted);
}

.screen-frame {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

.screen-frame img {
  height: 100%;
  object-fit: cover;
  object-position: top center;
  width: 100%;
}

.screen-frame.desktop {
  aspect-ratio: 16 / 9;
}

.screen-frame.mobile {
  aspect-ratio: 10 / 16;
  margin: 0 auto;
  max-width: 360px;
}

.screen-frame.mobile img {
  object-fit: cover;
}

.security-list {
  display: grid;
  gap: 14px;
  margin: 22px 0 0;
  padding: 0;
}

.security-list li {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: grid;
  gap: 6px;
  list-style: none;
  padding: 18px;
}

.security-list strong {
  color: var(--green-950);
}

.security-list span {
  color: var(--muted);
}

.faq {
  display: grid;
  gap: 12px;
}

.faq details {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
}

.faq summary {
  color: var(--green-950);
  cursor: pointer;
  font-weight: 900;
}

.faq p {
  color: var(--muted);
  margin: 10px 0 0;
}

.site-footer {
  background: #0c2420;
  color: rgba(255, 255, 255, 0.78);
  padding: 42px 20px;
}

.footer-grid {
  display: grid;
  gap: 28px;
  grid-template-columns: minmax(240px, 1.4fr) repeat(3, minmax(140px, 0.6fr));
  margin: 0 auto;
  max-width: var(--max);
}

.footer-brand {
  align-items: center;
  display: flex;
  gap: 12px;
  margin-bottom: 14px;
}

.footer-brand img {
  border-radius: var(--radius);
  height: 40px;
  width: 40px;
}

.footer-brand strong,
.footer-col h2 {
  color: var(--white);
  font-size: 1rem;
  margin: 0 0 10px;
}

.footer-col a {
  color: rgba(255, 255, 255, 0.78);
  display: block;
  font-size: 0.94rem;
  margin: 7px 0;
  text-decoration: none;
}

.footer-col a:hover {
  color: var(--white);
  text-decoration: underline;
}

.copyright {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  margin: 28px auto 0;
  max-width: var(--max);
  padding-top: 18px;
}

@media (min-width: 980px) {
  .hero {
    min-height: min(720px, calc(100dvh - 110px));
  }

  h1,
  .page-hero h1 {
    font-size: 4rem;
  }
}

@media (max-width: 1080px) {
  .nav-toggle {
    display: inline-flex;
  }

  .nav-links {
    background: rgba(255, 255, 255, 0.98);
    border-top: 1px solid var(--line);
    box-shadow: var(--shadow-soft);
    display: none;
    gap: 0;
    left: 0;
    padding: 10px 20px 20px;
    position: absolute;
    right: 0;
    top: 78px;
  }

  body.nav-open .nav-links {
    display: grid;
  }

  .nav-links a {
    border-radius: var(--radius);
    padding: 13px 10px;
  }

  .nav-links a.web-app-link {
    margin: 8px 0 0;
    text-align: center;
  }

  .section-heading,
  .security-layout,
  .downloads-layout,
  .demo-layout,
  .about-layout,
  .two-column {
    grid-template-columns: 1fr;
  }

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

  .workflow-step:not(:last-child)::after {
    display: none;
  }

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

@media (max-width: 820px) {
  body {
    font-size: 15px;
  }

  .nav-shell {
    min-height: 72px;
    padding: 0 16px;
  }

  .brand span span {
    display: none;
  }

  .nav-links {
    top: 72px;
  }

  .hero {
    background-position: 58% center;
    min-height: 560px;
  }

  .hero-content {
    padding: 54px 16px 58px;
  }

  h1,
  .page-hero h1 {
    font-size: 2.45rem;
  }

  .hero .lead,
  .page-hero p {
    font-size: 1.03rem;
  }

  .section,
  .page-hero {
    padding-left: 16px;
    padding-right: 16px;
  }

  .section {
    padding-bottom: 58px;
    padding-top: 58px;
  }

  .section-heading h2 {
    font-size: 1.82rem;
  }

  .role-grid,
  .security-grid,
  .support-grid,
  .feature-grid,
  .gallery-grid,
  .value-grid,
  .workflow-track {
    grid-template-columns: 1fr;
  }

  .section.dark .security-grid {
    grid-template-columns: 1fr;
  }

  .feature-detail {
    grid-template-columns: 1fr;
    padding: 30px 0;
  }

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

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

@media (max-width: 520px) {
  .brand strong {
    font-size: 1rem;
  }

  .brand img {
    height: 38px;
    width: 38px;
  }

  h1,
  .page-hero h1 {
    font-size: 2rem;
  }

  .hero-actions,
  .button-row,
  .store-badges {
    align-items: stretch;
    flex-direction: column;
  }

  .button,
  .store-badge {
    width: 100%;
  }

  .role-card,
  .security-card,
  .support-card,
  .feature-copy,
  .form-panel,
  .contact-panel,
  .legal-panel,
  .value-card,
  .mini-panel {
    padding: 18px;
  }
}
