:root {
  --blue: #1a73e8;
  --blue-dark: #1557b0;
  --red: #ea4335;
  --yellow: #fbbc04;
  --green: #34a853;
  --text: #202124;
  --text-muted: #5f6368;
  --bg: #ffffff;
  --bg-alt: #f8f9fa;
  --border: #dadce0;
  --shadow-sm: 0 1px 2px 0 rgba(60,64,67,.08), 0 1px 3px 1px rgba(60,64,67,.06);
  --shadow-md: 0 1px 3px 0 rgba(60,64,67,.12), 0 4px 8px 3px rgba(60,64,67,.08);
  --radius: 12px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
html, body { margin: 0; padding: 0; }
body {
  font-family: 'Google Sans Text', 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .brand-name {
  font-family: 'Google Sans', 'Roboto', sans-serif;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--text);
}

h1 { font-size: 64px; line-height: 1.1; margin: 16px 0 24px; font-weight: 500; letter-spacing: -0.02em; }
h2 { font-size: 40px; line-height: 1.2; margin: 0 0 12px; }
h3 { font-size: 20px; margin: 0 0 8px; }
p  { margin: 0 0 12px; color: var(--text-muted); }

a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }

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

/* Header */
.site-header {
  position: sticky;
  top: 0;
  background: rgba(255,255,255,0.95);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--border);
  z-index: 50;
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.brand { display: flex; align-items: center; gap: 4px; color: var(--text); font-weight: 500; font-size: 20px; }
.brand:hover { text-decoration: none; }
.brand-name { margin-left: 8px; }
.brand-logo { width: 28px; height: 28px; display: block; }

.nav-links { display: flex; gap: 32px; align-items: center; }
.nav-links a { color: var(--text); font-size: 14px; font-weight: 500; }
.nav-links a:hover { color: var(--blue); text-decoration: none; }

.nav-dropdown { position: relative; }
.nav-dropdown-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: 0;
  padding: 0;
  margin: 0;
  font: inherit;
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  cursor: pointer;
}
.nav-dropdown-toggle:hover { color: var(--blue); }
.nav-caret { transition: transform .18s ease; }
.nav-dropdown:hover .nav-caret,
.nav-dropdown.open .nav-caret { transform: rotate(180deg); }

