/* =============================================================
   Beyond Logic: Chaim Tesser
   Tech Leader for ABA Agencies
   ============================================================= */

:root {
  --blue: #2b5bff;
  --blue-deep: #1a3fd1;
  --blue-dark: #0f1f5c;
  --lime: #c6f060;
  --lime-deep: #a8d940;
  --ink: #0a1030;
  --ink-2: #2a3359;
  --muted: #5a6490;
  --bg: #ffffff;
  --bg-soft: #f5f7ff;
  --line: #e6eaf7;
  --radius: 14px;
  --radius-lg: 22px;
  --radius-pill: 999px;
  --shadow-sm: 0 2px 10px rgba(20, 30, 80, 0.06);
  --shadow: 0 12px 40px rgba(20, 30, 80, 0.10);
  --shadow-lg: 0 24px 60px rgba(20, 30, 80, 0.18);
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
body > main { flex: 1 0 auto; }
body > footer { flex-shrink: 0; }
img { max-width: 100%; display: block; }
a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--blue-deep); }

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
  font-family: "Archivo", "Inter", sans-serif;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin: 0 0 0.5em;
}
h1 { font-size: clamp(2.4rem, 5.2vw, 4.2rem); }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.8rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.45rem); }
p { margin: 0 0 1em; color: var(--ink-2); }
.eyebrow {
  display: inline-block;
  font-family: "Archivo", sans-serif;
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--blue);
  background: rgba(43, 91, 255, 0.08);
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  margin-bottom: 18px;
}
.eyebrow.on-blue {
  color: var(--ink);
  background: var(--lime);
}
.highlight {
  color: var(--blue);
  background: linear-gradient(180deg, transparent 62%, var(--lime) 62%);
  padding: 0 4px;
}
.lime-text { color: var(--lime); }

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}
section { padding: 96px 0; }
section.tight { padding: 64px 0; }

