:root {
  --bg: #f7f3ec;
  --surface: #ffffff;
  --surface-soft: #fffaf2;
  --ink: #191714;
  --muted: #665f55;
  --subtle: #8a8175;
  --line: #e8ded0;
  --line-strong: #d7c8b6;
  --accent: #c05f1a;
  --accent-dark: #8f4215;
  --accent-soft: #fff0dc;
  --green: #1f7a4d;
  --blue: #285c9f;
  --shadow: 0 28px 80px rgba(60, 42, 22, 0.14);
  --shadow-soft: 0 16px 44px rgba(60, 42, 22, 0.1);
  --radius: 18px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Microsoft YaHei", sans-serif;
  --max-w: 1180px;
  --header-h: 74px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  color: var(--ink);
  background:
    linear-gradient(140deg, rgba(255, 243, 222, 0.9) 0%, rgba(255, 255, 255, 0) 34%),
    linear-gradient(180deg, #fbf7ef 0%, var(--bg) 52%, #f1ece3 100%);
}

a {
  color: inherit;
}

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

h1 {
  max-width: 760px;
  font-size: clamp(44px, 7vw, 78px);
  line-height: 1;
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(31px, 4vw, 52px);
  line-height: 1.08;
  letter-spacing: -0.01em;
}

h3 {
  font-size: 21px;
  line-height: 1.25;
}

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

button, a {
  -webkit-tap-highlight-color: transparent;
}

/* ── Scroll reveal ── */

.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition:
    opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }

/* ── Header ── */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
  width: min(var(--max-w), calc(100% - 40px));
  min-height: var(--header-h);
  margin: 0 auto;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.brand,
.nav,
.actions,
.footer,
.author,
.mock-head,
.mock-tabs,
.store-row,
.video-cover,
.rating-card {
  display: flex;
  align-items: center;
}

.brand,
.nav a,
.header-cta,
.button,
.footer a,
.mock-head a,
.store-row a {
  text-decoration: none;
}

.brand {
  gap: 10px;
  font-size: 18px;
  font-weight: 900;
}

.brand img {
  width: 34px;
  height: 34px;
  border-radius: 8px;
}

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

.nav a {
  white-space: nowrap;
  transition: color 0.2s;
}

.lang-switch {
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 2px 8px;
  font-size: 12px;
  color: var(--accent-dark);
  background: rgba(255, 255, 255, 0.5);
}

.header-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 15px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  font-size: 14px;
  font-weight: 900;
  box-shadow: 0 8px 28px rgba(60, 42, 22, 0.07);
  transition: transform 0.2s, box-shadow 0.2s;
}

/* ── Section container ── */

.section {
  width: min(var(--max-w), calc(100% - 40px));
  margin: 0 auto;
}

/* ── Hero ── */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(360px, 0.78fr);
  gap: 58px;
  align-items: center;
  min-height: calc(100vh - var(--header-h));
  padding: 54px 0 82px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  max-width: 100%;
  margin-bottom: 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 12px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--accent-dark);
  font-size: 13px;
  font-weight: 900;
  line-height: 1.2;
}

.hero-copy > p {
  max-width: 690px;
  margin-top: 24px;
  color: var(--muted);
  font-size: 19px;
  line-height: 1.75;
}

.actions {
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 31px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 999px;
  font-weight: 900;
  line-height: 1;
  white-space: nowrap;
  transition: transform 0.2s, box-shadow 0.2s;
}

.button-primary {
  background: var(--ink);
  color: #fff;
  box-shadow: 0 14px 34px rgba(25, 23, 20, 0.18);
}

.button-secondary {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.78);
  color: #27231f;
}

.store-row {
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.store-row a {
  display: grid;
  gap: 3px;
  min-width: 152px;
  padding: 11px 13px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.68);
  box-shadow: 0 8px 24px rgba(60, 42, 22, 0.06);
  transition: transform 0.2s, box-shadow 0.2s;
}

.store-row strong {
  font-size: 14px;
  line-height: 1.2;
}

.store-row span {
  color: var(--subtle);
  font-size: 12px;
  font-weight: 700;
}

.social-proof {
  max-width: 620px;
  margin-top: 20px;
  color: var(--subtle);
  font-size: 13px;
  font-weight: 800;
}

.hero-media {
  position: relative;
}

