:root {
  color-scheme: light;
  --bg: #f6f7f9;
  --surface: #ffffff;
  --surface-soft: #eef3f2;
  --ink: #18212b;
  --muted: #65717f;
  --line: #d8dee6;
  --primary: #176b5d;
  --primary-dark: #0f4f45;
  --accent: #bf6b2c;
  --warning: #9a6a06;
  --danger: #b53b36;
  --blue: #315f8f;
  --purple: #6250a0;
  --green-soft: #dcebe7;
  --orange-soft: #f3e3d2;
  --red-soft: #f5dddd;
  --shadow: 0 12px 30px rgba(24, 33, 43, 0.08);
  --heavy-shadow: 0 28px 80px rgba(24, 33, 43, 0.24);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

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

button {
  cursor: pointer;
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 72px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  padding: 0 56px;
  background: rgba(24, 33, 43, 0.93);
  color: #ffffff;
  backdrop-filter: blur(16px);
}

.brand,
.site-nav,
.hero-actions,
.pricing-head,
.option-matrix,
.site-footer {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  font-weight: 850;
}

.brand-logo,
.brand-mark,
.app-logo {
  display: block;
  object-fit: contain;
  border-radius: 8px;
  background: transparent;
}

.brand-logo {
  width: 172px;
  height: auto;
}

.brand-mark {
  width: 36px;
  height: 36px;
}

.site-nav {
  gap: 8px;
}

.site-nav a {
  border-radius: 8px;
  padding: 9px 12px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 14px;
  font-weight: 800;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
}

.site-nav .nav-cta {
  background: #ffffff;
  color: var(--primary-dark);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: transparent;
  padding: 10px;
}

.nav-toggle span {
  display: block;
  height: 2px;
  margin: 5px 0;
  border-radius: 999px;
  background: #ffffff;
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(480px, 1fr);
  gap: 48px;
  align-items: center;
  min-height: 760px;
  overflow: hidden;
  padding: 118px 72px 88px;
  color: #ffffff;
  isolation: isolate;
}

.hero-photo,
.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-photo {
  z-index: -3;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.04);
  animation: photo-drift 18s ease-in-out infinite alternate;
}

.hero-overlay {
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(24, 33, 43, 0.96) 0%, rgba(24, 33, 43, 0.86) 42%, rgba(24, 33, 43, 0.36) 100%),
    linear-gradient(0deg, rgba(24, 33, 43, 0.84), rgba(24, 33, 43, 0.08));
}

