/* ===== AIO MySEO — Marketing Site Styles ===== */
/* Light + Clean design system */

:root {
  --color-bg: #ffffff;
  --color-bg-alt: #f7f8fa;
  --color-bg-dark: #0f172a;
  --color-text: #1e293b;
  --color-text-muted: #64748b;
  --color-text-light: #94a3b8;
  --color-primary: #2563eb;
  --color-primary-hover: #1d4ed8;
  --color-primary-light: #eff6ff;
  --color-accent: #06b6d4;
  --color-border: #e2e8f0;
  --color-success: #10b981;
  --color-warning: #f59e0b;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
  --max-width: 1120px;
  --radius: 8px;
  --radius-lg: 12px;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
  --shadow-lg: 0 12px 32px rgba(0,0,0,0.1);
  --transition: 0.2s ease;
}

/* ===== Reset ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }

body {
  font-family: var(--font-sans);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

img { max-width: 100%; display: block; }
a { color: var(--color-primary); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--color-primary-hover); }

/* ===== Typography ===== */
h1, h2, h3, h4 { font-weight: 700; line-height: 1.2; color: var(--color-text); }
h1 { font-size: clamp(2rem, 5vw, 3rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.25rem); letter-spacing: -0.01em; }
h3 { font-size: 1.25rem; }
p { color: var(--color-text-muted); max-width: 640px; line-height: 1.7; }
p + p { margin-top: 16px; }

/* ===== Container ===== */
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; width: 100%; }

/* ===== Navigation ===== */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
}
.site-nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.nav-brand {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--color-text);
  letter-spacing: -0.02em;
}
.nav-brand span { color: var(--color-primary); }
.nav-links { display: flex; align-items: center; gap: 32px; list-style: none; }
.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-text-muted);
  transition: color var(--transition);
}
.nav-links a:hover { color: var(--color-text); }
.nav-actions { display: flex; align-items: center; gap: 12px; }

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  gap: 8px;
  white-space: nowrap;
}
.btn-primary {
  background: var(--color-primary);
  color: #fff;
}
.btn-primary:hover {
  background: var(--color-primary-hover);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}
.btn-ghost {
  background: transparent;
  color: var(--color-text-muted);
  border: 1px solid var(--color-border);
}
.btn-ghost:hover {
  color: var(--color-text);
  border-color: var(--color-text-light);
}
.btn-large {
  padding: 14px 28px;
  font-size: 1rem;
  border-radius: var(--radius-lg);
}

/* ===== Hero ===== */
.hero {
  padding: 80px 0 48px;
  text-align: center;
}
.hero h1 { margin-bottom: 20px; }
.hero p {
  font-size: 1.15rem;
  margin: 0 auto 24px;
  max-width: 560px;
}
.hero-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.hero-badge {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-primary);
  background: var(--color-primary-light);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 20px;
  letter-spacing: 0.02em;
}

/* ===== Section ===== */
.section { padding: 80px 0; }
.section-alt { background: var(--color-bg-alt); }
.section-header {
  text-align: center;
  margin-bottom: 48px;
}
.section-header p {
  margin: 12px auto 0;
  font-size: 1.05rem;
}

/* ===== Feature Grid ===== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}
.feature-card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: box-shadow var(--transition), transform var(--transition);
}
.feature-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.feature-icon {
  width: 48px;
  height: 48px;
  background: var(--color-primary-light);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 16px;
}
.feature-card h3 { margin-bottom: 8px; }
.feature-card p { font-size: 0.95rem; }

/* ===== How It Works ===== */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 32px;
  counter-reset: step;
}
.step {
  text-align: center;
  counter-increment: step;
}
.step::before {
  content: counter(step);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: var(--color-primary);
  color: #fff;
  font-weight: 700;
  border-radius: 50%;
  font-size: 1rem;
  margin-bottom: 16px;
}
.step h3 { margin-bottom: 8px; }
.step p { margin: 0 auto; font-size: 0.95rem; }

/* ===== Pricing ===== */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 24px;
  align-items: stretch;
}
.pricing-card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 32px;
  position: relative;
  transition: box-shadow var(--transition);
  display: flex;
  flex-direction: column;
}
.pricing-card:hover { box-shadow: var(--shadow-md); }
.pricing-card.featured {
  border-color: var(--color-primary);
  box-shadow: var(--shadow-md);
}
.pricing-card.featured::before {
  content: 'Most Popular';
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--color-primary);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.pricing-card h3 { margin-bottom: 4px; }
.pricing-card .price {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--color-text);
  margin: 16px 0 4px;
  line-height: 1;
}
.pricing-card .price span {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-text-muted);
}
.pricing-card .plan-desc {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  margin-bottom: 20px;
}
.pricing-card ul {
  list-style: none;
  margin-bottom: 32px;
  flex: 1;
}
.pricing-card ul li {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  padding: 6px 0;
  border-bottom: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  gap: 8px;
}
.pricing-card ul li::before {
  content: '✓';
  color: var(--color-success);
  font-weight: 700;
}
.pricing-card .btn { width: 100%; }

