/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary-blue: #0066CC;
  --primary-dark: #004C99;
  --accent-teal: #00CED1;
  --text-dark: #1a1a2e;
  --text-secondary: #4a4a68;
  --text-light: #6b6b8d;
  --bg-white: #ffffff;
  --bg-light: #f8f9fc;
  --bg-gray: #eef1f6;
  --border-color: #e0e4eb;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.12);
  --radius: 8px;
  --radius-lg: 12px;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Segoe UI', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-dark);
  background-color: var(--bg-white);
}

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

/* Typography */
h1, h2, h3, h4 {
  font-weight: 600;
  line-height: 1.3;
  color: var(--text-dark);
}

h1 {
  font-size: 2.5rem;
}

h2 {
  font-size: 1.875rem;
  margin-bottom: 1rem;
}

h3 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

p {
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

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

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

ul {
  list-style: none;
}

/* Button */
.btn {
  display: inline-block;
  padding: 14px 32px;
  font-size: 1rem;
  font-weight: 600;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
  border: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary-blue) 0%, var(--accent-teal) 100%);
  color: white;
  box-shadow: var(--shadow-md);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  color: white;
}

/* Header & Navigation */
.header {
  background: var(--bg-white);
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 1000;
}

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

.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo {
  width: 36px;
  height: 36px;
  object-fit: contain;
}

.brand-name {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-dark);
}

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

.nav-links a {
  color: var(--text-secondary);
  font-weight: 500;
  padding: 8px 0;
  border-bottom: 2px solid transparent;
  transition: all 0.2s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--primary-blue);
  border-bottom-color: var(--primary-blue);
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, var(--primary-blue) 0%, var(--accent-teal) 100%);
  padding: 80px 24px;
  text-align: center;
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
}

.hero h1 {
  color: white;
  margin-bottom: 20px;
  font-size: 2.75rem;
}

.hero-subtitle {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.25rem;
  margin-bottom: 32px;
}

.hero .btn-primary {
  background: white;
  color: var(--primary-blue);
}

.hero .btn-primary:hover {
  background: var(--bg-light);
}

/* Page Hero (for inner pages) */
.page-hero {
  background: var(--bg-light);
  padding: 60px 24px;
  text-align: center;
  border-bottom: 1px solid var(--border-color);
}

.page-hero h1 {
  margin-bottom: 12px;
}

.page-subtitle {
  color: var(--text-light);
  font-size: 1.125rem;
}

/* Features Section */
.features {
  padding: 80px 24px;
  background: var(--bg-white);
}

.features h2 {
  text-align: center;
  margin-bottom: 48px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 32px;
}

.feature-card {
  background: var(--bg-light);
  padding: 32px;
  border-radius: var(--radius-lg);
  text-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.feature-icon {
  color: var(--primary-blue);
  margin-bottom: 20px;
}

.feature-card h3 {
  margin-bottom: 12px;
}

.feature-card p {
  font-size: 0.95rem;
  margin-bottom: 0;
}

/* Info Section */
.info-section {
  padding: 80px 24px;
  background: var(--bg-light);
}

.info-section h2 {
  text-align: center;
  margin-bottom: 48px;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.info-item {
  background: var(--bg-white);
  padding: 28px;
  border-radius: var(--radius);
  border: 1px solid var(--border-color);
}

.info-item h3 {
  color: var(--primary-blue);
  margin-bottom: 12px;
}

.info-item p {
  margin-bottom: 0;
  font-size: 0.95rem;
}

/* FAQ Section */
.faq-section {
  padding: 80px 24px;
  background: var(--bg-white);
}

.faq-section h2 {
  text-align: center;
  margin-bottom: 48px;
}

.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  background: var(--bg-light);
  padding: 24px;
  border-radius: var(--radius);
  margin-bottom: 16px;
}

.faq-item h3 {
  color: var(--text-dark);
  margin-bottom: 8px;
}

.faq-item p {
  margin-bottom: 0;
}

/* CTA Section */
.cta-section {
  background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-dark) 100%);
  padding: 60px 24px;
  text-align: center;
}

.cta-section h2 {
  color: white;
  margin-bottom: 12px;
}

.cta-section p {
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 24px;
}

.cta-section .btn-primary {
  background: white;
  color: var(--primary-blue);
}

/* Content Section (About, Privacy pages) */
.content-section {
  padding: 60px 24px;
}

.content-article {
  max-width: 800px;
  margin: 0 auto 48px;
}

.content-article:last-child {
  margin-bottom: 0;
}

.content-article h2 {
  color: var(--primary-blue);
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--bg-gray);
}

.content-article h3 {
  margin-top: 24px;
  margin-bottom: 12px;
}

.feature-list {
  margin: 16px 0;
  padding-left: 0;
}

.feature-list li {
  position: relative;
  padding-left: 24px;
  margin-bottom: 12px;
  color: var(--text-secondary);
}

.feature-list li::before {
  content: "•";
  color: var(--primary-blue);
  font-weight: bold;
  position: absolute;
  left: 8px;
}

/* Download Grid */
.download-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin-top: 24px;
}

.download-card {
  background: var(--bg-light);
  padding: 24px;
  border-radius: var(--radius);
  border-left: 4px solid var(--primary-blue);
}

.download-card h3 {
  font-size: 1.1rem;
  margin-bottom: 8px;
}

.download-card p {
  font-size: 0.9rem;
  margin-bottom: 0;
}

/* Legal Content Styling */
.legal-content .content-article ul {
  margin: 16px 0;
  padding-left: 0;
}

.legal-content .content-article ul li {
  position: relative;
  padding-left: 24px;
  margin-bottom: 8px;
  color: var(--text-secondary);
}

.legal-content .content-article ul li::before {
  content: "•";
  color: var(--primary-blue);
  font-weight: bold;
  position: absolute;
  left: 8px;
}

/* Footer */
.footer {
  background: var(--text-dark);
  color: white;
  padding: 48px 24px 24px;
}

.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 48px;
  max-width: 1200px;
  margin: 0 auto;
}

.footer-brand {
  max-width: 400px;
}

.footer-logo {
  width: 40px;
  height: 40px;
  margin-bottom: 16px;
}

.footer-brand p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.95rem;
}

.footer-links h4 {
  color: white;
  margin-bottom: 16px;
  font-size: 1rem;
}

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

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

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

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

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

/* Responsive Design */
@media (max-width: 768px) {
  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.5rem;
  }

  .nav {
    flex-direction: column;
    gap: 16px;
  }

  .nav-links {
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
  }

  .hero {
    padding: 60px 24px;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .features,
  .info-section,
  .faq-section {
    padding: 60px 24px;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 1.75rem;
  }

  .btn {
    width: 100%;
    padding: 14px 24px;
  }

  .features-grid,
  .info-grid,
  .download-grid {
    grid-template-columns: 1fr;
  }
}
