@layer base {
  html, body { margin: 0; padding: 0; scroll-behavior: smooth; }
}

/* Center homepage scoping form block on large screens. */
@media (min-width: 1024px) {
  body.home #scoping-form > .max-w-7xl > .grid > .lg\:col-span-8 {
    margin-left: auto;
    margin-right: auto;
  }
}

#scoping-form > .max-w-7xl > .max-w-5xl {
  width: 100%;
}

/* =========================================================
   HOMEPAGE FAQ — TRUE HEIGHT-SMOOTH ACCORDION
   JS animates the real height from 0 -> scrollHeight.
   overflow-anchor is disabled to prevent the page from jumping
   while an item above/below the viewport changes height.
   ========================================================= */
#faq-accordion {
  overflow-anchor: none;
}

#faq-accordion .faq-item {
  overflow: hidden;
  overflow-anchor: none;
}

#faq-accordion .faq-answer {
  display: block !important;
  height: 0;
  overflow: hidden !important;
  margin: 0 !important;
  padding: 0 !important;
  opacity: 0;
  transition:
    height 420ms cubic-bezier(.22,1,.36,1),
    opacity 260ms ease;
  will-change: height, opacity;
}

#faq-accordion .faq-answer-inner {
  min-height: 0;
}

#faq-accordion .faq-item.is-open .faq-answer {
  opacity: 1;
}

#faq-accordion .faq-icon {
  display: inline-block;
  transform: rotate(0deg);
  transition: transform 420ms cubic-bezier(.22,1,.36,1);
  transform-origin: center;
}

#faq-accordion .faq-item.is-open .faq-icon {
  transform: rotate(180deg);
}

#faq-accordion [data-faq-toggle] {
  cursor: pointer;
}

@media (prefers-reduced-motion: reduce) {
  #faq-accordion .faq-answer,
  #faq-accordion .faq-icon {
    transition: none !important;
  }
}

/* Tech-stack technology rows. */
body.home #tech-stack .hs-stack-list > li {
  display: flex !important;
  align-items: center;
  min-height: 42px;
  padding: .625rem .75rem;
  border: 1px solid rgb(226 232 240);
  border-radius: .5rem;
  background: rgb(248 250 252);
}

body.home #tech-stack .hs-stack-list > li > span {
  min-width: 0;
  color: rgb(30 41 59);
  font-size: 11px;
  font-weight: 600;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

@media (max-width: 1279px) {
  body.home #tech-stack .hs-stack-list > li > span {
    font-size: 10.5px;
  }
}


/* Homepage-only scroll reveal: animate outer cards only. */
body.hs-home-reveal-ready [data-hs-reveal="1"] {
  opacity: 0;
  transform: translate3d(0, 28px, 0);
  transition: opacity 720ms cubic-bezier(.22, 1, .36, 1), transform 720ms cubic-bezier(.22, 1, .36, 1);
  transition-delay: var(--hs-reveal-delay, 0ms);
  will-change: opacity, transform;
}
body.hs-home-reveal-ready [data-hs-reveal="1"].hs-home-revealed {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}
@media (prefers-reduced-motion: reduce) {
  body.hs-home-reveal-ready [data-hs-reveal="1"] { opacity: 1 !important; transform: none !important; transition: none !important; will-change: auto; }
}


/* Homepage KPI strip — matched to the approved reference screenshots.
   Desktop: 4 columns, number + copy centred as one group per card.
   Tablet (<=1100px): 2 columns, same row layout.
   Mobile (<=560px): 1 column, number stacked over a centred copy block.
   Number slots keep the JS-measured fixed width so the counter never shifts
   the label while it counts up. */
