:root {
  --ink: #201d28;
  --muted: #6f6878;
  --surface: #fbfaff;
  --white: #ffffff;
  --soft: #f1edf8;
  --green: #8ee23e;
  --purple: #7541e6;
  --dark: #23212b;
  --border: rgba(255, 255, 255, 0.9);
  --shadow: 0 18px 46px rgba(57, 44, 82, 0.11);
  font-family: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  color: var(--ink);
  background: var(--surface);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 24px;
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  background: var(--surface);
}

body.modal-open {
  overflow: hidden;
}

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

button {
  font: inherit;
}

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

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

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

.page-shell {
  width: min(1248px, calc(100% - 48px));
  margin: 0 auto;
}

.site-header {
  padding-top: 40px;
}

.topbar {
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  flex: 0 0 auto;
}

.brand-logo {
  width: 58px;
  height: 58px;
}

.brand-copy {
  display: grid;
  gap: 2px;
}

.brand-copy strong {
  font-size: 26px;
  line-height: 1.25;
  font-weight: 900;
}

.brand-copy small {
  font-size: 12px;
  line-height: 1.5;
  font-weight: 900;
}

.top-links {
  display: flex;
  align-items: center;
  gap: 12px;
}

.top-links a {
  min-width: 106px;
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 16px;
  border-radius: 19px;
  color: #554d63;
  background: rgba(255, 255, 255, 0.74);
  font-size: 14px;
  font-weight: 700;
  transition: color 160ms ease, background 160ms ease, transform 160ms ease;
}

.top-links a:hover {
  color: var(--ink);
  background: var(--white);
  transform: translateY(-1px);
}

.top-links a:focus-visible,
.button:focus-visible,
.dialog-close:focus-visible {
  outline: 3px solid rgba(117, 65, 230, 0.34);
  outline-offset: 3px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 690px) 470px;
  justify-content: space-between;
  align-items: center;
  gap: 48px;
  min-height: 560px;
  padding-top: 36px;
  padding-bottom: 46px;
}

.hero-content {
  min-width: 0;
}

.eyebrow {
  width: max-content;
  max-width: 100%;
  padding: 9px 18px;
  border-radius: 19px;
  color: #3d5f12;
  background: rgba(218, 255, 78, 0.52);
  font-size: 14px;
  line-height: 20px;
  font-weight: 700;
}

.hero h1 {
  margin-top: 22px;
  font-size: 72px;
  line-height: 1.22;
  font-weight: 900;
  letter-spacing: 0;
}

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

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

.button {
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 24px;
  border: 0;
  border-radius: 16px;
  cursor: pointer;
  color: var(--ink);
  background: var(--soft);
  box-shadow: 0 12px 22px rgba(62, 47, 86, 0.08);
  font-size: 16px;
  line-height: 24px;
  font-weight: 700;
  text-align: center;
  transition: transform 160ms ease, box-shadow 160ms ease, filter 160ms ease;
}

.button:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 28px rgba(62, 47, 86, 0.14);
}

.button:active {
  transform: translateY(0);
}

.button-primary {
  background: var(--green);
}

.button-purple {
  color: var(--white);
  background: var(--purple);
}

.button-secondary {
  background: var(--soft);
}

.button-wide {
  width: 100%;
}

.button-compact {
  min-width: 56px;
  padding-inline: 14px;
}

.resource-board {
  width: 470px;
  min-height: 420px;
  display: grid;
  align-content: center;
  gap: 28px;
  padding: 26px;
  border: 1px solid rgba(255, 255, 255, 0.82);
  border-radius: 34px;
  background: rgba(255, 255, 255, 0.74);
  box-shadow: 0 24px 70px rgba(61, 46, 86, 0.14);
}

.mini-resource {
  min-height: 90px;
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  padding: 17px;
  border: 1px solid rgba(255, 255, 255, 0.95);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 14px 30px rgba(38, 28, 56, 0.08);
}

.platform-icon,
.resource-icon {
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  font-weight: 900;
}

.platform-icon {
  width: 54px;
  height: 54px;
  border-radius: 16px;
  font-size: 16px;
}

.platform-android {
  color: var(--ink);
  background: var(--green);
}

.platform-ios {
  color: var(--white);
  background: var(--dark);
}

.platform-h5 {
  color: var(--white);
  background: var(--purple);
}

