/* ============ Tokens ============ */
:root {
  --bg: #ffffff;
  --bg-alt: #f5f6f8;
  --ink: #0a0a0b;
  --ink-2: #23252b;
  --muted: #5b616e;
  --line: #e5e7ec;
  --accent: #2b4bff;
  --accent-ink: #1e34d6;
  --shine: #9db4ff;
  --logo-ink: #161826;
  --logo-tag: #5a5e75;
  --wrap: 1140px;
  --pad: 40px;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-display: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding-left: var(--pad);
  padding-right: var(--pad);
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.05;
  color: var(--ink);
}

a { color: inherit; text-decoration: none; }

/* ============ Brand mark (animated logo) ============ */
.brand {
  display: inline-flex;
  flex-direction: column;
  gap: 6px;
  line-height: 1;
  text-decoration: none;
}
.brand-word {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 20px;
  letter-spacing: 0.02em;
  color: var(--logo-ink);
  white-space: nowrap;
  line-height: 1;
}
.brand-word .dot { color: var(--accent); }
.brand-rule {
  position: relative;
  height: 2px;
  width: 100%;
  overflow: hidden;
}
.brand-rule-fill {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--accent), transparent);
  transform-origin: left;
  animation: brandGrow 5s ease infinite;
}
.brand-rule-shine {
  position: absolute;
  inset: 0;
  width: 25%;
  background: linear-gradient(90deg, transparent, var(--shine), transparent);
  animation: brandSweep 5s ease-in-out infinite;
}
.brand-tag {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 8.5px;
  letter-spacing: 0.5em;
  color: var(--logo-tag);
  line-height: 1;
}
.brand-footer .brand-word { font-size: 22px; }
.brand-footer .brand-tag { font-size: 9px; }
@keyframes brandGrow {
  0%, 8% { transform: scaleX(0); }
  30%, 100% { transform: scaleX(1); }
}
@keyframes brandSweep {
  0%, 55% { transform: translateX(-100%); }
  85%, 100% { transform: translateX(400%); }
}
@media (prefers-reduced-motion: reduce) {
  .brand-rule-fill { animation: none; transform: scaleX(1); }
  .brand-rule-shine { animation: none; opacity: 0; }
}

/* ============ Nav ============ */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,0.86);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 78px;
}
.nav-links { display: flex; align-items: center; gap: 34px; }
.nav-links a:not(.btn) {
  font-size: 15px;
  font-weight: 500;
  color: var(--ink-2);
  transition: color .15s ease;
}
.nav-links a:not(.btn):hover { color: var(--accent); }

/* ============ Buttons ============ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15px;
  padding: 14px 26px;
  background: var(--ink);
  color: #fff;
  border-radius: 4px;
  border: 1px solid var(--ink);
  transition: background .15s ease, color .15s ease, transform .15s ease;
}
.btn:hover { background: var(--accent); border-color: var(--accent); }
.btn-sm { padding: 10px 20px; font-size: 14px; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { background: transparent; color: var(--accent); border-color: var(--accent); }
.btn-light { background: #fff; color: var(--ink); border-color: #fff; }
.btn-light:hover { background: var(--accent); color: #fff; border-color: var(--accent); }

/* ============ Eyebrow ============ */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 26px;
}
.eyebrow .tick {
  width: 9px; height: 9px;
  background: var(--accent);
  display: inline-block;
}
.eyebrow-light { color: rgba(255,255,255,0.7); }

/* ============ Hero ============ */
.hero {
  padding: 130px 0 120px;
  border-bottom: 1px solid var(--line);
}
.hero-title {
  font-size: clamp(44px, 7vw, 88px);
  font-weight: 600;
  letter-spacing: -0.035em;
  max-width: 15ch;
}
.lede {
  font-size: clamp(18px, 2.1vw, 22px);
  color: var(--muted);
  max-width: 56ch;
  margin-top: 32px;
  line-height: 1.55;
}
.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 44px;
}

/* ============ Band ============ */
.band {
  padding: 70px 0;
  border-bottom: 1px solid var(--line);
  background: var(--bg-alt);
}
.band-grid {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 48px;
  align-items: start;
}
.band-label {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink);
  padding-top: 6px;
}
.band-text {
  font-size: clamp(19px, 2.3vw, 26px);
  line-height: 1.45;
  color: var(--ink-2);
  letter-spacing: -0.01em;
  max-width: 40ch;
}

