:root {
  --primary: #51a5e5;
  --primary-deep: #3b8fd4;
  --primary-soft: #e8f4fc;
  --success: #2dcb73;
  --text: #1a2b3c;
  --text-muted: #5a6f82;
  --bg: #f4f9fc;
  --surface: #ffffff;
  --line: rgba(81, 165, 229, 0.18);
  --shadow: 0 18px 50px rgba(59, 143, 212, 0.12);
  --radius: 20px;
  --header-h: 68px;
  --font-sans: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-display: "Noto Serif SC", "Songti SC", serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

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

button {
  font: inherit;
}

.container {
  width: min(1120px, calc(100% - 40px));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--primary);
  color: #fff;
  padding: 10px 16px;
  z-index: 1000;
}

.skip-link:focus {
  left: 12px;
  top: 12px;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  backdrop-filter: blur(16px);
  background: rgba(244, 249, 252, 0.82);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s var(--ease), background 0.25s var(--ease);
}

.site-header.scrolled {
  border-bottom-color: var(--line);
  background: rgba(255, 255, 255, 0.9);
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

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

.brand img {
  border-radius: 10px;
}

.brand-text {
  font-family: var(--font-display);
  font-size: 1.05rem;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

@media (max-width: 480px) {
  .brand-text {
    font-size: 0.95rem;
  }
}

.brand-accent {
  color: var(--primary-deep);
}

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

.nav a {
  font-size: 0.95rem;
  color: var(--text-muted);
  transition: color 0.2s ease;
  cursor: pointer;
}

.nav a:hover,
.nav a:focus-visible {
  color: var(--primary-deep);
}

.nav-cta {
  padding: 10px 18px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--primary), var(--primary-deep));
  color: #fff !important;
  box-shadow: 0 8px 20px rgba(81, 165, 229, 0.35);
}

.nav-cta:hover {
  filter: brightness(1.05);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  cursor: pointer;
  padding: 10px;
}

.nav-toggle span {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.25s var(--ease), opacity 0.2s;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Hero */
.hero {
  position: relative;
  min-height: calc(100svh - var(--header-h));
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 48px 0 72px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 70% 20%, rgba(81, 165, 229, 0.28), transparent 60%),
    radial-gradient(ellipse 50% 40% at 10% 80%, rgba(45, 203, 115, 0.12), transparent 55%),
    linear-gradient(180deg, #e3f2fb 0%, var(--bg) 70%, #eef6fc 100%);
  z-index: 0;
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%2351a5e5' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.9;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
}

.brand-mark {
  margin: 0 0 14px;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--primary-deep);
}

.hero h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  line-height: 1.2;
  letter-spacing: 0.02em;
}

.hero-lead {
  margin: 18px 0 0;
  font-size: 1.15rem;
  color: var(--text-muted);
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 24px;
  border-radius: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s var(--ease), box-shadow 0.2s, filter 0.2s;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:focus-visible {
  outline: 2px solid var(--primary-deep);
  outline-offset: 3px;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-deep));
  color: #fff;
  box-shadow: 0 12px 28px rgba(81, 165, 229, 0.35);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--line);
  color: var(--text);
}

/* Phone mock */
.hero-visual {
  display: flex;
  justify-content: center;
}

