:root {
  color-scheme: light;
  --bg: #f8faf8;
  --surface: #ffffff;
  --surface-soft: #edf5f2;
  --ink: #0f1917;
  --muted: #4e615b;
  --line: #d2e1db;
  --teal: #0e8576;
  --teal-dark: #0a6358;
  --coral: #ea5b4b;
  --gold: #ce9220;
  --shadow: 0 32px 64px -12px rgba(13, 116, 104, 0.16);
  --max: 1160px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family:
    "Plus Jakarta Sans", Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    "Microsoft YaHei", sans-serif;
  line-height: 1.6;
}

body::selection {
  background: rgba(14, 133, 118, 0.2);
}

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

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  width: min(calc(100% - 32px), var(--max));
  min-height: 72px;
  margin: 0 auto;
  padding: 10px 0;
  color: var(--ink);
}

.site-header::before {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: -1;
  height: 72px;
  content: "";
  background: rgba(247, 250, 247, 0.88);
  border-bottom: 1px solid rgba(213, 228, 223, 0.78);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  font-weight: 760;
  letter-spacing: 0;
}

.brand-mark {
  display: inline-grid;
  width: 34px;
  height: 34px;
  place-items: center;
  color: #ffffff;
  background: var(--teal);
  border-radius: 8px;
  box-shadow: 0 10px 24px rgba(13, 116, 104, 0.22);
}

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

.site-nav a {
  padding: 8px 0;
}

.site-nav a:hover {
  color: var(--teal);
}

.header-actions,
.hero-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}



.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 10px;
  font-weight: 700;
  line-height: 1;
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    border-color 160ms ease,
    background 160ms ease;
}

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

.button.primary {
  color: #ffffff;
  background: var(--teal);
  box-shadow: 0 16px 32px -6px rgba(14, 133, 118, 0.35);
}

.button.primary:hover {
  background: var(--teal-dark);
  box-shadow: 0 20px 40px -8px rgba(14, 133, 118, 0.45);
}

.button.secondary {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.78);
  border-color: var(--line);
}

