:root {
  --dark: #0e1412;
  --dark-2: #17201d;
  --paper: #f7f5ef;
  --paper-2: #fbfaf6;
  --text: #1c2421;
  --light-text: #f4f1e8;
  --muted: #65706b;
  --green: #2f6f5e;
  --green-soft: #8bae8b;
  --line: #d8d2c4;
  --line-cool: #e2e5e1;
  --warm: #c9b37e;
  --shadow: 0 18px 50px rgba(14, 20, 18, 0.12);
  --radius: 8px;
  --container: 1220px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: Inter, Manrope, "Segoe UI", Arial, sans-serif;
  line-height: 1.55;
}

body.no-scroll {
  overflow: hidden;
}

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

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

.container {
  width: min(calc(100% - 48px), var(--container));
  margin: 0 auto;
}

.section {
  padding: 108px 0;
}

.section-dark {
  background: var(--dark);
  color: var(--light-text);
}

.section-muted {
  background: #efeee7;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(14, 20, 18, 0.94);
  color: var(--light-text);
  border-bottom: 1px solid rgba(244, 241, 232, 0.12);
  backdrop-filter: blur(16px);
}

.header-inner {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  min-height: 72px;
  gap: 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 640;
  font-size: 15px;
  line-height: 1.2;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(244, 241, 232, 0.55);
  font-family: Georgia, serif;
  font-size: 20px;
}

.main-nav {
  display: flex;
  justify-content: flex-end;
  gap: 26px;
  color: rgba(244, 241, 232, 0.72);
  font-size: 14px;
}

.main-nav a:hover {
  color: var(--light-text);
}

.btn {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 6px;
  padding: 12px 20px;
  font-weight: 650;
  font-size: 14px;
  line-height: 1.2;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
}

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

.btn-primary {
  background: var(--green);
  color: white;
}

.btn-light {
  background: var(--light-text);
  color: var(--dark);
}

.btn-ghost-light {
  border-color: rgba(244, 241, 232, 0.28);
  color: var(--light-text);
}

.nav-toggle {
  display: none;
}

.hero {
  min-height: calc(100vh - 72px);
  padding: 92px 0 76px;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 32px;
  align-items: start;
}

.hero-copy {
  grid-column: span 6;
}

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

h1 {
  max-width: 720px;
  margin-bottom: 24px;
  font-size: clamp(42px, 5vw, 64px);
  line-height: 1.04;
  font-weight: 680;
}

h1 span {
  display: block;
  margin-top: 14px;
  font-size: clamp(28px, 3.1vw, 42px);
  line-height: 1.14;
  font-weight: 620;
}

.hero-copy p {
  max-width: 650px;
  margin-bottom: 34px;
  color: rgba(244, 241, 232, 0.76);
  font-size: 18px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 38px;
}

.hero-kpis {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 190px));
  gap: 14px;
}

.hero-kpis div,
.diagnostic-col,
.screen,
.kpi-strip div,
.audit-panel {
  border: 1px solid var(--line-cool);
  border-radius: var(--radius);
}

.hero-kpis div {
  padding: 18px 18px 16px;
  border-color: rgba(244, 241, 232, 0.18);
  background: rgba(244, 241, 232, 0.04);
}

.hero-kpis strong {
  display: block;
  font-size: 30px;
  line-height: 1;
  font-weight: 630;
}

.hero-kpis span {
  display: block;
  margin-top: 8px;
  color: rgba(244, 241, 232, 0.68);
  font-size: 13px;
}

.hero-visual {
  position: relative;
  grid-column: 7 / -1;
  min-height: 500px;
}

.phone-frame {
  position: absolute;
  right: 16%;
  top: 0;
  width: min(360px, 58%);
  padding: 12px;
  border: 1px solid rgba(244, 241, 232, 0.16);
  border-radius: 34px;
  background: #0b0f0e;
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.35);
}

.phone-frame img {
  border-radius: 24px;
}

.section-head {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 32px;
  margin-bottom: 46px;
}

.section-head h2 {
  grid-column: span 7;
  margin-bottom: 0;
  font-size: clamp(32px, 4vw, 48px);
  line-height: 1.1;
  font-weight: 660;
}

.section-head p {
  grid-column: 8 / -1;
  align-self: end;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 17px;
}

.section-head.compact h2 {
  grid-column: span 8;
}

.section-head.compact p {
  grid-column: 9 / -1;
}

.diagnostic {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.diagnostic-col {
  border: 0;
  border-radius: 0;
  padding: 34px 34px 34px 0;
}

.diagnostic-col + .diagnostic-col {
  padding-left: 34px;
  border-left: 1px solid var(--line);
}

.col-label,
.story-step {
  display: block;
  margin-bottom: 18px;
  color: var(--green);
  font-size: 12px;
  font-weight: 760;
}

.col-label {
  text-transform: uppercase;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

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

li + li {
  margin-top: 12px;
}

li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.75em;
  width: 8px;
  height: 1px;
  background: var(--green);
}

.process-line {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  border-top: 1px solid var(--line);
}

.process-item {
  position: relative;
  padding: 26px 14px 0 0;
}

.process-item::before {
  content: "";
  position: absolute;
  top: -5px;
  left: 0;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--green);
}

