:root {
  color-scheme: light;
  --paper: #fffdf9;
  --wash: #f8efe8;
  --ink: #17130f;
  --muted: #6d625b;
  --line: rgba(39, 32, 26, 0.13);
  --rose: #b94f6c;
  --copper: #b66c37;
  --sage: #59756b;
  --cream: #fff8ef;
  --white: #ffffff;
  --shadow: 0 24px 70px rgba(71, 43, 29, 0.16);
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.55;
  letter-spacing: 0;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

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

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 28px;
  align-items: center;
  min-height: 72px;
  padding: 13px clamp(18px, 5vw, 64px);
  background: rgba(255, 253, 249, 0.82);
  border-bottom: 1px solid rgba(39, 32, 26, 0.08);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

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

.brand img {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  box-shadow: 0 10px 24px rgba(74, 36, 44, 0.18);
}

.nav-links,
.nav-actions,
.language-menu {
  display: flex;
  align-items: center;
}

.nav-links {
  justify-content: center;
  gap: 24px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 650;
}

.nav-links a,
.site-footer a {
  transition: color 180ms ease;
}

.nav-links a:hover,
.site-footer a:hover,
.nav-links [aria-current="page"] {
  color: var(--ink);
}

.nav-actions {
  justify-content: end;
  gap: 12px;
}

.button,
.nav-download {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 760;
  transition: transform 180ms ease, background 180ms ease, color 180ms ease;
}

.button.primary,
.nav-download {
  background: var(--ink);
  color: var(--white);
}

.button.secondary {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.72);
}

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

.button.primary:hover,
.nav-download:hover {
  background: var(--rose);
}

.language-switcher {
  position: relative;
  font-size: 14px;
  font-weight: 650;
}

.language-switcher summary {
  min-height: 44px;
  padding: 10px 13px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
  cursor: pointer;
  list-style: none;
}

.language-switcher summary::-webkit-details-marker {
  display: none;
}

.language-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 50;
  width: 190px;
  padding: 8px;
  flex-direction: column;
  align-items: stretch;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.language-menu a {
  padding: 9px 11px;
  border-radius: 6px;
  color: var(--muted);
}

.language-menu a:hover,
.language-menu [aria-current="true"] {
  background: var(--wash);
  color: var(--ink);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.94fr) minmax(350px, 1.06fr);
  gap: clamp(34px, 7vw, 86px);
  align-items: center;
  min-height: calc(100svh - 72px);
  padding: clamp(54px, 8vw, 96px) clamp(20px, 6vw, 88px);
  background:
    linear-gradient(125deg, rgba(255, 253, 249, 0.95), rgba(248, 239, 232, 0.86)),
    linear-gradient(90deg, rgba(185, 79, 108, 0.1), rgba(89, 117, 107, 0.08));
  overflow: hidden;
}

.page-hero {
  min-height: 560px;
}

.hero-copy {
  max-width: 720px;
}

.eyebrow {
  display: inline-flex;
  margin-bottom: 18px;
  color: var(--rose);
  font-size: 13px;
  font-weight: 780;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1 {
  max-width: 820px;
  font-size: clamp(52px, 8vw, 96px);
  line-height: 0.93;
  font-weight: 820;
}

.page-hero h1 {
  font-size: clamp(44px, 7vw, 76px);
}

.hero-text,
.section-lede,
.page-intro {
  color: var(--muted);
  font-size: clamp(18px, 2.1vw, 22px);
}

.hero-text {
  max-width: 610px;
  margin-top: 24px;
}

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

.proof-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 34px;
  max-width: 720px;
}

.proof-row span {
  padding-top: 12px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
  font-weight: 650;
}

.hero-visual {
  position: relative;
  min-height: 620px;
}

.phone-stack {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  isolation: isolate;
}

.phone {
  position: absolute;
  width: min(42vw, 276px);
  max-width: 42%;
  padding: 9px;
  border-radius: 34px;
  background: #14110f;
  box-shadow: 0 28px 80px rgba(54, 33, 25, 0.24);
  transition: transform 260ms ease;
}

.phone img {
  aspect-ratio: 600 / 1304;
  width: 100%;
  object-fit: cover;
  border-radius: 26px;
}

.phone.primary {
  z-index: 3;
  transform: translateY(-8px) rotate(0.5deg);
}

.phone.left {
  z-index: 2;
  transform: translate(-34%, 42px) rotate(-7deg) scale(0.87);
}

.phone.right {
  z-index: 1;
  transform: translate(36%, 48px) rotate(7deg) scale(0.86);
}

.hero-visual:hover .phone.primary {
  transform: translateY(-18px) rotate(0deg);
}

.hero-visual:hover .phone.left {
  transform: translate(-40%, 52px) rotate(-9deg) scale(0.87);
}

.hero-visual:hover .phone.right {
  transform: translate(42%, 58px) rotate(9deg) scale(0.86);
}

.qr-panel {
  position: absolute;
  right: 0;
  bottom: 0;
  z-index: 5;
  width: min(260px, 45vw);
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.82);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow);
}

.qr-panel img {
  width: 118px;
  height: 118px;
  margin-bottom: 12px;
  border-radius: 8px;
}

.qr-panel strong {
  display: block;
  font-size: 15px;
}

