:root {
  --brand: #2f7d8a;
  --brand-dark: #1f5a64;
  --brand-light: #e8f4f6;
  --accent: #f0a04b;
  --ink: #1e2a2e;
  --muted: #5b6b70;
  --line: #e2e8ea;
  --bg: #ffffff;
  --bg-soft: #f6f9fa;
  --star: #f5b301;
  --max: 1120px;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(31, 90, 100, 0.08);
  --font: "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

img { max-width: 100%; display: block; }

.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 20px;
}

h1, h2, h3 { line-height: 1.25; color: var(--ink); }
h1 { font-size: clamp(1.9rem, 4vw, 2.8rem); margin: 0 0 .5rem; }
h2 { font-size: clamp(1.4rem, 3vw, 2rem); margin: 2.4rem 0 1rem; }
h3 { font-size: 1.2rem; margin: 1.5rem 0 .6rem; }

p { margin: 0 0 1rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--ink);
}
.brand:hover { text-decoration: none; }
.brand .logo {
  width: 34px; height: 34px;
  border-radius: 9px;
  background: linear-gradient(135deg, var(--brand), var(--brand-dark));
  display: grid; place-items: center;
  color: #fff; font-weight: 800;
}
.nav-links { display: flex; gap: 22px; align-items: center; list-style: none; margin: 0; padding: 0; }
.nav-links a { color: var(--muted); font-weight: 500; }
.nav-links a:hover { color: var(--brand); text-decoration: none; }
.nav-toggle { display: none; background: none; border: 0; font-size: 1.6rem; cursor: pointer; color: var(--ink); }

@media (max-width: 760px) {
  .nav-links {
    position: absolute; top: 68px; left: 0; right: 0;
    background: #fff; flex-direction: column; gap: 0;
    border-bottom: 1px solid var(--line);
    max-height: 0; overflow: hidden; transition: max-height .3s ease;
  }
  .nav-links.open { max-height: 360px; }
  .nav-links li { width: 100%; }
  .nav-links a { display: block; padding: 14px 20px; border-top: 1px solid var(--line); }
  .nav-toggle { display: block; }
}

/* ---------- Hero ---------- */
.hero {
  background: radial-gradient(1200px 500px at 80% -10%, var(--brand-light), transparent),
              linear-gradient(180deg, var(--bg-soft), #fff);
  padding: 64px 0 48px;
}
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; }
.hero .eyebrow {
  display: inline-block; background: var(--brand-light); color: var(--brand-dark);
  font-weight: 600; font-size: .82rem; letter-spacing: .04em; text-transform: uppercase;
  padding: 6px 12px; border-radius: 999px; margin-bottom: 16px;
}
.hero p.lead { font-size: 1.15rem; color: var(--muted); max-width: 56ch; }
.hero-art {
  background: linear-gradient(135deg, var(--brand), var(--brand-dark));
  border-radius: 20px; min-height: 260px; box-shadow: var(--shadow);
  display: grid; place-items: center; color: #fff; padding: 28px; text-align: center;
}
.hero-art .big { font-size: 3.4rem; font-weight: 800; }
@media (max-width: 860px) { .hero-grid { grid-template-columns: 1fr; } .hero-art { min-height: 200px; } }

.hero-img {
  border-radius: 20px; box-shadow: var(--shadow); width: 100%;
  aspect-ratio: 3 / 2; object-fit: cover;
}

/* ---------- Article hero image ---------- */
.article-hero {
  width: 100%; max-height: 380px; object-fit: cover;
  border-radius: 16px; box-shadow: var(--shadow); margin-bottom: 26px;
}