body.home .hs-home-stats-grid {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem !important;
  align-items: stretch;
}
body.home .hs-home-stat-card {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  min-width: 0;
  min-height: 80px;
  padding: .875rem 1.25rem;
  border-radius: .75rem;
  background-color: rgba(255, 255, 255, .03);
  border: 1px solid rgba(255, 255, 255, .1);
  transform: none;
  opacity: 1;
  transition: border-color 220ms ease;
}
body.home .hs-home-stat-card:hover { border-color: rgba(34, 211, 238, .4); }
body.home .hs-home-stat-number {
  display: inline-block !important;
  flex: 0 0 var(--hs-stat-number-width, auto) !important;
  width: var(--hs-stat-number-width, auto) !important;
  min-width: var(--hs-stat-number-width, 0) !important;
  max-width: var(--hs-stat-number-width, none) !important;
  box-sizing: content-box;
  white-space: nowrap !important;
  text-align: left !important;
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 30px !important;
  font-weight: 800;
  letter-spacing: -.025em;
  font-variant-numeric: tabular-nums lining-nums;
  line-height: 1.05;
  position: relative;
  z-index: 0;
  contain: none;
}
body.home .hs-home-stat-number--accent { color: #22d3ee; }
body.home .hs-home-stat-number--light { color: #ffffff; }
body.home .hs-home-stat-copy {
  display: flex;
  flex-direction: column;
  flex: 0 1 auto;
  min-width: 0;
  text-align: left;
  overflow-wrap: normal;
}
body.home .hs-home-stat-copy > span {
  display: block;
  overflow-wrap: normal;
  word-break: normal;
}
body.home .hs-home-stat-copy > span:first-child {
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 12px;
  line-height: 16px;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: .025em;
}
body.home .hs-home-stat-copy > span:last-child {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  line-height: 16px;
  color: #94a3b8;
}
@media (max-width: 1100px) {
  body.home .hs-home-stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  body.home .hs-home-stat-card { gap: 1rem; min-height: 66px; padding: .875rem 1.25rem; }
  body.home .hs-home-stat-number { font-size: 30px !important; }
}
@media (max-width: 560px) {
  body.home .hs-home-stats-grid { grid-template-columns: minmax(0, 1fr); gap: 1rem !important; }
  body.home .hs-home-stat-card {
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: .75rem;
    min-height: 100px;
    padding: .875rem 1.25rem;
    text-align: center;
  }
  body.home .hs-home-stat-number {
    flex: 0 0 auto !important;
    width: var(--hs-stat-number-width, auto) !important;
    min-width: 0 !important;
    max-width: 100% !important;
    text-align: center !important;
    font-size: 24px !important;
  }
  /* Copy block is centred as a unit; its two lines stay left-aligned (as in the reference). */
  body.home .hs-home-stat-copy { flex: 0 1 auto; width: auto; max-width: 100%; align-items: flex-start; text-align: left; }
  body.home .hs-home-stat-copy > span { text-align: left; }
}

/* theme.css strips every [class*="card"] box on phones (<=767px) with !important.
   Keep the KPI cards boxed there, scoped to this strip only. */
@media (max-width: 767px) {
  body.home .hs-home-stats-grid > .hs-home-stat-card {
    background-color: rgba(255, 255, 255, .03) !important;
    border: 1px solid rgba(255, 255, 255, .1) !important;
    border-radius: .75rem !important;
  }
  body.home .hs-home-stats-grid > .hs-home-stat-card:hover { border-color: rgba(34, 211, 238, .4) !important; }
}

/* Homepage hero text: smooth fade-up entrance, scoped to the hero only. */
body.home .hs-hero-reveal {
  opacity: 0;
  transform: translate3d(0, 24px, 0);
  animation: hsHeroFadeUp 850ms cubic-bezier(.22, 1, .36, 1) forwards;
  will-change: opacity, transform;
}
body.home .hs-hero-reveal--1 { animation-delay: 100ms; }
body.home .hs-hero-reveal--2 { animation-delay: 220ms; }
body.home .hs-hero-reveal--3 { animation-delay: 360ms; }
body.home .hs-hero-reveal--4 { animation-delay: 500ms; }
@keyframes hsHeroFadeUp {
  from { opacity: 0; transform: translate3d(0, 24px, 0); }
  to { opacity: 1; transform: translate3d(0, 0, 0); }
}
@media (prefers-reduced-motion: reduce) {
  body.home .hs-hero-reveal {
    opacity: 1;
    transform: none;
    animation: none;
    will-change: auto;
  }
}


/* Homepage free-estimate CTA: responsive, isolated styles to avoid changing other sections. */
body.home #free-estimate .hs-estimate-panel {
  background: #0d1526;
  border: 1px solid #1b3c59;
  color: #f8fafc;
  box-shadow: 0 18px 50px rgba(15, 23, 42, .08);
  max-width: 950px;
}
body.home #free-estimate .hs-estimate-eyebrow {
  max-width: 100%;
  border: 1px solid #334155;
  background: rgba(255,255,255,.055);
  color: #38bdf8;
  font: 700 11px/1.4 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: .06em;
  overflow-wrap: anywhere;
}
body.home #free-estimate #hs-estimate-title {
  color: #f8fafc;
  text-wrap: balance;
}
body.home #free-estimate .hs-estimate-description {
  color: #9aa9bf;
}
body.home #free-estimate .hs-estimate-button {
  max-width: 100%;
  background: #2563eb;
  color: #fff;
  box-shadow: 0 8px 24px rgba(37,99,235,.24);
  text-align: center;
  overflow-wrap: anywhere;
}
body.home #free-estimate .hs-estimate-button:hover {
  background: #1d4ed8;
  transform: translateY(-1px);
}
body.home #free-estimate .hs-estimate-button:focus-visible {
  outline: 3px solid #7dd3fc;
  outline-offset: 3px;
}
@media (max-width: 480px) {
  body.home #free-estimate .hs-estimate-panel { border-radius: 1.25rem; }
  body.home #free-estimate .hs-estimate-eyebrow { font-size: 10px; }
  body.home #free-estimate .hs-estimate-button { width: 100%; padding-inline: 1rem; }
}


