:root {
  --page: #fffaf3;
  --paper: rgba(255, 255, 255, 0.72);
  --paper-strong: rgba(255, 255, 255, 0.9);
  --ink: #1e231f;
  --muted: #667067;
  --line: rgba(48, 69, 57, 0.13);
  --green: #286f5f;
  --green-deep: #153f38;
  --mint: #77cfc4;
  --rose: #f08ea0;
  --coral: #d96759;
  --gold: #c98b2d;
  --shadow: 0 28px 80px rgba(35, 45, 39, 0.15);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  background: var(--page);
  color: var(--ink);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "PingFang SC", "Segoe UI", sans-serif;
  line-height: 1.6;
}

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

img {
  max-width: 100%;
}

.flow-background {
  position: fixed;
  inset: 0;
  z-index: -2;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(255, 252, 246, 0.96), rgba(247, 255, 252, 0.86) 50%, rgba(255, 242, 236, 0.88)),
    #fffaf3;
  pointer-events: none;
}

.flow-background::before {
  position: absolute;
  inset: -4%;
  background-image: url("/assets/flow-hero-bg.png");
  background-position: 54% 0;
  background-size: cover;
  content: "";
  filter: saturate(1.05);
  opacity: 0.68;
  transform: translate3d(0, 0, 0) scale(1.03);
}

.flow-background::after {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 12% 18%, rgba(255, 255, 255, 0.94), rgba(255, 255, 255, 0.3) 42%, rgba(255, 255, 255, 0) 70%),
    linear-gradient(180deg, rgba(255, 250, 243, 0.2), rgba(255, 250, 243, 0.9) 72%, rgba(255, 250, 243, 1));
  content: "";
}

.flow-ribbon {
  position: absolute;
  width: min(68vw, 860px);
  height: 28vh;
  border-radius: 999px;
  filter: blur(24px);
  opacity: 0.26;
  transform: rotate(-18deg);
  will-change: transform;
  animation: ribbonFloat 46s cubic-bezier(0.45, 0, 0.55, 1) infinite alternate;
}

.flow-ribbon-rose {
  top: 8vh;
  right: -16vw;
  background: linear-gradient(90deg, rgba(240, 142, 160, 0), rgba(240, 142, 160, 0.74), rgba(255, 238, 226, 0.14));
}

.flow-ribbon-mint {
  right: -18vw;
  bottom: 16vh;
  background: linear-gradient(90deg, rgba(113, 207, 196, 0), rgba(77, 166, 154, 0.7), rgba(255, 255, 255, 0.18));
  animation-delay: -18s;
  animation-duration: 58s;
}

.flow-ribbon-ink {
  left: -24vw;
  bottom: -4vh;
  width: min(72vw, 920px);
  background: linear-gradient(90deg, rgba(40, 111, 95, 0), rgba(40, 111, 95, 0.26), rgba(201, 139, 45, 0.12));
  animation-delay: -28s;
  animation-duration: 68s;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: min(1760px, calc(100% - 72px));
  margin: 0 auto;
  padding: 14px 0;
}

.site-header::before {
  position: absolute;
  inset: 7px -16px;
  z-index: -1;
  border: 1px solid rgba(255, 255, 255, 0.68);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.58);
  box-shadow: 0 18px 42px rgba(34, 42, 37, 0.08);
  backdrop-filter: blur(22px);
  content: "";
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  font-weight: 760;
}

.brand-icon {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  box-shadow: 0 8px 18px rgba(32, 33, 29, 0.16);
}

.nav {
  display: flex;
  align-items: center;
  gap: 22px;
  color: rgba(38, 50, 43, 0.68);
  font-size: 14px;
  font-weight: 680;
}

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

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

.hero {
  display: grid;
  grid-template-columns: minmax(360px, 0.78fr) minmax(640px, 1.22fr);
  align-items: center;
  gap: 52px;
  width: min(1760px, calc(100% - 72px));
  min-height: calc(100vh - 64px);
  margin: 0 auto;
  padding: 44px 0 72px;
}

.hero h1 {
  margin: 0 0 22px;
  font-size: clamp(58px, 8vw, 104px);
  font-weight: 840;
  letter-spacing: 0;
  line-height: 0.9;
}

.hero-lede {
  max-width: 580px;
  margin: 0;
  color: #4f5a51;
  font-size: 22px;
  line-height: 1.58;
}

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

.primary-action,
.secondary-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 21px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 760;
  transition: border-color 160ms ease, background 160ms ease, box-shadow 160ms ease, color 160ms ease, transform 160ms ease;
}

.primary-action {
  background: var(--green-deep);
  color: #ffffff;
  box-shadow: 0 18px 34px rgba(21, 63, 56, 0.22);
}

.secondary-action {
  border: 1px solid rgba(38, 70, 58, 0.18);
  background: rgba(255, 255, 255, 0.62);
  color: var(--ink);
  backdrop-filter: blur(16px);
}

.primary-action:hover,
.secondary-action:hover {
  transform: translateY(-1px);
}

