:root {
  --bg: #f3f8f1;
  --surface: #ffffff;
  --surface-soft: #e7f0e8;
  --ink: #24333d;
  --ink-strong: #102333;
  --muted: #66766d;
  --line: rgba(35, 50, 66, 0.13);
  --primary: #42b867;
  --primary-dark: #0d7d48;
  --primary-soft: #e1f3e5;
  --ledger: #dce8dd;
  --shadow: 0 22px 60px rgba(28, 54, 45, 0.12);
  --soft-shadow: 0 12px 30px rgba(28, 54, 45, 0.08);
  --radius: 10px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background:
    radial-gradient(circle at 78% 12%, rgba(66, 184, 103, 0.16), transparent 330px),
    linear-gradient(90deg, rgba(16, 35, 51, 0.035) 1px, transparent 1px),
    linear-gradient(180deg, rgba(16, 35, 51, 0.03) 1px, transparent 1px),
    linear-gradient(180deg, #f7fbf3 0%, var(--bg) 40%, #ffffff 100%);
  background-size: auto, 44px 44px, 44px 44px, auto;
  font-family: "Noto Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 3px solid rgba(66, 184, 103, 0.36);
  outline-offset: 3px;
}

button,
input,
textarea {
  font: inherit;
}

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

h1,
h2,
h3 {
  color: var(--ink-strong);
  font-family: "Space Grotesk", "Noto Sans", system-ui, sans-serif;
  letter-spacing: -0.035em;
}

h1 {
  max-width: 720px;
  margin-bottom: 0;
  font-size: clamp(38px, 10vw, 82px);
  line-height: 0.94;
}

h2 {
  margin-bottom: 12px;
  font-size: clamp(31px, 8vw, 50px);
  line-height: 1.05;
}

h3 {
  margin-bottom: 10px;
  font-size: 22px;
  line-height: 1.18;
}

h4 {
  margin: 10px 0 6px;
  color: var(--ink-strong);
  font-size: 16px;
  line-height: 1.35;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  padding: 0 18px;
  background: rgba(247, 251, 243, 0.88);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

.brand,
.desktop-nav,
.header-actions,
.site-footer nav {
  display: flex;
  align-items: center;
}

.brand img {
  display: block;
  width: 156px;
  height: auto;
}

.desktop-nav {
  display: none;
  gap: 24px;
  white-space: nowrap;
}

.desktop-nav a,
.mobile-menu a,
.site-footer a {
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
  transition: color 180ms var(--ease);
}

.desktop-nav a:hover,
.mobile-menu a:hover,
.site-footer a:hover {
  color: var(--ink-strong);
}

.header-actions {
  gap: 10px;
  flex: 0 0 auto;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  transition:
    transform 180ms var(--ease),
    box-shadow 180ms var(--ease),
    background 180ms var(--ease),
    border-color 180ms var(--ease);
}

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

.button:active {
  transform: translateY(0) scale(0.99);
}

.button-primary {
  color: #ffffff;
  background: var(--primary);
  border-color: var(--primary);
  box-shadow: 0 14px 30px rgba(81, 181, 109, 0.26);
}

.button-primary:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
}

.button-ghost {
  color: var(--ink-strong);
  background: #ffffff;
  border-color: var(--line);
}

.compact {
  display: none;
  min-height: 40px;
  padding-inline: 14px;
  font-size: 14px;
}

.menu-button {
  display: grid;
  place-items: center;
  gap: 4px;
  width: 42px;
  height: 42px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  cursor: pointer;
}

.menu-button span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--ink-strong);
  border-radius: 999px;
}

.mobile-menu {
  position: absolute;
  top: 80px;
  left: 16px;
  right: 16px;
  display: none;
  gap: 14px;
  padding: 16px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.mobile-menu.open {
  display: grid;
}

.hero {
  position: relative;
  display: grid;
  gap: 30px;
  width: min(1180px, calc(100% - 36px));
  min-height: calc(92dvh - 72px);
  margin: 0 auto;
  padding: 42px 0 54px;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 18px -18px auto;
  height: min(72dvh, 680px);
  z-index: -1;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.84), rgba(226, 241, 229, 0.8)),
    repeating-linear-gradient(120deg, transparent 0 18px, rgba(16, 35, 51, 0.035) 19px 20px),
    radial-gradient(circle at 84% 24%, rgba(66, 184, 103, 0.2), transparent 280px);
  border-radius: 0 0 34px 34px;
}

.hero-copy {
  display: grid;
  align-content: center;
  gap: 18px;
}

