/* agilesourcing.ai — matches the original Wix design */
:root {
  --text: #605e5e;
  --text-dark: #2f2e2e;
  --blue: #0064c2;
  --box: #c6d9f6;
  --grey-bg: #cccccc;
  --footer: #a0a09f;
  --font: "Helvetica Neue", Helvetica, Arial, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; font-family: var(--font); color: var(--text); font-size: 17px; line-height: 1.6;
  background: #333 url("/images/network-bg.jpg") center top / cover fixed;
}
@media (hover: none) { body { background-attachment: scroll; } }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
.wrap { max-width: 980px; margin: 0 auto; padding: 0 20px; }
.center { text-align: center; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.hp { display: none; }
[id] { scroll-margin-top: 10px; }

/* ---------- header */
.site-header { position: relative; z-index: 10; }
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 200px; }
.brand img { width: 325px; }
.main-nav { display: flex; gap: 26px; align-items: center; }
.main-nav a { color: #fff; text-decoration: none; font-weight: 700; font-size: 14px; }
.main-nav a:hover, .main-nav a.active { color: var(--blue); }
.has-sub { position: relative; }
.has-sub .sub { display: none; position: absolute; top: 100%; left: -14px; padding-top: 10px; }
.has-sub .sub a { display: block; background: #fff; color: #000; padding: 10px 16px; white-space: nowrap; box-shadow: 0 2px 6px rgba(0,0,0,.25); }
.has-sub .sub a:hover, .has-sub .sub a.active { color: var(--blue); }
.has-sub:hover .sub, .has-sub:focus-within .sub { display: block; }
.menu-toggle { display: none; background: none; border: 0; color: #fff; width: 44px; height: 44px; padding: 8px; cursor: pointer; }

/* ---------- hero */
.hero { color: #fff; padding: 10px 0 70px; }
.hero h1 { font-size: 60px; line-height: 1.12; margin: 0 0 20px; font-weight: 700; padding-left: 55px; }
.hero ul { margin: 0; padding-left: 75px; font-weight: 700; font-size: 24px; line-height: 1.4; list-style: disc; }
.hero li::marker { font-size: .6em; }

/* ---------- sections */
.sec { padding: 40px 0 70px; }
.sec.white { background: #fff; }
.sec.grey { background: var(--grey-bg); }
.big { font-size: 106px; line-height: 1.1; font-weight: 700; text-align: center; margin: 0 0 40px; color: var(--text); letter-spacing: -1px; }
.page-top { padding-top: 20px; }
.btn {
  display: inline-block; border: 3px solid var(--text); color: var(--text-dark); background: transparent;
  font: 700 14px var(--font); padding: 12px 18px; min-width: 156px; text-align: center; text-decoration: none; cursor: pointer;
}
.btn:hover { background: var(--text); color: #fff; }

/* technology teaser */
.tech-split { display: grid; grid-template-columns: 1fr 1fr; align-items: center; }
.tech-split .small-text { font-size: 13px; line-height: 2.4; padding: 0 60px 0 40px; border-right: 1px solid var(--text); margin: 0; }
.tech-claim { text-align: center; font-size: 22px; line-height: 1.5; padding: 0 30px; }
.tech-claim p { margin: 0; }
.tech-claim strong { font-size: 40px; }
.tech-claim .btn { margin-top: 70px; }

/* product */
.row { display: grid; grid-template-columns: 380px 1fr; gap: 50px; align-items: center; padding: 30px 0; }
.row.flip { grid-template-columns: 1fr 380px; }
.row.flip .shot { order: -1; }
.row .txt p { margin: 0 0 1.2em; }
.row .txt a { color: var(--blue); }
.shot { margin: 0; background: #fff; padding: 5px; box-shadow: 0 1px 4px rgba(0,0,0,.15); }
.shot.narrow { max-width: 463px; }
.row.flip .shot.narrow { justify-self: start; }
.sec.grey hr { border: 0; border-top: 2px solid #9a9a9a; width: 70%; margin: 20px auto; }
.closing { padding-top: 30px; font-size: 13px; }

/* request demo */
.video { position: relative; background: #000; aspect-ratio: 16 / 9; margin: 0 0 30px; }
.video video { width: 100%; height: 100%; display: block; background: #000; }
.demo-form { max-width: 864px; margin: 40px auto 0; }
.demo-form h3 { font-size: 24px; text-align: center; margin: 0 0 40px; color: var(--text); }
.demo-form input[type=text], .demo-form input[type=email], .demo-form input[type=tel] {
  display: block; width: 100%; border: 0; background: #e0e0e0; font: 13px var(--font); color: var(--text-dark);
  padding: 6px 10px; margin: 0 0 12px;
}
.demo-form input:focus { outline: 2px solid var(--blue); }
.demo-form .btn { margin-top: 8px; }
.form-status { text-align: center; font-size: 15px; min-height: 1.5em; }
.form-status.err { color: #b00020; }

/* ---------- technology page */
.sub-h { font-size: 29px; font-weight: 400; margin: 30px 0 16px; color: var(--text); }
.prose p { margin: 0 0 1.2em; }
.wide-img { margin: 40px auto; max-width: 847px; }
.wide-img.results { max-width: 824px; }

.taxonomy { margin: 40px 0 50px; }
.tax-head { display: grid; grid-template-columns: 1fr 225px 225px; gap: 0 36px; font-size: 15px; font-weight: 700; text-align: center; color: var(--text-dark); margin-bottom: 6px; }
.tax-head span:first-child { grid-column: 2; }
.tax-group {
  display: grid; margin-bottom: 34px; align-items: center;
  grid-template-columns: 134px 77px 134px 34px 225px 261px; justify-content: center;
  grid-template-rows: auto auto; gap: 15px 0;
}
.box { background: var(--box); border-radius: 10px; box-shadow: 0 2px 5px rgba(0,0,0,.35); }
.box.group { grid-column: 1; grid-row: 1 / span 2; font-size: 22px; font-weight: 700; color: var(--text-dark); text-align: center; padding: 12px 6px; }
.ptr { width: 77px; grid-column: 2; }
.ptr.up { grid-row: 1; align-self: end; margin-bottom: -10px; }
.ptr.down { grid-row: 2; align-self: start; margin-top: -10px; }
.box.cat { grid-column: 3; font-size: 20px; text-align: center; padding: 12px 6px; }
.box.desc { grid-column: 5; }
.box.val { grid-column: 6; margin-left: 36px; }
.box.desc, .box.val { font-size: 12px; line-height: 1.4; padding: 8px 10px; min-height: 135px; align-self: stretch; }
.box.desc p, .box.val p { margin: 0 0 .9em; }
.box.desc p:last-child, .box.val p:last-child { margin-bottom: 0; }
.r2 { grid-row: 2; }
.box.cat:not(.r2), .box.desc:not(.r2), .box.val:not(.r2) { grid-row: 1; }
.box.val.span2 { grid-row: 1 / span 2; }
.tax-head { grid-template-columns: 134px 77px 134px 34px 225px 261px; justify-content: center; gap: 0; }
.tax-head span:first-child { grid-column: 5; }
.tax-head span:last-child { grid-column: 6; margin-left: 36px; }

/* ---------- demo pages */
.demo-title { font-size: 40px; font-weight: 700; text-align: center; margin: 20px 0; color: var(--text); }
.demos .video { margin-bottom: 50px; }

/* ---------- footer */
.site-footer { background: var(--footer); color: #fff; }
.footer-inner { display: flex; align-items: center; gap: 60px; min-height: 194px; }
.site-footer .brand img { width: 276px; }
.footer-about { font-size: 14px; font-weight: 700; padding-top: 30px; }
.footer-about .rule { display: block; width: 130px; height: 4px; background: #fff; margin-bottom: 16px; }
.footer-about h2 { font-size: 14px; margin: 0 0 6px; }
.footer-about a { color: #fff; text-decoration: none; }
.footer-about a:hover { text-decoration: underline; }
.footer-tail { height: 60px; }

/* ---------- smaller screens */
@media (max-width: 960px) {
  .big { font-size: 72px; }
  .tax-group, .tax-head { grid-template-columns: 110px 60px 120px 12px 1fr 1fr; justify-content: stretch; }
  .box.val, .tax-head span:last-child { margin-left: 16px; }
  .ptr { width: 60px; }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  .header-inner { min-height: 110px; flex-wrap: wrap; }
  .brand img { width: 190px; }
  .menu-toggle { display: block; }
  .main-nav { display: none; width: 100%; flex-direction: column; align-items: flex-start; gap: 0; padding-bottom: 16px; }
  .main-nav.open { display: flex; }
  .main-nav > a, .has-sub > a { display: block; padding: 10px 0; font-size: 16px; }
  .has-sub .sub { display: block; position: static; padding: 0 0 0 16px; }
  .has-sub .sub a { background: none; box-shadow: none; color: #fff; padding: 6px 0; }
  .hero h1 { font-size: 34px; padding-left: 0; }
  .hero ul { font-size: 18px; padding-left: 22px; }
  .big { font-size: 46px; margin-bottom: 26px; }
  .tech-split { grid-template-columns: 1fr; gap: 30px; }
  .tech-split .small-text { border-right: 0; padding: 0; line-height: 1.9; }
  .tech-claim .btn { margin-top: 30px; }
  .row, .row.flip { grid-template-columns: 1fr; gap: 20px; }
  .row.flip .shot { order: 0; }
  .demo-title { font-size: 28px; }
  /* taxonomy becomes a stacked list */
  .tax-head, .ptr { display: none; }
  .tax-group { display: block; }
  .box.group { margin-bottom: 12px; }
  .box.cat { margin: 18px 0 8px; font-weight: 700; }
  .box.desc, .box.val { margin: 0 0 8px; min-height: 0; }
  .box.desc::before { content: "Description"; display: block; font-weight: 700; margin-bottom: 4px; }
  .box.val::before { content: "Value Add"; display: block; font-weight: 700; margin-bottom: 4px; }
  .footer-inner { flex-direction: column; align-items: flex-start; gap: 10px; padding: 30px 20px; }
  .site-footer .brand img { width: 200px; }
}
