/* Shared styles for inner pages (/services, /services/*). The homepage keeps its
   own inline <style>; tokens, nav, buttons and footer below mirror it. */
:root {
  --bg: #090d17;
  --bg-2: #0f1524;
  --border: #1c2436;
  --text: #f3f5fb;
  --muted: #94a0b8;
  --muted-2: #6f7a92;
  --accent: #e9ecf6;
  --brand: #8b75ec;
  --brand-2: #8fc6f0;
  --grad: linear-gradient(140deg, #7c5ce6, #8a7cf0 45%, #8fc6f0);
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', -apple-system, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { font-weight: 500; line-height: 1.15; letter-spacing: -0.02em; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }
.container { max-width: 1240px; margin: 0 auto; padding: 0 32px; }
.narrow { max-width: 860px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  color: #0a0a0a;
  font-size: 15px;
  font-weight: 500;
  padding: 14px 28px;
  border-radius: 8px;
  border: 1px solid transparent;
  background: linear-gradient(var(--accent), var(--accent)) padding-box, var(--grad) border-box;
  box-shadow: 0 0 18px rgba(139, 117, 236, 0.35);
  transition: box-shadow 0.3s ease;
}
.btn:hover { box-shadow: 0 0 28px rgba(139, 117, 236, 0.6); }

/* ---------- Nav ---------- */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(10,10,10,0.8);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
nav .container { max-width: none; padding: 0 40px; }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.wordmark img { height: 34px; width: auto; display: block; }
.nav-links { display: flex; align-items: center; gap: 34px; list-style: none; }
.nav-links a { position: relative; font-size: 16.5px; font-weight: 500; }
.nav-links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 1px;
  background: var(--brand); transform: scaleX(0); transition: transform 0.25s ease;
}
.nav-links a:hover::after, .nav-links a[aria-current]::after { transform: scaleX(1); }
.nav-links-cta { display: none; }
.nav-right { display: flex; align-items: center; gap: 14px; }
.nav-talk {
  font-size: 15.5px; font-weight: 500; color: var(--accent);
  padding: 9px 22px; border-radius: 10px; border: 1px solid transparent;
  background: linear-gradient(var(--bg-2), var(--bg-2)) padding-box, var(--grad) border-box;
  box-shadow: 0 0 18px rgba(139, 117, 236, 0.35);
  white-space: nowrap; transition: box-shadow 0.3s ease, color 0.25s ease;
}
.nav-talk:hover { box-shadow: 0 0 28px rgba(139, 117, 236, 0.6); color: #fff; }
.nav-toggle {
  display: none; width: 38px; height: 38px; padding: 10px 8px;
  flex-direction: column; justify-content: space-between;
  background: none; border: 0; cursor: pointer;
}
.nav-toggle span { display: block; height: 1.5px; background: var(--text); border-radius: 2px; transition: transform 0.3s, opacity 0.2s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7.25px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7.25px) rotate(-45deg); }
@media (max-width: 860px) {
  .nav-toggle { display: flex; }
  .nav-right .nav-talk { display: none; }
  nav .container { padding: 0 20px; }
  .nav-links {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 8px 20px 24px;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity 0.25s, transform 0.25s, visibility 0.25s;
  }
  nav.open .nav-links { opacity: 1; visibility: visible; transform: none; }
  .nav-links li { border-top: 1px solid var(--border); }
  .nav-links li:first-child { border-top: 0; }
  .nav-links a { display: block; padding: 16px 0; font-size: 16px; }
  .nav-links a::after { display: none; }
  .nav-links-cta { display: block; border-top: 0 !important; padding-top: 18px; }
  .nav-links-cta .nav-talk { display: block; text-align: center; padding: 14px 20px; }
}

/* ---------- Page header ---------- */
.page-head {
  padding: 150px 0 72px;
  background-image: radial-gradient(900px 420px at 50% 0%, rgba(124,92,230,0.14), transparent 70%);
  background-repeat: no-repeat;
}
.crumbs { font-size: 14px; color: var(--muted-2); margin-bottom: 28px; }
.crumbs a:hover { color: var(--accent); }
.crumbs span { margin: 0 8px; }
.eyebrow {
  display: block; font-size: 15px; font-weight: 500; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--muted); margin-bottom: 18px;
}
.page-head h1 { font-size: clamp(30px, 3.8vw, 44px); max-width: 1120px; margin-bottom: 22px; white-space: nowrap; }
@media (max-width: 720px) { .page-head h1 { white-space: normal; } }
.lede { color: var(--muted); font-size: clamp(18px, 1.8vw, 22px); max-width: 1040px; }
.method-name {
  font-family: 'Jost', sans-serif; font-weight: 500;
  font-size: clamp(19px, 2.2vw, 25px); letter-spacing: -0.01em; margin-bottom: 14px;
  width: fit-content;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.page-head .btn { margin-top: 36px; }

/* ---------- Content sections ---------- */
.block { padding: 72px 0; border-top: 1px solid var(--border); }
.block h2 { font-size: clamp(26px, 3.4vw, 38px); margin-bottom: 18px; }
.block > .container > p, .prose p { color: var(--muted); font-size: 17px; max-width: 760px; margin-bottom: 16px; }
.prose strong { color: var(--text); font-weight: 500; }

.grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-top: 36px; }
.grid.three { grid-template-columns: repeat(3, 1fr); }
.tile {
  background: var(--bg-2); border: 1px solid var(--border); border-radius: 14px;
  padding: 28px; display: flex; flex-direction: column; gap: 10px;
  transition: border-color 0.25s, box-shadow 0.25s;
}
.tile:hover { border-color: #3a3368; box-shadow: 0 0 24px rgba(139, 117, 236, 0.18); }
.tile .tag { font-size: 15px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: #d9ad5c; }
.ub-after .tile .tag::before { counter-increment: svc; content: counter(svc) ". "; }
.tile h3 { font-size: 18px; }
.tile p { color: var(--muted); font-size: 15.5px; }
.tile .metric {
  margin-top: auto; align-self: flex-start;
  font-size: 13px; font-weight: 500; color: var(--brand);
  background: rgba(124,92,230,0.08); padding: 6px 12px; border-radius: 100px;
}
.tile .more { font-size: 14.5px; color: var(--accent); margin-top: 6px; }
a.tile:hover .more { color: #fff; }
.tile-detail { margin-top: 6px; display: flex; flex-direction: column; gap: 8px; }
.tile-detail h4 {
  font-size: 12.5px; font-weight: 500; letter-spacing: 0.07em; text-transform: uppercase;
  color: var(--muted-2); margin-top: 6px;
}
.tile-detail ul { list-style: none; display: flex; flex-direction: column; gap: 6px; }
.tile-detail li {
  position: relative; padding-left: 18px; color: var(--muted); font-size: 14.5px; line-height: 1.5;
}
.tile-detail li::before {
  content: ""; position: absolute; left: 2px; top: 9px; width: 5px; height: 5px;
  border-radius: 50%; background: var(--brand);
}

/* automation motion banner (JS-driven composition, before "What we build") */
.ub-band { padding: 0 0 8px; }
.ub-after { border-top: none; counter-reset: svc; }

/* "Most popular" badge on the AI Consulting card (mirrors the home page) */
.tile-pop { position: relative; }
.tile[id] { scroll-margin-top: 96px; }  /* clear the fixed nav when deep-linked from home */
.badge-popular {
  display: inline-flex; align-items: center; gap: 5px; align-self: flex-start;
  font-size: 12px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--brand-2); white-space: nowrap; padding: 4px 11px;
  border: 1px solid rgba(143,198,240,0.42); border-radius: 100px;
}
.badge-popular svg { width: 13px; height: 13px; flex-shrink: 0; color: #d9ad5c; }
@media (min-width: 640px) {
  .tile-pop .badge-popular { position: absolute; top: 28px; right: 28px; align-self: auto; }
}
.ub-banner {
  position: relative; width: 100%; max-width: 1040px; margin: 0 auto;
  aspect-ratio: 16 / 9; overflow: hidden;
  border: none; border-radius: 0; background: transparent;
}
@media (max-width: 560px) { .ub-band { padding: 0 0 4px; } }

/* numbered steps */
.steps { list-style: none; counter-reset: s; margin-top: 36px; display: grid; gap: 14px; }
.steps li {
  counter-increment: s; position: relative; padding: 22px 24px 22px 76px;
  background: var(--bg-2); border: 1px solid var(--border); border-radius: 12px;
}
.steps li::before {
  content: counter(s, decimal-leading-zero); position: absolute; left: 24px; top: 22px;
  font-family: 'Jost', sans-serif; font-size: 20px; color: var(--brand);
}
.steps h3 { font-size: 18px; margin-bottom: 4px; }
.steps p { color: var(--muted); font-size: 15.5px; }
.steps .time { color: var(--muted-2); font-size: 13.5px; margin-left: 8px; font-weight: 400; }

/* case study */
.case {
  margin-top: 36px; padding: 32px; border-radius: 14px; border: 1px solid transparent;
  background: linear-gradient(var(--bg-2), var(--bg-2)) padding-box, var(--grad) border-box;
}
.case .tag { font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--brand-2); }
.case h3 { font-size: 22px; margin: 8px 0 12px; }
.case p { color: var(--muted); font-size: 16px; max-width: 760px; }
.case .result { color: var(--accent); margin-top: 14px; font-size: 15.5px; }

/* FAQ */
.faq { margin-top: 28px; max-width: 860px; }
.faq details { border-bottom: 1px solid var(--border); }
.faq summary {
  cursor: pointer; list-style: none; padding: 22px 36px 22px 0; position: relative;
  font-size: 18px; font-weight: 500;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 4px; top: 18px; font-size: 24px; color: var(--brand);
  transition: transform 0.25s;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--muted); font-size: 16px; padding: 0 0 22px; max-width: 780px; }

/* closing CTA */
.cta {
  text-align: center; padding: 96px 0 110px; border-top: 1px solid var(--border);
  background-image: radial-gradient(760px 440px at 50% 100%, rgba(124,92,230,0.13), transparent 72%);
  background-repeat: no-repeat; background-position: bottom center;
}
.cta h2 { font-size: clamp(30px, 4.6vw, 48px); }
.cta p { color: var(--muted); font-size: 17px; max-width: 620px; margin: 16px auto 0; }
.cta .btn { margin-top: 32px; }

/* ---------- Footer ---------- */
footer { border-top: 1px solid var(--border); padding: 16px 0 14px; }
.footer-inner {
  display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; align-items: center;
  font-size: 13px; color: var(--muted-2);
}
.footer-inner a:hover { color: var(--accent); }
.footer-left { display: flex; flex-direction: column; align-items: flex-start; gap: 5px; }
.footer-brand img { height: 22px; width: auto; display: block; }
.footer-contact { display: flex; flex-direction: column; align-items: flex-end; gap: 5px; order: 2; }
.footer-wa { display: inline-flex; align-items: center; gap: 7px; }
.footer-wa svg { width: 15px; height: 15px; }
.footer-copy { order: 1; text-align: center; display: flex; flex-direction: column; gap: 3px; }

/* ---------- About page ---------- */
.page-about .lede { max-width: none; }
.page-about .block > .container > p { max-width: none; }
.subhead { font-size: clamp(19px, 2vw, 24px); font-weight: 500; color: var(--text); margin: 46px 0 20px; }
.founder-grid { display: grid; grid-template-columns: 1fr 1.5fr; gap: 56px; align-items: start; margin-top: 8px; }
.founder-bio { background: var(--bg-2); border: 1px solid var(--border); border-radius: 14px; padding: 32px; }
.founder-bio p { color: var(--muted); font-size: 17px; line-height: 1.7; margin-bottom: 16px; }
.founder-bio p:last-of-type { margin-bottom: 0; }
.founder-bio .lead-p { color: var(--text); font-size: clamp(19px, 1.9vw, 23px); line-height: 1.6; font-weight: 500; }
.founder-bio strong { color: var(--text); font-weight: 500; }
.founder-link { display: inline-flex; align-items: center; gap: 9px; margin-top: 24px; color: var(--brand-2); font-size: 15px; font-weight: 500; }
.founder-link:hover { color: var(--accent); }
.founder-link svg { width: 18px; height: 18px; flex-shrink: 0; }
.founder-profile { display: flex; flex-direction: column; }

.profile-frame {
  position: relative; width: 100%; max-width: 320px; aspect-ratio: 1 / 1;
  border-radius: 16px; overflow: hidden; border: 1px solid var(--border);
  background: radial-gradient(circle at 30% 20%, #1c1a2c, var(--bg-2) 70%);
  display: flex; align-items: center; justify-content: center;
}
.profile-initials { font-size: 64px; font-weight: 500; color: var(--brand); opacity: 0.35; letter-spacing: 0.04em; }
.profile-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block;
  filter: brightness(0.82) contrast(1.05) saturate(0.88); }
.profile-frame::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(9,13,23,0) 42%, rgba(9,13,23,0.55) 100%),
    linear-gradient(135deg, rgba(124,92,230,0.12), transparent 55%);
}
.profile-name { font-size: 23px; font-weight: 500; color: var(--text); margin-top: 24px; }
.profile-title { font-size: 16.5px; font-weight: 600; color: var(--accent); margin-top: 7px; }
.profile-sub { font-size: 15px; color: var(--text); margin-top: 4px; }

