:root {
  --bg: #f3f6fb;
  --surface: #ffffff;
  --surface-soft: #f8fbff;
  --text: #101828;
  --muted: #667085;
  --line: #dce6f4;
  --primary: #2965eb;
  --red: #e02424;
  --shadow: 0 14px 34px rgba(16, 24, 40, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-anchor: none;
  overscroll-behavior-y: none;
  background: var(--bg);
}

body {
  margin: 0;
  color: var(--text);
  background: var(--bg);
  font-family: "PingFang SC", -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
  overscroll-behavior-y: none;
}

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

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

button {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 68px;
  padding: 0 5vw;
  background: #ffffff;
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
  transition: background 0.32s ease, border-color 0.32s ease, box-shadow 0.32s ease;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.brand-logo-img {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.brand-copy {
  display: grid;
  line-height: 1.2;
}

.brand-copy strong {
  color: #070820;
  font-size: 14px;
  font-weight: 800;
}

.brand-copy small {
  color: #0f62ff;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0;
  white-space: nowrap;
}

.download-link {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  color: var(--primary);
  background: transparent;
  border: 0;
}

.download-link img {
  width: 22px;
  height: 22px;
}

.download-link:hover {
  color: #174bd8;
}

.header-tools {
  display: flex;
  align-items: center;
  gap: 12px;
}

.menu-button {
  display: grid;
  align-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.menu-button span {
  display: block;
  justify-self: center;
  width: 22px;
  height: 2px;
  border-radius: 999px;
  background: var(--primary);
  transition: transform 0.24s ease, opacity 0.24s ease;
}

.menu-button.is-open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-button.is-open span:nth-child(2) {
  opacity: 0;
}

.menu-button.is-open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.mobile-menu-panel {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 21;
  width: 100%;
  padding: 38px 52px 42px;
  background: #ffffff;
  box-shadow: 0 20px 44px rgba(15, 23, 42, 0.12);
  backdrop-filter: blur(12px);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-24px);
  transition: opacity 0.28s ease, transform 0.34s ease;
}

.mobile-menu-panel.is-open {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.mobile-menu-panel a {
  display: block;
  padding: 14px 0;
  color: #111827;
  font-size: 19px;
  line-height: normal;
  font-weight: 700;
  text-align: center;
}

.mobile-menu-panel a + a {
  border-top: 1px solid rgba(36, 87, 255, 0.18);
}

.mobile-menu-panel a:hover {
  color: var(--primary);
}

.top-nav {
  display: flex;
  gap: 28px;
  color: #344054;
  font-weight: 800;
}

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

main {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.hero {
  padding: 16px 0 12px;
  text-align: center;
}

.eyebrow {
  margin-bottom: 8px;
  color: var(--primary);
  font-size: 14px;
  font-weight: 900;
}

h1 {
  font-size: clamp(38px, 6vw, 64px);
  line-height: 1.08;
}

.hero p:last-child {
  max-width: 680px;
  margin: 14px auto 0;
  color: var(--muted);
  font-size: 18px;
}

.tutorial-panel {
  margin: 0 0 56px;
}

.tabbar {
  position: sticky;
  top: 68px;
  z-index: 9;
  display: flex;
  justify-content: center;
  gap: 14px;
  padding: 8px 0 12px;
  background: rgba(243, 246, 251, 0.94);
  backdrop-filter: blur(12px);
}

.tab {
  min-width: 120px;
  min-height: 44px;
  color: #344054;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 10px;
  cursor: pointer;
  font-weight: 900;
}

.tab.active {
  color: #ffffff;
  background: var(--primary);
  border-color: var(--primary);
}

.flow {
  padding: 30px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow);
}

.flow-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 26px;
}

.flow h2 {
  font-size: 32px;
  line-height: 1.22;
}

.status-pill {
  flex: 0 0 auto;
  padding: 8px 12px;
  color: #075e45;
  background: #dcfff3;
  border: 1px solid #a6f4d0;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 900;
}

.status-pill.muted {
  color: #475467;
  background: #f2f4f7;
  border-color: #e4e7ec;
}

.steps {
  display: grid;
  gap: 22px;
}

.generated-steps {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.generated-card {
  overflow: hidden;
  background: #ffffff;
  border: 1px solid #dbe7f6;
  border-radius: 16px;
  box-shadow: 0 14px 34px rgba(16, 24, 40, 0.08);
}

.generated-card img {
  width: 100%;
  height: auto;
}

.coin-page-main {
  padding-top: 20px;
}

.coin-page-title {
  display: grid;
  justify-items: center;
  gap: 8px;
  margin: 4px 0 20px;
  text-align: center;
}

.coin-page-title h1 {
  color: #000000;
  font-size: 28px;
  line-height: 1.2;
}

.coin-page-title p {
  max-width: 360px;
  color: #344054;
  font-size: 16px;
  line-height: 1.55;
  font-weight: 800;
}

.coin-flow {
  padding: 18px 18px 26px;
  overflow: hidden;
}

.coin-page-card {
  margin: 0 auto 56px;
}

.coin-tabs {
  position: sticky;
  top: 68px;
  z-index: 9;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  padding: 8px 0 12px;
  margin: 0;
  background: rgba(243, 246, 251, 0.94);
  backdrop-filter: blur(10px);
}

.coin-tab {
  min-height: 44px;
  color: #344054;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 10px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 900;
}

.coin-tab.active {
  color: #ffffff;
  background: var(--primary);
  border-color: var(--primary);
  box-shadow: none;
}

.coin-hero-img {
  display: block;
  width: min(360px, 86%);
  height: auto;
  margin: 8px auto 22px;
  border-radius: 18px;
}

.coin-content {
  padding: 0 20px;
}

.coin-content h2 {
  margin-bottom: 10px;
  color: #344054;
  font-size: 18px;
  line-height: 1.35;
}

.coin-content h2 span {
  color: #667085;
  font-size: 14px;
  font-weight: 700;
}

.coin-content p {
  color: #333333;
  font-size: 14px;
  line-height: 1.7;
}

.step-card {
  display: grid;
  grid-template-columns: minmax(230px, 0.85fr) minmax(260px, 1fr);
  gap: 26px;
  align-items: start;
  padding: 22px;
  background: var(--surface);
  border: 1px solid #e6edf7;
  border-radius: 12px;
}

.step-copy {
  position: sticky;
  top: 142px;
}

.step-index {
  display: inline-grid;
  min-width: 56px;
  height: 34px;
  place-items: center;
  color: #ffffff;
  background: var(--primary);
  border-radius: 999px;
  font-size: 15px;
  font-weight: 900;
}

.step-copy h3 {
  margin-top: 14px;
  font-size: 25px;
  line-height: 1.25;
}

.step-copy p {
  margin-top: 8px;
  color: var(--muted);
}

.phone-shot {
  position: relative;
  width: min(100%, 360px);
  margin: 0 auto;
  overflow: hidden;
  background: var(--surface-soft);
  border: 1px solid #dbe7f6;
  border-radius: 14px;
}

.phone-shot img {
  width: 100%;
  height: auto;
}

.spot,
.mask {
  position: absolute;
  pointer-events: none;
}

.spot {
  border: 3px solid var(--red);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.78);
}

.spot.oval,
.spot.circle {
  border-radius: 999px;
}

.spot.rect {
  border-radius: 12px;
}

.mask {
  display: grid;
  place-items: center;
  color: #101828;
  background: #ffffff;
  border: 1px solid #eef2f7;
  border-radius: 8px;
  font-size: 18px;
  font-weight: 900;
}

.mask.small {
  font-size: 14px;
}

.empty-state {
  display: grid;
  gap: 8px;
  min-height: 240px;
  align-content: center;
  justify-items: center;
  padding: 30px;
  color: var(--muted);
  text-align: center;
  background: var(--surface-soft);
  border: 1px dashed #b8c7de;
  border-radius: 12px;
}

.empty-state h3 {
  color: var(--text);
  font-size: 24px;
}

.site-footer {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 14px;
  overflow: hidden;
  margin: 0 auto;
  padding: 34px 20px 20px;
  color: #ffffff;
  background: linear-gradient(116deg, #0877ee 0%, #075adf 48%, #0951d5 100%);
  border-top: 2px solid #0b63e6;
}

.site-footer::before {
  position: absolute;
  inset: 0;
  z-index: 0;
  content: "";
  background-image: radial-gradient(circle, rgba(0, 57, 160, 0.38) 0 5.8px, transparent 6.2px);
  background-position: 0 1px;
  background-size: 16px 16px;
  opacity: 0.62;
  filter: blur(0.4px);
}

.site-footer::after {
  position: absolute;
  inset: 0;
  z-index: 0;
  content: "";
  background: linear-gradient(90deg, rgba(7, 82, 216, 0) 0%, rgba(7, 82, 216, 0.35) 56%, rgba(7, 82, 216, 0.9) 100%);
}

.footer-social {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 18px;
}

.footer-social a {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  color: #082f6f;
  background: #ffffff;
  border-radius: 50%;
  font-size: 18px;
  font-weight: 900;
  line-height: 1;
}

.footer-social svg {
  width: 19px;
  height: 19px;
  fill: currentColor;
}

.footer-social img {
  width: 22px;
  height: 22px;
  display: block;
}

.footer-links {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 24px;
  font-size: 14px;
  font-weight: 800;
}

.site-footer p {
  position: relative;
  z-index: 1;
  color: rgba(255, 255, 255, 0.92);
  font-size: 13px;
}

body.customer-open {
  overflow: hidden;
}

.customer-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  align-items: end;
  justify-items: center;
}

.customer-modal[hidden] {
  display: none;
}

.customer-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.62);
}

.customer-sheet {
  position: relative;
  z-index: 1;
  width: min(100%, 420px);
  height: min(90dvh, 760px);
  overflow: hidden;
  background: #ffffff;
  border-radius: 16px 16px 0 0;
  box-shadow: 0 -18px 44px rgba(15, 23, 42, 0.22);
}

.customer-iframe-close {
  position: absolute;
  top: 0;
  right: 0;
  z-index: 3;
  width: 88px;
  height: 82px;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.customer-sheet iframe {
  width: 100%;
  height: 100%;
  border: 0;
  background: #ffffff;
}

@media (max-width: 820px) {
  .site-header {
    padding: 12px 16px;
  }

  .tabbar {
    top: 68px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    overflow: visible;
  }

  .tab {
    min-width: 0;
    font-size: 15px;
  }

  .flow {
    padding: 18px;
  }

  .flow-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .step-card {
    grid-template-columns: 1fr;
  }

  .generated-steps {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .step-copy {
    position: static;
  }

  .phone-shot {
    width: min(100%, 390px);
  }

  .site-footer {
    padding-top: 32px;
  }
}

@media (max-width: 520px) {
  main {
    width: min(100% - 20px, 1120px);
  }

  h1 {
    font-size: 36px;
  }

  .flow h2 {
    font-size: 24px;
  }

  .step-card {
    padding: 14px;
  }
}
