/* Global Reset and Variables */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  /* Modern Professional Color Palette */
  --primary: #6366F1;
  --primary-dark: #4F46E5;
  --primary-light: #818CF8;
  --primary-alpha: rgba(99, 102, 241, 0.1);
  
  --secondary: #0EA5E9;
  --secondary-dark: #0284C7;
  --secondary-light: #7DD3FC;
  --secondary-alpha: rgba(14, 165, 233, 0.1);
  
  --accent: #10B981;
  --accent-dark: #059669;
  --accent-light: #6EE7B7;
  
  --warm: #F59E0B;
  --warm-dark: #D97706;
  --warm-light: #FCD34D;
  
  --success: #10B981;
  --warning: #F59E0B;
  --error: #EF4444;
  
  --dark: #1F2937;
  --dark-secondary: #374151;
  --gray: #6B7280;
  --light-gray: #E5E7EB;
  --lighter-gray: #F3F4F6;
  --white: #ffffff;
  
  --gradient: linear-gradient(135deg, #6366F1 0%, #8B5CF6 100%);
  --gradient-alt: linear-gradient(135deg, #0EA5E9 0%, #10B981 100%);
  
  --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 15px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.15);
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: #FFFFFF;
  color: var(--dark);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
}

h1, h2, h3, h4, h5, h6 {
  line-height: 1.2;
  font-weight: 700;
  color: var(--dark);
}

h1 { font-size: clamp(2.5rem, 5vw, 4rem); font-weight: 900; }
h2 { font-size: clamp(2rem, 4vw, 2.5rem); font-weight: 800; }
h3 { font-size: clamp(1.25rem, 3vw, 1.5rem); }
h4 { font-size: 1.125rem; }

p {
  margin-bottom: 1rem;
  color: var(--gray);
  line-height: 1.8;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.3s ease;
}

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

/* Navigation */
nav {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  z-index: 1000;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
}

nav.scrolled {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 70px;  /* Consistent header height across all pages */
}

.logo {
  font-size: 1.5rem;
  font-weight: 800;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-decoration: none;
}

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

.nav-links a {
  color: var(--dark);
  font-weight: 500;
  transition: color 0.3s ease;
}

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

.nav-cta {
  background: var(--gradient);
  color: white !important;
  padding: 0.625rem 1.25rem;
  border-radius: 8px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.nav-cta.active {
  background: var(--primary-dark);
}

/* Nav CTA button override - ensure consistent smaller size in header */
nav .cta-button {
  padding: 0.625rem 1.25rem;
  font-size: 0.95rem;
  border-radius: 8px;
  box-shadow: var(--shadow-md);
}

nav .cta-button:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.menu-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 4px;
}

.menu-toggle span {
  width: 25px;
  height: 3px;
  background: var(--dark);
  border-radius: 3px;
  transition: all 0.3s ease;
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6rem 2rem 4rem;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.05) 0%, rgba(139, 92, 246, 0.05) 100%);
  position: relative;
}

.hero-content {
  max-width: 1200px;
  text-align: center;
}

.hero h1 {
  margin-bottom: 1.5rem;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p {
  font-size: 1.25rem;
  color: var(--dark-secondary);
  max-width: 600px;
  margin: 0 auto 2rem;
}

.cta-button {
  display: inline-block;
  background: var(--gradient);
  color: white;
  padding: 1rem 2.5rem;
  border-radius: 12px;
  font-weight: 700;
  font-size: 1.125rem;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-lg);
  border: none;
  cursor: pointer;
}

.cta-button:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-xl);
  color: white;
}

/* Page Hero */
.page-hero {
  padding: 8rem 2rem 4rem;
  text-align: center;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.05) 0%, rgba(139, 92, 246, 0.05) 100%);
}

.page-hero h1 {
  margin-bottom: 1rem;
}

.page-hero p {
  font-size: 1.25rem;
  color: var(--dark-secondary);
  max-width: 600px;
  margin: 0 auto;
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 3rem 2rem;
}

.container-small {
  max-width: 900px;
  margin: 0 auto;
  padding: 3rem 2rem;
}

/* Anchor link scroll offset for fixed navbar */
section[id], div[id] {
  scroll-margin-top: 100px;
}

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

.feature-card {
  background: white;
  padding: 2rem;
  border-radius: 16px;
  box-shadow: var(--shadow-md);
  transition: all 0.3s ease;
  border: 1px solid var(--light-gray);
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-xl);
  border-color: var(--primary-light);
}

.feature-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  display: inline-block;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.feature-card h3 {
  margin-bottom: 0.75rem;
  color: var(--dark);
}

.feature-card p {
  color: var(--gray);
  line-height: 1.7;
}

/* Steps */
.step-section {
  margin-bottom: 3rem;
  background: white;
  border-radius: 16px;
  padding: 2rem;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--light-gray);
}

.step-header {
  margin-bottom: 1.5rem;
}

.step-title {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.step-icon {
  width: 48px;
  height: 48px;
  background: var(--gradient);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.5rem;
  flex-shrink: 0;
}

.step-content ul {
  margin: 1rem 0;
  padding-left: 1.5rem;
}

.step-content li {
  margin: 0.5rem 0;
  color: var(--dark-secondary);
}

.step-image {
  width: 100%;
  border-radius: 12px;
  margin-top: 1.5rem;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--light-gray);
}