.button.small {
  min-height: 38px;
  padding: 0 14px;
  font-size: 14px;
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(360px, 0.8fr);
  align-items: center;
  gap: clamp(32px, 6vw, 82px);
  min-height: min(780px, calc(100svh - 72px));
  padding: 128px max(24px, calc((100vw - var(--max)) / 2)) 72px;
  overflow: hidden;
  color: var(--ink);
  background: radial-gradient(circle at 15% 25%, rgba(226, 242, 237, 0.7) 0%, transparent 40%),
              radial-gradient(circle at 85% 75%, rgba(255, 233, 226, 0.6) 0%, transparent 40%),
              linear-gradient(135deg, #f8fbf8 0%, #edf8f4 58%, #fff4f1 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(720px, 100%);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--coral);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: var(--coral);
}

.hero h1 {
  margin: 0;
  font-size: clamp(42px, 6vw, 72px);
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.hero-copy {
  max-width: 650px;
  margin: 24px 0 30px;
  color: var(--muted);
  font-size: clamp(16px, 1.8vw, 20px);
  line-height: 1.6;
}

.hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 0;
  margin: 26px 0 0;
  list-style: none;
}

.hero-points li {
  padding: 8px 10px;
  color: var(--teal-dark);
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 14px;
}

.hero-panel {
  position: relative;
  z-index: 1;
}

.demo-window {
  width: min(100%, 560px);
  margin-left: auto;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(20px);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.demo-window-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  background: rgba(247, 250, 247, 0.8);
  border-bottom: 1px solid var(--line);
}

.demo-dots {
  display: flex;
  gap: 6px;
}
.demo-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #d5e4df;
}
.demo-dots span:nth-child(1) { background: #ff5f56; }
.demo-dots span:nth-child(2) { background: #ffbd2e; }
.demo-dots span:nth-child(3) { background: #27c93f; }

.demo-url {
  font-size: 13px;
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, monospace;
  background: rgba(255,255,255,0.6);
  padding: 4px 12px;
  border-radius: 6px;
}

.demo-replay {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border: none;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  border-radius: 6px;
  transition: background 0.2s, color 0.2s;
}
.demo-replay:hover {
  background: var(--surface-soft);
  color: var(--teal);
}

.demo-window-body {
  position: relative;
  height: 380px;
  background: #fbfdfc;
}

.demo-view {
  position: absolute;
  inset: 0;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity 0.5s ease, transform 0.5s ease;
  display: flex;
  flex-direction: column;
}

.demo-view.is-active {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.demo-view-centered {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.demo-icon-ring {
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--surface-soft);
  color: var(--teal);
  margin-bottom: 16px;
}

.demo-view-centered h3 {
  margin: 0 0 8px;
  font-size: 20px;
  font-weight: 700;
}
.demo-view-centered p {
  margin: 0 0 24px;
  color: var(--muted);
  font-size: 14px;
}

.demo-email-box {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  max-width: 320px;
}

.email-text {
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-family: Consolas, monospace;
  font-size: 14px;
  color: var(--teal);
  transition: border-color 0.3s;
}
.email-text[data-empty="true"] {
  color: var(--muted);
  font-family: inherit;
}

.demo-btn-primary, .demo-btn-copy {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  color: #fff;
  background: var(--teal);
  transition: background 0.2s, transform 0.1s;
}
.demo-btn-primary:active, .demo-btn-copy:active {
  transform: scale(0.97);
}

.demo-view-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.demo-header-title {
  display: flex;
  align-items: center;
  gap: 10px;
}
.demo-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  background: var(--teal);
  color: #fff;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 800;
}
.demo-header-title h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
}

.demo-btn-copy {
  padding: 0 16px;
  min-height: 36px;
  font-size: 13px;
}
.demo-btn-copy.is-copied {
  background: var(--coral);
}

.demo-mock-pages {
  position: relative;
  width: 100%;
  max-width: 340px;
  height: 146px;
  margin: 0 auto;
}

.demo-mock-page {
  position: absolute;
  inset: 0;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.03);
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px) scale(0.98);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.demo-mock-page.is-showing {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.mock-page-header {
  display: flex;
  align-items: center;
  gap: 8px;
}

.mock-icon {
  color: var(--teal);
}
.newsletter-page .mock-icon { color: #6b7280; }
.receipt-page .mock-icon { color: var(--gold); }
.code-page .mock-icon { color: var(--coral); }

.mock-page-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
}

.mock-input-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mock-input {
  min-height: 36px;
  background: var(--surface-soft);
  border: 1px solid transparent;
  border-radius: 6px;
  display: flex;
  align-items: center;
  padding: 0 10px;
  font-size: 13px;
  color: var(--muted);
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  transition: border-color 0.3s;
}
.mock-input.is-filled {
  color: var(--teal);
  font-family: Consolas, monospace;
  border-color: rgba(13, 116, 104, 0.3);
  background: #fff;
}

.mock-btn {
  height: 36px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 600;
  color: #fff;
}

.mock-btn-news { background: #111827; }
.mock-btn-receipt { background: var(--teal); }
.mock-btn-code { background: var(--coral); }

.demo-email-display {
  font-family: Consolas, monospace;
  font-size: 13px;
  color: var(--teal);
  background: var(--surface-soft);
  padding: 4px 10px;
  border-radius: 6px;
}

.demo-inbox-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}

.demo-mail-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.02);
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.4s ease, transform 0.4s ease, border-color 0.3s;
}
.demo-mail-item.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.demo-mail-item.is-visible:hover {
  border-color: rgba(13, 116, 104, 0.3);
}

.mail-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: #fff;
  font-size: 15px;
}
.news-avatar { background: var(--teal); }
.news-avatar::after { content: "N"; }
.receipt-avatar { background: var(--gold); }
.receipt-avatar::after { content: "R"; }
.code-avatar { background: var(--coral); }
.code-avatar::after { content: "V"; }

