/* Design tokens */
:root {
  --color-primary: #FDDC2E;
  --color-primary-strong: #f5c518;
  --color-primary-dark: #eac417;
  --color-primary-soft: #fff8d6;
  --color-text: #111111;
  --color-text-secondary: #4b5563;
  --color-text-muted: #6b7280;
  --color-bg: #ffffff;
  --color-bg-secondary: #fafafa;
  --color-border: #e5e7eb;
  --radius: 20px;
  --radius-sm: 12px;
  --shadow-sm: 0 10px 30px rgba(17, 17, 17, 0.08);
  --shadow-md: 0 22px 55px rgba(17, 17, 17, 0.13);
  --max-width: 1160px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Noto Sans SC", -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

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

/* Skip link */
.skip-link {
  position: absolute;
  left: 16px;
  top: 14px;
  background: var(--color-text);
  color: #fff;
  padding: 10px 14px;
  border-radius: 999px;
  font-weight: 600;
  z-index: 200;
  transform: translateY(-140%);
  transition: transform 200ms ease;
}
.skip-link:focus {
  transform: translateY(0);
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
}

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--color-border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  min-height: 68px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  letter-spacing: 0.3px;
  text-decoration: none;
}

.logo-img {
  width: 36px;
  height: 36px;
  object-fit: contain;
  border-radius: 11px;
}

.logo-text {
  font-size: 18px;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 999px;
  cursor: pointer;
  transition: background 150ms ease, border-color 150ms ease;
}

.nav-toggle:hover,
.nav-toggle:focus-visible {
  background: #ffffff;
  border-color: var(--color-primary);
  box-shadow: 0 8px 18px rgba(253,220,46,0.18);
}

.nav-toggle-icon {
  width: 22px;
  height: 22px;
  display: block;
}

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

.nav-list {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 6px;
}

.nav-list a {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 10px 14px;
  font-size: 15px;
  font-weight: 500;
  color: var(--color-text-secondary);
  border-radius: 999px;
  transition: color 150ms ease, background 150ms ease;
  text-decoration: none;
}

.nav-list a:hover {
  color: var(--color-text);
  background: rgba(253, 220, 46, 0.12);
}

.nav-list a:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

