/* --- THEME & VARIABLES --- */
:root {
  --primary-color: #359eff;
  --primary-hover: #1181e0;
  --background-light: #f5f7f8;
  --foreground-light: #101c22;
  --card-light: #ffffff;
  --border-light: #e5e7eb;
  --text-primary-light: #101c22;
  --text-secondary-light: #374151;
  --text-muted-light: #6b7280;

  --background-dark: #0f1923;
  --foreground-dark: #f6f7f8;
  --card-dark: #1a2830;
  --border-dark: #2d3748;
  --text-primary-dark: #f6f7f8;
  --text-secondary-dark: #d1d5db;
  --text-muted-dark: #9ca3af;

  --border-radius-md: 0.5rem;
  --border-radius-lg: 0.75rem;
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --transition-speed: 0.3s;
}

/* --- GLOBAL & RESET --- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Work Sans", sans-serif;
  background-color: var(--background-light);
  color: var(--text-secondary-light);
  transition: background-color var(--transition-speed),
    color var(--transition-speed);
}

body.dark-mode {
  background-color: var(--background-dark);
  color: var(--text-secondary-dark);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

h1,
h2,
h3 {
  color: var(--text-primary-light);
  font-weight: 700;
}
body.dark-mode h1,
body.dark-mode h2,
body.dark-mode h3 {
  color: var(--text-primary-dark);
}

a {
  color: var(--primary-color);
  text-decoration: none;
  transition: color var(--transition-speed);
}
a:hover {
  color: var(--primary-hover);
}

/* --- HEADER --- */
.header {
  background-color: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border-light);
  position: sticky;
  top: 0;
  z-index: 100;
  transition: background-color var(--transition-speed),
    border-color var(--transition-speed);
}
body.dark-mode .header {
  background-color: rgba(15, 25, 35, 0.8);
  border-bottom: 1px solid var(--border-dark);
}
.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 5.5rem;
}
.logo-container {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.logo-icon {
  width: 40px;
  height: 40px;
}
.logo {
  font-size: 1.5rem;
  font-weight: 700;
}
a.logo-link {
  text-decoration: none;
}
a.logo-link .logo {
  color: var(--text-primary-light);
}
body.dark-mode a.logo-link .logo {
  color: var(--text-primary-dark);
}

.nav ul {
  display: flex;
  list-style: none;
  gap: 2rem;
}
.nav a {
  color: var(--text-secondary-light);
  font-weight: 600;
}
body.dark-mode .nav a {
  color: var(--text-secondary-dark);
}

.header-right {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.theme-switcher {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-muted-light);
  padding: 0.5rem;
  border-radius: 50%;
  display: flex;
  transition: background-color var(--transition-speed),
    color var(--transition-speed);
}
.theme-switcher:hover {
  background-color: var(--border-light);
  color: var(--text-primary-light);
}
body.dark-mode .theme-switcher {
  color: var(--text-muted-dark);
}
body.dark-mode .theme-switcher:hover {
  background-color: var(--border-dark);
  color: var(--text-primary-dark);
}

.menu-icon {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-muted-light);
  padding: 0.5rem;
  border-radius: 50%;
  transition: background-color var(--transition-speed),
    color var(--transition-speed);
}
.menu-icon:hover {
  background-color: var(--border-light);
  color: var(--text-primary-light);
}
body.dark-mode .menu-icon {
  color: var(--text-muted-dark);
}
body.dark-mode .menu-icon:hover {
  background-color: var(--border-dark);
  color: var(--text-primary-dark);
}

/* --- HERO SECTION --- */
.hero {
  padding: 5rem 0;
  text-align: center;
}
.hero-container {
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  gap: 3rem;
  text-align: left;
}
@media (min-width: 768px) {
  .hero-container {
    grid-template-columns: 1fr 1fr;
    text-align: left;
  }
}
.hero-title {
  font-size: 3rem;
  line-height: 1.1;
  margin-bottom: 1.5rem;
}
.hero-subtitle {
  font-size: 1.1rem;
  color: var(--text-muted-light);
  margin-bottom: 2.5rem;
  max-width: 500px;
}
body.dark-mode .hero-subtitle {
  color: var(--text-muted-dark);
}
.availability-note {
  font-size: 0.9rem;
  color: var(--text-muted-light);
  margin-top: 1rem;
}
body.dark-mode .availability-note {
  color: var(--text-muted-dark);
}
.hero-image-container {
  display: flex;
  justify-content: center;
  z-index: calc(-5);
}
.hero-image {
  max-width: 100%;
  height: auto;
  border-radius: 1.5rem;
}

/* --- BUTTONS --- */
.btn {
  display: inline-block;
  font-weight: 600;
  padding: 0.875rem 2rem;
  border-radius: var(--border-radius-md);
  cursor: pointer;
  transition: background-color var(--transition-speed), transform 0.2s;
  border: none;
}
.btn-primary {
  background-color: var(--primary-color);
  color: white;
}
.btn-primary:hover {
  color: #1a2830;
  transform: translateY(-2px);
}