.hero-content {
  max-width: 680px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero h1,
.section h2,
.visual-card h2,
.final-cta h2 {
  margin: 0;
  line-height: 1.04;
}

.hero h1 {
  font-size: 86px;
}

.hero-copy {
  max-width: 650px;
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: 21px;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 0 18px;
  font-weight: 850;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.button.primary {
  background: var(--primary);
  color: #ffffff;
  box-shadow: 0 10px 26px rgba(23, 107, 93, 0.32);
}

.button.secondary {
  border-color: var(--line);
  background: #ffffff;
  color: var(--primary-dark);
}

.hero .button.secondary,
.final-cta .button.secondary {
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
}

.hero-proof {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 36px;
}

.hero-proof span {
  display: grid;
  gap: 4px;
  min-height: 88px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  padding: 13px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
}

.hero-proof strong {
  color: #ffffff;
  font-size: 26px;
  line-height: 1;
}

.hero-proof small {
  color: rgba(255, 255, 255, 0.74);
  font-weight: 800;
}

.hero-console {
  position: relative;
  transform: translate3d(calc(var(--mx, 0) * 10px), calc(var(--my, 0) * 10px), 0);
  transition: transform 160ms ease-out;
}

.app-window,
.floating-doc,
.product-showcase,
.module-card,
.visual-card,
.role-card,
.return-doc,
.price-card,
.option-matrix,
.faq-list details {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.app-window {
  overflow: hidden;
  box-shadow: var(--heavy-shadow);
  color: var(--ink);
}

.app-topbar {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  border-bottom: 1px solid var(--line);
  padding: 0 16px;
  background: #f8fafb;
}

.app-topbar strong {
  margin-left: 10px;
  font-size: 14px;
}

.window-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #cad3dc;
}

.window-dot:nth-child(1) {
  background: var(--danger);
}

.window-dot:nth-child(2) {
  background: var(--accent);
}

.window-dot:nth-child(3) {
  background: var(--primary);
}

.app-shell {
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr);
  min-height: 438px;
}

.app-sidebar {
  display: grid;
  align-content: start;
  gap: 14px;
  border-right: 1px solid var(--line);
  padding: 18px 16px;
  background: #eef3f2;
}

.app-logo {
  width: 42px;
  height: 42px;
}

.app-sidebar span:not(.app-logo) {
  height: 13px;
  border-radius: 999px;
  background: #cfd9d8;
}

.app-sidebar span.active {
  background: var(--primary);
}

.app-main {
  display: grid;
  align-content: start;
  gap: 16px;
  padding: 22px;
  background: var(--bg);
}

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

.metric-row article,
.kpi-card {
  display: grid;
  gap: 7px;
  min-height: 112px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: #ffffff;
}

.metric-row span,
.kpi-card small,
.mini-row.head,
.doc-addresses small,
.pricing-note,
.option-matrix span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.metric-row strong,
.kpi-card strong {
  font-size: 27px;
  line-height: 1;
}

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

.mini-row {
  display: grid;
  grid-template-columns: minmax(120px, 1fr) 110px 100px;
  gap: 12px;
  align-items: center;
  min-height: 54px;
  border-bottom: 1px solid var(--line);
  padding: 0 14px;
}

.mini-row:last-child {
  border-bottom: 0;
}

.status-pill,
.trend,
.plan-label {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 26px;
  border-radius: 999px;
  padding: 3px 9px;
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.status-pill.ok,
.trend.up {
  background: var(--green-soft);
  color: var(--primary-dark);
}

.status-pill.warn,
.trend.warn {
  background: var(--orange-soft);
  color: var(--warning);
}

.status-pill.blue,
.trend.blue {
  background: #dfe9f7;
  color: var(--blue);
}

.trend.neutral {
  background: #eef2f6;
  color: var(--muted);
}

.floating-doc {
  position: absolute;
  right: -18px;
  bottom: -26px;
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  width: 276px;
  padding: 14px;
  animation: float-card 4.8s ease-in-out infinite;
}

.floating-doc small {
  display: block;
  color: var(--muted);
  font-weight: 800;
}

.qr-mark,
.doc-qr {
  background:
    linear-gradient(90deg, #111 8px, transparent 8px) 0 0 / 16px 16px,
    linear-gradient(#111 8px, transparent 8px) 0 0 / 16px 16px,
    #ffffff;
}

.qr-mark {
  width: 62px;
  height: 62px;
  border: 7px solid #ffffff;
  outline: 1px solid var(--line);
}

.logo-strip {
  display: flex;
  gap: 1px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--line);
  overflow-x: auto;
}

.logo-strip span {
  flex: 1 0 150px;
  display: grid;
  place-items: center;
  min-height: 76px;
  background: #ffffff;
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.section {
  padding: 104px 72px;
}

.section-heading {
  max-width: 820px;
  margin-bottom: 34px;
}

.section h2,
.visual-card h2,
.final-cta h2 {
  max-width: 800px;
  font-size: 52px;
}

.section-heading p,
.visual-card p,
.return-copy p,
.pricing-head p,
.final-cta p,
.module-card p,
.role-card p,
.price-card p,
.faq-list p {
  color: var(--muted);
}

.section-heading p,
.visual-card p,
.return-copy p,
.pricing-head p,
.final-cta p {
  max-width: 680px;
  margin: 14px 0 0;
  font-size: 18px;
}

.product-showcase {
  overflow: hidden;
  background: #ffffff;
}

.console-tabs,
.billing-toggle {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  border-bottom: 1px solid var(--line);
  padding: 14px;
  background: #f8fafb;
}

.console-tabs button,
.billing-toggle button {
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 14px;
  background: #ffffff;
  color: var(--muted);
  font-weight: 850;
}

.console-tabs button.active,
.billing-toggle button.active {
  border-color: var(--primary);
  background: var(--primary);
  color: #ffffff;
}

.console-panel {
  padding: 20px;
}

.panel-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.panel-heading h3 {
  margin: 0;
  font-size: 28px;
}

.console-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.module-grid,
.role-grid,
.pricing-grid {
  display: grid;
  gap: 14px;
}

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

.module-card {
  position: relative;
  min-height: 236px;
  overflow: hidden;
  padding: 22px;
}

.module-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: var(--primary);
}

.module-card:nth-child(2n)::before {
  background: var(--blue);
}

.module-card:nth-child(3n)::before {
  background: var(--accent);
}

.module-index {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: var(--surface-soft);
  color: var(--primary-dark);
  font-size: 13px;
  font-weight: 900;
}

.module-card h3,
.role-card h3,
.price-card h3 {
  margin: 18px 0 8px;
  font-size: 22px;
  line-height: 1.15;
}

.module-card p,
.role-card p,
.price-card p {
  margin: 0;
}

.visual-band {
  position: relative;
  min-height: 650px;
  overflow: hidden;
  display: grid;
  align-items: end;
  padding: 72px;
  color: #ffffff;
}

.visual-band > img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.visual-band::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, rgba(24, 33, 43, 0.84), rgba(24, 33, 43, 0.22));
}

.visual-card {
  max-width: 720px;
  border-color: rgba(255, 255, 255, 0.2);
  padding: 28px;
  background: rgba(24, 33, 43, 0.82);
  color: #ffffff;
  backdrop-filter: blur(12px);
}

.visual-card p {
  color: rgba(255, 255, 255, 0.78);
}

.workflow-steps {
  display: grid;
  gap: 8px;
  margin-top: 24px;
}

.workflow-steps span {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  min-height: 48px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  padding: 7px 10px;
  background: rgba(255, 255, 255, 0.08);
  font-weight: 850;
}

.workflow-steps strong {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: #ffffff;
  color: var(--primary-dark);
}

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

.role-card {
  overflow: hidden;
}

.role-card img {
  width: 100%;
  height: 250px;
  object-fit: cover;
}

.role-card div {
  padding: 20px;
}

.returns-section {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(420px, 1.1fr);
  gap: 46px;
  align-items: center;
  background: #ffffff;
}

.return-points {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 24px;
}

.return-points span {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: var(--surface-soft);
  color: var(--primary-dark);
  font-size: 13px;
  font-weight: 850;
}

.return-doc {
  padding: 24px;
}

.doc-header {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  border-bottom: 1px solid var(--line);
  padding-bottom: 20px;
}

.doc-header h3 {
  margin: 0;
  font-size: 34px;
}

.doc-header span {
  color: var(--muted);
  font-weight: 800;
}

.doc-qr {
  width: 112px;
  height: 112px;
  border: 10px solid #ffffff;
  outline: 1px solid var(--line);
}

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

.doc-addresses div {
  display: grid;
  gap: 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: var(--bg);
}

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

.return-doc table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.return-doc th,
.return-doc td {
  border: 1px solid var(--line);
  padding: 10px;
  text-align: left;
}

.return-doc th {
  background: var(--surface-soft);
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
}

.pricing-head {
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 26px;
}

.billing-toggle {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 5px;
  background: #ffffff;
}

.pricing-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
}

