/* ============================================
   Empirisoft — modern design system
   ============================================ */

:root {
  --blue-900: #0b2e4f;
  --blue-800: #103d68;
  --blue-700: #156eba;
  --blue-600: #1d7fd4;
  --blue-100: #e3eefa;
  --blue-50: #f2f7fc;
  --ink: #1c2733;
  --ink-soft: #45566a;
  --ink-faint: #6b7c90;
  --line: #dde6ee;
  --bg: #f7fafc;
  --card: #ffffff;
  --accent: #e8483f;
  --green: #1d8a4e;
  --radius: 14px;
  --shadow-sm: 0 1px 3px rgba(16, 42, 67, 0.08);
  --shadow-md: 0 6px 24px rgba(16, 42, 67, 0.1);
  --max-w: 1120px;
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 90px; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16.5px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; }

a { color: var(--blue-700); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 { line-height: 1.25; color: var(--blue-900); margin: 0 0 0.5em; font-weight: 700; }
h1 { font-size: clamp(1.9rem, 4vw, 2.7rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.4rem, 3vw, 1.85rem); letter-spacing: -0.01em; }
h3 { font-size: 1.18rem; }

p { margin: 0 0 1em; }

.container { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }

/* ---------- Header / nav ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 68px;
}

.brand {
  display: flex;
  align-items: baseline;
  gap: 2px;
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--blue-900);
  letter-spacing: -0.02em;
  white-space: nowrap;
}
.brand:hover { text-decoration: none; }
.brand .dot { color: var(--blue-700); }
.brand small {
  font-size: 0.62rem;
  font-weight: 600;
  color: var(--ink-faint);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-left: 8px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  display: block;
  padding: 8px 13px;
  border-radius: 8px;
  color: var(--ink-soft);
  font-weight: 600;
  font-size: 0.94rem;
}
.nav-links a:hover { background: var(--blue-50); color: var(--blue-800); text-decoration: none; }
.nav-links a.active { color: var(--blue-700); background: var(--blue-100); }
.nav-links a.nav-cta {
  background: var(--blue-700);
  color: #fff;
  margin-left: 6px;
}
.nav-links a.nav-cta:hover { background: var(--blue-800); }

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  padding: 8px;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2.5px;
  background: var(--blue-900);
  border-radius: 2px;
  margin: 5px 0;
  transition: 0.2s;
}

@media (max-width: 880px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    background: #fff;
    border-bottom: 1px solid var(--line);
    padding: 10px 16px 16px;
    display: none;
    box-shadow: var(--shadow-md);
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 14px; }
  .nav-links a.nav-cta { margin-left: 0; text-align: center; }
}

/* ---------- Hero ---------- */

.hero {
  background:
    radial-gradient(1100px 500px at 85% -10%, rgba(29, 127, 212, 0.25), transparent 60%),
    radial-gradient(800px 400px at -10% 110%, rgba(29, 127, 212, 0.18), transparent 55%),
    linear-gradient(160deg, var(--blue-900) 0%, var(--blue-800) 55%, var(--blue-700) 100%);
  color: #fff;
  padding: 84px 0 92px;
}
.hero h1 { color: #fff; max-width: 720px; margin-bottom: 18px; }
.hero p.lede {
  font-size: 1.18rem;
  color: #cfe2f5;
  max-width: 640px;
  margin-bottom: 32px;
}
.hero .actions { display: flex; flex-wrap: wrap; gap: 14px; }

.page-hero {
  background: linear-gradient(160deg, var(--blue-900), var(--blue-700));
  color: #fff;
  padding: 56px 0;
}
.page-hero h1 { color: #fff; margin-bottom: 8px; }
.page-hero p { color: #cfe2f5; max-width: 700px; margin: 0; font-size: 1.08rem; }
.page-hero .crumb {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 700;
  color: #8fc1ec;
  margin-bottom: 14px;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-block;
  padding: 13px 26px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 1rem;
  transition: 0.15s;
  border: 2px solid transparent;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: #fff; color: var(--blue-800); }
.btn-primary:hover { box-shadow: var(--shadow-md); }
.btn-outline { border-color: rgba(255, 255, 255, 0.55); color: #fff; }
.btn-outline:hover { background: rgba(255, 255, 255, 0.12); }
.btn-solid { background: var(--blue-700); color: #fff; }
.btn-solid:hover { background: var(--blue-800); color: #fff; }
.btn-ghost { border-color: var(--blue-700); color: var(--blue-700); }
.btn-ghost:hover { background: var(--blue-50); }

/* ---------- Sections ---------- */

.section { padding: 72px 0; }
.section.tint { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.section-head { max-width: 720px; margin-bottom: 44px; }
.section-head .eyebrow,
.eyebrow {
  display: block;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue-700);
  margin-bottom: 10px;
}
.section-head p { color: var(--ink-soft); font-size: 1.05rem; margin: 0; }

/* ---------- Cards ---------- */

.grid { display: grid; gap: 26px; }
.grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 880px) {
  .grid.cols-2, .grid.cols-3 { grid-template-columns: 1fr; }
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: 0.18s;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }

.card .card-media {
  background: var(--blue-50);
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  min-height: 190px;
}
.card .card-media img { border-radius: 8px; max-height: 165px; width: auto; }

.card .card-body { padding: 24px 26px 26px; display: flex; flex-direction: column; flex: 1; }
.card .card-body p { color: var(--ink-soft); font-size: 0.97rem; flex: 1; }
.card .card-link { font-weight: 700; font-size: 0.95rem; }
.card .card-link::after { content: " \2192"; }

.badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 999px;
  margin-bottom: 12px;
  background: var(--blue-100);
  color: var(--blue-800);
  width: fit-content;
}
.badge.new { background: #fdeae9; color: var(--accent); }

/* ---------- Feature rows / prose ---------- */

.prose { max-width: 780px; }
.prose ul { padding-left: 22px; color: var(--ink-soft); }
.prose li { margin-bottom: 7px; }
.prose h3 { margin-top: 1.8em; }

.split {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}
.split.reverse { grid-template-columns: 0.9fr 1.1fr; }
@media (max-width: 880px) {
  .split, .split.reverse { grid-template-columns: 1fr; gap: 28px; }
}
.split img { border-radius: var(--radius); box-shadow: var(--shadow-md); }

.feature-list { list-style: none; padding: 0; margin: 0; }
.feature-list li {
  position: relative;
  padding-left: 30px;
  margin-bottom: 10px;
  color: var(--ink-soft);
}
.feature-list li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  top: 0;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--blue-100);
  color: var(--blue-700);
  font-size: 0.72rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 4px;
}

/* Collapsible feature groups */

details.feature-group {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  margin-bottom: 12px;
  overflow: hidden;
}
details.feature-group summary {
  cursor: pointer;
  padding: 16px 20px;
  font-weight: 700;
  color: var(--blue-900);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  user-select: none;
}
details.feature-group summary::-webkit-details-marker { display: none; }
details.feature-group summary::after {
  content: "+";
  font-size: 1.3rem;
  color: var(--blue-700);
  font-weight: 600;
}
details.feature-group[open] summary::after { content: "\2212"; }
details.feature-group .fg-body { padding: 0 20px 18px; }
details.feature-group[open] summary { border-bottom: 1px solid var(--line); margin-bottom: 14px; }

/* ---------- Stats strip ---------- */

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
  text-align: center;
}
@media (max-width: 700px) { .stats { grid-template-columns: 1fr; } }
.stat .num {
  font-size: 2.3rem;
  font-weight: 800;
  color: var(--blue-700);
  letter-spacing: -0.02em;
  line-height: 1.1;
}
.stat .label { color: var(--ink-soft); font-size: 0.95rem; margin-top: 6px; }

/* ---------- Pricing tables ---------- */

.price-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  font-size: 0.98rem;
}
.price-table th {
  background: var(--blue-800);
  color: #fff;
  text-align: left;
  padding: 13px 18px;
  font-weight: 700;
  font-size: 0.92rem;
}
.price-table th:not(:first-child), .price-table td:not(:first-child) { text-align: right; width: 130px; }
.price-table td { padding: 13px 18px; border-top: 1px solid var(--line); color: var(--ink-soft); }
.price-table td:first-child { color: var(--ink); font-weight: 600; }
.price-table tr:nth-child(even) td { background: var(--blue-50); }

.price-note { font-size: 0.88rem; color: var(--ink-faint); margin-top: 10px; }

.price-block { margin-bottom: 52px; }
.price-block > p { color: var(--ink-soft); max-width: 820px; }

.hw-price {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin: 10px 0 6px;
}
.hw-price .amount { font-size: 1.7rem; font-weight: 800; color: var(--blue-900); }
.hw-price .qualifier { color: var(--ink-faint); font-size: 0.92rem; }

/* Pricing toggle pills */

.pill-toggle { display: inline-flex; background: var(--blue-100); border-radius: 999px; padding: 4px; gap: 4px; margin-bottom: 36px; }
.pill-toggle a {
  padding: 9px 22px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--blue-800);
}
.pill-toggle a.active { background: var(--blue-700); color: #fff; }
.pill-toggle a:hover { text-decoration: none; }

/* ---------- Callouts ---------- */

.callout {
  background: var(--blue-50);
  border: 1px solid var(--blue-100);
  border-left: 4px solid var(--blue-700);
  border-radius: 10px;
  padding: 18px 22px;
  margin: 26px 0;
  color: var(--ink-soft);
  font-size: 0.97rem;
}
.callout strong { color: var(--blue-900); }
.callout.warn { border-left-color: var(--accent); background: #fdf3f2; border-color: #f7dad8; }

/* ---------- News ---------- */

.news-list { list-style: none; margin: 0; padding: 0; }
.news-list li {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 18px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.news-list li:last-child { border-bottom: 0; }
.news-list time { color: var(--ink-faint); font-size: 0.88rem; font-weight: 600; padding-top: 2px; }
.news-list .item { color: var(--ink-soft); }
@media (max-width: 600px) {
  .news-list li { grid-template-columns: 1fr; gap: 2px; }
}

/* ---------- CTA band ---------- */

.cta-band {
  background: linear-gradient(140deg, var(--blue-800), var(--blue-700));
  color: #fff;
  border-radius: var(--radius);
  padding: 52px 48px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.cta-band h2 { color: #fff; margin: 0 0 6px; }
.cta-band p { color: #cfe2f5; margin: 0; }
@media (max-width: 700px) { .cta-band { padding: 36px 28px; } }

/* ---------- Contact ---------- */

.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
@media (max-width: 880px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow-sm);
}
.contact-card h3 { display: flex; align-items: center; gap: 10px; }
.contact-card .icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--blue-100);
  color: var(--blue-700);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}
.contact-card p { color: var(--ink-soft); font-size: 0.97rem; margin-bottom: 0.5em; }

/* ---------- Download cards ---------- */

.dl-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 28px;
}
.dl-card .dl-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 14px; }
.dl-card .dl-head h2 { margin: 0; }
.dl-card .meta { color: var(--ink-faint); font-size: 0.9rem; }
.dl-card p { color: var(--ink-soft); }
.dl-links { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 18px; align-items: center; }
.dl-links .small-links { display: flex; gap: 18px; flex-wrap: wrap; font-size: 0.93rem; }

/* ---------- Footer ---------- */

.site-footer {
  background: var(--blue-900);
  color: #9db8d2;
  padding: 56px 0 32px;
  margin-top: 80px;
  font-size: 0.93rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 36px;
  margin-bottom: 40px;
}
@media (max-width: 880px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer h4 { color: #fff; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 14px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 9px; }
.site-footer a { color: #b9cfe5; }
.site-footer a:hover { color: #fff; }
.footer-brand { font-size: 1.25rem; font-weight: 800; color: #fff; letter-spacing: -0.02em; margin-bottom: 10px; }
.footer-brand .dot { color: #5aa6e3; }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 24px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.85rem;
  color: #7e9cba;
}

/* ---------- Plan cards ---------- */

.plans { display: grid; gap: 24px; grid-template-columns: repeat(3, 1fr); }
@media (max-width: 880px) { .plans { grid-template-columns: 1fr; } }

.plan {
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 28px 26px;
  display: flex;
  flex-direction: column;
  transition: 0.18s;
}
.plan:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.plan.featured { border-color: var(--blue-700); box-shadow: 0 0 0 2px var(--blue-700) inset, var(--shadow-md); }
.plan .plan-tag {
  position: absolute;
  top: -12px;
  left: 26px;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--blue-700);
  color: #fff;
}
.plan .plan-tag.free { background: var(--green); }
.plan .plan-name { font-size: 1.15rem; font-weight: 800; color: var(--blue-900); margin-bottom: 4px; }
.plan .plan-for { color: var(--ink-faint); font-size: 0.9rem; margin-bottom: 18px; min-height: 38px; }
.plan .price { font-size: 2.05rem; font-weight: 800; color: var(--blue-900); letter-spacing: -0.02em; line-height: 1.1; }
.plan .price span { font-size: 0.92rem; font-weight: 600; color: var(--ink-faint); }
.plan .price-sub { color: var(--ink-faint); font-size: 0.85rem; margin: 4px 0 18px; min-height: 20px; }
.plan .feature-list { margin-bottom: 22px; flex: 1; }
.plan .feature-list li { font-size: 0.93rem; margin-bottom: 8px; }
.plan .btn { width: 100%; text-align: center; padding: 11px 20px; }

/* ---------- Utility ---------- */

.mt-0 { margin-top: 0; }
.mb-lg { margin-bottom: 48px; }
.text-soft { color: var(--ink-soft); }
.anchor-offset { scroll-margin-top: 90px; }