.video-card {
  position: relative;
  min-height: 520px;
  border: 1px solid rgba(255, 255, 255, 0.75);
  border-radius: 28px;
  padding: 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(255, 250, 242, 0.72)),
    #fff;
  box-shadow: var(--shadow);
}

.video-cover {
  position: relative;
  justify-content: center;
  min-height: 390px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 20px;
  background:
    linear-gradient(150deg, rgba(192, 95, 26, 0.12), rgba(255, 255, 255, 0.2)),
    repeating-linear-gradient(0deg, #fff, #fff 22px, #f4eee5 23px);
}

.video-cover::before,
.video-cover::after {
  position: absolute;
  content: "";
  border: 1px solid rgba(215, 200, 182, 0.72);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.76);
  box-shadow: var(--shadow-soft);
}

.video-cover::before {
  inset: 42px 42px auto;
  height: 118px;
}

.video-cover::after {
  right: 42px;
  bottom: 42px;
  width: 58%;
  height: 126px;
}

.video-cover img {
  position: relative;
  z-index: 1;
  width: 104px;
  height: 104px;
  border-radius: 22px;
  box-shadow: 0 18px 50px rgba(192, 95, 26, 0.23);
}

.download-badge {
  position: absolute;
  z-index: 2;
  left: 50%;
  top: 50%;
  display: grid;
  place-items: center;
  width: 68px;
  height: 68px;
  border: none;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 28px;
  line-height: 1;
  transform: translate(-50%, -50%);
  box-shadow: 0 18px 44px rgba(192, 95, 26, 0.3);
  text-decoration: none;
  transition: transform 0.3s, box-shadow 0.3s;
}

.rating-card {
  position: absolute;
  right: -16px;
  bottom: 24px;
  display: grid;
  gap: 4px;
  width: min(260px, calc(100% - 32px));
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow-soft);
}

.rating-card span {
  color: var(--subtle);
  font-size: 13px;
  font-weight: 800;
}

.rating-card strong {
  font-size: 20px;
  line-height: 1.2;
}

.rating-card em {
  color: var(--accent-dark);
  font-style: normal;
  font-size: 13px;
  font-weight: 900;
}

/* ── Browser strip ── */

.integrations {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 22px;
  align-items: center;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.62);
  box-shadow: 0 12px 36px rgba(60, 42, 22, 0.06);
}

.integrations > span {
  color: var(--muted);
  font-weight: 900;
  line-height: 1.45;
}

.integrations > div {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.integrations article {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 8px 10px;
  background: #fff;
  transition: transform 0.2s;
}

.integrations b {
  display: grid;
  place-items: center;
  flex: 0 0 28px;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--accent-soft);
  color: var(--accent-dark);
  font-size: 13px;
  font-weight: 900;
}

.integrations strong {
  overflow: hidden;
  font-size: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ── Feature sections ── */

.feature-story,
.recipes,
.letter,
.privacy-band,
.faq,
.final-cta {
  padding-top: 108px;
}

.section-heading {
  max-width: 780px;
  margin-bottom: 34px;
}

.section-heading p {
  margin-top: 18px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.75;
}

.feature-row {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(320px, 0.78fr);
  gap: 42px;
  align-items: center;
  margin-top: 28px;
  padding: 36px;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.58);
  transition: transform 0.3s, box-shadow 0.3s;
}

.feature-row.reverse {
  grid-template-columns: minmax(320px, 0.78fr) minmax(0, 1.02fr);
}

.mock-panel,
.mini-screen {
  border: 1px solid var(--line-strong);
  border-radius: 18px;
  padding: 16px;
  background: #f7f8fa;
  box-shadow: var(--shadow-soft);
}

.mock-head {
  gap: 10px;
}

.mock-head img {
  width: 34px;
  height: 34px;
  border-radius: 8px;
}

.mock-head div {
  flex: 1;
  min-width: 0;
}

.mock-head strong,
.mock-head span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mock-head span {
  margin-top: 2px;
  color: #6b7280;
  font-size: 12px;
}

.mock-head a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  border-radius: 8px;
  padding: 0 12px;
  background: var(--accent);
  color: #fff;
  font-size: 13px;
  font-weight: 900;
  white-space: nowrap;
}

.mock-search {
  margin-top: 14px;
  overflow: hidden;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 11px;
  background: #fff;
  color: #9ca3af;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mock-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 4px;
  margin-top: 10px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 3px;
}