/* ---------- Navigation ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: "Archivo", sans-serif;
  font-weight: 800;
  color: var(--ink);
  font-size: 1.05rem;
  letter-spacing: -0.01em;
}
.brand-mark {
  width: 34px; height: 34px;
  border-radius: 9px;
  display: block;
  object-fit: contain;
  box-shadow: var(--shadow-sm);
}
.brand-logo {
  display: block;
  height: 55px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
}
@media (max-width: 540px) {
  .brand-logo { height: 45px; }
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
  list-style: none;
  margin: 0; padding: 0;
}
.nav-links a {
  color: var(--ink-2);
  font-weight: 500;
  padding: 10px 14px;
  border-radius: var(--radius-pill);
  transition: background .2s var(--ease), color .2s var(--ease);
}
.nav-links a:hover { background: var(--bg-soft); color: var(--ink); }
.nav-links a.active { color: var(--ink); background: var(--bg-soft); }
.nav-cta { margin-left: 12px; }
.btn-cta  { color: var(--lime) !important; }
.btn-cta:hover { color: var(--lime-deep) !important; }

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--line);
  padding: 8px 10px;
  border-radius: 10px;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
  margin: 5px 0;
  transition: transform .25s var(--ease), opacity .25s var(--ease);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  font-family: "Archivo", sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .2s var(--ease), background .2s var(--ease), color .2s var(--ease), box-shadow .2s var(--ease);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  background: var(--ink);
  color: var(--lime);
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover { background: #000; color: var(--lime); box-shadow: var(--shadow); }
.btn-lime {
  background: var(--lime);
  color: var(--ink);
}
.btn-lime:hover { background: var(--lime-deep); }
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
.btn-ghost:hover { background: var(--bg-soft); }
.btn-ghost-on-blue {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,0.35);
}
.btn-ghost-on-blue:hover { background: rgba(255,255,255,0.1); }
.btn .arrow { transition: transform .25s var(--ease); }
.btn:hover .arrow { transform: translateX(3px); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: var(--blue);
  color: #fff;
  overflow: hidden;
  padding: 110px 0 120px;
}
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.08) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at center, #000 40%, transparent 85%);
  -webkit-mask-image: radial-gradient(ellipse at center, #000 40%, transparent 85%);
  pointer-events: none;
}
.hero::after {
  content: "";
  position: absolute;
  right: -120px; top: -120px;
  width: 420px; height: 420px;
  background: radial-gradient(circle at center, rgba(198, 240, 96, 0.45), transparent 60%);
  filter: blur(10px);
  pointer-events: none;
}
.hero .container { position: relative; z-index: 1; }
.hero h1 { color: #fff; max-width: 14ch; }
.hero h1 .accent { color: var(--lime); }
.hero .lede {
  max-width: 58ch;
  font-size: 1.15rem;
  color: rgba(255,255,255,0.9);
}
.hero-cta {
  display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px;
}
.hero-pills {
  display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px;
}
.pill {
  background: #fff;
  color: var(--ink);
  padding: 10px 18px;
  border-radius: var(--radius-pill);
  font-family: "Archivo", sans-serif;
  font-weight: 700;
  font-size: 0.9rem;
  box-shadow: var(--shadow-sm);
}
.hero-split {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 56px;
  align-items: center;
}
.hero-card {
  position: relative;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: var(--radius-lg);
  padding: 28px;
  backdrop-filter: blur(6px);
}
.hero-card h4 {
  color: #fff; margin: 0 0 12px; font-size: 1rem;
  display: flex; align-items: center; gap: 10px;
}
.hero-card h4::before {
  content: ""; width: 10px; height: 10px; border-radius: 50%;
  background: var(--lime); box-shadow: 0 0 0 4px rgba(198,240,96,0.25);
}
.hero-card ul { list-style: none; padding: 0; margin: 0; }
.hero-card li {
  padding: 10px 0;
  color: rgba(255,255,255,0.9);
  border-bottom: 1px dashed rgba(255,255,255,0.18);
  display: flex; align-items: flex-start; gap: 10px;
}
.hero-card li:last-child { border-bottom: 0; }
.hero-card li::before {
  content: "✕"; color: var(--lime);
  font-weight: 900; font-family: "Archivo", sans-serif;
  transform: translateY(1px);
}

/* ---------- Sections: Headers ---------- */
.section-head {
  max-width: 780px;
  margin: 0 auto 48px;
  text-align: center;
}
.section-head.left { text-align: left; margin-left: 0; }
.section-head p { color: var(--muted); font-size: 1.08rem; }