.phone {
  width: min(300px, 78vw);
  border-radius: 36px;
  padding: 12px;
  background: linear-gradient(160deg, #2a3f52, #1a2b3c);
  box-shadow: var(--shadow), 0 0 0 1px rgba(255, 255, 255, 0.08);
  animation: float 6s ease-in-out infinite;
}

.phone-notch {
  width: 36%;
  height: 8px;
  margin: 4px auto 10px;
  border-radius: 999px;
  background: #0f1a24;
}

.phone-screen {
  border-radius: 26px;
  padding: 18px 16px 22px;
  background: linear-gradient(180deg, #eef7fd, #f8fbfd);
  min-height: 460px;
}

.mock-top {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  margin-bottom: 18px;
}

.mock-top img {
  border-radius: 8px;
}

.mock-score {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  align-items: center;
  margin-bottom: 16px;
}

.ring {
  aspect-ratio: 1;
  border-radius: 50%;
  display: grid;
  place-content: center;
  text-align: center;
  background:
    radial-gradient(circle at center, #fff 58%, transparent 59%),
    conic-gradient(var(--primary) 0 86%, #d7e8f5 86% 100%);
}

.ring strong {
  font-size: 1.8rem;
  line-height: 1;
  color: var(--primary-deep);
}

.ring span {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.mock-score ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
  font-size: 0.85rem;
}

.dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-right: 6px;
}

.dot.sleep { background: #7aa8ff; }
.dot.food { background: var(--success); }
.dot.sport { background: #ff8c42; }

.mock-card {
  padding: 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--line);
  box-shadow: 0 10px 24px rgba(59, 143, 212, 0.08);
}

.mock-card span {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--primary-deep);
  margin-bottom: 6px;
}

.mock-card p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* Sections */
.section {
  padding: 88px 0;
}

.section-head {
  max-width: 640px;
  margin: 0 auto 48px;
  text-align: center;
}

.section-head h2,
.showcase-copy h2,
.membership-copy h2,
.download-inner h2 {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3vw, 2.2rem);
  line-height: 1.3;
}

.section-head p,
.showcase-copy > p,
.membership-copy > p,
.download-inner > p {
  margin: 0;
  color: var(--text-muted);
  font-size: 1.05rem;
}

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

.feature-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 24px;
  box-shadow: 0 10px 30px rgba(26, 43, 60, 0.04);
  transition: transform 0.25s var(--ease), box-shadow 0.25s;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  margin-bottom: 16px;
  color: var(--primary-deep);
  background: var(--primary-soft);
}

.feature-icon svg {
  width: 24px;
  height: 24px;
}

.feature-card h3 {
  margin: 0 0 8px;
  font-size: 1.1rem;
}

.feature-card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* Showcase */
.showcase {
  background: linear-gradient(180deg, transparent, rgba(81, 165, 229, 0.06), transparent);
}

.showcase-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.showcase-media img {
  width: 100%;
  border-radius: 28px;
  object-fit: cover;
  aspect-ratio: 4 / 3;
  box-shadow: var(--shadow);
}

.check-list {
  list-style: none;
  margin: 24px 0 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.check-list li {
  position: relative;
  padding-left: 28px;
  color: var(--text);
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45em;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 45%, #fff 0 35%, transparent 36%),
    var(--success);
}

.check-list.light li {
  color: rgba(255, 255, 255, 0.92);
}

.check-list.light li::before {
  background:
    radial-gradient(circle at 50% 45%, #1a2b3c 0 35%, transparent 36%),
    #ffd54f;
}

/* Steps */
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  counter-reset: none;
}

.steps li {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 28px 24px;
  border: 1px solid var(--line);
}

.step-num {
  display: block;
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--primary);
  margin-bottom: 12px;
}

.steps h3 {
  margin: 0 0 8px;
  font-size: 1.15rem;
}

.steps p {
  margin: 0;
  color: var(--text-muted);
}

/* Membership */
.membership-panel {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 36px;
  padding: 40px;
  border-radius: 28px;
  background:
    radial-gradient(ellipse at 20% 0%, rgba(255, 213, 79, 0.25), transparent 45%),
    linear-gradient(135deg, #2a4a66, #1f3a52 55%, #2d5a7a);
  color: #fff;
  box-shadow: var(--shadow);
}

.membership-copy h2 {
  color: #fff;
}

.membership-copy > p {
  color: rgba(255, 255, 255, 0.78);
}

.price-cards {
  display: grid;
  gap: 14px;
}

.price-card {
  position: relative;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 18px;
  padding: 22px 20px;
  backdrop-filter: blur(8px);
}

.price-card.featured {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 213, 79, 0.45);
}

.badge {
  position: absolute;
  top: 14px;
  right: 14px;
  margin: 0;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
  background: linear-gradient(135deg, #ffd54f, #ffa726);
  color: #3a2a00;
}

.price-card h3 {
  margin: 0 0 8px;
  font-size: 1rem;
  font-weight: 600;
}

.price {
  margin: 0;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.85);
}

.price span {
  font-family: var(--font-display);
  font-size: 2rem;
  color: #fff;
  margin-right: 4px;
}

.price-note {
  margin: 8px 0 0;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.55);
}

