/* ============================================================
   Template 1 — "Meridian": modern SaaS, light and airy
   ============================================================ */
:root {
  --bg: #f7f9fc;
  --surface: #ffffff;
  --text: #0f172a;
  --muted: #64748b;
  --brand: #4f46e5;
  --brand-2: #3b82f6;
  --border: #e2e8f0;
  --shadow: 0 10px 30px rgba(15, 23, 42, 0.07);
  --radius: 14px;
  --font: "Inter", "Segoe UI", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  line-height: 1.65;
}
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }

.dev-switcher {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  padding: 8px 16px;
  background: linear-gradient(90deg, #1e1b4b, #312e81);
  border-bottom: 1px solid #4338ca;
}
.dev-switcher-label {
  color: #a5b4fc;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  margin-right: 6px;
}
.tpl-btn {
  border: 1px solid #4338ca;
  background: rgba(255, 255, 255, 0.08);
  color: #e0e7ff;
  border-radius: 999px;
  padding: 4px 12px;
  font-size: 12px;
  cursor: pointer;
}
.tpl-btn:hover { background: rgba(255, 255, 255, 0.16); }
.tpl-btn.selected { background: #ffffff; color: #312e81; font-weight: 700; }

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 40px;
  max-width: 1200px;
  margin: 0 auto;
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand-mark {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: #fff;
  font-weight: 800;
  border-radius: 9px;
  font-size: 14px;
}
.brand-name { font-weight: 800; font-size: 20px; letter-spacing: -0.3px; color: var(--text); }
.site-nav { display: flex; gap: 26px; }
.site-nav a { color: var(--muted); font-weight: 600; font-size: 15px; }
.site-nav a:hover { color: var(--brand); text-decoration: none; }
.site-nav a.active { color: var(--brand); }

.site-main { max-width: 1200px; margin: 0 auto; padding: 0 40px 80px; }

.hero {
  text-align: center;
  padding: 70px 20px 50px;
}
.hero-eyebrow {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 999px;
  background: #eef2ff;
  color: var(--brand);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.hero h1 {
  font-size: clamp(34px, 5vw, 54px);
  line-height: 1.12;
  letter-spacing: -1.5px;
  margin: 22px auto 18px;
  max-width: 860px;
}
.hero .accent {
  background: linear-gradient(90deg, var(--brand), var(--brand-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-sub { max-width: 640px; margin: 0 auto 30px; color: var(--muted); font-size: 18px; }
.hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.hero-stats {
  display: flex;
  gap: 50px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 54px;
  padding-top: 34px;
  border-top: 1px solid var(--border);
}
.hero-stats div { text-align: center; }
.hero-stats strong {
  display: block;
  font-size: 30px;
  letter-spacing: -1px;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-stats span { color: var(--muted); font-size: 13px; }

.section { margin: 60px 0; }
.section-title {
  font-size: 26px;
  letter-spacing: -0.5px;
  margin: 0 0 26px;
}
.section-real {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 44px;
  box-shadow: var(--shadow);
}
.section-real p { color: var(--muted); max-width: 760px; }

.btn {
  display: inline-block;
  padding: 12px 24px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: #fff !important;
  font-weight: 700;
  border: none;
  cursor: pointer;
  font-size: 15px;
}
.btn:hover { text-decoration: none; filter: brightness(1.08); }
.btn-ghost {
  background: var(--surface);
  color: var(--text) !important;
  border: 1.5px solid var(--border);
}
.btn-ghost:hover { border-color: var(--brand); }
.btn-danger { background: #dc2626; }
.btn-danger:hover { filter: brightness(0.95); }

.service-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
.service-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  color: var(--text) !important;
  display: block;
}
.service-card:hover { text-decoration: none; transform: translateY(-4px); box-shadow: var(--shadow); }
.service-card-head { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.service-chip { width: 10px; height: 10px; border-radius: 999px; display: inline-block; }
.service-chip.chip-big { width: 16px; height: 16px; }
.service-card h3 { margin: 0; font-size: 18px; }
.service-card p { color: var(--muted); margin: 0 0 16px; font-size: 14.5px; }
.service-card-link { color: var(--brand); font-weight: 700; font-size: 14px; }

.service-list { display: flex; flex-direction: column; gap: 14px; }
.service-row {
  display: flex;
  align-items: center;
  gap: 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 26px;
  color: var(--text) !important;
  transition: box-shadow 0.15s ease;
}
.service-row:hover { text-decoration: none; box-shadow: var(--shadow); }
.service-row h3 { margin: 0 0 4px; }
.service-row p { margin: 0; color: var(--muted); }

.page-head { padding: 46px 0 10px; max-width: 860px; }
.page-title { font-size: clamp(28px, 4vw, 42px); letter-spacing: -1px; margin: 0 0 10px; }
.page-lead { color: var(--muted); font-size: 18px; margin: 0 0 14px; }

.steps { list-style: none; padding: 0; display: grid; gap: 14px; }
.steps li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 22px;
}
.step-num {
  flex: none;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: #fff;
  font-weight: 700;
  font-size: 14px;
}

.cases { display: grid; gap: 30px; }
.case-study {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.case-cover { aspect-ratio: 2 / 1; }
.case-cover svg, .chart-svg { display: block; width: 100%; height: 100%; }
.case-body { padding: 30px; }
.case-meta { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.tag {
  background: #eef2ff;
  color: var(--brand);
  font-size: 12.5px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
}
.tag-muted { background: #f1f5f9; color: var(--muted); }
.case-body h3 { font-size: 22px; letter-spacing: -0.3px; margin: 0 0 10px; }
.case-body p { color: var(--muted); }
.metrics { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; margin: 22px 0; }
.metric {
  background: #f8fafc;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px;
  text-align: center;
}
.metric strong {
  display: block;
  font-size: 26px;
  letter-spacing: -0.5px;
  color: var(--brand);
}
.metric span { font-size: 12.5px; color: var(--muted); }
.case-budget {
  font-size: 13px;
  color: var(--muted);
  border-top: 1px dashed var(--border);
  padding-top: 14px;
}

.cta-band {
  background: linear-gradient(135deg, #1e1b4b, #312e81);
  color: #fff;
  border-radius: var(--radius);
  padding: 48px;
  text-align: center;
}
.cta-band h2 { margin: 0 0 8px; font-size: 28px; }
.cta-band p { color: #c7d2fe; margin: 0 0 20px; }
.cta-band .btn { background: #fff; color: #312e81 !important; }

.post-list { display: grid; gap: 16px; }
.post-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  transition: box-shadow 0.15s ease;
}
.post-card:hover { box-shadow: var(--shadow); }
.post-card h2 { margin: 0 0 6px; font-size: 20px; }
.post-card a { color: var(--text); }
.post-card a:hover { color: var(--brand); }
.post-date { color: var(--muted); font-size: 13px; margin: 0; }
.post-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 22px; }

.post-full { max-width: 780px; margin: 0 auto; padding: 46px 0; }
.post-body { font-size: 17px; color: #1e293b; }
.post-body p { margin: 0 0 18px; }

.panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: var(--shadow);
}
.post-form { display: flex; flex-direction: column; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field span { font-weight: 700; font-size: 14px; }
.field input, .field textarea {
  border: 1.5px solid var(--border);
  border-radius: 10px;
  padding: 12px 14px;
  font: inherit;
  background: #fff;
}
.field input:focus, .field textarea:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.15);
}
.form-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.empty { color: var(--muted); }
.visit-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 22px; }
.visit-grid .panel h2 { margin-top: 0; }
.visit-grid ul { padding-left: 20px; color: var(--muted); }

.site-footer {
  background: #0f172a;
  color: #cbd5e1;
  padding: 56px 40px 28px;
}
.footer-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 34px;
}
.footer-brand { font-size: 20px; font-weight: 800; color: #fff; margin: 0 0 8px; }
.footer-title { font-weight: 700; color: #fff; margin: 0 0 10px; font-size: 14px; text-transform: uppercase; letter-spacing: 1px; }
.footer-links { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.footer-links a { color: #94a3b8; }
.footer-links a:hover { color: #fff; }
.footer-bottom { max-width: 1200px; margin: 40px auto 0; border-top: 1px solid #1e293b; padding-top: 18px; font-size: 13px; color: #64748b; }

@media (max-width: 720px) {
  .site-header { flex-direction: column; gap: 14px; padding: 18px 20px; }
  .site-nav { flex-wrap: wrap; justify-content: center; gap: 16px; }
  .site-main { padding: 0 20px 60px; }
  .hero { padding-top: 44px; }
}