/* ---------- Pain Points Grid ---------- */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease);
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: transparent;
}
.card h3 { margin-top: 10px; }
.card p { color: var(--muted); margin: 0; }
.card-icon {
  width: 46px; height: 46px;
  border-radius: 12px;
  background: var(--bg-soft);
  color: var(--blue);
  display: grid; place-items: center;
  font-family: "Archivo", sans-serif; font-weight: 800;
  font-size: 1.1rem;
  border: 1px solid var(--line);
}
.card.accent { background: var(--ink); color: #fff; border-color: var(--ink); }
.card.accent h3 { color: #fff; }
.card.accent p { color: rgba(255,255,255,0.75); }
.card.accent .card-icon { background: var(--lime); color: var(--ink); border-color: transparent; }

/* ---------- Before / After ---------- */
.compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 24px;
}
.compare .card h3 { display: flex; align-items: center; gap: 10px; }
.compare ul { list-style: none; padding: 0; margin: 14px 0 0; }
.compare li {
  display: flex; gap: 12px; padding: 10px 0;
  color: var(--ink-2);
  border-bottom: 1px dashed var(--line);
}
.compare li:last-child { border-bottom: 0; }
.compare li::before {
  flex: none;
  width: 22px; height: 22px; border-radius: 50%;
  display: inline-grid; place-items: center;
  font-family: "Archivo", sans-serif; font-weight: 900; font-size: 0.8rem;
}
.compare .before li::before { content: "✕"; background: #ffeaea; color: #d03a3a; }
.compare .after  li::before { content: "✓"; background: #e9ffd6; color: #3e8a10; }
.compare .after { background: var(--ink); color: #fff; border-color: var(--ink); }
.compare .after h3 { color: #fff; }
.compare .after li { color: rgba(255,255,255,0.9); border-bottom-color: rgba(255,255,255,0.1); }

/* ---------- Process Steps ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  counter-reset: step;
}
.step {
  position: relative;
  padding: 36px 28px 28px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}
.step::before {
  counter-increment: step;
  content: "0" counter(step);
  position: absolute;
  top: -18px; left: 24px;
  background: var(--lime);
  color: var(--ink);
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  font-family: "Archivo", sans-serif;
  font-weight: 900;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
}
.step h3 { margin-bottom: 8px; }
.step p { color: var(--muted); margin: 0; }

/* ---------- Services / Packages ---------- */
.packages {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.package {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 32px;
  display: flex; flex-direction: column;
  position: relative;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease);
}
.package:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}
.package .tag {
  position: absolute; top: 20px; right: 20px;
  background: var(--lime); color: var(--ink);
  padding: 5px 12px; border-radius: var(--radius-pill);
  font-family: "Archivo", sans-serif; font-weight: 800; font-size: 0.72rem;
  letter-spacing: 0.08em; text-transform: uppercase;
}
.package h3 { font-size: 1.4rem; margin-bottom: 6px; }
.package .price {
  font-family: "Archivo", sans-serif;
  font-weight: 800; font-size: 1.1rem;
  color: var(--blue);
  margin-bottom: 16px;
}
.package ul { list-style: none; padding: 0; margin: 0 0 22px; }
.package li {
  position: relative;
  padding: 10px 0 10px 28px;
  color: var(--ink-2);
  border-bottom: 1px dashed var(--line);
}
.package li:last-child { border-bottom: 0; }
.package li::before {
  content: "✓";
  position: absolute; left: 0; top: 10px;
  color: var(--blue);
  font-weight: 900;
}
.package .fit {
  margin-top: auto;
  padding: 16px;
  background: var(--bg-soft);
  border-radius: 12px;
  font-size: 0.92rem;
  color: var(--ink-2);
}
.package .fit strong { display: block; color: var(--ink); margin-bottom: 6px; font-family: "Archivo", sans-serif; }
.package.featured {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}
.package.featured h3 { color: #fff; }
.package.featured .price { color: var(--lime); }
.package.featured li { color: rgba(255,255,255,0.9); border-bottom-color: rgba(255,255,255,0.12); }
.package.featured li::before { color: var(--lime); }
.package.featured .fit { background: rgba(255,255,255,0.08); color: rgba(255,255,255,0.85); }
.package.featured .fit strong { color: #fff; }
.package.featured .btn-primary { background: var(--lime); color: var(--ink); }
.package.featured .btn-primary:hover { background: #fff; }

/* ---------- Testimonial ---------- */
.testimonial {
  background: var(--bg-soft);
}
.testimonial-card {
  max-width: 860px; margin: 0 auto;
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 48px;
  box-shadow: var(--shadow);
  position: relative;
  text-align: center;
}
.testimonial-card::before {
  content: "“";
  position: absolute; top: -20px; left: 30px;
  font-family: "Archivo", serif; font-weight: 900;
  font-size: 7rem; line-height: 1;
  color: var(--lime);
}
.testimonial-card p.quote {
  font-size: 1.25rem;
  line-height: 1.5;
  color: var(--ink);
  font-family: "Archivo", sans-serif;
  font-weight: 600;
}
.testimonial-author {
  display: inline-flex; gap: 14px; align-items: center;
  margin-top: 16px;
  font-size: 0.95rem;
}
.testimonial-author .avatar {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--lime);
  color: var(--ink);
  display: grid; place-items: center;
  font-family: "Archivo", sans-serif; font-weight: 800;
}
.testimonial-author .name { font-weight: 700; color: var(--ink); }
.testimonial-author .role { color: var(--muted); }

/* ---------- Stats Strip ---------- */
.stats {
  background: var(--ink);
  color: #fff;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}
.stat .num {
  font-family: "Archivo", sans-serif;
  font-weight: 900;
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--lime);
  letter-spacing: -0.02em;
  line-height: 1;
}
.stat .label {
  margin-top: 10px;
  color: rgba(255,255,255,0.75);
  font-size: 0.95rem;
}

/* ---------- About: profile block ---------- */
.about-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.about-card {
  position: relative;
  background: var(--blue);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 40px;
  overflow: hidden;
  min-height: 420px;
}
.about-card::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.08) 1px, transparent 1px);
  background-size: 40px 40px;
}
.about-card-content {
  position: relative; z-index: 1;
  display: flex; flex-direction: column; height: 100%;
  justify-content: space-between;
  min-height: 340px;
}
.avatar-ring {
  width: 180px; height: 180px;
  border-radius: 50%;
  background: var(--lime);
  display: grid; place-items: center;
  box-shadow: 0 0 0 8px rgba(255,255,255,0.15);
  font-family: "Archivo", sans-serif;
  font-weight: 900;
  font-size: 3.8rem;
  color: var(--ink);
  overflow: hidden;
}
.avatar-ring img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 50%;
}
.about-card .name-block { margin-top: 28px; }
.about-card .name-block .name {
  font-family: "Archivo", sans-serif;
  font-weight: 800;
  font-size: 1.6rem;
}
.about-card .name-block .title { color: var(--lime); font-weight: 600; }

/* ---------- Values: work-together ---------- */
.values {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.value {
  padding: 28px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}
.value .val-icon {
  width: 42px; height: 42px;
  border-radius: 12px;
  background: var(--lime);
  color: var(--ink);
  display: grid; place-items: center;
  font-family: "Archivo", sans-serif; font-weight: 900;
  margin-bottom: 14px;
}

/* ---------- Case Studies ---------- */
.case {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 32px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: center;
}
.case + .case { margin-top: 20px; }
.case h3 { margin-bottom: 6px; }
.case .result {
  background: var(--ink);
  color: #fff;
  border-radius: 14px;
  padding: 24px;
}
.case .result .big {
  font-family: "Archivo", sans-serif;
  font-weight: 900; color: var(--lime);
  font-size: 2rem; line-height: 1;
  margin-bottom: 8px;
}
.case .result p { color: rgba(255,255,255,0.8); margin: 0; }

/* ---------- CTA ---------- */
.cta-band {
  background: var(--blue);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 56px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-band::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.08) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(ellipse at center, #000 20%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse at center, #000 20%, transparent 80%);
}
.cta-band > * { position: relative; z-index: 1; }
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,0.85); max-width: 60ch; margin: 0 auto 22px; }

/* ---------- Contact form ---------- */
.contact-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}
.contact-info h3 { margin-top: 0; }
.contact-info p { color: var(--muted); }
.contact-points { list-style: none; padding: 0; margin: 24px 0 0; }
.contact-points li {
  display: flex; gap: 14px; align-items: flex-start;
  padding: 14px 0;
  border-bottom: 1px dashed var(--line);
}
.contact-points li:last-child { border-bottom: 0; }
.contact-points .ic {
  flex: none;
  width: 38px; height: 38px;
  border-radius: 10px;
  background: var(--bg-soft);
  color: var(--blue);
  display: grid; place-items: center;
  font-weight: 900;
}
.contact-points strong {
  display: block;
  font-family: "Archivo", sans-serif;
  color: var(--ink);
}
.contact-points span { color: var(--muted); }

