:root {
  --ink: #101828;
  --muted: #56637a;
  --paper: #f8fafc;
  --surface: #ffffff;
  --navy: #0b132b;
  --teal: #00a6c8;
  --teal-soft: #d9f8ff;
  --green: #16a34a;
  --green-soft: #dff8e8;
  --amber: #d97706;
  --amber-soft: #fff2cc;
  --coral: #e35b52;
  --line: #d7dee9;
  --shadow: 0 24px 70px rgba(16, 24, 40, 0.16);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
}

body,
button,
input {
  font: inherit;
}

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

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

.skip-link {
  position: absolute;
  left: 16px;
  top: -80px;
  z-index: 20;
  border-radius: 6px;
  background: var(--navy);
  color: #fff;
  padding: 10px 14px;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 15;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  min-height: 72px;
  padding: 14px 40px;
  border-bottom: 1px solid rgba(215, 222, 233, 0.82);
  background: rgba(248, 250, 252, 0.94);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
}

.brand img {
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0, 166, 200, 0.22);
}

.nav-links {
  display: flex;
  justify-content: center;
  gap: 6px;
}

.nav-links a,
.header-action {
  min-height: 40px;
  border-radius: 6px;
  padding: 10px 14px;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 700;
}

.nav-links a:hover,
.header-action:hover {
  background: #edf5f8;
  color: var(--ink);
}

.header-action {
  border: 1px solid var(--line);
  color: var(--ink);
}

.hero {
  position: relative;
  min-height: calc(88vh - 72px);
  overflow: hidden;
  display: grid;
  align-items: center;
  padding: 54px 40px 66px;
  background:
    linear-gradient(180deg, rgba(248, 250, 252, 0.92), rgba(248, 250, 252, 0.72)),
    #f5fbfd;
}

.hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 98px;
  background: linear-gradient(180deg, rgba(248, 250, 252, 0), var(--paper));
}

.hero-content {
  position: relative;
  z-index: 3;
  width: min(720px, 100%);
}

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

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

h1 {
  margin-bottom: 18px;
  color: var(--navy);
  font-size: 5rem;
  line-height: 0.95;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 14px;
  color: var(--navy);
  font-size: 2.65rem;
  line-height: 1.05;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 8px;
  color: var(--ink);
  font-size: 1.08rem;
  line-height: 1.2;
  letter-spacing: 0;
}

p {
  color: var(--muted);
  line-height: 1.7;
}

.hero-copy {
  width: min(620px, 100%);
  margin-bottom: 28px;
  color: #334155;
  font-size: 1.18rem;
}

.hero-actions,
.screen-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button,
.screen-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  border-radius: 8px;
  border: 1px solid transparent;
  padding: 12px 18px;
  font-weight: 800;
  cursor: pointer;
}

.button svg,
.screen-tab svg,
.header-action svg {
  width: 18px;
  height: 18px;
}

.button.primary {
  background: var(--navy);
  color: #fff;
  box-shadow: 0 16px 34px rgba(11, 19, 43, 0.22);
}

.button.secondary {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.78);
  color: var(--ink);
}

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

.hero-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  width: min(760px, 100%);
  margin: 34px 0 0;
}

.hero-facts div {
  border: 1px solid rgba(215, 222, 233, 0.92);
  border-radius: 8px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.78);
}

.hero-facts dt {
  margin-bottom: 4px;
  font-weight: 900;
}

.hero-facts dd {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.45;
}

.hero-scene {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.phone {
  width: 264px;
  aspect-ratio: 9 / 19;
  border: 10px solid #111827;
  border-radius: 34px;
  background: #111827;
  box-shadow: var(--shadow);
}

.phone-speaker {
  width: 76px;
  height: 6px;
  margin: 6px auto 9px;
  border-radius: 99px;
  background: #2f3a4c;
}

.phone-screen {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  height: calc(100% - 21px);
  overflow: hidden;
  border-radius: 24px;
  padding: 18px;
  background: #ffffff;
}

.phone-home {
  position: absolute;
  right: 11%;
  top: 9%;
  transform: rotate(3deg);
}

.phone-scan {
  position: absolute;
  right: 31%;
  bottom: 6%;
  width: 218px;
  transform: rotate(-7deg);
}

.screen-top,
.screen-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 32px;
  gap: 10px;
  color: var(--navy);
  font-size: 0.9rem;
  font-weight: 900;
}