.stats { display: flex; flex-direction: column; gap: 22px; margin-top: 28px; }
.stat { border-left: 2px solid var(--brand); padding-left: 20px; }
.stat-num { display: block; font-size: 20px; font-weight: 500; color: var(--text); line-height: 1.2; }
.stat-desc { display: block; color: var(--muted); font-size: 15px; line-height: 1.6; margin-top: 7px; }

.advisor {
  display: grid; grid-template-columns: 200px 1fr; gap: 32px; align-items: start; margin-top: 28px;
  background: var(--bg-2); border: 1px solid var(--border); border-radius: 14px; padding: 28px;
}
.advisor-photo {
  position: relative; width: 100%; aspect-ratio: 1 / 1; border-radius: 12px; overflow: hidden;
  border: 1px solid var(--border); background: radial-gradient(circle at 30% 20%, #1c1a2c, var(--bg-2) 70%);
}
.advisor-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  filter: brightness(0.85) contrast(1.03) saturate(0.9); }
.advisor-body h3 { font-size: 21px; }
.advisor-role { color: var(--accent); font-size: 14.5px; font-weight: 500; margin: 6px 0 14px; }
.advisor-body p { color: var(--muted); font-size: 16px; line-height: 1.7; max-width: 720px; }
.advisor-links { display: flex; gap: 18px; margin-top: 16px; }
.advisor-links a { font-size: 14.5px; color: var(--brand-2); }
.advisor-links a:hover { color: var(--accent); }

@media (max-width: 860px) {
  .founder-grid { grid-template-columns: 1fr; gap: 36px; }
  .profile-frame { max-width: 300px; }
  .advisor { grid-template-columns: 1fr; gap: 20px; }
  .advisor-photo { max-width: 200px; }
}

@media (max-width: 900px) {
  .grid, .grid.three { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .container { padding: 0 16px; }
  .page-head { padding: 120px 0 56px; }
  .block { padding: 56px 0; }
  .steps li { padding: 20px 20px 20px 64px; }
  .steps li::before { left: 20px; }
  .case { padding: 24px; }
  .footer-inner { justify-content: center; text-align: center; }
  .footer-left, .footer-contact { align-items: center; }
  .footer-copy { flex-basis: 100%; }
}
