/* CSS Variables for Theme */
:root {
  /* Light Mode (Default) */
  --bg-primary: #ffffff;
  --bg-secondary: #f5f5f7;
  --bg-tertiary: #fafafa;
  --text-primary: #1d1d1f;
  --text-secondary: #86868b;
  --text-tertiary: #6e6e73;
  --nav-bg: rgba(255, 255, 255, 0.72);
  --nav-border: rgba(0, 0, 0, 0.08);
  --card-bg: rgba(255, 255, 255, 1);
  --card-border: rgba(255, 255, 255, 0.15);
  --glass-bg: rgba(255, 255, 255, 0.45);
  --glass-border: rgba(0, 0, 0, 0.1);
  --shadow-color: rgba(0, 0, 0, 0.08);
  --footer-bg: #f5f5f7;
  --link-color: #0066cc;
  --btn-primary-bg: #0071e3;
  --btn-primary-text: #ffffff;
  --btn-secondary-bg: #ffffff;
  --btn-secondary-text: #1d1d1f;
  --btn-secondary-border: rgba(0, 0, 0, 0.16);
}

/* Dark Mode */
[data-theme="dark"] {
  --bg-primary: #000000;
  --bg-secondary: #1d1d1f;
  --bg-tertiary: #121212;
  --text-primary: #f5f5f7;
  --text-secondary: #a1a1a6;
  --text-tertiary: #86868b;
  --nav-bg: rgba(0, 0, 0, 0.65);
  --nav-border: rgba(255, 255, 255, 0.1);
  --card-bg: rgba(29, 29, 31, 1);
  --card-border: rgba(255, 255, 255, 0.08);
  --glass-bg: rgba(255, 255, 255, 0.08);
  --glass-border: rgba(255, 255, 255, 0.15);
  --shadow-color: rgba(0, 0, 0, 0.3);
  --footer-bg: #1d1d1f;
  --link-color: #2997ff;
  --btn-primary-bg: #0071e3;
  --btn-primary-text: #ffffff;
  --btn-secondary-bg: #1d1d1f;
  --btn-secondary-text: #f5f5f7;
  --btn-secondary-border: rgba(255, 255, 255, 0.2);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--text-primary);
  background-color: transparent;
  line-height: 1.47059;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  transition: background-color 0.3s ease, color 0.3s ease;
}

/* Navigation - Glassmorphism */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 52px;
  background: var(--nav-bg);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  z-index: 9999;
  border-bottom: 1px solid var(--nav-border);
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

.nav-container {
  max-width: 1024px;
  margin: 0 auto;
  padding: 0 22px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

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

.nav-logo {
  font-size: 21px;
  font-weight: 600;
  color: var(--text-primary);
  text-decoration: none;
  letter-spacing: -0.5px;
  display: flex;
  align-items: center;
  gap: 8px;
  opacity: 0.9;
  transition: opacity 0.3s;
}

.nav-logo:hover {
  opacity: 1;
}

.nav-logo svg, .nav-logo img {
  fill: var(--text-primary);
  display: flex;
  align-items: center;
  height: 28px;
  width: auto;
}

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

.nav-link {
  font-size: 12px;
  color: var(--text-primary);
  text-decoration: none;
  opacity: 0.8;
  transition: opacity 0.3s;
  letter-spacing: -0.01em;
  display: flex;
  align-items: center;
  height: 52px;
  line-height: 52px;
}

/* Theme Toggle Button */
.theme-toggle {
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  transition: background-color 0.3s;
  margin-left: 8px;
}

.theme-toggle:hover {
  background: var(--nav-border);
}

.theme-toggle svg {
  width: 20px;
  height: 20px;
}

.theme-toggle .sun-icon {
  display: none;
}

.theme-toggle .moon-icon {
  display: block;
}

[data-theme="light"] .theme-toggle .sun-icon {
  display: block;
}

[data-theme="light"] .theme-toggle .moon-icon {
  display: none;
}

/* Theme Dropdown in Nav */
.theme-dropdown {
  position: relative;
  display: flex;
  align-items: center;
  height: 52px;
}

.nav-link:hover {
  opacity: 1;
}



.theme-dropdown-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: transparent;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 12px;
  color: var(--text-primary);
  transition: all 0.2s ease;
}