.eyebrow {
  margin: 0;
  color: var(--primary-dark);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.hero-subtitle {
  max-width: 620px;
  margin-bottom: 0;
  font-size: 18px;
}

.hero-media {
  position: relative;
  overflow: hidden;
  min-height: 400px;
  background: #dfece2;
  border: 1px solid rgba(255, 255, 255, 0.86);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(115deg, transparent 0 52%, rgba(255, 255, 255, 0.42) 53%, transparent 56%),
    radial-gradient(circle at 20% 20%, rgba(66, 184, 103, 0.12), transparent 260px);
  mix-blend-mode: screen;
  animation: slow-scan 7s var(--ease) infinite;
}

.hero-media img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 400px;
  object-fit: cover;
  object-position: 65% center;
}

.hero-ticket {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 16px;
  display: grid;
  gap: 6px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: var(--radius);
  box-shadow: var(--soft-shadow);
  backdrop-filter: blur(16px);
}

.hero-ticket strong,
.device-copy strong,
.device-option b,
.step-card h3,
.product-list strong,
.trust-item strong,
.about-card strong,
.contact-methods span {
  color: var(--ink-strong);
}

.hero-ticket span,
.device-copy span,
.device-option small {
  color: var(--muted);
  line-height: 1.45;
}

.device-panel,
.how-section,
.products-section,
.trust-section,
.about-section,
.agreements-section,
.access-section,
.contact-section {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
}

.device-panel {
  position: relative;
  overflow: hidden;
  display: grid;
  gap: 18px;
  padding: 20px;
  margin-top: 6px;
  background:
    linear-gradient(#ffffff, #ffffff) padding-box,
    linear-gradient(120deg, rgba(66, 184, 103, 0.58), rgba(16, 35, 51, 0.08), rgba(66, 184, 103, 0.24)) border-box;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.device-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(66, 184, 103, 0.1) 1px, transparent 1px),
    linear-gradient(180deg, rgba(66, 184, 103, 0.08) 1px, transparent 1px);
  background-size: 22px 22px;
  mask-image: linear-gradient(90deg, transparent, black 22%, black 76%, transparent);
}

.route-pulse {
  position: absolute;
  left: 20px;
  right: 20px;
  top: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--primary), transparent);
  transform: translateX(-110%);
  animation: route-pulse 4.8s var(--ease) infinite;
}

.hero-copy .device-panel {
  width: 100%;
  margin-inline: 0;
  grid-template-columns: 1fr;
  align-items: stretch;
}

.device-copy {
  display: grid;
  gap: 5px;
}

.device-actions {
  display: grid;
  gap: 12px;
  min-width: 0;
}

.device-option {
  position: relative;
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  min-width: 0;
  min-height: 76px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition:
    transform 180ms var(--ease),
    border-color 180ms var(--ease),
    box-shadow 180ms var(--ease),
    background 180ms var(--ease);
}

.device-option::after {
  content: "";
  position: absolute;
  inset: 8px;
  z-index: -1;
  border-radius: inherit;
  background: rgba(66, 184, 103, 0.16);
  filter: blur(16px);
  opacity: 0;
  transition: opacity 180ms var(--ease);
}

.device-option > span:last-child {
  display: grid;
  gap: 4px;
  min-width: 0;
  max-width: 100%;
}

.device-option b,
.device-option small {
  display: block;
  word-break: normal;
  overflow-wrap: normal;
  hyphens: none;
  line-height: 1.25;
}

.device-option:hover,
.device-option.is-recommended {
  transform: translateY(-2px);
  border-color: rgba(81, 181, 109, 0.5);
  box-shadow: var(--soft-shadow);
}

.device-option:hover::after,
.device-option.is-recommended::after {
  opacity: 1;
}

.device-option.is-recommended {
  background: var(--primary-soft);
}

