/* =========================================================================
   Home hero — the Figma window.
   Ported value-for-value from the original Webflow design so it looks the
   same; everything is scoped under .hero-wf so it can't leak into the site.
   ========================================================================= */

.hero-wf {
  --hdr: var(--site-header-h, 123px); /* measured by site.js, so header + hero = exactly one screen */
  position: relative; isolation: isolate; /* keeps the window's z-index inside the hero, under the work sheet */
  min-height: calc(100svh - var(--hdr) + 2.5rem); /* header + hero fill the screen; the work sheet's 2.5rem overlap starts just below it */
  display: flex; flex-direction: column; /* the window grows to fill the hero... */
  padding: clamp(56px, 17vh, 200px) 0 2.5rem; /* breathing room above the greeting; the window fills down to where the work sheet's 2.5rem overlap begins */
  /* the dot-grid image is 1450px wide; past its edges the same grid continues as a CSS pattern
     (9.7px apart, offset to line up with the image's own dots, and as dim as its edges) */
  background: url("/assets/1d027417-64642ac596dfb19fb7d57bad_bg-min.webp") 50% 0 / 1450px no-repeat,
    radial-gradient(circle, rgb(14 14 14) 1px, transparent 1.25px) calc(50% - 711px) 8.65px / 9.7px 9.7px,
    #000;
  color: #fff;
  overflow: hidden;
}
.hero-wf__container { flex: 1; width: 100%; max-width: 1351px; margin-inline: auto; padding-inline: 60px; display: flex; justify-content: center; }
.hero-wf__intro { flex: 1; display: flex; flex-direction: column; }

/* Greeting above the window. hero-motion.js draws each language as an SVG
   (gradient pen stroke, then fill) and tucks its base behind the window. */
.hero-wf__hello {
  position: relative; z-index: 1; margin: 10px 0 0;
  display: flex; justify-content: center; gap: .22em;
  height: 106px; font-size: 97px; font-weight: 800; line-height: 106px; letter-spacing: -.02em; white-space: nowrap;
}
/* The greeting grows leftward from the centre and the name stays put on the right,
   so changing languages never moves "I'm Ajay." */
