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

:root {
  --color-bg: #0a0a12;
  --color-bg-card: #13131f;
  --color-bg-card-hover: #1a1a2e;
  --color-primary: #e84393;
  --color-primary-light: #fd79a8;
  --color-accent: #6c5ce7;
  --color-accent-light: #a29bfe;
  --color-text: #f0f0f5;
  --color-text-muted: #8888a0;
  --color-border: rgba(255, 255, 255, 0.06);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --shadow-glow: 0 0 40px rgba(232, 67, 147, 0.15);
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

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

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

/* ===== Header ===== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(10, 10, 18, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--color-border);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo-area {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-img {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  object-fit: cover;
}

.logo-text {
  font-size: 20px;
  font-weight: 700;
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-links {
  display: flex;
  gap: 28px;
}

.nav-links a {
  font-size: 14px;
  color: var(--color-text-muted);
  transition: color var(--transition);
  position: relative;
}

.nav-links a::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-primary);
  transition: width var(--transition);
  border-radius: 1px;
}

.nav-links a:hover {
  color: var(--color-text);
}

.nav-links a:hover::after {
  width: 100%;
}

/* ===== Hero ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 100px 24px 80px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(108, 92, 231, 0.12) 0%, transparent 60%),
    radial-gradient(ellipse 60% 50% at 80% 50%, rgba(232, 67, 147, 0.08) 0%, transparent 50%),
    radial-gradient(ellipse 50% 40% at 20% 80%, rgba(162, 155, 254, 0.06) 0%, transparent 50%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 720px;
}

.hero-badge {
  display: inline-block;
  padding: 6px 18px;
  background: rgba(232, 67, 147, 0.12);
  border: 1px solid rgba(232, 67, 147, 0.25);
  border-radius: 100px;
  font-size: 13px;
  color: var(--color-primary-light);
  font-weight: 500;
  margin-bottom: 28px;
  letter-spacing: 0.5px;
}

.hero-title {
  font-size: clamp(40px, 7vw, 68px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
}

.hero-title .highlight {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-accent-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-desc {
  font-size: clamp(15px, 2vw, 18px);
  color: var(--color-text-muted);
  line-height: 1.7;
  margin-bottom: 40px;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

.hero-br {
  display: none;
}

@media (min-width: 640px) {
  .hero-br {
    display: block;
  }
}

.hero-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.btn-download {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 36px;
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
  color: #fff;
  font-size: 17px;
  font-weight: 600;
  border-radius: var(--radius-xl);
  transition: all var(--transition);
  box-shadow: 0 4px 24px rgba(232, 67, 147, 0.3);
  position: relative;
  overflow: hidden;
}

.btn-download::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--color-accent), var(--color-primary));
  opacity: 0;
  transition: opacity var(--transition);
}

.btn-download:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(232, 67, 147, 0.4);
}

.btn-download:hover::before {
  opacity: 1;
}

.btn-download .btn-icon,
.btn-download .btn-icon-lg {
  width: 22px;
  height: 22px;
  position: relative;
  z-index: 1;
}

.btn-download span {
  position: relative;
  z-index: 1;
}

.download-hint {
  font-size: 13px;
  color: var(--color-text-muted);
}

/* Floating cards */
.hero-decoration {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}

.float-card {
  position: absolute;
  background: rgba(19, 19, 31, 0.7);
  backdrop-filter: blur(12px);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 12px 18px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  animation: float 6s ease-in-out infinite;
}

.float-card-1 {
  top: 20%;
  left: 8%;
  animation-delay: 0s;
}

.float-card-2 {
  top: 30%;
  right: 6%;
  animation-delay: -2s;
}

.float-card-3 {
  bottom: 25%;
  left: 12%;
  animation-delay: -4s;
}

.float-emoji {
  font-size: 18px;
}

.float-label {
  color: var(--color-text);
}

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

@media (max-width: 768px) {
  .float-card {
    display: none;
  }
}

/* ===== Features ===== */
.features {
  padding: 100px 24px;
  max-width: 1200px;
  margin: 0 auto;
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-title {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 700;
  margin-bottom: 14px;
  letter-spacing: -0.01em;
}

.section-subtitle {
  font-size: 16px;
  color: var(--color-text-muted);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.feature-card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
  opacity: 0;
  transition: opacity var(--transition);
}

.feature-card:hover {
  background: var(--color-bg-card-hover);
  transform: translateY(-4px);
  box-shadow: var(--shadow-glow);
  border-color: rgba(232, 67, 147, 0.15);
}

.feature-card:hover::before {
  opacity: 1;
}

.feature-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  background: rgba(232, 67, 147, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--color-primary-light);
  transition: all var(--transition);
}

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

.feature-card:hover .feature-icon {
  background: rgba(232, 67, 147, 0.15);
  transform: scale(1.05);
}

.feature-title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 10px;
}