.primary-action:hover {
  background: #0f342e;
}

.secondary-action:hover {
  border-color: rgba(40, 111, 95, 0.34);
  background: rgba(255, 255, 255, 0.82);
}

.hero-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 34px;
}

.hero-proof span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid rgba(40, 111, 95, 0.13);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.52);
  color: rgba(31, 48, 41, 0.74);
  font-size: 13px;
  font-weight: 720;
  backdrop-filter: blur(14px);
}

.hero-downloads {
  display: none;
}

.hero-downloads a {
  color: var(--green-deep);
  font-weight: 760;
}

.hero-scene {
  position: relative;
  margin: 0;
}

.hero-scene::before {
  position: absolute;
  inset: 24px -18px -22px 22px;
  z-index: -1;
  border: 1px solid rgba(255, 255, 255, 0.62);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.38);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
  content: "";
}

.hero-scene img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: center;
  border: 1px solid rgba(47, 111, 94, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.7);
  box-shadow: 0 26px 72px rgba(25, 34, 29, 0.16);
}

.section {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  padding: 88px 0;
}

.section-heading {
  max-width: 700px;
  margin: 0 auto 36px;
  text-align: center;
}

.section-heading.align-left {
  margin-left: 0;
  text-align: left;
}

.section-heading h2,
.download-section h2 {
  margin: 0;
  font-size: clamp(32px, 4.5vw, 48px);
  line-height: 1.12;
}

.section-heading p,
.download-section p {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 17px;
}

.preview-section {
  position: relative;
  padding: 58px 0 68px;
}

.preview-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 18px;
}

.preview-heading h2 {
  margin: 0;
  font-size: clamp(28px, 3vw, 36px);
  line-height: 1.16;
}

.preview-heading p {
  max-width: 600px;
  margin: 9px 0 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.65;
}

.carousel-controls {
  display: flex;
  gap: 10px;
}

.carousel-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(40, 111, 95, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.48);
  color: var(--green-deep);
  cursor: pointer;
  backdrop-filter: blur(12px);
  transition: border-color 160ms ease, background 160ms ease, color 160ms ease;
}

.carousel-button:hover {
  border-color: rgba(40, 111, 95, 0.24);
  background: rgba(255, 255, 255, 0.72);
}

.carousel-button svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.preview-carousel {
  position: relative;
  margin-inline: calc((100vw - min(1120px, calc(100vw - 40px))) / -2);
  overflow: hidden;
  overflow-anchor: none;
}

.preview-carousel::before,
.preview-carousel::after {
  display: none;
}

.preview-track {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  padding: 16px max(20px, calc((100vw - 1120px) / 2)) 30px;
  scroll-behavior: smooth;
  scroll-padding-inline: max(20px, calc((100vw - 1120px) / 2));
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  overflow-anchor: none;
}

.preview-track::-webkit-scrollbar {
  display: none;
}

.preview-slide {
  flex: 0 0 clamp(168px, 16.5vw, 222px);
  margin: 0;
  scroll-snap-align: center;
  position: relative;
  transform: scale(0.985);
  transform-origin: center bottom;
  opacity: 0.84;
  transition: transform 260ms ease, opacity 260ms ease;
  overflow-anchor: none;
}

.preview-slide img {
  display: block;
  width: 100%;
  aspect-ratio: 592 / 1280;
  object-fit: cover;
  border: 1px solid rgba(32, 33, 29, 0.08);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 12px 28px rgba(32, 33, 29, 0.09);
  transition: border-color 260ms ease, box-shadow 260ms ease;
}

.preview-slide.is-active {
  z-index: 1;
  transform: scale(1.045);
  opacity: 1;
}

.preview-slide.is-active img {
  border-color: rgba(40, 111, 95, 0.18);
  box-shadow: 0 18px 38px rgba(32, 33, 29, 0.14);
}

.preview-caption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  min-height: 62px;
  margin-top: 4px;
}

.preview-caption h3 {
  margin: 0;
  font-size: 18px;
  line-height: 1.25;
}

.preview-caption p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.carousel-dots {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.carousel-dot {
  width: 10px;
  height: 10px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(40, 111, 95, 0.22);
  cursor: pointer;
}

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

.feature-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid rgba(40, 111, 95, 0.16);
}

.feature-item {
  display: grid;
  grid-template-columns: 44px minmax(130px, 0.45fr) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
  min-height: 138px;
  padding: 26px 22px;
  border-bottom: 1px solid rgba(40, 111, 95, 0.16);
}

.feature-item:nth-child(odd) {
  border-right: 1px solid rgba(40, 111, 95, 0.16);
}

.feature-index {
  color: rgba(40, 111, 95, 0.52);
  font-size: 13px;
  font-weight: 820;
}

.feature-item h3,
.workflow-list h3 {
  margin: 0;
  font-size: 20px;
  line-height: 1.25;
}

.feature-item p,
.workflow-list p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

.workflow-section {
  display: grid;
  grid-template-columns: minmax(260px, 0.74fr) minmax(0, 1.26fr);
  gap: 56px;
  align-items: start;
}

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