/* ============ Sections ============ */
.section { padding: 118px 0; }
.section-alt { background: var(--bg-alt); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 640px; margin-bottom: 64px; }
.section-head h2, .approach-left h2, .cta-copy h2 {
  font-size: clamp(32px, 4.4vw, 52px);
  letter-spacing: -0.03em;
}
.section-intro {
  font-size: 18px;
  color: var(--muted);
  margin-top: 22px;
  max-width: 54ch;
  line-height: 1.6;
}

/* ============ Services ============ */
.services {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.service {
  padding: 48px 44px 52px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--bg);
  transition: background .18s ease;
}
.service:hover { background: var(--bg-alt); }
.service-no {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 0.1em;
  color: var(--accent);
}
.service h3 {
  font-size: 25px;
  margin: 18px 0 14px;
}
.service p { color: var(--muted); font-size: 16.5px; max-width: 44ch; }

/* ============ Approach ============ */
.approach-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}
.approach-right {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px 44px;
}
.point h4 {
  font-size: 18px;
  margin-bottom: 10px;
  padding-top: 18px;
  border-top: 2px solid var(--ink);
  display: inline-block;
}
.point p { color: var(--muted); font-size: 16px; }

/* ============ Process / steps ============ */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 2px solid var(--ink);
}
.step { padding: 32px 30px 40px 0; position: relative; }
.step + .step { padding-left: 30px; border-left: 1px solid var(--line); }
.step-no {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}
.step h3 { font-size: 23px; margin: 14px 0 12px; }
.step p { color: var(--muted); font-size: 15.5px; }

/* ============ CTA ============ */
.cta { background: var(--ink); color: #fff; padding: 110px 0; }
.cta-inner {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 70px;
  align-items: start;
}
.cta-copy h2 { color: #fff; }
.cta .section-intro { color: rgba(255,255,255,0.66); }
.cta-copy .btn-light { margin-top: 36px; }
.cta-facts { list-style: none; }
.cta-facts li {
  padding: 22px 0;
  border-top: 1px solid rgba(255,255,255,0.16);
  font-size: 17px;
  color: #fff;
}
.cta-facts li:last-child { border-bottom: 1px solid rgba(255,255,255,0.16); }
.cta-facts li span {
  display: block;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  margin-bottom: 6px;
}

/* ============ Footer ============ */
.footer { padding: 56px 0; border-top: 1px solid var(--line); }
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
}
.footer-links { display: flex; gap: 28px; }
.footer-links a { font-size: 15px; color: var(--muted); }
.footer-links a:hover { color: var(--accent); }
.footer-note { font-size: 14px; color: var(--muted); width: 100%; padding-top: 8px; }

/* ============ Hero meta line ============ */
.hero-meta {
  margin-top: 34px;
  font-size: 14px;
  letter-spacing: 0.04em;
  color: var(--muted);
  font-weight: 500;
}

/* ============ CTA link ============ */
.cta-link {
  color: #fff;
  border-bottom: 1px solid rgba(255,255,255,0.4);
  padding-bottom: 1px;
  transition: color .15s ease, border-color .15s ease;
}
.cta-link:hover { color: #fff; border-color: #fff; }

/* ============ FAQ ============ */
.faq {
  border-top: 1px solid var(--line);
  max-width: 860px;
}
.faq-item {
  border-bottom: 1px solid var(--line);
  padding: 4px 0;
}
.faq-item summary {
  list-style: none;
  cursor: pointer;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 20px;
  letter-spacing: -0.01em;
  color: var(--ink);
  padding: 26px 40px 26px 0;
  position: relative;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 4px;
  top: 24px;
  font-size: 24px;
  font-weight: 400;
  color: var(--accent);
  transition: transform .2s ease;
}
.faq-item[open] summary::after { content: "\2013"; }
.faq-item p {
  color: var(--muted);
  font-size: 16.5px;
  max-width: 68ch;
  padding: 0 40px 28px 0;
  margin-top: -6px;
}

/* ============ Contact page ============ */
.contact-hero { padding: 72px 0 110px; }
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: start;
}
.contact-title {
  font-size: clamp(34px, 4.4vw, 54px);
  letter-spacing: -0.03em;
  margin-top: 6px;
}
.contact-intro .lede { margin-top: 26px; }
.contact-points {
  list-style: none;
  margin-top: 40px;
  border-top: 1px solid var(--line);
}
.contact-points li {
  display: flex;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink-2);
  font-size: 16px;
}
.contact-points li span {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 13px;
  color: var(--accent);
  padding-top: 2px;
  min-width: 22px;
}

