:root {
  color-scheme: light;
  --ink: #17211f;
  --muted: #5e6b66;
  --soft: #eef4f0;
  --line: #dce7e1;
  --accent: #158467;
  --accent-dark: #0d604c;
  --paper: #fbfdfb;
  --white: #ffffff;
  --shadow: 0 26px 80px rgba(26, 50, 42, 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);
}

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

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

code {
  padding: 0.08rem 0.28rem;
  border-radius: 5px;
  background: #e8f1ed;
  color: var(--accent-dark);
  font-size: 0.92em;
}

.site-header {
  position: fixed;
  z-index: 10;
  top: 0;
  left: 0;
  right: 0;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
  background: rgba(251, 253, 251, 0.84);
  border-bottom: 1px solid rgba(220, 231, 225, 0.7);
  backdrop-filter: blur(18px);
}

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

.brand {
  gap: 10px;
  font-weight: 760;
  letter-spacing: 0;
}

.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.18);
}

.nav-links {
  gap: 24px;
  color: var(--muted);
  font-size: 0.94rem;
}

.nav-links a {
  transition: color 160ms ease;
}

.nav-links a:hover {
  color: var(--ink);
}

.header-actions {
  gap: 10px;
}

.language-toggle,
.header-download,
.primary-action,
.secondary-action,
.tab-button {
  min-height: 42px;
  border-radius: 8px;
  border: 1px solid transparent;
  font: inherit;
  line-height: 1;
  cursor: pointer;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease, color 180ms ease;
}

.language-toggle {
  padding: 0 14px;
  background: transparent;
  color: var(--muted);
  border-color: var(--line);
}

.header-download,
.primary-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  color: var(--white);
  background: var(--accent);
  font-weight: 700;
}

.secondary-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.72);
  border-color: rgba(23, 33, 31, 0.12);
  font-weight: 700;
}

.language-toggle:hover,
.header-download:hover,
.primary-action:hover,
.secondary-action:hover,
.tab-button:hover {
  transform: translateY(-1px);
}

.header-download:hover,
.primary-action:hover {
  background: var(--accent-dark);
}

.hero {
  min-height: 100svh;
  display: grid;
  grid-template-columns: minmax(360px, 0.86fr) minmax(520px, 1.18fr);
  gap: clamp(34px, 4vw, 68px);
  align-items: center;
  padding: 112px clamp(28px, 6vw, 92px) 54px;
  background:
    radial-gradient(circle at 12% 16%, rgba(21, 132, 103, 0.12), transparent 30%),
    linear-gradient(120deg, #f9fcf9 0%, #eef5f1 42%, #f8fbf9 100%);
}

.hero-copy {
  max-width: 620px;
  animation: riseIn 680ms ease both;
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--accent-dark);
  font-size: 0.78rem;
  font-weight: 760;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  letter-spacing: 0;
}

h1 {
  margin: 0;
  font-size: clamp(4.3rem, 9.4vw, 8rem);
  line-height: 0.88;
  white-space: nowrap;
}

h2 {
  margin: 0;
  max-width: 920px;
  font-size: clamp(2.2rem, 4.8vw, 5rem);
  line-height: 0.98;
}

h3 {
  margin: 0 0 10px;
  font-size: 1.08rem;
}

.hero-lede {
  margin: 26px 0 0;
  max-width: 560px;
  color: var(--muted);
  font-size: clamp(1.08rem, 1.55vw, 1.36rem);
  line-height: 1.55;
}

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

.hero-visual {
  position: relative;
  justify-self: end;
  width: min(100%, 1080px);
  animation: floatIn 780ms 120ms ease both;
}

.hero-visual::before {
  content: "";
  position: absolute;
  inset: 7% -4% -8% 12%;
  background: rgba(21, 132, 103, 0.16);
  filter: blur(28px);
}

.hero-visual img,
.wide-shot img,
.feature-media img,
.gallery-shot img {
  position: relative;
  width: 100%;
  border: 1px solid rgba(23, 33, 31, 0.12);
  box-shadow: var(--shadow);
}

.hero-visual img,
.wide-shot img,
.gallery-shot img {
  border-radius: 8px;
}

.feature-media img {
  border-radius: 7px;
}

.feature-carousel {
  position: relative;
}

