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

:root {
  --mint: #A8E6CF;
  --teal: #6BC5A0;
  --blue: #4A90D9;
  --dark: #1a1a2e;
  --text: #2d3748;
  --text-light: #718096;
  --bg: #ffffff;
  --bg-alt: #f7fafc;
  --card-bg: #ffffff;
  --border: #e2e8f0;
  --gradient: linear-gradient(135deg, var(--mint), var(--blue));
}

@media (prefers-color-scheme: dark) {
  :root {
    --text: #e2e8f0;
    --text-light: #a0aec0;
    --bg: #1a1a2e;
    --bg-alt: #16213e;
    --card-bg: #1e2a4a;
    --border: #2d3748;
  }
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a:hover {
  text-decoration: underline;
}

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

/* ===== Layout ===== */
.container {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ===== Navigation ===== */
.nav {
  position: sticky;
  top: 0;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  z-index: 100;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

@media (prefers-color-scheme: dark) {
  .nav {
    background: rgba(26, 26, 46, 0.9);
  }
}

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

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 1.125rem;
  color: var(--text);
  text-decoration: none;
}

.nav-brand:hover {
  text-decoration: none;
}

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

.nav-links {
  display: flex;
  gap: 1.5rem;
  list-style: none;
}

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

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

/* ===== Hero ===== */
.hero {
  background: var(--gradient);
  padding: 5rem 0 4rem;
  text-align: center;
  color: #1a1a2e;
}

.hero-icon {
  width: 120px;
  height: 120px;
  border-radius: 28px;
  margin: 0 auto 1.5rem;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.hero h1 {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
}

.hero .tagline {
  font-size: 1.25rem;
  opacity: 0.85;
  margin-bottom: 2rem;
}

.app-store-badge {
  display: inline-block;
  transition: transform 0.2s;
}

.app-store-badge:hover {
  transform: scale(1.05);
}

.app-store-badge img {
  height: 54px;
  width: auto;
}

.app-store-placeholder {
  display: inline-block;
  background: #000;
  color: #fff;
  padding: 0.75rem 1.5rem;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 600;
  transition: transform 0.2s;
}

.app-store-placeholder:hover {
  transform: scale(1.05);
  text-decoration: none;
  color: #fff;
}

/* ===== Features ===== */
.features {
  padding: 5rem 0;
  background: var(--bg-alt);
}

.section-title {
  text-align: center;
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 3rem;
}

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

.feature-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2rem;
  text-align: center;
  transition: transform 0.2s, box-shadow 0.2s;
}

.feature-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.feature-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.feature-card h3 {
  font-size: 1.125rem;
  margin-bottom: 0.5rem;
}

.feature-card p {
  color: var(--text-light);
  font-size: 0.95rem;
}

/* ===== Screenshots ===== */
.screenshots {
  padding: 5rem 0;
}

.screenshots-scroll {
  display: flex;
  gap: 1.5rem;
  overflow-x: auto;
  padding: 1rem 0 2rem;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

.screenshots-scroll::-webkit-scrollbar {
  height: 6px;
}

.screenshots-scroll::-webkit-scrollbar-track {
  background: var(--border);
  border-radius: 3px;
}

.screenshots-scroll::-webkit-scrollbar-thumb {
  background: var(--teal);
  border-radius: 3px;
}

.phone-frame {
  flex-shrink: 0;
  width: 240px;
  background: var(--dark);
  border-radius: 28px;
  padding: 12px;
  scroll-snap-align: center;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.phone-frame img {
  border-radius: 18px;
  width: 100%;
}

/* ===== Footer ===== */
.footer {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  padding: 2.5rem 0;
  text-align: center;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  list-style: none;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--text-light);
  font-size: 0.9rem;
}

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

.footer-credit {
  color: var(--text-light);
  font-size: 0.85rem;
}

/* ===== Page Content (Privacy, Terms, Support) ===== */
.page-header {
  background: var(--gradient);
  padding: 3rem 0;
  text-align: center;
  color: #1a1a2e;
}

.page-header h1 {
  font-size: 2rem;
  font-weight: 800;
}

.page-content {
  padding: 3rem 0;
  max-width: 720px;
  margin: 0 auto;
}

.page-content .container {
  max-width: 720px;
}

.page-content h2 {
  font-size: 1.35rem;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

.page-content p,
.page-content li {
  color: var(--text-light);
  margin-bottom: 0.75rem;
  line-height: 1.7;
}

.page-content ul {
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}

.page-content a {
  color: var(--blue);
}

.last-updated {
  color: var(--text-light);
  font-size: 0.85rem;
  margin-top: 0.5rem;
}

/* ===== Support Page ===== */
.contact-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2rem;
  margin-bottom: 1.5rem;
  text-align: center;
}

.contact-card h3 {
  margin-bottom: 0.5rem;
}

.contact-card p {
  color: var(--text-light);
  margin-bottom: 0;
}

.faq-item {
  border-bottom: 1px solid var(--border);
  padding: 1.5rem 0;
}

.faq-item:last-child {
  border-bottom: none;
}

.faq-item h3 {
  font-size: 1.05rem;
  margin-bottom: 0.5rem;
}

.faq-item p {
  color: var(--text-light);
  margin-bottom: 0;
}

/* ===== Responsive ===== */
@media (max-width: 640px) {
  .hero {
    padding: 3rem 0 2.5rem;
  }

  .hero h1 {
    font-size: 2rem;
  }

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

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

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

  .phone-frame {
    width: 200px;
  }

  .nav-links {
    gap: 1rem;
  }

  .nav-links a {
    font-size: 0.8rem;
  }

  .section-title {
    font-size: 1.5rem;
  }
}
