/* ============================================
   Emrius Website - Vanilla CSS
   ============================================ */

/* CSS Variables - Shared */
:root {
  /* Typography */
  --font-family: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-size-xs: 0.75rem;
  --font-size-sm: 0.875rem;
  --font-size-base: 1rem;
  --font-size-lg: 1.125rem;
  --font-size-xl: 1.25rem;
  --font-size-2xl: 1.5rem;
  --font-size-3xl: 2rem;
  --font-size-4xl: 2.5rem;
  --font-size-5xl: 3.5rem;
  --font-size-6xl: 4.5rem;
  
  /* Spacing */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  
  /* Border Radius */
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-2xl: 1.5rem;
  --radius-full: 9999px;
  
  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-base: 250ms ease;
  --transition-slow: 400ms ease;
  
  /* Layout */
  --max-width: 1200px;
  --header-height: 80px;
  
  /* Primary Colors (shared) */
  --color-primary: #3b82f6;
  --color-primary-light: #60a5fa;
  --color-primary-dark: #2563eb;
  --color-accent: #8b5cf6;
  --color-accent-light: #a78bfa;
  --color-success: #22c55e;
  --color-warning: #f59e0b;
  --color-error: #ef4444;
}

/* Dark Theme (default) */
:root,
[data-theme="dark"] {
  --color-bg: #0a0a0f;
  --color-bg-elevated: #12121a;
  --color-bg-card: #1a1a24;
  --color-bg-hover: #22222e;
  
  --color-text: #f0f0f5;
  --color-text-muted: #8888a0;
  --color-text-subtle: #5a5a70;
  
  --color-border: rgba(255, 255, 255, 0.05);
  --color-border-hover: rgba(255, 255, 255, 0.15);
  
  /* Gradients */
  --gradient-primary: linear-gradient(135deg, var(--color-primary) 0%, var(--color-accent) 100%);
  --gradient-subtle: linear-gradient(135deg, rgba(59, 130, 246, 0.1) 0%, rgba(139, 92, 246, 0.1) 100%);
  --gradient-glow: radial-gradient(circle at center, rgba(59, 130, 246, 0.15) 0%, transparent 70%);
  
  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.4);
  --shadow-xl: 0 20px 50px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 40px rgba(59, 130, 246, 0.3);
  
  /* Header */
  --header-bg: rgba(10, 10, 15, 0.8);
}

/* Light Theme */
[data-theme="light"] {
  --color-bg: #f8fafc;
  --color-bg-elevated: #ffffff;
  --color-bg-card: #ffffff;
  --color-bg-hover: #f1f5f9;
  
  --color-text: #0f172a;
  --color-text-muted: #64748b;
  --color-text-subtle: #94a3b8;
  
  --color-border: rgba(0, 0, 0, 0.08);
  --color-border-hover: rgba(0, 0, 0, 0.15);
  
  /* Gradients */
  --gradient-primary: linear-gradient(135deg, var(--color-primary) 0%, var(--color-accent) 100%);
  --gradient-subtle: linear-gradient(135deg, rgba(59, 130, 246, 0.08) 0%, rgba(139, 92, 246, 0.08) 100%);
  --gradient-glow: radial-gradient(circle at center, rgba(59, 130, 246, 0.1) 0%, transparent 70%);
  
  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.07);
  --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 50px rgba(0, 0, 0, 0.15);
  --shadow-glow: 0 0 40px rgba(59, 130, 246, 0.15);
  
  /* Header */
  --header-bg: rgba(248, 250, 252, 0.8);
}

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

/* Skip Link for Accessibility */
.skip-link {
  position: absolute;
  top: -100%;
  left: 50%;
  transform: translateX(-50%);
  padding: var(--space-3) var(--space-6);
  background: var(--color-primary);
  color: white;
  font-weight: 600;
  border-radius: var(--radius-lg);
  z-index: 9999;
  transition: top var(--transition-fast);
}