.feature-carousel img {
  aspect-ratio: 900 / 825;
  object-fit: contain;
  background: var(--white);
  transition: opacity 220ms ease, transform 220ms ease;
}

.feature-carousel.is-changing img {
  opacity: 0.4;
  transform: scale(0.992);
}

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 9px;
  margin-top: 18px;
}

.carousel-dot {
  width: 34px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 99px;
  background: rgba(23, 33, 31, 0.18);
  cursor: pointer;
  transition: width 180ms ease, background 180ms ease;
}

.carousel-dot.is-active {
  width: 54px;
  background: var(--accent);
}

.carousel-nav {
  position: absolute;
  top: 0;
  bottom: 26px;
  width: 50%;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.carousel-nav-prev {
  left: 0;
}

.carousel-nav-next {
  right: 0;
}

.carousel-nav::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(23, 33, 31, 0.72);
  opacity: 0;
  transform: translateY(-50%);
  transition: opacity 160ms ease, transform 160ms ease;
}

.carousel-nav::before {
  content: "";
  position: absolute;
  z-index: 1;
  top: 50%;
  width: 11px;
  height: 11px;
  border-top: 2px solid #fff;
  opacity: 0;
  transition: opacity 160ms ease, transform 160ms ease;
}

.carousel-nav-prev::after {
  left: 18px;
}

.carousel-nav-next::after {
  right: 18px;
}

.carousel-nav-prev::before {
  left: 35px;
  border-left: 2px solid #fff;
  transform: translateY(-50%) rotate(-45deg);
}

.carousel-nav-next::before {
  right: 35px;
  border-right: 2px solid #fff;
  transform: translateY(-50%) rotate(45deg);
}

.feature-carousel:hover .carousel-nav::before,
.feature-carousel:hover .carousel-nav::after,
.carousel-nav:focus-visible::before,
.carousel-nav:focus-visible::after {
  opacity: 1;
}

.carousel-nav:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

.intro-band {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--white);
}

.intro-item {
  padding: 34px clamp(24px, 4vw, 64px);
  border-right: 1px solid var(--line);
}

.intro-item:last-child {
  border-right: 0;
}

.intro-item span {
  display: block;
  color: var(--accent-dark);
  font-size: 0.78rem;
  font-weight: 760;
  text-transform: uppercase;
}

.intro-item strong {
  display: block;
  margin-top: 10px;
  font-size: clamp(1.25rem, 2vw, 1.85rem);
}

.intro-item p {
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.5;
}

.workflow-section,
.rules-guide-section,
.features-section,
.diagnostics-section,
.screens-section,
.download-section {
  padding: clamp(76px, 10vw, 138px) clamp(24px, 6vw, 92px);
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(220px, 0.42fr) minmax(320px, 1fr);
  gap: clamp(24px, 5vw, 72px);
  align-items: start;
}

.section-heading.narrow {
  display: block;
  max-width: 850px;
}

.section-heading.narrow p:last-child {
  margin-top: 20px;
  color: var(--muted);
  font-size: 1.12rem;
  line-height: 1.65;
}

.flow-line {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin-top: 58px;
  border-top: 1px solid var(--line);
}

.flow-step {
  padding: 28px 34px 6px 0;
  border-right: 1px solid var(--line);
}

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

.flow-step span {
  color: var(--accent);
  font-weight: 800;
}

.flow-step p,
.rule-card p,
.example-list p,
.feature-list p,
.screens-copy p,
.download-section p {
  color: var(--muted);
  line-height: 1.6;
}

.rules-guide-section {
  background: var(--white);
}

.rule-guide-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 44px;
}

.rule-card {
  min-height: 230px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfdfb;
}

.rule-card span {
  display: inline-flex;
  margin-bottom: 22px;
  color: var(--accent-dark);
  font-size: 0.78rem;
  font-weight: 760;
  text-transform: uppercase;
}

.rule-card p {
  margin: 0;
}

.example-panel {
  display: grid;
  grid-template-columns: minmax(240px, 0.42fr) minmax(360px, 1fr);
  gap: clamp(24px, 5vw, 64px);
  align-items: start;
  margin-top: 20px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f2f7f4;
}

.example-panel h3 {
  font-size: clamp(1.35rem, 2vw, 2rem);
  line-height: 1.12;
}

.example-list {
  display: grid;
  gap: 14px;
}