.feature-desc {
  font-size: 14px;
  color: var(--color-text-muted);
  line-height: 1.7;
}

/* ===== Download Section ===== */
.download-section {
  position: relative;
  padding: 100px 24px;
  overflow: hidden;
}

.download-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 50% at 50% 50%, rgba(108, 92, 231, 0.1) 0%, transparent 60%);
  pointer-events: none;
}

.download-content {
  position: relative;
  z-index: 2;
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 60px;
}

.download-phone {
  flex-shrink: 0;
}

.phone-frame {
  width: 220px;
  height: 440px;
  background: #1a1a2e;
  border-radius: 32px;
  border: 3px solid #2a2a40;
  padding: 12px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
  position: relative;
  overflow: hidden;
}

.phone-frame::before {
  content: "";
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 24px;
  background: #0a0a12;
  border-radius: 0 0 14px 14px;
  z-index: 3;
}

.phone-screen {
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, #1e1e35 0%, #13131f 100%);
  border-radius: 22px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.phone-app-icon {
  width: 80px;
  height: 80px;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.phone-app-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.phone-app-name {
  font-size: 18px;
  font-weight: 700;
  color: var(--color-text);
}

.phone-app-tag {
  font-size: 12px;
  color: var(--color-text-muted);
  background: rgba(255, 255, 255, 0.06);
  padding: 4px 12px;
  border-radius: 100px;
}

.download-info {
  flex: 1;
}

.download-title {
  font-size: clamp(24px, 3.5vw, 36px);
  font-weight: 700;
  margin-bottom: 16px;
  line-height: 1.3;
}

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

.btn-download-large {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  padding: 18px 32px;
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
  color: #fff;
  border-radius: var(--radius-xl);
  transition: all var(--transition);
  box-shadow: 0 4px 24px rgba(232, 67, 147, 0.3);
  margin-bottom: 20px;
}

.btn-download-large:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 36px rgba(232, 67, 147, 0.45);
}

.btn-icon-lg {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
}

.btn-text-group {
  display: flex;
  flex-direction: column;
}

.btn-text-main {
  font-size: 17px;
  font-weight: 700;
}

.btn-text-sub {
  font-size: 12px;
  opacity: 0.8;
  margin-top: 2px;
}

.download-features {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.dl-feat {
  font-size: 13px;
  color: var(--color-text-muted);
}

@media (max-width: 768px) {
  .download-content {
    flex-direction: column;
    text-align: center;
    gap: 40px;
  }

  .download-features {
    justify-content: center;
  }

  .btn-download-large {
    margin-left: auto;
    margin-right: auto;
  }
}

/* ===== Footer ===== */
.footer {
  border-top: 1px solid var(--color-border);
  padding: 48px 24px;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-logo {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  object-fit: cover;
}

.footer-brand-name {
  font-size: 16px;
  font-weight: 600;
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.footer-links {
  display: flex;
  gap: 24px;
}

.footer-links a {
  font-size: 14px;
  color: var(--color-text-muted);
  transition: color var(--transition);
}

.footer-links a:hover {
  color: var(--color-text);
}

.footer-copy {
  text-align: center;
}

.footer-copy p {
  font-size: 13px;
  color: var(--color-text-muted);
  line-height: 1.8;
}

.footer-disclaimer {
  font-size: 12px !important;
  opacity: 0.7;
}

/* ===== Responsive ===== */
@media (max-width: 640px) {
  .header-inner {
    padding: 0 16px;
  }

  .nav-links {
    gap: 18px;
  }

  .hero {
    padding: 90px 16px 60px;
  }

  .features {
    padding: 60px 16px;
  }

  .features-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .feature-card {
    padding: 24px 20px;
  }

  .download-section {
    padding: 60px 16px;
  }

  .phone-frame {
    width: 180px;
    height: 360px;
  }
}

/* ===== Scroll Animations ===== */
.feature-card,
.download-content,
.section-header {
  opacity: 0;
  transform: translateY(24px);
  animation: fadeUp 0.7s ease forwards;
}

.feature-card:nth-child(1) { animation-delay: 0.1s; }
.feature-card:nth-child(2) { animation-delay: 0.2s; }
.feature-card:nth-child(3) { animation-delay: 0.3s; }
.feature-card:nth-child(4) { animation-delay: 0.4s; }
.feature-card:nth-child(5) { animation-delay: 0.5s; }
.feature-card:nth-child(6) { animation-delay: 0.6s; }

.section-header { animation-delay: 0s; }
.download-content { animation-delay: 0.15s; }

@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
