/* Base Styles and Variables */
:root {
  --primary: #14b8a6;
  --primary-dark: #0f766e;
  --primary-light: #5eead4;
  --accent: #f97316;
  --dark: #0f172a;
  --light: #f8fafc;
  --gray: #94a3b8;
  --text: #334155;
  --gradient: linear-gradient(135deg, #14b8a6, #0d9488);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
  --radius-sm: 4px;
  --radius: 8px;
  --radius-lg: 16px;
  --spacing-xs: 0.25rem;
  --spacing-sm: 0.5rem;
  --spacing: 1rem;
  --spacing-md: 1.5rem;
  --spacing-lg: 2rem;
  --spacing-xl: 3rem;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', Oxygen, Ubuntu, Cantarell, sans-serif;
  color: var(--text);
  line-height: 1.5;
  background-color: var(--light);
}

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

ul {
  list-style: none;
}

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

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  line-height: 1.2;
  margin-bottom: var(--spacing);
  color: var(--dark);
}

h1 {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: var(--spacing-lg);
}

h2 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: var(--spacing-xl);
  position: relative;
  display: inline-block;
}

h2::after {
  content: '';
  position: absolute;
  height: 4px;
  width: 60px;
  background: var(--primary);
  bottom: -12px;
  left: 0;
  border-radius: var(--radius-sm);
}

h3 {
  font-size: 1.5rem;
  font-weight: 600;
}

p {
  margin-bottom: var(--spacing);
}

/* Button Styles */
.btn {
  display: inline-block;
  background: var(--primary);
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius);
  font-weight: 600;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
}

.btn:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-large {
  padding: 1rem 2rem;
  font-size: 1.1rem;
}

/* Header and Navigation */
header {
  background-color: white;
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 1000;
  padding: var(--spacing) 0;
}

header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
}

.logo-svg {
  height: 50px;
}

nav ul {
  display: flex;
  gap: var(--spacing-lg);
  align-items: center;
}

nav a {
  color: var(--text);
  font-weight: 500;
  position: relative;
}

nav a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: width 0.3s ease;
}

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

nav a:hover::after {
  width: 100%;
}

.cta a {
  background: var(--gradient);
  color: white;
  padding: 0.6rem 1.2rem;
  border-radius: var(--radius);
}

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

/* Hero Section */
.hero {
  background: linear-gradient(135deg, rgba(20, 184, 166, 0.1), rgba(15, 118, 110, 0.1));
  padding: 6rem 0;
  text-align: center;
}

.hero h1 {
  max-width: 800px;
  margin: 0 auto var(--spacing-lg);
}

.hero p {
  font-size: 1.25rem;
  max-width: 600px;
  margin: 0 auto var(--spacing-xl);
  color: var(--text);
}

/* Top Sites Section */
.top-sites {
  padding: var(--spacing-xl) 0;
  background-color: white;
}

.top-sites h2 {
  text-align: center;
  margin-bottom: var(--spacing-xl);
}

.top-sites h2::after {
  left: 50%;
  transform: translateX(-50%);
}

.site-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: var(--spacing-lg);
}

.site-card {
  border: 1px solid rgba(0, 0, 0, 0.05);
  border-radius: var(--radius);
  padding: var(--spacing-lg);
  position: relative;
  transition: all 0.3s ease;
  background: white;
  box-shadow: var(--shadow-sm);
  text-align: center;
}

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

.site-rank {
  position: absolute;
  top: -15px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary);
  color: white;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
}

.site-card h3 {
  margin-top: var(--spacing);
  margin-bottom: var(--spacing-sm);
}

.site-card p {
  margin-bottom: var(--spacing-lg);
  color: var(--gray);
}

/* Features Section */
.features {
  padding: var(--spacing-xl) 0;
  background-color: var(--light);
}

.features h2 {
  text-align: center;
  margin-bottom: var(--spacing-xl);
}

