/* Global Settings & Variables */
:root {
  --primary-color: #2563eb;
  /* Professional Blue */
  --primary-dark: #1e40af;
  --secondary-color: #64748b;
  /* Slate Gray */
  --bg-color: #f8fafc;
  /* Very light slate background */
  --card-bg: #ffffff;
  --text-main: #0f172a;
  /* Slate 900 */
  --text-muted: #64748b;
  --border-color: #e2e8f0;
  --font-family: 'Inter', system-ui, -apple-system, sans-serif;
  --radius-md: 0.5rem;
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
}

body {
  font-family: var(--font-family);
  background-color: var(--bg-color);
  color: var(--text-main);
  line-height: 1.6;
  margin: 0;
  padding: 0;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--text-main);
  line-height: 1.25;
  margin-top: 0;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color 0.2s;
}

/* Utilities */
.container-custom {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.text-center {
  text-align: center;
}

.mb-4 {
  margin-bottom: 2rem;
}

.mb-8 {
  margin-bottom: 4rem;
}

/* Enhanced Hero Section */
.hero-enhanced {
  background: #ffffff;
  /* White background */
  color: var(--text-main);
  /* Dark text */
  padding: 0.5rem 0 6rem 0;
  /* Minimal top padding */
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--border-color);
}

.hero-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4rem;
}

.hero-text {
  flex: 1;
  max-width: 600px;
}

.hero-title {
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
  line-height: 1.1;
  color: var(--text-main);
  /* Dark title */
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--text-muted);
  /* Muted dark text */
  margin-bottom: 2.5rem;
  line-height: 1.6;
}

.btn-primary-enhanced {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  background-color: var(--primary-color);
  color: white;
  padding: 1rem 2rem;
  border-radius: 9999px;
  font-weight: 600;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 6px -1px rgba(37, 99, 235, 0.4);
}

.btn-primary-enhanced:hover {
  background-color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 10px 15px -3px rgba(37, 99, 235, 0.5);
}

.hero-image {
  flex: 1;
  text-align: right;
}

.hero-image img {
  max-width: 100%;
  height: auto;
  filter: drop-shadow(0 20px 25px rgba(0, 0, 0, 0.5));
}

@media (max-width: 768px) {
  .hero-content {
    flex-direction: column;
    text-align: center;
  }

  .hero-text {
    margin: 0 auto;
  }
}

/* Enhanced Features Section */
.section-enhanced {
  padding: 5rem 0;
}

.section-title {
  font-size: 2.25rem;
  font-weight: 700;
  margin-bottom: 1rem;
  text-align: center;
}

.section-desc {
  color: var(--text-muted);
  text-align: center;
  max-width: 700px;
  margin: 0 auto 4rem auto;
  font-size: 1.1rem;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.feature-card-enhanced {
  background: var(--card-bg);
  padding: 2.5rem;
  border-radius: 1rem;
  border: 1px solid var(--border-color);
  transition: all 0.3s ease;
}

.feature-card-enhanced:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary-color);
}

.feature-icon {
  width: 60px;
  height: 60px;
  background-color: #eff6ff;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.feature-icon img {
  width: 32px;
  height: 32px;
}

.feature-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.feature-text {
  color: var(--text-muted);
}

/* Publishing Section */
.publish-enhanced {
  background-color: #fff;
}

.publish-content {
  display: flex;
  align-items: center;
  gap: 4rem;
}

.publish-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.publish-list li {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
  font-size: 1.1rem;
  color: var(--text-main);
}

.publish-list li::before {
  content: "✓";
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  background-color: #dcfce7;
  color: #16a34a;
  border-radius: 50%;
  font-size: 14px;
  font-weight: bold;
}

.publish-image img {
  border-radius: 1rem;
  box-shadow: var(--shadow-md);
  max-width: 100%;
}

@media (max-width: 900px) {
  .publish-content {
    flex-direction: column;
  }
}

/* Services Section */
.services-enhanced {
  background-color: var(--bg-color);
}

.service-card-enhanced {
  background: #fff;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s ease;
  text-align: center;
  padding: 2rem;
  height: 100%;
}

.service-card-enhanced:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.service-img-container {
  height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  background: #f1f5f9;
  border-radius: 0.5rem;
}

.service-img-container img {
  max-height: 120px;
  max-width: 90%;
  object-fit: contain;
}

/* Join Section */
.join-enhanced {
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  color: white;
  text-align: center;
  padding: 5rem 1.5rem;
  border-radius: 2rem;
  margin: 4rem 1.5rem;
}

.btn-white {
  background-color: white;
  color: var(--primary-color);
  padding: 1rem 2.5rem;
  border-radius: 9999px;
  font-weight: 700;
  display: inline-block;
  margin: 2rem 0;
  transition: transform 0.2s;
}

.btn-white:hover {
  transform: scale(1.05);
  color: var(--primary-dark);
}

/* Traffic Countries */
.traffic-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  max-width: 1000px;
  margin: 0 auto;
}

.country-pill {
  background: #fff;
  border: 1px solid var(--border-color);
  padding: 0.75rem 1.5rem;
  border-radius: 9999px;
  font-weight: 500;
  color: var(--text-main);
  transition: all 0.2s;
  cursor: pointer;
}

.country-pill:hover {
  border-color: var(--primary-color);
  color: var(--primary-color);
  background-color: #eff6ff;
}

/* Table Wrapper for Isolation */
.table-wrapper {
  background: #fff;
  padding: 2rem;
  border-radius: 1rem;
  box-shadow: var(--shadow-sm);
  margin: 4rem auto;
  overflow: hidden;
  max-width: 95%;
  /* Make it wider */
}

/* About Section Enhanced */
.about-enhanced {
  background-color: #fff;
  padding: 5rem 0;
}

.about-content {
  display: flex;
  align-items: center;
  gap: 4rem;
}

.about-image-enhanced img {
  border-radius: 1.5rem;
  box-shadow: var(--shadow-md);
  max-width: 100%;
}

.about-text h2 {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  font-weight: 700;
  color: var(--text-main);
}

.about-text p {
  font-size: 1.125rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
  line-height: 1.7;
}

@media (max-width: 900px) {
  .about-content {
    flex-direction: column-reverse;
  }
}