/* ===== CSS Custom Properties (Dark Theme Default) ===== */
:root {
  --bg: #1a1a1a;
  --surface: #2d2d2d;
  --text: #f5f5f5;
  --accent-brown: #3E2723;
  --accent-green: #4CAF50;
  --accent-green-light: #66BB6A;
}

/* ===== Light Theme ===== */
[data-theme="light"] {
  --bg: #fafafa;
  --surface: #ffffff;
  --text: #1a1a1a;
}

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

/* ===== Base Styles ===== */
html {
  scroll-behavior: smooth;
}

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

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

.section {
  padding: 5rem 0;
}

/* ===== Typography ===== */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
}

a {
  color: var(--accent-green);
}

/* ===== Theme Transition ===== */
body,
.nav,
.card {
  transition: background-color 0.3s, color 0.3s;
}

/* ===== Navigation ===== */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(26, 26, 26, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1rem 0;
}

[data-theme="light"] .nav {
  background: rgba(250, 250, 250, 0.85);
  border-bottom-color: rgba(0, 0, 0, 0.1);
}

.nav-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

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

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-links a {
  text-decoration: none;
  color: var(--text);
  opacity: 0.8;
  transition: opacity 0.2s;
}

.nav-links a:hover {
  opacity: 1;
}

#theme-toggle {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.25rem;
  padding: 0.25rem;
}

/* ===== Hero Section ===== */
.hero-content {
  display: flex;
  align-items: center;
  gap: 4rem;
  min-height: 80vh;
}

.hero-text {
  flex: 1;
}

.hero-text h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  line-height: 1.1;
  margin-bottom: 1.5rem;
}

.hero-subtitle {
  font-size: 1.25rem;
  opacity: 0.8;
  margin-bottom: 2rem;
  max-width: 500px;
}

.hero-phone {
  flex: 0 0 auto;
}

/* ===== Phone Frame ===== */
.phone-frame {
  width: 280px;
  border-radius: 2rem;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  border: 4px solid #333;
}

.phone-frame img {
  width: 100%;
  display: block;
}

/* ===== Store Badges ===== */
.store-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.store-badge {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  background: var(--accent-brown);
  color: white;
  text-decoration: none;
  transition: transform 0.2s;
}

.store-badge:hover {
  transform: translateY(-2px);
}

.store-badge span {
  font-size: 0.7rem;
  opacity: 0.8;
}

.store-badge strong {
  font-size: 1.1rem;
}

.store-badge-img {
  display: inline-flex;
  align-items: center;
  height: 48px;
  transition: transform 0.2s;
}

.store-badge-img:hover {
  transform: translateY(-2px);
}

.store-badge-img img {
  display: block;
  height: 48px;
  width: auto;
}

/* ===== Section Title ===== */
.section-title {
  text-align: center;
  margin-bottom: 3rem;
  font-size: 2rem;
}

/* ===== Features Grid ===== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.feature-card {
  background: var(--surface);
  border-radius: 1rem;
  padding: 2rem;
  transition: transform 0.2s, box-shadow 0.2s;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.feature-card svg {
  width: 48px;
  height: 48px;
  color: var(--accent-green);
  margin-bottom: 1rem;
}

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

.feature-card p {
  opacity: 0.7;
  font-size: 0.95rem;
}

/* ===== Watch Section ===== */
.watch-subtitle {
  text-align: center;
  opacity: 0.7;
  font-size: 1.15rem;
  max-width: 500px;
  margin: -1.5rem auto 2.5rem;
}

