:root {
  color-scheme: light;
  --bg: #f8f9fc;
  --surface: #ffffff;
  --text: #111827;
  --muted: #687083;
  --border: #e5e7ef;
  --primary: #4454f6;
  --primary-dark: #3438d8;
  --primary-soft: #eef0ff;
  --mint: #10b981;
  --amber: #facc15;
  --coral: #f97373;
  --cyan: #38bdf8;
  --shadow: 0 24px 70px rgba(17, 24, 39, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 18% 12%, rgba(250, 204, 21, 0.18), transparent 26rem),
    radial-gradient(circle at 86% 8%, rgba(56, 189, 248, 0.2), transparent 30rem),
    var(--bg);
  color: var(--text);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    "PingFang SC", "Microsoft YaHei", sans-serif;
  line-height: 1.5;
}

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

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

.site-header {
  align-items: center;
  backdrop-filter: blur(18px);
  background: rgba(248, 249, 252, 0.78);
  border-bottom: 1px solid rgba(229, 231, 239, 0.72);
  display: flex;
  height: 72px;
  justify-content: space-between;
  left: 0;
  padding: 0 clamp(20px, 5vw, 64px);
  position: sticky;
  right: 0;
  top: 0;
  z-index: 10;
}

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

.brand img {
  border-radius: 12px;
  height: 38px;
  width: 38px;
}

nav {
  align-items: center;
  display: flex;
  gap: 24px;
}

nav a {
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}

main {
  overflow: hidden;
}

.hero {
  align-items: center;
  display: grid;
  gap: clamp(32px, 6vw, 96px);
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.82fr);
  min-height: calc(100vh - 72px);
  padding: clamp(44px, 8vw, 96px) clamp(20px, 6vw, 88px) 56px;
}

.hero-copy {
  max-width: 690px;
}

.eyebrow {
  color: var(--primary);
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0;
  margin: 0 0 12px;
}

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

h1 {
  font-size: clamp(56px, 10vw, 112px);
  letter-spacing: 0;
  line-height: 0.95;
  margin-bottom: 26px;
}

h2 {
  font-size: clamp(32px, 5vw, 56px);
  letter-spacing: 0;
  line-height: 1.08;
  margin-bottom: 14px;
}

h3 {
  font-size: 20px;
  letter-spacing: 0;
  margin-bottom: 8px;
}

.lead {
  color: var(--muted);
  font-size: clamp(18px, 2.1vw, 23px);
  font-weight: 650;
  line-height: 1.75;
  margin-bottom: 32px;
  max-width: 640px;
}

.actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 22px;
}

.primary-button,
.secondary-button {
  align-items: center;
  border-radius: 14px;
  display: inline-flex;
  font-size: 16px;
  font-weight: 900;
  justify-content: center;
  min-height: 52px;
  padding: 0 22px;
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    background 160ms ease;
}

