:root {
  --bg: #0b1020;
  --card: #121933;
  --text: #ebefff;
  --muted: #a9b3d9;
  --accent: #7c8cff;
  --accent2: #4ee0c3;
  --line: #1e2d55;
  --max: 1120px;
}
*,*::before,*::after { box-sizing: border-box; }
body {
  margin: 0;
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  background: #0b1020;
  color: var(--text);
  line-height: 1.65;
  font-size: 1rem;
}
a { color: var(--accent2); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }

/* Layout */
.container { width: min(100% - 2rem, var(--max)); margin-inline: auto; }

/* Nav */
header {
  background: rgba(11,16,32,.92);
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0;
  backdrop-filter: blur(8px);
  z-index: 100;
}
.nav { display: flex; align-items: center; justify-content: space-between; padding: .75rem 0; }
.nav-links { display: flex; gap: .4rem; align-items: center; }
.nav-links a { color: var(--muted); padding: .35rem .6rem; border-radius: 7px; font-size: .93rem; }
.nav-links a:hover { color: var(--text); background: var(--line); }
.logo { font-weight: 800; font-size: 1.15rem; color: var(--text); letter-spacing: -.3px; }
.logo span { color: var(--accent2); }

/* Hero */
.hero { padding: 4.5rem 0 2.5rem; }
.hero .kicker {
  display: inline-block; font-size: .8rem; text-transform: uppercase;
  letter-spacing: .09em; color: var(--accent2);
  background: rgba(78,224,195,.1); border: 1px solid rgba(78,224,195,.25);
  border-radius: 999px; padding: .25rem .8rem; margin-bottom: 1rem;
}
.hero .kicker-mini {
  font-size: .65rem; padding: .15rem .5rem; letter-spacing: .06em;
}
.footer-brand h4 { font-size: .8rem; }
.footer-brand p { font-size: .72rem; color: var(--muted); margin: 0; }
.hero h1 { font-size: clamp(2rem, 3.5vw, 3.2rem); line-height: 1.1; margin: 0 0 1rem; max-width: 860px; }
.hero p { color: var(--muted); max-width: 720px; font-size: 1.05rem; margin: 0; }
.btns { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.5rem; }
.btn {
  display: inline-block; padding: .7rem 1.3rem; border-radius: 10px;
  border: 1px solid var(--line); background: #18224a; color: var(--text);
  font-weight: 700; font-size: .95rem; transition: background .15s;
}
.btn:hover { background: #1e2d62; text-decoration: none; }
.btn.primary {
  background: linear-gradient(90deg, #7c8cff, #9e78ff);
  border: 0; color: #fff;
}
.btn.primary:hover { opacity: .9; }

/* Section */
.section { padding: 1.5rem 0 2.5rem; }
.section h2 { font-size: 1.6rem; margin: 0 0 .3rem; }
.section-sub { color: var(--muted); margin: 0 0 1.4rem; }

/* Featured card (SFM) */
.featured-card {
  background: linear-gradient(135deg, #1a2454, #141d3d);
  border: 1.5px solid var(--accent);
  border-radius: 18px; padding: 1.8rem;
  display: grid; gap: 1.2rem;
  grid-template-columns: 72px 1fr;
  align-items: start;
}
.app-logo-sm {
  width: 72px; height: 72px; border-radius: 14px;
  background: linear-gradient(135deg, #2e3d90, #4b37b5);
  display: flex; align-items: center; justify-content: center;
  font-weight: 900; font-size: 1.6rem; color: #fff;
}
.featured-card h2 { font-size: 1.5rem; margin: 0 0 .25rem; }
.tagline { color: var(--muted); margin: 0 0 .8rem; font-size: .97rem; }
.perks { list-style: none; margin: 0 0 1rem; padding: 0; display: flex; flex-direction: column; gap: .3rem; }
.perks li::before { content: "✓ "; color: var(--accent2); font-weight: 700; }
.badges { display: flex; gap: .5rem; flex-wrap: wrap; margin-bottom: 1rem; }
.badge {
  font-size: .78rem; padding: .2rem .55rem; border-radius: 999px;
  background: #1e2d62; color: #cbd6ff; border: 1px solid #33498f;
}
.badge.green { background: rgba(78,224,195,.15); color: #4ee0c3; border-color: rgba(78,224,195,.35); }
.badge.pick { background: linear-gradient(90deg,#7c8cff22,#9e78ff22); color: var(--accent); border-color: var(--accent); }

/* App grid */
.grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.card {
  background: linear-gradient(180deg, #141d3d, #101833);
  border: 1px solid var(--line); border-radius: 14px;
  padding: 1.1rem 1.2rem; display: flex; flex-direction: column; gap: .4rem;
}
.card h3 { margin: 0 0 .2rem; font-size: 1.05rem; }
.card p { color: var(--muted); margin: 0; font-size: .9rem; }
.card .card-logo {
  width: 52px; height: 52px; border-radius: 12px;
  background: #202c56; display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 1rem; color: var(--accent2);
  margin-bottom: .3rem; overflow: hidden; flex-shrink: 0;
}
.card .card-logo img {
  width: 52px; height: 52px; object-fit: cover; border-radius: 12px;
}
.app-logo-sm img {
  width: 72px; height: 72px; object-fit: cover; border-radius: 14px;
}
.compare-logo {
  width: 48px; height: 48px; border-radius: 11px; object-fit: cover;
  margin-bottom: .5rem;
}
.card-link { margin-top: auto; padding-top: .7rem; font-size: .88rem; }

/* Table */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; margin-top: .8rem; }
table { width: 100%; border-collapse: collapse; min-width: 700px; }
th, td { border-bottom: 1px solid var(--line); padding: .7rem 1rem; text-align: left; font-size: .9rem; }
th { background: #121b3a; font-weight: 700; white-space: nowrap; }
tr.hl td { background: rgba(124,140,255,.07); font-weight: 600; }
tr:last-child td { border-bottom: 0; }
td .yes { color: var(--accent2); font-weight: 700; }
td .no { color: #ff6a82; }
td .mid { color: #f0c060; }

/* Blog list */
.blog-grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.blog-card {
  background: #121b3a; border: 1px solid var(--line); border-radius: 14px;
  padding: 1.2rem; display: flex; flex-direction: column; gap: .5rem;
}
.blog-card-img-wrap {
  display: block; margin: -1.2rem -1.2rem 1rem -1.2rem; border-radius: 14px 14px 0 0;
  overflow: hidden;
}
.blog-card-img { width: 100%; height: 160px; object-fit: cover; display: block; vertical-align: middle; }
.blog-card .cat {
  font-size: .78rem; text-transform: uppercase; letter-spacing: .07em;
  color: var(--accent2);
}
.blog-card h3 { margin: 0; font-size: 1.02rem; }
.blog-card p { color: var(--muted); margin: 0; font-size: .9rem; }
.blog-card a.read { margin-top: auto; font-size: .88rem; }

/* Article */
.article-body { max-width: 800px; }
.article-body h2 { font-size: 1.4rem; margin-top: 2rem; }
.article-body h3 { font-size: 1.1rem; margin-top: 1.4rem; color: var(--accent); }
.article-body p { color: var(--muted); }
.article-body ul { color: var(--muted); padding-left: 1.3rem; }
.article-cta {
  background: linear-gradient(135deg, #1a2454, #141d3d);
  border: 1px solid var(--accent); border-radius: 14px;
  padding: 1.5rem; margin: 2rem 0;
}

/* Compare page */
.compare-hero { padding: 3rem 0 1.5rem; }
.vs-grid {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: start;
  gap: 1rem; margin: 1.5rem 0;
}
.vs-sep { font-size: 1.5rem; color: var(--muted); padding-top: 1.5rem; text-align: center; }
.compare-col {
  background: linear-gradient(180deg, #141d3d, #101833);
  border: 1px solid var(--line); border-radius: 14px;
  padding: 1.2rem;
}
.compare-col.winner { border-color: var(--accent); background: linear-gradient(135deg, #1a2454, #141d3d); }
.compare-col h3 { margin: 0 0 .5rem; }
.compare-col ul { margin: 0; padding-left: 1.2rem; color: var(--muted); font-size: .93rem; }

/* CTA band */
.cta-band {
  background: linear-gradient(90deg, #1a2454, #141d3d);
  border: 1px solid var(--accent); border-radius: 18px;
  padding: 2rem 2.5rem; margin: 2.5rem 0;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 1rem;
}
.cta-band h3 { margin: 0 0 .3rem; font-size: 1.3rem; }
.cta-band p { margin: 0; color: var(--muted); }

/* Footer */
footer { border-top: 1px solid var(--line); padding: 2rem 0 2.5rem; color: var(--muted); font-size: .88rem; margin-top: 2rem; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 1.5rem; }
.footer-col h4 { color: var(--text); margin: 0 0 .6rem; font-size: .95rem; }
.footer-col a { display: block; color: var(--muted); margin-bottom: .35rem; font-size: .88rem; }
.footer-bottom { margin-top: 1.5rem; border-top: 1px solid var(--line); padding-top: 1rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: .5rem; }

/* Top 3 */
.top-three { padding: 2rem 0 3rem; }
.top-three .kicker {
  display: inline-block; font-size: .8rem; text-transform: uppercase;
  letter-spacing: .09em; color: var(--accent2);
  background: rgba(78,224,195,.1); border: 1px solid rgba(78,224,195,.25);
  border-radius: 999px; padding: .25rem .8rem; margin-bottom: .8rem;
}
.top-three-grid {
  display: grid; gap: 1.2rem;
  grid-template-columns: 1fr 1.5fr 1fr;
  align-items: stretch;
  margin-top: 1.2rem;
}
.top-three-card {
  background: linear-gradient(180deg, #141d3d 0%, #101833 100%);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: border-color .2s, box-shadow .2s;
  min-height: 320px;
  box-shadow: 0 4px 20px rgba(0,0,0,.25);
}
.top-three-side:hover { border-color: var(--accent); box-shadow: 0 6px 24px rgba(124,140,255,.15); }
.top-three-side { color: inherit; }
.top-three-side h3 { color: var(--text); font-size: 1.1rem; margin: 0 0 .4rem; }
.top-three-side .top-three-desc { color: var(--muted); font-size: .85rem; margin: 0 0 .6rem; line-height: 1.4; }
.top-three-perks {
  list-style: none; margin: 0 0 .8rem; padding: 0; text-align: left; width: 100%;
  font-size: .82rem; color: var(--muted);
}
.top-three-perks li { padding: .15rem 0; padding-left: 1rem; position: relative; }
.top-three-perks li::before { content: "•"; color: var(--accent2); position: absolute; left: 0; }
.top-three-side .top-three-score {
  margin-top: auto; font-size: 1.15rem; font-weight: 700; color: var(--accent2); margin-bottom: .6rem;
}
.top-three-btn {
  display: inline-block; padding: .5rem .9rem; border-radius: 10px;
  background: #18224a; border: 1px solid var(--line); color: var(--text);
  font-weight: 600; font-size: .88rem; margin-bottom: .4rem; transition: background .15s;
}
.top-three-btn:hover { background: #1e2d62; text-decoration: none; color: var(--text); }
.top-three-link { font-size: .85rem; color: var(--accent2); }
.top-three-link:hover { text-decoration: underline; }
.top-three-center {
  border: 2px solid var(--accent);
  background: linear-gradient(135deg, #1a2454 0%, #141d3d 100%);
  padding: 1.8rem;
  position: relative;
  box-shadow: 0 6px 28px rgba(124,140,255,.2);
}
.top-three-center .badge.pick { margin-bottom: .8rem; }
.top-three-logo {
  width: 56px; height: 56px; border-radius: 12px;
  overflow: hidden; margin: 0 auto .5rem;
  flex-shrink: 0;
}
.top-three-logo img { width: 100%; height: 100%; object-fit: cover; border-radius: 12px; }
.top-three-center .top-three-logo-big {
  width: 88px; height: 88px; border-radius: 16px;
  margin-bottom: .8rem;
  flex-shrink: 0;
}
.top-three-center .top-three-logo-big img { width: 100%; height: 100%; object-fit: cover; border-radius: 16px; }
.top-three-title { font-size: 1.45rem; margin: 0 0 .4rem; }
.top-three-center .tagline { font-size: .92rem; margin-bottom: .8rem; }
.top-three-center .perks { text-align: left; margin-bottom: 1rem; }
.top-three-score-main {
  font-size: 2rem; font-weight: 800; color: var(--accent2);
  margin: 0 0 1rem;
  line-height: 1;
}
.top-three-center .btn { margin-top: 0; }

/* Legal */
.legal-body { max-width: 800px; color: var(--muted); }
.legal-body h2 { color: var(--text); font-size: 1.2rem; margin-top: 2rem; }

/* Responsive */
@media (max-width: 680px) {
  .featured-card { grid-template-columns: 1fr; }
  .vs-grid { grid-template-columns: 1fr; }
  .vs-sep { display: none; }
  .cta-band { flex-direction: column; }
  .top-three-grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
  }
  .top-three-card:nth-child(1) { order: 2; }
  .top-three-card:nth-child(2) { order: 1; }
  .top-three-card:nth-child(3) { order: 3; }
}