.form-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow-sm);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { margin-bottom: 16px; display: flex; flex-direction: column; }
.field label {
  font-family: "Archivo", sans-serif;
  font-weight: 700; font-size: 0.85rem;
  color: var(--ink); margin-bottom: 6px;
}
.field input,
.field textarea,
.field select {
  font: inherit;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(43,91,255,0.12);
}
.field textarea { resize: vertical; min-height: 140px; }
.form-note { font-size: 0.85rem; color: var(--muted); margin-top: 10px; }
.form-success {
  display: none;
  background: #e9ffd6;
  color: #2e6c0b;
  border: 1px solid #b7e38d;
  border-radius: 12px;
  padding: 14px 16px;
  font-family: "Archivo", sans-serif;
  font-weight: 700;
  margin-bottom: 16px;
}
.form-success.show { display: block; }

/* ---------- Footer ---------- */
footer {
  background: var(--ink);
  color: rgba(255,255,255,0.75);
  padding: 56px 0 28px;
  margin-top: 80px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
}
footer h4 { color: #fff; font-size: 1rem; margin-bottom: 14px; font-family: "Archivo", sans-serif; }
footer a { color: rgba(255,255,255,0.75); }
footer a:hover { color: var(--lime); }
footer ul { list-style: none; padding: 0; margin: 0; }
footer li { padding: 5px 0; }
.footer-brand .brand { color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  margin-top: 36px; padding-top: 22px;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  font-size: 0.85rem;
}

/* ---------- Page hero (shared for inner pages) ---------- */
.page-hero {
  background: var(--blue);
  color: #fff;
  padding: 90px 0 72px;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.08) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at 30% 50%, #000 30%, transparent 85%);
  -webkit-mask-image: radial-gradient(ellipse at 30% 50%, #000 30%, transparent 85%);
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 { color: #fff; max-width: 18ch; }
.page-hero p { color: rgba(255,255,255,0.9); max-width: 60ch; font-size: 1.1rem; }

/* ---------- Reveal animation ---------- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
.reveal.in {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  section { padding: 72px 0; }
  .hero { padding: 80px 0 90px; }
  .hero-split { grid-template-columns: 1fr; gap: 36px; }
  .grid-3, .steps, .packages, .values { grid-template-columns: 1fr; }
  .grid-2, .compare, .about-hero, .contact-wrap, .case { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute;
    top: 72px; left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    background: #fff;
    border-bottom: 1px solid var(--line);
    padding: 14px 20px;
    gap: 4px;
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-cta { margin: 10px 0 6px; }
  .cta-band { padding: 40px 24px; }
  .form-row { grid-template-columns: 1fr; }
  .case { padding: 24px; }
  .testimonial-card { padding: 32px 24px; }
}
@media (max-width: 520px) {
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-pills .pill { font-size: 0.82rem; padding: 8px 14px; }
}

/* ============================================================
   BLOG
   ============================================================ */

.container-narrow { max-width: 780px; }

/* Controls (search + tags) */
.blog-controls-section { padding: 30px 0 0; }
.blog-controls {
  display: flex;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
  padding: 18px 20px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.blog-search-wrap { flex: 1 1 260px; min-width: 220px; }
.blog-search-wrap input[type="search"] {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  font: inherit;
  color: var(--ink);
  background: var(--bg-soft);
  transition: border-color 180ms var(--ease), background 180ms var(--ease);
}
.blog-search-wrap input[type="search"]:focus {
  outline: none;
  border-color: var(--blue);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(43, 91, 255, 0.1);
}
.blog-tag-filter {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.blog-tag-chip {
  appearance: none;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink-2);
  font: 600 0.82rem/1 'Inter', sans-serif;
  letter-spacing: 0.02em;
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: all 180ms var(--ease);
}
.blog-tag-chip:hover { border-color: var(--blue); color: var(--blue); }
.blog-tag-chip.active {
  background: var(--ink);
  color: var(--lime);
  border-color: var(--ink);
}

/* Loading + empty + no-results */
.blog-loading {
  padding: 60px 20px;
  text-align: center;
  color: var(--muted);
}
.blog-loading-spinner {
  width: 36px;
  height: 36px;
  border: 3px solid var(--line);
  border-top-color: var(--blue);
  border-radius: 50%;
  margin: 0 auto 14px;
  animation: bl-spin 0.8s linear infinite;
}
@keyframes bl-spin { to { transform: rotate(360deg); } }
.blog-empty {
  padding: 60px 28px;
  text-align: center;
  background: var(--bg-soft);
  border: 1px dashed var(--line);
  border-radius: var(--radius-lg);
}
.blog-empty h1, .blog-empty h2 { margin: 10px 0 12px; }
.blog-empty p { color: var(--muted); max-width: 52ch; margin: 0 auto 22px; }
.blog-no-results {
  text-align: center;
  color: var(--muted);
  margin-top: 24px;
}

/* Featured card */
.blog-featured {
  margin-bottom: 44px;
}
.blog-featured-inner {
  display: block;
  padding: 44px;
  border-radius: var(--radius-lg);
  background:
    radial-gradient(ellipse at top right, rgba(198, 240, 96, 0.15), transparent 55%),
    linear-gradient(135deg, var(--ink) 0%, var(--ink-2) 100%);
  color: #fff;
  text-decoration: none;
  box-shadow: var(--shadow);
  transition: transform 240ms var(--ease), box-shadow 240ms var(--ease);
  position: relative;
  overflow: hidden;
}
.blog-featured-inner::after {
  content: "";
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40' viewBox='0 0 40 40'%3E%3Ccircle cx='2' cy='2' r='1' fill='rgba(255,255,255,0.05)'/%3E%3C/svg%3E");
  pointer-events: none;
}
.blog-featured-inner > * { position: relative; z-index: 1; }
.blog-featured-inner:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}
.blog-featured-meta {
  display: flex;
  gap: 18px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 18px;
}
.blog-featured-title {
  font-family: 'Archivo', sans-serif;
  font-size: clamp(1.7rem, 3.2vw, 2.4rem);
  font-weight: 800;
  line-height: 1.12;
  color: #fff;
  margin: 0 0 14px;
  max-width: 30ch;
}
.blog-featured-excerpt {
  font-size: 1.08rem;
  color: rgba(255, 255, 255, 0.82);
  max-width: 60ch;
  margin: 0 0 20px;
}
.blog-featured-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--lime);
  font-weight: 700;
  letter-spacing: 0.02em;
  margin-top: 10px;
}
.blog-featured-cta .arrow {
  transition: transform 200ms var(--ease);
}
.blog-featured-inner:hover .blog-featured-cta .arrow {
  transform: translateX(4px);
}

/* Grid cards */
.blog-grid {
  display: grid;
  gap: 22px;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
}
.blog-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: transform 240ms var(--ease), box-shadow 240ms var(--ease), border-color 240ms var(--ease);
}
.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: #d8ddf1;
}
.blog-card-inner {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 28px;
  color: inherit;
  text-decoration: none;
  height: 100%;
}
.blog-card-meta {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  font-size: 0.82rem;
  color: var(--muted);
}
.blog-card-meta .blog-date { font-weight: 600; color: var(--ink-2); }
.blog-card-meta .blog-author::before { content: "·"; margin-right: 8px; color: var(--muted); }
.blog-card-title {
  font-family: 'Archivo', sans-serif;
  font-size: 1.25rem;
  font-weight: 800;
  line-height: 1.25;
  color: var(--ink);
  margin: 0;
}
.blog-card-excerpt {
  color: var(--ink-2);
  font-size: 0.97rem;
  line-height: 1.55;
  margin: 0;
  /* clamp to 3 lines */
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.blog-card-cta {
  margin-top: auto;
  color: var(--blue);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
}

/* Tags */
.blog-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
}
.blog-tag {
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--ink-2);
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  padding: 4px 10px;
}
.blog-tags.on-blue .blog-tag {
  color: rgba(255, 255, 255, 0.9);
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.2);
}
.blog-date { font-weight: 600; color: var(--ink-2); font-size: 0.85rem; }
.blog-author { color: var(--muted); font-size: 0.85rem; }
.blog-featured .blog-date,
.blog-featured .blog-author { color: rgba(255, 255, 255, 0.75); }