.skip-link:focus {
  top: var(--space-4);
  color: white;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-family);
  font-size: var(--font-size-base);
  line-height: 1.6;
  color: var(--color-text);
  background-color: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background-color var(--transition-base), color var(--transition-base);
}

/* Theme transition for smooth switching */
body.theme-transitioning,
body.theme-transitioning * {
  transition: background-color var(--transition-base), 
              color var(--transition-base),
              border-color var(--transition-base),
              box-shadow var(--transition-base) !important;
}

a {
  color: var(--color-primary-light);
  text-decoration: none;
  transition: color var(--transition-fast);
}

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

ul {
  list-style: none;
}

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

/* ============================================
   Header & Navigation
   ============================================ */

.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  background: var(--header-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--color-border);
  z-index: 1000;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--max-width);
  height: 100%;
  margin: 0 auto;
  padding: 0 var(--space-6);
}

.logo {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  color: var(--color-text);
  font-weight: 700;
  font-size: var(--font-size-xl);
}

.logo:hover {
  color: var(--color-text);
}

.logo-img {
  width: 36px;
  height: 36px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-8);
}

.nav-links a {
  color: var(--color-text-muted);
  font-weight: 500;
  transition: color var(--transition-fast);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--color-text);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--space-2);
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-text);
  border-radius: var(--radius-full);
  transition: var(--transition-base);
}

/* Theme Toggle Button */
.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: transparent;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  cursor: pointer;
  color: var(--color-text-muted);
  transition: all var(--transition-fast);
}

.theme-toggle:hover {
  background: var(--color-bg-hover);
  border-color: var(--color-border-hover);
  color: var(--color-text);
}

.theme-toggle svg {
  width: 20px;
  height: 20px;
  transition: transform var(--transition-base);
}

.theme-toggle:hover svg {
  transform: rotate(15deg);
}

/* Sun icon (shown in dark mode) */
.theme-toggle .icon-sun {
  display: block;
}

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

/* Moon icon (shown in light mode) */
[data-theme="light"] .theme-toggle .icon-sun {
  display: none;
}

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

