@font-face {
  font-family: "Lora Local";
  src: url("../fonts/lora-variable.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
}

:root {
  color-scheme: light;
  --cream: #f4f1e8;
  --cream-light: #faf8f2;
  --charcoal: #4a3a4a;
  --muted: #6f695f;
  --forest: #22392f;
  --green: #3f6b56;
  --sage: #9fc2ab;
  --sage-wash: #dce5da;
  --footer-ink: #343a36;
  --line: rgba(74, 58, 74, 0.1);
  --line-strong: rgba(74, 58, 74, 0.18);
  --serif: "Lora Local", Lora, "Songti SC", STSong, SimSun, serif;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  --max: 1120px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  overflow-x: hidden;
  color: var(--charcoal);
  background: var(--cream);
  font-family: var(--serif);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
button { color: inherit; font: inherit; }
::selection { color: var(--cream-light); background: var(--green); }
:focus-visible { outline: 2px solid var(--green); outline-offset: 4px; }

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

.primary {
  display: inline-flex;
  min-height: 54px;
  align-items: center;
  justify-content: center;
  padding: 0 27px;
  border-radius: 8px;
  color: var(--cream-light);
  background: var(--forest);
  font-family: var(--sans);
  font-weight: 650;
  transition: background-color 160ms ease, transform 160ms ease;
}
.primary:hover { background: var(--green); transform: translateY(-1px); }
.text-link {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  color: var(--green);
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 650;
  text-decoration: underline;
  text-decoration-color: rgba(63, 107, 86, 0.35);
  text-underline-offset: 5px;
}
h1, h2 { text-wrap: balance; }
h1 {
  margin: 0;
  font-size: clamp(34px, 5vw, 68px);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.03em;
}
h2 {
  margin: 0 0 22px;
  font-size: clamp(30px, 5vw, 42px);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.hero { padding: 80px 0 40px; background: var(--cream); }
.hero-copy { max-width: 850px; }
.hero h1 { margin-top: 0; font-size: clamp(30px, 3.4vw, 48px); white-space: nowrap; text-wrap: nowrap; }
.hero h1 em { color: var(--green); font-style: normal; }
.hero-lead { max-width: 690px; margin: 25px 0 0; color: var(--muted); font-size: 18px; line-height: 1.8; }
.hero-actions { display: flex; align-items: center; gap: 22px; margin-top: 31px; }

.film { padding: 0 0 128px; background: var(--cream); }
.film-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 20px;
  background: var(--cream-light);
  box-shadow: 0 30px 70px -28px rgba(34, 57, 47, 0.35), 0 0 0 1px var(--line);
}
.film-video { display: block; width: 100%; height: 100%; object-fit: cover; }
.film-copy { margin-top: 44px; }
.film-copy .hero-lead { margin-top: 0; }

.showcase {
  padding: 148px 0 170px;
  border-top: 1px solid var(--line);
  background: var(--cream-light);
}
.feature-row {
  display: grid;
  grid-template-columns: minmax(0, 520px) minmax(0, 1fr);
  gap: 104px;
  align-items: center;
}
.feature-row + .feature-row { margin-top: 176px; }
.feature-row--reverse { grid-template-columns: minmax(0, 1fr) minmax(0, 520px); }
.feature-copy { max-width: 470px; }
.feature-copy h2 {
  max-width: 100%;
  font-size: clamp(26px, 2.05vw, 32px);
  white-space: nowrap;
  text-wrap: nowrap;
}
html[lang="en"] .feature-copy h2 { font-size: clamp(23px, 1.9vw, 29px); }
.feature-copy p { margin: 0; color: var(--muted); font-size: 18px; line-height: 1.8; }
.feature-media {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  isolation: isolate;
}
.screenshot-card {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 84%;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 18px;
  background: transparent;
  appearance: none;
  will-change: transform;
  transition: transform 260ms cubic-bezier(0.2, 0.75, 0.25, 1), filter 180ms ease;
}
.screenshot-card--back {
  z-index: 1;
  cursor: pointer;
  transform: translate(-59.5%, -71.5%) rotate(-1.8deg);
}
.screenshot-card--front {
  z-index: 2;
  cursor: pointer;
  transform: translate(-40.5%, -28.5%) rotate(1.8deg);
}
.feature-row--reverse .screenshot-card--back { transform: translate(-40.5%, -71.5%) rotate(1.8deg); }
.feature-row--reverse .screenshot-card--front { transform: translate(-59.5%, -28.5%) rotate(-1.8deg); }
.screenshot-card:hover { filter: brightness(1.025); }
.screenshot-card:focus-visible { z-index: 3; }
.product-image {
  width: 100%;
  height: auto;
  border-radius: 18px;
  box-shadow: 0 22px 46px rgba(34, 57, 47, 0.18);
  pointer-events: none;
  user-select: none;
}
.feature-media[data-theme="light"] .product-image { border: 1px solid rgba(74, 58, 74, 0.12); }

.closing {
  padding: 112px 0 118px;
  border-top: 1px solid rgba(74, 58, 74, 0.08);
  color: var(--charcoal);
  background: var(--sage-wash);
}
.closing-inner { display: grid; grid-template-columns: minmax(0, 760px) auto; gap: 80px; align-items: end; }
.closing h2 { margin: 0 0 24px; color: var(--charcoal); font-size: clamp(34px, 5vw, 52px); line-height: 1.3; letter-spacing: 0; }
.closing p { margin: 0; color: rgba(74, 58, 74, 0.66); font-size: 18px; line-height: 1.8; }
.closing-actions { min-width: 205px; }
.closing .primary { color: var(--cream-light); background: var(--forest); }
.closing .primary:hover { background: var(--green); }

@media (max-width: 1100px) {
  .feature-row,
  .feature-row--reverse { grid-template-columns: minmax(0, 1fr) minmax(0, 0.88fr); gap: 64px; }
}

@media (max-width: 840px) {
  .showcase { padding: 92px 0 112px; }
  .feature-row,
  .feature-row--reverse { grid-template-columns: 1fr; gap: 44px; }
  .feature-row + .feature-row { margin-top: 118px; }
  .feature-copy { max-width: 100%; }
  .feature-copy h2 { font-size: clamp(20px, 5.9vw, 24px); letter-spacing: -0.03em; }
  html[lang="en"] .feature-copy h2 { font-size: clamp(18px, 5.2vw, 22px); }
  .feature-media { width: 100%; }
  .screenshot-card { width: 86%; border-radius: 13px; }
  .product-image { border-radius: 13px; box-shadow: 0 14px 28px rgba(34, 57, 47, 0.16); }
}

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

  .hero { padding: 74px 0 32px; }
  .film-copy { margin-top: 32px; }
  .film { padding-bottom: 88px; }
  .film-frame { border-radius: 13px; }
  .hero h1 { font-size: clamp(26px, 7.3vw, 30px); }
  .hero-actions { align-items: flex-start; flex-direction: column; }

  .closing { padding: 80px 0 88px; }
  .closing-inner { grid-template-columns: 1fr; gap: 46px; }
  .closing-actions { min-width: 0; }
}

@media (max-width: 410px) {
  .container { width: min(calc(100% - 32px), var(--max)); }
  .hero { padding-top: 66px; }
  .hero h1 { font-size: clamp(23px, 7vw, 26px); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; }
}
