/* Home hero art: one clear idea. A live OEE card on top, three machines below; the idle one turns to running and the OEE goes up.
   8s loop. transform / opacity / stroke only. Starts once in view (.in). */
.hv { position: relative; width: min(100%, 620px); margin-inline: auto; }
.hv-card { position: relative; z-index: 2; padding: 22px 26px 26px; border-radius: 30px; background: #fff; box-shadow: 0 50px 80px -44px rgba(16,33,47,.5), 0 0 0 1px rgba(16,33,47,.05); }
.hv-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.hv-live { display: inline-flex; align-items: center; gap: 9px; font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: #3a4a5a; }
.hv-live i { width: 8px; height: 8px; border-radius: 50%; background: #16a34a; }
.hv.in .hv-live i { animation: hvlive 1.8s infinite; }
@keyframes hvlive { 0% { box-shadow: 0 0 0 0 rgba(22,163,74,.55); } 70%,100% { box-shadow: 0 0 0 9px rgba(22,163,74,0); } }
.hv-top small { font-size: 11px; font-weight: 600; color: #a0aab5; }
.hv-main { display: grid; grid-template-columns: auto 1fr; gap: 28px; align-items: center; margin-top: 18px; }

.hv-ring { position: relative; width: 150px; height: 150px; }
.hv-ring svg { display: block; width: 100%; height: 100%; }
.hv-ring .bg { fill: none; stroke: #f1e4d3; stroke-width: 12; }
.hv-ring .fg { fill: none; stroke: var(--orange); stroke-width: 12; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: .29; }
.hv-ring > div { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.hv-ring b { position: relative; display: block; font-size: 38px; line-height: 1; font-weight: 800; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.hv-ring b span { display: inline-block; }
.hv-ring .n2 { position: absolute; left: 0; right: 0; opacity: 0; text-align: left; }
.hv-ring small { margin-top: 6px; font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--mute); }
.hv.in .hv-ring .fg { animation: hvring 8s cubic-bezier(.45,0,.3,1) infinite; }
.hv.in .hv-ring .n1 { animation: hvn1 8s linear infinite; } .hv.in .hv-ring .n2 { animation: hvn2 8s linear infinite; }
@keyframes hvring { 0%,44% { stroke-dashoffset: .29; } 56%,94% { stroke-dashoffset: .22; } 100% { stroke-dashoffset: .29; } }
/* the OEE number swaps instantly (no cross-fade), so 71 and 78 are never drawn on top of each other */
@keyframes hvn1 { 0%,49.9% { opacity: 1; } 50%,97.9% { opacity: 0; } 98%,100% { opacity: 1; } }
@keyframes hvn2 { 0%,49.9% { opacity: 0; } 50%,97.9% { opacity: 1; } 98%,100% { opacity: 0; } }

.hv-side { min-width: 0; }
.hv-bars { display: flex; align-items: flex-end; gap: 8px; height: 84px; }
.hv-bars i { flex: 1; height: var(--h); border-radius: 7px 7px 3px 3px; background: linear-gradient(180deg, #ffb867, #f7861e); transform-origin: bottom; }
.hv-bars i:not(:last-child) { opacity: .5; }
.hv.in .hv-bars i { animation: hvbar 1s cubic-bezier(.16,1,.3,1) both; animation-delay: var(--d); }
.hv.in .hv-bars i:last-child { animation: hvbar 1s cubic-bezier(.16,1,.3,1) both, hvlast 8s ease-in-out 1.2s infinite; animation-delay: var(--d), 1.2s; }
@keyframes hvbar { from { transform: scaleY(.1); } to { transform: scaleY(1); } }
@keyframes hvlast { 0%,44% { transform: scaleY(.72); } 56%,94% { transform: scaleY(1); } 100% { transform: scaleY(.72); } }
.hv-gain { display: flex; align-items: baseline; gap: 10px; margin: 16px 0 0; }
.hv-gain b { font-size: 30px; line-height: 1; font-weight: 800; letter-spacing: -.03em; color: #c25e00; }
.hv-gain span { font-size: 13.5px; line-height: 1.3; font-weight: 600; color: var(--mute); }

/* machines: same visual size, same baseline, status pill underneath */
.hv-floor { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: 18px; padding-top: 6px; }
.hv-floor::before { content: ""; position: absolute; left: 2%; right: 2%; bottom: 16px; height: 46%; border-radius: 50%; background: radial-gradient(ellipse, rgba(247,134,30,.22), rgba(247,134,30,0) 70%); }
.hv-m { position: relative; margin: 0; display: grid; justify-items: center; gap: 8px; }
.hv-m img { display: block; width: 100%; height: auto; filter: drop-shadow(0 16px 12px rgba(16,33,47,.26)); }
.hv.in .hv-m img { animation: hvfloat 6s ease-in-out infinite; }
.hv.in .hv-m:nth-child(2) img { animation-delay: -2s; } .hv.in .hv-m:nth-child(3) img { animation-delay: -4s; }
@keyframes hvfloat { 0%,100% { translate: 0 0; } 50% { translate: 0 -6px; } }
.hv-m figcaption { display: grid; justify-items: center; gap: 6px; }
.hv-m figcaption b { font-size: 12.5px; font-weight: 800; letter-spacing: .02em; color: #1c2c3a; text-align: center; }
.st { position: relative; display: inline-grid; align-items: center; height: 26px; padding: 0 12px 0 26px; border-radius: 999px; background: #dcfce7; color: #15803d; font-size: 12px; font-weight: 800; }
.st i { position: absolute; left: 10px; top: 50%; width: 8px; height: 8px; margin-top: -4px; border-radius: 50%; background: #16a34a; }
.st em { grid-area: 1 / 1; font-style: normal; white-space: nowrap; }
.st .b { opacity: 0; }
.st.flip.st { background: #fef3c7; color: #b45309; }
.st.flip i { background: #f59e0b; }
.hv.in .st.flip { animation: hvpill 8s linear infinite; }
.hv.in .st.flip i { animation: hvdot 8s linear infinite; }
.hv.in .st.flip .a { animation: hva 8s linear infinite; } .hv.in .st.flip .b { animation: hvb 8s linear infinite; }
@keyframes hvpill { 0%,45% { background: #fef3c7; color: #b45309; } 50%,94% { background: #dcfce7; color: #15803d; } 98%,100% { background: #fef3c7; color: #b45309; } }
@keyframes hvdot { 0%,45% { background: #f59e0b; } 50%,94% { background: #16a34a; } 98%,100% { background: #f59e0b; } }
@keyframes hva { 0%,46% { opacity: 1; } 50%,94% { opacity: 0; } 98%,100% { opacity: 1; } }
@keyframes hvb { 0%,46% { opacity: 0; } 52%,94% { opacity: 1; } 98%,100% { opacity: 0; } }

@media (max-width: 900px) { .hv { width: min(100%, 540px); } }
@media (max-width: 560px) {
  .hv-card { padding: 18px 18px 20px; border-radius: 24px; }
  .hv-main { grid-template-columns: 1fr; gap: 16px; justify-items: center; }
  .hv-ring { width: 130px; height: 130px; } .hv-ring b { font-size: 32px; }
  .hv-side { width: 100%; } .hv-bars { height: 64px; } .hv-gain { justify-content: center; }
  .hv-m figcaption b { font-size: 10.5px; } .st { height: 23px; font-size: 10.5px; padding: 0 9px 0 22px; } .st i { left: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  .hv *, .hv *::before { animation: none !important; }
  .hv-ring .n1 { opacity: 0; } .hv-ring .n2 { opacity: 1; } .hv-ring .fg { stroke-dashoffset: .22; }
  .st.flip { background: #dcfce7; color: #15803d; } .st.flip i { background: #16a34a; } .st.flip .a { opacity: 0; } .st.flip .b { opacity: 1; }
}

/* hero machines row: CNC, Injection molding, RotoSight, PiatIQ */
.hv-floor { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; align-items: end; }
.hv-m img { max-height: 120px; width: auto; max-width: 100%; object-fit: contain; }
.hv-m.hv-p img { max-height: 96px; }
.hv-m figcaption b { text-align: center; }
.hv.in .hv-m:nth-child(4) img { animation-delay: -1s; }
@media (max-width: 560px) { .hv-floor { gap: 4px; } .hv-m img { max-height: 70px; } .hv-m.hv-p img { max-height: 60px; } }
.hv-m img { max-height: 108px; } .hv-m.hv-p img { max-height: 100px; }
.hv-floor { margin-top: 26px; }
@media (max-width: 560px) { .hv-m { align-content: end; } .hv-m figcaption { min-height: 56px; align-content: start; } .hv-m figcaption b { min-height: 26px; display: grid; align-items: end; line-height: 1.15; } }
@media (max-width: 380px) { .hv-m .st { font-size: 9.5px !important; padding: 0 6px 0 17px !important; } .hv-m .st i { left: 6px !important; } }
/* one OEE value in the HTML (71%); the second number of the flip is drawn by CSS so crawlers do not read "7178%" */
.hv-ring .n2::before { content: attr(data-v); }
.h1-slogan { display: block; }
.hm-trust { margin-top: 18px; font-size: 13.5px; font-weight: 600; color: #5d6b7a; line-height: 1.6; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Yantra Connect Edge AI Accelerator above the live card: the box, its name, and a signal line down into the dashboard */
.hv-gw { display: flex; align-items: center; justify-content: center; gap: 18px; margin: 0 0 0; padding: 0 8px; }
.hv-gw-ic { position: relative; flex: none; display: grid; place-items: center; width: 150px; aspect-ratio: 1; }
.hv-gw-ic img { position: relative; z-index: 1; width: 132px; height: auto; filter: drop-shadow(0 18px 18px rgba(16,33,47,.22)); animation: hvGwFloat 5s ease-in-out infinite; }
.hv-gw-wave i { position: absolute; inset: 14px; border-radius: 50%; border: 2px solid rgba(247,134,30,.55); opacity: 0; animation: hvGwWave 3s ease-out infinite; }
.hv-gw-wave i:nth-child(2) { animation-delay: 1s; } .hv-gw-wave i:nth-child(3) { animation-delay: 2s; }
.hv-gw figcaption { display: grid; gap: 3px; max-width: 300px; text-align: left; }
.hv-gw small { font-size: 11px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: #c25e00; }
.hv-gw b { font-size: 19px; line-height: 1.2; font-weight: 800; letter-spacing: -.02em; color: #12212f; }
.hv-gw figcaption span { font-size: 14px; line-height: 1.5; color: #5d6b7a; }
.hv-gw-link { position: relative; display: block; width: 2px; height: 34px; margin: 2px auto 0; background: repeating-linear-gradient(180deg, rgba(247,134,30,.6) 0 5px, transparent 5px 10px); }
.hv-gw-link i { position: absolute; left: -3px; top: 0; width: 8px; height: 8px; border-radius: 50%; background: #f7861e; box-shadow: 0 0 10px rgba(247,134,30,.8); animation: hvGwDrop 1.6s ease-in infinite; }
@keyframes hvGwFloat { 50% { transform: translateY(-6px); } }
@keyframes hvGwWave { 0% { transform: scale(.55); opacity: .9; } 100% { transform: scale(1.25); opacity: 0; } }
@keyframes hvGwDrop { 0% { top: 0; opacity: 0; } 15% { opacity: 1; } 100% { top: 100%; opacity: 0; } }
@media (max-width: 560px) { .hv-gw { gap: 12px; } .hv-gw-ic { width: 104px; } .hv-gw-ic img { width: 92px; } .hv-gw b { font-size: 16px; } .hv-gw figcaption span { font-size: 13px; } }
@media (prefers-reduced-motion: reduce) { .hv-gw-ic img, .hv-gw-wave i, .hv-gw-link i { animation: none; } }

/* ===== Hero v2: one calm composition =====
   Left: headline, short intro, two buttons, trust chips. Right: one live card, the Edge AI box floating on its corner,
   the machines sitting on the card's floor. The estimate moved to its own band under the hero. */
.hm-hero-in { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 56px; row-gap: 44px; min-height: 0; padding-block: 64px 64px; }
.hm-copy h1 { font-size: clamp(40px, 4.6vw, 68px); }
.hm-lead { max-width: 560px; font-size: 17px; }
.hm-trust { display: flex; flex-wrap: wrap; gap: 8px; margin: 26px 0 0; padding: 0; list-style: none; }
.hm-trust li { display: inline-flex; align-items: center; gap: 7px; height: 32px; padding: 0 12px; border-radius: 99px; background: rgba(255, 255, 255, .8); box-shadow: 0 0 0 1px #f0dfc9; font-size: 12.5px; font-weight: 700; color: #3a4a5a; }
.hm-trust li::before { content: ""; width: 14px; height: 14px; border-radius: 50%; background: #f7861e url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12.5 4 4 8-9'/%3E%3C/svg%3E") center / 9px no-repeat; }
.hm-trust li:first-child { background: #12212f; color: #fff; box-shadow: none; }

.hv { width: min(100%, 600px); }
.hv-card { padding: 24px 26px 22px; overflow: visible; }
.hv-box { position: absolute; right: -26px; top: -44px; z-index: 3; display: flex; align-items: center; gap: 10px; margin: 0; padding: 8px 16px 8px 8px; border-radius: 20px; background: #12212f; color: #fff; box-shadow: 0 24px 40px -20px rgba(18, 33, 47, .7); }
.hv-box-ic { position: relative; display: grid; place-items: center; width: 64px; height: 56px; border-radius: 14px; background: radial-gradient(circle at 50% 45%, #fff 0, #fff3e3 70%); }
.hv-box-ic::after { content: ""; position: absolute; inset: -4px; border-radius: 17px; border: 2px solid rgba(247, 134, 30, .55); animation: hvBoxPing 2.4s ease-out infinite; }
@keyframes hvBoxPing { from { transform: scale(.92); opacity: 1; } to { transform: scale(1.18); opacity: 0; } }
.hv-box-ic img { width: 54px; height: auto; filter: drop-shadow(0 6px 6px rgba(16, 33, 47, .3)); }
.hv-box small { display: block; font-size: 10px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: #ffb36b; }
.hv-box b { display: block; font-size: 14px; line-height: 1.2; }
.hv-top { padding-right: 190px; }
.hv-floor { margin-top: 18px; padding-top: 18px; border-top: 1px solid #f1e8dc; }
.hv-floor::before { display: none; }
.hv-card { display: flex; flex-direction: column; }
@media (max-width: 900px) {
  .hm-hero-in { grid-template-columns: 1fr; gap: 64px; padding-block: 36px 56px; }
  .hv-box { right: 12px; }
}
@media (max-width: 560px) {
  .hv-box { top: -36px; padding: 6px 12px 6px 6px; } .hv-box-ic { width: 48px; height: 42px; } .hv-box-ic img { width: 40px; } .hv-box b { font-size: 12.5px; }
  .hv-top { padding-right: 0; padding-top: 14px; }
  .hm-trust li { font-size: 11.5px; height: 30px; }
}
@media (prefers-reduced-motion: reduce) { .hv-box-ic::after { animation: none; } }

/* hero v3: a little tighter so the estimate row is in view sooner */
.hm-copy h1 { font-size: clamp(38px, 4.2vw, 62px); }
.hm-hero-in { padding-block: 48px 56px; row-gap: 36px; }
.hm-trust { gap: 6px; margin-top: 22px; }
.hm-trust li { height: 30px; padding: 0 11px; font-size: 12px; }