/* ============================================================
   SINGLE POST
   ============================================================ */

.post-wrap { padding-top: 72px; }

.post-article {
  background: #fff;
}
.post-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
  margin-bottom: 24px;
  transition: color 180ms var(--ease);
}
.post-back:hover { color: var(--blue); }

.post-header {
  margin-bottom: 28px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}
.post-meta {
  display: flex;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.post-title {
  font-family: 'Archivo', sans-serif;
  font-size: clamp(2rem, 4.2vw, 3rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 0 0 16px;
}
.post-lede {
  font-size: 1.18rem;
  line-height: 1.55;
  color: var(--ink-2);
  margin: 0 0 14px;
  max-width: 62ch;
}
.post-hero {
  width: 100%;
  height: auto;
  max-height: 460px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  margin: 10px 0 32px;
  box-shadow: var(--shadow);
}

/* Post body (prose) */
.post-body {
  font-size: 1.08rem;
  line-height: 1.72;
  color: var(--ink-2);
}
.post-body > * + * { margin-top: 1.1em; }
.post-body h2 {
  font-family: 'Archivo', sans-serif;
  font-size: 1.55rem;
  font-weight: 800;
  color: var(--ink);
  margin-top: 2em;
  margin-bottom: 0.3em;
  letter-spacing: -0.01em;
  line-height: 1.2;
}
.post-body h3 {
  font-family: 'Archivo', sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--ink);
  margin-top: 1.6em;
  margin-bottom: 0.3em;
  line-height: 1.25;
}
.post-body h4 {
  font-family: 'Archivo', sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--ink);
  margin-top: 1.4em;
  margin-bottom: 0.3em;
}
.post-body p { margin: 0; }
.post-body a {
  color: var(--blue);
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
  transition: color 180ms var(--ease);
}
.post-body a:hover { color: var(--blue-deep); }
.post-body ul, .post-body ol {
  padding-left: 1.5em;
  margin: 1em 0;
}
.post-body ul li, .post-body ol li { margin: 0.4em 0; }
.post-body ul li::marker { color: var(--blue); }
.post-body blockquote {
  border-left: 4px solid var(--lime-deep);
  background: var(--bg-soft);
  padding: 20px 24px;
  margin: 1.4em 0;
  border-radius: 0 var(--radius) var(--radius) 0;
  color: var(--ink);
  font-style: italic;
  font-size: 1.05rem;
  line-height: 1.6;
}
.post-body blockquote p { margin: 0; }
.post-body code {
  font-family: "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: 0.92em;
  background: var(--bg-soft);
  color: var(--ink);
  padding: 2px 6px;
  border-radius: 6px;
  border: 1px solid var(--line);
}
.post-body pre {
  background: var(--ink);
  color: #e9ecff;
  padding: 20px 24px;
  border-radius: var(--radius);
  overflow-x: auto;
  font-size: 0.92rem;
  line-height: 1.55;
  box-shadow: var(--shadow-sm);
}
.post-body pre code {
  background: transparent;
  border: none;
  padding: 0;
  color: inherit;
  font-size: inherit;
}
.post-body img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius);
  margin: 1.4em 0;
}
.post-body hr {
  border: none;
  border-top: 1px solid var(--line);
  margin: 2.4em 0;
}
.post-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.4em 0;
  font-size: 0.96rem;
}
.post-body th, .post-body td {
  border: 1px solid var(--line);
  padding: 10px 14px;
  text-align: left;
}
.post-body th {
  background: var(--bg-soft);
  color: var(--ink);
  font-weight: 700;
}

