:root {
  color-scheme: light;
  --ink: #0b2417;
  --body: #405447;
  --muted: #66766c;
  --panel: #ffffff;
  --border: #d8eadf;
  --border-strong: #b8dec5;
  --mist: #edf8f0;
  --primary: #22c55e;
  --primary-dark: #15803d;
  --shadow: 0 14px 40px rgba(11, 36, 23, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: linear-gradient(180deg, #f7fbf8 0%, #ffffff 28rem), #ffffff;
  color: var(--body);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid #e6eee8;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(18px);
}

.nav-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  column-gap: 1.5rem;
  width: min(1120px, calc(100% - 32px));
  min-height: 76px;
  margin: 0 auto;
}

.nav-group {
  display: flex;
  align-items: center;
  min-width: 0;
  gap: 1.35rem;
}

.nav-group-left {
  justify-content: flex-end;
}

.nav-group-right {
  justify-content: flex-start;
}

.nav-group a {
  color: var(--primary);
  font-size: 1.1rem;
  font-weight: 400;
}

.brand {
  justify-self: center;
  color: var(--primary);
  font-size: clamp(2.35rem, 4.4vw, 3.2rem);
  font-weight: 600;
  line-height: 1;
}

main {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.section-block {
  display: grid;
  justify-items: center;
  scroll-margin-top: 96px;
  padding: clamp(3.5rem, 8vw, 5.25rem) 0;
  text-align: center;
}

.hero {
  gap: 1.6rem;
  padding-top: clamp(4.5rem, 11vw, 7rem);
  padding-bottom: 2.5rem;
}

h1,
h2,
h3,
p,
strong,
span {
  overflow-wrap: anywhere;
}

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

h1,
h2 {
  color: var(--ink);
  font-size: 2.25rem;
  line-height: 2.5rem;
  letter-spacing: 0;
}

.section-block h2 {
  margin-bottom: 2rem;
}

.content-card,
.step-card,
.app-image-frame {
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.content-card {
  width: min(820px, 100%);
  padding: clamp(1.45rem, 4vw, 2rem);
  text-align: center;
}

.overview-card {
  width: min(760px, 100%);
}

.content-card p,
.step-card p {
  color: var(--body);
  font-size: 1rem;
  line-height: 1.9;
}

.content-card p + p {
  margin-top: 1.1rem;
}

.process-grid {
  display: grid;
  width: min(1040px, 100%);
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}

.step-card {
  position: relative;
  padding: 1.5rem;
  text-align: left;
}

.step-card:nth-child(1)::after,
.step-card:nth-child(2)::after,
.step-card:nth-child(4)::after,
.step-card:nth-child(5)::after {
  position: absolute;
  left: 100%;
  top: 50%;
  z-index: 2;
  width: 1.25rem;
  height: 2px;
  background: rgba(34, 197, 94, 0.5);
  content: "";
}

.step-heading {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.step-heading span {
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  flex: 0 0 2.75rem;
  border: 1px solid rgba(21, 128, 61, 0.35);
  border-radius: 50%;
  background: var(--mist);
  color: var(--primary-dark);
  font-size: 0.95rem;
  font-weight: 700;
}

.step-heading h3 {
  color: var(--ink);
  font-size: 1.25rem;
  line-height: 1.25;
}

.app-image-frame {
  display: grid;
  width: min(820px, 100%);
  margin-top: 2rem;
  padding: clamp(1rem, 4vw, 1.5rem);
}

.app-image-placeholder {
  display: grid;
  place-items: center;
  min-height: clamp(18rem, 48vw, 32rem);
  border: 1px dashed var(--border-strong);
  border-radius: 8px;
  background: linear-gradient(135deg, #f7fbf8, #eef8f1);
}

.app-image-placeholder span {
  color: var(--primary-dark);
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.site-footer {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 2rem;
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  border-top: 1px solid #e6eee8;
  padding: 2rem 0 3rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.site-footer strong {
  display: block;
  color: var(--ink);
  font-size: 1.25rem;
  line-height: 1.2;
}

.site-footer p {
  max-width: 560px;
  margin: 0.45rem 0 0;
  line-height: 1.6;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 1rem;
}

.site-footer a {
  color: var(--primary-dark);
  font-weight: 600;
}

@media (max-width: 880px) {
  .nav-shell {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    min-height: auto;
    padding: 1rem 0;
  }

  .nav-group {
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.9rem 1.25rem;
  }

  .brand {
    order: -1;
  }

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

  .step-card:nth-child(odd)::after {
    display: block;
  }

  .step-card:nth-child(even)::after {
    display: none;
  }
}

@media (max-width: 560px) {
  main,
  .nav-shell,
  .site-footer {
    width: min(100% - 24px, 1120px);
  }

  h1,
  h2 {
    font-size: 2rem;
    line-height: 2.35rem;
  }

  .section-block {
    padding: 3.25rem 0;
  }

  .hero {
    padding-top: 3.6rem;
  }

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

  .step-card {
    text-align: center;
  }

  .step-card:nth-child(n)::after {
    display: block;
    left: 50%;
    top: 100%;
    width: 2px;
    height: 1.25rem;
    transform: translateX(-50%);
  }

  .step-card:last-child::after {
    display: none;
  }

  .step-heading {
    flex-direction: column;
  }

  .site-footer {
    display: block;
  }

  .site-footer nav {
    justify-content: flex-start;
    margin-top: 1rem;
  }
}
