/* ============ Design tokens ============ */
:root {
  --ink: #101828;
  --ink-2: #344054;
  --muted: #475467;
  --faint: #667085;
  --line: #e4e7ec;
  --bg: #ffffff;
  --tint: #f8fafc;
  --brand: #175cd3;
  --brand-dark: #1849a9;
  --brand-tint: #eff4ff;
  --navy: #0b1d3a;
  --radius: 12px;
  --shadow-sm: 0 1px 2px rgba(16, 24, 40, 0.05);
  --shadow-md: 0 4px 16px rgba(16, 24, 40, 0.08);
  --container: 1140px;
  --font-head: "Sora", "Inter", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--ink-2);
  background: var(--bg);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.container-narrow { max-width: 780px; }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--ink);
  line-height: 1.18;
  letter-spacing: -0.015em;
}
h1 { font-size: clamp(2.1rem, 4.6vw, 3.15rem); font-weight: 700; }
h2 { font-size: clamp(1.55rem, 3vw, 2.15rem); font-weight: 700; }
h3 { font-size: 1.13rem; font-weight: 600; }

a { color: var(--brand); }

/* ============ Buttons ============ */
.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border-radius: 8px;
  padding: 11px 22px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-dark); }
.btn-outline { background: #fff; color: var(--ink); border-color: var(--line); }
.btn-outline:hover { border-color: var(--faint); }
.btn-lg { padding: 14px 28px; font-size: 1rem; }
.btn-nav { padding: 9px 18px; font-size: 0.9rem; }
.btn-block { width: 100%; }

/* ============ Header ============ */
.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 { display: flex; align-items: center; justify-content: space-between; height: 72px; }

.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-mark { width: 34px; height: 34px; }
.brand-name {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.06rem;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.brand-sub { color: var(--brand); }

.nav-links { display: flex; align-items: center; gap: 30px; list-style: none; }
.nav-links a:not(.btn) {
  color: var(--ink-2);
  text-decoration: none;
  font-size: 0.94rem;
  font-weight: 500;
}
.nav-links a:not(.btn):hover { color: var(--brand); }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-toggle span { width: 22px; height: 2px; background: var(--ink); border-radius: 2px; }

/* ============ Hero ============ */
.hero {
  background:
    radial-gradient(ellipse 70% 60% at 85% -10%, rgba(23, 92, 211, 0.07), transparent),
    linear-gradient(#fff, #fbfcfe);
  border-bottom: 1px solid var(--line);
  padding: 84px 0 88px;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 64px;
  align-items: center;
}
.lead {
  font-size: 1.14rem;
  color: var(--muted);
  margin: 22px 0 30px;
  max-width: 36rem;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-note { margin-top: 16px; font-size: 0.86rem; color: var(--faint); }

.hero-panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  padding: 30px;
}
.panel-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.panel-stat strong {
  display: block;
  font-family: var(--font-head);
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--brand);
}
.panel-stat span { font-size: 0.84rem; color: var(--faint); line-height: 1.45; display: block; margin-top: 4px; }
.panel-divider { height: 1px; background: var(--line); margin: 22px 0; }
.panel-list { list-style: none; }
.panel-list li {
  position: relative;
  padding: 7px 0 7px 26px;
  font-size: 0.93rem;
  color: var(--ink-2);
  font-weight: 500;
}
.panel-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 13px;
  width: 15px;
  height: 15px;
  background: var(--brand-tint);
  border-radius: 50%;
}
.panel-list li::after {
  content: "";
  position: absolute;
  left: 4px;
  top: 17px;
  width: 7px;
  height: 4px;
  border-left: 2px solid var(--brand);
  border-bottom: 2px solid var(--brand);
  transform: rotate(-45deg);
}

/* ============ Capability bar ============ */
.cap-bar { padding: 22px 0; border-bottom: 1px solid var(--line); background: #fff; }
.cap-inner { display: flex; align-items: center; gap: 26px; flex-wrap: wrap; }
.cap-label {
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--faint);
  white-space: nowrap;
}
.cap-list { display: flex; gap: 10px 24px; flex-wrap: wrap; list-style: none; }
.cap-list li {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.92rem;
  color: #98a2b3;
}

/* ============ Sections ============ */
.section { padding: 92px 0; }
.section-tint { background: var(--tint); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.section-head { max-width: 620px; margin-bottom: 52px; }
.kicker {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--brand);
  margin-bottom: 12px;
}
.section-sub { color: var(--muted); margin-top: 14px; }

/* ============ Services ============ */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.svc {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 28px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}
.svc:hover { box-shadow: var(--shadow-md); border-color: #d0d9e8; }
.svc-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--brand-tint);
  color: var(--brand);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}
.svc-icon svg { width: 23px; height: 23px; }
.svc h3 { margin-bottom: 10px; }
.svc > p { font-size: 0.93rem; color: var(--muted); margin-bottom: 16px; }
.svc-points { list-style: none; border-top: 1px solid var(--line); padding-top: 14px; }
.svc-points li {
  position: relative;
  padding: 3px 0 3px 18px;
  font-size: 0.88rem;
  color: var(--ink-2);
}
.svc-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 12px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand);
}