.features h2::after {
  left: 50%;
  transform: translateX(-50%);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: var(--spacing-lg);
}

.feature {
  text-align: center;
  padding: var(--spacing-lg);
  border-radius: var(--radius);
  background-color: white;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
}

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

.feature-icon {
  margin-bottom: var(--spacing);
  height: 60px;
  width: auto;
}

.feature h3 {
  margin-bottom: var(--spacing-sm);
  color: var(--primary);
}

.feature p {
  color: var(--gray);
}

/* Reviews Section */
.reviews {
  padding: var(--spacing-xl) 0;
  background-color: white;
}

.reviews h2 {
  text-align: center;
  margin-bottom: var(--spacing-xl);
}

.reviews h2::after {
  left: 50%;
  transform: translateX(-50%);
}

.review-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: var(--spacing-lg);
}

.review-card {
  background-color: var(--light);
  border-radius: var(--radius);
  padding: var(--spacing-lg);
  box-shadow: var(--shadow-sm);
  position: relative;
}

.review-card p {
  font-style: italic;
  margin-bottom: var(--spacing-md);
}

.reviewer {
  font-weight: 600;
  color: var(--primary);
}

/* FAQ Section */
.faq {
  padding: var(--spacing-xl) 0;
  background-color: var(--light);
}

.faq h2 {
  text-align: center;
  margin-bottom: var(--spacing-xl);
}

.faq h2::after {
  left: 50%;
  transform: translateX(-50%);
}

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

.faq-item {
  margin-bottom: var(--spacing-lg);
  padding: var(--spacing-lg);
  background-color: white;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.faq-item h3 {
  color: var(--primary);
  margin-bottom: var(--spacing-sm);
}

/* CTA Section */
.cta-section {
  padding: var(--spacing-xl) 0;
  background: var(--gradient);
  color: white;
  text-align: center;
}

.cta-section h2 {
  color: white;
  margin-bottom: var(--spacing);
}

.cta-section h2::after {
  background-color: white;
  left: 50%;
  transform: translateX(-50%);
}

.cta-section p {
  max-width: 600px;
  margin: 0 auto var(--spacing-lg);
}

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

.cta-section .btn:hover {
  background-color: var(--light);
  color: var(--primary-dark);
}

/* Footer */
footer {
  background-color: var(--dark);
  color: white;
  padding: var(--spacing-xl) 0 var(--spacing);
}

.footer-top {
  display: flex;
  justify-content: space-between;
  margin-bottom: var(--spacing-xl);
  flex-wrap: wrap;
  gap: var(--spacing-lg);
}

.footer-logo {
  max-width: 250px;
}

.footer-logo p {
  opacity: 0.7;
  margin-top: var(--spacing-sm);
}

.footer-links {
  display: flex;
  gap: var(--spacing-xl);
  flex-wrap: wrap;
}

.footer-column h4 {
  color: white;
  margin-bottom: var(--spacing);
  font-size: 1.1rem;
}

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

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

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

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

/* Responsive Design */
@media (max-width: 992px) {
  html {
    font-size: 15px;
  }
  
  .footer-top {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  
  .footer-links {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 768px) {
  html {
    font-size: 14px;
  }
  
  h1 {
    font-size: 2rem;
  }
  
  h2 {
    font-size: 1.75rem;
  }
  
  nav {
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background: white;
    padding: var(--spacing) 0;
    box-shadow: var(--shadow-md);
    display: none;
  }
  
  nav.active {
    display: block;
  }
  
  nav ul {
    flex-direction: column;
    gap: var(--spacing);
  }
  
  .mobile-menu-toggle {
    display: block;
  }
}

@media (max-width: 576px) {
  .container {
    width: 95%;
  }
  
  .site-grid,
  .feature-grid,
  .review-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-links {
    gap: var(--spacing-lg);
  }
  
  .footer-column {
    width: 100%;
    text-align: center;
  }
}
