@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&display=swap');

/* ===========================
   Reset & Base
   =========================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --primary: #4f46e5;       /* Indigo 600 */
  --primary-dark: #3730a3;  /* Indigo 800 */
  --primary-light: #e0e7ff; /* Indigo 100 */
  --accent: #f43f5e;        /* Rose 500 */
  
  --text: #0f172a;          /* Slate 900 */
  --text-muted: #64748b;    /* Slate 500 */
  
  --bg: #f8fafc;            /* Slate 50 */
  --bg-card: #ffffff;
  --bg-alt: #f1f5f9;        /* Slate 100 */
  --border: #e2e8f0;        /* Slate 200 */
  
  --gold: #f59e0b;
  --gold-bg: #fef3c7;
  
  --radius: 16px;
  --radius-sm: 8px;
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow: 0 4px 6px -1px rgb(0 0 0 / 0.05), 0 2px 4px -2px rgb(0 0 0 / 0.05);
  --shadow-hover: 0 20px 25px -5px rgb(0 0 0 / 0.08), 0 8px 10px -6px rgb(0 0 0 / 0.08);
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html { scroll-behavior: smooth; font-size: 16px; font-family: 'Outfit', sans-serif; }

body {
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

/* ===========================
   Layout
   =========================== */
.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ===========================
   Header (Premium Deep Gradient with Glowing Orbs)
   =========================== */
header {
  background: linear-gradient(135deg, #020617 0%, #172554 40%, #312e81 100%);
  color: #fff;
  padding: 80px 0 60px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

/* Glowing orbs for visual excellence */
header::before {
  content: "";
  position: absolute;
  top: -50%; left: -20%; width: 70%; height: 200%;
  background: radial-gradient(circle, rgba(79,70,229,0.2) 0%, transparent 60%);
  transform: rotate(30deg);
  pointer-events: none;
}
header::after {
  content: "";
  position: absolute;
  bottom: -50%; right: -20%; width: 70%; height: 200%;
  background: radial-gradient(circle, rgba(244,63,94,0.15) 0%, transparent 60%);
  pointer-events: none;
}

header .container { position: relative; z-index: 2; }

header .badge {
  display: inline-block;
  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.2);
  color: #f8fafc;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 8px 18px;
  border-radius: 100px;
  margin-bottom: 24px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

header h1 {
  font-size: clamp(2.2rem, 5.5vw, 3.8rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 20px;
  text-wrap: balance;
  letter-spacing: -0.02em;
}

header h1 span {
  background: linear-gradient(135deg, #fde68a 0%, #f59e0b 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

header .subtitle {
  font-size: 1.15rem;
  font-weight: 400;
  color: rgba(255,255,255,0.85);
  max-width: 680px;
  margin: 0 auto 32px;
  line-height: 1.7;
}

header .meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  font-size: 0.9rem;
  font-weight: 500;
  color: rgba(255,255,255,0.65);
  flex-wrap: wrap;
}

header .meta span::before {
  content: "•";
  margin-right: 12px;
  color: rgba(255,255,255,0.3);
}

header .meta span:first-child::before { content: ""; margin: 0; }

/* ===========================
   TOC Navigation
   =========================== */
.toc-section {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  padding: 20px 0;
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: var(--shadow-sm);
}

.toc-inner {
  display: flex;
  gap: 20px;
  align-items: center;
  flex-wrap: wrap;
}

.toc-label {
  font-size: 0.85rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

.toc-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.toc-links a {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--primary);
  background: var(--primary-light);
  padding: 8px 18px;
  border-radius: 100px;
  transition: var(--transition);
}

.toc-links a:hover {
  background: var(--primary);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(79,70,229,0.3);
}

/* ===========================
   Intro Section
   =========================== */
.intro-section { padding: 70px 0 40px; }

.intro-section h2 {
  font-size: 2.2rem;
  font-weight: 800;
  margin-bottom: 20px;
  color: var(--text);
  letter-spacing: -0.02em;
}

.intro-section p {
  color: var(--text-muted);
  font-size: 1.15rem;
  max-width: 800px;
  margin-bottom: 24px;
  line-height: 1.7;
}

.independent-disclaimer {
  background: linear-gradient(to right, rgba(79,70,229,0.06), rgba(79,70,229,0.01)) !important;
  border-left: 5px solid var(--primary) !important;
  border-radius: 0 12px 12px 0 !important;
  box-shadow: none !important;
  padding: 24px 28px !important;
  font-weight: 600 !important;
  color: var(--primary-dark) !important;
}

/* ===========================
   Methodology Bar
   =========================== */
.methodology {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin: 36px 0 40px;
}

.method-item {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 10px 22px;
  font-size: 0.95rem;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.method-item:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
  border-color: var(--primary-light);
}

.method-item .label { font-weight: 700; color: var(--text); }
.method-item .pct { color: var(--primary); font-weight: 800; background: var(--bg-alt); padding: 2px 8px; border-radius: 6px; }

/* ===========================
   Platforms Grid & Cards
   =========================== */
.platforms-section { padding: 30px 0 80px; }

.section-title {
  font-size: 1.85rem;
  font-weight: 800;
  margin-bottom: 36px;
  padding-bottom: 16px;
  border-bottom: 2px solid var(--border);
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 14px;
}

.platforms-grid {
  display: flex;
  flex-direction: column;
  gap: 36px;
}

.platform-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-card);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: var(--transition);
  position: relative;
}

.platform-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-4px) scale(1.002);
  border-color: #cbd5e1;
}

/* Stunning Top 3 Cards */
.platform-card.top3 {
  border: none;
  background: linear-gradient(var(--bg-card), var(--bg-card)) padding-box,
              linear-gradient(135deg, #f59e0b, #fde68a, #f59e0b) border-box;
  border: 2px solid transparent;
}
.platform-card.top3:hover {
  transform: translateY(-6px) scale(1.005);
  box-shadow: 0 25px 40px -10px rgba(245, 158, 11, 0.15), 0 10px 15px -5px rgba(245, 158, 11, 0.1);
}

.card-header {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 28px 36px 24px;
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
  background: rgba(248, 250, 252, 0.6);
}
.platform-card.top3 .card-header {
  background: linear-gradient(to right, rgba(254, 243, 199, 0.3), transparent);
}

.rank-badge {
  width: 54px;
  height: 54px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.35rem;
  flex-shrink: 0;
  background: var(--bg-alt);
  color: var(--text-muted);
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.04);
  transition: var(--transition);
}

.platform-card:hover .rank-badge {
  transform: scale(1.08) rotate(-4deg);
}

.rank-badge.gold { background: linear-gradient(135deg, #fde68a, #f59e0b); color: #78350f; box-shadow: 0 4px 12px rgba(245,158,11,0.35); }
.rank-badge.silver { background: linear-gradient(135deg, #e2e8f0, #94a3b8); color: #1e293b; box-shadow: 0 4px 12px rgba(148,163,184,0.35); }
.rank-badge.bronze { background: linear-gradient(135deg, #ffedd5, #fdba74); color: #7c2d12; box-shadow: 0 4px 12px rgba(253,186,116,0.35); }

.card-title-block { flex: 1; min-width: 0; }

.card-title-block h3 {
  font-size: 1.55rem;
  font-weight: 800;
  margin-bottom: 6px;
  color: var(--text);
  letter-spacing: -0.01em;
}

.card-tagline {
  font-size: 1rem;
  color: var(--text-muted);
  font-weight: 500;
}

.card-meta-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}

.price-tag {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--primary-dark);
  background: var(--primary-light);
  padding: 6px 16px;
  border-radius: 8px;
  white-space: nowrap;
  letter-spacing: -0.01em;
}

.best-for-badge {
  font-size: 0.85rem;
  font-weight: 800;
  color: #047857;
  background: #d1fae5;
  padding: 6px 14px;
  border-radius: 100px;
  white-space: nowrap;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.card-body { padding: 32px 36px 36px; }

.card-description {
  color: var(--text-muted);
  font-size: 1.1rem;
  line-height: 1.7;
  margin-bottom: 28px;
}

.card-stats {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
  margin-bottom: 28px;
  background: var(--bg);
  padding: 20px 24px;
  border-radius: 12px;
  border: 1px solid var(--border);
}

.stat {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
  min-width: 130px;
}

.stat-label {
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
}

.stat-value {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text);
}

.pros-cons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

@media (max-width: 680px) {
  .pros-cons { grid-template-columns: 1fr; }
}

.pros, .cons {
  background: rgba(248, 250, 252, 0.8);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
  transition: var(--transition);
}

.pros:hover { border-color: #a7f3d0; background: rgba(236, 253, 245, 0.6); }
.cons:hover { border-color: #fecdd3; background: rgba(255, 241, 242, 0.6); }

.pros .pros-title { 
  color: #059669; 
  font-size: 0.95rem; 
  font-weight: 800; 
  margin-bottom: 16px; 
  text-transform: uppercase; 
  letter-spacing: 0.08em; 
  display: flex;
  align-items: center;
  gap: 8px;
}
.pros .pros-title::before { content: "✓"; font-size: 1.3em; background: #d1fae5; width: 24px; height: 24px; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; }

.cons .cons-title { 
  color: #e11d48; 
  font-size: 0.95rem; 
  font-weight: 800; 
  margin-bottom: 16px; 
  text-transform: uppercase; 
  letter-spacing: 0.08em; 
  display: flex;
  align-items: center;
  gap: 8px;
}
.cons .cons-title::before { content: "×"; font-size: 1.3em; background: #ffe4e6; width: 24px; height: 24px; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; }

.pros ul, .cons ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.pros ul li { color: var(--text); font-size: 1rem; display: flex; align-items: flex-start; gap: 10px; line-height: 1.5; }
.cons ul li { color: var(--text); font-size: 1rem; display: flex; align-items: flex-start; gap: 10px; line-height: 1.5; }

.pros ul li::before { content: "✓"; color: #10b981; font-weight: 800; font-size: 1.1em; flex-shrink: 0; margin-top: 2px; }
.cons ul li::before { content: "×"; color: #f43f5e; font-weight: 800; font-size: 1.2em; flex-shrink: 0; margin-top: 2px; }

/* ===========================
   Comparison Table
   =========================== */
.comparison-section { padding: 40px 0 100px; }

.table-wrap { 
  overflow-x: auto; 
  border-radius: var(--radius); 
  border: 1px solid var(--border); 
  box-shadow: var(--shadow); 
  background: var(--bg-card);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
  min-width: 800px;
}

thead tr { 
  background: var(--bg-alt); 
  border-bottom: 2px solid #cbd5e1;
}

thead th {
  padding: 18px 24px;
  text-align: left;
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  white-space: nowrap;
}

tbody tr { transition: var(--transition); }
tbody tr:not(:last-child) { border-bottom: 1px solid var(--border); }
tbody tr:hover { background: var(--bg); }

tbody td {
  padding: 18px 24px;
  vertical-align: middle;
  color: var(--text);
}

td .rank-num { 
  font-weight: 800; 
  color: var(--text-muted); 
  background: var(--bg-alt);
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 0.9rem;
}
td .name-bold { font-weight: 800; color: var(--text); font-size: 1.1rem; }
td .tag-free { color: #059669; font-weight: 800; background: #d1fae5; padding: 4px 10px; border-radius: 6px; font-size: 0.8rem; }

/* ===========================
   FAQ Section
   =========================== */
.faq-section {
  background: var(--bg-card);
  padding: 80px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.faq-section h2 {
  font-size: 2.2rem;
  font-weight: 800;
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}

.faq-section .sub {
  color: var(--text-muted);
  margin-bottom: 40px;
  font-size: 1.15rem;
}

.faq-list { display: flex; flex-direction: column; gap: 16px; }

.faq-item {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  transition: var(--transition);
}

.faq-item:hover {
  border-color: #cbd5e1;
  box-shadow: var(--shadow-sm);
  background: var(--bg-card);
}

.faq-item summary {
  cursor: pointer;
  padding: 24px 28px;
  font-weight: 800;
  font-size: 1.15rem;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  color: var(--text);
}

.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { 
  content: "↓"; 
  font-size: 1.2rem; 
  color: var(--text-muted); 
  flex-shrink: 0; 
  transition: transform 0.3s ease;
  background: var(--border);
  width: 36px; height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.faq-item[open] summary::after { transform: rotate(180deg); color: var(--primary); background: var(--primary-light); }
.faq-item[open] summary { color: var(--primary); }

.faq-item .faq-body {
  padding: 0 28px 28px;
  color: var(--text-muted);
  font-size: 1.1rem;
  line-height: 1.7;
}

.faq-item .faq-body p { margin-bottom: 12px; }
.faq-item .faq-body ul { padding-left: 20px; }
.faq-item .faq-body li { margin-bottom: 6px; }

/* ===========================
   Footer
   =========================== */
footer {
  background: #020617;
  color: #94a3b8;
  padding: 70px 0;
  font-size: 1rem;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
  flex-wrap: wrap;
}

footer .footer-brand {
  font-size: 1.3rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 16px;
  letter-spacing: -0.01em;
}

footer p { margin-bottom: 10px; max-width: 480px; line-height: 1.6; }

footer .footer-links {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

footer .footer-links a {
  color: #cbd5e1;
  font-weight: 500;
  transition: var(--transition);
}

footer .footer-links a:hover { color: #38bdf8; }

/* ===========================
   AI Notice
   =========================== */
.ai-notice {
  background: linear-gradient(135deg, #f0f9ff, #e0f2fe);
  border: 1px solid #bae6fd;
  border-radius: var(--radius);
  padding: 24px 28px;
  margin: 40px 0;
  font-size: 1rem;
  color: #0369a1;
  display: flex;
  gap: 18px;
  align-items: flex-start;
  box-shadow: inset 0 2px 4px rgba(255,255,255,0.5);
}

.ai-notice span { font-size: 1.8rem; line-height: 1; }
.ai-notice strong { display: block; margin-bottom: 6px; font-size: 1.15rem; color: #075985; font-weight: 800; }

/* ===========================
   Responsive
   =========================== */
@media (max-width: 768px) {
  header { padding: 60px 0 40px; }
  .card-header { flex-direction: column; align-items: flex-start; gap: 16px; }
  .card-meta-right { align-items: flex-start; width: 100%; flex-direction: row; gap: 12px; flex-wrap: wrap; }
  .footer-inner { flex-direction: column; }
}
