/* ── Reset & Tokens ── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
}

:root {
  --bg: #f8fafc;
  --surface: #ffffff;
  --text: #0f172a;
  --text2: #475569;
  --primary: #4f46e5;
  --primary-hover: #4338ca;
  --primary-light: #eef2ff;
  --cyan: #06b6d4;
  --border: #e2e8f0;
  --shadow-sm: 0 1px 3px rgba(15,23,42,.06);
  --shadow: 0 4px 24px rgba(15,23,42,.07);
  --shadow-lg: 0 12px 40px rgba(15,23,42,.1);
  --radius: 16px;
  --radius-sm: 10px;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
h1, h2, h3, h4 { line-height: 1.2; }

.wrap {
  width: min(1140px, 90%);
  margin: 0 auto;
}

/* ── Header ── */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.header__logo {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -.02em;
}

.header__logo span {
  color: var(--primary);
}

.header__nav {
  display: flex;
  gap: 24px;
  font-size: .9rem;
  font-weight: 500;
  color: var(--text2);
}

.header__nav a {
  transition: color .2s;
}

.header__nav a:hover {
  color: var(--primary);
}

.header__burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.header__burger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: .3s;
}

.header__burger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.header__burger.active span:nth-child(2) { opacity: 0; }
.header__burger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: .95rem;
  background: var(--primary);
  color: #fff;
  border: 2px solid transparent;
  transition: transform .2s, box-shadow .2s, background .2s;
  cursor: pointer;
}

.btn:hover {
  background: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(79,70,229,.3);
}

.btn--outline {
  background: transparent;
  color: var(--primary);
  border-color: var(--primary);
}

.btn--outline:hover {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 6px 20px rgba(79,70,229,.3);
}

/* ── Badge ── */
.badge {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: .75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .1em;
  background: var(--primary-light);
  color: var(--primary);
}

.badge--light {
  background: rgba(255,255,255,.2);
  color: #fff;
}

/* ── Hero ── */
.hero {
  position: relative;
  padding: 80px 0 60px;
  overflow: hidden;
}

