/* ===== INCOME PLATFORMS - Global Styles ===== */
:root {
  --primary: #1a56db;
  --primary-dark: #1e40af;
  --primary-light: #dbeafe;
  --success: #16a34a;
  --danger: #dc2626;
  --warning: #f59e0b;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;
  --cta-green: #16a34a;
  --cta-green-hover: #15803d;
  --radius: 12px;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
  --shadow: 0 1px 3px rgba(0,0,0,0.1), 0 1px 2px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 6px rgba(0,0,0,0.07), 0 2px 4px rgba(0,0,0,0.06);
  --shadow-lg: 0 10px 15px rgba(0,0,0,0.1), 0 4px 6px rgba(0,0,0,0.05);
  --max-width: 1200px;
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  color: var(--gray-800);
  background: var(--gray-50);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

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

/* ===== HEADER / NAV ===== */
.site-header {
  background: #fff;
  border-bottom: 1px solid var(--gray-200);
  position: sticky;
  top: 0;
  z-index: 100;
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.logo {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--gray-900);
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  flex-shrink: 0;
}
.logo img { height: 34px; width: auto; }
.logo svg { width: 28px; height: 28px; }
.logo span { color: var(--primary); }

.main-nav { display: flex; align-items: center; gap: 32px; }
.main-nav a {
  color: var(--gray-600);
  font-size: 0.938rem;
  font-weight: 500;
  transition: color 0.15s;
}
.main-nav a:hover, .main-nav a.active { color: var(--primary); }

.lang-switch {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
  color: var(--gray-500);
}
.lang-switch a {
  color: var(--gray-400);
  font-weight: 500;
  padding: 4px 8px;
  border-radius: 6px;
  transition: all 0.15s;
}
.lang-switch a:hover { color: var(--gray-700); background: var(--gray-100); }
.lang-switch a.active { color: var(--primary); background: var(--primary-light); }

/* Mobile menu */
.menu-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.menu-toggle span { display: block; width: 24px; height: 2px; background: var(--gray-700); margin: 5px 0; transition: 0.3s; }

/* ===== HERO ===== */
.hero {
  background: linear-gradient(135deg, #1e3a5f 0%, #1a56db 100%);
  color: #fff;
  padding: 80px 0 64px;
  text-align: center;
}
.hero h1 {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 16px;
  line-height: 1.2;
}
.hero p {
  font-size: 1.125rem;
  opacity: 0.9;
  max-width: 640px;
  margin: 0 auto 32px;
}
.hero-stats {
  display: flex;
  justify-content: center;
  gap: 48px;
  margin-top: 40px;
}
.hero-stat { text-align: center; }
.hero-stat .number { font-size: 2rem; font-weight: 700; }
.hero-stat .label { font-size: 0.875rem; opacity: 0.8; }

/* ===== SECTION ===== */
.section { padding: 64px 0; }
.section-title {
  font-size: 1.75rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 12px;
}
.section-subtitle {
  text-align: center;
  color: var(--gray-500);
  margin-bottom: 48px;
  font-size: 1.0625rem;
}

/* ===== PLATFORM CARD ===== */
.platform-card {
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 28px 32px;
  margin-bottom: 20px;
  display: grid;
  grid-template-columns: 200px 180px 1fr 200px;
  align-items: center;
  gap: 24px;
  transition: box-shadow 0.2s, border-color 0.2s;
  position: relative;
}
.platform-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--gray-300);
}
.platform-card.featured {
  border-color: var(--primary);
  box-shadow: 0 0 0 1px var(--primary), var(--shadow-md);
}

.card-badge {
  position: absolute;
  top: -12px;
  left: 24px;
  background: var(--primary);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 20px;
}

.card-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}
.card-brand .platform-logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--gray-900);
}
.card-rating {
  display: flex;
  align-items: center;
  gap: 8px;
}
.card-rating .score {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--gray-900);
}
.stars { color: var(--warning); font-size: 1rem; letter-spacing: 1px; }

