/* ---------- Reset & Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  color: #1a2f3a;
  background: #f4f9fc;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3 {
  font-family: 'Playfair Display', Georgia, serif;
  color: #0a3d62;
  line-height: 1.2;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid #e1ecf2;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 70px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 18px;
  color: #0a3d62;
}
.brand-mark {
  font-size: 26px;
}
.nav {
  display: flex;
  gap: 28px;
}
.nav a {
  font-weight: 500;
  color: #4a6572;
  transition: color 0.2s;
  font-size: 15px;
}
.nav a:hover { color: #0a3d62; }
.cta-header {
  background: linear-gradient(135deg, #0a3d62, #1e88e5);
  color: white;
  padding: 10px 20px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 14px;
  transition: transform 0.2s, box-shadow 0.2s;
}
.cta-header:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(10, 61, 98, 0.25);
}

@media (max-width: 820px) {
  .nav { display: none; }
}

/* ---------- Hero ---------- */
.hero {
  background:
    radial-gradient(ellipse at top right, rgba(30, 136, 229, 0.15), transparent 60%),
    linear-gradient(180deg, #eaf6fc 0%, #f4f9fc 100%);
  padding: 80px 0 70px;
  text-align: center;
}
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 12px;
  font-weight: 700;
  color: #1e88e5;
  margin-bottom: 18px;
}
.hero h1 {
  font-size: clamp(34px, 5vw, 56px);
  font-weight: 900;
  max-width: 900px;
  margin: 0 auto 20px;
  letter-spacing: -0.02em;
}
.lede {
  max-width: 700px;
  margin: 0 auto 36px;
  font-size: 18px;
  color: #4a6572;
}
.hero-meta {
  display: flex;
  justify-content: center;
  gap: 48px;
  flex-wrap: wrap;
  margin-bottom: 36px;
}
.meta-item {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.meta-item strong {
  font-size: 32px;
  font-weight: 800;
  color: #0a3d62;
  font-family: 'Playfair Display', serif;
}
.meta-item span {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #6a8393;
  margin-top: 2px;
}
.cta-primary {
  display: inline-block;
  background: linear-gradient(135deg, #0a3d62, #1e88e5);
  color: white;
  padding: 16px 36px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 16px;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 8px 24px rgba(10, 61, 98, 0.2);
}
.cta-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(10, 61, 98, 0.3);
}

/* ---------- Ranking Cards ---------- */
.ranking {
  display: flex;
  flex-direction: column;
  gap: 40px;
  padding: 70px 0 40px;
}
.card {
  position: relative;
  background: white;
  border-radius: 20px;
  box-shadow: 0 4px 24px rgba(10, 61, 98, 0.08);
  overflow: hidden;
  transition: transform 0.25s, box-shadow 0.25s;
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(10, 61, 98, 0.12);
}
.card--winner {
  border: 3px solid #ffc107;
  box-shadow: 0 12px 40px rgba(255, 193, 7, 0.2);
  background: linear-gradient(180deg, #fffef7 0%, white 30%);
}
.card--winner::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 6px;
  background: linear-gradient(90deg, #ffd700, #ffa500, #ffd700);
}

.rank-badge {
  position: absolute;
  top: 24px;
  left: 24px;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: flex;
  align-items: baseline;
  justify-content: center;
  font-family: 'Playfair Display', serif;
  font-weight: 900;
  color: white;
  z-index: 2;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);
}
.rank-badge .rank-hash {
  font-size: 16px;
  opacity: 0.8;
  margin-right: 1px;
}
.rank-badge .rank-num {
  font-size: 30px;
}
.rank-badge--gold { background: linear-gradient(135deg, #ffd700, #ff9500); }
.rank-badge--silver { background: linear-gradient(135deg, #c0c0c0, #9aa0a6); }
.rank-badge--bronze { background: linear-gradient(135deg, #cd7f32, #a35a1c); }
.rank-badge--standard { background: linear-gradient(135deg, #5c7a8a, #34495e); }

.card-body {
  padding: 36px 36px 36px 110px;
}
@media (max-width: 640px) {
  .card-body { padding: 90px 24px 28px; }
  .rank-badge { top: 20px; left: 50%; transform: translateX(-50%); }
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.card-header h2 {
  font-size: 28px;
  margin-bottom: 4px;
}
.card--winner .card-header h2 { font-size: 34px; }
.location {
  font-size: 14px;
  color: #6a8393;
  font-weight: 500;
}
.winner-tag {
  display: inline-block;
  background: linear-gradient(135deg, #ffd700, #ffa500);
  color: #5a3e00;
  font-weight: 700;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 6px 12px;
  border-radius: 999px;
  margin-bottom: 10px;
}

.rating-block { text-align: right; min-width: 160px; }
.stars {
  color: #ffa000;
  font-size: 20px;
  letter-spacing: 2px;
  margin-bottom: 2px;
}
.rating-text {
  font-size: 14px;
  color: #4a6572;
}
.rating-text strong {
  font-size: 18px;
  color: #0a3d62;
}

.card-summary {
  color: #3a5360;
  margin-bottom: 24px;
  font-size: 16px;
}

/* ---------- Team Photo ---------- */
.team-photo {
  margin: 24px 0;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(10, 61, 98, 0.18);
  position: relative;
}
.team-photo img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}
.team-photo figcaption {
  padding: 12px 16px;
  font-size: 13px;
  color: #6a8393;
  text-align: center;
  background: #f4f9fc;
  font-style: italic;
}
/* Fallback when the image fails to load */
.team-photo.photo-fallback {
  min-height: 200px;
  background:
    radial-gradient(ellipse at top left, rgba(255, 215, 0, 0.25), transparent 60%),
    linear-gradient(135deg, #0a3d62 0%, #1565c0 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}
.team-photo.photo-fallback::after {
  content: '📸  Drop your team photo at assets/team.jpg';
  color: #ffd700;
  font-weight: 600;
  font-size: 14px;
  padding: 20px;
  text-align: center;
}
.team-photo.photo-fallback figcaption {
  display: none;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin: 24px 0;
  padding: 20px;
  background: #f4f9fc;
  border-radius: 12px;
}
.feature {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.feature > span {
  font-size: 24px;
  flex-shrink: 0;
}
.feature strong {
  display: block;
  color: #0a3d62;
  font-size: 14px;
  margin-bottom: 2px;
}
.feature p {
  font-size: 13px;
  color: #6a8393;
  line-height: 1.4;
}

.pros-cons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 20px;
}
@media (max-width: 600px) {
  .pros-cons { grid-template-columns: 1fr; }
}
.pros, .cons {
  padding: 18px;
  border-radius: 10px;
}
.pros {
  background: #e8f5e9;
  border-left: 4px solid #43a047;
}
.cons {
  background: #fff3e0;
  border-left: 4px solid #fb8c00;
}
.pros h4, .cons h4 {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 10px;
  color: #0a3d62;
}
.pros ul, .cons ul {
  padding-left: 18px;
  font-size: 14px;
  color: #3a5360;
}
.pros li, .cons li {
  margin-bottom: 6px;
}

.review-quote {
  font-style: italic;
  padding: 18px 22px;
  background: #f4f9fc;
  border-left: 4px solid #1e88e5;
  border-radius: 8px;
  margin: 20px 0;
  color: #3a5360;
}
.review-quote cite {
  display: block;
  margin-top: 8px;
  font-size: 13px;
  color: #6a8393;
  font-style: normal;
}

.card-cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 24px;
}
.btn {
  display: inline-block;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 14px;
  transition: transform 0.2s, box-shadow 0.2s;
  cursor: pointer;
  border: none;
}
.btn-primary {
  background: linear-gradient(135deg, #0a3d62, #1e88e5);
  color: white;
}
.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(10, 61, 98, 0.25);
}
.btn-secondary {
  background: white;
  color: #0a3d62;
  border: 2px solid #0a3d62;
}
.btn-secondary:hover {
  background: #0a3d62;
  color: white;
}
.btn-ghost {
  background: transparent;
  color: white;
  border: 2px solid rgba(255, 255, 255, 0.5);
}
.btn-ghost:hover {
  background: white;
  color: #0a3d62;
  border-color: white;
}
.btn-large {
  padding: 16px 32px;
  font-size: 16px;
}

/* ---------- Comparison Table ---------- */
.comparison {
  padding: 60px 0;
}
.comparison h2 {
  font-size: 32px;
  margin-bottom: 24px;
  text-align: center;
}
.table-wrap {
  overflow-x: auto;
  background: white;
  border-radius: 16px;
  box-shadow: 0 4px 24px rgba(10, 61, 98, 0.08);
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}
th {
  background: #0a3d62;
  color: white;
  padding: 16px;
  text-align: left;
  font-weight: 600;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 1px;
}
td {
  padding: 16px;
  border-bottom: 1px solid #e1ecf2;
  color: #3a5360;
}
tr:last-child td { border-bottom: none; }
.row-winner {
  background: linear-gradient(90deg, #fffbea, #fff);
}
.row-winner td {
  font-weight: 600;
  color: #0a3d62;
}

/* ---------- How We Ranked ---------- */
.how-we-ranked {
  padding: 60px 0;
}
.how-we-ranked h2 {
  font-size: 32px;
  text-align: center;
  margin-bottom: 14px;
}
.how-we-ranked > p {
  text-align: center;
  color: #4a6572;
  max-width: 600px;
  margin: 0 auto 40px;
  font-size: 17px;
}
.criteria-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
}
.criterion {
  background: white;
  padding: 28px 24px;
  border-radius: 16px;
  text-align: center;
  box-shadow: 0 4px 24px rgba(10, 61, 98, 0.06);
}
.criterion-icon {
  font-size: 40px;
  margin-bottom: 12px;
}
.criterion h3 {
  font-size: 18px;
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  margin-bottom: 8px;
}
.criterion p {
  font-size: 14px;
  color: #6a8393;
}

/* ---------- Winner Callout ---------- */
.winner-callout {
  margin: 60px 0;
  padding: 4px;
  border-radius: 24px;
  background: linear-gradient(135deg, #ffd700, #ff9500, #ffd700);
}
.winner-inner {
  background: linear-gradient(135deg, #0a3d62 0%, #1565c0 100%);
  border-radius: 20px;
  padding: 60px 40px;
  text-align: center;
  color: white;
  position: relative;
  overflow: hidden;
}
.winner-inner::before {
  content: '';
  position: absolute;
  top: -50%; right: -20%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(255, 215, 0, 0.15), transparent 70%);
  pointer-events: none;
}
.winner-inner .eyebrow {
  color: #ffd700;
}
.winner-inner h2 {
  color: white;
  font-size: clamp(36px, 5vw, 54px);
  margin-bottom: 12px;
}
.winner-tagline {
  font-size: 20px;
  font-weight: 600;
  color: #ffd700;
  margin-bottom: 20px;
}
.winner-inner p {
  max-width: 640px;
  margin: 0 auto 28px;
  color: #e0eaf3;
  font-size: 17px;
}
.winner-ctas {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}

/* ---------- FAQ ---------- */
.faq {
  padding: 40px 0 80px;
  max-width: 780px;
  margin: 0 auto;
}
.faq h2 {
  font-size: 32px;
  text-align: center;
  margin-bottom: 32px;
}
details {
  background: white;
  border-radius: 12px;
  padding: 20px 24px;
  margin-bottom: 12px;
  box-shadow: 0 2px 12px rgba(10, 61, 98, 0.05);
  transition: box-shadow 0.2s;
}
details[open] {
  box-shadow: 0 6px 24px rgba(10, 61, 98, 0.1);
}
summary {
  font-weight: 600;
  color: #0a3d62;
  cursor: pointer;
  list-style: none;
  position: relative;
  padding-right: 28px;
}
summary::-webkit-details-marker { display: none; }
summary::after {
  content: '+';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  font-size: 22px;
  color: #1e88e5;
  transition: transform 0.2s;
}
details[open] summary::after {
  content: '−';
}
details p {
  margin-top: 14px;
  color: #4a6572;
}

/* ---------- Footer ---------- */
.site-footer {
  background: #0a3d62;
  color: #a8c0cf;
  padding: 40px 0;
  text-align: center;
}
.site-footer strong { color: white; }
.site-footer p { margin-bottom: 6px; }
.site-footer .small {
  font-size: 12px;
  opacity: 0.7;
  max-width: 700px;
  margin: 8px auto 0;
}