.screen-top svg,
.screen-header svg {
  width: 20px;
  height: 20px;
  color: var(--teal);
}

.search-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  border-radius: 8px;
  padding: 8px 10px;
  background: #eef6f9;
  color: #667085;
  font-size: 0.69rem;
  line-height: 1.25;
}

.search-pill svg {
  flex: 0 0 auto;
  width: 15px;
  height: 15px;
}

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

.metric-grid span,
.mini-metric {
  min-height: 48px;
  border: 1px solid #e5edf5;
  border-radius: 8px;
  padding: 8px;
  background: #fff;
  color: var(--muted);
  font-size: 0.66rem;
  line-height: 1.2;
}

.metric-grid b,
.mini-metric b {
  display: block;
  color: var(--navy);
  font-size: 1.15rem;
}

.document-row,
.mock-row {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 54px;
  border: 1px solid #e5edf5;
  border-radius: 8px;
  padding: 10px;
  background: #ffffff;
}

.document-row svg,
.mock-row svg {
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  color: var(--teal);
}

.document-row strong,
.mock-row strong {
  display: block;
  color: var(--ink);
  font-size: 0.78rem;
  line-height: 1.2;
}

.document-row span,
.mock-row span {
  display: block;
  color: var(--muted);
  font-size: 0.66rem;
  line-height: 1.3;
}

.bottom-nav {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-top: auto;
  border-radius: 8px;
  padding: 10px;
  background: #f6f8fb;
}

.bottom-nav svg {
  width: 18px;
  height: 18px;
  margin: auto;
  color: #667085;
}

.scanner-screen {
  background: #0f172a;
}

.screen-top.light {
  color: #fff;
}

.screen-top.light svg {
  color: var(--teal-soft);
}

.scan-view {
  position: relative;
  flex: 1;
  min-height: 220px;
  border-radius: 20px;
  overflow: hidden;
  display: grid;
  place-items: center;
  background:
    linear-gradient(135deg, rgba(0, 180, 216, 0.18), rgba(34, 197, 94, 0.18)),
    repeating-linear-gradient(0deg, #1f2937 0 18px, #233044 18px 36px);
}

.scan-outline {
  position: relative;
  width: 72%;
  aspect-ratio: 0.72;
  border: 2px solid rgba(255, 255, 255, 0.78);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.12);
}

.scan-outline span {
  position: absolute;
  width: 22px;
  height: 22px;
  border-color: var(--green);
  border-style: solid;
}

.scan-outline span:nth-child(1) {
  left: -4px;
  top: -4px;
  border-width: 3px 0 0 3px;
}

.scan-outline span:nth-child(2) {
  right: -4px;
  top: -4px;
  border-width: 3px 3px 0 0;
}

.scan-outline span:nth-child(3) {
  right: -4px;
  bottom: -4px;
  border-width: 0 3px 3px 0;
}

.scan-outline span:nth-child(4) {
  left: -4px;
  bottom: -4px;
  border-width: 0 0 3px 3px;
}

.scan-view p {
  position: absolute;
  bottom: 18px;
  left: 16px;
  right: 16px;
  margin: 0;
  color: #fff;
  text-align: center;
  font-size: 0.76rem;
  font-weight: 800;
}