/* Nav actions container */
.nav-actions {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

/* ============================================
   Language Switcher
   ============================================ */

.lang-switcher {
  position: relative;
}

.lang-toggle {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-3);
  background: transparent;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  color: var(--color-text-muted);
  font-family: var(--font-family);
  font-size: var(--font-size-sm);
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.lang-toggle:hover {
  background: var(--color-bg-hover);
  border-color: var(--color-border-hover);
  color: var(--color-text);
}

.lang-toggle svg {
  width: 16px;
  height: 16px;
  transition: transform var(--transition-fast);
}

.lang-switcher:has(.lang-dropdown.active) .lang-toggle svg {
  transform: rotate(180deg);
}

.lang-current {
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.lang-dropdown {
  position: absolute;
  top: calc(100% + var(--space-2));
  right: 0;
  min-width: 140px;
  max-height: 320px;
  overflow-x: hidden;
  overflow-y: auto;
  background: var(--color-bg-elevated);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: all var(--transition-fast);
  z-index: 100;
}

.lang-dropdown.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.lang-dropdown a {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  text-decoration: none;
  width: 100%;
  padding: var(--space-3) var(--space-4);
  background: none;
  border: none;
  color: var(--color-text-muted);
  font-family: var(--font-family);
  font-size: var(--font-size-sm);
  text-align: left;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.lang-dropdown a:hover {
  background: var(--color-bg-hover);
  color: var(--color-text);
}

.lang-dropdown a.active {
  background: var(--gradient-subtle);
  color: var(--color-primary-light);
}

.lang-dropdown a .lang-code {
  font-weight: 600;
  text-transform: uppercase;
  min-width: 24px;
}

/* ============================================
   Screenshot Slideshow (in Phone Mockup)
   ============================================ */

.screenshot-slideshow {
  position: relative;
  width: 100%;
  height: 100%;
}

.screenshot-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.screenshot-slide.active {
  opacity: 1;
}

.screenshot-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  border-radius: 28px;
}

.slideshow-dots {
  position: absolute;
  bottom: var(--space-4);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: var(--space-2);
  z-index: 10;
}

.slideshow-dot {
  width: 8px;
  height: 8px;
  padding: 0;
  background: rgba(255, 255, 255, 0.3);
  border: none;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.slideshow-dot:hover {
  background: rgba(255, 255, 255, 0.5);
}

.slideshow-dot.active {
  background: white;
  width: 20px;
}

/* ============================================
   Buttons
   ============================================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-6);
  font-family: var(--font-family);
  font-size: var(--font-size-sm);
  font-weight: 600;
  border-radius: var(--radius-lg);
  border: none;
  cursor: pointer;
  transition: all var(--transition-base);
  white-space: nowrap;
}

.btn-primary {
  background: var(--gradient-primary);
  color: white !important;
  box-shadow: var(--shadow-md), 0 0 20px rgba(59, 130, 246, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg), 0 0 30px rgba(59, 130, 246, 0.4);
  color: white;
}

.btn-ghost {
  background: transparent;
  color: var(--color-text);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.25);
  color: var(--color-text);
}

.btn-lg {
  padding: var(--space-4) var(--space-8);
  font-size: var(--font-size-base);
  border-radius: var(--radius-xl);
}

/* ============================================
   Main Content
   ============================================ */

main {
  padding-top: var(--header-height);
}

/* ============================================
   Hero Section
   ============================================ */

.hero {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-16);
  align-items: center;
  min-height: calc(100vh - var(--header-height));
  max-width: var(--max-width);
  margin: 0 auto;
  padding: var(--space-16) var(--space-6);
  overflow: hidden;
}

.hero-background {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.hero-gradient {
  position: absolute;
  top: -50%;
  right: -20%;
  width: 80%;
  height: 150%;
  background: var(--gradient-glow);
  opacity: 0.6;
}

.hero-pattern {
  position: absolute;
  inset: 0;
  background-image: 
    radial-gradient(circle at 2px 2px, rgba(255, 255, 255, 0.03) 1px, transparent 0);
  background-size: 40px 40px;
}

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

.hero-badge {
  display: inline-block;
  padding: var(--space-2) var(--space-4);
  background: var(--gradient-subtle);
  border: 1px solid rgba(59, 130, 246, 0.2);
  border-radius: var(--radius-full);
  font-size: var(--font-size-sm);
  font-weight: 500;
  color: var(--color-primary-light);
  margin-bottom: var(--space-6);
  animation: fadeInUp 0.6s ease both;
}

.hero-title {
  font-size: var(--font-size-5xl);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: var(--space-6);
  animation: fadeInUp 0.6s ease 0.1s both;
}

.gradient-text {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: var(--font-size-lg);
  color: var(--color-text-muted);
  max-width: 500px;
  margin-bottom: var(--space-8);
  animation: fadeInUp 0.6s ease 0.2s both;
}

.hero-cta {
  display: flex;
  gap: var(--space-4);
  margin-bottom: var(--space-12);
  animation: fadeInUp 0.6s ease 0.3s both;
}

.hero-stats {
  display: flex;
  gap: var(--space-10);
  animation: fadeInUp 0.6s ease 0.4s both;
}

.stat {
  display: flex;
  flex-direction: column;
}

.stat-number {
  font-size: var(--font-size-3xl);
  font-weight: 700;
  color: var(--color-text);
}

.stat-label {
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
}

/* Phone Mockup */
.hero-visual {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
  animation: fadeInUp 0.8s ease 0.3s both;
}

.phone-mockup {
  position: relative;
  width: 280px;
  height: 580px;
  background: linear-gradient(145deg, #2a2a3a, #1a1a24);
  border-radius: 40px;
  padding: 12px;
  box-shadow: 
    var(--shadow-xl),
    inset 0 0 0 1px rgba(255, 255, 255, 0.1);
}

.phone-mockup::before {
  content: '';
  position: absolute;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 24px;
  background: #0a0a0f;
  border-radius: 20px;
}

.phone-screen {
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, #12121a 0%, #0a0a0f 100%);
  border-radius: 32px;
  overflow: hidden;
}

.app-preview {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
  padding-top: var(--space-8);
}

.preview-header {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.preview-avatar {
  width: 48px;
  height: 48px;
  background: var(--gradient-primary);
  border-radius: var(--radius-full);
}

.preview-greeting {
  display: flex;
  flex-direction: column;
}

.greeting-small {
  font-size: var(--font-size-xs);
  color: var(--color-text-muted);
}

.greeting-name {
  font-size: var(--font-size-lg);
  font-weight: 600;
}

.preview-card {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-4);
  background: var(--color-bg-card);
  border-radius: var(--radius-xl);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.preview-card-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: var(--gradient-subtle);
  border-radius: var(--radius-lg);
  color: var(--color-primary-light);
}

.preview-card-content {
  display: flex;
  flex-direction: column;
}

.card-label {
  font-size: var(--font-size-xs);
  color: var(--color-text-muted);
}

.card-value {
  font-size: var(--font-size-base);
  font-weight: 600;
}

.preview-progress {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 120px;
  height: 120px;
  margin: var(--space-4) auto;
}

.progress-ring {
  position: absolute;
  width: 100%;
  height: 100%;
  border: 8px solid var(--color-bg-card);
  border-radius: var(--radius-full);
}

.progress-ring::before {
  content: '';
  position: absolute;
  inset: -8px;
  border: 8px solid transparent;
  border-top-color: var(--color-primary);
  border-right-color: var(--color-primary);
  border-radius: var(--radius-full);
  transform: rotate(45deg);
}

.progress-text {
  font-size: var(--font-size-2xl);
  font-weight: 700;
}

/* ============================================
   Features Section
   ============================================ */

.features {
  padding: var(--space-24) var(--space-6);
  max-width: var(--max-width);
  margin: 0 auto;
}

.section-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto var(--space-16);
}

.section-badge {
  display: inline-block;
  padding: var(--space-2) var(--space-4);
  background: var(--gradient-subtle);
  border: 1px solid rgba(59, 130, 246, 0.2);
  border-radius: var(--radius-full);
  font-size: var(--font-size-sm);
  font-weight: 500;
  color: var(--color-primary-light);
  margin-bottom: var(--space-4);
}

.section-title {
  font-size: var(--font-size-4xl);
  font-weight: 700;
  margin-bottom: var(--space-4);
}

.section-subtitle {
  font-size: var(--font-size-lg);
  color: var(--color-text-muted);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
}

.feature-card {
  position: relative;
  padding: var(--space-8);
  background: var(--color-bg-elevated);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-2xl);
  transition: all var(--transition-base);
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gradient-primary);
  opacity: 0;
  transition: opacity var(--transition-base);
}

.feature-card:hover {
  transform: translateY(-4px);
  border-color: rgba(59, 130, 246, 0.2);
  box-shadow: var(--shadow-lg);
}

.feature-card:hover::before {
  opacity: 1;
}

.feature-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  background: var(--gradient-subtle);
  border-radius: var(--radius-xl);
  color: var(--color-primary-light);
  margin-bottom: var(--space-6);
}