.mail-content {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.mail-sender {
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.mail-subject {
  font-size: 14px;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.demo-cursor {
  position: absolute;
  top: 0;
  left: 0;
  width: 24px;
  height: 24px;
  z-index: 10;
  opacity: 0;
  pointer-events: none;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
  transform-origin: top left;
}

.signal-band {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  width: min(calc(100% - 32px), var(--max));
  margin: -34px auto 0;
  overflow: hidden;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  position: relative;
  z-index: 2;
}

.signal {
  min-height: 120px;
  padding: 28px;
  background: var(--surface);
}

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

.signal strong {
  margin-bottom: 8px;
  font-size: 23px;
  line-height: 1.2;
}

.signal span {
  color: var(--muted);
}

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

.intro-section {
  display: grid;
  grid-template-columns: minmax(280px, 0.86fr) 1fr;
  gap: clamp(28px, 6vw, 92px);
  align-items: start;
}

.section-heading {
  max-width: 720px;
}

.section-heading.wide {
  max-width: 860px;
}

.section h2,
.cta-section h2 {
  margin: 0;
  font-size: clamp(28px, 4vw, 46px);
  line-height: 1.15;
  letter-spacing: -0.01em;
}

.section-copy {
  margin: 32px 0 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.7;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 40px;
}

.feature-card,
.step,
.scenario-list article,
.faq-list details {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  box-shadow: 0 4px 24px rgba(0,0,0,0.02);
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.feature-card:hover,
.step:hover,
.scenario-list article:hover {
  box-shadow: 0 12px 32px rgba(14, 133, 118, 0.08);
  transform: translateY(-2px);
}

.feature-card {
  min-height: 250px;
  padding: 32px;
}

.feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  margin-bottom: 28px;
  color: var(--teal);
  background: var(--surface-soft);
  border-radius: 14px;
  font-size: 16px;
  font-weight: 800;
}

.feature-card:nth-child(2n) .feature-icon {
  color: var(--coral);
  background: #fff0ed;
}

.feature-card:nth-child(3n) .feature-icon {
  color: var(--gold);
  background: #fff6df;
}

.feature-card h3,
.step h3,
.scenario-list h3 {
  margin: 0 0 12px;
  font-size: 22px;
  line-height: 1.25;
}

.feature-card p,
.step p,
.scenario-list p,
.faq-list p {
  margin: 0;
  color: var(--muted);
}

.register-section {
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  gap: clamp(28px, 6vw, 80px);
}

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

.step {
  display: grid;
  grid-template-columns: 52px 1fr;
  column-gap: 18px;
  padding: 24px;
}

.step span {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  color: #ffffff;
  background: var(--teal);
  border-radius: 12px;
  font-weight: 800;
  box-shadow: 0 8px 16px -4px rgba(14, 133, 118, 0.3);
}

.step h3,
.step p {
  grid-column: 2;
}

.step span {
  grid-row: 1 / span 2;
}

.scenarios-section {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: clamp(28px, 6vw, 80px);
}

.scenario-list {
  display: grid;
  gap: 14px;
}

.scenario-list article {
  padding: 26px;
}

.cta-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  width: min(calc(100% - 32px), var(--max));
  margin: 108px auto 0;
  padding: 48px;
  color: #ffffff;
  background:
    radial-gradient(circle at 100% 0%, rgba(255,255,255,0.1) 0%, transparent 50%),
    linear-gradient(135deg, rgba(14, 133, 118, 0.98), rgba(10, 99, 88, 0.98)),
    var(--teal);
  border-radius: 16px;
  box-shadow: 0 24px 48px -12px rgba(14, 133, 118, 0.4);
}

.cta-section .eyebrow {
  color: #ffd0c8;
}

.cta-section .button.primary {
  color: var(--teal-dark);
  background: #ffffff;
  box-shadow: none;
}

.faq-section {
  padding-bottom: 82px;
}

.faq-list {
  display: grid;
  gap: 12px;
  margin-top: 34px;
}

.faq-list details {
  padding: 22px 24px;
}

.faq-list summary {
  cursor: pointer;
  font-size: 18px;
  font-weight: 760;
}

.faq-list p {
  padding-top: 12px;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  width: min(calc(100% - 32px), var(--max));
  margin: 0 auto;
  padding: 30px 0 42px;
  color: var(--muted);
  border-top: 1px solid var(--line);
  font-size: 14px;
}

.site-footer a {
  color: var(--teal);
  font-weight: 720;
}

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

  .site-nav {
    display: none;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: 720px;
  }

  .signal-band,
  .feature-grid,
  .intro-section,
  .register-section,
  .scenarios-section {
    grid-template-columns: 1fr;
  }

  .section-copy {
    margin-top: 0;
  }
}

@media (max-width: 680px) {
  .site-header {
    width: min(calc(100% - 24px), var(--max));
    gap: 12px;
  }

  .brand span:last-child {
    display: none;
  }

  .language-picker select {
    min-width: 82px;
    font-size: 13px;
  }

  .button.small {
    padding: 0 10px;
  }

  .hero {
    min-height: 690px;
    padding: 112px 16px 48px;
  }

  .hero-actions,
  .header-actions {
    gap: 8px;
  }

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

  .hero-actions .button {
    width: 100%;
  }

  .demo-card {
    padding: 12px;
  }

  .demo-grid,
  .demo-generator {
    grid-template-columns: 1fr;
  }

  .demo-action {
    width: 100%;
  }

  .demo-row-head {
    align-items: flex-start;
  }

  .inbox-list {
    min-height: 0;
  }

  .signal-band {
    margin-top: -20px;
  }

  .signal,
  .feature-card,
  .scenario-list article {
    padding: 22px;
  }

  .section {
    width: min(calc(100% - 24px), var(--max));
    padding-top: 78px;
  }

  .feature-grid {
    margin-top: 30px;
  }

  .step {
    grid-template-columns: 44px 1fr;
    gap: 14px;
    padding: 20px;
  }

  .step span {
    width: 38px;
    height: 38px;
  }

  .cta-section {
    flex-direction: column;
    align-items: stretch;
    width: min(calc(100% - 24px), var(--max));
    margin-top: 82px;
    padding: 28px;
  }

  .site-footer {
    flex-direction: column;
    width: min(calc(100% - 24px), var(--max));
  }
}