.price-card {
  display: grid;
  grid-template-rows: auto auto auto auto 1fr auto;
  gap: 18px;
  height: 100%;
  padding: 22px;
}

.price-card .button {
  align-self: end;
}

.price-card.featured {
  border-color: var(--primary);
  box-shadow: var(--heavy-shadow);
}

.plan-label {
  background: var(--surface-soft);
  color: var(--primary-dark);
  text-transform: uppercase;
}

.price-card h3,
.price,
.price-card ul {
  margin: 0;
}

.price {
  color: var(--ink) !important;
  font-size: 42px;
  font-weight: 900;
  line-height: 1;
}

.price small {
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}

.price-card ul {
  display: grid;
  gap: 9px;
  padding: 0;
  list-style: none;
}

.price-card li {
  position: relative;
  padding-left: 20px;
  color: var(--muted);
}

.price-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--primary);
}

.option-matrix {
  justify-content: space-between;
  gap: 1px;
  overflow: hidden;
  margin-top: 16px;
  background: var(--line);
}

.option-matrix div {
  flex: 1 1 0;
  display: grid;
  gap: 4px;
  min-height: 112px;
  padding: 20px;
  background: #ffffff;
}

.pricing-note {
  margin: 16px 0 0;
}

.faq-section {
  background: #ffffff;
}