.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%) translateY(-4px);
  min-width: 240px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  box-shadow: 0 12px 32px rgba(60, 64, 67, 0.16);
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .15s ease, transform .15s ease, visibility .15s;
  z-index: 50;
}
.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu,
.nav-dropdown.open .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}
.nav-dropdown-menu::before {
  /* invisible bridge so the menu doesn't close in the gap above it */
  content: "";
  position: absolute;
  top: -12px;
  left: 0;
  right: 0;
  height: 12px;
}
.nav-dropdown-menu a {
  display: block;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 14px;
  color: var(--text);
  white-space: nowrap;
}
.nav-dropdown-menu a:hover {
  background: #f1f5fe;
  color: var(--blue);
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 10px 24px;
  border-radius: 999px;
  font-weight: 500;
  font-size: 14px;
  font-family: 'Google Sans', sans-serif;
  cursor: pointer;
  transition: all .2s ease;
  border: 1px solid transparent;
}
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-dark); text-decoration: none; box-shadow: var(--shadow-md); }
.btn-ghost { background: transparent; color: var(--blue); border: 1px solid var(--blue); }
.btn-ghost:hover { background: #f1f3f4; text-decoration: none; border-color: var(--blue); }

/* Hero */
.hero {
  position: relative;
  padding: 96px 0 120px;
  overflow: hidden;
  background: linear-gradient(180deg, #fff 0%, #f8fbff 100%);
}
.hero-inner { position: relative; text-align: center; max-width: 900px; }
.container.hero-inner { margin-left: auto; margin-right: auto; }
.eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--blue);
  background: #e8f0fe;
  padding: 6px 14px;
  border-radius: 999px;
}
.lead { font-size: 20px; color: var(--text-muted); max-width: 720px; margin: 0 auto 32px; }
.gradient-text {
  background: linear-gradient(90deg, #4285f4, #9b72f5, #ea4335, #fbbc04);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.cta-row { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-inner .cta-row { justify-content: center; }
.cta-row.center { justify-content: center; }

.hero-visual {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}
.orb {
  position: absolute;
  width: 320px; height: 320px;
  border-radius: 50%;
  filter: blur(80px);
  opacity: .35;
}
.o1 { background: #4285f4; top: -80px; left: -60px; }
.o2 { background: #ea4335; top: 20px; right: -80px; }
.o3 { background: #fbbc04; bottom: -80px; left: 30%; }
.o4 { background: #34a853; bottom: -40px; right: 20%; }

.hero-inner { z-index: 1; }
.hero-inner > * { position: relative; }

/* Sections */
.section { padding: 96px 0; }
.section-alt { background: var(--bg-alt); }
.section-title { text-align: center; }
.section-sub { text-align: center; margin-bottom: 56px; font-size: 18px; }

/* Grid & cards */
.grid { display: grid; gap: 24px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: all .2s ease;
}
.card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); border-color: transparent; }
.icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  margin-bottom: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.icon svg { width: 26px; height: 26px; }
.icon-blue   { background: #e8f0fe; color: var(--blue); }
.icon-red    { background: #fce8e6; color: var(--red); }
.icon-yellow { background: #fef7e0; color: #f9ab00; }
.icon-green  { background: #e6f4ea; color: var(--green); }

/* Model cards */
.model-card {
  position: relative;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  text-align: center;
  transition: all .2s ease;
}
.model-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.model-card .size {
  font-family: 'Google Sans', sans-serif;
  font-size: 48px;
  font-weight: 500;
  color: var(--blue);
  line-height: 1;
  margin-bottom: 8px;
}
.model-card.featured { border-color: var(--blue); box-shadow: var(--shadow-md); }
.model-card .tag {
  position: absolute;
  top: -12px; left: 50%;
  transform: translateX(-50%);
  background: var(--blue);
  color: #fff;
  font-size: 12px;
  font-weight: 500;
  padding: 4px 12px;
  border-radius: 999px;
}

/* Benchmarks table */
.bench-table-wrap {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow-sm);
  overflow-x: auto;
}
.bench-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  min-width: 900px;
}
.bench-table thead th {
  text-align: left;
  font-family: 'Google Sans', sans-serif;
  font-weight: 500;
  color: var(--text);
  padding: 16px 12px;
  border-bottom: 1px solid var(--border);
  vertical-align: bottom;
  font-size: 14px;
}
.bench-table thead th .sub {
  display: block;
  font-weight: 400;
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 2px;
}
.bench-table tbody td {
  padding: 20px 12px;
  border-bottom: 1px solid #eceff1;
  color: var(--text-muted);
  vertical-align: top;
}
.bench-table tbody tr:last-child td { border-bottom: none; }
.bench-table tbody tr:hover { background: #fafbfc; }
.bench-table td strong {
  color: var(--text);
  font-weight: 500;
  font-family: 'Google Sans', sans-serif;
  font-size: 15px;
}
.bench-table .sub {
  display: block;
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 2px;
  font-weight: 400;
}
.bench-table .best {
  color: var(--text);
  font-weight: 700;
}
.bench-table .bench-feature { width: 22%; }
.bench-table .bench-best { color: var(--text); }
.chip {
  display: inline-block;
  font-size: 12px;
  color: var(--text-muted);
  background: #f1f3f4;
  padding: 3px 10px;
  border-radius: 999px;
  white-space: nowrap;
}
.bench-note {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  font-size: 13px;
  color: var(--text-muted);
}
.bench-note a { color: var(--blue); text-decoration: underline; }

/* What is / two-col */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 64px;
  align-items: start;
}
.two-col h2 { margin-top: 16px; }
.two-col-body p { font-size: 16px; line-height: 1.7; }
.two-col-body strong { color: var(--text); font-weight: 500; }

.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 32px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}
.stat-num {
  font-family: 'Google Sans', sans-serif;
  font-size: 32px;
  font-weight: 500;
  color: var(--blue);
  line-height: 1;
}
.stat-label {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 6px;
}

.highlight-list {
  display: grid;
  gap: 20px;
  margin-top: 32px;
}
.highlight-item {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 16px;
  padding: 20px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: all .2s ease;
}
.highlight-item:hover { box-shadow: var(--shadow-sm); border-color: #c8d6f0; }
.highlight-mark {
  font-family: 'Google Sans', sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: var(--blue);
  background: #e8f0fe;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 36px;
}
.highlight-item h4 {
  font-family: 'Google Sans', sans-serif;
  font-size: 15px;
  font-weight: 500;
  margin: 4px 0 6px;
  color: var(--text);
}
.highlight-item p { font-size: 14px; margin: 0; line-height: 1.55; }

/* FAQ */
.faq-container { max-width: 860px; }
.faq { display: grid; gap: 12px; }
.faq details {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 24px;
  transition: all .2s ease;
}
.faq details[open] { box-shadow: var(--shadow-sm); border-color: #c8d6f0; }
.faq summary {
  font-family: 'Google Sans', sans-serif;
  font-size: 16px;
  font-weight: 500;
  color: var(--text);
  cursor: pointer;
  list-style: none;
  position: relative;
  padding-right: 32px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  font-size: 22px;
  color: var(--blue);
  font-weight: 400;
  transition: transform .2s ease;
}
.faq details[open] summary::after { content: "−"; }
.faq details p {
  margin: 14px 0 0;
  font-size: 15px;
  line-height: 1.65;
}

/* CTA section */
.section-cta { background: linear-gradient(135deg, #e8f0fe 0%, #fce8e6 50%, #fef7e0 100%); }
.cta-box { text-align: center; padding: 40px 15px; }
.cta-box h2 { margin-bottom: 16px; }

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 32px 0;
  background: #fff;
}
.foot { display: flex; justify-content: space-between; align-items: center; color: var(--text-muted); font-size: 14px; }
.foot-links { display: flex; gap: 24px; }
.foot-links a { color: var(--text-muted); }
.foot-links a:hover { color: var(--blue); }

/* Comparison table */
.compare-hero {
  padding: 80px 0 48px;
  text-align: center;
  background: linear-gradient(180deg, #fff 0%, #f8fbff 100%);
}
.compare-hero h1 { font-size: 48px; }
.compare-hero p { font-size: 18px; max-width: 720px; margin: 0 auto; }

.compare-table-wrap { padding: 0 0 96px; }
.compare-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.compare-table th, .compare-table td {
  padding: 18px 24px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  font-size: 15px;
  vertical-align: top;
}
.compare-table thead th {
  background: var(--bg-alt);
  font-family: 'Google Sans', sans-serif;
  font-weight: 500;
  font-size: 16px;
}
.compare-table tbody tr:last-child td { border-bottom: none; }
.compare-table .feature-col { font-weight: 500; color: var(--text); width: 28%; }
.col-gemma { background: #f8fbff; }
.check { color: var(--green); font-weight: 700; }
.cross { color: var(--red); font-weight: 700; }

.verdict {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 48px;
}
.verdict-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
}
.verdict-card.gemma { border-top: 4px solid var(--blue); }
.verdict-card.gpt { border-top: 4px solid #10a37f; }
.verdict-card h3 { margin-bottom: 12px; }
.verdict-card ul { padding-left: 20px; margin: 0; color: var(--text-muted); }
.verdict-card li { margin: 6px 0; }

/* Responsive */
@media (max-width: 900px) {
  h1 { font-size: 44px; }
  h2 { font-size: 32px; }
  .grid-3, .grid-4 { grid-template-columns: 1fr 1fr; }
  .nav-links { display: none; }
  .verdict { grid-template-columns: 1fr; }
  .hero { padding: 64px 0 80px; }
  .section { padding: 64px 0; }
  .two-col { grid-template-columns: 1fr; gap: 32px; }
  .stats-row { grid-template-columns: repeat(2, 1fr); }
}
.legal-hero {
  padding: 80px 0 24px;
  text-align: center;
  background: linear-gradient(180deg, #f8fbff 0%, #ffffff 100%);
}
.legal-hero h1 {
  font-size: 48px;
  margin: 12px 0 8px;
}
.legal-updated {
  color: #5f6368;
  font-size: 14px;
  margin: 0;
}
.legal {
  max-width: 760px;
  font-size: 16px;
  line-height: 1.7;
  color: #3c4043;
}
.legal h2 {
  font-family: 'Google Sans', sans-serif;
  font-size: 22px;
  font-weight: 500;
  color: #202124;
  margin: 40px 0 12px;
}
.legal p { margin: 0 0 16px; }
.legal ul {
  margin: 0 0 16px;
  padding-left: 22px;
}
.legal li { margin-bottom: 8px; }
.legal a { color: var(--blue); text-decoration: underline; }
.legal a:hover { text-decoration: none; }
.legal strong { color: #202124; }

.compare-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 28px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid #e5e7eb;
  text-decoration: none;
  color: inherit;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.compare-card,
.compare-card:hover,
.compare-card * {
  text-decoration: none;
}
.compare-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(60, 64, 67, 0.12);
  border-color: #d2e3fc;
}
.compare-card-vs {
  font-family: 'Google Sans', sans-serif;
  font-size: 20px;
  font-weight: 500;
  line-height: 1.3;
}
.compare-card-vs .vs {
  color: #9aa0a6;
  font-weight: 400;
  margin: 0 4px;
}
.compare-card p {
  margin: 0;
  font-size: 14px;
  color: #5f6368;
  line-height: 1.55;
  flex: 1;
}
.compare-card-link {
  font-size: 14px;
  font-weight: 500;
  color: var(--blue);
}

.other-compares {
  margin-top: 64px;
  padding-top: 32px;
  border-top: 1px solid #e5e7eb;
  text-align: center;
}
.other-compares h3 {
  font-size: 18px;
  font-weight: 500;
  color: #5f6368;
  margin: 0 0 20px;
}
.other-compares-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

@media (max-width: 560px) {
  .grid-3, .grid-4 { grid-template-columns: 1fr; }
  h1 { font-size: 36px; }
  .compare-table th, .compare-table td { padding: 12px; font-size: 13px; }
  .other-compares-row { flex-direction: column; align-items: stretch; }
}