/* Hero */
.hero {
  position: relative;
  padding: 78px 0 78px;
  background:
    radial-gradient(circle at 10% 12%, rgba(253, 220, 46, 0.28) 0%, transparent 30%),
    radial-gradient(circle at 90% 18%, rgba(245, 197, 24, 0.22) 0%, transparent 28%),
    linear-gradient(180deg, #fff8d6 0%, var(--color-bg) 100%);
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  left: -70px;
  top: -70px;
  width: 260px;
  height: 260px;
  background: var(--color-primary);
  opacity: 0.45;
  filter: blur(100px);
  border-radius: 999px;
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  right: -50px;
  bottom: -50px;
  width: 280px;
  height: 280px;
  background: var(--color-primary-strong);
  opacity: 0.32;
  filter: blur(110px);
  border-radius: 999px;
  pointer-events: none;
}

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

.hero-inner {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 52px;
}

.hero-title {
  margin: 0 0 18px;
  font-size: clamp(36px, 5.4vw, 62px);
  line-height: 1.08;
  font-weight: 800;
  letter-spacing: -0.8px;
}

.hero-highlight {
  background: linear-gradient(120deg, #6b4f00 0%, #3a2b00 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-subtitle {
  margin: 0 0 28px;
  font-size: clamp(16px, 2vw, 18px);
  color: var(--color-text-secondary);
  max-width: 520px;
  line-height: 1.7;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 24px;
  border-radius: 999px;
  font-weight: 600;
  min-height: 48px;
  transition: transform 120ms ease, background 150ms ease, box-shadow 150ms ease;
  cursor: pointer;
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background: var(--color-primary);
  color: #2b2200;
  box-shadow: 0 14px 30px rgba(253, 220, 46, 0.45);
}

.btn-primary:hover {
  background: var(--color-primary-dark);
  box-shadow: 0 18px 38px rgba(253, 220, 46, 0.52);
}

.btn-secondary {
  background: #ffffff;
  color: var(--color-text);
  border: 1px solid #ead97a;
  box-shadow: 0 12px 26px rgba(253, 220, 46, 0.18);
}

.btn-secondary:hover {
  background: #fff8d6;
  box-shadow: 0 14px 30px rgba(253, 220, 46, 0.25);
}

.hero-visual {
  display: flex;
  justify-content: center;
}

.hero-phone {
  position: relative;
  width: 100%;
  max-width: 310px;
  aspect-ratio: 750 / 1624;
  border-radius: 30px;
  box-shadow: var(--shadow-md);
  transform: rotate(-2deg);
  transition: transform 260ms ease;
}

.hero-phone:hover {
  transform: rotate(0deg) translateY(-5px);
}

.hero-phone .screen {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Sections */
.section-title {
  margin: 0 0 30px;
  font-size: clamp(28px, 3.6vw, 36px);
  font-weight: 800;
  text-align: center;
  letter-spacing: -0.3px;
}

.features {
  padding: 78px 0;
}

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

.feature-card {
  background: var(--color-bg);
  border: 1px solid #f0e7a3;
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow-sm);
  background-image: radial-gradient(circle at 10% 10%, rgba(253, 220, 46, 0.10) 0%, transparent 30%);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

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

.feature-icon {
  width: 50px;
  height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--color-primary);
  color: #2b2200;
  border-radius: 15px;
  margin-bottom: 18px;
}

.feature-title {
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 700;
}

.feature-desc {
  margin: 0;
  font-size: 15px;
  color: var(--color-text-secondary);
  line-height: 1.65;
}

/* Screenshots */
.screenshots {
  padding: 78px 0;
  background: linear-gradient(180deg, var(--color-bg-secondary) 0%, #fff8d6 100%);
}

.screenshot-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.screenshot-item {
  margin: 0;
}

.phone-frame {
  position: relative;
  aspect-ratio: 750 / 1624;
  border-radius: 28px;
  box-shadow: var(--shadow-md);
  transition: transform 260ms ease;
}

.screenshot-item:hover .phone-frame {
  transform: translateY(-6px) rotate(-1deg);
}

.phone-frame .screen {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.screenshot-note {
  margin: 20px 0 0;
  text-align: center;
  font-size: 13px;
  color: var(--color-text-muted);
}

/* Download */
.download {
  padding: 78px 0;
  text-align: center;
  background:
    radial-gradient(circle at 50% 40%, rgba(253, 220, 46, 0.18) 0%, transparent 35%),
    linear-gradient(180deg, #fff8d6 0%, #ffffff 100%);
}

.download-subtitle {
  margin: 0 0 26px;
  color: var(--color-text-secondary);
}

.download-actions {
  display: inline-flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
}

.store-btn {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  background: #111111;
  color: #ffffff;
  border-radius: 999px;
  padding: 14px 24px;
  min-height: 58px;
  min-width: 200px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: transform 120ms ease, box-shadow 150ms ease;
}

.store-btn:hover {
  background: #000000;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.28);
}

.store-btn:active {
  transform: scale(0.98);
}

.store-icon {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  color: #ffffff;
}

.store-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.25;
  font-size: 12px;
  color: #cccccc;
}

.store-text strong {
  font-size: 17px;
  color: #ffffff;
  font-weight: 700;
}

/* Privacy */
.privacy {
  padding: 78px 0;
  background: var(--color-bg-secondary);
}

.privacy-content {
  max-width: 820px;
  margin: 0 auto;
  padding: 30px;
  background: var(--color-bg);
  border-radius: var(--radius);
  border: 1px solid #f0e7a3;
  box-shadow: var(--shadow-sm);
  background-image: radial-gradient(circle at 10% 0%, rgba(253, 220, 46, 0.12) 0%, transparent 40%);
}

.privacy-content h3 {
  margin: 26px 0 10px;
  font-size: 18px;
  font-weight: 700;
}

.privacy-content p {
  margin: 0 0 12px;
  font-size: 15px;
  color: var(--color-text-secondary);
  line-height: 1.7;
}

.privacy-content a {
  color: #6b4f00;
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
}

.privacy-cta {
  padding: 78px 0;
  text-align: center;
  background: linear-gradient(180deg, #ffffff 0%, #fff6c2 100%);
  border-top: 1px solid #f5e08a;
  border-bottom: 1px solid #f5e08a;
}

.privacy-cta-text {
  margin: 0 0 20px;
  color: var(--color-text-secondary);
}

/* Footer */
.footer {
  padding: 26px 0;
  border-top: 1px solid var(--color-border);
  background: #ffffff;
}

.footer-inner {
  display: grid;
  gap: 8px;
  text-align: center;
}

.footer-copy {
  margin: 0;
  font-size: 14px;
  color: var(--color-text-muted);
}

.footer-contact {
  margin: 0;
  font-size: 14px;
  font-weight: 500;
}

.footer-link a {
  font-size: 14px;
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .hero-phone,
  .feature-card,
  .screenshot-item:hover .phone-frame,
  .btn,
  .store-btn {
    transition: none;
  }
}

/* Mockup debug */
.hero-phone,
.phone-frame {
  outline: 2px dashed rgba(253,220,46,0.35);
  outline-offset: 6px;
}
.hero-phone .mockup,
.phone-frame .mockup {
  opacity: 0.99;
}

/* Responsive */
@media (max-width: 1024px) {
  .hero-inner {
    gap: 36px;
  }
}

@media (max-width: 900px) {
  .features-grid,
  .screenshot-gallery {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 760px) {
  .hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-subtitle {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-visual {
    justify-content: center;
  }

  .hero-phone {
    max-width: 270px;
  }
}

@media (max-width: 640px) {
  .nav-toggle {
    display: inline-flex;
  }

  .nav {
    display: none;
    position: absolute;
    left: 16px;
    right: 16px;
    top: 72px;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 10px;
    box-shadow: 0 16px 40px rgba(17,17,17,0.10);
  }

  .nav.is-open {
    display: block;
  }

  .nav-list {
    flex-direction: column;
    gap: 4px;
  }

  .nav-list a {
    padding: 12px 14px;
  }

  .features-grid,
  .screenshot-gallery {
    grid-template-columns: 1fr;
  }

  .download-actions {
    flex-direction: column;
    align-items: center;
  }

  .store-btn {
    width: 100%;
    max-width: 320px;
  }
}