.scan-controls {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.scan-controls span {
  border-radius: 6px;
  padding: 8px 5px;
  background: rgba(255, 255, 255, 0.12);
  color: #dbeafe;
  text-align: center;
  font-size: 0.66rem;
  font-weight: 800;
}

.shutter {
  width: 56px;
  height: 56px;
  margin: 2px auto 0;
  border: 7px solid rgba(255, 255, 255, 0.78);
  border-radius: 50%;
  background: #fff;
}

.doc-stack,
.mini-panel {
  position: absolute;
  border: 1px solid rgba(215, 222, 233, 0.9);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 18px 45px rgba(16, 24, 40, 0.11);
}

.doc-stack {
  width: 210px;
  min-height: 148px;
  padding: 22px;
}

.doc-stack-one {
  right: 3%;
  bottom: 10%;
  transform: rotate(8deg);
}

.doc-stack-two {
  right: 45%;
  top: 15%;
  transform: rotate(-9deg);
}

.doc-tab {
  display: block;
  width: 44px;
  height: 44px;
  margin-bottom: 18px;
  border-radius: 8px;
}

.doc-tab.teal {
  background: var(--teal-soft);
}

.doc-tab.amber {
  background: var(--amber-soft);
}

.doc-line {
  display: block;
  height: 9px;
  margin-top: 11px;
  border-radius: 99px;
  background: #cbd5e1;
}

.doc-line.long {
  width: 100%;
}

.doc-line.medium {
  width: 76%;
}

.doc-line.short {
  width: 54%;
}

.mini-panel {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  padding: 12px 15px;
  color: var(--navy);
  font-size: 0.84rem;
  font-weight: 900;
}

.mini-panel svg {
  width: 20px;
  height: 20px;
  color: var(--teal);
}

.panel-cloud {
  right: 8%;
  top: 44%;
}

.panel-ocr {
  right: 27%;
  top: 75%;
}

.flow-section,
.feature-section,
.screens-section,
.security-section,
.cloud-section {
  padding: 88px 40px;
}

.section-heading {
  width: min(790px, 100%);
  margin: 0 auto 38px;
  text-align: center;
}

.section-heading p {
  margin-left: auto;
  margin-right: auto;
  width: min(690px, 100%);
}

.flow-grid,
.feature-grid,
.security-layout,
.cloud-section {
  width: min(1160px, 100%);
  margin: 0 auto;
}

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

.flow-step,
.feature-card,
.security-points article,
.cloud-plan {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 16px 36px rgba(16, 24, 40, 0.07);
}

.flow-step,
.feature-card {
  padding: 22px;
}

.flow-step {
  position: relative;
  min-height: 236px;
}

.flow-step > i,
.feature-card > i,
.security-points i,
.plan-head i {
  width: 32px;
  height: 32px;
  color: var(--teal);
}

.flow-step span {
  position: absolute;
  right: 18px;
  top: 18px;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--teal-soft);
  color: #075985;
  font-weight: 900;
}

.flow-step h3,
.feature-card h3 {
  margin-top: 24px;
}

.flow-step p,
.feature-card p,
.security-points p {
  margin-bottom: 0;
  font-size: 0.96rem;
}

.feature-section {
  background: #ffffff;
}

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

.feature-card:nth-child(2) > i,
.feature-card:nth-child(6) > i {
  color: var(--green);
}

.feature-card:nth-child(3) > i {
  color: var(--amber);
}

.feature-card:nth-child(4) > i {
  color: var(--coral);
}

.screens-section {
  display: grid;
  grid-template-columns: minmax(280px, 0.84fr) minmax(320px, 1fr);
  gap: 44px;
  align-items: center;
  width: min(1160px, 100%);
  margin: 0 auto;
}

.screen-copy p {
  max-width: 560px;
}

.screen-tabs {
  margin-top: 26px;
}

.screen-tab {
  border-color: var(--line);
  background: #fff;
  color: var(--muted);
}

.screen-tab.active {
  border-color: rgba(0, 166, 200, 0.34);
  background: var(--teal-soft);
  color: #075985;
}

.screen-preview-shell {
  display: grid;
  place-items: center;
  min-height: 640px;
}

.interactive-phone {
  width: 318px;
  transform: none;
}

.interactive-phone .phone-screen {
  gap: 14px;
  padding: 20px;
}

.mini-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.alert-card,
.setting-row,
.ocr-field,
.plan-pill {
  border-radius: 8px;
  padding: 12px;
  background: #f6f9fc;
}

.alert-card {
  border: 1px solid #b7edc8;
  background: var(--green-soft);
}

.alert-card strong,
.setting-row strong,
.ocr-field strong,
.plan-pill strong {
  display: block;
  color: var(--ink);
  font-size: 0.82rem;
  line-height: 1.2;
}

.alert-card span,
.setting-row span,
.ocr-field span,
.plan-pill span {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.68rem;
  line-height: 1.35;
}

.screen-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.screen-button {
  border-radius: 8px;
  padding: 10px;
  background: var(--navy);
  color: #fff;
  text-align: center;
  font-size: 0.72rem;
  font-weight: 900;
}

.screen-button.light {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
}