.icon-box {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 46px;
  height: 46px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.os-icon,
.access-icon {
  display: block;
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.section-title {
  max-width: 720px;
  margin-bottom: 30px;
}

.section-title p,
.products-copy > p,
.trust-copy p,
.about-copy p,
.access-copy p,
.contact-copy p {
  max-width: 62ch;
  margin-bottom: 0;
  font-size: 17px;
}

.how-section,
.products-section,
.trust-section,
.about-section,
.agreements-section,
.access-section,
.contact-section {
  padding: 70px 0;
}

.steps-grid {
  display: grid;
  gap: 0;
  overflow: hidden;
  background:
    linear-gradient(#ffffff, #ffffff) padding-box,
    linear-gradient(135deg, rgba(66, 184, 103, 0.28), rgba(16, 35, 51, 0.08)) border-box;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--soft-shadow);
}

.step-card {
  position: relative;
  padding: 24px;
  border-bottom: 1px solid var(--line);
}

.step-card::before {
  content: "";
  position: absolute;
  left: 24px;
  right: 24px;
  top: 0;
  height: 3px;
  background: var(--primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 680ms var(--ease);
}

.step-card.in-view::before {
  transform: scaleX(1);
}

.step-card:last-child {
  border-bottom: 0;
}

.step-card span,
.product-list span,
.trust-item span,
.agreement-card span,
.access-card span {
  display: block;
  margin-bottom: 12px;
  color: var(--primary-dark);
  font-size: 13px;
  font-weight: 700;
}

.step-card p,
.product-list p,
.trust-item p,
.agreement-card p,
.access-card p,
.site-footer p {
  margin-bottom: 0;
}

.products-section {
  display: grid;
  gap: 30px;
  align-items: center;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.products-image {
  position: relative;
  overflow: hidden;
  background: var(--surface-soft);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.products-image img {
  display: block;
  width: 100%;
  min-height: 340px;
  object-fit: cover;
  object-position: 52% center;
}

.image-caption {
  position: absolute;
  left: 16px;
  bottom: 16px;
  max-width: 280px;
  padding: 12px 14px;
  color: var(--ink-strong);
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: var(--radius);
  box-shadow: var(--soft-shadow);
  backdrop-filter: blur(14px);
  font-size: 13px;
  font-weight: 800;
}

.products-copy {
  display: grid;
  gap: 18px;
}

.product-list {
  display: grid;
  gap: 16px;
  margin-top: 10px;
}

.product-list article {
  padding: 0 0 16px 22px;
  border-left: 3px solid var(--primary);
  border-bottom: 1px solid var(--line);
}

.trust-section {
  display: grid;
  gap: 28px;
}

.trust-copy {
  display: grid;
  align-content: center;
}

.trust-stack {
  display: grid;
  gap: 14px;
}

.trust-item,
.agreement-card,
.access-card,
.contact-form {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--soft-shadow);
}

.trust-item {
  position: relative;
  padding: 22px;
}

.trust-item em {
  position: absolute;
  top: 18px;
  right: 18px;
  color: rgba(13, 125, 72, 0.16);
  font-family: "Space Grotesk", "Noto Sans", sans-serif;
  font-size: 42px;
  font-style: normal;
  font-weight: 700;
  line-height: 1;
}

.about-section {
  display: grid;
  gap: 24px;
  background:
    radial-gradient(circle at 80% 10%, rgba(66, 184, 103, 0.22), transparent 300px),
    repeating-linear-gradient(135deg, transparent 0 18px, rgba(255, 255, 255, 0.035) 19px 20px),
    linear-gradient(135deg, #233242 0%, #162536 100%);
  color: #ffffff;
  width: 100%;
  padding-inline: max(18px, calc((100% - 1180px) / 2));
}

.about-copy h2,
.about-card strong {
  color: #ffffff;
}

.about-copy p,
.about-card p {
  color: rgba(255, 255, 255, 0.76);
}

.about-card {
  display: grid;
  gap: 14px;
  align-content: center;
  padding: 24px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius);
}

.profile-bars {
  display: grid;
  gap: 12px;
  margin-top: 8px;
}

.profile-bars span {
  display: block;
  height: 10px;
  width: var(--w);
  background: var(--primary);
  border-radius: 999px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 900ms var(--ease);
}

.about-card.in-view .profile-bars span {
  transform: scaleX(1);
}

.agreement-grid,
.access-grid {
  display: grid;
  gap: 16px;
}

.agreement-card,
.access-card {
  display: grid;
  gap: 10px;
  padding: 24px;
}

.agreement-card {
  box-shadow: none;
}

.full-document {
  border-top: 4px solid var(--primary);
}

.full-document {
  align-content: start;
}

.full-document p {
  color: var(--muted);
}

.full-document strong {
  color: var(--ink-strong);
}

.agreement-card .button,
.access-card .button {
  justify-self: start;
  margin-top: 8px;
}

.access-section {
  border-top: 1px solid var(--line);
}

.access-copy {
  max-width: 720px;
  margin-bottom: 26px;
}

.access-icon {
  width: 32px;
  height: 32px;
}

.contact-section {
  display: grid;
  gap: 28px;
}

.contact-methods {
  display: grid;
  gap: 10px;
  margin-top: 22px;
}

.contact-methods span {
  padding-bottom: 10px;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
}

.contact-form {
  display: grid;
  gap: 14px;
  padding: 22px;
}

.contact-form label {
  display: grid;
  gap: 8px;
  color: var(--ink-strong);
  font-weight: 600;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  color: var(--ink-strong);
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 13px 14px;
  outline: none;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: rgba(81, 181, 109, 0.66);
  box-shadow: 0 0 0 4px rgba(81, 181, 109, 0.16);
}

.form-status {
  min-height: 22px;
  margin: 0;
  color: var(--primary-dark);
  font-weight: 700;
}

.site-footer {
  display: grid;
  gap: 18px;
  padding: 34px 18px 96px;
  background: #ffffff;
  border-top: 1px solid var(--line);
}

.site-footer nav {
  flex-wrap: wrap;
  gap: 14px;
}

.site-footer p {
  max-width: 680px;
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 680ms var(--ease) var(--delay, 0ms),
    transform 680ms var(--ease) var(--delay, 0ms);
}

.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

@keyframes route-pulse {
  0% {
    transform: translateX(-110%);
    opacity: 0;
  }
  18%,
  72% {
    opacity: 1;
  }
  100% {
    transform: translateX(110%);
    opacity: 0;
  }
}

@keyframes slow-scan {
  0%,
  100% {
    transform: translateX(-18%);
    opacity: 0.35;
  }
  50% {
    transform: translateX(18%);
    opacity: 0.58;
  }
}

@media (min-width: 720px) {
  .compact {
    display: inline-flex;
  }

  .device-panel {
    padding: 22px;
  }

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

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

  .step-card:nth-child(odd) {
    border-right: 1px solid var(--line);
  }

  .step-card:nth-child(3) {
    border-bottom: 0;
  }
}

@media (min-width: 960px) {
  .site-header {
    padding-inline: 36px;
  }

  .desktop-nav {
    display: flex;
  }

  .menu-button {
    display: none;
  }

  .hero {
    grid-template-columns: 0.9fr 1.1fr;
    align-items: center;
    padding-top: 48px;
  }

  .hero::before {
    inset-inline: -46px;
  }

  .hero-media,
  .hero-media img {
    min-height: 570px;
  }

  .hero-ticket {
    left: 24px;
    right: auto;
    width: 320px;
  }

  .device-panel {
    grid-template-columns: minmax(0, 0.84fr) minmax(0, 1.16fr);
    align-items: center;
  }

  .hero-copy .device-panel {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .products-section,
  .trust-section,
  .about-section,
  .contact-section {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .products-image {
    order: 2;
  }

  .products-copy {
    order: 1;
  }

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

  .step-card {
    min-height: 250px;
    border-bottom: 0;
    border-right: 1px solid var(--line);
  }

  .step-card:last-child {
    border-right: 0;
  }

  .step-card:nth-child(3) {
    border-bottom: 0;
  }

  .site-footer {
    grid-template-columns: 0.8fr 1fr;
    align-items: start;
    padding-inline: 36px;
  }

  .site-footer p {
    grid-column: 2;
  }
}

@media (min-width: 1120px) {
  .device-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-copy .device-actions {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 430px) {
  .brand img {
    width: 142px;
  }

  .hero {
    width: min(100% - 28px, 1180px);
  }

  .button {
    width: 100%;
  }

  .header-actions .button {
    width: auto;
  }

}

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

  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    scroll-behavior: auto !important;
    transition-duration: 1ms !important;
  }

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

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #111b18;
    --surface: #17231f;
    --surface-soft: #20352b;
    --ink: #e8f0eb;
    --ink-strong: #ffffff;
    --muted: #adbbb4;
    --line: rgba(255, 255, 255, 0.13);
    --primary-soft: rgba(81, 181, 109, 0.18);
    --shadow: 0 22px 60px rgba(0, 0, 0, 0.28);
    --soft-shadow: 0 12px 30px rgba(0, 0, 0, 0.22);
  }

  body {
    background: linear-gradient(180deg, #12201a 0%, var(--bg) 58%, #111716 100%);
  }

  .site-header,
  .button-ghost,
  .menu-button,
  .device-panel,
  .device-option,
  .icon-box,
  .steps-grid,
  .trust-item,
  .agreement-card,
  .access-card,
  .contact-form,
  .site-footer,
  .contact-form input,
  .contact-form textarea {
    background: var(--surface);
  }

  .hero::before {
    background:
      linear-gradient(135deg, rgba(25, 39, 33, 0.92), rgba(32, 53, 43, 0.86)),
      radial-gradient(circle at 84% 24%, rgba(81, 181, 109, 0.18), transparent 280px);
  }

  .hero-ticket {
    background: rgba(23, 35, 31, 0.92);
    border-color: rgba(255, 255, 255, 0.12);
  }
}