/* Download */
.download {
  padding-bottom: 100px;
}

.download-inner {
  text-align: center;
  max-width: 640px;
  margin: 0 auto;
}

.download-icon {
  margin: 0 auto 20px;
  border-radius: 22px;
  box-shadow: var(--shadow);
}

.store-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-top: 28px;
}

.store-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 200px;
  padding: 12px 20px;
  border-radius: 14px;
  background: #1a2b3c;
  color: #fff;
  cursor: pointer;
  transition: transform 0.2s var(--ease), background 0.2s;
}

.store-btn:hover {
  transform: translateY(-2px);
  background: #24384c;
}

.store-btn svg {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
}

.store-btn span {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.15;
  font-weight: 600;
  font-size: 1.05rem;
}

.store-btn small {
  font-size: 0.68rem;
  font-weight: 500;
  opacity: 0.75;
  letter-spacing: 0.04em;
}

.download-hint {
  margin-top: 18px !important;
  font-size: 0.88rem !important;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  background: #fff;
  padding: 48px 0 36px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 28px;
}

.footer-brand p {
  margin: 12px 0 0;
  color: var(--text-muted);
  max-width: 320px;
}

.footer-nav {
  display: grid;
  gap: 10px;
  align-content: start;
}

.footer-nav a {
  color: var(--text-muted);
  cursor: pointer;
  transition: color 0.2s;
}

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

.footer-meta {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.footer-meta p {
  margin: 0 0 6px;
}

/* Legal pages */
.legal-page {
  padding: 48px 0 88px;
}

.legal-page article {
  max-width: 760px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 40px 36px;
  box-shadow: 0 10px 30px rgba(26, 43, 60, 0.04);
}

.legal-page h1 {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: 1.9rem;
}

.legal-page .meta {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 28px;
}

.legal-page h2 {
  margin: 28px 0 10px;
  font-size: 1.15rem;
}

.legal-page p,
.legal-page li {
  color: var(--text-muted);
}

.legal-page ul {
  padding-left: 1.2em;
}

/* Reveal */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

/* Responsive */
@media (max-width: 960px) {
  .hero-grid,
  .showcase-grid,
  .membership-panel,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .feature-grid,
  .steps {
    grid-template-columns: 1fr 1fr;
  }

  .hero {
    min-height: auto;
    padding-top: 28px;
  }

  .hero-visual {
    order: -1;
  }

  .phone {
    animation: none;
  }

  .membership-panel {
    padding: 28px 22px;
  }
}

@media (max-width: 720px) {
  .nav-toggle {
    display: block;
  }

  .nav {
    position: fixed;
    inset: var(--header-h) 16px auto;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 16px;
    box-shadow: var(--shadow);
  }

  .nav.open {
    display: flex;
  }

  .nav a {
    padding: 14px 12px;
    border-radius: 10px;
  }

  .nav a:hover {
    background: var(--primary-soft);
  }

  .nav-cta {
    text-align: center;
    margin-top: 4px;
  }

  .feature-grid,
  .steps {
    grid-template-columns: 1fr;
  }

  .legal-page article {
    padding: 28px 20px;
  }
}

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

  .phone,
  .reveal,
  .btn,
  .feature-card,
  .store-btn {
    animation: none !important;
    transition: none !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