.feature-card h3 {
  font-size: var(--font-size-xl);
  font-weight: 600;
  margin-bottom: var(--space-3);
}

.feature-card > p {
  color: var(--color-text-muted);
  margin-bottom: var(--space-5);
}

.feature-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.feature-list li {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
}

.feature-list li::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--color-primary);
  border-radius: var(--radius-full);
}

/* Feature card color variations */
.feature-workout .feature-icon { background: linear-gradient(135deg, rgba(59, 130, 246, 0.15) 0%, rgba(59, 130, 246, 0.05) 100%); }
.feature-diet .feature-icon { background: linear-gradient(135deg, rgba(34, 197, 94, 0.15) 0%, rgba(34, 197, 94, 0.05) 100%); color: var(--color-success); }
.feature-challenges .feature-icon { background: linear-gradient(135deg, rgba(245, 158, 11, 0.15) 0%, rgba(245, 158, 11, 0.05) 100%); color: var(--color-warning); }
.feature-social .feature-icon { background: linear-gradient(135deg, rgba(139, 92, 246, 0.15) 0%, rgba(139, 92, 246, 0.05) 100%); color: var(--color-accent-light); }
.feature-progress .feature-icon { background: linear-gradient(135deg, rgba(236, 72, 153, 0.15) 0%, rgba(236, 72, 153, 0.05) 100%); color: #f472b6; }
.feature-badges .feature-icon { background: linear-gradient(135deg, rgba(14, 165, 233, 0.15) 0%, rgba(14, 165, 233, 0.05) 100%); color: #38bdf8; }

/* ============================================
   Highlights Section
   ============================================ */

.highlights {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
  max-width: var(--max-width);
  margin: 0 auto;
  padding: var(--space-16) var(--space-6);
}

.highlight-card {
  padding: var(--space-8);
  background: var(--gradient-subtle);
  border: 1px solid rgba(59, 130, 246, 0.1);
  border-radius: var(--radius-2xl);
  text-align: center;
}

.highlight-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  background: var(--color-bg-card);
  border-radius: var(--radius-xl);
  color: var(--color-primary-light);
  margin-bottom: var(--space-5);
}

.highlight-card h3 {
  font-size: var(--font-size-xl);
  font-weight: 600;
  margin-bottom: var(--space-3);
}

.highlight-card p {
  color: var(--color-text-muted);
  font-size: var(--font-size-sm);
}

/* ============================================
   Download Section
   ============================================ */

.download {
  position: relative;
  padding: var(--space-24) var(--space-6);
  text-align: center;
  overflow: hidden;
}

.download-content {
  position: relative;
  z-index: 1;
  max-width: 600px;
  margin: 0 auto;
}

.download .section-title {
  margin-bottom: var(--space-4);
}

.download .section-subtitle {
  margin-bottom: var(--space-10);
}

.store-buttons {
  display: flex;
  justify-content: center;
  gap: var(--space-4);
  flex-wrap: wrap;
}

.store-btn {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-4) var(--space-6);
  background: var(--color-bg-card);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-xl);
  color: var(--color-text);
  transition: all var(--transition-base);
}

