/* =========================
   COMPARE — Blue/Navy Home Page Colors
========================= */

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

:root {
  --blue:       #1a56ff;
  --blue-mid:   #4f75ff;
  --blue-light: #e8edff;
  --cyan:       #00d4ff;
  --dark:       #111320;
  --muted:      #6b7280;
  --white:      #ffffff;
  --off:        #f7f8fc;
  --border:     #e2e6f0;
}

body.page {
  background: #ffffff;
  color: #111320;
  font-family: 'DM Sans', system-ui, sans-serif;
}

/* =========================
   HERO — DARK NAVY
========================= */
.section-primary {
  background: linear-gradient(135deg, #0d1526 0%, #0f2044 50%, #0a1a3a 100%) !important;
  padding: clamp(5rem, 10vw, 9rem) 0 clamp(4rem, 8vw, 7rem);
  position: relative;
  overflow: hidden;
}

/* grid texture — behind content */
.section-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}

/* blue glow */
.section-primary::after {
  content: '';
  position: absolute;
  bottom: -60px; left: 50%;
  transform: translateX(-50%);
  width: 900px; height: 500px;
  z-index: 0;
  background: radial-gradient(ellipse, rgba(26,86,255,0.2) 0%, transparent 65%);
  pointer-events: none;
}

.section-center {
  text-align: center;
  max-width: 820px;
  margin: 0 auto clamp(3rem, 6vw, 5rem);
  position: relative;
  z-index: 1;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: #6b9fff;
  border: 1px solid rgba(26,86,255,0.4);
  background: rgba(26,86,255,0.08);
  padding: 6px 18px;
  border-radius: 100px;
  margin-bottom: 1.75rem;
  font-family: 'DM Sans', sans-serif;
  font-weight: 500;
}

.heading-xl.accent {
  font-family: 'Fraunces', serif;
  font-size: clamp(3.2rem, 7vw, 7rem);
  font-weight: 900;
  color: #ffffff;
  letter-spacing: -4px;
  line-height: 0.92;
  margin-bottom: 1.75rem;
}

.text-lg {
  font-size: clamp(1rem, 1.8vw, 1.15rem);
  color: rgba(255,255,255,0.65);
  line-height: 1.8;
  font-weight: 300;
  max-width: 580px;
  margin: 0 auto;
}

/* =========================
   HERO AGENT CARDS
========================= */
.agent-grid {
  margin-top: 3.5rem;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 10px;
  position: relative;
  z-index: 1;
}

.agent-grid .agent-card {
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 14px;
  padding: 1.25rem 1rem;
  text-align: left;
  background: rgba(255,255,255,0.04);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.agent-grid .agent-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, var(--blue), var(--cyan));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.agent-grid .agent-card:hover {
  border-color: rgba(26,86,255,0.4);
  background: rgba(26,86,255,0.1);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.4);
}

.agent-grid .agent-card:hover::after { opacity: 1; }

.card-num {
  font-family: 'Fraunces', serif;
  font-size: 2.75rem;
  font-weight: 900;
  color: rgba(255,255,255,0.12);
  line-height: 1;
  display: block;
  margin-bottom: 0.5rem;
  transition: color 0.3s ease;
}

.agent-grid .agent-card:hover .card-num {
  color: rgba(26,86,255,0.35);
}

.agent-grid .agent-card h3 {
  font-family: 'DM Sans', sans-serif;
  color: #ffffff;
  margin-bottom: 0.5rem;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
}

.agent-grid .agent-card p {
  font-size: 12px;
  color: rgba(255,255,255,0.55);
  line-height: 1.65;
  font-weight: 300;
}

/* =========================
   BODY SECTIONS — white / off-white
========================= */
.section {
  padding: clamp(3rem, 5vw, 4.5rem) 0;
  background: #ffffff;
}

.section-alt {
  background: #f7f8fc !important;
}

.section-soft {
  background: #f7f8fc !important;
  padding: clamp(4rem, 8vw, 7rem) 0;
  border-top: 1px solid #e2e6f0;
}

.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 3rem);
}

/* =========================
   TABLE SECTION HEADINGS
========================= */
.heading-md.accent {
  font-family: 'Fraunces', serif;
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 700;
  color: var(--blue);
  letter-spacing: -0.5px;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 14px;
}

.heading-md.accent::before {
  content: '';
  display: block;
  width: 36px; height: 2px;
  background: linear-gradient(90deg, var(--blue), var(--cyan));
  flex-shrink: 0;
  border-radius: 2px;
}

/* =========================
   COMPARISON HEADER — sticky
========================= */
.comparison-header {
  display: grid;
  grid-template-columns: minmax(260px, 2fr) repeat(6, 1fr);
  gap: 8px;
  margin-bottom: 1.5rem;
  position: sticky;
  top: 72px;
  z-index: 20;
  background: #ffffff;
  padding: 1rem 0;
  border-bottom: 1px solid #e2e6f0;
}

.section-alt .comparison-header,
.section .comparison-header {
  background: inherit;
}