.greeting, .greeting-name { flex: 1 1 0; min-width: 0; display: flex; height: 100%; }
.greeting { justify-content: flex-end; }
.greeting-name { justify-content: flex-start; }
.greeting__fallback { color: #ff7b5c; } /* shown only if the script doesn't run */
.greeting-name .greeting__fallback { color: #f4f4f6; }
.is-drawn > .greeting__fallback { display: none; }
.hero-wf__hello svg { display: block; flex: none; height: 106px; width: auto; overflow: visible; }
.greeting svg { filter: drop-shadow(0 3px 8px rgba(255, 94, 105, .18)); }
.hero-wf__hello text { letter-spacing: -.02em; font-synthesis: none; }
.hero-wf__hello .stroke { fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

/* Window */
.hero-wf .figma {
  position: relative; z-index: 2;
  --panel: 232px;
  display: flex; flex-direction: column;
  width: min(1200px, 100%); flex: 1 0 auto; min-height: 600px; margin: -18px auto 0; /* tucks the bottom of the greeting behind the window */
  /* Bottom of the window melts into the background */
  /* fully gone well before the hero's bottom edge, so the work sheet never cuts through the window */
  -webkit-mask-image: linear-gradient(to bottom, #000 calc(100% - 240px), transparent);
  mask-image: linear-gradient(to bottom, #000 calc(100% - 240px), transparent); /* fully faded exactly where the work sheet begins */
  border: 1px solid #ffffff1f; border-radius: 10px;
  background-color: #121213; /* solid: nothing behind shows through */
  background-image: radial-gradient(circle farthest-side at 50% 0, #ffffff1f, #fff0);
  box-shadow: 0 4px 116px #f0f0f01c;
}
.hero-wf .grain { position: absolute; inset: 0; z-index: 2; opacity: .25; background: url("/assets/hero-grain.webp") 50% / cover; border-radius: 10px; pointer-events: none; }
.hero-wf .radial-gradient { position: absolute; inset: 0; z-index: 0; background-image: radial-gradient(circle at 50% 0, #ffffff1f, #fff0); border-radius: 10px; pointer-events: none; }

/* Title bar */
.hero-wf .figma-tab-wrapper { position: relative; z-index: 1; display: flex; align-items: center; height: 48px; padding-inline: 16px; background-color: #19191b; border-bottom: 1px solid #ffffff12; border-radius: 10px 10px 0 0; }
.hero-wf .window-controls-container { display: flex; justify-content: space-between; width: 60px; }
/* macOS traffic lights: close, minimise, zoom. Symbols appear when hovered, as on a Mac */
.hero-wf .window-controls {
  position: relative; display: grid; place-items: center; width: 13px; height: 13px; border-radius: 50%;
  background: #ff5f57; box-shadow: inset 0 0 0 .5px rgba(0, 0, 0, .25);
  font: 700 9px/1 system-ui, sans-serif; font-style: normal; color: transparent; transition: color .15s;
}
.hero-wf .window-controls:nth-child(2) { background: #febc2e; }
.hero-wf .window-controls:nth-child(3) { background: #28c840; }
.hero-wf .window-controls::before { content: "×"; margin-top: -1px; }
.hero-wf .window-controls:nth-child(2)::before { content: "−"; }
.hero-wf .window-controls:nth-child(3)::before { content: "+"; }
.hero-wf .window-controls-container:hover .window-controls { color: rgba(0, 0, 0, .55); }

/* Toolbar */
.hero-wf .figma-toolbar { position: relative; z-index: 3; display: flex; justify-content: space-between; align-items: center; height: 48px; padding-right: 20px; border-bottom: 1px solid #ffffff12; }
.hero-wf .figma-icons { display: flex; }
.hero-wf .tool-icon { height: 44px; width: auto; }
.hero-wf .figma-controls { display: flex; align-items: center; }
.hero-wf .figma-user-ring { padding: 4px; border: 1.5px solid #363638; border-radius: 100%; }
.hero-wf .figma-user-ring.left { margin-right: 10px; }
.hero-wf .figma-user { width: 24px; height: 24px; border-radius: 100%; background: #0b99ff url("/assets/hero-avatar.jpg") 50% 0 / cover; }
.hero-wf .figma-user-ring--ai { width: 35px; margin-left: 10px; border-color: #6d3df5; /* ring in the agent cursor's violet */
  transition: width .45s cubic-bezier(.16, 1, .3, 1), margin .45s cubic-bezier(.16, 1, .3, 1), padding .45s cubic-bezier(.16, 1, .3, 1), border-width .45s, opacity .3s .15s, transform .5s cubic-bezier(.34, 1.56, .64, 1) .15s; }
/* Until Claude joins it takes no room at all; joining opens the slot, then the avatar pops in */
.hero-wf .figma-user-ring--ai.is-waiting { width: 0; margin-left: 0; padding: 0; border-width: 0; opacity: 0; transform: scale(.4); overflow: hidden; }
.hero-wf .figma-ai { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 100%; background: #f4f1ea; }
.hero-wf .figma-share-button {
  margin-left: 16px; padding: 6px 16px;
  border: 1px solid #ffffff1a; border-radius: 8px;
  font-size: 14px; letter-spacing: .2px; text-decoration: none;
  color: #e7e7ea;
  transition: box-shadow .25s, border-color .25s, color .25s;
}
.hero-wf .figma-share-button:hover { border-color: #9292af; box-shadow: 0 0 18px #334064; }

/* "Genius" loader: a ring of eight dots around a dark hole */
.hero-wf .genius-div { position: relative; width: 24px; height: 24px; display: grid; place-items: center; }
.hero-wf .genius-loop { position: absolute; width: 12px; height: 12px; border-radius: 100%; background: #fff; display: grid; place-items: center; }
.hero-wf .genius-hole { width: 6px; height: 6px; border-radius: 100%; background: #1e1e21; }
.hero-wf .genius-dots { position: absolute; inset: 0; }
.hero-wf .genius-dots i { position: absolute; width: 3px; height: 3px; border-radius: 100%; background: #fff; }
.hero-wf .genius-dots i:nth-child(1) { top: .5px; left: 10.5px; }
.hero-wf .genius-dots i:nth-child(2) { top: 3px; right: 3px; }
.hero-wf .genius-dots i:nth-child(3) { top: 10px; right: 0; }
.hero-wf .genius-dots i:nth-child(4) { top: 18px; right: 3px; }
.hero-wf .genius-dots i:nth-child(5) { top: 21px; left: 10.5px; }
.hero-wf .genius-dots i:nth-child(6) { bottom: 3px; left: 3px; }
.hero-wf .genius-dots i:nth-child(7) { bottom: 10.5px; left: 0; }
.hero-wf .genius-dots i:nth-child(8) { bottom: 18px; left: 3px; }

/* Canvas */
.hero-wf .figma-canvas { position: relative; z-index: 2; display: flex; justify-content: space-between; flex: 1; min-height: 0; }
.hero-wf .figma-left-panel { position: relative; z-index: 11; width: var(--panel); height: 100%; border-right: 1px solid #ffffff12; overflow: hidden; }
.hero-wf .figma-right-panel { position: relative; z-index: 11; width: var(--panel); height: 100%; border-left: 1px solid #ffffff12; overflow: hidden; }
.hero-wf .teaser-absolute { position: absolute; inset: 0 var(--panel); z-index: 10; display: flex; flex-direction: column; justify-content: center; align-items: center; padding: 24px 0 120px; } /* centred in the part above the bottom fade */
/* Role bubble above the headline */
.hero-wf .hero-role {
  display: inline-flex; align-items: center; gap: 10px; margin: 0 0 22px; padding: 7px 16px 7px 12px;
  border: 1px solid #ffffff1f; border-radius: 999px; background: #ffffff0d;
  color: #d9dae0; font-size: 14px; font-weight: 500; line-height: 1.2; letter-spacing: .01em; white-space: nowrap;
}
.hero-wf .hero-role__dot { width: 8px; height: 8px; border-radius: 50%; background: linear-gradient(135deg, #b16cea, #ff5e69 55%, #ffa84b); }
.hero-wf .hero-role__sep { width: 3px; height: 3px; border-radius: 50%; background: #ffffff59; }
.hero-wf .hero-headline {
  margin: 0; text-align: center; font-size: 54px; font-weight: 700; line-height: 1.08; letter-spacing: -.02em;
  color: #f4f4f6; text-wrap: balance;
}
.hero-wf .hero-headline span { display: block; }
.hero-wf .hero-headline__soft { color: #a5a8b3; }
/* "production" alone carries the brand gradient: where the design ends up */
@property --acc-1 { syntax: "<color>"; inherits: false; initial-value: #b16cea; }
@property --acc-2 { syntax: "<color>"; inherits: false; initial-value: #ff5e69; }
@property --acc-3 { syntax: "<color>"; inherits: false; initial-value: #ffa84b; }
.hero-wf .hero-accent { font-style: normal; color: #ff8a56; /* fallback */
  /* twice as wide as the word (mirrored), so Claude's "refine" can sweep it; the three colours are
     variables Claude changes on each edit (hero-motion.js), blended by the transition below */
  background: linear-gradient(95deg, var(--acc-1), var(--acc-2) 25%, var(--acc-3) 50%, var(--acc-2) 75%, var(--acc-1)) 0 0 / 200% 100%;
  transition: --acc-1 .9s ease, --acc-2 .9s ease, --acc-3 .9s ease; -webkit-background-clip: text; background-clip: text;
  color: transparent; -webkit-text-fill-color: transparent; padding-bottom: .06em; }
.hero-wf .actions { position: relative; display: flex; justify-content: center; align-items: center; gap: 20px; margin-top: 30px; }

/* ---------- Figma details: file tab, zoom, panels, selection ---------- */
.hero-wf .fg-tabs { display: flex; align-items: center; gap: 6px; height: 100%; margin-left: 20px; font-size: 12px; color: #ffffff8c; }
.hero-wf .fg-tabs__home { display: grid; place-items: center; width: 30px; height: 28px; border-radius: 6px; }
.hero-wf .fg-tabs__tab { display: flex; align-items: center; gap: 14px; height: 30px; padding: 0 10px 0 14px; border-radius: 6px; background: #ffffff0f; color: #ffffffd9; }
.hero-wf .fg-tabs__tab svg { opacity: .5; }
.hero-wf .fg-zoom { margin-right: 14px; font-size: 12px; color: #ffffff8c; }

.hero-wf .fg-panel-tabs { display: flex; gap: 16px; padding: 12px 16px; border-bottom: 1px solid #ffffff12; font-size: 12px; color: rgba(255, 255, 255, .6); }
.hero-wf .fg-panel-tabs b { font-weight: 600; color: #fff; }
.hero-wf .fg-group { padding: 10px 8px 12px; border-bottom: 1px solid #ffffff0d; }
.hero-wf .fg-group__title { margin: 0 8px 6px; font-size: 11px; font-weight: 600; color: #ffffffd9; }
.hero-wf .fg-row {
  transition: background-color .3s, color .3s;
  display: flex; align-items: center; gap: 8px; height: 26px; margin: 0; padding: 0 8px;
  border-radius: 4px; font-size: 11.5px; color: #ffffffa6; text-decoration: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
a.fg-row:hover { background: #ffffff0f; color: #fff; }
.hero-wf .fg-row.is-current { color: #fff; }
.hero-wf .fg-row--child { padding-left: 26px; }
.hero-wf .fg-row.is-selected { background: #0d99ff33; color: #fff; }
.hero-wf .fg-check { width: 8px; height: 4px; margin: -3px 0 0 -2px; border: solid #fff; border-width: 0 0 1.5px 1.5px; transform: rotate(-45deg); }
.hero-wf .fg-row:not(.is-current):not(.fg-row--frame):not(.fg-row--child) { padding-left: 24px; }
.hero-wf .fg-ico { flex: none; position: relative; width: 10px; height: 10px; opacity: .8; }
.hero-wf .fg-ico--frame { background: linear-gradient(currentColor, currentColor) 3px 0 / 1px 100% no-repeat, linear-gradient(currentColor, currentColor) 7px 0 / 1px 100% no-repeat, linear-gradient(currentColor, currentColor) 0 3px / 100% 1px no-repeat, linear-gradient(currentColor, currentColor) 0 7px / 100% 1px no-repeat; }
.hero-wf .fg-ico--text::before { content: "T"; position: absolute; inset: -3px 0 0; font-size: 11px; font-weight: 600; line-height: 1.2; text-align: center; }
.hero-wf .fg-ico--rect { border: 1px solid currentColor; border-radius: 2px; }

.hero-wf .fg-props { margin: 0; }
/* The visitor has "selected" Ajay: a component instance, so the panel shows Figma's purple
   component header and his facts as component properties */
.hero-wf .fg-instance__head { display: flex; align-items: center; gap: 6px; margin: 0 8px 8px; font-size: 11.5px; font-weight: 600; }
.hero-wf .fg-instance__icon { flex: none; color: #b07cff; }
.hero-wf .fg-instance__name { color: #c9a8ff; }
.hero-wf .fg-instance__kind { margin-left: auto; padding: 1px 6px; border-radius: 4px; background: rgba(151, 71, 255, .18); color: #c9a8ff; font-size: 10px; font-weight: 500; }
.hero-wf .fg-props div { display: grid; grid-template-columns: 64px minmax(0, 1fr); align-items: center; gap: 8px; height: 30px; padding: 0 8px; font-size: 11.5px; }
.hero-wf .fg-props dt { color: rgba(255, 255, 255, .55); }
.hero-wf .fg-props dd { display: flex; align-items: center; justify-content: space-between; gap: 6px; min-width: 0; margin: 0; padding: 4px 6px 4px 8px; border-radius: 5px;
  background: #ffffff0d; color: #ffffffe0; transition: background-color .2s; }
.hero-wf .fg-props dd span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hero-wf .fg-props dd svg { flex: none; color: rgba(255, 255, 255, .45); }
.hero-wf .fg-props div:hover dd { background: #ffffff17; }
/* Gradient fill: the Linear row, the bar with its stop markers, then the stop list */
.hero-wf .fg-gradient { display: flex; align-items: center; gap: 8px; height: 26px; margin: 0; padding: 0 8px; font-size: 11.5px; color: #ffffffd9; }
.hero-wf .fg-gradient i { width: 14px; height: 14px; border-radius: 3px; background: linear-gradient(90deg, #b16cea, #ff5e69 45%, #ff8a56 75%, #ffa84b); box-shadow: inset 0 0 0 1px #ffffff26; }
.hero-wf .fg-gradient span { margin-left: auto; color: #ffffff73; font-variant-numeric: tabular-nums; }
.hero-wf .fg-gradbar { position: relative; height: 10px; margin: 6px 14px 12px; border-radius: 3px; background: linear-gradient(90deg, #b16cea, #ff5e69 45%, #ff8a56 75%, #ffa84b); }
.hero-wf .fg-gradbar b { position: absolute; top: 50%; left: var(--at); width: 12px; height: 12px; border: 2px solid #fff; border-radius: 3px; background: var(--c);
  box-shadow: 0 1px 3px rgba(0, 0, 0, .5); transform: translate(-50%, -50%); }
.hero-wf .fg-fill { display: grid; grid-template-columns: 34px 14px 1fr; align-items: center; gap: 8px; height: 24px; margin: 0; padding: 0 8px; font-size: 11.5px; color: #ffffffbf; font-variant-numeric: tabular-nums; }
.hero-wf .fg-fill em { font-style: normal; color: #ffffff73; }
.hero-wf .fg-fill i { width: 14px; height: 14px; border-radius: 3px; box-shadow: inset 0 0 0 1px #ffffff26; }
.hero-wf .fg-field { display: block; margin: 0 8px 6px; padding: 5px 8px; border-radius: 4px; background: #ffffff0d; font-size: 11.5px; color: #ffffffbf; }
.hero-wf .fg-field--menu { display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.hero-wf .fg-field--menu svg { flex: none; color: rgba(255, 255, 255, .45); }
.hero-wf .fg-field--icon { display: flex; align-items: center; gap: 6px; font-variant-numeric: tabular-nums; }
.hero-wf .fg-field--icon svg { flex: none; color: rgba(255, 255, 255, .45); }
.hero-wf .fg-pair { display: flex; margin: 0; }
.hero-wf .fg-pair .fg-field { flex: 1; }
.hero-wf .fg-pair .fg-field + .fg-field { margin-left: 0; }

/* Supporting line under the headline */
.hero-wf .fg-lead { max-width: 50ch; margin: 22px 0 0; text-align: center; font-size: 17px; line-height: 1.55; color: rgba(255, 255, 255, .72); text-wrap: pretty; }

/* Frame name in the canvas corner, as Figma shows above a frame */
.hero-wf .fg-frame-label { position: absolute; top: 18px; left: 20px; display: flex; align-items: center; gap: 6px; margin: 0; font-size: 11.5px; color: rgba(255, 255, 255, .6); }

/* The headline is "selected": blue box, corner handles and a size pill */
/* Floating selection box: the script moves it between canvas elements */
.hero-wf .fg-select { position: absolute; top: 0; left: 0; z-index: 12; width: 0; height: 0; outline: 1px solid #0d99ff; pointer-events: none; opacity: 0; }
.hero-wf .fg-handle { position: absolute; width: 7px; height: 7px; border: 1px solid #0d99ff; background: #fff; }
.hero-wf .fg-handle:nth-of-type(1) { top: -4px; left: -4px; }
.hero-wf .fg-handle:nth-of-type(2) { top: -4px; right: -4px; }
.hero-wf .fg-handle:nth-of-type(3) { bottom: -4px; left: -4px; }
.hero-wf .fg-handle:nth-of-type(4) { bottom: -4px; right: -4px; }
.hero-wf .fg-size { position: absolute; left: 50%; bottom: -26px; transform: translateX(-50%); padding: 2px 6px; border-radius: 3px; background: #0a72c6; color: #fff; font-size: 11px; font-weight: 500; white-space: nowrap; font-variant-numeric: tabular-nums; }

/* Buttons */
/* "View my work" uses the site's .button--gradient; only the hero's padding differs */
.hero-wf .primary { padding-inline: 2rem 1.85rem; }

/* "My Works": black button with a light sweeping around its border */
.hero-wf .glow { position: relative; display: inline-block; border-radius: 12px; overflow: hidden; }
.hero-wf .glow__anim, .hero-wf .glow__masker { position: absolute; pointer-events: none; }
.hero-wf .glow__anim { top: 50%; left: 50%; width: 100%; transform: translate(-50%, -50%); }
.hero-wf .glow__anim::before, .hero-wf .glow__border::before { content: ""; float: left; padding-top: 100%; }
.hero-wf .glow__anim::after, .hero-wf .glow__border::after { content: ""; display: block; clear: both; }
.hero-wf .glow__light { position: absolute; inset: 0; opacity: .12; filter: blur(8px); }
.hero-wf .glow__masker {
  inset: 0; padding: .06rem; border-radius: 12px;
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0); -webkit-mask-composite: xor;
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0); mask-composite: exclude;
}
.hero-wf .glow__border { position: absolute; top: 50%; left: 50%; width: 100%; transform: translate(-50%, -50%); }
.hero-wf .glow__light, .hero-wf .glow__border {
  background: conic-gradient(from 0deg at 50% 50%, rgba(255, 255, 255, .5) 0deg, rgba(255, 255, 255, 0) 60deg, rgba(255, 255, 255, 0) 310deg, rgba(255, 255, 255, .5) 360deg) center / cover no-repeat;
}
.hero-wf .glow__button {
  position: relative; z-index: 1; display: flex; align-items: center; min-height: 56px; padding: 0 3.25rem;
  border: 1px solid #fff9; border-radius: 12px; background-color: #4848497d;
  font-size: 1rem; font-weight: 600; line-height: 1; letter-spacing: -.005em; text-decoration: none;
  transition: background-color .3s, border-color .3s;
}
.hero-wf .glow__button span { color: #fff; }
.hero-wf .glow__button::after {
  content: ""; position: absolute; top: -2px; left: -2px; width: calc(100% + 4px); height: calc(100% + 4px);
  border-radius: 12px; opacity: .7; transition: opacity 1s;
  background: radial-gradient(85% 120% at 50% 120%, rgba(255, 255, 255, .24) 0%, rgba(255, 255, 255, 0) 100%);
}
.hero-wf .glow__button:hover { background-color: #58585a99; border-color: #fffc; }
.hero-wf .glow__button:hover::after { opacity: 1; }

/* Multiplayer cursors */
.hero-wf .cursor { position: absolute; z-index: 23; display: flex; pointer-events: none; }
.hero-wf .cursor__inner { position: relative; display: flex; flex-direction: column; }
.hero-wf .cursor__arrow { position: absolute; top: -42px; left: -36px; width: 48px; height: auto; }
/* Cursors are placed around the buttons row */
.hero-wf .cursor--ajay { top: 46px; left: -62px; }
.hero-wf .cursor--ajay .cursor__tag { padding: 4px 8px; border-radius: 6px; background: #0a72c6; } /* Figma blue, deepened for 4.5:1 white text */
.hero-wf .cursor--you { top: 34px; right: -150px; }
.hero-wf .cursor--you .cursor__tag { display: flex; align-items: center; padding: 8px 12px; border: 1.5px solid #fff; border-radius: 3px 20px 20px; background: #000; box-shadow: 0 8px 12px -4px #00000080; }
/* The AI agent cursor: a quiet third collaborator, moved by hero-motion.js */
.hero-wf .cursor--ai { left: 0; top: 0; align-items: flex-start; gap: 2px; opacity: 0; }
.hero-wf .cursor-ai__arrow { flex: none; margin: -3px 0 0 -3px; filter: drop-shadow(0 2px 3px rgba(0, 0, 0, .35)); }
.hero-wf .cursor-ai__tag { display: inline-flex; align-items: center; gap: 5px; margin-top: 15px; padding: 4px 9px 4px 6px; border-radius: 3px 12px 12px; background: #6d3df5; color: #fff;
  font-size: 12.5px; font-weight: 600; line-height: 1.2; box-shadow: 0 6px 14px -6px rgba(109, 61, 245, .6); white-space: nowrap; }
.hero-wf .cursor-ai__logo { display: grid; place-items: center; width: 16px; height: 16px; margin-left: -3px; border-radius: 50%; background: #f4f1ea; }
/* Claude's own selection (violet, like a second collaborator) and its "refine" sweep */
.hero-wf .ai-sel { position: absolute; left: 0; top: 0; z-index: 22; border: 1.5px solid #7c4dff; pointer-events: none; opacity: 0; transition: opacity .3s; }
.hero-wf .ai-sel.is-on { opacity: 1; }
.hero-wf .ai-sel i { position: absolute; width: 7px; height: 7px; border: 1.5px solid #7c4dff; background: #fff; }
.hero-wf .ai-sel i:nth-child(1) { top: -4px; left: -4px; }
.hero-wf .ai-sel i:nth-child(2) { top: -4px; right: -4px; }
.hero-wf .ai-sel i:nth-child(3) { bottom: -4px; left: -4px; }
.hero-wf .ai-sel i:nth-child(4) { bottom: -4px; right: -4px; }
.hero-wf .hero-accent.is-refining { animation: accent-refine 1.4s cubic-bezier(.45, 0, .2, 1); }
@keyframes accent-refine { 50% { background-position: 100% 0; } }
@media (max-width: 767px) { .hero-wf .cursor--ai, .hero-wf .ai-sel { display: none; } }
.hero-wf .cursor__text { font-size: 16px; font-weight: 700; line-height: 1; letter-spacing: .2px; }
.hero-wf .genius-cursor-icon { position: relative; display: grid; place-items: center; min-width: 20px; min-height: 20px; margin: -1px 8px 0 0; }
.hero-wf .genius-cursor-icon img { position: absolute; inset: 0; width: 20px; height: 20px; }
.hero-wf .genius-cursor-hole { position: relative; width: 5px; height: 5px; border-radius: 100%; background: #000; }


/* ---------- Motion ----------
   Entrance, cursors, selection, tilt and scroll are driven by src/js/hero-motion.js
   (Motion, the framework-free version of Framer Motion). CSS only handles the
   always-on loops and a safe initial state. */
@keyframes hw-border { to { transform: translate(-50%, -50%) rotate(360deg); } }
@keyframes hw-light { to { transform: rotate(360deg); } }
@keyframes hw-spin { to { transform: rotate(360deg); } }
@keyframes hw-failsafe { to { opacity: 1; } }

/* Waits for the motion script, which reveals it within about a second;
   revealed anyway after 2.5s if the script never runs */
.hero-pending :is(.figma, .hero-role, .hero-headline span, .fg-lead, .actions .primary, .actions .glow, .greeting__fallback, .window-controls, .fg-tabs > *, .tool-icon, .figma-controls > *,
  .figma-left-panel, .figma-right-panel, .fg-frame-label, .cursor, .fg-select) { opacity: 0; animation: hw-failsafe 0s 2.5s forwards; }
/* while the loading screen is up, the hero stays hidden: the failsafe only starts counting once it has gone
   (otherwise it fired under the loader and the finished hero flashed before its intro) */
.is-preloading.hero-pending :is(.figma, .hero-role, .hero-headline span, .fg-lead, .actions .primary, .actions .glow, .greeting__fallback, .window-controls, .fg-tabs > *, .tool-icon, .figma-controls > *,
  .figma-left-panel, .figma-right-panel, .fg-frame-label, .cursor, .fg-select) { animation: none; }
@media (prefers-reduced-motion: no-preference) {
  /* play briefly, then rest */
  .hero-wf .glow__light { animation: hw-light 2.5s linear 3; }
  .hero-wf .glow__border { animation: hw-border 2.5s linear 3; }
  .hero-wf .genius-dots { animation: hw-spin 3s ease-in-out 2; }
}

/* ---------- Responsive (same breakpoints as the original) ---------- */
@media (max-width: 1279px) {
  .hero-wf .figma { --panel: 190px; max-width: 920px; margin-top: -16px; }
  .hero-wf__hello { font-size: 83px; height: 92px; line-height: 92px; }
  .hero-wf__hello svg { height: 92px; }
  .hero-wf .hero-headline { font-size: 38px; }
  .hero-wf .fg-props div { grid-template-columns: 62px minmax(0, 1fr); }
  .hero-wf .cursor--ajay { top: calc(100% + 30px); left: 24px; }
  .hero-wf .cursor--you { top: calc(100% + 22px); right: 6px; }
  .hero-wf .fg-lead { font-size: 15px; margin-top: 30px; }
  .hero-wf .figma { height: max(600px, calc(100svh - var(--hdr) - 94px)); }
}
@media (max-width: 991px) {
  .hero-wf__container { padding-inline: 24px; }
  .hero-wf__hello { font-size: 67px; height: 74px; line-height: 74px; }
  .hero-wf__hello svg { height: 74px; }
  .hero-wf { --hdr: var(--site-header-h, 113px); }
  .hero-wf .figma { width: auto; max-width: 600px; height: auto; margin-top: -14px; overflow: hidden;
    -webkit-mask-image: linear-gradient(to bottom, #000 calc(100% - 90px), transparent); mask-image: linear-gradient(to bottom, #000 calc(100% - 90px), transparent); }
  .hero-wf .figma-left-panel, .hero-wf .figma-right-panel { display: none; }
  /* Canvas grows with its content instead of a fixed desktop height */
  .hero-wf .figma-canvas { display: block; height: auto; }
  .hero-wf .teaser-absolute { position: relative; inset: auto; padding: 72px 32px 130px; }
  .hero-wf .fg-frame-label { top: 16px; left: 16px; }
  .hero-wf .hero-headline { font-size: 40px; }
  .hero-wf .glow__button { padding-inline: 2rem; }
  /* Cursors sit in the canvas corners; no hover on touch screens */
  .hero-wf .cursor--ajay { top: calc(100% + 34px); left: 30px; }
  .hero-wf .cursor--you { top: calc(100% + 26px); right: 6px; }
}
@media (max-width: 767px) {
  .hero-wf { --hdr: var(--site-header-h, 90px); padding-bottom: 0; }
  .hero-wf__container { padding-inline: 16px; }
  .hero-wf__hello { font-size: 53px; height: 64px; line-height: 64px; }
  .hero-wf__hello svg { height: 64px; }
  .hero-wf .figma { max-width: 100%; margin-top: -12px; box-shadow: 0 4px 60px #f0f0f01c; }

  /* Compact window chrome */
  .hero-wf .fg-tabs { margin-left: 12px; min-width: 0; }
  .hero-wf .fg-tabs__home, .hero-wf .fg-zoom, .hero-wf .fg-frame-label { display: none; }
  .hero-wf .fg-tabs__tab { height: 24px; gap: 8px; padding: 0 8px; font-size: 11px; min-width: 0; }
  .hero-wf .fg-tabs__tab span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .hero-wf .figma-tab-wrapper { min-width: 0; }
  .hero-wf .figma-tab-wrapper { height: 36px; padding-inline: 12px; }
  .hero-wf .window-controls-container { width: 46px; }
  .hero-wf .window-controls { width: 10px; height: 10px; font-size: 7px; }
  .hero-wf .figma-toolbar { height: 44px; padding-right: 10px; }
  .hero-wf .tool-icon { height: 36px; }
  .hero-wf .tool-icon:nth-child(n+5) { display: none; } /* keep logo, move, frame, rectangle */
  .hero-wf .figma-user-ring { padding: 3px; }
  .hero-wf .figma-user, .hero-wf .genius-div, .hero-wf .figma-ai { width: 20px; height: 20px; }
  .hero-wf .figma-user-ring--ai { margin-left: 6px; }
  .hero-wf .figma-user-ring.left { margin-right: 6px; }
  .hero-wf .figma-share-button { margin-left: 10px; padding: 4px 12px; font-size: 13px; }

  /* Canvas content */
  .hero-wf .teaser-absolute { padding: 64px 20px 120px; }
  .hero-wf .fg-lead { font-size: 15px; margin-top: 30px; }
  .hero-wf .hero-headline { font-size: 36px; line-height: 1.1; }
  .hero-wf .hero-headline span { display: block; } /* each line its own block: the reveal mask clips wrapped inline text */
  .hero-wf .actions { flex-direction: column; align-self: stretch; gap: 14px; margin-top: 28px; }
  .hero-wf .primary, .hero-wf .glow, .hero-wf .glow__button { width: 100%; min-height: 54px; justify-content: center; text-align: center; }
  .hero-wf .glow__button { padding-block: 12px; }

  /* Smaller cursors */
  .hero-wf .cursor__arrow { top: -28px; left: -24px; width: 32px; }
  .hero-wf .cursor--ajay { top: calc(100% + 30px); left: 26px; }
  .hero-wf .cursor--you { top: calc(100% + 22px); right: 4px; }
  .hero-wf .cursor--ajay .cursor__tag { padding: 3px 6px; border-radius: 5px; }
  .hero-wf .cursor--you .cursor__tag { padding: 5px 9px; }
  .hero-wf .cursor__text { font-size: 12px; }
  .hero-wf .genius-cursor-icon, .hero-wf .genius-cursor-icon img { min-width: 14px; min-height: 14px; width: 14px; height: 14px; margin-right: 5px; }
}
@media (max-width: 479px) {
  .hero-wf { background-size: 1200px; }
  .hero-wf__hello { font-size: 46px; }
  /* not enough width for both on small phones: the greeting alone, centred */
  .greeting-name { display: none; }
  .greeting { justify-content: center; }
  .hero-wf .figma { margin-top: -12px; }
  .hero-wf .figma-user-ring:not(.left), .hero-wf .figma-user-ring--ai { display: none; } /* room for Share on small phones */
  .hero-wf .hero-headline { font-size: 32px; }
}

/* Desktop: the Figma window spans 90% of the screen (panels keep their width, the canvas grows) */
@media (min-width: 992px) {
  .hero-wf__container { max-width: none; padding-inline: 0; }
  .hero-wf .figma { width: 90vw; max-width: none; }
}

/* The greeting as a component instance: Figma's purple component label, and the Language variant
   dropdown beside it (its value flips, with a blue "just picked" flash, as each word swaps in) */
/* on the selection's top-left corner, like a Figma instance's name; it travels with the box */
.hero-variant { position: absolute; left: -1.5px; bottom: calc(100% + 8px); display: flex; align-items: center; gap: .6rem; white-space: nowrap; font: 500 12px/1 var(--font, system-ui); letter-spacing: 0; }
.hero-variant__name { display: inline-flex; align-items: center; gap: .35rem; color: #b98cff; }
.hero-variant__prop { display: inline-flex; align-items: center; gap: .5rem; padding: .35rem .5rem .35rem .65rem; border-radius: 6px; background: #2c2c2e; box-shadow: 0 0 0 1px rgba(255, 255, 255, .06); color: rgba(255, 255, 255, .5); }
.hero-variant__prop b { min-width: 4.8rem; color: #f4f4f6; font-weight: 500; border-radius: 3px; transition: background-color .5s, color .5s; }
.hero-variant__prop b.is-picked { animation: variant-pick .9s ease-out; }
.hero-variant__prop svg { color: rgba(255, 255, 255, .45); }
@keyframes variant-pick { 0% { background: rgba(13, 153, 255, .35); box-shadow: 0 0 0 3px rgba(13, 153, 255, .35); } 100% { background: transparent; box-shadow: 0 0 0 3px transparent; } }
@media (prefers-reduced-motion: reduce) { .hero-variant__prop b.is-picked { animation: none; } }

/* the selected instance's outline: component purple, white handles; it eases to each variant's size */
.hero-sel { position: absolute; left: 0; top: 0; width: 0; height: 0; z-index: 2; border: 1.5px solid #9747ff; pointer-events: none; opacity: 0;
  transition: left .5s cubic-bezier(.65, 0, .35, 1), top .5s cubic-bezier(.65, 0, .35, 1), width .5s cubic-bezier(.65, 0, .35, 1), height .5s cubic-bezier(.65, 0, .35, 1), opacity .4s; }
.hero-sel.is-on { opacity: 1; }
.hero-sel i { position: absolute; width: 8px; height: 8px; border: 1.5px solid #9747ff; background: #fff; }
.hero-sel i:nth-child(1) { top: -4.5px; left: -4.5px; } .hero-sel i:nth-child(2) { top: -4.5px; right: -4.5px; }
.hero-sel i:nth-child(3) { bottom: -4.5px; left: -4.5px; } .hero-sel i:nth-child(4) { bottom: -4.5px; right: -4.5px; }
@media (prefers-reduced-motion: reduce) { .hero-sel { transition: none; } }
.hero-wf__hello .hero-variant svg { display: inline-block; height: auto; width: auto; filter: none; } /* not the greeting-size SVG rule */

/* Dev Mode in the hero's right panel: the selected layer as CSS, like Figma's Dev Mode inspect panel */
.hero-wf .fg-panel-tabs { display: flex; align-items: center; }
.hero-wf .fg-devmode { display: inline-flex; align-items: center; gap: 4px; margin-left: auto; padding: 2px 6px; border-radius: 4px; background: rgba(20, 174, 92, .16); color: #4bd08a; font-size: 10px; font-style: normal; font-weight: 600; white-space: nowrap; }
.hero-wf .fg-dev__head { display: flex; align-items: center; gap: 6px; }
.hero-wf .fg-dev__head > svg:first-child { color: #4bd08a; }
.hero-wf .fg-dev__lang { display: inline-flex; align-items: center; gap: 4px; margin-left: auto; padding: 2px 6px; border-radius: 4px; background: #ffffff0f; color: #ffffffb3; font-weight: 500; }
.hero-wf .fg-dev__copy { color: #ffffff80; }
.hero-wf .fg-code { margin: 4px 8px 0; padding: 10px 10px 11px; overflow: hidden; border-radius: 6px; background: #1a1a1c; box-shadow: inset 0 0 0 1px #ffffff0d;
  color: #d4d4d8; font: 500 10.5px/1.6 ui-monospace, "SF Mono", Menlo, monospace; white-space: pre-wrap; overflow-wrap: anywhere; }
.hero-wf .fg-code .t-sel { color: #ffb86b; }
.hero-wf .fg-code .t-prop { color: #8fc2ff; }
.hero-wf .fg-code .t-num { color: #f5a4bd; }
.hero-wf .fg-code .t-str { color: #9fe3b4; }
.hero-wf .fg-code .t-swatch { display: inline-block; width: 8px; height: 8px; margin-right: 4px; border-radius: 2px; box-shadow: inset 0 0 0 1px #ffffff26; vertical-align: -0.5px; }
.hero-wf .fg-code .ln { display: block; }
.hero-wf .fg-code code:empty::before { content: " "; } /* keeps the box its height while it waits */
@media (prefers-reduced-motion: no-preference) {
  .hero-wf .fg-code code.is-fresh .ln { animation: fg-ln .32s ease-out both; animation-delay: calc(var(--i) * 55ms); }
}
@keyframes fg-ln { from { opacity: 0; transform: translateX(-6px); } }
