/* =========================================================
   HERO VISUAL – taken from "index 1.html"
   All classes are prefixed with "hv-" and scoped under
   .hero-visual.hv so they never clash with landing.css.
   ========================================================= */
.hero-visual.hv {
  --ink: #f3f6ff;
  --ink-2: #c3cce6;
  --muted: #8b97ba;
  --line: rgba(122, 152, 235, .16);
  --blue: #4d86ff;
  --green: #2fd27c;
  --grad: linear-gradient(100deg, #1f5eff 0%, #3b7bff 45%, #16c2f3 100%);
  --shadow: 0 12px 30px -12px rgba(0, 0, 0, .6), 0 0 0 1px rgba(122, 152, 235, .06);
  --head: "Montserrat", sans-serif;
  display: block;
  width: 100%;
}
.hero-visual.hv svg { display: block; max-width: 100%; }
.hero-visual.hv h4,
.hero-visual.hv p { margin: 0; }
.hero-visual.hv .hv-ed-canvas p { margin: 6px 0 12px; }
.hero-visual.hv .hv-ed-logo { white-space: nowrap; }

.hero-visual.hv{position:relative;height:640px;min-width:0;isolation:isolate;animation:hv-rise 1.1s .2s cubic-bezier(.2,.7,.2,1) both}
.hero-visual.hv .hv-mesh-floor{position:absolute;z-index:-2;left:-18%;right:-18%;top:350px;height:480px;border-radius:50%;background:radial-gradient(rgba(31,94,255,.10),transparent 62%),radial-gradient(rgba(31,94,255,.42) .9px,transparent 1.2px) 0 0/14px 14px;transform:perspective(520px) rotateX(58deg);mask-image:linear-gradient(transparent,#000 30%,transparent 85%);-webkit-mask-image:linear-gradient(transparent,#000 30%,transparent 85%);animation:hv-floor 14s ease-in-out infinite alternate;pointer-events:none}
.hero-visual.hv .hv-visual-aura{position:absolute;z-index:-3;width:80%;height:62%;top:22%;left:10%;border-radius:50%;background:radial-gradient(rgba(31,94,255,.22),rgba(22,194,243,.08) 45%,transparent 72%);filter:blur(28px);animation:hv-breathe 6s ease-in-out infinite}
.hero-visual.hv .hv-waves{position:absolute;z-index:-1;left:-12%;right:-12%;top:380px;height:200px;width:124%;pointer-events:none}
.hero-visual.hv .hv-waves path{fill:none;stroke-width:1.4;stroke-linecap:round;stroke-dasharray:6 10;animation:hv-dash 10s linear infinite}
.hero-visual.hv .hv-waves path:nth-child(2){animation-duration:14s;animation-direction:reverse}
.hero-visual.hv .hv-waves path:nth-child(3){animation-duration:18s}
.hero-visual.hv .hv-globe-scene{position:absolute;z-index:3;width:290px;height:290px;top:0;left:50%;margin-left:-145px;animation:hv-hover 7s ease-in-out infinite}
.hero-visual.hv .hv-editor-stage{position:absolute;z-index:4;left:2%;right:0;top:282px;animation:hv-efloat 7s ease-in-out infinite}
.hero-visual.hv .hv-editor-backlight{position:absolute;inset:14% 6% -4%;z-index:-1;border-radius:40%;background:radial-gradient(rgba(31,94,255,.35),rgba(22,194,243,.1) 45%,transparent 70%);filter:blur(30px);animation:hv-breathe 5.5s ease-in-out infinite}
.hero-visual.hv .hv-editor{position:relative;border-radius:20px;background:#fff;border:1px solid #d6e0f5;box-shadow:0 40px 70px -25px rgba(14,40,120,.45),0 0 0 6px rgba(255,255,255,.7),0 0 0 7px rgba(31,94,255,.12);transform:perspective(1600px) rotateX(9deg) rotateY(-16deg) rotateZ(3deg);transform-origin:50% 50%;transition:transform .8s cubic-bezier(.2,.7,.2,1)}
.hero-visual.hv .hv-editor-stage:hover .hv-editor{transform:perspective(1600px) rotateX(2deg) rotateY(-4deg) rotateZ(0)}
.hero-visual.hv .hv-trace{position:absolute;inset:-1px;width:calc(100% + 2px);height:calc(100% + 2px);overflow:visible;pointer-events:none;z-index:6}
.hero-visual.hv .hv-trace rect{fill:none;stroke:url(#traceGrad);stroke-width:2.5;stroke-linecap:round;stroke-dasharray:140 860;animation:hv-trace 6s linear infinite;filter:drop-shadow(0 0 4px rgba(22,194,243,.9))}
.hero-visual.hv .hv-ed-top{display:flex;align-items:center;gap:12px;padding:10px 14px;border-bottom:1px solid #eef2fa;background:linear-gradient(#fcfdff,#f5f8ff);border-radius:20px 20px 0 0}
.hero-visual.hv .hv-ed-logo{display:flex;align-items:center;gap:6px;font-family:var(--head);font-weight:700;font-size:12px;color:#0b1533}
.hero-visual.hv .hv-ed-logo i{width:18px;height:18px;border-radius:6px;background:var(--grad)}
.hero-visual.hv .hv-ed-tabs{display:flex;gap:4px;margin-left:8px}
.hero-visual.hv .hv-ed-tabs span{font-size:10.5px;font-weight:600;color:#6b7591;padding:5px 9px;border-radius:7px}
.hero-visual.hv .hv-ed-tabs span.hv-on{background:#eef4ff;color:#1f5eff}
.hero-visual.hv .hv-ed-icons{margin-left:auto;display:flex;gap:8px;color:#8a94b0}
.hero-visual.hv .hv-ed-icons svg{width:14px;height:14px}
.hero-visual.hv .hv-ed-pub{display:inline-flex;align-items:center;gap:5px;font-size:10.5px;font-weight:700;color:#fff;background:var(--grad);padding:6px 11px;border-radius:8px;box-shadow:0 6px 14px -6px rgba(31,94,255,.8)}
.hero-visual.hv .hv-ed-pub svg{width:11px;height:11px}
.hero-visual.hv .hv-ed-body{display:grid;grid-template-columns:46px 1fr}
.hero-visual.hv .hv-ed-side{display:flex;flex-direction:column;align-items:center;gap:10px;padding:12px 0;border-right:1px solid #eef2fa;background:#fbfcff;border-radius:0 0 0 20px}
.hero-visual.hv .hv-ed-side i{width:28px;height:28px;border-radius:8px;display:grid;place-items:center;color:#8a94b0;transition:all .3s}
.hero-visual.hv .hv-ed-side i.hv-on{background:var(--grad);color:#fff;box-shadow:0 6px 14px -6px rgba(31,94,255,.9)}
.hero-visual.hv .hv-ed-side svg{width:14px;height:14px}
.hero-visual.hv .hv-ed-main{padding:14px}
.hero-visual.hv .hv-ed-canvas{position:relative;border-radius:14px;padding:26px 22px 24px;text-align:center;overflow:hidden;background:linear-gradient(160deg,#eaf1ff 0%,#f4f0ff 55%,#e4f8ff 100%);outline:1.5px dashed rgba(31,94,255,.45);outline-offset:-1px}
.hero-visual.hv .hv-ed-canvas .hv-sel{position:absolute;top:8px;left:8px;font-size:9.5px;font-weight:700;color:#fff;background:#1f5eff;padding:3px 8px;border-radius:5px;z-index:2}
.hero-visual.hv .hv-ed-canvas .hv-handles i{position:absolute;width:8px;height:8px;border-radius:2px;background:#fff;border:1.5px solid #1f5eff;z-index:2}
.hero-visual.hv .hv-ed-canvas .hv-handles i:nth-child(1){top:-3px;right:-3px}
.hero-visual.hv .hv-ed-canvas .hv-handles i:nth-child(2){bottom:-3px;left:-3px}
.hero-visual.hv .hv-ed-canvas .hv-handles i:nth-child(3){bottom:-3px;right:-3px}
.hero-visual.hv .hv-ed-canvas h4{position:relative;z-index:1;font-size:23px;color:#0b1533;line-height:1.15}
.hero-visual.hv .hv-ed-canvas h4 .hv-rot{display:inline-block;background:var(--grad);-webkit-background-clip:text;background-clip:text;color:transparent;transition:opacity .35s,transform .35s}
.hero-visual.hv .hv-ed-canvas h4 .hv-rot.hv-out{opacity:0;transform:translateY(8px)}
.hero-visual.hv .hv-ed-canvas p{position:relative;z-index:1;font-size:11px;color:#6b7591;margin:6px 0 12px}
.hero-visual.hv .hv-ed-canvas .hv-go{position:relative;z-index:1;display:inline-flex;font-size:10.5px;font-weight:700;background:var(--grad);color:#fff;padding:7px 14px;border-radius:8px;animation:hv-press 8s ease-in-out infinite}
.hero-visual.hv .hv-ed-canvas .hv-mtn{position:absolute;bottom:0;left:0;width:100%;height:56px}
.hero-visual.hv .hv-ed-canvas .hv-sun{position:absolute;right:26px;top:26px;width:26px;height:26px;border-radius:50%;background:radial-gradient(circle,#fff,#bfe6ff);box-shadow:0 0 20px #bfe6ff}
.hero-visual.hv .hv-ed-blocks{display:grid;grid-template-columns:repeat(4,1fr);gap:8px;margin-top:10px}
.hero-visual.hv .hv-ed-blocks div{border:1px solid #e6ecf8;border-radius:10px;padding:9px 4px;text-align:center;font-size:10px;font-weight:600;color:#36415f;background:#fff;transition:all .3s}
.hero-visual.hv .hv-ed-blocks div svg{width:16px;height:16px;margin:0 auto 4px;color:#1f5eff}
.hero-visual.hv .hv-ed-blocks div.hv-on{border-color:#1f5eff;background:#eef4ff;color:#1f5eff;transform:translateY(-2px);box-shadow:0 8px 16px -10px rgba(31,94,255,.8)}
.hero-visual.hv .hv-cursor{position:absolute;z-index:7;width:22px;height:22px;left:72%;top:38%;animation:hv-cursor 8s ease-in-out infinite;filter:drop-shadow(0 4px 6px rgba(0,0,0,.25))}
.hero-visual.hv .hv-cursor .hv-lbl{position:absolute;left:16px;top:16px;font-size:9.5px;font-weight:700;color:#fff;background:#7a5cff;padding:2px 7px;border-radius:6px;white-space:nowrap}
.hero-visual.hv .hv-e-chip{position:absolute;z-index:8;display:flex;align-items:center;gap:8px;background:#fff;border:1px solid var(--line);border-radius:999px;padding:8px 14px;font-size:12px;font-weight:700;color:var(--ink);box-shadow:var(--shadow);white-space:nowrap}
.hero-visual.hv .hv-e-chip i{width:8px;height:8px;border-radius:50%;background:var(--green);box-shadow:0 0 0 4px rgba(47,210,124,.2)}
.hero-visual.hv .hv-e-chip.hv-c1{right:-6px;bottom:-26px;animation:hv-float 6s ease-in-out infinite}
.hero-visual.hv .hv-e-chip.hv-c2{left:-34px;top:58%;animation:hv-float 7s -2s ease-in-out infinite;border-radius:14px;padding:8px 12px 8px 8px}
.hero-visual.hv .hv-e-chip.hv-c2 b{width:26px;height:26px;border-radius:8px;background:var(--grad);display:grid;place-items:center;color:#fff}
.hero-visual.hv .hv-e-chip.hv-c2 b svg{width:13px;height:13px}
.hero-visual.hv .hv-e-chip.hv-c2 em{font-style:normal;font-weight:600;color:var(--muted)}
.hero-visual.hv .hv-typing{display:inline-flex;gap:3px;margin-left:2px}
.hero-visual.hv .hv-typing span{width:4px;height:4px;border-radius:50%;background:var(--blue);animation:hv-blink 1.2s infinite}
.hero-visual.hv .hv-typing span:nth-child(2){animation-delay:.2s}
.hero-visual.hv .hv-typing span:nth-child(3){animation-delay:.4s}
/* ---- globe scene v2 (layered 3D SVG) ---- */
.hero-visual.hv .hv-globe-scene{top:-46px;left:0;right:0;margin:0 auto;width:min(540px,108%);height:auto;aspect-ratio:460/360;transform:translate(calc(var(--mx,0)*16px),calc(var(--my,0)*12px));transition:transform .4s ease-out}
.hero-visual.hv .hv-gs-svg{width:100%;height:100%;overflow:visible;display:block}
.hero-visual.hv .hv-gs-breathe{transform-origin:230px 170px;animation:hv-breathe 6s ease-in-out infinite}
.hero-visual.hv .hv-gs-ring{transform-origin:230px 170px;animation:hv-spin 40s linear infinite}
.hero-visual.hv .hv-gs-arc{transform-origin:230px 170px;animation:hv-spin 7s linear infinite}
.hero-visual.hv .hv-gs-beams path{stroke-dasharray:4 5;animation:hv-dash 6s linear infinite}
.hero-visual.hv .hv-gs-globe{filter:drop-shadow(0 22px 30px rgba(19,64,194,.45)) drop-shadow(0 0 18px rgba(22,194,243,.35))}
.hero-visual.hv .hv-gs-star{transform-origin:230px 66px;animation:hv-star 3s ease-in-out infinite}
.hero-visual.hv .hv-spk{transform-box:fill-box;transform-origin:center;animation:hv-spark 3.2s ease-in-out infinite}
.hero-visual.hv .hv-spk.hv-s2{animation-delay:-.8s}
.hero-visual.hv .hv-spk.hv-s3{animation-delay:-1.6s}
.hero-visual.hv .hv-spk.hv-s4{animation-delay:-2.2s}
.hero-visual.hv .hv-spk.hv-s5{animation-delay:-2.8s}
.hero-visual.hv .hv-tile{animation:hv-tfloat 5s ease-in-out infinite}
.hero-visual.hv .hv-tile.hv-d2{animation-delay:-1.3s}
.hero-visual.hv .hv-tile.hv-d3{animation-delay:-2.6s}
.hero-visual.hv .hv-tile.hv-d4{animation-delay:-3.7s}
.hero-visual.hv .hv-editor-stage{translate:calc(var(--mx,0)*-10px) calc(var(--my,0)*-6px);transition:translate .4s ease-out}
.hero-visual.hv .hv-mesh-floor{background:radial-gradient(rgba(31,94,255,.18),transparent 62%),radial-gradient(rgba(91,141,255,.55) .9px,transparent 1.2px) 0 0/14px 14px}
.hero-visual.hv .hv-visual-aura{background:radial-gradient(rgba(31,94,255,.34),rgba(22,194,243,.12) 45%,transparent 72%)}
.hero-visual.hv .hv-editor{border-color:rgba(122,152,235,.35);box-shadow:0 50px 90px -30px rgba(0,0,0,.75),0 0 0 6px rgba(255,255,255,.06),0 0 0 7px rgba(77,134,255,.3)}
.hero-visual.hv .hv-e-chip{background:rgba(12,23,56,.92);border-color:rgba(122,152,235,.3);color:#fff;box-shadow:0 16px 34px -14px rgba(0,0,0,.7);backdrop-filter:blur(10px)}
@keyframes hv-spark{0%,100%{opacity:.15;transform:scale(.5) rotate(0)}50%{opacity:1;transform:scale(1.2) rotate(45deg)}}
@keyframes hv-tfloat{0%,100%{transform:translateY(0)}50%{transform:translateY(-7px)}}
@keyframes hv-floor{to{transform:perspective(520px) rotateX(58deg) translateY(-14px)}}
@keyframes hv-breathe{0%,100%{opacity:.55;scale:.96}50%{opacity:1;scale:1.04}}
@keyframes hv-dash{to{stroke-dashoffset:-320}}
@keyframes hv-hover{0%,100%{translate:0 0}50%{translate:0 -10px}}
@keyframes hv-star{0%,100%{transform:scale(.8) rotate(0);opacity:.7}50%{transform:scale(1.15) rotate(45deg);opacity:1}}
@keyframes hv-efloat{0%,100%{transform:translateY(0)}50%{transform:translateY(-10px)}}
@keyframes hv-trace{to{stroke-dashoffset:-1000}}
@keyframes hv-press{0%,16%,23%,100%{transform:scale(1)}19%{transform:scale(.9)}}
@keyframes hv-cursor{
  0%,100%{left:72%;top:38%;transform:scale(1)}
  16%{left:50%;top:60%;transform:scale(1)}
  19%{left:50%;top:60%;transform:scale(.8)}
  22%{left:50%;top:60%;transform:scale(1)}
  44%{left:60%;top:84%;transform:scale(1)}
  47%{left:60%;top:84%;transform:scale(.8)}
  50%{left:60%;top:84%;transform:scale(1)}
  72%{left:87%;top:6%;transform:scale(1)}
  75%{left:87%;top:6%;transform:scale(.8)}
  78%{left:87%;top:6%;transform:scale(1)}
}
@keyframes hv-spin{to{transform:rotate(360deg)}}
@keyframes hv-float{0%,100%{transform:translateY(0)}50%{transform:translateY(-10px)}}
@keyframes hv-rise{from{opacity:0;transform:translateY(30px)}to{opacity:1;transform:none}}
@keyframes hv-blink{0%,100%{opacity:.2}50%{opacity:1}}

/* ---- responsive (matches landing.css breakpoints) ---- */
@media (max-width: 1200px) {
  .hero-visual.hv { height: 600px; }
}
@media (max-width: 980px) {
  .hero-visual.hv { height: 620px; max-width: 640px; margin: 10px auto 0; }
}
@media (max-width: 640px) {
  .hero-visual.hv { height: 600px; }
  .hero-visual.hv .hv-globe-scene { top: -10px; width: 100%; height: auto; margin: 0 auto; }
  .hero-visual.hv .hv-editor-stage { top: 215px; }
  .hero-visual.hv .hv-mesh-floor { top: 280px; }
  .hero-visual.hv .hv-waves { top: 300px; }
  .hero-visual.hv .hv-e-chip.hv-c2 { left: 0; top: -26px; }
}
@media (max-width: 420px) {
  .hero-visual.hv .hv-ed-tabs span:nth-child(n+4) { display: none; }
}

/* ---- taller editor mockup (width unchanged) ---- */
.hero-visual.hv .hv-ed-side { gap: 16px; padding: 18px 0; }
.hero-visual.hv .hv-ed-main { padding: 18px; }
.hero-visual.hv .hv-ed-canvas { padding: 48px 22px 78px; }
.hero-visual.hv .hv-ed-canvas h4 { font-size: 26px; }
.hero-visual.hv .hv-ed-canvas p { margin: 10px 0 18px; font-size: 12px; }
.hero-visual.hv .hv-ed-canvas .hv-mtn { height: 84px; }
.hero-visual.hv .hv-ed-blocks { margin-top: 14px; }
.hero-visual.hv .hv-ed-blocks div { padding: 16px 4px; }
.hero-visual.hv { height: 720px; }
@media (max-width: 1200px) { .hero-visual.hv { height: 680px; } }
@media (max-width: 980px) { .hero-visual.hv { height: 700px; } }
@media (max-width: 640px) {
  .hero-visual.hv { height: 690px; }
  .hero-visual.hv .hv-ed-canvas { padding: 34px 16px 60px; }
  .hero-visual.hv .hv-ed-canvas .hv-mtn { height: 60px; }
}