.workflow-list article {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 18px 22px;
  align-items: baseline;
  padding: 22px 0;
  border-bottom: 1px solid rgba(40, 111, 95, 0.16);
}

.workflow-list article:first-child {
  border-top: 1px solid rgba(40, 111, 95, 0.16);
}

.workflow-list p {
  grid-column: 2;
}

.step-number {
  color: var(--green);
  font-size: 13px;
  font-weight: 820;
}

.download-section {
  position: relative;
  display: grid;
  grid-template-columns: minmax(240px, 0.72fr) minmax(0, 1.28fr);
  align-items: stretch;
  gap: 30px;
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto 78px;
  padding: 34px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(21, 63, 56, 0.94), rgba(40, 111, 95, 0.9) 50%, rgba(216, 103, 89, 0.82)),
    var(--green);
  color: #ffffff;
  box-shadow: 0 26px 64px rgba(21, 63, 56, 0.2);
}

.download-section::before {
  position: absolute;
  inset: -30% -12% auto 36%;
  height: 210px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(255, 232, 220, 0.34), rgba(132, 228, 211, 0.22));
  content: "";
  filter: blur(24px);
  transform: rotate(-12deg);
}

.download-copy,
.download-grid {
  position: relative;
  z-index: 1;
}

.download-section p {
  max-width: 520px;
  color: rgba(255, 255, 255, 0.78);
}

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

.download-item {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 150px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.13);
  color: #ffffff;
  backdrop-filter: blur(16px);
  transition: background 160ms ease, transform 160ms ease;
}

.download-item:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

.download-platform {
  color: rgba(255, 255, 255, 0.7);
  font-size: 13px;
  font-weight: 760;
}

.download-item strong {
  margin-top: 18px;
  font-size: 19px;
  line-height: 1.25;
}

.download-item span:last-child {
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 14px;
}

.download-password {
  font-weight: 700;
}

.site-footer {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 32px;
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  padding: 28px 0 40px;
  border-top: 1px solid rgba(40, 111, 95, 0.16);
  color: var(--muted);
  font-size: 14px;
}

.site-footer strong {
  color: var(--ink);
}

.site-footer p {
  margin: 6px 0 0;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 12px 18px;
}

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

@keyframes ribbonFloat {
  from {
    transform: translate3d(-1.5%, -0.8%, 0) rotate(-16deg) scaleX(1);
  }
  to {
    transform: translate3d(2.2%, 2.4%, 0) rotate(-12deg) scaleX(1.04);
  }
}

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

  .flow-ribbon {
    animation: none;
  }

  .primary-action,
  .secondary-action,
  .download-item {
    transition: none;
  }
}

@media (max-width: 980px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 54px;
  }
}

@media (max-width: 860px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .site-header::before {
    inset: 7px -12px;
  }

  .nav {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .hero h1 {
    font-size: 58px;
  }

  .hero-lede {
    font-size: 19px;
  }

  .preview-heading,
  .preview-caption {
    align-items: flex-start;
    flex-direction: column;
  }

  .carousel-controls {
    align-self: flex-end;
  }

  .feature-list,
  .workflow-section,
  .download-section {
    grid-template-columns: 1fr;
  }

  .feature-item {
    grid-template-columns: 40px minmax(110px, 0.42fr) minmax(0, 1fr);
  }

  .feature-item:nth-child(odd) {
    border-right: 0;
  }

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

  .site-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .footer-links {
    justify-content: flex-start;
  }
}

@media (max-width: 620px) {
  .site-header,
  .hero,
  .section,
  .download-section,
  .site-footer {
    width: min(100% - 28px, 1120px);
  }

  .hero {
    gap: 34px;
    padding: 34px 0 64px;
  }

  .hero h1 {
    font-size: 46px;
  }

  .hero-actions {
    flex-direction: column;
  }

  .primary-action,
  .secondary-action {
    width: 100%;
  }

  .hero-scene::before {
    inset: 14px -8px -12px 12px;
  }

  .hero-downloads {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    margin-top: 18px;
  }

  .hero-downloads a {
    display: flex;
    align-items: center;
    min-height: 42px;
    padding: 0 14px;
    border: 1px solid rgba(40, 111, 95, 0.16);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(14px);
  }

  .section {
    padding: 70px 0;
  }

  .section-heading h2,
  .preview-heading h2,
  .download-section h2 {
    font-size: 30px;
  }

  .preview-carousel {
    margin-inline: -14px;
  }

  .preview-track {
    gap: 14px;
    padding-inline: 14px;
    scroll-padding-inline: 14px;
    scroll-snap-type: none;
  }

  .preview-slide {
    flex-basis: min(68vw, 238px);
  }

  .feature-item {
    grid-template-columns: 1fr;
    gap: 8px;
    padding-inline: 0;
  }

  .workflow-list article {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .workflow-list p {
    grid-column: auto;
  }

  .download-section {
    padding: 28px;
  }

  .carousel-dots {
    justify-content: flex-start;
  }
}