.card-stats { display: flex; flex-direction: column; gap: 6px; }
.card-stat {
  display: flex;
  justify-content: space-between;
  font-size: 0.875rem;
  gap: 16px;
}
.card-stat .label { color: var(--gray-500); }
.card-stat .value { font-weight: 600; color: var(--gray-800); }

.card-features { display: flex; flex-direction: column; gap: 6px; }
.feature-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
}
.feature-yes { color: var(--success); }
.feature-no { color: var(--danger); }
.feature-icon { font-size: 1rem; flex-shrink: 0; }

.card-cta {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 0.938rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all 0.15s;
  text-align: center;
}
.btn-primary {
  background: var(--cta-green);
  color: #fff;
}
.btn-primary:hover { background: var(--cta-green-hover); color: #fff; }
.btn-outline {
  background: transparent;
  color: var(--gray-600);
  border: 1px solid var(--gray-300);
}
.btn-outline:hover { background: var(--gray-100); color: var(--gray-800); }
.btn-sm { padding: 8px 16px; font-size: 0.8125rem; }
.btn-blue { background: var(--primary); color: #fff; }
.btn-blue:hover { background: var(--primary-dark); color: #fff; }

/* ===== COMPARISON TABLE ===== */
.compare-table-wrapper { overflow-x: auto; margin: 0 -24px; padding: 0 24px; }
.compare-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.compare-table thead th {
  background: var(--gray-800);
  color: #fff;
  font-weight: 600;
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 14px 16px;
  text-align: left;
  white-space: nowrap;
  cursor: pointer;
  user-select: none;
}
.compare-table thead th:hover { background: var(--gray-700); }
.compare-table thead th .sort-icon { margin-left: 4px; opacity: 0.5; }
.compare-table tbody td {
  padding: 16px;
  border-bottom: 1px solid var(--gray-100);
  font-size: 0.875rem;
  vertical-align: middle;
}
.compare-table tbody tr:hover { background: var(--gray-50); }
.compare-table tbody tr:last-child td { border-bottom: none; }
.compare-table .platform-cell {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
  white-space: nowrap;
  min-width: 200px;
}
.compare-table .platform-cell .platform-logo-img {
  width: 80px;
  height: auto;
  max-height: 28px;
  object-fit: contain;
  flex-shrink: 0;
}
.compare-table .tag {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 500;
}
.tag-green { background: #dcfce7; color: #166534; }
.tag-red { background: #fee2e2; color: #991b1b; }
.tag-blue { background: #dbeafe; color: #1e40af; }
.tag-yellow { background: #fef3c7; color: #92400e; }

/* ===== PLATFORM PAGE ===== */
.platform-hero {
  background: linear-gradient(135deg, #1e3a5f 0%, #1a56db 100%);
  color: #fff;
  padding: 48px 0;
}
.platform-hero h1 { font-size: 2rem; font-weight: 700; margin-bottom: 8px; }
.platform-hero .subtitle { opacity: 0.9; font-size: 1.0625rem; }

.platform-overview {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 40px;
  margin-top: -32px;
}
.platform-main { background: #fff; border-radius: var(--radius); padding: 32px; box-shadow: var(--shadow); }
.platform-sidebar { display: flex; flex-direction: column; gap: 20px; }

.sidebar-box {
  background: #fff;
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
}
.sidebar-box h3 { font-size: 1rem; font-weight: 600; margin-bottom: 16px; }
.sidebar-stats { display: flex; flex-direction: column; gap: 12px; }
.sidebar-stat {
  display: flex;
  justify-content: space-between;
  font-size: 0.875rem;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--gray-100);
}
.sidebar-stat:last-child { border-bottom: none; padding-bottom: 0; }
.sidebar-stat .label { color: var(--gray-500); }
.sidebar-stat .value { font-weight: 600; }

/* ===== VS PAGE ===== */
.vs-hero {
  background: linear-gradient(135deg, #1e3a5f 0%, #1a56db 100%);
  color: #fff;
  padding: 48px 0;
  text-align: center;
}
.vs-hero h1 { font-size: 2rem; font-weight: 700; }
.vs-badge {
  display: inline-block;
  background: rgba(255,255,255,0.2);
  color: #fff;
  font-weight: 700;
  font-size: 1.25rem;
  padding: 8px 20px;
  border-radius: 50px;
  margin: 0 16px;
}
.vs-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin: 32px 0;
}
.vs-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
  text-align: center;
}
.vs-card h3 { font-size: 1.25rem; font-weight: 700; margin-bottom: 16px; }
.vs-card .score-big {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 16px;
}

.vs-comparison-row {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 16px;
  align-items: center;
  padding: 16px 0;
  border-bottom: 1px solid var(--gray-100);
}
.vs-comparison-row:last-child { border-bottom: none; }
.vs-comparison-row .left, .vs-comparison-row .right { font-size: 0.938rem; }
.vs-comparison-row .left { text-align: right; }
.vs-comparison-row .right { text-align: left; }
.vs-comparison-row .metric {
  font-weight: 600;
  font-size: 0.8125rem;
  text-transform: uppercase;
  color: var(--gray-400);
  letter-spacing: 0.5px;
  text-align: center;
  white-space: nowrap;
}
.vs-winner { color: var(--success); font-weight: 600; }

/* ===== FOOTER ===== */
.site-footer {
  background: var(--gray-800);
  color: var(--gray-300);
  padding: 48px 0 24px;
  margin-top: 64px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.footer-brand p { font-size: 0.875rem; line-height: 1.7; margin-top: 12px; }
.footer-col h4 { color: #fff; font-size: 0.875rem; font-weight: 600; margin-bottom: 16px; }
.footer-col a { display: block; color: var(--gray-400); font-size: 0.875rem; margin-bottom: 10px; }
.footer-col a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid var(--gray-700);
  padding-top: 24px;
  font-size: 0.8125rem;
  color: var(--gray-500);
  display: flex;
  justify-content: space-between;
}
.footer-disclaimer {
  background: var(--gray-900);
  border-radius: 8px;
  padding: 16px 20px;
  margin-bottom: 32px;
  font-size: 0.8125rem;
  line-height: 1.6;
  color: var(--gray-400);
}

/* ===== BREADCRUMB ===== */
.breadcrumb {
  padding: 12px 0;
  font-size: 0.8125rem;
  color: var(--gray-400);
}
.breadcrumb a { color: var(--gray-500); }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb span { margin: 0 6px; }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .platform-card { grid-template-columns: 160px 160px 1fr 160px; gap: 16px; padding: 20px 24px; }
  .platform-overview { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .platform-card {
    grid-template-columns: 1fr;
    gap: 20px;
    text-align: center;
  }
  .card-brand { align-items: center; }
  .card-stats { flex-direction: row; flex-wrap: wrap; justify-content: center; gap: 12px; }
  .card-stat { gap: 8px; }
  .card-features { flex-direction: row; flex-wrap: wrap; justify-content: center; }
  .hero h1 { font-size: 1.75rem; }
  .hero-stats { flex-wrap: wrap; gap: 24px; }
  .vs-grid { grid-template-columns: 1fr; }
  .vs-comparison-row { grid-template-columns: 1fr; gap: 4px; text-align: center; }
  .vs-comparison-row .left, .vs-comparison-row .right { text-align: center; }
  .footer-grid { grid-template-columns: 1fr; }
  .main-nav { display: none; }
  .main-nav.open { display: flex; flex-direction: column; position: absolute; top: 64px; left: 0; right: 0; background: #fff; padding: 16px 24px; border-bottom: 1px solid var(--gray-200); box-shadow: var(--shadow-lg); }
  .menu-toggle { display: block; }
  .footer-bottom { flex-direction: column; gap: 8px; }
}

/* ===== UTILITIES ===== */
.text-center { text-align: center; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mt-48 { margin-top: 48px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.mb-32 { margin-bottom: 32px; }
.gap-12 { gap: 12px; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.inline-flex { display: inline-flex; gap: 8px; flex-wrap: wrap; }