.store-btn:hover {
  background: var(--color-bg-hover);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
  color: var(--color-text);
}

.store-btn svg {
  flex-shrink: 0;
}

.store-btn-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
}

.store-btn-small {
  font-size: var(--font-size-xs);
  color: var(--color-text-muted);
}

.store-btn-large {
  font-size: var(--font-size-lg);
  font-weight: 600;
}

.download-decoration {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.decoration-circle {
  position: absolute;
  border-radius: var(--radius-full);
  background: var(--gradient-primary);
  opacity: 0.1;
  filter: blur(60px);
}

.decoration-circle-1 {
  width: 400px;
  height: 400px;
  top: -100px;
  left: -100px;
}

.decoration-circle-2 {
  width: 300px;
  height: 300px;
  bottom: -50px;
  right: -50px;
  background: var(--color-accent);
}

.decoration-circle-3 {
  width: 200px;
  height: 200px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

/* ============================================
   Footer
   ============================================ */

.footer {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding: var(--space-16) var(--space-6) var(--space-8);
}

.footer-content {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: var(--space-16);
  max-width: var(--max-width);
  margin: 0 auto var(--space-12);
}

.footer-brand .logo {
  margin-bottom: var(--space-4);
}

.footer-tagline {
  color: var(--color-text-muted);
  font-size: var(--font-size-sm);
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-8);
}

.footer-column h4 {
  font-size: var(--font-size-sm);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-text);
  margin-bottom: var(--space-4);
}

