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

:root {
  --bg: #0a1a10;
  --bg-elevated: rgba(18, 43, 26, 0.8);
  --accent: #34C759;
  --accent-light: #5dd879;
  --accent-dark: #1B7A42;
  --text: #e8f5e9;
  --text-muted: rgba(255, 255, 255, 0.75); /* WCAG AA: ≥4.5:1 on --bg */
  --radius: 16px;
  --radius-lg: 24px;
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.2);
  --shadow-hover: 0 12px 40px rgba(52, 199, 89, 0.2);
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  line-height: 1.5;
  overflow-x: hidden;
}

/* Subtle gradient mesh background */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(52, 199, 89, 0.08), transparent),
    radial-gradient(ellipse 60% 40% at 80% 80%, rgba(27, 122, 66, 0.06), transparent);
  pointer-events: none;
  z-index: 0;
}

.page {
  position: relative;
  z-index: 1;
  max-width: 640px;
  margin: 0 auto;
  padding: 28px 24px 64px;
}

/* Header & Navigation */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 16px 0 24px;
  margin: 0 -24px;
  padding-left: 24px;
  padding-right: 24px;
  margin-bottom: 16px;
  background: rgba(10, 26, 16, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  animation: fadeSlideDown 0.6s ease-out;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 640px;
  margin: 0 auto;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s ease;
}

.logo:hover {
  transform: scale(1.02);
}

.logo:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}

.logo-icon {
  font-size: 28px;
  filter: drop-shadow(0 2px 8px rgba(52, 199, 89, 0.3));
  transition: transform 0.3s ease;
}

.logo:hover .logo-icon {
  transform: rotate(12deg) scale(1.05);
}

.logo-text {
  font-size: 24px;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.03em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 16px;
}

.nav-link {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s ease;
}

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

.nav-link:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  padding: 10px 18px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
  color: #fff;
  transition: all 0.25s ease;
}

.nav-cta:hover {
  background: linear-gradient(135deg, var(--accent-light) 0%, var(--accent) 100%);
  transform: translateY(-1px);
}

.nav-cta:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: var(--radius);
}

/* Hero */
.hero {
  text-align: center;
  padding: 24px 0 64px;
  animation: fadeSlideUp 0.7s ease-out 0.1s both;
}

.headline {
  font-size: clamp(32px, 6vw, 44px);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.04em;
  margin-bottom: 20px;
  color: var(--text);
}

.subheadline {
  font-size: 18px;
  color: var(--text-muted);
  margin-bottom: 36px;
  max-width: 440px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
  align-items: center;
  margin-bottom: 20px;
}

.store-badge {
  display: inline-block;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.store-badge:hover {
  transform: translateY(-3px) scale(1.03);
}

.store-badge:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: var(--radius);
}

.store-badge:active {
  transform: translateY(-1px) scale(1.01);
}

.store-badge-img {
  display: block;
  height: 44px;
  width: auto;
  object-fit: contain;
}

@media (min-width: 480px) {
  .store-badge-img {
    height: 50px;
  }
}

.coming-soon {
  font-size: 14px;
  color: var(--text-muted);
  margin-top: 12px;
  animation: fadeIn 0.5s ease 0.5s both;
}

/* Features */
.features {
  display: grid;
  gap: 20px;
  padding: 48px 0 56px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.feature {
  text-align: center;
  padding: 28px 20px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(10px);
  transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  animation: fadeSlideUp 0.6s ease-out both;
}

.feature:nth-child(1) { animation-delay: 0.15s; }
.feature:nth-child(2) { animation-delay: 0.25s; }
.feature:nth-child(3) { animation-delay: 0.35s; }

.feature:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(52, 199, 89, 0.2);
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2);
}

.feature-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  color: var(--accent);
  transition: transform 0.3s ease;
}

.feature-icon svg {
  width: 36px;
  height: 36px;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.feature:hover .feature-icon {
  transform: scale(1.15);
}

.feature h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text);
}

.feature p {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.5;
}

/* Section titles */
.section-title {
  font-size: 24px;
  font-weight: 800;
  text-align: center;
  margin-bottom: 8px;
  color: var(--text);
}

.section-subtitle {
  font-size: 16px;
  color: var(--text-muted);
  text-align: center;
  margin-bottom: 32px;
}