.mock-tabs b,
.mock-tabs span {
  display: grid;
  place-items: center;
  min-height: 32px;
  border-radius: 6px;
  font-size: 12px;
  line-height: 1.1;
  text-align: center;
}

.mock-tabs b {
  background: #fff;
  color: var(--accent);
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.08);
}

.mock-tabs span {
  color: #6b7280;
  font-weight: 800;
}

.site-list {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.site-list article {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  padding: 12px;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.08);
}

.site-list em {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-style: normal;
  font-weight: 900;
}

.site-list strong,
.site-list span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.site-list span {
  margin-top: 3px;
  color: #6b7280;
  font-size: 12px;
}

.feature-copy {
  max-width: 480px;
}

.feature-copy > span {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  margin-bottom: 20px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-size: 15px;
  font-weight: 900;
}

.feature-copy p {
  margin-top: 14px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.78;
}

.mini-screen {
  display: grid;
  gap: 14px;
  background: linear-gradient(180deg, #fff, #f6f3ee);
}

.content-card,
.progress-card {
  display: grid;
  gap: 7px;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px;
  background: #fff;
}

.content-card b {
  width: fit-content;
  border-radius: 999px;
  padding: 5px 9px;
  background: var(--accent-soft);
  color: var(--accent-dark);
  font-size: 12px;
}

.content-card strong,
.progress-card strong {
  font-size: 22px;
  line-height: 1.2;
}

.content-card span,
.progress-card span {
  color: var(--muted);
  line-height: 1.65;
}

.import-screen {
  align-content: center;
  min-height: 260px;
}

.progress-card i {
  display: block;
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: #eee3d4;
}

.progress-card i b {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--green);
}

.check-list {
  display: grid;
  gap: 8px;
}

.check-list span {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 11px 12px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--muted);
  font-weight: 800;
}

/* ── Recipes ── */

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

.recipe-grid article {
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 14px;
  min-height: 300px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  background: rgba(255, 255, 255, 0.7);
  transition: transform 0.3s, box-shadow 0.3s;
}

.recipe-grid p {
  color: var(--muted);
  line-height: 1.7;
}

.recipe-grid button {
  justify-self: start;
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 14px;
  background: var(--ink);
  color: #fff;
  font: inherit;
  font-size: 14px;
  font-weight: 900;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}

/* ── Letter ── */

.letter-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 240px;
  gap: 36px;
  align-items: start;
  padding: 44px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background:
    linear-gradient(135deg, rgba(255, 244, 226, 0.8), rgba(255, 255, 255, 0.76)),
    #fff;
  box-shadow: var(--shadow-soft);
}

.letter-card p {
  grid-column: 1 / -1;
  max-width: 920px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.85;
}

.author {
  gap: 12px;
  align-self: center;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.74);
}

.author img {
  width: 46px;
  height: 46px;
  border-radius: 12px;
}

.author strong,
.author span {
  display: block;
}

.author strong {
  font-size: 15px;
}

.author span {
  margin-top: 2px;
  color: var(--subtle);
  font-size: 12px;
  font-weight: 800;
}

/* ── Privacy ── */

.privacy-band {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 42px;
  align-items: center;
  margin-top: 108px;
  padding: 44px;
  border-radius: 28px;
  background: #252018;
  color: #fff9ed;
}

.privacy-band .eyebrow {
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.08);
  color: #fed7aa;
}

.privacy-band p {
  color: #e7ded0;
  font-size: 18px;
  line-height: 1.8;
}

/* ── FAQ ── */

.faq {
  max-width: 920px;
}

.faq details {
  margin-bottom: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 24px;
  background: rgba(255, 255, 255, 0.72);
  transition: border-color 0.3s;
}

.faq details[open] {
  border-color: var(--accent);
}