/* ============ Case studies ============ */
.cases { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.case {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 28px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
}
.case-tag {
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--brand);
  margin-bottom: 12px;
}
.case h3 { margin-bottom: 12px; font-size: 1.08rem; }
.case > p { font-size: 0.92rem; color: var(--muted); flex: 1; }
.case-results {
  list-style: none;
  margin-top: 20px;
  border-top: 1px solid var(--line);
  padding-top: 16px;
  display: grid;
  gap: 8px;
}
.case-results li { font-size: 0.88rem; color: var(--ink-2); }
.case-results strong {
  font-family: var(--font-head);
  color: var(--ink);
  font-weight: 700;
  margin-right: 6px;
}

/* ============ Engagement models ============ */
.models { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: stretch; }
.model {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px 28px;
  box-shadow: var(--shadow-sm);
  position: relative;
}
.model-featured { border-color: var(--brand); box-shadow: var(--shadow-md); }
.model-badge {
  position: absolute;
  top: -12px;
  left: 28px;
  background: var(--brand);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 3px 12px;
  border-radius: 999px;
}
.model h3 { margin-bottom: 8px; }
.model-for { font-size: 0.85rem; font-weight: 600; color: var(--brand-dark); margin-bottom: 12px; }
.model p:last-child { font-size: 0.93rem; color: var(--muted); }

/* ============ Process ============ */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  list-style: none;
  counter-reset: step;
}
.steps li { display: flex; gap: 16px; align-items: flex-start; }
.step-num {
  flex: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.steps h3 { font-size: 1rem; margin-bottom: 6px; }
.steps p { font-size: 0.89rem; color: var(--muted); }

/* ============ FAQ ============ */
.faq-list { display: grid; gap: 12px; }
.faq-list details {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0 22px;
  box-shadow: var(--shadow-sm);
}
.faq-list summary {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.99rem;
  color: var(--ink);
  padding: 18px 0;
  cursor: pointer;
  list-style: none;
  position: relative;
  padding-right: 32px;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: "+";
  position: absolute;
  right: 2px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.3rem;
  font-weight: 400;
  color: var(--faint);
}
.faq-list details[open] summary::after { content: "–"; }
.faq-list details p { padding: 0 0 20px; font-size: 0.94rem; color: var(--muted); }

/* ============ Contact ============ */
.section-contact {
  background:
    radial-gradient(ellipse 60% 80% at 15% 0%, rgba(23, 92, 211, 0.25), transparent),
    var(--navy);
}
.section-contact h2 { color: #fff; }
.kicker-light { color: #93b4f5; }
.contact-sub { color: #b9c6dd; margin-top: 14px; max-width: 30rem; }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 0.9fr;
  gap: 64px;
  align-items: start;
}
.contact-lines { list-style: none; margin-top: 32px; display: grid; gap: 16px; }
.contact-lines li { display: grid; grid-template-columns: 72px 1fr; gap: 16px; align-items: baseline; }
.contact-label {
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #8296b8;
}
.contact-lines a { color: #fff; text-decoration: none; font-weight: 600; font-size: 1.02rem; }
.contact-lines a:hover { text-decoration: underline; }
.contact-lines span:not(.contact-label) { color: #d4ddeb; }

.contact-form {
  background: #fff;
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: var(--shadow-md);
  display: grid;
  gap: 16px;
}
.contact-form label {
  display: grid;
  gap: 6px;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--ink-2);
}
.contact-form input,
.contact-form textarea {
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--ink);
  padding: 11px 13px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  resize: vertical;
}
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(23, 92, 211, 0.14);
}
.form-note { font-size: 0.8rem; color: var(--faint); text-align: center; }

/* ============ Footer ============ */
.site-footer { background: #fff; border-top: 1px solid var(--line); padding: 56px 0 0; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 40px;
  padding-bottom: 44px;
}
.footer-brand p { margin-top: 14px; font-size: 0.9rem; color: var(--faint); }
.footer-col h4 {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--faint);
  margin-bottom: 14px;
  font-weight: 600;
}
.footer-col a {
  display: block;
  color: var(--ink-2);
  text-decoration: none;
  font-size: 0.92rem;
  padding: 4px 0;
}
.footer-col a:hover { color: var(--brand); }
.footer-bottom { border-top: 1px solid var(--line); padding: 20px 24px; }
.footer-bottom p { font-size: 0.85rem; color: var(--faint); }

/* ============ Reveal animation ============ */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.5s ease, transform 0.5s ease; }
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ============ Responsive ============ */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .services-grid, .cases, .models { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; gap: 44px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .section { padding: 64px 0; }
  .hero { padding: 56px 0 64px; }
  .services-grid, .cases, .models, .steps { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }

  .nav-toggle { display: flex; }
  .nav-links {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    background: #fff;
    border-bottom: 1px solid var(--line);
    padding: 20px 24px;
    gap: 16px;
    box-shadow: var(--shadow-md);
  }
  .nav-links.open { display: flex; }
}