.watch-grid {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.watch-frame {
  text-align: center;
}

.watch-frame img {
  width: 140px;
  border-radius: 2rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  border: 3px solid #333;
  display: block;
}

.watch-label {
  display: block;
  margin-top: 0.75rem;
  font-size: 0.9rem;
  font-weight: 600;
  opacity: 0.7;
}

/* ===== Screenshots Carousel ===== */
.carousel {
  position: relative;
  display: flex;
  align-items: center;
}

.carousel-track {
  display: flex;
  gap: 1.5rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding: 1rem 0;
}

.carousel-track::-webkit-scrollbar {
  display: none;
}

.carousel-item {
  scroll-snap-align: center;
  flex: 0 0 auto;
}

.phone-frame-sm {
  width: 200px;
  border-radius: 1.5rem;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  border: 3px solid #333;
}

.phone-frame-sm img {
  width: 100%;
  display: block;
}

.carousel-btn {
  position: absolute;
  z-index: 10;
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text);
  font-size: 2rem;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.carousel-btn:hover {
  background: var(--accent-green);
  color: white;
}

.carousel-prev {
  left: -24px;
}

.carousel-next {
  right: -24px;
}

/* ===== Download CTA ===== */
.cta-section {
  background: var(--accent-brown);
  text-align: center;
}

.cta-content h2 {
  color: #fff;
  margin-bottom: 0.5rem;
}

.cta-content p {
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 2rem;
}

.cta-content .store-buttons {
  justify-content: center;
}

.cta-content .store-badge {
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

/* ===== Footer ===== */
.footer {
  padding: 2rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-links {
  display: flex;
  gap: 2rem;
}

.footer-links a {
  color: var(--text);
  opacity: 0.6;
  text-decoration: none;
  transition: opacity 0.2s;
}

.footer-links a:hover {
  opacity: 1;
}

.footer-copy {
  opacity: 0.4;
  font-size: 0.875rem;
}

/* ===== Legal Pages ===== */
.legal-page {
  padding-top: 2rem;
}

.legal-content {
  max-width: 800px;
}

.legal-content h1 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.legal-content .last-updated {
  opacity: 0.5;
  font-size: 0.875rem;
  margin-bottom: 2rem;
}

.legal-content h2 {
  font-size: 1.5rem;
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.legal-content h3 {
  font-size: 1.1rem;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}

.legal-content p,
.legal-content ul,
.legal-content ol {
  margin-bottom: 1rem;
  opacity: 0.85;
}

.legal-content ul,
.legal-content ol {
  padding-left: 1.5rem;
}

.legal-content li {
  margin-bottom: 0.25rem;
}

.legal-content a {
  text-decoration: underline;
}

/* ===== FAQ Accordion ===== */
.faq-item {
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

[data-theme="light"] .faq-item {
  border-bottom-color: rgba(0,0,0,0.1);
}

.faq-question {
  width: 100%;
  background: none;
  border: none;
  color: var(--text);
  font-size: 1.1rem;
  font-weight: 600;
  padding: 1.25rem 0;
  text-align: left;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-question::after {
  content: '+';
  font-size: 1.5rem;
  transition: transform 0.2s;
}

.faq-item.open .faq-question::after {
  content: '\2212';
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.faq-item.open .faq-answer {
  max-height: 500px;
}

.faq-answer p {
  padding-bottom: 1.25rem;
}

.faq-answer ul {
  padding-left: 1.5rem;
  padding-bottom: 1rem;
}

.faq-answer li {
  margin-bottom: 0.35rem;
  opacity: 0.85;
}

/* ===== Support Page Intro ===== */
.support-intro {
  font-size: 1.15rem;
  opacity: 0.8;
  margin-bottom: 2rem;
}

/* ===== Contact Section ===== */
.contact-section {
  margin-top: 1rem;
}

.contact-section > p {
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
}

.contact-methods {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  margin-top: 1rem;
}

.contact-card {
  background: var(--surface);
  border-radius: 1rem;
  padding: 1.5rem;
  transition: transform 0.2s, box-shadow 0.2s;
}

.contact-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

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

.contact-card p {
  opacity: 0.7;
  font-size: 0.95rem;
  margin-bottom: 1rem;
}

.contact-link {
  display: inline-block;
  color: var(--accent-green);
  font-weight: 600;
  text-decoration: none;
  transition: opacity 0.2s;
}

.contact-link:hover {
  opacity: 0.8;
  text-decoration: underline;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .hero-content {
    flex-direction: column;
    text-align: center;
    gap: 2rem;
  }

  .hero-subtitle {
    margin: 0 auto 2rem;
  }

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

  .hero-phone {
    order: -1;
  }

  .phone-frame {
    width: 220px;
  }

  .nav-links {
    gap: 1rem;
  }

  .nav-links a {
    display: none;
  }

  .carousel-btn {
    display: none;
  }

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