/* ============ Form ============ */
.contact-form-wrap {
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 40px;
}
.contact-form { display: flex; flex-direction: column; gap: 22px; }
.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}
.field { display: flex; flex-direction: column; }
.field label {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 9px;
}
.field .req { color: var(--accent); }
.field input,
.field select,
.field textarea {
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 13px 14px;
  width: 100%;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field textarea { resize: vertical; min-height: 120px; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(42,51,255,0.14);
}
.field select { appearance: none; -webkit-appearance: none; background-image: none; cursor: pointer; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.btn-submit { width: 100%; padding: 16px; font-size: 16px; margin-top: 4px; }
.btn-submit:disabled { opacity: 0.6; cursor: not-allowed; }
.form-note { font-size: 14.5px; margin-top: 2px; min-height: 1px; }
.form-note.is-error { color: #c02626; }
.form-note.is-success { color: #157a3d; }

/* ============ Responsive ============ */
@media (max-width: 900px) {
  :root { --pad: 24px; }
  .nav-links { gap: 20px; }
  .nav-links a:not(.btn) { display: none; }
  .band-grid { grid-template-columns: 1fr; gap: 20px; }
  .services { grid-template-columns: 1fr; }
  .approach-grid { grid-template-columns: 1fr; gap: 44px; }
  .steps { grid-template-columns: 1fr 1fr; border-top: none; }
  .step, .step + .step { border-left: none; border-top: 2px solid var(--ink); padding: 26px 0 34px; }
  .cta-inner { grid-template-columns: 1fr; gap: 44px; }
  .contact-grid { grid-template-columns: 1fr; gap: 44px; }
}

@media (max-width: 560px) {
  .hero { padding: 84px 0 76px; }
  .section { padding: 76px 0; }
  .approach-right { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .hero-cta .btn { flex: 1; }
  .field-row { grid-template-columns: 1fr; }
  .contact-form-wrap { padding: 26px; }
}

/* ============ Service pages ============ */
.page-hero { padding: 92px 0 72px; border-bottom: 1px solid var(--line); }
.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(36px, 5.4vw, 62px);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.05;
  max-width: 20ch;
}
.crumbs { font-size: 14px; color: var(--muted); margin-bottom: 26px; }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--accent); }

.svc-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.svc-item h3 {
  font-size: 19px;
  margin-bottom: 10px;
  padding-top: 18px;
  border-top: 2px solid var(--ink);
}
.svc-item p { color: var(--muted); font-size: 15.5px; }

.prose { max-width: 720px; }
.prose h2 {
  font-size: clamp(26px, 3.4vw, 36px);
  letter-spacing: -0.025em;
  margin: 52px 0 18px;
}
.prose h3 { font-size: 21px; margin: 36px 0 12px; }
.prose p { font-size: 17px; color: var(--ink-2); line-height: 1.7; margin-bottom: 18px; }
.prose ul, .prose ol { margin: 0 0 18px 22px; }
.prose li { font-size: 17px; color: var(--ink-2); line-height: 1.65; margin-bottom: 8px; }
.prose strong { color: var(--ink); }
.prose a { color: var(--accent); border-bottom: 1px solid rgba(43,75,255,0.3); }
.prose a:hover { border-color: var(--accent); }
.prose blockquote {
  border-left: 3px solid var(--accent);
  padding: 4px 0 4px 20px;
  margin: 26px 0;
  color: var(--muted);
  font-size: 18px;
}

/* ============ Blog ============ */
.post-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.post-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 30px 28px;
  display: flex;
  flex-direction: column;
  transition: border-color .15s ease, box-shadow .15s ease;
  background: #fff;
}
.post-card:hover { border-color: var(--accent); box-shadow: 0 8px 28px rgba(43,75,255,0.08); }
.post-card .tag {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}
.post-card h3 { font-size: 21px; line-height: 1.25; margin-bottom: 12px; }
.post-card p { color: var(--muted); font-size: 15px; flex: 1; }
.post-card .more { margin-top: 18px; font-size: 14.5px; font-weight: 600; color: var(--accent); }

.article-head { padding: 72px 0 44px; }
.article-head h1 {
  font-family: var(--font-display);
  font-size: clamp(32px, 4.6vw, 50px);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.08;
  max-width: 24ch;
}
.article-meta { font-size: 14.5px; color: var(--muted); margin-top: 18px; }
.article-body { padding: 12px 0 90px; }

/* ============ Founders ============ */
.founders { background: var(--ink); color: #fff; }
.founders .eyebrow { color: rgba(255,255,255,0.7); }
.founders h2 { color: #fff; }
.founders .section-intro { color: rgba(255,255,255,0.72); }
.founder-points { display: grid; grid-template-columns: 1fr 1fr; gap: 36px 44px; margin-top: 12px; }
.founder-points .point h4 { color: #fff; border-top-color: var(--accent); }
.founder-points .point p { color: rgba(255,255,255,0.65); }

@media (max-width: 900px) {
  .svc-grid, .post-grid { grid-template-columns: 1fr; }
  .founder-points { grid-template-columns: 1fr; }
}

/* ============ Nav dropdowns ============ */
.nav-drop { position: relative; }
.nav-drop > span {
  font-size: 15px;
  font-weight: 500;
  color: var(--ink-2);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 26px 0;
}
.nav-drop > span::after {
  content: "";
  width: 7px; height: 7px;
  border-right: 1.5px solid var(--muted);
  border-bottom: 1.5px solid var(--muted);
  transform: rotate(45deg) translateY(-2px);
  transition: transform .15s ease;
}
.nav-drop:hover > span { color: var(--accent); }
.nav-drop-menu {
  position: absolute;
  top: 100%;
  left: -18px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 16px 40px rgba(20,22,38,0.12);
  padding: 8px 0;
  min-width: 240px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity .15s ease, transform .15s ease, visibility .15s;
  z-index: 60;
}
.nav-drop:hover .nav-drop-menu,
.nav-drop:focus-within .nav-drop-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.nav-drop-menu a {
  display: block;
  padding: 10px 20px;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--ink-2);
}
.nav-drop-menu a:hover { color: var(--accent); background: var(--bg-alt); }

/* ============ Footer columns ============ */
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr;
  gap: 48px;
  align-items: start;
}
.footer-col h5 {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 16px;
}
.footer-col a {
  display: block;
  font-size: 15px;
  color: var(--ink-2);
  padding: 5px 0;
}
.footer-col a:hover { color: var(--accent); }
.footer-bottom {
  margin-top: 44px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-size: 14px;
  color: var(--muted);
}

@media (max-width: 900px) {
  .nav-links > *:not(.btn) { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}

/* ============ Lead calculator (site version) ============ */
.lcalc-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 36px; align-items: start; }
.lcalc-panel { border: 1px solid var(--line); border-radius: 10px; background: #fff; padding: 30px 32px; }
.lcalc-ctl { padding: 16px 0; border-bottom: 1px solid var(--line); }
.lcalc-ctl:first-child { padding-top: 2px; }
.lcalc-ctl:last-child { border-bottom: none; padding-bottom: 2px; }
.lcalc-row { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 12px; }
.lcalc-ctl label { font-size: 15px; font-weight: 600; color: var(--ink); }
.lcalc-val { font-size: 19px; font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; }
.lcalc-note { font-size: 13px; color: var(--muted); margin-top: 10px; line-height: 1.45; }
.lcalc-note b { color: var(--ink-2); font-weight: 600; }
.lcalc input[type=range] {
  -webkit-appearance: none; appearance: none; width: 100%; height: 4px; border-radius: 2px;
  background: linear-gradient(90deg, var(--accent) var(--fill,50%), var(--line) var(--fill,50%));
  outline: none; cursor: pointer; display: block;
}
.lcalc input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none; width: 18px; height: 18px; border-radius: 50%;
  background: #fff; border: 3px solid var(--accent); box-shadow: 0 2px 6px rgba(20,22,38,0.18);
}
.lcalc input[type=range]::-moz-range-thumb { width: 18px; height: 18px; border-radius: 50%; background: #fff; border: 3px solid var(--accent); }
.lcalc-out { display: flex; flex-direction: column; gap: 12px; }
.lcalc-stat { border: 1px solid var(--line); border-radius: 10px; background: #fff; padding: 18px 22px; display: flex; justify-content: space-between; align-items: center; }
.lcalc-stat .l { font-size: 14px; color: var(--muted); }
.lcalc-stat .n { font-size: 26px; font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
.lcalc-stat.hero { background: var(--ink); border-color: var(--ink); flex-direction: column; align-items: flex-start; gap: 4px; padding: 22px; }
.lcalc-stat.hero .l { color: var(--accent); font-size: 12px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; }
.lcalc-stat.hero .l { color: #9db4ff; }
.lcalc-stat.hero .n { font-size: 40px; color: #fff; }
.lcalc-stat.hero .s { font-size: 13px; color: rgba(255,255,255,0.6); }
.lcalc-fine { font-size: 13px; color: var(--muted); margin-top: 20px; line-height: 1.5; }
@media (max-width: 900px) { .lcalc-grid { grid-template-columns: 1fr; } }
