@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300;400;500;600;700&display=swap');

/* Static Pages Design System — consistent with main site neo-brutalism */
:root {
  --primary: #FF8BD4;
  --secondary: #00CECB;
  --accent: #FFED66;
  --success: #7DFFB3;
  --warning: #FF6B6B;
  --info: #00F5D4;

  --bg: #f8ffe5;
  --card: #FFFFFF;
  --text: #1A1A1A;
  --muted: #4A4A4A;
  --border-color: #000000;

  --border: 2px solid #000000;
  --shadow: 4px 4px 0px 0px rgba(0, 0, 0, 1);
  --shadow-lg: 7px 7px 0px 0px rgba(0, 0, 0, 1);
  --shadow-sm: 4px 4px 0px 0px rgba(0, 0, 0, 1);
  --radius: 0px;
}

body.dark {
  --bg: #f8ffe5;
  --card: #FFFFFF;
  --text: #1A1A1A;
  --muted: #4A4A4A;
  --border-color: #000000;

  --border: 2px solid #000000;
  --shadow: 4px 4px 0px 0px rgba(0, 0, 0, 1);
  --shadow-lg: 7px 7px 0px 0px rgba(0, 0, 0, 1);
  --shadow-sm: 4px 4px 0px 0px rgba(0, 0, 0, 1);
  --radius: 0px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Space Grotesk', sans-serif;
}

body {
  background: var(--bg);
  color: var(--text);
  transition: background 0.2s ease, color 0.2s ease;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ===== NAV (mirrored from base.css) ===== */
nav {
  background: var(--card);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.nav-wrap {
  max-width: 1200px;
  margin: auto;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  font-size: 20px;
  text-decoration: none;
  color: var(--text);
  transition: transform 0.2s ease;
  letter-spacing: -0.5px;
}

.logo:hover {
  transform: translate(-2px, -2px);
  color: var(--primary);
}

.logo img {
  height: 36px;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Dropdown */
.dropdown {
  position: relative;
}

.dropdown-btn {
  background: var(--card);
  border: var(--border);
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
  box-shadow: var(--shadow-sm);
  font-family: 'Space Grotesk', sans-serif;
}

.dropdown-btn:hover {
  transform: translate(-2px, -2px);
  box-shadow: var(--shadow-lg);
}

.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--card);
  border: var(--border);
  box-shadow: var(--shadow);
  min-width: 180px;
  z-index: 100;
  margin-top: 4px;
}

.dropdown-menu a {
  display: block;
  padding: 10px 16px;
  text-decoration: none;
  color: var(--text);
  font-size: 14px;
  font-weight: 500;
  transition: background 0.15s ease;
}

.dropdown-menu a:hover,
.dropdown-menu a.active {
  background: var(--accent);
}

.dropdown.open .dropdown-menu {
  display: block;
}

/* Hamburger */
.hamburger {
  display: none;
  cursor: pointer;
  font-size: 24px;
  background: none;
  border: none;
  color: var(--text);
}

.hamburger .fa-times {
  display: none;
}

.hamburger.open .fa-bars {
  display: none;
}

.hamburger.open .fa-times {
  display: inline;
}

/* Mobile Menu */
.mobile-menu {
  display: none;
  flex-direction: column;
  background: var(--card);
  border-bottom: var(--border);
  padding: 12px 20px;
  gap: 8px;
}

.mobile-menu.open {
  display: flex;
}

.mobile-dropdown {
  position: relative;
}

.mobile-dropdown-btn {
  width: 100%;
  background: var(--card);
  border: var(--border);
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  box-shadow: var(--shadow-sm);
  font-family: 'Space Grotesk', sans-serif;
}

.mobile-dropdown-menu {
  display: none;
  background: var(--card);
  border: var(--border);
  border-top: none;
  box-shadow: var(--shadow-sm);
}

.mobile-dropdown-menu a {
  display: block;
  padding: 10px 16px;
  text-decoration: none;
  color: var(--text);
  font-size: 14px;
  font-weight: 500;
  transition: background 0.15s ease;
}

.mobile-dropdown-menu a:hover,
.mobile-dropdown-menu a.active {
  background: var(--accent);
}

.mobile-dropdown.open .mobile-dropdown-menu {
  display: block;
}

.theme-toggle {
  background: var(--card);
  border: var(--border);
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  font-family: 'Space Grotesk', sans-serif;
  text-align: left;
}

/* ===== NAV LINKS ===== */
.nav-link {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
  padding: 8px 12px;
  transition: all 0.15s ease;
}

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

.nav-link.active {
  color: var(--primary);
  border-bottom: 2px solid var(--primary);
}

/* ===== STATIC PAGE CONTENT ===== */
.static-page {
  flex: 1;
  max-width: 860px;
  margin: 0 auto;
  padding: 40px 20px 60px;
  width: 100%;
}

.static-container {
  background: var(--card);
  border: var(--border);
  box-shadow: var(--shadow-lg);
  padding: 48px 40px;
}

.static-heading {
  font-size: 36px;
  font-weight: 700;
  letter-spacing: -1px;
  margin-bottom: 8px;
  color: var(--text);
  position: relative;
  display: inline-block;
}

.static-heading::after {
  content: '';
  display: block;
  width: 80px;
  height: 4px;
  background: var(--primary);
  margin-top: 8px;
}

.static-updated {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 36px;
  font-weight: 500;
}

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

.static-section h2 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--text);
  padding-left: 12px;
  border-left: 4px solid var(--secondary);
}