/* Enterprise banner */
.enterprise-banner {
  margin-top: 32px;
  background: linear-gradient(135deg, var(--color-primary), #1e40af);
  border-radius: var(--radius-lg);
  padding: 40px 48px;
  color: #fff;
}
.enterprise-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}
.enterprise-text h3 {
  color: #fff;
  font-size: 1.5rem;
  margin-bottom: 8px;
}
.enterprise-text p {
  color: rgba(255,255,255,0.85);
  font-size: 1rem;
  line-height: 1.6;
  margin: 0;
  max-width: 680px;
}
.enterprise-banner .btn {
  background: #fff;
  color: var(--color-primary);
  border-color: #fff;
  white-space: nowrap;
  flex-shrink: 0;
}
.enterprise-banner .btn:hover {
  background: rgba(255,255,255,0.9);
}

/* ===== FAQ ===== */
.faq-list { max-width: 720px; margin: 0 auto; }
.faq-item {
  border-bottom: 1px solid var(--color-border);
}
.faq-question {
  width: 100%;
  background: none;
  border: none;
  text-align: left;
  padding: 20px 0;
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-text);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-sans);
}
.faq-question::after {
  content: '+';
  font-size: 1.25rem;
  color: var(--color-text-light);
  transition: transform var(--transition);
}
.faq-item.open .faq-question::after {
  content: '−';
}
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}
.faq-item.open .faq-answer {
  max-height: 500px;
}
.faq-answer p {
  padding: 0 0 20px;
  font-size: 0.95rem;
}

/* ===== CTA Section ===== */
.cta-section {
  text-align: center;
  padding: 80px 0;
  background: var(--color-bg-alt);
}
.cta-section h2 { margin-bottom: 16px; }
.cta-section p { margin: 0 auto 32px; }

/* ===== Footer ===== */
.site-footer {
  margin-top: auto;
  background: var(--color-bg-dark);
  color: var(--color-text-light);
  padding: 48px 0 24px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.footer-brand { font-size: 1.1rem; font-weight: 700; color: #fff; margin-bottom: 8px; }
.footer-brand span { color: var(--color-primary); }
.footer-tagline { font-size: 0.85rem; color: var(--color-text-light); }
.footer-col h4 { color: #fff; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 12px; }
.footer-col a {
  display: block;
  font-size: 0.85rem;
  color: var(--color-text-light);
  padding: 4px 0;
  transition: color var(--transition);
}
.footer-col a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
}

/* ===== Legal Pages ===== */
.legal-page { padding: 60px 0 80px; }
.legal-page h1 { margin-bottom: 8px; }
.legal-page .last-updated { font-size: 0.85rem; color: var(--color-text-light); margin-bottom: 40px; }
.legal-page h2 { font-size: 1.35rem; margin: 40px 0 12px; }
.legal-page h3 { margin: 24px 0 8px; }
.legal-page p { margin-bottom: 16px; max-width: 100%; }
.legal-page ul { margin: 0 0 16px 24px; color: var(--color-text-muted); }
.legal-page ul li { margin-bottom: 6px; font-size: 0.95rem; }
.legal-content { max-width: 740px; }

/* ===== Content Pages (About, etc.) ===== */
.content-page { max-width: 740px; }
.content-page h2 {
  font-size: 1.5rem;
  margin: 48px 0 16px;
}
.content-page h2:first-child { margin-top: 0; }
.content-page p {
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--color-text-muted);
  margin-bottom: 20px;
  max-width: 100%;
}
.content-page p:last-child { margin-bottom: 0; }
.content-page p strong {
  color: var(--color-text);
  font-weight: 600;
}

/* ===== Mobile Nav ===== */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--color-text);
  margin: 5px 0;
  transition: all var(--transition);
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .nav-toggle { display: block; }
  .nav-links {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--color-bg);
    border-bottom: 1px solid var(--color-border);
    flex-direction: column;
    padding: 16px 24px;
    gap: 16px;
  }
  .nav-links.open { display: flex; }
  .nav-actions { display: none; }
  .nav-links.open + .nav-actions,
  .nav-links.open ~ .nav-actions { display: none; }
  /* Show auth links in mobile menu */
  .nav-mobile-auth { display: block !important; }

  .hero { padding: 48px 0 40px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
  .pricing-grid { grid-template-columns: 1fr; max-width: 400px; margin: 0 auto; }
  .enterprise-content { flex-direction: column; text-align: center; }
  .enterprise-banner { padding: 32px 24px; }
  .enterprise-banner .btn { width: 100%; }
  .features-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
}