.faq summary {
  cursor: pointer;
  font-size: 18px;
  font-weight: 900;
  line-height: 1.45;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

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

.faq summary::after {
  content: "+";
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 18px;
  font-weight: 700;
  transition: transform 0.3s;
}

.faq details[open] summary::after {
  content: "\2212";
  transform: rotate(180deg);
}

.faq p {
  margin-top: 12px;
  color: var(--muted);
  line-height: 1.75;
}

/* ── Final CTA ── */

.final-cta {
  display: grid;
  place-items: center;
  padding-bottom: 98px;
  text-align: center;
}

.final-cta img {
  width: 64px;
  height: 64px;
  margin-bottom: 24px;
  border-radius: 14px;
}

.final-cta h2 {
  max-width: 780px;
}

.final-cta p {
  max-width: 680px;
  margin-top: 18px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.75;
}

.final-cta .button {
  margin-top: 26px;
}

/* ── Footer ── */

.footer {
  justify-content: center;
  gap: 18px;
  min-height: 74px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}

/* ── Hover effects ── */

@media (hover: hover) {
  .nav a:hover,
  .footer a:hover {
    color: var(--accent-dark);
  }

  .button:hover,
  .header-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 42px rgba(25, 23, 20, 0.22);
  }

  .store-row a:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(60, 42, 22, 0.1);
  }

  .feature-row:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
  }

  .recipe-grid article:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-soft);
  }

  .recipe-grid button:hover,
  .mock-head a:hover {
    transform: translateY(-1px);
  }

  .integrations article:hover {
    transform: translateY(-2px);
  }

  .download-badge:hover {
    transform: translate(-50%, -50%) scale(1.1);
    box-shadow: 0 22px 52px rgba(192, 95, 26, 0.38);
  }
}

/* ── Responsive: tablet ── */

@media (max-width: 980px) {
  .site-header,
  .section {
    width: min(100% - 28px, var(--max-w));
  }

  .site-header {
    grid-template-columns: auto auto;
  }

  .nav {
    display: none;
  }

  .hero,
  .integrations,
  .feature-row,
  .feature-row.reverse,
  .letter-card,
  .privacy-band {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    gap: 38px;
    padding-top: 36px;
  }

  .hero-media {
    max-width: 620px;
  }

  .video-card {
    min-height: 460px;
  }

  .video-cover {
    min-height: 340px;
  }

  .integrations > div,
  .recipe-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .feature-story,
  .recipes,
  .letter,
  .privacy-band,
  .faq,
  .final-cta {
    padding-top: 76px;
  }

  .privacy-band {
    margin-top: 76px;
    padding: 32px;
  }

  .letter-card p {
    grid-column: auto;
  }

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

/* ── Responsive: mobile ── */

@media (max-width: 620px) {
  .site-header {
    min-height: 64px;
  }

  .header-cta {
    display: none;
  }

  .brand {
    font-size: 17px;
  }

  h1 {
    font-size: 42px;
  }

  h2 {
    font-size: 30px;
  }

  .hero {
    padding-top: 26px;
    padding-bottom: 62px;
  }

  .hero-copy > p,
  .section-heading p,
  .final-cta p,
  .privacy-band p,
  .letter-card p {
    font-size: 16px;
  }

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

  .button {
    width: 100%;
    white-space: normal;
    text-align: center;
  }

  .store-row,
  .store-row a {
    width: 100%;
  }

  .video-card {
    min-height: 400px;
    padding: 10px;
    border-radius: 22px;
  }

  .video-cover {
    min-height: 292px;
    border-radius: 16px;
  }

  .video-cover::before {
    inset: 28px 24px auto;
    height: 100px;
  }

  .video-cover::after {
    right: 24px;
    bottom: 32px;
    width: 64%;
    height: 100px;
  }

  .video-cover img {
    width: 88px;
    height: 88px;
    border-radius: 18px;
  }

  .download-badge {
    width: 58px;
    height: 58px;
    font-size: 24px;
  }

  .rating-card {
    position: relative;
    right: auto;
    bottom: auto;
    width: 100%;
    margin-top: 10px;
  }

  .integrations,
  .feature-row,
  .letter-card,
  .privacy-band {
    padding: 22px;
    border-radius: 20px;
  }

  .integrations > div,
  .recipe-grid {
    grid-template-columns: 1fr;
  }

  .feature-row {
    gap: 26px;
  }

  .mock-panel,
  .mini-screen {
    padding: 12px;
  }

  .mock-head {
    align-items: flex-start;
  }

  .mock-head a {
    padding: 0 10px;
  }

  .mock-search {
    white-space: normal;
  }

  .recipe-grid article {
    min-height: auto;
  }

  .author {
    align-self: start;
  }

  .faq details {
    padding: 18px;
  }

  .footer {
    flex-wrap: wrap;
    padding: 18px;
  }
}