/* --- SECTIONS --- */
section {
  padding: 5rem 0;
}
section h3 {
  font-size: 2.25rem;
  text-align: center;
  margin-bottom: 1rem;
}
.about-section p,
.download-cta p {
  max-width: 700px;
  margin: 0 auto 3rem auto;
  text-align: center;
  font-size: 1.1rem;
  color: var(--text-muted-light);
}
body.dark-mode .about-section p,
body.dark-mode .download-cta p {
  color: var(--text-muted-dark);
}

/* --- FEATURES --- */
.features-section {
  background-color: var(--card-light);
}
body.dark-mode .features-section {
  background-color: var(--card-dark);
}
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}
.feature-card {
  text-align: center;
  padding: 2.5rem 2rem;
  border: 1px solid var(--border-light);
  border-radius: var(--border-radius-lg);
  transition: transform var(--transition-speed),
    box-shadow var(--transition-speed);
}
body.dark-mode .feature-card {
  border-color: var(--border-dark);
}
.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-md);
}
.feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background-color: var(--primary-color);
  color: white;
  margin-bottom: 1.5rem;
}
.feature-icon .material-symbols-outlined {
  font-size: 2rem;
}
.feature-card h4 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}
.feature-card p {
  color: var(--text-muted-light);
}
body.dark-mode .feature-card p {
  color: var(--text-muted-dark);
}

/* --- GALLERY --- */
.image-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
}
.image-gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--border-radius-lg);
  cursor: pointer;
  transition: transform 0.3s, box-shadow 0.3s;
}
.image-gallery img:hover {
  transform: scale(1.05);
  box-shadow: var(--shadow-md);
}

/* --- CTA --- */
.download-cta {
  text-align: center;
}

/* --- FOOTER --- */
.footer {
  background-color: var(--card-light);
  border-top: 1px solid var(--border-light);
  padding: 2.5rem 0;
  text-align: center;
  color: var(--text-muted-light);
}
body.dark-mode .footer {
  background-color: var(--card-dark);
  border-top-color: var(--border-dark);
  color: var(--text-muted-dark);
}
.footer .container {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
@media (min-width: 768px) {
  .footer .container {
    flex-direction: row;
    justify-content: space-between;
  }
}
.footer-links {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
}

/* --- LIGHTBOX --- */
.lightbox {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.85);
  justify-content: center;
  align-items: center;
}
.lightbox.active {
  display: flex;
}
.lightbox-content {
  max-width: 90%;
  max-height: 90vh;
  border-radius: var(--border-radius-md);
}
.close-btn {
  position: absolute;
  top: 2rem;
  right: 2rem;
  font-size: 2.5rem;
  color: white;
  cursor: pointer;
}

/* --- STATIC PAGE (PRIVACY POLICY) --- */
.static-page {
  padding-top: 4rem;
  padding-bottom: 4rem;
}
.static-page h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  text-align: center;
}
.static-page .last-updated {
  text-align: center;
  color: var(--text-muted-light);
  margin-bottom: 3rem;
}
body.dark-mode .static-page .last-updated {
  color: var(--text-muted-dark);
}
.static-page h3 {
  font-size: 1.75rem;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border-light);
  text-align: left;
}
body.dark-mode .static-page h3 {
  border-bottom-color: var(--border-dark);
}
.static-page p,
.static-page li {
  line-height: 1.8;
  color: var(--text-secondary-light);
  margin-bottom: 1rem;
}
body.dark-mode .static-page p,
body.dark-mode .static-page li {
  color: var(--text-secondary-dark);
}
.static-page ul {
  list-style-position: inside;
  padding-left: 1rem;
}

/* --- RESPONSIVE DESIGN --- */

/* Tablets and smaller */
@media (max-width: 768px) {
  .nav {
    display: none;
    position: absolute;
    top: 5.5rem;
    left: 0;
    width: 100%;
    background-color: var(--card-light);
    border-bottom: 1px solid var(--border-light);
    z-index: 99;
  }

  body.dark-mode .nav {
    background-color: var(--card-dark);
    border-bottom-color: var(--border-dark);
  }

  .nav.active {
    display: block;
  }

  .nav ul {
    flex-direction: column;
    align-items: center;
    padding: 1rem 0;
  }

  .nav li {
    width: 100%;
    text-align: center;
  }

  .nav a {
    display: block;
    padding: 1rem;
  }

  .menu-icon {
    display: flex;
  }

  .hero-container {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-content {
    order: 2;
  }

  .hero-image-container {
    order: 1;
  }

  .hero-title {
    font-size: 2.5rem;
  }
}

/* Mobile devices */
@media (max-width: 480px) {
  .container {
    padding: 0 1rem;
  }

  .hero-title {
    font-size: 2rem;
  }

  section h3 {
    font-size: 1.75rem;
  }

  .feature-grid {
    grid-template-columns: 1fr;
  }
}