.footer-column ul {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.footer-column a {
  color: var(--color-text-muted);
  font-size: var(--font-size-sm);
}

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

.footer-bottom {
  text-align: center;
  padding-top: var(--space-8);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  max-width: var(--max-width);
  margin: 0 auto;
}

.footer-bottom p {
  font-size: var(--font-size-sm);
  color: var(--color-text-subtle);
}

/* ============================================
   Legal Pages (Terms, Privacy)
   ============================================ */

.legal-page {
  max-width: 800px;
  margin: 0 auto;
  padding: var(--space-16) var(--space-6);
}

.legal-header {
  text-align: center;
  margin-bottom: var(--space-12);
  padding-bottom: var(--space-8);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.legal-header h1 {
  font-size: var(--font-size-4xl);
  font-weight: 700;
  margin-bottom: var(--space-4);
}

.legal-updated {
  color: var(--color-text-muted);
  font-size: var(--font-size-sm);
}

.legal-content article {
  line-height: 1.8;
}

.legal-content h2 {
  font-size: var(--font-size-xl);
  font-weight: 600;
  margin: var(--space-10) 0 var(--space-4);
  color: var(--color-text);
}

.legal-content h3 {
  font-size: var(--font-size-lg);
  font-weight: 600;
  margin: var(--space-6) 0 var(--space-3);
  color: var(--color-text);
}

.legal-content p {
  color: var(--color-text-muted);
  margin-bottom: var(--space-4);
}

.legal-content ul {
  margin: var(--space-4) 0;
  padding-left: var(--space-6);
}

.legal-content li {
  color: var(--color-text-muted);
  margin-bottom: var(--space-2);
  position: relative;
  padding-left: var(--space-4);
}

.legal-content li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10px;
  width: 6px;
  height: 6px;
  background: var(--color-primary);
  border-radius: var(--radius-full);
}

.legal-content a {
  color: var(--color-primary-light);
}

.legal-content strong {
  color: var(--color-text);
}

/* ============================================
   Support Page
   ============================================ */

.support-page {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: var(--space-16) var(--space-6);
}

.support-header {
  text-align: center;
  margin-bottom: var(--space-16);
}

.support-header h1 {
  font-size: var(--font-size-4xl);
  font-weight: 700;
  margin-bottom: var(--space-4);
}

.support-header p {
  color: var(--color-text-muted);
  font-size: var(--font-size-lg);
}

.support-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-12);
}

.faq-section h2,
.contact-section h2 {
  font-size: var(--font-size-2xl);
  font-weight: 600;
  margin-bottom: var(--space-6);
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.faq-item {
  background: var(--color-bg-elevated);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-xl);
  overflow: hidden;
}

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-5) var(--space-6);
  font-weight: 500;
  cursor: pointer;
  list-style: none;
  transition: background var(--transition-fast);
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: '+';
  font-size: var(--font-size-xl);
  color: var(--color-text-muted);
  transition: transform var(--transition-base);
}

.faq-item[open] summary::after {
  transform: rotate(45deg);
}

.faq-item summary:hover {
  background: var(--color-bg-hover);
}

.faq-answer {
  padding: 0 var(--space-6) var(--space-5);
  color: var(--color-text-muted);
  line-height: 1.7;
}

.faq-answer a {
  color: var(--color-primary-light);
}

.contact-section > p {
  color: var(--color-text-muted);
  margin-bottom: var(--space-6);
}

.contact-methods {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  margin-bottom: var(--space-8);
}

.contact-card {
  padding: var(--space-6);
  background: var(--color-bg-elevated);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-xl);
}

.contact-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: var(--gradient-subtle);
  border-radius: var(--radius-lg);
  color: var(--color-primary-light);
  margin-bottom: var(--space-4);
}

.contact-card h3 {
  font-size: var(--font-size-lg);
  font-weight: 600;
  margin-bottom: var(--space-2);
}

.contact-card p {
  color: var(--color-text-muted);
  font-size: var(--font-size-sm);
  margin-bottom: var(--space-3);
}

.contact-link {
  display: inline-block;
  color: var(--color-primary-light);
  font-weight: 500;
}

.contact-note {
  font-size: var(--font-size-sm);
  color: var(--color-text-subtle);
  font-style: italic;
}