.highlight {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(139, 92, 246, 0.1) 100%);
  padding: 2px 8px;
  border-radius: 4px;
  font-weight: 600;
  color: var(--primary);
}

.success-box {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.1) 0%, rgba(52, 211, 153, 0.1) 100%);
  border: 2px solid var(--accent);
  border-radius: 12px;
  padding: 1.5rem;
  margin-top: 2rem;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.success-box i {
  color: var(--accent);
  font-size: 1.5rem;
  flex-shrink: 0;
  margin-top: 0.25rem;
}

.success-box strong {
  color: var(--dark);
}

.info-card {
  background: var(--lighter-gray);
  border: 1px solid var(--light-gray);
  border-radius: 12px;
  padding: 1.5rem;
  margin: 1.5rem 0;
}

.info-card h4 {
  color: var(--dark);
  margin-bottom: 0.75rem;
}

.info-card p {
  color: var(--dark-secondary);
  margin-bottom: 0.5rem;
}

/* Content Card - for pages like sync, privacy, terms */
.content-card {
  background: white;
  padding: 2rem;
  border-radius: 16px;
  box-shadow: var(--shadow-md);
  margin-bottom: 2rem;
  border: 1px solid var(--light-gray);
}

.content-card h2 {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.content-card h2 i {
  color: var(--primary);
}

.content-card ul {
  margin: 1rem 0;
  padding-left: 1.5rem;
}

.content-card li {
  margin: 0.5rem 0;
  color: var(--dark-secondary);
}

/* Footer */
footer {
  background: var(--dark);
  color: white;
  padding: 3rem 2rem 1.5rem;
  margin-top: 4rem;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-column h4 {
  color: white;
  margin-bottom: 1rem;
  font-size: 1.125rem;
}

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

.footer-column ul li {
  margin-bottom: 0.5rem;
}

.footer-column a {
  color: rgba(255, 255, 255, 0.7);
  transition: color 0.3s ease;
}

.footer-column a:hover {
  color: white;
}

.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
  color: rgba(255, 255, 255, 0.6);
}

/* Responsive */
@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 70px;
    right: -100%;
    flex-direction: column;
    background: white;
    width: 250px;
    height: calc(100vh - 70px);
    padding: 2rem;
    box-shadow: var(--shadow-xl);
    transition: right 0.3s ease;
    align-items: flex-start;
  }
  
  .nav-links.active {
    right: 0;
  }
  
  .menu-toggle {
    display: flex;
  }
  
  .menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }
  
  .menu-toggle.active span:nth-child(2) {
    opacity: 0;
  }
  
  .menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
  }
  
  .hero {
    padding: 5rem 1.5rem 3rem;
  }
  
  .page-hero {
    padding: 6rem 1.5rem 3rem;
  }
  
  .container, .container-small {
    padding: 3rem 1.5rem;
  }
  
  .features {
    grid-template-columns: 1fr;
  }
  
  .step-section {
    padding: 1.5rem;
  }
  
  .footer-container {
    grid-template-columns: 1fr;
  }
}

/* Utility Classes */
.text-center { text-align: center; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }
/* Modern Improved Footer */

.footer {
  background: linear-gradient(135deg, #1F2937 0%, #111827 100%);
  color: white;
  padding: 2rem 2rem 1rem;
  margin-top: 3rem;
  position: relative;
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(99, 102, 241, 0.5), transparent);
}

.footer .container {
  max-width: 1200px;
  margin: 0 auto;
}

.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 1.5rem;
}

.footer-section h3 {
  color: white;
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.footer-section h4 {
  color: white;
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  position: relative;
  padding-bottom: 0.5rem;
}

.footer-section h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 30px;
  height: 2px;
  background: var(--primary);
}

.footer-section p {
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.8;
  margin-bottom: 1rem;
}

.footer-section ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-section ul li {
  margin-bottom: 0.75rem;
}

.footer-section ul li a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: all 0.3s ease;
  display: inline-block;
}

.footer-section ul li a:hover {
  color: white;
  transform: translateX(5px);
}

.footer-section a {
  color: var(--primary-light);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-section a:hover {
  color: white;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1rem;
  text-align: center;
}

.footer-bottom p {
  color: rgba(255, 255, 255, 0.5);
  margin: 0;
  font-size: 0.9rem;
}

@media (max-width: 968px) {
  .footer-content {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
}

@media (max-width: 640px) {
  .footer-content {
    grid-template-columns: 1fr;
  }
}

/* Scroll Indicator - Shows user there's more content below */
.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: var(--gray);
  font-size: 0.9rem;
  font-weight: 500;
  opacity: 0.8;
  cursor: pointer;
  transition: all 0.3s ease;
  animation: scrollBounce 2s infinite;
}

.scroll-indicator:hover {
  opacity: 1;
  color: var(--primary);
}

.scroll-indicator i {
  font-size: 1.5rem;
  animation: scrollArrow 1.5s infinite;
}

@keyframes scrollBounce {
  0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
  40% { transform: translateX(-50%) translateY(-8px); }
  60% { transform: translateX(-50%) translateY(-4px); }
}

@keyframes scrollArrow {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 1; }
}

/* Hide scroll indicator after scrolling */
.scroll-indicator.hidden {
  opacity: 0;
  pointer-events: none;
}
