/* ==== Reset & Base ==== */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --color-primary: #FF8A65;
  --color-primary-dark: #E67A4E;
  --color-bg: #FFF5F0;
  --color-bg-alt: #FFFFFF;
  --color-text: #333333;
  --color-text-light: #666666;
  --color-text-muted: #999999;
  --color-border: #FFE0D0;
  --radius: 16px;
  --shadow: 0 4px 24px rgba(255, 138, 101, 0.12);
  --shadow-lg: 0 8px 40px rgba(255, 138, 101, 0.18);
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial,
    sans-serif;
  color: var(--color-text);
  line-height: 1.7;
  background: var(--color-bg);
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }

/* ==== Container ==== */
.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ==== Section ==== */
.section {
  padding: 80px 0;
}

.section-title {
  font-size: 32px;
  font-weight: 700;
  text-align: center;
  color: var(--color-text);
  margin-bottom: 12px;
}

.section-subtitle {
  font-size: 16px;
  text-align: center;
  color: var(--color-text-light);
  margin-bottom: 48px;
}

/* ==== Buttons ==== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 36px;
  border-radius: 50px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
}

.btn-primary {
  background: var(--color-primary);
  color: #fff;
  box-shadow: var(--shadow);
}
.btn-primary:hover {
  background: var(--color-primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-download {
  background: var(--color-primary);
  color: #fff;
  font-size: 18px;
  padding: 16px 48px;
  box-shadow: var(--shadow);
}
.btn-download:hover {
  background: var(--color-primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

/* ========================================================
   ① Hero
   ======================================================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  background: linear-gradient(160deg, #FFF5F0 0%, #FFE8D6 40%, #FFF0E5 100%);
}

.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

/* Decorative floating circles */
.hero-bg::before,
.hero-bg::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  opacity: 0.15;
}

.hero-bg::before {
  width: 400px;
  height: 400px;
  background: var(--color-primary);
  top: -100px;
  right: -80px;
  animation: float 8s ease-in-out infinite;
}

.hero-bg::after {
  width: 280px;
  height: 280px;
  background: var(--color-primary);
  bottom: -60px;
  left: -60px;
  animation: float 10s ease-in-out infinite reverse;
}

/* Extra decorative dots */
.hero-bg {
  background-image:
    radial-gradient(circle, var(--color-primary) 1px, transparent 1px),
    radial-gradient(circle, var(--color-primary) 1px, transparent 1px);
  background-size: 80px 80px, 120px 120px;
  background-position: 10% 20%, 85% 70%;
  opacity: 0.3;
}

@keyframes float {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-20px) scale(1.05); }
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: 40px 24px;
}

.hero-logo {
  width: 100px;
  height: 100px;
  margin: 0 auto 24px;
  border-radius: 22px;
  box-shadow: 0 8px 32px rgba(255, 138, 101, 0.25);
}

.hero-title {
  font-size: 48px;
  font-weight: 800;
  background: linear-gradient(135deg, #FF6B35, #FF8A65);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 12px;
}

.hero-subtitle {
  font-size: 20px;
  color: var(--color-text-light);
  margin-bottom: 8px;
}

.hero-desc {
  font-size: 15px;
  color: var(--color-text-muted);
  margin-bottom: 32px;
}

.hero-scroll {
  position: absolute;
  bottom: 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  color: var(--color-text-muted);
  font-size: 13px;
  animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(8px); }
}

/* ========================================================
   ② Features
   ======================================================== */
.features {
  background: var(--color-bg-alt);
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 64px;
  margin-bottom: 72px;
}

.feature-item:last-child { margin-bottom: 0; }

.feature-item.reverse { flex-direction: row-reverse; }

.feature-text {
  flex: 1;
  min-width: 0;
}

.feature-icon {
  font-size: 40px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  height: 48px;
}

.feature-icon svg {
  display: block;
  flex-shrink: 0;
}

.feature-text h3 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--color-text);
}

.feature-text p {
  font-size: 15px;
  color: var(--color-text-light);
  margin-bottom: 16px;
  line-height: 1.8;
}

.feature-text ul {
  list-style: none;
}

.feature-text ul li {
  position: relative;
  padding-left: 20px;
  font-size: 14px;
  color: var(--color-text-light);
  margin-bottom: 6px;
}

.feature-text ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-primary);
  opacity: 0.6;
}

