:root {
  --primary: #8b1e2d;
  --primary-dark: #5c1220;
  --accent: #d4a64a;
  --ink: #2b2320;
  --ink-soft: #5a4f4a;
  --bg: #f7f1e6;
  --bg-soft: #fdf8ee;
  --line: #e6d9c2;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(92, 18, 32, 0.08);
  --max: 1120px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB",
    "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}

/* ============ Header ============ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(247, 241, 230, 0.92);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 18px;
  letter-spacing: 1px;
  color: var(--primary-dark);
}
.brand-mark {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 16px;
}
.nav-links {
  display: flex;
  gap: 28px;
  list-style: none;
}
.nav-links a {
  color: var(--ink-soft);
  font-size: 15px;
  transition: color .2s;
}
.nav-links a:hover { color: var(--primary); }
.nav-toggle {
  display: none;
  background: none;
  border: 0;
  font-size: 24px;
  color: var(--ink);
  cursor: pointer;
}

/* ============ Hero ============ */
.hero {
  position: relative;
  padding: 96px 0 80px;
  background:
    radial-gradient(1200px 500px at 80% -10%, rgba(212,166,74,.18), transparent 60%),
    radial-gradient(900px 500px at 0% 10%, rgba(139,30,45,.10), transparent 60%),
    var(--bg);
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}
.hero-eyebrow {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(139, 30, 45, 0.08);
  color: var(--primary);
  font-size: 13px;
  letter-spacing: 1px;
  margin-bottom: 20px;
}
.hero h1 {
  font-size: 48px;
  line-height: 1.2;
  font-weight: 800;
  color: var(--primary-dark);
  margin-bottom: 18px;
  letter-spacing: 1px;
}
.hero p.lead {
  font-size: 18px;
  color: var(--ink-soft);
  margin-bottom: 32px;
  max-width: 520px;
}
.hero-cta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 22px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  transition: transform .15s ease, box-shadow .2s, background .2s;
  border: 1px solid transparent;
  cursor: pointer;
}
.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 10px 20px rgba(139,30,45,.25);
}
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-1px); }
.btn-ghost {
  background: transparent;
  color: var(--primary-dark);
  border-color: var(--primary);
}
.btn-ghost:hover { background: rgba(139,30,45,.06); }

.hero-card {
  position: relative;
  background: linear-gradient(160deg, #ffffff 0%, #fdf6ea 100%);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 28px;
  box-shadow: var(--shadow);
}
.hero-card .phone {
  aspect-ratio: 9 / 16;
  border-radius: 28px;
  background: #ebe2f5;
  color: #fff;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  position: relative;
  overflow: hidden;
}
.hero-card .phone::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(0,0,0,.45));
}
.phone-badge {
  position: absolute;
  top: 18px; left: 18px;
  background: rgba(255,255,255,.16);
  border: 1px solid rgba(255,255,255,.25);
  color: #fff;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12px;
  backdrop-filter: blur(6px);
}
.hero-card .phone-shot {
  background: #ebe2f5;
  padding: 0;
}
.hero-card .phone-shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 28px;
  display: block;
}

/* ============ Sections ============ */
section { padding: 80px 0; }
.section-head { text-align: center; margin-bottom: 56px; }
.section-head .tag {
  color: var(--accent);
  font-size: 13px;
  letter-spacing: 3px;
  text-transform: uppercase;
  font-weight: 700;
}
.section-head h2 {
  font-size: 34px;
  color: var(--primary-dark);
  margin-top: 10px;
  letter-spacing: 1px;
}
.section-head p {
  color: var(--ink-soft);
  margin-top: 12px;
  max-width: 620px;
  margin-left: auto;
  margin-right: auto;
}

.bg-soft { background: var(--bg-soft); }

/* Features */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.feature {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  transition: transform .2s, box-shadow .2s;
}
.feature:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.feature .icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: rgba(139,30,45,.08);
  color: var(--primary);
  display: grid; place-items: center;
  font-size: 22px;
  margin-bottom: 16px;
}
.feature h3 { font-size: 18px; margin-bottom: 8px; color: var(--primary-dark); }
.feature p { color: var(--ink-soft); font-size: 15px; }

/* Showcase */
.showcase-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.showcase-item {
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  aspect-ratio: 4 / 5;
  background: #ddd;
}
.showcase-item img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .5s ease;
}
.showcase-item:hover img { transform: scale(1.05); }
.showcase-caption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 24px 18px 16px;
  background: linear-gradient(180deg, transparent, rgba(0,0,0,.65));
  color: #fff;
}
.showcase-caption h4 { font-size: 17px; margin-bottom: 4px; }
.showcase-caption span { font-size: 13px; opacity: .85; }
.showcase-credit {
  margin-top: 18px;
  text-align: center;
  font-size: 12px;
  color: var(--ink-soft);
  opacity: .8;
}
.showcase-credit a {
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.showcase-credit a:hover { color: var(--primary-dark); }

/* App Screenshots */
.screenshots {
  background: linear-gradient(180deg, #efe6d6 0%, #f7f1e6 100%);
}
.shot-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.shot {
  position: relative;
  border-radius: 22px;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 12px 28px rgba(92, 18, 32, 0.10);
  transition: transform .25s ease, box-shadow .25s ease;
  aspect-ratio: 9 / 19.5;
}
.shot:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(92, 18, 32, 0.16);
}
.shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}
.shot-scroll {
  display: none;
}