.process-item span {
  display: block;
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.process-item strong {
  display: block;
  max-width: 135px;
  font-size: 15px;
  line-height: 1.35;
}

.interfaces {
  padding-bottom: 70px;
}

.story {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 32px;
  align-items: center;
  padding: 56px 0;
  border-top: 1px solid var(--line);
}

.story-copy {
  grid-column: span 4;
}

.story-copy h3 {
  margin-bottom: 22px;
  font-size: clamp(26px, 3vw, 36px);
  line-height: 1.14;
  font-weight: 650;
}

.screen {
  grid-column: 5 / -1;
  margin: 0;
  overflow: hidden;
  background: var(--paper-2);
  box-shadow: var(--shadow);
}

.reverse .story-copy {
  grid-column: 9 / -1;
  order: 2;
}

.reverse .screen {
  grid-column: 1 / 9;
  order: 1;
}

.mobile-screen {
  justify-self: center;
  width: min(360px, 100%);
  padding: 10px;
  border-radius: 30px;
  background: var(--dark);
}

.mobile-screen img {
  border-radius: 22px;
}

.wide-screen img {
  width: 100%;
  height: auto;
  object-fit: contain;
  object-position: center;
}

.image-zoom {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: zoom-in;
}

.image-zoom:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 3px;
}

.image-zoom img {
  transition: filter 180ms ease, transform 180ms ease;
}

.image-zoom:hover img {
  filter: saturate(1.04) contrast(1.02);
}

figcaption {
  padding: 14px 18px 16px;
  border-top: 1px solid var(--line-cool);
  color: var(--muted);
  font-size: 13px;
}

.mobile-screen figcaption {
  border: 0;
  color: rgba(244, 241, 232, 0.7);
}

.kpi-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

.kpi-strip div {
  padding: 24px;
  background: var(--paper-2);
}

.kpi-strip strong {
  display: block;
  margin-bottom: 8px;
  color: var(--dark-2);
  font-size: clamp(34px, 5vw, 52px);
  line-height: 1;
  font-weight: 610;
}

.kpi-strip span {
  color: var(--muted);
  font-size: 14px;
}

.metrics-table {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper-2);
}

.metrics-row {
  display: grid;
  grid-template-columns: 1fr 1.7fr 1.7fr;
}

.metrics-row + .metrics-row {
  border-top: 1px solid var(--line-cool);
}

.metrics-row span {
  padding: 18px;
  border-right: 1px solid var(--line-cool);
  color: var(--muted);
  font-size: 14px;
}

.metrics-row span:first-child {
  color: var(--dark-2);
  font-weight: 680;
}

.metrics-row span:last-child {
  border-right: 0;
}

.metrics-head {
  background: #e7e8e0;
}

.metrics-head span {
  color: var(--dark-2);
  font-size: 12px;
  font-weight: 760;
  text-transform: uppercase;
}

.compliance-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 32px;
  align-items: start;
}

.compliance h2 {
  grid-column: span 6;
  margin-bottom: 24px;
  font-size: clamp(32px, 4vw, 46px);
  line-height: 1.1;
}

.compliance p {
  max-width: 620px;
  color: var(--muted);
  font-size: 18px;
}

.compliance-grid > div:first-child {
  grid-column: span 6;
}

.audit-panel {
  grid-column: 7 / -1;
  overflow: hidden;
  background: var(--paper-2);
}

.audit-row {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 16px;
  padding: 22px 24px;
}

.audit-row + .audit-row {
  border-top: 1px solid var(--line-cool);
}

.audit-row span {
  color: var(--muted);
}

.audit-row strong {
  color: var(--dark-2);
  font-weight: 650;
}

.final-cta {
  padding: 76px 0;
}

.final-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: center;
}

.final-grid h2 {
  margin-bottom: 16px;
  font-size: clamp(32px, 4vw, 48px);
  line-height: 1.08;
}

.final-grid p {
  max-width: 700px;
  margin-bottom: 0;
  color: rgba(244, 241, 232, 0.72);
  font-size: 17px;
}

.final-start {
  width: fit-content;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 32px;
  background: rgba(14, 20, 18, 0.88);
}

.lightbox.is-open {
  display: flex;
}

.lightbox-figure {
  width: min(96vw, 1500px);
  max-height: 90vh;
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(244, 241, 232, 0.16);
  border-radius: var(--radius);
  background: var(--paper-2);
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.42);
}

.lightbox-figure img {
  width: 100%;
  max-height: calc(90vh - 58px);
  object-fit: contain;
  background: #e9eef4;
}