.response-info {
  padding: var(--space-6);
  background: var(--gradient-subtle);
  border: 1px solid rgba(59, 130, 246, 0.1);
  border-radius: var(--radius-xl);
}

.response-info h3 {
  font-size: var(--font-size-base);
  font-weight: 600;
  margin-bottom: var(--space-2);
}

.response-info p {
  color: var(--color-text-muted);
  font-size: var(--font-size-sm);
}

/* ============================================
   Animations
   ============================================ */

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

.phone-mockup {
  animation: float 4s ease-in-out infinite;
}

/* ============================================
   Responsive Design
   ============================================ */

@media (max-width: 1024px) {
  .hero {
    grid-template-columns: 1fr;
    text-align: center;
    gap: var(--space-12);
  }
  
  .hero-subtitle {
    margin-left: auto;
    margin-right: auto;
  }
  
  .hero-cta {
    justify-content: center;
  }
  
  .hero-stats {
    justify-content: center;
  }
  
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .highlights {
    grid-template-columns: 1fr;
    max-width: 500px;
  }
  
  .support-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  :root {
    --font-size-5xl: 2.5rem;
    --font-size-4xl: 2rem;
    --font-size-3xl: 1.5rem;
  }
  
  .nav-toggle {
    display: flex;
  }
  
  .nav-actions {
    gap: var(--space-2);
  }
  
  .theme-toggle {
    width: 36px;
    height: 36px;
  }
  
  .nav-links {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    flex-direction: column;
    padding: var(--space-6);
    background: var(--color-bg-elevated);
    border-bottom: 1px solid var(--color-border);
    gap: var(--space-4);
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-base);
  }
  
  .nav-links.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }
  
  .nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }
  
  .nav-toggle.active span:nth-child(2) {
    opacity: 0;
  }
  
  .nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }
  
  .hero {
    padding: var(--space-10) var(--space-6);
    min-height: auto;
  }
  
  .hero-visual {
    display: none;
  }
  
  .hero-cta {
    flex-direction: column;
  }
  
  .hero-stats {
    flex-wrap: wrap;
    gap: var(--space-6);
  }
  
  .features-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-content {
    grid-template-columns: 1fr;
    gap: var(--space-10);
  }
  
  .footer-links {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .store-buttons {
    flex-direction: column;
    align-items: center;
  }
  
  .store-btn {
    width: 100%;
    max-width: 280px;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .footer-links {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .legal-page,
  .support-page {
    padding: var(--space-10) var(--space-4);
  }
}

/* ============================================
   404 Error Page
   ============================================ */

.error-page {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - var(--header-height) - 200px);
  padding: var(--space-16) var(--space-6);
  text-align: center;
}

.error-content h1 {
  font-size: 8rem;
  font-weight: 800;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: var(--space-4);
}

.error-content h2 {
  font-size: var(--font-size-2xl);
  font-weight: 600;
  margin-bottom: var(--space-4);
}

.error-content p {
  color: var(--color-text-muted);
  margin-bottom: var(--space-8);
  max-width: 400px;
  margin-left: auto;
  margin-right: auto;
}

@media (max-width: 768px) {
  .error-content h1 {
    font-size: 5rem;
  }
}


/* ============================================
   Dynamic Content Pages (Profile, Workout, Diet, Exercise, Post)
   ============================================ */

/* Profile Page */
.profile-page,
.content-page,
.post-page {
  min-height: 100vh;
  padding: calc(80px + var(--space-16)) var(--space-4) var(--space-16);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient-subtle);
}

.profile-card,
.content-card,
.post-card {
  background: var(--color-bg-card);
  border-radius: var(--radius-2xl);
  padding: var(--space-8);
  max-width: 500px;
  width: 100%;
  box-shadow: var(--shadow-xl);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

/* Profile Specific */
.profile-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--space-4);
  margin-bottom: var(--space-6);
}

.profile-avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--color-primary);
  box-shadow: var(--shadow-glow);
}