.mini-copy {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.mini-copy strong {
  font-size: 17px;
  line-height: 24px;
  font-weight: 900;
}

.mini-copy small {
  overflow: hidden;
  color: var(--muted);
  font-size: 13px;
  line-height: 20px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.status-pill {
  padding: 9px 13px;
  border-radius: 19px;
  color: #514466;
  background: var(--soft);
  font-size: 14px;
  line-height: 20px;
  font-weight: 700;
  white-space: nowrap;
}

.content-section {
  padding-top: 36px;
}

.section-head {
  min-height: 76px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 32px;
}

.section-head h2 {
  font-size: 34px;
  line-height: 44px;
  font-weight: 900;
}

.section-head p {
  max-width: 520px;
  padding-top: 4px;
  color: var(--muted);
  font-size: 16px;
  line-height: 27px;
}

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

.resource-card {
  min-height: 350px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 20px;
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: var(--shadow);
}

.resource-icon {
  width: 62px;
  height: 62px;
  margin-bottom: 20px;
  border-radius: 18px;
  font-size: 18px;
}

.resource-card h3 {
  font-size: 26px;
  line-height: 36px;
  font-weight: 900;
}

.resource-card p {
  margin-top: 8px;
  color: var(--muted);
  font-size: 15px;
  line-height: 25px;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.tag-row span {
  min-width: 70px;
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 12px;
  border-radius: 15px;
  color: #514466;
  background: var(--soft);
  font-size: 12px;
  line-height: 18px;
  font-weight: 700;
}

.resource-card-dark {
  color: var(--white);
  border-color: rgba(54, 49, 63, 0.9);
  background: var(--dark);
}

.resource-card-dark p {
  color: #d8d2e4;
}

.resource-card-dark .tag-row span {
  color: #eee9f8;
  background: #342e42;
}

.preview-grid {
  display: grid;
  grid-template-columns: 350px 350px minmax(0, 1fr);
  gap: 29px;
}

.preview-card {
  min-width: 0;
  min-height: 460px;
  padding: 26px 28px 0;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 18px 46px rgba(57, 44, 82, 0.1);
}

.preview-card h3 {
  font-size: 24px;
  line-height: 34px;
  font-weight: 900;
}

.preview-card > p {
  min-height: 46px;
  margin-top: 8px;
  color: var(--muted);
  font-size: 14px;
  line-height: 23px;
}

.phone-preview {
  width: 210px;
  height: 338px;
  margin: 14px auto 0;
  padding: 13px;
  border-radius: 36px;
  background: var(--dark);
  box-shadow: 0 20px 48px rgba(34, 26, 47, 0.18);
}

.phone-preview-ios {
  background: #191820;
}

.phone-screen {
  height: 312px;
  overflow: hidden;
  border-radius: 25px;
  background: var(--surface);
}

.phone-heading {
  min-height: 92px;
  padding: 16px 18px;
  color: var(--ink);
  font-size: 20px;
  line-height: 29px;
  font-weight: 900;
}

.phone-screen-android .phone-heading {
  background: #f3ffe1;
}

.phone-screen-ios .phone-heading {
  background: #f7f4ff;
}

.phone-list {
  display: grid;
  gap: 13px;
  padding: 24px 18px;
}

.phone-list span {
  height: 32px;
  border-radius: 12px;
  background: var(--white);
  box-shadow: 0 8px 18px rgba(65, 49, 91, 0.08);
}

.h5-preview-image {
  width: 100%;
  max-width: 434px;
  height: 236px;
  margin: 12px auto 0;
  object-fit: cover;
  object-position: center;
}

.notice-grid {
  display: grid;
  grid-template-columns: 600px minmax(0, 1fr);
  gap: 60px;
  padding-top: 36px;
  padding-bottom: 68px;
}

.notice-card,
.prompt-preview {
  min-height: 150px;
  border-radius: 24px;
}

.notice-card {
  padding: 22px 26px;
  border: 1px solid rgba(255, 205, 101, 0.52);
  background: rgba(255, 246, 222, 0.92);
}

.notice-card h2,
.prompt-preview h2 {
  font-size: 23px;
  line-height: 34px;
  font-weight: 900;
}

.notice-card p,
.prompt-preview p {
  margin-top: 8px;
  color: #695f4f;
  font-size: 15px;
  line-height: 25px;
}

.notice-card strong {
  color: var(--ink);
  font-weight: 900;
}

.prompt-preview {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 22px 20px 22px 28px;
  border: 1px solid #eee9f8;
  background: var(--white);
  box-shadow: 0 28px 70px rgba(22, 18, 31, 0.16);
}

.prompt-preview p {
  color: #5e566c;
  font-size: 14px;
  line-height: 23px;
}

.prompt-actions {
  display: flex;
  gap: 10px;
}

.site-footer {
  min-height: 96px;
  display: grid;
  place-items: center;
  padding: 24px;
  color: #777080;
  background: #efeff1;
  font-size: 13px;
}

.modal[hidden] {
  display: none;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 24px;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(24, 21, 31, 0.54);
  backdrop-filter: blur(8px);
}

.dialog {
  position: relative;
  z-index: 1;
  width: min(520px, 100%);
  padding: 30px;
  border: 1px solid #eee9f8;
  border-radius: 26px;
  background: var(--white);
  box-shadow: 0 28px 70px rgba(22, 18, 31, 0.28);
}

.dialog-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  color: #554d63;
  background: var(--soft);
  font-size: 28px;
  line-height: 1;
}

.dialog-kicker {
  color: var(--purple);
  font-size: 13px;
  line-height: 20px;
  font-weight: 900;
}

.dialog h2 {
  margin-top: 8px;
  padding-right: 44px;
  font-size: 26px;
  line-height: 36px;
  font-weight: 900;
}

.dialog > p:not(.dialog-kicker) {
  margin-top: 14px;
  color: #5e566c;
  font-size: 15px;
  line-height: 26px;
}

.dialog strong {
  display: block;
  margin-block: 6px;
  color: var(--ink);
  font-weight: 900;
}

.dialog-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 24px;
}

@media (max-width: 1180px) {
  .hero {
    grid-template-columns: minmax(0, 1fr) 420px;
  }

  .resource-board {
    width: 420px;
  }

  .mini-resource {
    grid-template-columns: 54px minmax(0, 1fr);
    gap: 14px;
  }

  .status-pill {
    grid-column: 2;
    width: max-content;
    margin-top: -10px;
  }

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

  .preview-card-web {
    grid-column: 1 / -1;
  }

  .notice-grid {
    grid-template-columns: 1fr 1fr;
    gap: 28px;
  }

  .prompt-preview {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 920px) {
  .site-header {
    padding-top: 24px;
  }

  .hero {
    grid-template-columns: 1fr;
    padding-top: 54px;
  }

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

  .hero h1 {
    font-size: 54px;
  }

  .resource-board {
    width: 100%;
    min-height: auto;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
  }

  .mini-resource {
    grid-template-columns: 54px minmax(0, 1fr);
  }

  .status-pill {
    grid-column: 1 / -1;
    margin-top: 0;
  }

  .resource-grid {
    grid-template-columns: 1fr;
  }

  .resource-card {
    min-height: 320px;
  }

  .notice-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .page-shell {
    width: min(100% - 32px, 1248px);
  }

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

  .top-links {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .top-links a {
    min-width: max-content;
  }

  .hero {
    padding-top: 42px;
  }

  .hero h1 {
    font-size: 42px;
    line-height: 1.26;
  }

  .hero-copy {
    font-size: 17px;
    line-height: 1.75;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .resource-board {
    grid-template-columns: 1fr;
    padding: 20px;
    border-radius: 24px;
  }

  .mini-resource {
    grid-template-columns: 54px minmax(0, 1fr) auto;
  }

  .status-pill {
    grid-column: auto;
  }

  .section-head {
    min-height: auto;
    flex-direction: column;
    margin-bottom: 20px;
  }

  .section-head h2 {
    font-size: 30px;
  }

  .preview-grid {
    grid-template-columns: 1fr;
  }

  .preview-card-web {
    grid-column: auto;
  }

  .notice-grid {
    padding-bottom: 44px;
  }
}

@media (max-width: 480px) {
  .brand-logo {
    width: 50px;
    height: 50px;
  }

  .brand-copy strong {
    font-size: 23px;
  }

  .hero h1 {
    font-size: 36px;
  }

  .hero-copy {
    font-size: 16px;
  }

  .mini-resource {
    grid-template-columns: 48px minmax(0, 1fr);
  }

  .platform-icon {
    width: 48px;
    height: 48px;
  }

  .status-pill {
    grid-column: 2;
    width: max-content;
  }

  .resource-card {
    padding: 22px;
  }

  .resource-card h3 {
    font-size: 23px;
  }

  .preview-card {
    min-height: 440px;
    padding-inline: 22px;
  }

  .preview-card h3 {
    font-size: 22px;
  }

  .phone-preview {
    transform: scale(0.94);
    transform-origin: top center;
  }

  .prompt-actions,
  .dialog-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .dialog {
    padding: 24px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
