/* =========================================
   CSS Variables (Based on App Theme)
========================================= */
:root {
  /* Light Theme Colors from App */
  --bg-surface: #F4F1EB;
  --text-main: #1E2328;
  --text-muted: #5C645D;
  --primary: #0E5D66;
  --primary-bg: rgba(14, 93, 102, 0.08); /* Derived from primary */
  
  /* Features Card Colors */
  --card-surface: #E5E0D8;
  --card-radius: 28px;
  
  /* Trend Card Gradient Colors & Styling */
  --trend-bg-start: #0F5158;
  --trend-bg-end: #3B938F;
  --trend-glow: rgba(59, 147, 143, 0.26); /* glow alpha 0.44 -> roughly 0.26 for web */
  --trend-text: #FDFCF9;
  --trend-text-muted: #DCF0EA;
  --trend-badge-bg: rgba(255, 255, 255, 0.10); /* 0x1AFFFFFF */
  --trend-radius: 34px;
}

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

body {
  font-family: 'Noto Sans HK', sans-serif;
  background-color: var(--bg-surface);
  color: var(--text-main);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

/* =========================================
   Navbar
========================================= */
.navbar {
  padding: 24px 0;
}

.navbar-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* =========================================
   Language Toggle
========================================= */
body.lang-zh .en-only {
  display: none !important;
}

body.lang-en .zh-only {
  display: none !important;
}

.lang-btn {
  background: transparent;
  border: 1px solid var(--primary);
  color: var(--primary);
  padding: 6px 16px;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 600;
  font-size: 14px;
  transition: all 0.2s;
}

.lang-btn:hover {
  background: var(--primary);
  color: #fff;
}

.logo {
  font-size: 24px;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: -0.5px;
}

/* =========================================
   Hero Section
========================================= */
.hero {
  padding: 80px 0 100px;
  overflow: hidden;
}

.hero-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 60px;
}

.hero-content {
  flex: 1;
  max-width: 540px;
}

.eyebrow {
  display: inline-block;
  padding: 6px 14px;
  background-color: var(--card-surface);
  color: var(--primary);
  font-size: 14px;
  font-weight: 600;
  border-radius: 999px;
  margin-bottom: 24px;
}

.hero-content h1 {
  font-size: 56px;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -1.6px;
  margin-bottom: 24px;
}

.hero-content p {
  font-size: 18px;
  color: var(--text-muted);
  margin-bottom: 40px;
  line-height: 1.7;
}

/* Download Buttons */
.download-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.btn-store {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 28px;
  border-radius: 20px;
  font-weight: 600;
  font-size: 16px;
  transition: transform 0.2s, box-shadow 0.2s;
  background-color: var(--primary);
  color: #fff;
}

.btn-store:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(14, 93, 102, 0.2);
}

.play-store {
  background-color: var(--card-surface);
  color: var(--text-main);
}

.play-store:hover {
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.08);
}

/* =========================================
   Hero Visual (Replicating App Card)
========================================= */
.hero-visual {
  flex: 1;
  display: flex;
  justify-content: center;
  position: relative;
}

/* Background gradient decor */
.hero-visual::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 400px;
  height: 400px;
  background: var(--primary-bg);
  border-radius: 50%;
  filter: blur(60px);
  z-index: -1;
}

.trend-card {
  width: 100%;
  max-width: 360px;
  aspect-ratio: 0.85; /* Simulating vertical card */
  background: linear-gradient(135deg, var(--trend-bg-start), var(--trend-bg-end));
  border-radius: var(--trend-radius);
  position: relative;
  overflow: hidden;
  box-shadow: 0 24px 42px 6px var(--trend-glow);
  display: flex;
  flex-direction: column;
  padding: 26px;
  color: var(--trend-text);
}

/* Card Blob Decorations */
.card-blob {
  position: absolute;
  background-color: var(--trend-badge-bg);
  border-radius: 50%;
  pointer-events: none;
}

.card-blob.top-right {
  width: 140px;
  height: 140px;
  top: -40px;
  right: -18px;
}

.card-blob.bottom-left {
  width: 180px;
  height: 180px;
  bottom: -56px;
  left: -28px;
}

/* Card Content Structure */
.card-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.badge {
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background-color: var(--trend-badge-bg);
}

.badge.status {
  background-color: rgba(253, 252, 249, 0.16);
  border: 1px solid rgba(253, 252, 249, 0.18);
}

.status-dot {
  width: 8px;
  height: 8px;
  background-color: #54D18A;
  border-radius: 50%;
}

.card-body {
  margin-top: auto;
  margin-bottom: 24px;
}

.search-volume {
  display: inline-block;
  padding: 8px 14px;
  background-color: var(--trend-badge-bg);
  border-radius: 999px;
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 16px;
}

.trend-title {
  font-size: 34px;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -1.0px;
}

.card-footer {
  display: flex;
  justify-content: flex-end;
}

.time-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--trend-text-muted);
}

/* =========================================
   Features Section
========================================= */
.features {
  padding: 80px 0;
  background: linear-gradient(to bottom, var(--bg-surface), rgba(229, 224, 216, 0.55));
}

.section-title {
  text-align: center;
  font-size: 34px;
  font-weight: 700;
  margin-bottom: 60px;
}

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

.feature-card {
  background-color: var(--card-surface);
  padding: 40px 32px;
  border-radius: var(--card-radius);
  transition: transform 0.3s ease;
}

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

.feature-icon {
  font-size: 40px;
  margin-bottom: 20px;
}

.feature-card h3 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 12px;
}

.feature-card p {
  color: var(--text-muted);
  line-height: 1.6;
}

/* =========================================
   Footer
========================================= */
.footer {
  padding: 60px 0;
  border-top: 1px solid var(--text-muted);
  border-color: rgba(92, 100, 93, 0.2);
}

.footer-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
}

.footer-info .logo {
  font-size: 20px;
  margin-bottom: 8px;
}

.footer-info p:last-child {
  color: var(--text-muted);
  font-size: 14px;
}

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

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

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

/* =========================================
   Responsive Design
========================================= */
@media (max-width: 992px) {
  .hero-container {
    flex-direction: column;
    text-align: center;
  }
  
  .hero-content {
    max-width: 100%;
  }

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

  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .hero {
    padding: 60px 0;
  }

  .hero-content h1 {
    font-size: 46px;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-container {
    flex-direction: column;
    text-align: center;
  }
}