/* How it works */
.how-it-works {
  padding: 48px 0 56px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.steps {
  display: flex;
  flex-direction: column;
  gap: 0;
  align-items: stretch;
}

.step {
  text-align: center;
  padding: 24px 20px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: all 0.3s ease;
}

.step:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(52, 199, 89, 0.15);
}

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
  color: #fff;
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 12px;
}

.step h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text);
}

.step p {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.5;
}

.step-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  color: var(--text-muted);
  opacity: 0.5;
}

.step-arrow svg {
  transform: rotate(-90deg);
}

@media (min-width: 600px) {
  .how-it-works .steps {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
  }

  .how-it-works .step {
    flex: 1;
    min-width: 140px;
    max-width: 200px;
  }

  .how-it-works .step-arrow {
    display: none;
  }
}

/* FAQ */
.faq {
  padding: 48px 0 56px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background: rgba(255, 255, 255, 0.03);
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.06);
  overflow: hidden;
  transition: border-color 0.2s ease;
}

.faq-item:hover,
.faq-item[open] {
  border-color: rgba(52, 199, 89, 0.2);
}

.faq-question {
  padding: 18px 20px;
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.faq-question::-webkit-details-marker {
  display: none;
}

.faq-question:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.faq-question::after {
  content: '+';
  font-size: 20px;
  font-weight: 400;
  color: var(--accent);
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.faq-item[open] .faq-question::after {
  content: '−';
}

.faq-answer {
  padding: 0 20px 20px;
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Footer */
.footer {
  text-align: center;
  padding-top: 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  animation: fadeIn 0.6s ease 0.4s both;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 24px;
  margin-bottom: 20px;
}

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

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

.footer-links a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}

.footer-social {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-bottom: 24px;
}

.social-link {
  color: var(--text-muted);
  transition: color 0.2s ease, transform 0.2s ease;
}

.social-link:hover {
  color: var(--accent);
  transform: scale(1.1);
}

.social-link:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}

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

/* Legal pages (Privacy, Terms) */
.legal-content {
  padding: 24px 0 64px;
}

.legal-content h1 {
  font-size: 28px;
  font-weight: 800;
  margin-bottom: 8px;
  color: var(--text);
}

.legal-updated {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 32px;
}

.legal-section {
  margin-bottom: 28px;
}

.legal-section h2 {
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 10px;
}

.legal-section p,
.legal-section li {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 8px;
}

.legal-section ul {
  margin: 8px 0;
  padding-left: 20px;
}

.legal-section a {
  color: var(--accent);
  text-decoration: none;
}

.legal-section a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}

.legal-section a:hover {
  text-decoration: underline;
}

.legal-back {
  margin-top: 40px;
}

.legal-back a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
}

.legal-back a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}

.legal-back a:hover {
  text-decoration: underline;
}

/* 404 page */
.error-content {
  text-align: center;
  padding: 64px 24px 80px;
}

.error-code {
  font-size: 72px;
  font-weight: 800;
  color: var(--accent);
  opacity: 0.4;
  line-height: 1;
  margin-bottom: 16px;
  letter-spacing: -0.04em;
}

.error-content h1 {
  font-size: 28px;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 12px;
}

.error-message {
  font-size: 16px;
  color: var(--text-muted);
  margin-bottom: 28px;
  max-width: 340px;
  margin-left: auto;
  margin-right: auto;
}

.error-cta {
  display: inline-flex;
  align-items: center;
  padding: 12px 24px;
  border-radius: var(--radius);
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
  color: #fff;
  transition: all 0.25s ease;
}

.error-cta:hover {
  background: linear-gradient(135deg, var(--accent-light) 0%, var(--accent) 100%);
  transform: translateY(-2px);
}

.error-cta:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* Animations */
@keyframes fadeSlideUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeSlideDown {
  from {
    opacity: 0;
    transform: translateY(-12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Responsive */
@media (min-width: 480px) {
  .page {
    padding: 32px 28px 80px;
  }

  .header {
    margin: 0 -28px;
    padding-left: 28px;
    padding-right: 28px;
  }

  .headline {
    font-size: 44px;
  }

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

  .feature {
    padding: 32px 24px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .header,
  .hero,
  .feature,
  .coming-soon,
  .step,
  .faq-item,
  .footer {
    animation: none;
  }

  .store-badge,
  .logo,
  .feature,
  .feature-icon {
    transition: none;
  }
}