.static-section p {
  font-size: 16px;
  line-height: 1.75;
  color: var(--muted);
}

/* ===== APP DOWNLOAD PAGE ===== */
.app-page {
  max-width: 1000px;
}

.app-hero {
  background: var(--card);
  border: var(--border);
  box-shadow: var(--shadow-lg);
  padding: 60px 40px;
  text-align: center;
  margin-bottom: 32px;
}

.app-hero-icon {
  width: 96px;
  height: 96px;
  margin: 0 auto 24px;
  background: var(--accent);
  border: var(--border);
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.app-hero-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.app-hero-title {
  font-size: 40px;
  font-weight: 700;
  letter-spacing: -1.5px;
  margin-bottom: 12px;
  color: var(--text);
}

.app-hero-subtitle {
  font-size: 18px;
  color: var(--muted);
  max-width: 560px;
  margin: 0 auto 28px;
  line-height: 1.6;
}

.app-hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.app-download-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--primary);
  color: #000;
  border: var(--border);
  padding: 16px 36px;
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: var(--shadow);
  transition: all 0.2s ease;
  font-family: 'Space Grotesk', sans-serif;
}

.app-download-btn:hover {
  transform: translate(-3px, -3px);
  box-shadow: var(--shadow-lg);
}

.app-download-btn:active {
  transform: translate(2px, 2px);
  box-shadow: none;
}

.app-version {
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
  background: var(--bg);
  border: var(--border);
  padding: 8px 16px;
}

/* App Stats Row */
.app-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 32px;
}

.app-stat {
  background: var(--card);
  border: var(--border);
  box-shadow: var(--shadow-sm);
  padding: 24px 16px;
  text-align: center;
}

.app-stat i {
  font-size: 24px;
  color: var(--secondary);
  margin-bottom: 8px;
}

.app-stat-value {
  font-size: 28px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
}

.app-stat-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* App Section Title */
.app-section-title {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.5px;
  margin-bottom: 24px;
  color: var(--text);
  text-align: center;
}

/* App Features Grid */
.app-features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 40px;
}

.app-feature-card {
  background: var(--bg);
  border: var(--border);
  box-shadow: var(--shadow-sm);
  padding: 28px 20px;
  transition: all 0.2s ease;
}

.app-feature-card:hover {
  transform: translate(-2px, -2px);
  box-shadow: var(--shadow);
}

.app-feature-icon {
  width: 48px;
  height: 48px;
  background: var(--accent);
  border: var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.app-feature-icon i {
  font-size: 20px;
  color: var(--text);
}

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

.app-feature-card p {
  font-size: 14px;
  line-height: 1.6;
  color: var(--muted);
}

/* App Bottom CTA */
.app-bottom-cta {
  text-align: center;
  padding: 48px 20px;
  margin-top: 40px;
  background: var(--accent);
  border: var(--border);
  box-shadow: var(--shadow);
}

.app-bottom-cta h2 {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--text);
}

.app-bottom-cta p {
  font-size: 16px;
  color: var(--muted);
  margin-bottom: 24px;
}

.app-bottom-cta .app-download-btn {
  background: var(--primary);
}

/* ===== FOOTER ===== */
.static-footer {
  background: var(--card);
  border-top: var(--border);
  padding: 24px 20px;
  text-align: center;
}

.static-footer-inner {
  max-width: 860px;
  margin: 0 auto;
}

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

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

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

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

/* ===== TOAST ===== */
.toast {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: var(--card);
  border: var(--border);
  box-shadow: var(--shadow);
  padding: 14px 24px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 14px;
  opacity: 0;
  transition: all 0.3s ease;
  z-index: 10000;
}

.toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .nav-right {
    display: none;
  }

  .hamburger {
    display: block;
  }

  .static-container {
    padding: 32px 20px;
  }

  .static-heading {
    font-size: 28px;
  }

  .static-section h2 {
    font-size: 18px;
  }

  .static-section p {
    font-size: 15px;
  }

  .app-hero {
    padding: 40px 20px;
  }

  .app-hero-title {
    font-size: 28px;
  }

  .app-hero-subtitle {
    font-size: 16px;
  }

  .app-stats {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .app-section-title {
    font-size: 24px;
  }
}

@media (max-width: 480px) {
  .static-page {
    padding: 24px 12px 40px;
  }

  .static-container {
    padding: 24px 16px;
  }

  .static-heading {
    font-size: 24px;
  }

  .footer-links {
    gap: 12px;
  }

  .app-hero {
    padding: 32px 16px;
  }

  .app-hero-title {
    font-size: 24px;
  }

  .app-hero-icon {
    width: 72px;
    height: 72px;
    padding: 12px;
  }

  .app-stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .app-stat {
    padding: 16px 12px;
  }

  .app-stat-value {
    font-size: 22px;
  }

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

  .app-download-btn {
    padding: 14px 24px;
    font-size: 16px;
    width: 100%;
    justify-content: center;
  }

  .app-bottom-cta {
    padding: 32px 16px;
  }

  .app-bottom-cta h2 {
    font-size: 22px;
  }
}