.qr-panel span {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 13px;
}

.section {
  padding: clamp(70px, 10vw, 120px) clamp(20px, 6vw, 88px);
}

.section.alt {
  background: var(--wash);
}

.section.dark {
  background: #17130f;
  color: var(--white);
}

.section.dark .section-lede {
  color: rgba(255, 255, 255, 0.74);
}

.section.dark .button.primary {
  background: var(--white);
  color: var(--ink);
}

.section.dark .button.primary:hover {
  background: #f3d8cf;
}

.section-inner {
  width: min(100%, var(--max));
  margin: 0 auto;
}

.section-head {
  max-width: 760px;
  margin-bottom: 46px;
}

.section h2 {
  font-size: clamp(34px, 5.4vw, 62px);
  line-height: 1;
  font-weight: 800;
}

.section-lede,
.page-intro {
  max-width: 720px;
  margin-top: 18px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.feature-item {
  min-height: 235px;
  padding: 28px;
  background: var(--paper);
}

.feature-item h3,
.step h3,
.faq-item h3,
.guide-card h3 {
  font-size: 20px;
  line-height: 1.15;
}

.feature-item p,
.step p,
.faq-item p,
.guide-card p,
.solution-item p {
  margin-top: 10px;
  color: var(--muted);
}

.workflow {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  counter-reset: steps;
}

.step {
  padding-top: 18px;
  border-top: 1px solid currentColor;
  counter-increment: steps;
}

.step::before {
  content: counter(steps, decimal-leading-zero);
  display: block;
  margin-bottom: 22px;
  color: var(--copper);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(7, minmax(175px, 1fr));
  gap: 18px;
  overflow-x: auto;
  padding: 8px 0 24px;
  scroll-snap-type: x proximity;
}

.gallery img {
  width: 100%;
  min-width: 175px;
  border-radius: 30px;
  box-shadow: 0 20px 52px rgba(47, 31, 22, 0.16);
  scroll-snap-align: start;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(320px, 0.58fr);
  gap: clamp(30px, 7vw, 80px);
  align-items: center;
}

.trust-list {
  display: grid;
  gap: 16px;
}

.trust-list li,
.solution-item {
  padding: 20px 0;
  border-top: 1px solid var(--line);
}

.trust-list,
.problem-list {
  padding: 0;
  margin: 0;
  list-style: none;
}

.download-card {
  padding: 22px;
  border-radius: 18px;
  background: var(--white);
  color: var(--ink);
  box-shadow: var(--shadow);
}

.download-card img {
  width: 170px;
  height: 170px;
  border-radius: 10px;
}

.download-card p {
  margin: 12px 0 18px;
  color: var(--muted);
}

.guide-grid,
.faq-list,
.solution-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.guide-card,
.faq-item {
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
}

.guide-card {
  min-height: 210px;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.guide-card:hover {
  transform: translateY(-3px);
  border-color: rgba(185, 79, 108, 0.34);
  background: var(--white);
}

.guide-card .label {
  display: block;
  margin-bottom: 16px;
  color: var(--rose);
  font-size: 12px;
  font-weight: 780;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.page-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(300px, 0.42fr);
  gap: clamp(30px, 7vw, 80px);
}

.article-copy {
  display: grid;
  gap: 34px;
}

.article-copy h2 {
  font-size: clamp(30px, 4vw, 48px);
}

.problem-list li {
  padding: 18px 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.sticky-download {
  position: sticky;
  top: 96px;
  align-self: start;
}

.site-footer {
  padding: 44px clamp(20px, 6vw, 88px);
  border-top: 1px solid var(--line);
  background: var(--paper);
  color: var(--muted);
  font-size: 14px;
}

.footer-inner {
  width: min(100%, var(--max));
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: space-between;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

[data-reveal] {
  opacity: 1;
  transform: none;
}

.js [data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 520ms ease, transform 520ms ease;
}

.js [data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

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

@media (max-width: 980px) {
  .site-header {
    grid-template-columns: auto auto;
  }

  .nav-links {
    display: none;
  }

  .hero,
  .split,
  .page-layout {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    min-height: 590px;
  }

  .feature-grid,
  .workflow,
  .guide-grid,
  .faq-list,
  .solution-grid {
    grid-template-columns: 1fr;
  }

  .feature-item {
    min-height: auto;
  }

  .sticky-download {
    position: static;
  }
}

@media (max-width: 680px) {
  body {
    font-size: 16px;
  }

  .site-header {
    min-height: 66px;
    padding: 11px 16px;
  }

  .brand span {
    max-width: 132px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .nav-download {
    display: none;
  }

  .hero {
    min-height: auto;
    padding: 48px 18px 60px;
  }

  h1 {
    font-size: clamp(43px, 13vw, 58px);
  }

  .hero-visual {
    min-height: 460px;
  }

  .phone {
    width: 235px;
    max-width: 58%;
    border-radius: 30px;
  }

  .phone img {
    border-radius: 22px;
  }

  .qr-panel {
    left: 0;
    right: auto;
    width: min(250px, 80vw);
  }

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

  .section {
    padding: 64px 18px;
  }

  .gallery {
    grid-template-columns: repeat(7, 168px);
  }

  .download-card img {
    width: 152px;
    height: 152px;
  }
}