.ocr-field {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.ocr-field span {
  margin-top: 0;
  color: var(--navy);
  font-weight: 800;
  text-align: right;
}

.security-section {
  background: #eef7f5;
}

.security-layout {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 22px;
  align-items: stretch;
}

.architecture {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  align-items: stretch;
  gap: 12px;
}

.arch-node {
  display: flex;
  min-height: 210px;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 8px;
  padding: 22px;
  background: #fff;
}

.arch-node.accent {
  background: var(--navy);
  color: #fff;
}

.arch-node svg {
  width: 36px;
  height: 36px;
  color: var(--teal);
}

.arch-node span {
  color: var(--muted);
  line-height: 1.5;
}

.arch-node.accent span {
  color: #cbd5e1;
}

.arch-connector {
  display: grid;
  place-items: center;
  color: #64748b;
  font-size: 0.8rem;
  font-weight: 900;
  text-transform: uppercase;
}

.security-points {
  display: grid;
  gap: 12px;
}

.security-points article {
  padding: 20px;
}

.security-points h3 {
  margin-top: 14px;
}

.cloud-section {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) minmax(280px, 420px);
  gap: 34px;
  align-items: center;
}

.cloud-section h2,
.cloud-section p {
  max-width: 620px;
}

.cloud-plan {
  padding: 24px;
}

.plan-head {
  display: flex;
  gap: 14px;
  align-items: center;
  margin-bottom: 24px;
}

.plan-head h3 {
  margin: 0;
}

.plan-head p {
  margin: 3px 0 0;
  font-size: 0.94rem;
}

.plan-price {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 20px;
}

.plan-price strong {
  color: var(--navy);
  font-size: 2.2rem;
}

.plan-price span {
  color: var(--muted);
  font-size: 0.9rem;
}

.cloud-plan ul {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.cloud-plan li {
  display: flex;
  gap: 10px;
  color: #334155;
  line-height: 1.45;
}

.cloud-plan li svg {
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  color: var(--green);
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 34px 40px;
  border-top: 1px solid var(--line);
  background: #fff;
}

.site-footer p {
  margin: 0;
  font-size: 0.95rem;
}

.site-footer a {
  color: var(--teal);
  font-weight: 800;
}

@media (max-width: 1100px) {
  .phone-home {
    right: 4%;
  }

  .phone-scan {
    right: 25%;
  }

  .doc-stack-two {
    right: 37%;
  }

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

  .screens-section,
  .security-layout,
  .cloud-section {
    grid-template-columns: 1fr;
  }

  .screen-preview-shell {
    min-height: 600px;
  }
}

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

  .nav-links {
    display: none;
  }

  .hero {
    min-height: auto;
    padding: 20px 20px 28px;
  }

  .hero-scene {
    position: relative;
    height: 360px;
    margin: 0 0 18px;
    order: -1;
  }

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

  .hero-content {
    width: 100%;
  }

  h1 {
    margin-bottom: 12px;
    font-size: 3.25rem;
  }

  h2 {
    font-size: 2.15rem;
  }

  .phone-home {
    right: 7%;
    top: 4px;
  }

  .phone-scan {
    left: 4%;
    right: auto;
    bottom: 18px;
  }

  .doc-stack,
  .mini-panel {
    display: none;
  }

  .hero-facts {
    display: none;
  }

  .hero-copy {
    margin-bottom: 18px;
    font-size: 1rem;
  }

  .hero-actions {
    flex-wrap: nowrap;
  }

  .hero-actions .button {
    flex: 1 1 0;
    min-height: 44px;
    padding: 10px 12px;
    font-size: 0.86rem;
  }

  .flow-section,
  .feature-section,
  .screens-section,
  .security-section,
  .cloud-section {
    padding: 64px 20px;
  }

  .screens-section {
    width: 100%;
  }

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

  .arch-connector {
    min-height: 34px;
  }
}

@media (max-width: 620px) {
  .header-action {
    display: none;
  }

  .site-header {
    grid-template-columns: 1fr;
  }

  .hero-scene {
    height: 350px;
  }

  .phone {
    width: 158px;
    border-width: 8px;
    border-radius: 30px;
  }

  .phone-scan {
    width: 132px;
  }

  .phone-home {
    right: 14px;
  }

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

  .screen-preview-shell {
    min-height: 548px;
  }

  .interactive-phone {
    width: min(304px, 100%);
  }

  .mini-metrics,
  .metric-grid {
    grid-template-columns: 1fr;
  }

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

  .site-footer {
    flex-direction: column;
    align-items: flex-start;
    padding: 28px 20px;
  }
}