.profile-name {
  font-size: var(--font-size-2xl);
  font-weight: 700;
  margin: 0;
}

.profile-username {
  color: var(--color-text-muted);
  margin: 0;
}

.profile-bio {
  color: var(--color-text-muted);
  margin: var(--space-2) 0 0;
  line-height: 1.6;
}

.profile-stats {
  display: flex;
  justify-content: center;
  gap: var(--space-8);
  padding: var(--space-6) 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: var(--space-6);
}

.profile-stats .stat-item {
  text-align: center;
}

.profile-stats .stat-value {
  display: block;
  font-size: var(--font-size-2xl);
  font-weight: 700;
  color: var(--color-primary-light);
}

.profile-stats .stat-label {
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
}

.profile-cta,
.content-cta,
.post-cta {
  display: flex;
  justify-content: center;
}

/* Content Card (Workout, Diet, Exercise) */
.content-image {
  position: relative;
  margin: calc(-1 * var(--space-8));
  margin-bottom: var(--space-6);
  border-radius: var(--radius-2xl) var(--radius-2xl) 0 0;
  overflow: hidden;
  aspect-ratio: 16/9;
}

.content-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.content-image.exercise-image {
  /* aspect-ratio: 1/1; */
  /* max-height: 300px; */
}

.content-badge {
  position: absolute;
  top: var(--space-4);
  left: var(--space-4);
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-full);
  font-size: var(--font-size-sm);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.workout-badge {
  background: linear-gradient(135deg, #3b82f6, #8b5cf6);
  color: white;
}

.diet-badge {
  background: linear-gradient(135deg, #22c55e, #14b8a6);
  color: white;
}

.exercise-badge {
  background: linear-gradient(135deg, #f59e0b, #ef4444);
  color: white;
}

.content-body {
  text-align: center;
}

.content-title {
  font-size: var(--font-size-2xl);
  font-weight: 700;
  margin: 0 0 var(--space-4);
}

.content-description {
  color: var(--color-text-muted);
  line-height: 1.7;
  margin-bottom: var(--space-6);
}

.content-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-4);
  padding: var(--space-4) 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: var(--space-6);
}

.content-meta .meta-item {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  color: var(--color-text-muted);
  font-size: var(--font-size-sm);
}

.content-meta .meta-item svg {
  color: var(--color-primary-light);
  flex-shrink: 0;
}

/* Post Card */
.post-card {
  max-width: 600px;
}

.post-header {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  margin-bottom: var(--space-4);
}

.post-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
}

.post-author {
  display: flex;
  flex-direction: column;
}

.post-author-name {
  font-weight: 600;
}

.post-date {
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
}

.post-content {
  margin-bottom: var(--space-4);
  line-height: 1.7;
  white-space: pre-wrap;
}

.post-media {
  margin: 0 calc(-1 * var(--space-8));
  margin-bottom: var(--space-4);
}

.post-media img {
  width: 100%;
  display: block;
}

.post-stats {
  display: flex;
  gap: var(--space-6);
  padding: var(--space-4) 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: var(--space-6);
}

.post-stats .stat-item {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  color: var(--color-text-muted);
  font-size: var(--font-size-sm);
}

.post-stats .stat-item svg {
  flex-shrink: 0;
}

/* Responsive */
@media (max-width: 768px) {
  .profile-page,
  .content-page,
  .post-page {
    padding-top: calc(60px + var(--space-8));
    padding-bottom: var(--space-8);
    align-items: flex-start;
  }

  .profile-card,
  .content-card,
  .post-card {
    padding: var(--space-6);
    border-radius: var(--radius-xl);
  }

  .profile-avatar {
    width: 100px;
    height: 100px;
  }

  .content-image {
    margin: calc(-1 * var(--space-6));
    margin-bottom: var(--space-4);
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  }

  .profile-stats {
    gap: var(--space-4);
  }

  .content-meta {
    gap: var(--space-3);
  }

  .post-media {
    margin: 0 calc(-1 * var(--space-6));
    margin-bottom: var(--space-4);
  }
}