.example-list > div {
  display: grid;
  grid-template-columns: minmax(150px, 0.34fr) 1fr;
  gap: 16px;
  align-items: start;
  padding: 14px 0;
  border-top: 1px solid var(--line);
}

.example-list > div:first-child {
  border-top: 0;
  padding-top: 0;
}

.example-list code {
  width: fit-content;
}

.features-section {
  display: grid;
  grid-template-columns: minmax(320px, 0.88fr) minmax(320px, 1fr);
  gap: clamp(38px, 6vw, 88px);
  align-items: center;
  background: #f4f8f5;
}

.feature-list {
  display: grid;
  gap: 24px;
  margin-top: 38px;
}

.feature-list > div {
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.diagnostics-section {
  display: grid;
  grid-template-columns: minmax(320px, 0.82fr) minmax(480px, 1fr);
  gap: clamp(36px, 5vw, 82px);
  align-items: center;
  background: var(--ink);
  color: var(--white);
}

.diagnostics-section .section-heading.narrow {
  max-width: 620px;
}

.diagnostics-section .eyebrow,
.diagnostics-section p {
  color: #a8d8c9;
}

.wide-shot {
  justify-self: end;
  width: min(100%, 860px);
  margin-top: 0;
}

.screens-section {
  display: grid;
  grid-template-columns: minmax(260px, 0.45fr) minmax(420px, 1fr);
  gap: clamp(34px, 6vw, 80px);
  align-items: start;
}

.screens-copy {
  min-height: 490px;
}

.screen-tabs {
  grid-column: 1;
  display: grid;
  grid-template-columns: repeat(5, 62px);
  gap: 10px;
  margin-top: 26px;
}

.tab-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 62px;
  min-width: 62px;
  height: 42px;
  padding: 0 10px;
  color: var(--muted);
  background: transparent;
  border-color: var(--line);
  white-space: nowrap;
}

.tab-button.is-active {
  color: var(--white);
  background: var(--ink);
  border-color: var(--ink);
}

.gallery-shot {
  grid-column: 2;
  grid-row: 1 / span 2;
  margin: 0;
}

.gallery-shot img {
  aspect-ratio: 1332 / 780;
  object-fit: contain;
  background: var(--white);
}

.gallery-shot figcaption {
  margin-top: 16px;
  color: var(--muted);
}

.download-section {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 32px;
  background: #eaf3ee;
}

.download-section > div {
  max-width: 850px;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 28px clamp(24px, 6vw, 92px);
  color: var(--muted);
  border-top: 1px solid var(--line);
  background: var(--white);
}

.site-footer span:first-child {
  color: var(--ink);
  font-weight: 760;
}

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

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

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

@keyframes riseIn {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes floatIn {
  from {
    opacity: 0;
    transform: translateY(24px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (max-width: 980px) {
  .site-header {
    height: auto;
    min-height: 64px;
    padding: 12px 20px;
  }

  .nav-links {
    display: none;
  }

  .hero {
    min-height: auto;
    grid-template-columns: 1fr;
    padding: 108px 22px 46px;
  }

  .hero-visual {
    justify-self: center;
    width: min(100%, 860px);
  }

  .hero-copy {
    max-width: none;
  }

  .intro-band,
  .flow-line,
  .rule-guide-grid,
  .features-section,
  .diagnostics-section,
  .screens-section,
  .section-heading {
    grid-template-columns: 1fr;
  }

  .wide-shot {
    justify-self: center;
    width: min(100%, 780px);
    margin-top: 12px;
  }

  .intro-item,
  .flow-step {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .intro-item:last-child,
  .flow-step:last-child {
    border-bottom: 0;
  }

  .gallery-shot,
  .screen-tabs {
    grid-column: auto;
    grid-row: auto;
  }

  .screens-copy {
    min-height: auto;
  }

  .download-section {
    align-items: start;
    flex-direction: column;
  }

  .example-panel,
  .example-list > div {
    grid-template-columns: 1fr;
  }
}

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

  h1 {
    font-size: clamp(3.15rem, 17vw, 4.15rem);
  }

  h2 {
    font-size: 2.25rem;
  }

  .workflow-section,
  .rules-guide-section,
  .features-section,
  .diagnostics-section,
  .screens-section,
  .download-section {
    padding: 68px 20px;
  }

  .site-footer {
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation: none !important;
    transition: none !important;
  }

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