:root {
  --primary: #007AFF;
  --primary-dark: #0056CC;
  --secondary: #5856D6;
  --accent: #34C759;
  --warning: #FF9500;
  --danger: #FF3B30;
  --bg-primary: #ffffff;
  --bg-secondary: #F5F5F7;
  --bg-tertiary: #E8E8ED;
  --text-primary: #1D1D1F;
  --text-secondary: #6E6E73;
  --text-tertiary: #86868B;
  --border: #D2D2D7;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.12);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --max-width: 1200px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-primary);
  background-color: var(--bg-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--primary-dark);
}

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

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* Navigation */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  transition: var(--transition);
}

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

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

.nav-logo-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  overflow: hidden;
  flex-shrink: 0;
}

.nav-logo-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  color: var(--text-secondary);
  font-size: 15px;
  font-weight: 500;
}

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

.nav-links a.active {
  color: var(--primary);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: var(--transition);
}

/* Hero Section */
.hero {
  padding: 140px 0 100px;
  background: linear-gradient(180deg, #F0F7FF 0%, var(--bg-primary) 100%);
  text-align: center;
}

.hero-content {
  max-width: 720px;
  margin: 0 auto;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: rgba(0, 122, 255, 0.1);
  color: var(--primary);
  border-radius: 100px;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 24px;
}

.hero-app-icon {
  margin-bottom: 24px;
}

.hero-app-icon img {
  width: 120px;
  height: 120px;
  border-radius: 28px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12), 0 2px 8px rgba(0, 0, 0, 0.08);
  margin: 0 auto;
  transition: var(--transition);
}

.hero-app-icon img:hover {
  transform: scale(1.05);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.16), 0 4px 12px rgba(0, 0, 0, 0.1);
}

.hero h1 {
  font-size: 56px;
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 20px;
  background: linear-gradient(135deg, var(--text-primary) 0%, var(--secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 22px;
  color: var(--text-secondary);
  margin-bottom: 40px;
  font-weight: 400;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 600;
  transition: var(--transition);
  cursor: pointer;
  border: none;
  text-decoration: none;
}

.btn-primary {
  background: var(--primary);
  color: white;
}

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

.btn-secondary {
  background: var(--bg-secondary);
  color: var(--text-primary);
}

.btn-secondary:hover {
  background: var(--bg-tertiary);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}

.btn-outline:hover {
  background: var(--primary);
  color: white;
  transform: translateY(-2px);
}

.app-store-badge {
  display: inline-block;
  line-height: 0;
  text-decoration: none;
  transition: var(--transition);
  border-radius: 12px;
  overflow: hidden;
}

.app-store-badge:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.app-store-badge img {
  display: block;
  width: 160px;
  height: 54px;
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 48px;
  margin-top: 60px;
  flex-wrap: wrap;
}

.stat-item {
  text-align: center;
}

.stat-number {
  font-size: 32px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 4px;
}

.stat-label {
  font-size: 14px;
  color: var(--text-secondary);
}

/* Sections */
section {
  padding: 100px 0;
}

.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 60px;
}

.section-tag {
  display: inline-block;
  padding: 6px 14px;
  background: rgba(0, 122, 255, 0.1);
  color: var(--primary);
  border-radius: 100px;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 16px;
}

.section-title {
  font-size: 42px;
  font-weight: 700;
  margin-bottom: 16px;
  line-height: 1.2;
}

.section-desc {
  font-size: 18px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Features */
.features {
  background: var(--bg-secondary);
}

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

.feature-card {
  background: var(--bg-primary);
  padding: 36px;
  border-radius: var(--radius-lg);
  transition: var(--transition);
  border: 1px solid transparent;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--border);
}

.feature-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  margin-bottom: 20px;
}

.feature-icon.blue {
  background: rgba(0, 122, 255, 0.1);
  color: var(--primary);
}

.feature-icon.green {
  background: rgba(52, 199, 89, 0.1);
  color: var(--accent);
}

.feature-icon.purple {
  background: rgba(88, 86, 214, 0.1);
  color: var(--secondary);
}

.feature-icon.orange {
  background: rgba(255, 149, 0, 0.1);
  color: var(--warning);
}

.feature-icon.red {
  background: rgba(255, 59, 48, 0.1);
  color: var(--danger);
}

.feature-icon.teal {
  background: rgba(0, 199, 190, 0.1);
  color: #00C7BE;
}

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

.feature-card p {
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.6;
}

.feature-list {
  list-style: none;
  margin-top: 16px;
}

.feature-list li {
  position: relative;
  padding-left: 24px;
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.feature-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}

/* Screenshots */
.screenshots {
  background: var(--bg-primary);
}

.screenshots-showcase {
  display: flex;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
  padding: 20px 0;
}

.screenshot-device {
  width: 280px;
  border-radius: 40px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 8px solid #1D1D1F;
  background: #1D1D1F;
  transition: var(--transition);
}

.screenshot-device:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.screenshot-device img {
  width: 100%;
  height: auto;
  border-radius: 32px;
}

/* How It Works */
.how-it-works {
  background: var(--bg-secondary);
}

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

.step-card {
  background: var(--bg-primary);
  padding: 40px 32px;
  border-radius: var(--radius-lg);
  text-align: center;
  position: relative;
  transition: var(--transition);
}

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

.step-number {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 700;
  margin: 0 auto 20px;
}

.step-card h3 {
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 12px;
}

.step-card p {
  color: var(--text-secondary);
  font-size: 15px;
}