.feature-img {
  flex: 0 0 280px;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.feature-img img {
  width: 100%;
  display: block;
}

/* ========================================================
   ③ Highlights
   ======================================================== */
.highlights {
  background: linear-gradient(180deg, var(--color-bg) 0%, var(--color-bg-alt) 100%);
}

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

.highlight-card {
  background: var(--color-bg-alt);
  border-radius: var(--radius);
  padding: 36px 28px;
  text-align: center;
  border: 1px solid var(--color-border);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.highlight-icon {
  font-size: 44px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 56px;
}

.highlight-icon svg {
  display: block;
}

.highlight-card h4 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 10px;
}

.highlight-card p {
  font-size: 14px;
  color: var(--color-text-light);
  line-height: 1.7;
}

/* ========================================================
   ④ Screenshots
   ======================================================== */
.screenshots {
  background: var(--color-bg-alt);
}

.screenshots-scroll {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  padding: 12px 0 24px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

.screenshots-scroll::-webkit-scrollbar {
  height: 6px;
}

.screenshots-scroll::-webkit-scrollbar-track {
  background: var(--color-bg);
  border-radius: 3px;
}

.screenshots-scroll::-webkit-scrollbar-thumb {
  background: var(--color-primary);
  border-radius: 3px;
  opacity: 0.5;
}

.screenshot-card {
  flex: 0 0 220px;
  scroll-snap-align: start;
  text-align: center;
}

.screenshot-card img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 10px;
}

.screenshot-card span {
  font-size: 13px;
  color: var(--color-text-muted);
}

/* ========================================================
   ⑤ Download
   ======================================================== */
.download {
  background: linear-gradient(160deg, var(--color-primary) 0%, #FF6B35 100%);
  color: #fff;
}

.download .section-title,
.download .section-subtitle {
  color: #fff;
}

.download-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 64px;
  margin-top: 40px;
}

.download-qr {
  text-align: center;
}

.download-qr img {
  width: 200px;
  height: 200px;
  border-radius: var(--radius);
  background: #fff;
  padding: 12px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
}

.download-qr p {
  margin-top: 10px;
  font-size: 14px;
  opacity: 0.8;
}

.download-info {
  text-align: center;
}

.download-version {
  margin-top: 12px;
  font-size: 14px;
  opacity: 0.8;
}

.download-tips {
  margin-top: 24px;
  padding: 20px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: var(--radius);
  text-align: left;
  max-width: 320px;
}

.download-tips h4 {
  font-size: 15px;
  margin-bottom: 8px;
}

.download-tips p {
  font-size: 13px;
  opacity: 0.9;
  line-height: 1.6;
}

/* ========================================================
   ⑥ Footer
   ======================================================== */
.footer {
  background: #333;
  color: #aaa;
  padding: 40px 0;
  text-align: center;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 32px;
  margin-bottom: 16px;
}

.footer-links a {
  font-size: 14px;
  transition: color 0.3s;
}
.footer-links a:hover { color: #fff; }

.footer-copy {
  font-size: 13px;
}

/* ========================================================
   Responsive
   ======================================================== */
@media (max-width: 768px) {
  .hero-title { font-size: 34px; }
  .hero-subtitle { font-size: 17px; }
  .hero-desc { font-size: 14px; }

  .section { padding: 56px 0; }
  .section-title { font-size: 26px; }
  .section-subtitle { margin-bottom: 32px; }

  /* Features stack vertically */
  .feature-item,
  .feature-item.reverse {
    flex-direction: column;
    gap: 32px;
    margin-bottom: 48px;
    text-align: center;
  }

  .feature-img {
    flex: 0 0 auto;
    max-width: 260px;
    margin: 0 auto;
  }

  .feature-text ul li {
    text-align: left;
  }

  /* Highlights single column */
  .highlights-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  /* Screenshots */
  .screenshot-card {
    flex: 0 0 180px;
  }

  /* Download stack */
  .download-content {
    flex-direction: column;
    gap: 32px;
  }
}

@media (max-width: 480px) {
  .hero-logo { width: 80px; height: 80px; }
  .hero-title { font-size: 28px; }

  .btn {
    padding: 12px 28px;
    font-size: 15px;
  }

  .btn-download {
    padding: 14px 36px;
    font-size: 16px;
  }

  .screenshot-card {
    flex: 0 0 160px;
  }
}
