/* AI Agent Studio: intro on the left, four step cards in a 2 x 2 grid on the right, joined by arrows (hi-hello-studio.js builds the markup).
   Like the other home sections, the shared section system (hi-hello-section-system.css) sets this section's width, spacing, pill, title and lead,
   and the background and waves are the same as theirs. This file adds only what is specific here: the one-screen height, the button,
   the cards and the connectors.
   The cards are drawn on a 940 x 627 grid. --u is the size of one grid unit at the current width, so every size below is "N * var(--u)"
   and the picture scales as one piece. Keep the card coordinates and the connectors in hi-hello-studio.js in step. */
.hhs{position:relative;isolation:isolate;overflow:hidden;background:linear-gradient(90deg,#f7faff,#fff 47%,#f1f8ff);color:#0a1438;-webkit-font-smoothing:antialiased;scroll-margin-top:96px}
.hhs *{box-sizing:border-box}
/* One screen: as tall as the window so no other section shows until the visitor scrolls (taller only if the content needs it).
   The top padding keeps the content clear of the floating navbar; scroll-margin 0 makes menu and footer links land on the top edge. */
section#ai-agent-studio-preview.hhs{min-height:100vh;min-height:100svh;display:grid;align-content:center;padding-block:96px 56px;scroll-margin-top:0}
main.gap-24>.hho+.hhs{margin-block-start:calc(-24 * var(--spacing,.25rem))}
@media(min-width:768px){main.md\:gap-40>.hho+.hhs{margin-block-start:calc(-40 * var(--spacing,.25rem))}}
.hhs::before{content:"";position:absolute;z-index:-1;inset:0;pointer-events:none;background:url('/assets/integrations-waves.svg') center/100% 100% no-repeat;opacity:.85;-webkit-mask-image:linear-gradient(transparent,#000 160px,#000 calc(100% - 100px),transparent);mask-image:linear-gradient(transparent,#000 160px,#000 calc(100% - 100px),transparent)}

.hhs-wrap{display:grid;grid-template-columns:minmax(0,.4fr) minmax(0,1fr);gap:clamp(28px,3.4vw,56px);align-items:center;max-width:1640px;margin:auto}
.hhs-intro{min-width:0}
.hhs-eyebrow{margin:0}
.hhs h2 em{font-style:normal}
#ai-agent-studio-preview .hhs-intro p.hhs-lead{text-wrap:pretty}
.hhs a:focus-visible{outline:2px solid #1487ed;outline-offset:4px}
.hhs-explore{display:inline-flex;align-items:center;justify-content:center;gap:11px;min-height:50px;margin-top:clamp(26px,2.3vw,36px);padding:13px 25px;border-radius:999px;background:linear-gradient(105deg,#006aff,#00bcb7 55%,#00c900);box-shadow:0 7px 13px #00a9b92b;color:#fff;font-size:clamp(14px,1.15vw,18px);font-weight:550;line-height:1.2;letter-spacing:-.035em;text-decoration:none;white-space:nowrap;transition:transform .2s,filter .2s}
.hhs-explore svg{width:22px;height:22px;flex:none;transition:transform .2s}
.hhs-explore:hover{transform:translateY(-2px);filter:brightness(1.06)}
.hhs-explore:hover svg{transform:translateX(4px)}

/* ---------- the 2 x 2 grid ---------- */
.hhs-art{container-type:inline-size;position:relative;width:min(86%,calc((100svh - 170px) * 1.499));min-width:0;justify-self:center;aspect-ratio:940/627}
.hhs-stage{position:absolute;inset:0;--u:calc(100cqw / 940)}
.hhs-steps{position:absolute;inset:0;margin:0;padding:0;list-style:none}
.hhs-step{position:absolute;left:calc(var(--x) * var(--u));top:calc(var(--y) * var(--u));width:calc(var(--w) * var(--u));height:calc(var(--h) * var(--u));transition:transform .45s cubic-bezier(.2,.7,.2,1)}
.hhs-step:hover{transform:translateY(calc(-6 * var(--u)))}
.hhs-step-1{--x:0;--y:0;--w:429;--h:272;
  --c1:#f6efff;--c2:#eadcfc;--edge:#d6c3f6;--glow:#9d77ea66;--wave:#dcc7f9;--tile:#eadffb;--ink:#7b4ae0}
.hhs-step-2{--x:498;--y:0;--w:439;--h:272;
  --c1:#fff5ea;--c2:#ffe7d0;--edge:#ffd5ad;--glow:#ff9a4d5c;--wave:#ffd0a2;--tile:#ffe3c9;--ink:#f58a1f}
.hhs-step-3{--x:3;--y:351;--w:428;--h:276;
  --c1:#fff1f2;--c2:#ffdfe2;--edge:#ffc8cc;--glow:#ff7a8660;--wave:#ffc3c9;--tile:#ffd2d5;--ink:#e5504f}
.hhs-step-4{--x:502;--y:351;--w:436;--h:276;
  --c1:#eefaf7;--c2:#d8f3eb;--edge:#bde6db;--glow:#38c4a85c;--wave:#b3e7da;--tile:#c8efe5;--ink:#129f94}

.hhs-card{position:relative;isolation:isolate;overflow:hidden;height:100%;padding:calc(27 * var(--u)) calc(55 * var(--u)) 0;border-radius:calc(36 * var(--u));
  background:linear-gradient(150deg,var(--c1),var(--c2));
  box-shadow:inset 0 0 0 calc(2 * var(--u)) var(--edge),inset 0 0 0 calc(3.5 * var(--u)) #ffffff99,0 calc(16 * var(--u)) calc(34 * var(--u)) calc(-16 * var(--u)) var(--glow)}
/* two soft waves rising from the bottom-right corner */
.hhs-card::before,.hhs-card::after{content:"";position:absolute;z-index:-1;right:0;bottom:0;background:var(--wave);
  -webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 120' preserveAspectRatio='none'%3E%3Cpath d='M0 120C60 116 130 84 200 18V120Z'/%3E%3C/svg%3E") 100% 100%/100% 100% no-repeat;
  mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 120' preserveAspectRatio='none'%3E%3Cpath d='M0 120C60 116 130 84 200 18V120Z'/%3E%3C/svg%3E") 100% 100%/100% 100% no-repeat}
.hhs-card::before{width:62%;height:46%;opacity:.45}
.hhs-card::after{width:42%;height:34%;opacity:.7}
.hhs-ico{display:grid;place-items:center;width:calc(88 * var(--u));height:calc(86 * var(--u));border-radius:calc(22 * var(--u));background:var(--tile);color:var(--ink)}
.hhs .hhs-ico svg{display:block;width:calc(54 * var(--u));height:calc(54 * var(--u))}
.hhs-card h3{margin:calc(17 * var(--u)) 0 0;font-size:max(15px,calc(34 * var(--u)));font-weight:500;line-height:1.2;letter-spacing:-.025em;color:var(--hhs-ink,#080d25);white-space:nowrap}
.hhs-card p{margin:calc(10 * var(--u)) 0 0;font-size:max(12px,calc(24 * var(--u)));font-weight:400;line-height:1.27;letter-spacing:-.005em;color:#454f6a}
.hhs-l{display:block}

/* connectors: arrow buttons between the cards and one bend from Add Knowledge down to Configure Actions */
.hhs-links{position:absolute;inset:0;width:100%;height:100%;overflow:visible;pointer-events:none}
.hhs-link line,.hhs-bend{fill:none;stroke:#a9d3f5;stroke-width:2;stroke-linecap:round}
.hhs-link circle{fill:#fff;stroke:#b5dbf6;stroke-width:1.5;filter:drop-shadow(0 4px 10px #4a90d733)}
.hhs-go{fill:none;stroke:#1c8cef;stroke-width:2.4;stroke-linecap:round;stroke-linejoin:round}
.hhs-link .hhs-go{transform-box:fill-box}

/* ---------- motion: one step at a time, in flow order ----------
   card 1, arrow, card 2, bend, card 3, arrow, card 4. --t is when each part starts (seconds after the section comes into view).
   After the reveal the two arrows give a soft pulse so the direction keeps reading. */
.hhs-step-1{--t:0s}.hhs-step-2{--t:.45s}.hhs-step-3{--t:1.05s}.hhs-step-4{--t:1.55s}
.hhs-link-a{--t:.22s}.hhs-link-bend{--t:.7s}.hhs-link-b{--t:1.3s}
.hhs-link .hhs-node,.hhs-link .hhs-ping{transform-box:fill-box;transform-origin:center}
.hhs-ping{fill:none;stroke:#1c8cef;stroke-width:2;opacity:0}
@keyframes hhs-rise{from{opacity:0;transform:translateY(calc(30 * var(--u))) scale(.94)}to{opacity:1;transform:none}}
@keyframes hhs-draw{to{stroke-dashoffset:0}}
@keyframes hhs-pop{from{opacity:0;transform:scale(.3)}to{opacity:1;transform:scale(1)}}
@keyframes hhs-ping{0%{opacity:.55;transform:scale(1)}70%,100%{opacity:0;transform:scale(1.9)}}
@keyframes hhs-nudge{0%,100%{transform:translateX(0)}50%{transform:translateX(calc(3 * var(--u)))}}
@keyframes hhs-nudge-down{0%,100%{transform:translateY(0)}50%{transform:translateY(calc(3 * var(--u)))}}
.hhs.is-motion .hhs-card{opacity:0}
.hhs.is-motion .hhs-link line,.hhs.is-motion .hhs-bend,.hhs.is-motion .hhs-link .hhs-go{stroke-dasharray:1 2;stroke-dashoffset:1.06}
.hhs.is-motion .hhs-node{opacity:0}
.hhs.is-in .hhs-card{animation:hhs-rise .4s cubic-bezier(.2,.75,.2,1) var(--t) both}
.hhs.is-in .hhs-link line{animation:hhs-draw .25s ease-out var(--t) forwards}
.hhs.is-in .hhs-node{animation:hhs-pop .25s cubic-bezier(.3,1.5,.5,1) calc(var(--t) + .12s) both}
.hhs.is-in .hhs-link .hhs-go{animation:hhs-draw .2s ease-out calc(var(--t) + .28s) forwards,hhs-nudge 2.6s ease-in-out calc(var(--t) + .9s) infinite}
.hhs.is-in .hhs-ping{animation:hhs-ping 3.2s ease-out calc(var(--t) + .8s) infinite}
.hhs.is-in .hhs-bend{animation:hhs-draw .4s cubic-bezier(.4,.1,.2,1) var(--t) forwards}
.hhs.is-in .hhs-link-bend .hhs-go{animation:hhs-draw .18s ease-out calc(var(--t) + .38s) forwards,hhs-nudge-down 2.6s ease-in-out calc(var(--t) + .9s) infinite}

/* ---------- smaller screens ---------- */
@media(max-width:1200px){
  .hhs-wrap{grid-template-columns:1fr;gap:38px;max-width:1080px}
  .hhs-intro{display:flex;flex-direction:column;align-items:center;text-align:center}
  #ai-agent-studio-preview .hhs-intro .hhs-eyebrow{align-self:center}
    #ai-agent-studio-preview .hhs-intro p.hhs-lead{max-width:34em}
  .hhs-art{width:min(88%,780px)}
}
/* phones: one column of cards, with a down arrow between them */
@media(max-width:640px){
  .hhs-explore{width:100%;max-width:420px;min-height:49px;padding:13px 17px;font-size:15px}
  .hhs-art{aspect-ratio:auto;width:100%;max-width:460px}
  .hhs-stage{position:relative;inset:auto}
  .hhs-links{display:none}
  .hhs-steps{position:relative;inset:auto;display:grid;gap:46px}
  .hhs-step{position:relative;left:auto;top:auto;width:auto;height:auto}
  .hhs-step:hover{transform:none}
  .hhs-step+.hhs-step::before{content:"";position:absolute;z-index:1;left:50%;top:-38px;width:30px;height:30px;transform:translateX(-50%);border-radius:50%;
    background:#fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231c8cef' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 5v14m-6-6 6 6 6-6'/%3E%3C/svg%3E") center/16px no-repeat;
    box-shadow:0 0 0 1.5px #b5dbf6,0 4px 10px #4a90d733}
  .hhs-card{display:grid;grid-template-columns:auto 1fr;align-items:center;column-gap:16px;height:auto;padding:20px 20px;border-radius:24px}
  .hhs-ico{grid-row:1/3;width:62px;height:62px;border-radius:18px}
  .hhs .hhs-ico svg{width:36px;height:36px}
  .hhs-card h3{margin:0;font-size:20px;white-space:normal;align-self:end}
  .hhs-card p{margin:4px 0 0;font-size:15px;align-self:start}
  .hhs-l{display:inline}
  .hhs-step-1{--t:0s}.hhs-step-2{--t:.25s}.hhs-step-3{--t:.5s}.hhs-step-4{--t:.75s}
  .hhs.is-in .hhs-card{animation:hhs-rise .4s cubic-bezier(.2,.75,.2,1) var(--t) both}
}
@media(prefers-reduced-motion:reduce){
  .hhs *{animation:none!important;transition:none!important}
}