.lightbox-figure figcaption {
  background: var(--paper-2);
}

.lightbox-close {
  position: fixed;
  top: 20px;
  right: 20px;
  min-height: 42px;
  padding: 10px 14px;
  border: 1px solid rgba(244, 241, 232, 0.28);
  border-radius: 6px;
  background: rgba(14, 20, 18, 0.72);
  color: var(--light-text);
  font: inherit;
  font-size: 14px;
  cursor: pointer;
}

@media (max-width: 1040px) {
  .header-inner {
    grid-template-columns: auto auto;
  }

  .main-nav {
    grid-column: 1 / -1;
    justify-content: flex-start;
    padding-bottom: 18px;
  }

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

  .hero-copy,
  .hero-visual,
  .section-head h2,
  .section-head p,
  .section-head.compact h2,
  .section-head.compact p,
  .story-copy,
  .screen,
  .reverse .story-copy,
  .reverse .screen,
  .compliance-grid > div:first-child,
  .audit-panel {
    grid-column: 1 / -1;
  }

  .hero-visual {
    min-height: 560px;
  }

  .section-head {
    gap: 18px;
  }

  .process-line {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    row-gap: 34px;
  }

  .reverse .story-copy,
  .reverse .screen {
    order: initial;
  }

  .story {
    gap: 26px;
  }
}

@media (max-width: 760px) {
  .container {
    width: min(calc(100% - 32px), var(--container));
  }

  .section {
    padding: 72px 0;
  }

  .header-inner {
    min-height: 64px;
    gap: 14px;
  }

  .brand {
    max-width: 210px;
    font-size: 13px;
  }

  .brand-mark {
    flex: 0 0 auto;
  }

  .nav-toggle {
    display: inline-grid;
    justify-self: end;
    width: 42px;
    height: 42px;
    place-items: center;
    border: 1px solid rgba(244, 241, 232, 0.2);
    border-radius: 6px;
    background: transparent;
  }

  .nav-toggle span {
    display: block;
    width: 18px;
    height: 1px;
    background: var(--light-text);
  }

  .main-nav,
  

  .site-header.nav-open .main-nav {
    display: grid;
    grid-column: 1 / -1;
    gap: 14px;
    padding: 8px 0 18px;
  }

  .hero {
    padding: 46px 0 54px;
  }

  h1 {
    font-size: 39px;
  }

  .hero-copy p,
  .section-head p,
  .final-grid p,
  .compliance p {
    font-size: 16px;
  }

  .hero-actions {
    display: grid;
  }

  .hero-kpis,
  .diagnostic,
  .kpi-strip,
  .final-grid {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    min-height: 0;
    display: grid;
    gap: 14px;
  }

  .phone-frame {
    position: relative;
    right: auto;
    top: auto;
    justify-self: center;
    transform: none;
    width: min(300px, 78%);
  }

  .diagnostic {
    border-bottom: 0;
  }

  .diagnostic-col,
  .diagnostic-col + .diagnostic-col {
    padding: 26px 0;
    border-left: 0;
    border-bottom: 1px solid var(--line);
  }

  .process-line {
    display: grid;
    grid-template-columns: 1fr;
    border-top: 0;
    gap: 0;
  }

  .process-item {
    display: grid;
    grid-template-columns: 44px 1fr;
    gap: 12px;
    padding: 0 0 22px 0;
    border-left: 1px solid var(--line);
    margin-left: 8px;
  }

  .process-item::before {
    top: 5px;
    left: -5px;
  }

  .process-item span {
    margin: 0 0 0 16px;
  }

  .process-item strong {
    max-width: none;
  }

  .story {
    padding: 42px 0;
  }

  .story-copy h3 {
    font-size: 27px;
  }

  .wide-screen {
    margin-left: -16px;
    margin-right: -16px;
    border-left: 0;
    border-right: 0;
    border-radius: 0;
  }

  .wide-screen img {
    height: auto;
    object-position: center;
  }

  .lightbox {
    padding: 16px;
  }

  .lightbox-close {
    top: 12px;
    right: 12px;
  }

  .mobile-screen {
    width: min(310px, 100%);
  }

  .metrics-table {
    border: 0;
    background: transparent;
  }

  .metrics-row,
  .metrics-head {
    display: grid;
    grid-template-columns: 1fr;
    margin-bottom: 12px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--paper-2);
  }

  .metrics-head {
    display: none;
  }

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

  .metrics-row span {
    border-right: 0;
    padding: 13px 16px;
  }

  .metrics-row span + span {
    border-top: 1px solid var(--line-cool);
  }

  .compliance-grid {
    gap: 18px;
  }

  .audit-row {
    grid-template-columns: 1fr;
    gap: 4px;
    padding: 18px;
  }
}

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

  .btn {
    transition: none;
  }
}