.faq-list {
  display: grid;
  gap: 10px;
  max-width: 940px;
}

.faq-list details {
  padding: 18px 20px;
}

.faq-list summary {
  cursor: pointer;
  font-weight: 850;
}

.faq-list p {
  margin: 12px 0 0;
}

.final-cta {
  padding: 104px 72px;
  background: var(--ink);
  color: #ffffff;
}

.final-cta p:not(.eyebrow) {
  color: rgba(255, 255, 255, 0.76);
}

.site-footer {
  justify-content: space-between;
  gap: 20px;
  min-height: 84px;
  border-top: 1px solid var(--line);
  padding: 0 72px;
  background: #ffffff;
  color: var(--muted);
  font-size: 14px;
  font-weight: 750;
}

.footer-logo {
  width: 190px;
  height: auto;
}

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 700ms ease, transform 700ms ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes photo-drift {
  from {
    transform: scale(1.04) translate3d(0, 0, 0);
  }

  to {
    transform: scale(1.09) translate3d(-18px, -8px, 0);
  }
}

@keyframes float-card {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-10px);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 1ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 1180px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .hero-console {
    max-width: 780px;
  }

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

  .returns-section,
  .pricing-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 860px) {
  .site-header {
    min-height: 64px;
    padding: 0 18px;
  }

  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.14);
    padding: 8px 18px 18px;
    background: rgba(24, 33, 43, 0.98);
  }

  .site-nav.open {
    display: flex;
  }

  .site-nav a {
    min-height: 44px;
  }

  .hero,
  .section,
  .visual-band,
  .final-cta {
    padding: 78px 18px;
  }

  .hero h1 {
    font-size: 54px;
  }

  .hero-copy,
  .section-heading p,
  .visual-card p,
  .return-copy p,
  .pricing-head p,
  .final-cta p {
    font-size: 17px;
  }

  .section h2,
  .visual-card h2,
  .final-cta h2 {
    font-size: 36px;
  }

  .hero-proof,
  .metric-row,
  .module-grid,
  .role-grid,
  .return-points,
  .doc-addresses,
  .option-matrix {
    grid-template-columns: 1fr;
  }

  .app-shell,
  .doc-header {
    grid-template-columns: 1fr;
  }

  .app-sidebar {
    display: none;
  }

  .mini-row {
    grid-template-columns: 1fr;
    align-items: start;
    padding: 12px;
  }

  .floating-doc {
    position: static;
    margin: 12px 0 0 auto;
  }

  .pricing-head,
  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 520px) {
  .hero h1 {
    font-size: 46px;
  }

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

  .console-tabs,
  .billing-toggle {
    align-items: stretch;
    flex-direction: column;
  }

  .console-tabs button,
  .billing-toggle button {
    width: 100%;
  }
}
