/* Reset & Base */
:root {
  --primary-color: #0A59F7; /* Huawei Blue / Tech Blue */
  --primary-hover: #0849c7;
  --text-main: #1D1D1F; /* Apple-like deep gray/black */
  --text-secondary: #86868B;
  --bg-main: #FBFBFD;
  --bg-card: #FFFFFF;
  --radius-lg: 24px;
  --radius-md: 16px;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Helvetica Neue", STHeiti, "Microsoft Yahei", Tahoma, Simsun, sans-serif;
  color: var(--text-main);
  background: var(--bg-main);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(251, 251, 253, 0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid transparent;
  transition: all 0.3s ease;
}

.navbar.scrolled {
  background: rgba(255, 255, 255, 0.9);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 64px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 1.125rem;
  color: var(--text-main);
}

.logo img {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.nav-download-btn {
  padding: 8px 20px;
  background: var(--primary-color);
  color: white;
  font-weight: 500;
  font-size: 0.9rem;
  border-radius: 20px;
  transition: background 0.2s, transform 0.2s;
}

.nav-download-btn:hover {
  background: var(--primary-hover);
  transform: scale(1.02);
}

/* Hero Section */
.hero {
  padding: 140px 0 80px;
  text-align: center;
  overflow: hidden;
}

.hero-container {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 16px;
  background: rgba(10, 89, 247, 0.08);
  border-radius: 20px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--primary-color);
  margin-bottom: 24px;
}

.badge-star {
  color: #F59E0B;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}

.gradient-text {
  background: linear-gradient(135deg, #0A59F7 0%, #00B4DB 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-desc {
  font-size: 1.25rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto 40px;
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
  margin-bottom: 24px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 28px;
  font-size: 1.0625rem;
  font-weight: 500;
  transition: all 0.2s ease;
}

.btn-primary {
  background: var(--text-main);
  color: white;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.btn-primary:hover {
  background: #000000;
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.2);
}

.btn-secondary {
  background: white;
  color: var(--text-main);
  border: 1px solid #E5E5EA;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
}

.btn-secondary:hover {
  border-color: #D2D2D7;
  background: #F5F5F7;
  transform: translateY(-2px);
}

.ios-hint {
  font-size: 0.9rem;
  color: var(--text-secondary);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: color 0.2s;
}

.ios-hint:hover {
  color: var(--primary-color);
}

.ios-hint .arrow {
  transition: transform 0.2s;
}

.ios-hint:hover .arrow {
  transform: translateX(4px);
}

/* Section Header */
.section-header {
  text-align: center;
  margin-bottom: 56px;
}

.section-header h2 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 16px;
  letter-spacing: -0.01em;
}

.section-header p {
  font-size: 1.125rem;
  color: var(--text-secondary);
}

.platform-hint {
  display: inline-block;
  margin-top: 12px;
  font-size: 0.85em;
  opacity: 0.8;
  color: var(--text-secondary);
}

/* Screenshots Section */
.screenshots-section {
  padding: 100px 0;
  background: white;
}

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

@media (min-width: 1200px) {
  .screenshots-grid {
    grid-template-columns: repeat(5, 1fr);
  }
}

.screenshot-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  transition: transform 0.3s ease;
}

.screenshot-card:hover {
  transform: translateY(-8px);
}

.screenshot-card img {
  width: 100%;
  border-radius: 16px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
}

/* User Manual */
.manual-section {
  padding: 100px 0;
  background: #F8FAFC;
}

.manual-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 32px;
}

.manual-card {
  background: white;
  border-radius: 20px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: 0 4px 20px rgba(0,0,0,0.04);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.manual-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.08);
}

.manual-card img {
  width: 100%;
  border-radius: 12px;
  margin-bottom: 20px;
}

.manual-caption {
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--text-main);
  text-align: center;
}

/* CTA */
.cta {
  padding: 100px 0;
}

.cta-card {
  background: var(--text-main);
  border-radius: 32px;
  padding: 80px 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-card::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(10,89,247,0.3) 0%, transparent 60%);
}

.cta-card::after {
  content: '';
  position: absolute;
  bottom: -50%;
  right: -10%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(0,180,219,0.2) 0%, transparent 60%);
}

.cta-content {
  position: relative;
  z-index: 1;
}

.cta-content h2 {
  font-size: 2.5rem;
  font-weight: 700;
  color: white;
  margin-bottom: 20px;
}

.cta-content p {
  font-size: 1.125rem;
  color: #A1A1A6;
  max-width: 500px;
  margin: 0 auto 40px;
}

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

.cta-actions .btn-primary {
  background: white;
  color: var(--text-main);
  box-shadow: none;
}

.cta-actions .btn-primary:hover {
  background: #F5F5F7;
  transform: translateY(-2px);
}

.cta-actions .btn-primary img {
  filter: none !important; /* Reset invert on white background */
}

.cta-actions .btn-secondary {
  background: transparent;
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: none;
}

.cta-actions .btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.6);
  transform: translateY(-2px);
}

/* Footer */
.footer {
  padding: 40px 0;
  border-top: 1px solid #E5E5EA;
  background: var(--bg-main);
}

.footer-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

@media (min-width: 640px) {
  .footer-container {
    flex-direction: row;
    justify-content: space-between;
  }
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: var(--text-main);
}

.footer-logo img {
  width: 28px;
  height: 28px;
  border-radius: 6px;
}

.footer-copy {
  font-size: 0.875rem;
  color: var(--text-secondary);
}

/* Modal */
.modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
}

.modal.active {
  opacity: 1;
  visibility: visible;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.modal-content {
  position: relative;
  background: white;
  border-radius: 24px;
  padding: 40px 32px;
  max-width: 340px;
  width: 100%;
  text-align: center;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.12);
  transform: scale(0.95);
  transition: transform 0.3s;
}

.modal.active .modal-content {
  transform: scale(1);
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 32px;
  height: 32px;
  border-radius: 16px;
  background: #F5F5F7;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  transition: all 0.2s;
}

.modal-close:hover {
  background: #E5E5EA;
  color: var(--text-main);
}

.modal-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(10, 89, 247, 0.1);
  color: var(--primary-color);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.modal-content h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 12px;
}

.modal-content p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Responsive Typography Adjustments */
@media (max-width: 640px) {
  .hero-title {
    font-size: 2.5rem;
  }
  .hero-desc {
    font-size: 1.125rem;
  }
  .section-header h2 {
    font-size: 2rem;
  }
}