.primary-button {
  background: linear-gradient(135deg, var(--primary), #7c3aed);
  box-shadow: 0 18px 36px rgba(68, 84, 246, 0.26);
  color: #ffffff;
}

.secondary-button {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
}

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

.meta-row {
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  font-size: 14px;
  font-weight: 800;
  gap: 10px;
}

.meta-row span {
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 6px 12px;
}

.app-preview {
  display: flex;
  justify-content: center;
}

.phone {
  background: var(--bg);
  border: 10px solid #101827;
  border-radius: 44px;
  box-shadow: var(--shadow);
  max-width: 390px;
  min-height: 650px;
  overflow: hidden;
  padding: 24px 18px 28px;
  position: relative;
  width: min(100%, 390px);
}

.phone::before {
  background: #101827;
  border-radius: 0 0 16px 16px;
  content: "";
  height: 22px;
  left: 50%;
  position: absolute;
  top: 0;
  transform: translateX(-50%);
  width: 128px;
}

.phone-header {
  align-items: center;
  display: flex;
  font-size: 28px;
  font-weight: 950;
  justify-content: space-between;
  margin: 26px 2px 24px;
}

.status-dot {
  background: var(--amber);
  border-radius: 50%;
  box-shadow: 0 0 0 8px rgba(250, 204, 21, 0.2);
  height: 18px;
  width: 18px;
}

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

.quick-card {
  background: var(--surface);
  border: 1px solid rgba(229, 231, 239, 0.8);
  border-radius: 20px;
  box-shadow: 0 14px 30px rgba(17, 24, 39, 0.08);
  min-height: 128px;
  padding: 16px;
}

.quick-card span,
.feature-icon {
  align-items: center;
  border-radius: 16px;
  color: #ffffff;
  display: inline-flex;
  font-size: 24px;
  font-weight: 950;
  height: 46px;
  justify-content: center;
  margin-bottom: 14px;
  width: 46px;
}

.number span,
.feature-grid article:nth-child(1) .feature-icon {
  background: linear-gradient(135deg, var(--primary), #7c3aed);
}

.option span,
.feature-grid article:nth-child(2) .feature-icon {
  background: linear-gradient(135deg, var(--mint), #14b8a6);
}

.fate span,
.feature-grid article:nth-child(3) .feature-icon {
  background: linear-gradient(135deg, var(--coral), #fb923c);
}

.order span,
.feature-grid article:nth-child(4) .feature-icon {
  background: linear-gradient(135deg, #6366f1, var(--cyan));
}

.quick-card strong,
.quick-card small {
  display: block;
}

.quick-card strong {
  font-size: 17px;
  font-weight: 900;
  margin-bottom: 4px;
}

.quick-card small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
}

.luck-panel {
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 22px;
  display: flex;
  justify-content: space-between;
  margin-top: 18px;
  padding: 18px;
}

.luck-panel small,
.qr-card span {
  color: var(--muted);
  display: block;
  font-size: 13px;
  font-weight: 800;
  margin-bottom: 6px;
}

.luck-panel strong {
  color: var(--primary-dark);
  display: block;
  font-size: 24px;
  font-weight: 950;
}

.color-chip {
  background: var(--mint);
  border-radius: 999px;
  box-shadow: 0 0 0 9px rgba(16, 185, 129, 0.15);
  height: 34px;
  width: 34px;
}

.features,
.download {
  padding: 72px clamp(20px, 6vw, 88px);
}

.section-heading {
  margin: 0 auto 28px;
  max-width: 760px;
  text-align: center;
}

.feature-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.feature-grid article {
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 24px;
}

.feature-grid p,
.download p {
  color: var(--muted);
  font-size: 16px;
  font-weight: 650;
  line-height: 1.75;
  margin-bottom: 0;
}

.download {
  align-items: center;
  background: #ffffff;
  border-top: 1px solid var(--border);
  display: grid;
  gap: 28px;
  grid-template-columns: minmax(0, 1fr) auto;
}

.download-copy {
  max-width: 680px;
}

.download-copy p {
  margin-bottom: 24px;
}

.download-options {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: 560px;
}

.download-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  min-height: 150px;
  padding: 20px;
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease,
    transform 160ms ease;
}

.download-card:hover {
  border-color: rgba(68, 84, 246, 0.38);
  box-shadow: 0 18px 42px rgba(17, 24, 39, 0.1);
  transform: translateY(-2px);
}

.download-icon {
  align-items: center;
  border-radius: 16px;
  color: #ffffff;
  display: inline-flex;
  font-size: 24px;
  font-weight: 950;
  height: 48px;
  justify-content: center;
  margin-bottom: 18px;
  width: 48px;
}

.android-card .download-icon {
  background: linear-gradient(135deg, var(--mint), #14b8a6);
}

.download-card strong {
  font-size: 18px;
  font-weight: 950;
  margin-bottom: 4px;
}

.download-card small {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.qr-card {
  align-items: center;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 22px;
  display: flex;
  flex-direction: column;
  padding: 18px;
  text-align: center;
  width: 220px;
}

.qr-card img {
  background: #ffffff;
  border-radius: 14px;
  margin-bottom: 14px;
  padding: 8px;
}

.qr-card strong {
  font-size: 16px;
  font-weight: 900;
}

footer {
  align-items: center;
  background: #ffffff;
  border-top: 1px solid var(--border);
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  font-size: 14px;
  font-weight: 800;
  gap: 10px;
  justify-content: space-between;
  padding: 24px clamp(20px, 6vw, 88px);
}

@media (max-width: 980px) {
  .hero,
  .download {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 42px;
  }

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

  .app-preview {
    justify-content: flex-start;
  }

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

@media (max-width: 640px) {
  .site-header {
    height: 64px;
    padding: 0 16px;
  }

  nav {
    gap: 14px;
  }

  .brand span {
    font-size: 16px;
  }

  .hero {
    min-height: auto;
    padding: 34px 16px 46px;
  }

  h1 {
    font-size: 54px;
  }

  .lead {
    font-size: 17px;
  }

  .primary-button,
  .secondary-button {
    width: 100%;
  }

  .phone {
    border-radius: 34px;
    min-height: auto;
    width: 100%;
  }

  .quick-grid,
  .feature-grid,
  .download-options {
    grid-template-columns: 1fr;
  }

  .quick-card {
    min-height: 112px;
  }

  .features,
  .download {
    padding: 52px 16px;
  }

  .section-heading {
    text-align: left;
  }

  .qr-card {
    width: 100%;
  }
}