.theme-dropdown-btn:hover {
  background: var(--nav-bg);
}

.theme-dropdown-btn svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.theme-dropdown-btn .arrow {
  width: 12px;
  height: 12px;
  transition: transform 0.2s ease;
}

.theme-dropdown.open .theme-dropdown-btn .arrow {
  transform: rotate(180deg);
}

.theme-dropdown-menu {
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 8px;
  background: var(--nav-bg);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border: 1px solid var(--nav-border);
  border-radius: 12px;
  padding: 6px;
  min-width: 160px;
  box-shadow: 0 8px 32px var(--shadow-color);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.2s ease;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.theme-dropdown.open .theme-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.theme-dropdown-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 13px;
  color: var(--text-primary);
  background: transparent;
  border: none;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.theme-dropdown-item:hover {
  background: var(--glass-bg);
}

.theme-dropdown-item.active {
  background: var(--glass-bg);
  color: var(--btn-primary-bg);
}

.theme-dropdown-item.active svg {
  color: var(--btn-primary-bg);
}

.theme-dropdown-item svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
  flex-shrink: 0;
}

/* Mobile Menu Toggle */
.nav-menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: var(--text-primary);
  margin-left: auto;
  margin-right: 8px;
}

.nav-menu-toggle svg {
  width: 24px;
  height: 24px;
}

@media (orientation: portrait) {
  .nav-menu-toggle {
    display: none;
  }
  
  .nav-links {
    display: flex;
    position: static;
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border: none;
    padding: 0;
    flex-direction: row;
    gap: 16px;
    height: 52px;
    align-items: center;
  }
  
  .nav-links.open {
    display: flex;
  }
  
  .nav-link {
    padding: 14px 0;
    border-bottom: none;
    font-size: 14px;
    height: auto;
    line-height: normal;
    width: auto;
    min-height: 44px;
    display: flex;
    align-items: center;
  }
  
  .nav-link:last-child {
    border-bottom: none;
  }
  
  .theme-dropdown {
    margin-left: 0;
    height: auto;
    width: auto;
    padding: 0;
  }
  
  .theme-dropdown-btn {
    padding: 6px 10px;
    font-size: 14px;
    width: auto;
    justify-content: flex-start;
    margin-right: auto;
  }
  
  .theme-dropdown-btn span {
    display: none;
  }
  
  .theme-dropdown-btn .arrow {
    display: none;
  }
  
  /* 竖屏模式下主题选项直接显示 - 使用纯色背景 */
  .theme-dropdown-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    display: flex !important;
    box-shadow: none;
    border: none;
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    padding: 0;
    border-radius: 0;
    margin-left: 0;
    margin-right: 0;
    flex-direction: row;
    gap: 8px;
    margin-top: 8px;
  }
  
  .theme-dropdown-item {
    padding: 10px 12px;
    background: #f5f5f7;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 8px;
    justify-content: center;
    flex: 1;
    color: #1d1d1f;
  }
  
  [data-theme="dark"] .theme-dropdown-item {
    background: #1d1d1f;
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #f5f5f7;
  }
  
  .theme-dropdown-item:hover {
    background: #e8e8ed;
  }
  
  [data-theme="dark"] .theme-dropdown-item:hover {
    background: #2d2d2f;
  }
  
  .theme-dropdown-item.active {
    border-color: #0071e3;
  }
  
  .nav-container {
    padding: 0 16px;
    position: relative;
  }
  
  .nav-logo {
    font-size: 18px;
  }
  
  .nav-logo svg {
    width: 18px;
    height: 18px;
  }

  /* Dark mode mobile nav links */
  [data-theme="dark"] .nav-links {
    background: rgba(29, 29, 31, 0.72);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }
}

/* Hero Section */
.hero {
  position: relative;
  min-height: 66.67vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  overflow: hidden;
  transition: background-color 0.3s ease;
}

.hero-content {
  text-align: center;
  z-index: 2;
  padding: 0 20px;
  margin-top: -48px;
}