/* CTA Section */
.cta {
  padding: 100px 0;
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  text-align: center;
  color: white;
}

.cta .section-title {
  color: white;
}

.cta .section-desc {
  color: rgba(255, 255, 255, 0.8);
}

.cta .btn-primary {
  background: white;
  color: var(--primary);
}

.cta .btn-primary:hover {
  background: #f0f0f0;
  color: var(--primary-dark);
}

.cta .btn-outline {
  color: white;
  border-color: white;
}

.cta .btn-outline:hover {
  background: white;
  color: var(--primary);
}

/* Footer */
.footer {
  background: var(--text-primary);
  color: var(--text-tertiary);
  padding: 60px 0 30px;
}

.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-brand {
  max-width: 320px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  font-weight: 600;
  color: white;
  margin-bottom: 16px;
}

.footer-logo-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  overflow: hidden;
  flex-shrink: 0;
}

.footer-logo-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.footer-brand p {
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 20px;
}

.footer-column h4 {
  color: white;
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 20px;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 12px;
}

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

.footer-links a:hover {
  color: white;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-bottom p {
  font-size: 14px;
}

/* Page Header (for sub-pages) */
.page-header {
  padding: 140px 0 80px;
  background: linear-gradient(180deg, #F0F7FF 0%, var(--bg-primary) 100%);
  text-align: center;
}

.page-header h1 {
  font-size: 48px;
  font-weight: 700;
  margin-bottom: 16px;
}

.page-header p {
  font-size: 20px;
  color: var(--text-secondary);
  max-width: 640px;
  margin: 0 auto;
}

/* Content Page (for privacy, support, etc.) */
.content-page {
  padding: 60px 0 100px;
}

.content-wrapper {
  max-width: 800px;
  margin: 0 auto;
  background: var(--bg-primary);
  padding: 48px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
}

.content-wrapper h2 {
  font-size: 28px;
  font-weight: 700;
  margin-top: 36px;
  margin-bottom: 16px;
  color: var(--text-primary);
}

.content-wrapper h2:first-child {
  margin-top: 0;
}

.content-wrapper h3 {
  font-size: 20px;
  font-weight: 600;
  margin-top: 28px;
  margin-bottom: 12px;
  color: var(--text-primary);
}

.content-wrapper p {
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 16px;
}

.content-wrapper ul,
.content-wrapper ol {
  margin-bottom: 16px;
  padding-left: 24px;
}

.content-wrapper li {
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 8px;
}

.content-wrapper strong {
  color: var(--text-primary);
  font-weight: 600;
}

.content-wrapper .last-updated {
  font-size: 14px;
  color: var(--text-tertiary);
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}

/* Contact Cards */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin: 32px 0;
}

.contact-card {
  padding: 28px;
  background: var(--bg-secondary);
  border-radius: var(--radius-md);
  transition: var(--transition);
}

.contact-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.contact-card-icon {
  width: 48px;
  height: 48px;
  background: rgba(0, 122, 255, 0.1);
  color: var(--primary);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  margin-bottom: 16px;
}

.contact-card h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
  margin-top: 0;
}

.contact-card p {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 12px;
}

.contact-card a {
  font-size: 15px;
  font-weight: 500;
}

/* FAQ */
.faq-item {
  margin-bottom: 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: var(--transition);
}

.faq-item:hover {
  border-color: var(--primary);
}

.faq-question {
  padding: 20px 24px;
  background: var(--bg-secondary);
  font-weight: 600;
  font-size: 16px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border: none;
  width: 100%;
  text-align: left;
  color: var(--text-primary);
  font-family: inherit;
}

.faq-answer {
  padding: 20px 24px;
  color: var(--text-secondary);
  line-height: 1.8;
  border-top: 1px solid var(--border);
  display: block;
}

.faq-item:not(.active) .faq-answer {
  display: none;
}

.faq-question .faq-toggle {
  font-size: 20px;
  font-weight: 300;
  line-height: 1;
  flex-shrink: 0;
  margin-left: 12px;
  transition: transform 0.2s;
}

/* Responsive */
@media (max-width: 968px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .steps {
    grid-template-columns: 1fr;
    max-width: 480px;
    margin: 0 auto;
  }

  .footer-inner {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }

  .hero h1 {
    font-size: 42px;
  }

  .section-title {
    font-size: 32px;
  }
}

@media (max-width: 640px) {
  .nav-toggle {
    display: flex;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    flex-direction: column;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    padding: 16px 24px;
    gap: 0;
    border-bottom: 1px solid var(--border);
  }

  .nav-links.nav-open {
    display: flex;
  }

  .nav-links li {
    padding: 12px 0;
    border-bottom: 1px solid var(--bg-tertiary);
  }

  .nav-links li:last-child {
    border-bottom: none;
  }

  .hero {
    padding: 120px 0 60px;
  }

  .hero h1 {
    font-size: 36px;
  }

  .hero-app-icon img {
    width: 96px;
    height: 96px;
    border-radius: 22px;
  }

  .hero-subtitle {
    font-size: 18px;
  }

  .hero-stats {
    gap: 24px;
  }

  .stat-number {
    font-size: 24px;
  }

  section {
    padding: 60px 0;
  }

  .section-title {
  font-size: 36px;
  }

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

  .screenshot-device {
    width: 240px;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .content-wrapper {
    padding: 24px;
  }

  .page-header h1 {
    font-size: 32px;
  }

  .page-header p {
    font-size: 16px;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .cta {
    padding: 60px 0;
  }
}
