/* ==========================================================================
   Atlas IQ - Simple Modern Stylesheet
   ========================================================================== */

:root {
  --primary-color: #2563eb;
  --primary-hover: #1d4ed8;
  --text-dark: #1f2937;
  --text-light: #4b5563;
  --bg-light: #f9fafb;
  --bg-white: #ffffff;
  --border-color: #e5e7eb;
  --max-width: 1000px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--text-dark);
  background-color: var(--bg-light);
  line-height: 1.6;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

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

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 70px;
}

.brand {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--primary-color);
  text-decoration: none;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 1.5rem;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-light);
  font-weight: 500;
  transition: color 0.2s;
}

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

/* Hero Section */
.hero {
  background-color: var(--bg-white);
  padding: 4rem 0;
  text-align: center;
  border-bottom: 1px solid var(--border-color);
}

.hero h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: var(--text-dark);
}

.hero p {
  font-size: 1.2rem;
  color: var(--text-light);
  max-width: 600px;
  margin: 0 auto 2rem;
}

/* Buttons & Badges */
.btn {
  display: inline-block;
  background-color: var(--primary-color);
  color: var(--bg-white);
  padding: 0.75rem 1.5rem;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  transition: background-color 0.2s;
}

.btn:hover {
  background-color: var(--primary-hover);
}

.download-buttons {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 1.5rem;
}

.download-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 1.25rem;
  border-radius: 8px;
  text-decoration: none;
  text-align: left;
  transition: background-color 0.2s, border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}

/* iOS App Store Brand Styling */
.download-btn.ios-theme {
  background-color: #000000;
  color: white;
  border: 1px solid #222222;
}

.download-btn.ios-theme:hover {
  background-color: #111111;
  border-color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(255, 255, 255, 0.08);
}

/* Google Play Store Brand Styling */
.download-btn.android-theme {
  background-color: #0c0f16;
  color: white;
  border: 1px solid #1f293d;
}

.download-btn.android-theme:hover {
  background-color: #121824;
  border-color: #29c661; /* Google Play signature green */
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(41, 198, 97, 0.1);
}

.download-btn svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
  flex-shrink: 0;
}

.download-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.download-sub {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #9ca3af;
}

.download-main {
  font-size: 0.95rem;
  font-weight: 700;
  color: white;
}

/* Features Grid */
.features-section {
  padding: 4rem 0;
}

.section-title {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 3rem;
}

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

.card {
  background-color: var(--bg-white);
  padding: 2rem;
  border-radius: 8px;
  border: 1px solid var(--border-color);
}

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

.card p {
  color: var(--text-light);
}

/* Legal Pages Styling */
.legal-page {
  padding: 3rem 2.5rem 5rem;
  background-color: var(--bg-white);
  margin: 2rem auto;
  border-radius: 8px;
  border: 1px solid var(--border-color);
  max-width: 800px;
}

.legal-header {
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 1.5rem;
  margin-bottom: 2rem;
}

.legal-header h1 {
  font-size: 2.2rem;
  margin-bottom: 0.5rem;
}

.legal-meta {
  color: var(--text-light);
  font-size: 0.9rem;
}

.legal-content h2 {
  font-size: 1.4rem;
  margin: 2rem 0 1rem;
}

.legal-content h3 {
  font-size: 1.15rem;
  margin: 1.5rem 0 0.5rem;
  color: var(--text-dark);
}

.legal-content p {
  color: var(--text-light);
  margin-bottom: 1.2rem;
}

.legal-content ul {
  margin: 0 0 1.5rem 1.5rem;
  color: var(--text-light);
}

.legal-content li {
  margin-bottom: 0.5rem;
}

/* Footer */
footer {
  background-color: var(--bg-white);
  border-top: 1px solid var(--border-color);
  padding: 3rem 0;
  margin-top: 4rem;
}

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

.footer-col h4 {
  margin-bottom: 1rem;
  color: var(--text-dark);
}

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

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

.footer-col a {
  text-decoration: none;
  color: var(--text-light);
}

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

.footer-bottom {
  border-top: 1px solid var(--border-color);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  color: var(--text-light);
  font-size: 0.9rem;
}

/* Mobile Responsive */
@media (max-width: 600px) {
  .navbar {
    flex-direction: column;
    height: auto;
    padding: 1rem 0;
    gap: 1rem;
  }
  .nav-links {
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
  }
  .hero h1 {
    font-size: 2rem;
  }
  .legal-page {
    margin: 1rem;
    padding: 2rem 1.5rem;
  }
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}