.hero-title {
  font-size: 56px;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.015em;
  margin-bottom: 12px;
  margin-top: 60px;
  text-shadow: 0 0 30px rgba(0, 0, 0, 0.8), 0 0 60px rgba(0, 0, 0, 0.5);
}

[data-theme="light"] .hero-title {
  color: #1d1d1f;
  text-shadow: 0 0 30px rgba(255, 255, 255, 0.9), 0 0 60px rgba(255, 255, 255, 0.6);
}

.hero-subtitle {
  font-size: 20px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.95);
  margin-bottom: 32px;
  letter-spacing: 0.004em;
  text-shadow: 0 0 20px rgba(0, 0, 0, 0.7), 0 0 40px rgba(0, 0, 0, 0.4);
}

[data-theme="light"] .hero-subtitle {
  color: rgba(29, 29, 31, 0.9);
  text-shadow: 0 0 20px rgba(255, 255, 255, 0.8), 0 0 40px rgba(255, 255, 255, 0.5);
}

.hero-slogan {
  font-size: 36px;
  font-weight: 600;
  background: linear-gradient(90deg, #fff, #a8c0ff, #ffafbd, #fff);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: sloganShimmer 3s linear infinite;
  margin-top: 16px;
  text-shadow: none;
  filter: drop-shadow(0 0 10px rgba(168, 192, 255, 0.5));
}

@keyframes sloganShimmer {
  0% {
    background-position: 0% center;
  }
  100% {
    background-position: 200% center;
  }
}

[data-theme="light"] .hero-slogan {
  background: linear-gradient(90deg, #1d1d1f, #5a7bf7, #ff6b9d, #1d1d1f);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  filter: drop-shadow(0 0 8px rgba(90, 123, 247, 0.4));
}

.hero-cta {
  margin-top: 24px;
}

.btn-primary {
  display: inline-block;
  padding: 12px 28px;
  background: var(--btn-primary-bg);
  color: var(--btn-primary-text);
  font-size: 17px;
  font-weight: 400;
  text-decoration: none;
  border-radius: 980px;
  transition: all 0.3s;
  letter-spacing: -0.022em;
}

.btn-primary:hover {
  opacity: 0.9;
  transform: scale(1.02);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: var(--btn-secondary-bg);
  color: var(--btn-secondary-text);
  font-size: 15px;
  font-weight: 400;
  text-decoration: none;
  border-radius: 980px;
  border: 1px solid var(--btn-secondary-border);
  transition: all 0.3s;
  letter-spacing: -0.01em;
}

.btn-secondary:hover {
  opacity: 0.9;
  transform: scale(1.02);
  box-shadow: 0 2px 12px var(--shadow-color);
}

.hero-gradient {
  display: none;
}

/* Page Background - Rich Flowing Light Effect */
.page-bg-effect {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: -1;
  pointer-events: none;
  background: 
    radial-gradient(ellipse at 5% 15%, rgba(255, 107, 107, 0.8) 0%, transparent 30%),
    radial-gradient(ellipse at 95% 25%, rgba(78, 205, 196, 0.75) 0%, transparent 30%),
    radial-gradient(ellipse at 45% 55%, rgba(155, 89, 182, 0.7) 0%, transparent 35%),
    radial-gradient(ellipse at 85% 35%, rgba(52, 152, 219, 0.7) 0%, transparent 30%),
    radial-gradient(ellipse at 15% 75%, rgba(241, 196, 15, 0.65) 0%, transparent 30%),
    radial-gradient(ellipse at 75% 65%, rgba(255, 107, 107, 0.6) 0%, transparent 30%),
    radial-gradient(ellipse at 25% 45%, rgba(78, 205, 196, 0.6) 0%, transparent 30%),
    radial-gradient(ellipse at 65% 10%, rgba(255, 159, 67, 0.7) 0%, transparent 30%),
    radial-gradient(ellipse at 10% 90%, rgba(46, 204, 113, 0.65) 0%, transparent 30%),
    radial-gradient(ellipse at 90% 10%, rgba(155, 89, 182, 0.65) 0%, transparent 30%),
    radial-gradient(ellipse at 35% 85%, rgba(52, 152, 219, 0.6) 0%, transparent 30%),
    radial-gradient(ellipse at 20% 20%, rgba(255, 99, 71, 0.6) 0%, transparent 30%),
    radial-gradient(ellipse at 80% 80%, rgba(138, 43, 226, 0.55) 0%, transparent 30%),
    radial-gradient(ellipse at 50% 5%, rgba(255, 215, 0, 0.5) 0%, transparent 25%),
    radial-gradient(ellipse at 5% 50%, rgba(0, 255, 255, 0.45) 0%, transparent 30%),
    radial-gradient(ellipse at 95% 55%, rgba(255, 0, 128, 0.4) 0%, transparent 30%),
    radial-gradient(ellipse at 30% 95%, rgba(0, 128, 255, 0.45) 0%, transparent 30%),
    radial-gradient(ellipse at 70% 45%, rgba(128, 0, 255, 0.4) 0%, transparent 30%),
    linear-gradient(135deg, #0a0a1a 0%, #1a1a3e 25%, #16213e 50%, #1a0a2e 75%, #0f1419 100%);
  background-size: 500% 500%;
  animation: richFlow 20s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

[data-theme="light"] .page-bg-effect {
  background: 
    radial-gradient(ellipse at 5% 15%, rgba(255, 107, 107, 0.9) 0%, transparent 30%),
    radial-gradient(ellipse at 95% 25%, rgba(78, 205, 196, 0.85) 0%, transparent 30%),
    radial-gradient(ellipse at 45% 55%, rgba(155, 89, 182, 0.8) 0%, transparent 35%),
    radial-gradient(ellipse at 85% 35%, rgba(52, 152, 219, 0.8) 0%, transparent 30%),
    radial-gradient(ellipse at 15% 75%, rgba(241, 196, 15, 0.75) 0%, transparent 30%),
    radial-gradient(ellipse at 75% 65%, rgba(255, 107, 107, 0.7) 0%, transparent 30%),
    radial-gradient(ellipse at 25% 45%, rgba(78, 205, 196, 0.7) 0%, transparent 30%),
    radial-gradient(ellipse at 65% 10%, rgba(255, 159, 67, 0.8) 0%, transparent 30%),
    radial-gradient(ellipse at 10% 90%, rgba(46, 204, 113, 0.75) 0%, transparent 30%),
    radial-gradient(ellipse at 90% 10%, rgba(155, 89, 182, 0.75) 0%, transparent 30%),
    radial-gradient(ellipse at 35% 85%, rgba(52, 152, 219, 0.7) 0%, transparent 30%),
    radial-gradient(ellipse at 20% 20%, rgba(255, 99, 71, 0.7) 0%, transparent 30%),
    radial-gradient(ellipse at 80% 80%, rgba(138, 43, 226, 0.65) 0%, transparent 30%),
    radial-gradient(ellipse at 50% 5%, rgba(255, 215, 0, 0.6) 0%, transparent 25%),
    radial-gradient(ellipse at 5% 50%, rgba(0, 255, 255, 0.55) 0%, transparent 30%),
    radial-gradient(ellipse at 95% 55%, rgba(255, 0, 128, 0.5) 0%, transparent 30%),
    radial-gradient(ellipse at 30% 95%, rgba(0, 128, 255, 0.55) 0%, transparent 30%),
    radial-gradient(ellipse at 70% 45%, rgba(128, 0, 255, 0.5) 0%, transparent 30%),
    linear-gradient(135deg, #f8f8fc 0%, #f0f0f8 25%, #e8e8f0 50%, #f0e8f8 75%, #f8f8fc 100%);
  background-size: 500% 500%;
  animation: richFlow 20s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

@keyframes richFlow {
  0% {
    background-position: 0% 0%;
  }
  10% {
    background-position: 20% 10%;
  }
  20% {
    background-position: 40% 30%;
  }
  30% {
    background-position: 60% 15%;
  }
  40% {
    background-position: 80% 40%;
  }
  50% {
    background-position: 100% 60%;
  }
  60% {
    background-position: 80% 80%;
  }
  70% {
    background-position: 60% 100%;
  }
  80% {
    background-position: 40% 80%;
  }
  90% {
    background-position: 20% 60%;
  }
  100% {
    background-position: 0% 0%;
  }
}

/* Hero Background - Use page background effect only */
.hero-bg-image {
  display: none;
}

/* App Card Background */
.app-bg-solid {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(128, 128, 128, 0.3);
  z-index: 0;
}

/* App Card Background Image */
.app-bg-image {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.4;
  z-index: 1;
  pointer-events: none;
}

.app-showcase .app-bg-image[data-app="fitness"] {
  background-image: url('中间文件/运动派蒙.png');
}

.app-showcase .app-bg-image[data-app="marathon"] {
  background-image: url('中间文件/马拉派蒙.png');
}

.app-showcase .app-bg-image[data-app="outdoor"] {
  background-image: url('中间文件/越野派蒙.png');
}

@media (orientation: portrait) {
  .hero {
    min-height: 66.67vh;
    padding: 100px 20px 40px;
  }
  
  .hero-title {
    font-size: 36px;
  }
  
  .hero-subtitle {
    font-size: 16px;
  }
}

@media (orientation: landscape) and (max-height: 768px) {
  .hero-title {
    font-size: 64px;
  }
}

/* Apps Section */
.apps-section {
  background: transparent;
  padding: 12px;
  transition: background-color 0.3s ease;
}

.apps-container {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

@media (orientation: portrait) {
  .apps-container {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  
  .apps-section {
    padding: 12px;
  }
  
  .app-showcase {
    min-height: 280px;
    border-radius: 20px;
    padding: 28px 12px;
  }
  
  .app-showcase-name {
    font-size: 24px;
  }
  
  .app-showcase-tagline {
    font-size: 14px;
  }
  
  .app-logo {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    margin-bottom: 12px;
  }
  
  .link-arrow {
    font-size: 13px;
  }
}

@media (orientation: landscape) and (max-height: 768px) {
  .apps-container {
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
  }
  
  .app-showcase {
    min-height: 350px;
    padding: 40px 16px;
  }
  
  .app-showcase-name {
    font-size: 24px;
  }
  
  .app-showcase-tagline {
    font-size: 14px;
  }
  
  .app-logo {
    width: 64px;
    height: 64px;
    border-radius: 18px;
  }
}

/* App Showcase Card - Glassmorphism */
.app-showcase {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  min-height: 320px;
  text-decoration: none;
  overflow: hidden;
  border-radius: 28px;
  transition: transform 0.3s, box-shadow 0.3s;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  box-shadow: 0 4px 24px var(--shadow-color);
  z-index: 1;
}

.app-showcase:hover {
  box-shadow: 0 12px 40px var(--shadow-color);
}

.app-showcase-content {
  text-align: center;
  z-index: 2;
}

.app-logo {
  width: 80px;
  height: 80px;
  margin: 0 auto 20px;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 8px 32px var(--shadow-color);
}

.app-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.app-showcase-name {
  font-size: 24px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
  letter-spacing: -0.003em;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.app-showcase-tagline {
  font-size: 14px;
  font-weight: 600;
  color: #333333;
  margin-bottom: 16px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

[data-theme="dark"] .app-showcase-tagline {
  color: #f5f5f7;
}

.app-showcase-links {
  margin-top: 8px;
}

.link-arrow {
  font-size: 17px;
  color: var(--link-color);
  text-decoration: none;
}

.link-arrow:hover {
  text-decoration: underline;
}

/* App Backgrounds - Gradient Overlays */
.fitness-bg {
  background: linear-gradient(180deg, 
    rgba(255, 107, 53, 0.15) 0%, 
    var(--card-bg) 50%,
    var(--card-bg) 100%);
}

.marathon-bg {
  background: linear-gradient(180deg, 
    rgba(88, 86, 214, 0.15) 0%, 
    var(--card-bg) 50%,
    var(--card-bg) 100%);
}

.outdoor-bg {
  background: linear-gradient(180deg, 
    rgba(52, 199, 89, 0.15) 0%, 
    var(--card-bg) 50%,
    var(--card-bg) 100%);
}

/* Footer */
.footer {
  background: var(--nav-bg);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-top: 1px solid var(--nav-border);
  padding: 40px 0 20px;
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

.footer-container {
  max-width: 1024px;
  margin: 0 auto;
  padding: 0 22px;
}

.footer-top {
  display: flex;
  gap: 80px;
  padding-bottom: 30px;
  border-bottom: 1px solid var(--nav-border);
}

.footer-column h4 {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}

.footer-column ul {
  list-style: none;
}

.footer-column li {
  margin-bottom: 8px;
}

.footer-column a {
  font-size: 12px;
  color: var(--text-tertiary);
  text-decoration: none;
  transition: color 0.3s;
}

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

/* Footer Social & Contact */
.footer-contact {
  display: flex;
  gap: 24px;
  align-items: center;
}

.footer-contact-item {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 13px;
  transition: color 0.3s;
}

.footer-contact-item:hover {
  color: var(--text-primary);
}

.footer-contact-item svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.footer-bottom {
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-bottom p {
  font-size: 12px;
  color: var(--text-secondary);
  margin: 0;
}

@media (orientation: portrait) {
  .footer {
    padding: 32px 0 16px;
  }
  
  .footer-container {
    padding: 0 16px;
  }
  
  .footer-top {
    flex-direction: column;
    gap: 24px;
    padding-bottom: 24px;
  }
  
  .footer-column h4 {
    font-size: 11px;
    margin-bottom: 10px;
  }
  
  .footer-column li {
    margin-bottom: 6px;
  }
  
  .footer-column a {
    font-size: 11px;
  }
  
  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 12px;
    padding-top: 16px;
  }
  
  .footer-contact {
    justify-content: center;
    margin-top: 16px;
    gap: 16px;
  }
  
  .footer-contact-item {
    font-size: 12px;
  }
  
  .footer-contact-item svg {
    width: 18px;
    height: 18px;
  }
  
  .footer-bottom p {
    font-size: 11px;
  }
}

/* App Page Styles */
.app-page {
  background: var(--bg-primary);
  transition: background-color 0.3s ease;
}

.app-hero-section {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 100px 20px 60px;
  position: relative;
  overflow: hidden;
}

/* App Hero with Texture Background */
.app-hero-with-texture {
  position: relative;
}

.app-hero-texture {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 40%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0.6;
  z-index: 0;
}

.app-hero-content {
  position: relative;
  z-index: 1;
}

.app-hero-logo {
  width: 120px;
  height: 120px;
  border-radius: 28px;
  overflow: hidden;
  margin: 0 auto 32px;
  box-shadow: 0 20px 60px var(--shadow-color);
}

.app-hero-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

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

.app-hero-tagline {
  font-size: 18px;
  font-weight: 400;
  color: var(--text-secondary);
  margin-bottom: 32px;
}

.app-download-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 14px 32px;
  background: var(--btn-secondary-bg);
  color: var(--btn-secondary-text);
  font-size: 17px;
  font-weight: 500;
  text-decoration: none;
  border-radius: 980px;
  border: 1px solid var(--btn-secondary-border);
  transition: all 0.3s;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.app-download-btn:hover {
  transform: scale(1.02);
  box-shadow: 0 4px 20px var(--shadow-color);
}

.app-download-btn svg {
  fill: var(--btn-secondary-text);
}

.app-hero-mockup {
  margin-top: 60px;
  max-width: 900px;
  width: 100%;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 20px 60px var(--shadow-color);
}

.app-hero-mockup img {
  width: 100%;
  height: auto;
  display: block;
}

/* App Screenshots Carousel */
.app-screenshots {
  margin-top: 60px;
  position: relative;
  max-width: 100%;
  overflow: visible;
}

.screenshots-wrapper {
  overflow: hidden;
  padding: 0 8px;
}

.screenshots-container {
  display: flex;
  transition: transform 0.3s ease-in-out;
  overflow-x: auto;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
  gap: 12px;
  padding: 8px 0;
}

.screenshots-container::-webkit-scrollbar {
  display: none;
}

.screenshot-slide {
  flex: 0 0 auto;
  scroll-snap-align: center;
}

.screenshot-slide img {
  width: 260px;
  height: auto;
  display: block;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

@media (orientation: portrait) {
  .app-screenshots {
    padding: 0 4px;
  }
}

.screenshots-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 16px;
}

.screenshots-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--text-tertiary);
  opacity: 0.4;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  padding: 0;
}

.screenshots-dot.active {
  opacity: 1;
  background: var(--btn-primary-bg);
  transform: scale(1.2);
}

.screenshots-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transition: all 0.3s ease;
  z-index: 10;
  color: var(--text-primary);
}

.screenshots-nav:hover {
  background: rgba(255, 255, 255, 1);
  transform: translateY(-50%) scale(1.1);
}

.screenshots-nav.prev {
  left: 16px;
}

.screenshots-nav.next {
  right: 16px;
}

.screenshots-nav svg {
  width: 24px;
  height: 24px;
}

@media (max-width: 768px) {
  .screenshots-nav {
    width: 36px;
    height: 36px;
  }
  
  .screenshots-nav svg {
    width: 20px;
    height: 20px;
  }
  
  .screenshots-nav.prev {
    left: 8px;
  }
  
  .screenshots-nav.next {
    right: 8px;
  }
}

@media (orientation: portrait) {
  .app-hero-title {
    font-size: 36px;
  }

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

  .app-hero-logo {
    width: 72px;
    height: 72px;
    border-radius: 18px;
  }

  .app-download-btn {
    padding: 10px 24px;
    font-size: 14px;
  }
}

/* App Hero Backgrounds */
.fitness-hero {
  background: linear-gradient(180deg, 
    rgba(255, 107, 53, 0.1) 0%, 
    var(--bg-primary) 60%);
}

.marathon-hero {
  background: linear-gradient(180deg, 
    rgba(88, 86, 214, 0.1) 0%, 
    var(--bg-primary) 60%);
}

.outdoor-hero {
  background: linear-gradient(180deg, 
    rgba(52, 199, 89, 0.1) 0%, 
    var(--bg-primary) 60%);
}

/* Privacy Page */
.privacy-hero {
  padding: 140px 20px 60px;
  text-align: center;
  background: var(--bg-primary);
  transition: background-color 0.3s ease;
}

.privacy-content-wrapper {
  max-width: 720px;
  margin: 0 auto;
  padding: 60px 20px;
}

.privacy-content-wrapper h2 {
  font-size: 24px;
  font-weight: 600;
  color: var(--text-primary);
  margin: 40px 0 16px;
}

.privacy-content-wrapper h3 {
  font-size: 19px;
  font-weight: 600;
  color: var(--text-primary);
  margin: 24px 0 12px;
}

.privacy-content-wrapper p {
  font-size: 17px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 16px;
}

.privacy-content-wrapper ul {
  margin: 16px 0;
  padding-left: 24px;
}

.privacy-content-wrapper li {
  font-size: 17px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 8px;
}

.privacy-content-wrapper strong {
  color: var(--text-primary);
  font-weight: 600;
}

/* Glass Card Component */
.glass-card {
  background: var(--glass-bg);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  padding: 32px;
  box-shadow: 0 4px 24px var(--shadow-color);
}

/* Smooth transitions for theme-related properties */
a, button, input, select, textarea,
.nav, .nav-logo, .nav-link, .nav-menu-toggle,
.theme-dropdown, .theme-dropdown-btn, .theme-dropdown-menu, .theme-dropdown-item,
.hero-title, .hero-subtitle,
.btn-primary, .btn-secondary,
.app-showcase, .app-logo, .app-showcase-name, .app-showcase-tagline,
.footer, .footer-column a, .footer-contact-item,
.app-hero-title, .app-hero-tagline, .app-download-btn, .app-hero-mockup,
.privacy-content-wrapper h2, .privacy-content-wrapper p,
.glass-card {
  transition: background-color 0.3s ease, 
              color 0.3s ease, 
              border-color 0.3s ease,
              box-shadow 0.3s ease;
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