/* Post CTA + nav */
.post-cta {
  margin-top: 56px;
  padding: 40px 32px;
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue-deep) 100%);
  color: #fff;
  border-radius: var(--radius-lg);
  text-align: center;
  box-shadow: var(--shadow);
}
.post-cta h3 {
  font-family: 'Archivo', sans-serif;
  font-size: 1.6rem;
  color: #fff;
  margin: 6px 0 10px;
}
.post-cta p {
  color: rgba(255, 255, 255, 0.88);
  margin: 0 auto 22px;
  max-width: 48ch;
}

.post-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 44px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.post-nav-link {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--ink);
  background: #fff;
  transition: border-color 200ms var(--ease), transform 200ms var(--ease);
}
.post-nav-link:hover {
  border-color: var(--blue);
  transform: translateY(-2px);
}
.post-nav-next { text-align: right; }
.post-nav-label {
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--muted);
}
.post-nav-title {
  font-family: 'Archivo', sans-serif;
  font-weight: 700;
  color: var(--ink);
  font-size: 1.02rem;
  line-height: 1.3;
}

/* Responsive tweaks */
@media (max-width: 720px) {
  .blog-featured-inner { padding: 30px 24px; }
  .blog-controls { padding: 14px; }
  .post-wrap { padding-top: 48px; }
  .post-nav { grid-template-columns: 1fr; }
  .post-nav-next { text-align: left; }
  .post-cta { padding: 30px 22px; }
}