/* ---------- Blog / post grid ---------- */
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 860px) { .post-grid { grid-template-columns: 1fr; } }
.post-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow); transition: .2s; display: flex; flex-direction: column;
}
.post-card:hover { transform: translateY(-3px); }
.post-card img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.post-card .body { padding: 20px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.post-card .tag { font-size: .75rem; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; color: var(--accent); }
.post-card h3 { margin: 6px 0 8px; font-size: 1.2rem; }
.post-card p { color: var(--muted); margin: 0 0 16px; font-size: .95rem; }
.post-card a.more { margin-top: auto; font-weight: 600; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; font-weight: 600; padding: 12px 22px; border-radius: 999px;
  background: var(--brand); color: #fff; border: 0; cursor: pointer; transition: .2s;
}
.btn:hover { background: var(--brand-dark); text-decoration: none; transform: translateY(-1px); }
.btn.ghost { background: transparent; color: var(--brand); border: 1.5px solid var(--brand); }
.btn.ghost:hover { background: var(--brand-light); }
.btn-row { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 22px; }

/* ---------- Sections ---------- */
.section { padding: 56px 0; }
.section.soft { background: var(--bg-soft); }
.section-head { text-align: center; max-width: 60ch; margin: 0 auto 36px; }
.section-head p { color: var(--muted); }

/* ---------- Cards ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
@media (max-width: 860px) { .cards { grid-template-columns: 1fr; } }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; box-shadow: var(--shadow); transition: .2s;
}
.card:hover { transform: translateY(-3px); }
.card .ic {
  width: 46px; height: 46px; border-radius: 12px; background: var(--brand-light);
  color: var(--brand-dark); display: grid; place-items: center; font-size: 1.4rem; margin-bottom: 14px;
}
.card h3 { margin-top: 0; }
.card p { color: var(--muted); margin-bottom: 0; }

/* ---------- Review cards ---------- */
.review-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
@media (max-width: 760px) { .review-list { grid-template-columns: 1fr; } }
.review-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; box-shadow: var(--shadow); display: flex; flex-direction: column;
}
.review-card .badge { font-size: .8rem; font-weight: 600; color: var(--accent); text-transform: uppercase; letter-spacing: .04em; }
.review-card h3 { margin: 6px 0 4px; font-size: 1.4rem; }
.stars { color: var(--star); letter-spacing: 2px; font-size: 1.05rem; }
.rating-num { color: var(--muted); font-size: .9rem; margin-left: 6px; }
.review-card ul { padding-left: 18px; color: var(--muted); margin: 14px 0; }
.review-card .btn { align-self: flex-start; margin-top: auto; }

/* ---------- Article ---------- */
.article { padding: 48px 0 64px; }
.article .meta { color: var(--muted); font-size: .9rem; margin-bottom: 22px; }
.prose { max-width: 760px; }
.prose ul, .prose ol { color: var(--ink); }
.prose li { margin-bottom: .4rem; }
.callout {
  background: var(--brand-light); border-left: 4px solid var(--brand);
  padding: 16px 20px; border-radius: 10px; margin: 24px 0; color: var(--brand-dark);
}

/* ---------- Comparison table ---------- */
.table-wrap { overflow-x: auto; margin: 24px 0; }
table.compare { width: 100%; border-collapse: collapse; min-width: 520px; background: #fff; }
table.compare th, table.compare td { padding: 14px 16px; text-align: left; border-bottom: 1px solid var(--line); }
table.compare thead th { background: var(--brand); color: #fff; font-weight: 600; }
table.compare tbody tr:nth-child(even) { background: var(--bg-soft); }
table.compare td:first-child { font-weight: 600; }

/* ---------- Breadcrumb ---------- */
.crumbs { font-size: .88rem; color: var(--muted); padding: 18px 0 0; }
.crumbs a { color: var(--muted); }

/* ---------- CTA banner ---------- */
.cta-banner {
  background: linear-gradient(135deg, var(--brand), var(--brand-dark));
  color: #fff; border-radius: 18px; padding: 40px; text-align: center; box-shadow: var(--shadow);
}
.cta-banner h2 { color: #fff; margin-top: 0; }
.cta-banner p { color: rgba(255,255,255,.9); max-width: 52ch; margin: 0 auto 22px; }
.cta-banner .btn { background: #fff; color: var(--brand-dark); }
.cta-banner .btn:hover { background: #f0f0f0; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #c7d2d6; padding: 48px 0 28px; margin-top: 40px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; gap: 24px; } }
.site-footer h4 { color: #fff; margin: 0 0 14px; font-size: 1rem; }
.site-footer a { color: #c7d2d6; }
.site-footer a:hover { color: #fff; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 8px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 32px; padding-top: 20px; font-size: .85rem; color: #8ea3a8; }
.disclaimer { font-size: .8rem; color: #8ea3a8; margin-top: 10px; }