/* Support CTA */
.cta-band {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #fff;
  border-radius: 24px;
  padding: 56px 48px;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 32px;
  align-items: center;
}
.cta-band h2 { font-size: 30px; margin-bottom: 12px; letter-spacing: 1px; }
.cta-band p { opacity: .9; max-width: 520px; }
.cta-actions { display: flex; flex-direction: column; gap: 12px; }
.cta-actions .btn {
  justify-content: center;
  background: #fff;
  color: var(--primary-dark);
}
.cta-actions .btn.outline {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,.6);
}

/* FAQ */
.faq-list { max-width: 820px; margin: 0 auto; }
.faq-item {
  border-bottom: 1px solid var(--line);
  padding: 18px 0;
}
.faq-q {
  width: 100%;
  text-align: left;
  background: transparent;
  border: 0;
  font-size: 17px;
  font-weight: 600;
  color: var(--primary-dark);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 4px 0;
}
.faq-q .chev { transition: transform .2s; color: var(--accent); }
.faq-item.open .chev { transform: rotate(45deg); }
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height .3s ease;
  color: var(--ink-soft);
}
.faq-item.open .faq-a { max-height: 400px; padding-top: 10px; }

/* Support page */
.support-hero {
  padding: 72px 0 48px;
  text-align: center;
  background:
    radial-gradient(800px 400px at 50% 0%, rgba(212,166,74,.18), transparent 60%),
    var(--bg);
}
.support-hero h1 {
  font-size: 40px;
  color: var(--primary-dark);
  margin-bottom: 12px;
  letter-spacing: 1px;
}
.support-hero p { color: var(--ink-soft); font-size: 17px; }

.support-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 40px;
}
.support-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
}
.support-card h3 { color: var(--primary-dark); margin-bottom: 10px; font-size: 18px; }
.support-card p { color: var(--ink-soft); font-size: 15px; margin-bottom: 12px; }
.support-card .channel {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  color: var(--ink);
  font-weight: 600;
}
.support-card .channel .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #2ea36b;
}

/* Legal */
.legal {
  padding: 64px 0 96px;
}
.legal .container { max-width: 860px; }
.legal h1 {
  font-size: 32px;
  color: var(--primary-dark);
  margin-bottom: 8px;
  letter-spacing: 1px;
}
.legal .meta {
  color: var(--ink-soft);
  font-size: 14px;
  margin-bottom: 32px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}
.legal h2 {
  font-size: 20px;
  color: var(--primary-dark);
  margin: 28px 0 12px;
}
.legal p, .legal li {
  color: var(--ink);
  font-size: 15px;
  margin-bottom: 10px;
}
.legal ul { padding-left: 22px; }

/* Footer */
.site-footer {
  background: #2b2320;
  color: #cdc2b6;
  padding: 48px 0 28px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 32px;
}
.footer-grid h5 {
  color: #fff;
  font-size: 14px;
  letter-spacing: 2px;
  margin-bottom: 14px;
}
.footer-grid ul { list-style: none; }
.footer-grid li { margin-bottom: 8px; font-size: 14px; }
.footer-grid a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 13px;
  color: #9a8e83;
}

/* Responsive */
@media (max-width: 900px) {
  .hero { padding: 64px 0 48px; }
  .hero-grid { grid-template-columns: 1fr; gap: 32px; }
  .hero h1 { font-size: 36px; }
  .feature-grid, .showcase-grid, .support-grid { grid-template-columns: 1fr; }
  .shot-row {
    display: none;
  }
  .shot-scroll {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    padding: 6px 4px 18px;
    margin: 0 -24px;
    padding-left: 24px;
    padding-right: 24px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
  }
  .shot-scroll::-webkit-scrollbar { height: 6px; }
  .shot-scroll::-webkit-scrollbar-thumb {
    background: rgba(139, 30, 45, 0.25);
    border-radius: 999px;
  }
  .shot-scroll .shot {
    flex: 0 0 68%;
    aspect-ratio: 9 / 19.5;
    scroll-snap-align: start;
  }
  .cta-band { grid-template-columns: 1fr; padding: 36px 28px; text-align: center; }
  .cta-actions { align-items: stretch; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .nav-links { display: none; }
  .nav-toggle { display: block; }
  .nav-links.open {
    display: flex;
    position: absolute;
    top: 64px; left: 0; right: 0;
    background: var(--bg-soft);
    flex-direction: column;
    padding: 16px 24px;
    border-bottom: 1px solid var(--line);
    gap: 14px;
  }
  section { padding: 56px 0; }
  .section-head h2 { font-size: 26px; }
}