/* Homepage AI-ready integration section — isolated responsive illustration. */
body.home .hs-ai-ready-section { width:100%; overflow:hidden; padding:clamp(3.5rem,7vw,6.5rem) 1.5rem; background:linear-gradient(115deg,#edf6ff 0%,#f7fbff 52%,#e5f6fc 100%); color:#0b1730; }
body.home .hs-ai-ready-inner { max-width:1200px; margin:0 auto; display:grid; grid-template-columns:minmax(0, .92fr) minmax(0, 1.08fr); align-items:center; gap:clamp(2rem,5vw,5rem); }
body.home .hs-ai-ready-copy { min-width:0; }
body.home #hs-ai-ready-title { margin:0; max-width:640px; color:#071a33; font-size:clamp(2rem,3.25vw,3.15rem); font-weight:850; line-height:1.13; letter-spacing:-.045em; text-wrap:balance; font-size:36px; }
body.home .hs-ai-ready-copy > p { margin:1.5rem 0 0; max-width:590px; color:#53677f; font-size:clamp(1rem,1.2vw,1.1rem); line-height:1.85; overflow-wrap:anywhere; }
body.home .hs-ai-ready-inline-link { color:#075eea; text-decoration:underline; text-decoration-color:rgba(7,94,234,.35); text-underline-offset:3px; font-weight:650; }
body.home .hs-ai-ready-inline-link:hover { color:#0646b5; }
body.home .hs-ai-ready-button { display:inline-flex; align-items:center; justify-content:center; gap:.85rem; max-width:100%; margin-top:2rem; padding:1rem 1.5rem; border:1px solid #1769f5; border-radius:.85rem; background:#0866f5; color:#fff; font-weight:750; line-height:1.4; text-decoration:none; box-shadow:0 10px 25px rgba(8,102,245,.2); transition:transform .2s ease,background .2s ease,box-shadow .2s ease; overflow-wrap:anywhere; }
body.home .hs-ai-ready-button:hover { color:#fff; background:#0754cf; transform:translateY(-2px); box-shadow:0 14px 28px rgba(8,102,245,.25); }
body.home .hs-ai-ready-button:focus-visible { outline:3px solid #38bdf8; outline-offset:4px; }
body.home .hs-ai-ready-visual { position:relative; width:100%; min-width:0; min-height:420px; aspect-ratio:640/430; }
body.home .hs-ai-ready-lines { position:absolute; inset:0; width:100%; height:100%; overflow:visible; }
body.home .hs-ai-ready-orbit { fill:none; stroke:rgba(8,102,245,.11); stroke-width:1.5; }
body.home .hs-ai-ready-connectors path { fill:none; stroke:#8acff0; stroke-width:2; opacity:.95; stroke-linecap:round; }
body.home .hs-ai-ready-packet { fill:#0878ff; filter:drop-shadow(0 0 5px rgba(8,120,255,.7)); }

body.home .hs-ai-ready-core { position:absolute; left:36.7%; top:50%; width:28%; aspect-ratio:1; transform:translate(-50%,-50%); display:grid; place-items:center; border-radius:50%; background:#fff; border:2px solid rgba(13,153,255,.22); box-shadow:0 18px 38px rgba(12,104,174,.18); }
body.home .hs-ai-ready-core img { display:block; width:58%; max-width:100px; height:auto; object-fit:contain; }
body.home .hs-ai-ready-models { position:absolute; top:5%; right:0; bottom:5%; width:25%; display:flex; flex-direction:column; justify-content:space-between; gap:.35rem; }
body.home .hs-ai-ready-model { display:flex; align-items:center; gap:.5rem; min-width:0; min-height:32px; padding:.45rem .7rem; border:1px solid #c5edff; border-radius:999px; background:rgba(255,255,255,.92); color:#233c59; font-size:clamp(.65rem,.8vw,.8rem); line-height:1.2; font-weight:650; box-shadow:0 3px 12px rgba(19,94,145,.035); white-space:nowrap; }
body.home .hs-ai-ready-model i { display:block; flex:0 0 7px; width:7px; height:7px; border-radius:50%; background:#40afd4; }
@media (max-width:900px) { body.home .hs-ai-ready-inner { grid-template-columns:minmax(0,1fr); gap:2.25rem; } body.home .hs-ai-ready-copy { max-width:760px; } body.home .hs-ai-ready-visual { width:min(100%,680px); margin:0 auto; min-height:0; } body.home #hs-ai-ready-title { max-width:760px; } }
@media (max-width:520px) { body.home .hs-ai-ready-section { padding:3.25rem 1rem; } body.home #hs-ai-ready-title { font-size:clamp(1.8rem,8vw,2.35rem); } body.home .hs-ai-ready-copy > p { margin-top:1rem; font-size:.98rem; line-height:1.75; } body.home .hs-ai-ready-button { width:100%; margin-top:1.5rem; padding:.95rem 1rem; } body.home .hs-ai-ready-visual { min-height:260px; aspect-ratio:1.15/1; } body.home .hs-ai-ready-models { width:31%; top:3%; bottom:3%; } body.home .hs-ai-ready-model { gap:.3rem; min-height:24px; padding:.3rem .4rem; font-size:clamp(.54rem,2.3vw,.68rem); } body.home .hs-ai-ready-model i { flex-basis:5px; width:5px; height:5px; } body.home .hs-ai-ready-core { left:34%; width:29%; } body.home .hs-ai-ready-core span { font-size:2.7rem; } }
@media (prefers-reduced-motion:reduce) { body.home .hs-ai-ready-button { transition:none; } }


/* Project CTA — placed directly after Verified Enterprise Tech Stack. */
body.home #project-cta {
  width: 100%;
  padding: clamp(2.5rem, 5vw, 5rem) 1rem;
  background: #080c16;
  color: #f8fafc;
}
body.home #project-cta .hs-project-cta-panel {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(180px, 280px);
  align-items: center;
  gap: clamp(1.5rem, 4vw, 4rem);
  width: 100%;
  max-width: 1200px;
  min-height: 260px;
  margin: 0 auto;
  padding: clamp(1.5rem, 4vw, 3.5rem);
  overflow: hidden;
  border: 1px solid rgba(56, 189, 248, .42);
  border-radius: 1.25rem;
  background: radial-gradient(ellipse at 92% 20%, rgba(14, 165, 233, .18), transparent 36%), linear-gradient(115deg, #050b19 0%, #0b1428 62%, #071d34 100%);
  box-shadow: 0 22px 70px rgba(0, 0, 0, .22), inset 0 1px 0 rgba(255,255,255,.035);
}
body.home #project-cta .hs-project-cta-content { position: relative; z-index: 2; min-width: 0; max-width: 790px; }
body.home #project-cta h2 {
  margin: 0;
  max-width: 790px;
  color: #fff;
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: clamp(1.65rem, 3.3vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -.035em;
  line-height: 1.13;
  text-wrap: balance;
  font-size: 36px;
}
body.home #project-cta .hs-project-cta-content p {
  max-width: 760px;
  margin: 1.15rem 0 0;
  color: #b8c7da;
  font-size: clamp(.95rem, 1.25vw, 1.075rem);
  line-height: 1.8;
}
body.home #project-cta .hs-project-cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .75rem;
  min-height: 52px;
  max-width: 100%;
  margin-top: 1.65rem;
  padding: .85rem 1.25rem;
  border: 1px solid rgba(96, 165, 250, .65);
  border-radius: .8rem;
  background: linear-gradient(110deg, #2563eb, #0879e8);
  color: #fff;
  font-size: .95rem;
  font-weight: 750;
  line-height: 1.35;
  text-decoration: none;
  box-shadow: 0 10px 28px rgba(37, 99, 235, .24);
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
body.home #project-cta .hs-project-cta-button:hover { transform: translateY(-2px); box-shadow: 0 14px 34px rgba(37, 99, 235, .34); background: linear-gradient(110deg, #1d4ed8, #0284c7); }
body.home #project-cta .hs-project-cta-button:focus-visible { outline: 3px solid #67e8f9; outline-offset: 4px; }
body.home #project-cta .hs-project-cta-button .material-symbols-outlined { font-size: 1.25rem; }
body.home #project-cta .hs-project-cta-mark { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .8rem; min-width: 0; min-height: 190px; color: #38bdf8; }
body.home #project-cta .hs-project-cta-mark > .material-symbols-outlined { display: grid; place-items: center; width: clamp(96px, 11vw, 142px); aspect-ratio: 1; border: 1px solid rgba(56, 189, 248, .55); border-radius: 50%; background: radial-gradient(circle at 32% 25%, rgba(56, 189, 248, .28), rgba(14, 165, 233, .08) 55%, rgba(2, 6, 23, .35)); color: #67e8f9; font-size: clamp(3rem, 5vw, 4.25rem); box-shadow: 0 0 0 12px rgba(56, 189, 248, .045), 0 0 50px rgba(14, 165, 233, .2); }
body.home #project-cta .hs-project-cta-mark-ring { position: absolute; top: 50%; left: 50%; width: clamp(135px, 15vw, 195px); aspect-ratio: 1; border: 1px solid rgba(56, 189, 248, .16); border-radius: 50%; transform: translate(-50%, -58%); pointer-events: none; }
body.home #project-cta .hs-project-cta-mark-caption { color: #7dd3fc; font-family: "JetBrains Mono", monospace; font-size: .625rem; font-weight: 700; letter-spacing: .16em; text-align: center; }
body.home #project-cta .hs-project-cta-glow { position: absolute; z-index: -1; width: 240px; height: 240px; border-radius: 50%; filter: blur(65px); opacity: .14; pointer-events: none; }
body.home #project-cta .hs-project-cta-glow--one { top: -140px; right: 12%; background: #0ea5e9; }
body.home #project-cta .hs-project-cta-glow--two { bottom: -170px; right: 32%; background: #2563eb; }
@media (max-width: 760px) {
  body.home #project-cta { padding: 2.25rem 1rem; }
  body.home #project-cta .hs-project-cta-panel { grid-template-columns: minmax(0, 1fr); gap: 1.5rem; padding: 1.5rem; border-radius: 1rem; }
  body.home #project-cta .hs-project-cta-mark { min-height: 135px; grid-row: 1; }
  body.home #project-cta .hs-project-cta-mark > .material-symbols-outlined { width: 88px; font-size: 2.75rem; }
  body.home #project-cta .hs-project-cta-mark-ring { width: 122px; transform: translate(-50%, -56%); }
  body.home #project-cta .hs-project-cta-content { grid-row: 2; }
  body.home #project-cta h2 { font-size: clamp(1.55rem, 7vw, 2.1rem); }
  body.home #project-cta .hs-project-cta-content p { margin-top: .9rem; line-height: 1.7; }
  body.home #project-cta .hs-project-cta-button { width: 100%; margin-top: 1.25rem; }
}
@media (prefers-reduced-motion: reduce) {
  body.home #project-cta .hs-project-cta-button { transition: none; }
  body.home #project-cta .hs-project-cta-button:hover { transform: none; }
}