.hero__bg-glow {
  position: absolute;
  top: -120px;
  right: -80px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(79,70,229,.12) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.hero__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.hero__text h1 {
  font-size: clamp(2.2rem, 4.5vw, 3.4rem);
  font-weight: 800;
  letter-spacing: -.03em;
  margin: 16px 0;
}

.hero__text > p {
  font-size: 1.1rem;
  color: var(--text2);
  margin-bottom: 28px;
  max-width: 520px;
}

.hero__btns {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 36px;
}

.hero__stats {
  display: flex;
  gap: 32px;
}

.hero__stats div {
  text-align: center;
}

.hero__stats strong {
  display: block;
  font-size: 2rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--primary), var(--cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero__stats div > :last-child {
  color: var(--text2);
  font-size: .85rem;
}

.hero__visual {
  position: relative;
}

.hero__card-stack {
  position: relative;
  height: 340px;
}

.hero__mock {
  position: absolute;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  background: #fff;
}

.hero__mock--1 {
  width: 100%;
  top: 0;
  left: 0;
  animation: heroFloat 6s ease-in-out infinite;
}

.hero__mock--2 {
  width: 55%;
  bottom: -10px;
  right: -10px;
  animation: heroFloat 6s ease-in-out infinite 1.5s;
}

.hero__mock svg {
  display: block;
  width: 100%;
  height: auto;
}

@keyframes heroFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* ── Sections ── */
.section {
  padding: 80px 0;
}

.section--alt {
  background: #f1f5f9;
}

.section--gradient {
  background: linear-gradient(135deg, #4f46e5, #06b6d4);
  color: #fff;
}

.section__head {
  margin-bottom: 40px;
  max-width: 640px;
}

.section__head h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 800;
  letter-spacing: -.02em;
  margin-bottom: 12px;
}

.section__head p {
  color: var(--text2);
  font-size: 1.05rem;
}

.section--gradient .section__head p,
.section--gradient p {
  color: rgba(255,255,255,.8);
}

/* ── Pills ── */
.pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.pill {
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  font-size: .9rem;
  font-weight: 500;
  transition: border-color .2s, box-shadow .2s;
}

.pill:hover {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(79,70,229,.08);
}

/* ── Grid ── */
.grid {
  display: grid;
  gap: 20px;
}

.grid--2 {
  grid-template-columns: repeat(2, 1fr);
}

.grid--3 {
  grid-template-columns: repeat(3, 1fr);
}

.grid--sm .check,
.grid--sm .card {
  padding: 20px;
}

/* ── Cards ── */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: transform .25s, box-shadow .25s;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.card h3 {
  font-size: 1.15rem;
  font-weight: 700;
}

.card p {
  color: var(--text2);
  font-size: .95rem;
  flex: 1;
}

.card__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.card__badge {
  padding: 5px 12px;
  border-radius: 999px;
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  background: var(--primary-light);
  color: var(--primary);
}

.card__badge--cyan { background: #ecfeff; color: #0891b2; }
.card__badge--emerald { background: #ecfdf5; color: #059669; }
.card__badge--amber { background: #fffbeb; color: #d97706; }
.card__badge--rose { background: #fff1f2; color: #e11d48; }

.card__score {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--primary);
}

.card__features {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.card__features li {
  position: relative;
  padding-left: 20px;
  font-size: .9rem;
  color: var(--text2);
}

.card__features li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--primary);
  opacity: .4;
}

.card__price {
  display: inline-block;
  margin-top: auto;
  padding-top: 8px;
  font-weight: 700;
  font-size: .9rem;
  color: var(--primary);
}

.card__icon {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
}

.card__case-icon {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
}

.card__rec {
  padding: 8px 12px;
  background: var(--primary-light);
  border-radius: var(--radius-sm);
  font-size: .8rem;
  font-weight: 600;
  color: var(--primary);
  margin-top: auto;
}

.card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: auto;
}

.card__tags span {
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--primary-light);
  font-size: .78rem;
  font-weight: 600;
  color: var(--primary);
}

.card--mini {
  gap: 8px;
}

.card--mini h3 {
  font-size: 1.05rem;
}

.card--mini p {
  font-size: .9rem;
}

/* ── Row cards (free section) ── */
.stack {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.row-card {
  display: grid;
  grid-template-columns: 48px 1fr auto;
  gap: 16px;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 24px;
  transition: transform .25s, box-shadow .25s;
}

.row-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.row-card__icon {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
}

.row-card__icon svg {
  width: 100%;
  height: 100%;
}

.row-card__body h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.row-card__body p {
  font-size: .9rem;
  color: var(--text2);
}

.row-card__meta {
  text-align: right;
}

.row-card__price {
  display: block;
  font-weight: 700;
  font-size: .95rem;
  color: var(--primary);
}

.row-card__note {
  display: block;
  font-size: .8rem;
  color: var(--text2);
}

.row-card--featured {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(79,70,229,.1), var(--shadow);
  background: linear-gradient(135deg, #fafafe, #eef2ff);
}

.row-card__badge {
  display: inline-block;
  margin-left: 8px;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: .7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  background: var(--primary);
  color: #fff;
  vertical-align: middle;
}

/* ── Compare table ── */
.table-wrap {
  overflow-x: auto;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
}

.compare-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .9rem;
}

.compare-table th,
.compare-table td {
  padding: 14px 18px;
  text-align: left;
  white-space: nowrap;
}

.compare-table thead {
  background: var(--primary-light);
}

.compare-table th {
  font-weight: 700;
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--primary);
}

.compare-table tbody tr {
  border-top: 1px solid var(--border);
  transition: background .15s;
}

.compare-table tbody tr:hover {
  background: #f8fafc;
}

.compare-table td:first-child {
  font-weight: 600;
}

.dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-right: 6px;
  vertical-align: middle;
}

.dot--top { background: #4f46e5; }
.dot--high { background: #10b981; }
.dot--mid { background: #f59e0b; }
.dot--low { background: #e2e8f0; }

/* ── Spotlight + Steps ── */
.spotlight {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.spotlight__text h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  margin: 12px 0;
}

.steps {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.step {
  display: flex;
  align-items: center;
  gap: 14px;
  background: rgba(255,255,255,.15);
  backdrop-filter: blur(4px);
  padding: 16px 18px;
  border-radius: var(--radius-sm);
}

.step span {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: #fff;
  color: var(--text);
  font-weight: 800;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  font-size: .95rem;
}

.step p {
  font-size: .95rem;
}

/* ── Check cards ── */
.check {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 20px;
  transition: transform .25s, box-shadow .25s;
}

.check:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.check h3 {
  font-size: .95rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.check p {
  font-size: .88rem;
  color: var(--text2);
}

/* ── Article cards ── */
.article-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: transform .25s, box-shadow .25s;
}

.article-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.article-card__cat {
  display: inline-block;
  width: fit-content;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  background: var(--primary-light);
  color: var(--primary);
}

.article-card h3 {
  font-size: 1.2rem;
  font-weight: 700;
}

.article-card p {
  color: var(--text2);
  font-size: .95rem;
  flex: 1;
}

.article-card__link {
  font-weight: 600;
  color: var(--primary);
  font-size: .9rem;
}

/* ── Article page ── */
.article-hero {
  padding: 60px 0 32px;
  background: #f1f5f9;
}

.article-hero .badge { margin-bottom: 16px; }

.article-hero h1 {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -.02em;
  margin-bottom: 16px;
  max-width: 720px;
}

.article-hero p {
  font-size: 1.05rem;
  color: var(--text2);
  max-width: 600px;
}

.article-meta {
  display: flex;
  gap: 20px;
  margin-top: 16px;
  font-size: .85rem;
  color: var(--text2);
}

.article-body {
  padding: 48px 0 64px;
}

.article-body .wrap {
  max-width: 760px;
}

.article-body h2 {
  font-size: 1.5rem;
  font-weight: 800;
  margin: 40px 0 16px;
}

.article-body h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin: 28px 0 12px;
}

.article-body p {
  margin-bottom: 16px;
  color: var(--text2);
  font-size: 1rem;
  line-height: 1.75;
}

.article-body ul,
.article-body ol {
  margin: 0 0 16px 20px;
  color: var(--text2);
  line-height: 1.75;
}

.article-body li {
  margin-bottom: 6px;
}

.article-body blockquote {
  margin: 24px 0;
  padding: 20px 24px;
  background: var(--primary-light);
  border-left: 4px solid var(--primary);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  color: var(--text);
  font-size: .95rem;
}

.article-body .tip {
  margin: 24px 0;
  padding: 20px 24px;
  background: #ecfdf5;
  border-left: 4px solid #10b981;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.article-nav {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.article-nav a {
  font-weight: 600;
  color: var(--primary);
  font-size: .95rem;
}

.article-nav a:hover {
  text-decoration: underline;
}

.breadcrumb {
  font-size: .85rem;
  color: var(--text2);
  margin-bottom: 20px;
}

.breadcrumb a {
  color: var(--primary);
}

.breadcrumb a:hover {
  text-decoration: underline;
}

/* ── FAQ ── */
.faq {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 760px;
}

.faq__item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  transition: box-shadow .2s;
}

.faq__item:hover {
  box-shadow: var(--shadow-sm);
}

.faq__item summary {
  padding: 18px 24px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq__item summary::-webkit-details-marker { display: none; }

.faq__item summary::after {
  content: "+";
  font-size: 1.4rem;
  font-weight: 300;
  color: var(--text2);
  transition: transform .3s;
  flex-shrink: 0;
  margin-left: 16px;
}

.faq__item[open] summary::after {
  transform: rotate(45deg);
}

.faq__item p {
  padding: 0 24px 18px;
  color: var(--text2);
  font-size: .95rem;
}

/* ── Footer ── */
.footer {
  background: #0f172a;
  color: #94a3b8;
  padding: 56px 0 24px;
}

.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
}

.footer__brand p {
  margin-top: 12px;
  font-size: .9rem;
  max-width: 280px;
}

.footer__col h4 {
  color: #fff;
  font-size: .85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  margin-bottom: 14px;
}

.footer__col a,
.footer__col p {
  display: block;
  font-size: .9rem;
  margin-bottom: 8px;
  transition: color .2s;
}

.footer__col a:hover {
  color: #fff;
}

.footer__bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid rgba(148,163,184,.2);
  font-size: .8rem;
}

.footer .header__logo {
  color: #fff;
}

/* ── Reveal animation ── */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .6s ease, transform .6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero__mock--1, .hero__mock--2 { animation: none; }
}

/* ── Responsive ── */
@media (max-width: 960px) {
  .hero__grid { grid-template-columns: 1fr; gap: 40px; }
  .hero__card-stack { height: 260px; }
  .grid--2 { grid-template-columns: repeat(2, 1fr); }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .spotlight { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .header__nav { display: none; position: absolute; top: 64px; left: 0; right: 0; background: #fff; flex-direction: column; padding: 20px; gap: 16px; border-bottom: 1px solid var(--border); box-shadow: var(--shadow); }
  .header__nav.open { display: flex; }
  .header__burger { display: flex; }

  .hero { padding: 50px 0 40px; }
  .hero__text h1 { font-size: 1.8rem; }
  .hero__stats { gap: 20px; }
  .hero__stats strong { font-size: 1.6rem; }
  .hero__card-stack { height: 200px; }

  .grid--2 { grid-template-columns: 1fr; }
  .grid--3 { grid-template-columns: 1fr; }
  .spotlight { gap: 24px; }
  .footer__grid { grid-template-columns: 1fr; gap: 24px; }

  .row-card { grid-template-columns: 1fr; gap: 12px; }
  .row-card__icon { display: none; }
  .row-card__meta { text-align: left; display: flex; gap: 12px; }

  .btn { width: 100%; }

  .compare-table th,
  .compare-table td { padding: 10px 12px; font-size: .82rem; }
}