.comparison-header .agent-card {
  border: 1px solid rgba(26,86,255,0.25);
  border-radius: 8px;
  padding: 0.75rem 0.5rem;
  text-align: center;
  font-size: clamp(10px, 0.9vw, 12px);
  font-weight: 600;
  color: var(--blue);
  background: var(--blue-light);
  font-family: 'DM Sans', sans-serif;
  line-height: 1.4;
}

/* =========================
   COMPARISON TABLE
========================= */
.table-block { margin-bottom: 0; }

.comparison-table {
  width: 100%;
  border: 1px solid #e2e6f0;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(17,19,32,0.06);
}

.comparison-table .row {
  display: grid;
  grid-template-columns: minmax(260px, 2fr) repeat(6, 1fr);
  gap: 8px;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid #e2e6f0;
  align-items: center;
  transition: background 0.2s ease;
}

.comparison-table .row:nth-child(odd)  { background: #ffffff; }
.comparison-table .row:nth-child(even) { background: #f7f8fc; }
.comparison-table .row:last-child      { border-bottom: none; }
.comparison-table .row:hover           { background: #e8edff; }

.comparison-table .feature {
  font-weight: 400;
  color: #111320;
  font-size: clamp(12px, 1.1vw, 14px);
  line-height: 1.5;
  padding-right: 1rem;
}

.comparison-table .cell {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 40px;
}

/* CHECK */
.comparison-table .cell.check::before {
  content: "✓";
  width: 30px; height: 30px;
  border-radius: 50%;
  background: #e8edff;
  border: 1px solid rgba(26,86,255,0.3);
  color: #1a56ff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  font-weight: 700;
  box-shadow: 0 0 10px rgba(26,86,255,0.12);
}

/* CROSS */
.comparison-table .cell.cross::before {
  content: "—";
  color: #d1d5db;
  font-size: 1rem;
  font-weight: 300;
}

/* =========================
   DETAIL SECTION
========================= */
.detail-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto clamp(2.5rem, 5vw, 4rem);
}

.heading-lg.accent {
  font-family: 'Fraunces', serif;
  font-size: clamp(2rem, 4.5vw, 4rem);
  font-weight: 900;
  color: #111320;
  letter-spacing: -2px;
  line-height: 0.95;
  margin-bottom: 1rem;
}

.muted { color: #6b7280; }

.detail-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.detail-card {
  border: 1px solid #e2e6f0;
  border-radius: 16px;
  padding: clamp(1.5rem, 2.5vw, 2.25rem);
  background: #ffffff;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.detail-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--blue), var(--cyan));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.detail-card:hover {
  border-color: var(--blue);
  transform: translateY(-5px);
  box-shadow: 0 16px 48px rgba(26,86,255,0.1);
}

.detail-card:hover::before { opacity: 1; }

.detail-num {
  font-family: 'Fraunces', serif;
  font-size: 4rem;
  font-weight: 900;
  color: rgba(26,86,255,0.1);
  line-height: 1;
  display: block;
  margin-bottom: 0.75rem;
  transition: color 0.3s ease;
}

.detail-card:hover .detail-num { color: rgba(26,86,255,0.18); }

.detail-card h3 {
  font-family: 'DM Sans', sans-serif;
  color: #111320;
  margin-bottom: 0.875rem;
  font-size: clamp(15px, 1.4vw, 17px);
  font-weight: 600;
}

.detail-card p {
  color: #6b7280;
  line-height: 1.75;
  font-size: 13px;
  font-weight: 300;
}

/* =========================
   RESPONSIVE
========================= */
@media (max-width: 1200px) {
  .agent-grid { grid-template-columns: repeat(3, 1fr); }
  .comparison-header,
  .comparison-table .row { grid-template-columns: minmax(220px, 2fr) repeat(6, 1fr); }
}

@media (max-width: 1024px) {
  .comparison-header,
  .comparison-table .row { grid-template-columns: minmax(180px, 1.5fr) repeat(6, 1fr); gap: 6px; }
  .comparison-header .agent-card { font-size: 10px; padding: 0.625rem 0.4rem; }
  .detail-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .agent-grid { grid-template-columns: repeat(2, 1fr); }
  .comparison-header,
  .comparison-table .row { grid-template-columns: minmax(130px, 1fr) repeat(6, minmax(44px, 1fr)); gap: 4px; }
  .comparison-header .agent-card { font-size: 9px; padding: 0.5rem 0.25rem; }
  .comparison-table .feature { font-size: 11px; }
  .comparison-table .cell.check::before { width: 26px; height: 26px; }
  .detail-grid { grid-template-columns: 1fr; }
  .comparison-header { top: 60px; }
}

@media (max-width: 480px) {
  .agent-grid { grid-template-columns: 1fr; }
  .comparison-header,
  .comparison-table .row { grid-template-columns: minmax(110px, 1fr) repeat(6, minmax(36px, 1fr)); gap: 3px; }
  .comparison-header .agent-card { font-size: 8px; padding: 0.4rem 0.2rem; }
  .comparison-table .feature { font-size: 10px; padding-right: 0.4rem; }
  .comparison-table .cell { height: 36px; }
  .heading-xl.accent { letter-spacing: -2px; }
}