/* ===== CSS Variables ===== */
:root {
  --bg-primary: #1a1b2e;
  --bg-secondary: #2B2D42;
  --green-bright: #4CD933;
  --green-primary: #19A640;
  --green-vivid: #19E619;
  --green-deep: #008026;
  --text-high: rgba(255, 255, 255, 0.95);
  --text-mid: rgba(255, 255, 255, 0.6);
  --text-low: rgba(255, 255, 255, 0.4);
  --card-bg: rgba(255, 255, 255, 0.04);
  --card-border: rgba(255, 255, 255, 0.06);
  --nav-height: 64px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg-primary);
  color: var(--text-high);
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: var(--green-bright);
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: var(--green-vivid);
}

/* ===== Frosted Glass Navbar ===== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  background: rgba(26, 27, 46, 0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--card-border);
  z-index: 100;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text-high);
}

.nav-brand img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
}

.nav-brand span {
  font-size: 1.1rem;
  font-weight: 600;
}

.nav-links {
  display: flex;
  gap: 24px;
  list-style: none;
}

.nav-links a {
  color: var(--text-mid);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--green-bright);
}

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

.hero-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -60%);
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(25, 166, 64, 0.15) 0%, transparent 70%);
  animation: heroGlow 4s ease-in-out infinite alternate;
  pointer-events: none;
}

.hero-logo-wrapper {
  position: relative;
  margin-bottom: 32px;
  animation: float 4s ease-in-out infinite;
}

.hero-logo-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(76, 217, 51, 0.3) 0%, transparent 70%);
  animation: logoGlow 3s ease-in-out infinite alternate;
  pointer-events: none;
}

.hero-logo {
  position: relative;
  width: 140px;
  height: 140px;
  border-radius: 32px;
  z-index: 1;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, var(--green-bright), var(--green-vivid), var(--green-primary), var(--green-bright));
  background-size: 300% 300%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gradientShift 6s ease infinite;
  margin-bottom: 16px;
}

.hero-tagline {
  font-size: 1.35rem;
  color: var(--text-high);
  font-weight: 500;
  margin-bottom: 8px;
}

.hero-subtitle {
  font-size: 1rem;
  color: var(--text-mid);
  max-width: 440px;
  margin-bottom: 40px;
}

.app-store-badge {
  display: inline-block;
  padding: 14px 32px;
  background: linear-gradient(135deg, var(--green-primary), var(--green-deep));
  color: white;
  font-weight: 600;
  font-size: 1rem;
  border-radius: 12px;
  transition: transform 0.2s, box-shadow 0.2s;
}

.app-store-badge:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(25, 166, 64, 0.3);
  color: white;
}

/* ===== Feature Cards ===== */
.features {
  padding: 80px 24px 100px;
  max-width: 960px;
  margin: 0 auto;
}

.features-heading {
  text-align: center;
  font-size: 1.75rem;
  font-weight: 600;
  margin-bottom: 48px;
  color: var(--text-high);
}

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

.feature-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  padding: 32px 24px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.feature-card:hover {
  transform: translateY(-6px);
  border-color: rgba(76, 217, 51, 0.2);
  box-shadow: 0 12px 40px rgba(25, 166, 64, 0.1);
}

.feature-icon {
  font-size: 2.5rem;
  margin-bottom: 16px;
  display: block;
}

.feature-card h3 {
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--green-bright);
}

.feature-card p {
  font-size: 0.9rem;
  color: var(--text-mid);
  line-height: 1.5;
}

/* ===== Content Pages (Privacy, Support) ===== */
.content-page {
  max-width: 720px;
  margin: 0 auto;
  padding: calc(var(--nav-height) + 48px) 24px 80px;
}

.content-page h1 {
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 8px;
  background: linear-gradient(135deg, var(--green-bright), var(--green-vivid));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.content-page .effective-date {
  color: var(--text-low);
  font-size: 0.9rem;
  margin-bottom: 32px;
}

.content-page .intro {
  color: var(--text-mid);
  font-size: 1.05rem;
  margin-bottom: 32px;
  line-height: 1.7;
}

.content-section {
  margin-bottom: 36px;
}

.content-section h2 {
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--green-bright);
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--card-border);
}

.content-section h3 {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-high);
  margin-bottom: 8px;
  margin-top: 20px;
}

.content-section p {
  color: var(--text-mid);
  margin-bottom: 12px;
  line-height: 1.7;
}

.content-section ul {
  list-style: none;
  padding-left: 0;
  margin-bottom: 12px;
}

.content-section ul li {
  color: var(--text-mid);
  padding-left: 20px;
  position: relative;
  margin-bottom: 8px;
  line-height: 1.6;
}

.content-section ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green-primary);
}

/* Summary highlight box */
.summary-box {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  padding: 20px 24px;
  margin-bottom: 32px;
}

.summary-box ul li::before {
  background: var(--green-bright);
}

/* FAQ styling */
.faq-item {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  padding: 20px 24px;
  margin-bottom: 16px;
}

.faq-item h3 {
  color: var(--green-bright);
  margin-top: 0;
  margin-bottom: 10px;
  font-size: 1rem;
}

.faq-item p,
.faq-item ul {
  margin-bottom: 0;
}

/* ===== Footer ===== */
.footer {
  text-align: center;
  padding: 32px 24px;
  border-top: 1px solid var(--card-border);
  color: var(--text-low);
  font-size: 0.85rem;
}

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

.footer a:hover {
  color: var(--green-bright);
}

/* ===== Animations ===== */
@keyframes heroGlow {
  0% { opacity: 0.5; transform: translate(-50%, -60%) scale(1); }
  100% { opacity: 1; transform: translate(-50%, -60%) scale(1.1); }
}

@keyframes logoGlow {
  0% { opacity: 0.4; transform: translate(-50%, -50%) scale(0.9); }
  100% { opacity: 1; transform: translate(-50%, -50%) scale(1.1); }
}

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

@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* ===== Reduced Motion ===== */
@media (prefers-reduced-motion: reduce) {
  .hero-glow,
  .hero-logo-glow,
  .hero-logo-wrapper,
  .hero-title {
    animation: none;
  }
  .feature-card {
    transition: none;
  }
  .app-store-badge {
    transition: none;
  }
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .hero-title {
    font-size: 2.5rem;
  }

  .hero-tagline {
    font-size: 1.15rem;
  }

  .hero-logo {
    width: 110px;
    height: 110px;
    border-radius: 24px;
  }

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

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

  .nav-links {
    gap: 16px;
  }

  .navbar {
    padding: 0 16px;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 2rem;
  }

  .hero-tagline {
    font-size: 1rem;
  }

  .hero-subtitle {
    font-size: 0.9rem;
  }

  .hero-logo {
    width: 90px;
    height: 90px;
    border-radius: 20px;
  }

  .nav-brand span {
    display: none;
  }

  .content-page h1 {
    font-size: 1.75rem;
  }
}
