/* ==========================================================================
   Homepage v17 pieces taken from index-new.html (v1 design):
   hero dragon visual, client-logo marquee, company facts.
   Everything is scoped under .nh so it cannot leak into the rest of the site,
   and round shapes use !important to beat style3.css's *{border-radius:0 !important}.
   ========================================================================== */

.nh {
  --bg: #1a1a1a; --surface: #222222; --surface-2: #2a2a2a;
  --line: rgba(255, 255, 255, 0.08); --line-strong: rgba(255, 255, 255, 0.16);
  --text: #ffffff; --text-muted: rgba(255, 255, 255, 0.75); --text-dim: rgba(255, 255, 255, 0.55);
  --gold: #e2b23a; --gold-hi: #f0c75a;
  --c-composer: #e2b23a; --c-vrstudio: #c47dfa; --c-cadvrter: #4fa0e2; --c-viewer: #ffa666;
  --fs-xs: 0.75rem; --fs-sm: 0.875rem; --fs-xl: clamp(1.6rem, 1.2rem + 1.6vw, 2.4rem);
  --radius: 14px; --shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  font-family: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
.nh *, .nh *::before, .nh *::after { box-sizing: border-box; }

/* ---------- Hero: replace the old dragon background art ---------- */
#section1.background-section1 {
  background-image: radial-gradient(60% 70% at 25% 45%, rgba(226, 178, 58, 0.10), transparent 70%);
  background-color: #1a1a1a;
}
#section1 .bg-main-2 { background-image: none; }

/* ---------- Hero visual (dragon, glow, rings, chips, glass card) ---------- */
/* Left column: compact row = dragon visual + title block, sized to match the Products panel */
.nh.nh-hero-left { display: flex; align-items: center; gap: clamp(8px, 2vw, 28px); width: 100%; height: 100%; padding: 0 0 0 clamp(8px, 3vw, 48px); }
.nh .hero__visual { position: relative; flex: 0 0 auto; aspect-ratio: 1 / 1; width: clamp(220px, 22vw, 360px); display: grid; place-items: center; color: var(--text); }
.nh .nh-hero-text { flex: 1 1 auto; min-width: 170px; max-width: 300px; position: relative; z-index: 1; }
/* the hero art is decoration only; its floor glow overflows onto the links */
.nh .hero__visual { pointer-events: none; }
.nh .nh-hero-title { margin: 0; padding: 0 0 14px; border-bottom: 1px solid var(--line-strong); font-size: clamp(1.05rem, 0.8rem + 0.6vw, 1.35rem); font-weight: 500; line-height: 1.35; color: var(--text); }
.nh .nh-hero-release { margin: 14px 0 0; font-size: 1.05rem; font-weight: 400; line-height: 1.2; color: var(--text); }
.nh .nh-hero-num { display: block; font-size: clamp(2.6rem, 2rem + 1.6vw, 3.6rem); font-weight: 800; line-height: 1; color: var(--gold); }
.nh .nh-hero-links { display: flex; flex-wrap: wrap; gap: 4px 16px; margin: 12px 0 0; font-size: 0.8rem; font-weight: 600; }
.nh .nh-hero-links a { min-height: 24px; display: inline-flex; align-items: center; }
@media (min-width: 768px) and (max-width: 1100px) { .nh .hero__visual { width: 300px; } }
@media (max-width: 767px) {
  .nh.nh-hero-left { flex-direction: column; min-height: 0; padding: 16px; text-align: center; }
  .nh .hero__visual { width: min(300px, 80vw); }
  .nh .nh-hero-text { max-width: 420px; }
  .nh .nh-hero-links { justify-content: center; }
}
.nh .hero__glow {
  position: absolute; inset: 4%; border-radius: 50% !important;
  background: radial-gradient(circle at 50% 48%, rgba(240, 199, 90, 0.45), rgba(226, 178, 58, 0.16) 38%, transparent 68%);
  filter: blur(10px);
}
.nh .hero__floor {
  position: absolute; left: -10%; right: -10%; bottom: 8%; height: 40%;
  background-image:
    linear-gradient(rgba(226, 178, 58, 0.45) 1px, transparent 1px),
    linear-gradient(90deg, rgba(226, 178, 58, 0.45) 1px, transparent 1px);
  background-size: 44px 44px; background-position: center top;
  transform: perspective(420px) rotateX(64deg); transform-origin: 50% 0%;
  -webkit-mask-image: radial-gradient(80% 100% at 50% 0%, #000 35%, transparent 80%);
  mask-image: radial-gradient(80% 100% at 50% 0%, #000 35%, transparent 80%);
}
.nh .hero__ring { position: absolute; border-radius: 50% !important; border: 1px solid rgba(226, 178, 58, 0.28); }
.nh .hero__ring--1 { inset: 10%; animation: nh-spin 24s linear infinite; }
.nh .hero__ring--2 { inset: 22%; border-style: dashed; border-color: rgba(255, 255, 255, 0.12); animation: nh-spin 60s linear infinite; }
.nh .hero__ring--1::after { /* orbiting spark */
  content: ""; position: absolute; top: -4px; left: 50%; width: 8px; height: 8px; margin-left: -4px; border-radius: 50% !important;
  background: var(--gold-hi); box-shadow: 0 0 14px 4px rgba(240, 199, 90, 0.6);
}
@keyframes nh-spin { to { transform: rotate(360deg); } }

.nh .hero__dragon { /* the artwork is cropped on its left and bottom edges: fade those out */
  position: relative; width: 74%; height: auto; animation: nh-float 7s ease-in-out infinite;
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 22%), linear-gradient(to top, transparent 0, #000 24%);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(to right, transparent 0, #000 22%), linear-gradient(to top, transparent 0, #000 24%);
  mask-composite: intersect;
}
@keyframes nh-float { 50% { transform: translateY(-12px); } }

.nh .chip {
  position: absolute; display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px; border-radius: 999px !important;
  background: rgba(34, 34, 34, 0.72); border: 1px solid var(--line-strong);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  font-size: var(--fs-sm); font-weight: 500; color: var(--text); box-shadow: var(--shadow);
  animation: nh-float 6s ease-in-out infinite;
}
.nh .chip i { width: 8px; height: 8px; border-radius: 50% !important; background: var(--c); box-shadow: 0 0 10px var(--c); }
.nh .chip--a { top: 8%; left: -4%; animation-delay: -1s; }
.nh .chip--b { top: 30%; right: 0; animation-delay: -3s; }
.nh .chip--c { bottom: 26%; left: -2%; animation-delay: -4.5s; }

.nh .glass {
  position: absolute; right: -2%; bottom: 4%;
  display: flex; align-items: center; gap: 12px; padding: 10px 16px 10px 10px;
  border-radius: var(--radius) !important; border: 1px solid var(--line-strong);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.03));
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  box-shadow: var(--shadow);
}
.nh .glass .plugin-icon { --size: 40px; }
.nh .glass__txt { display: flex; flex-direction: column; line-height: 1.3; font-size: var(--fs-xs); color: var(--text-muted); }
.nh .glass__txt strong { font-size: var(--fs-sm); color: var(--text); font-weight: 600; }

/* ---------- Sprites (client logos + product dragon icon) ---------- */
.nh .client-logo { --h: 48px; display: inline-block; flex: none; height: var(--h); width: calc(88 * var(--h) / 72);
  background: url(../index-new/img/clients.svg) no-repeat; background-size: calc(616 * var(--h) / 72) calc(616 * var(--h) / 72);
  mix-blend-mode: lighten; }
.nh .plugin-icon { --size: 56px; display: inline-block; flex: none; width: var(--size); height: var(--size);
  background: url(../index-new/img/plugins.svg) no-repeat; background-size: calc(6 * var(--size)) calc(764 * var(--size) / 150); }
.nh .pl-dragon-composer { background-position: calc(-4 * var(--size)) calc(-3 * var(--size)); }
.nh .cl-ge{background-position:calc(-0 * var(--h) / 72) calc(-0 * var(--h) / 72)}
.nh .cl-dell{background-position:calc(-176 * var(--h) / 72) calc(-0 * var(--h) / 72)}
.nh .cl-disney{background-position:calc(-264 * var(--h) / 72) calc(-0 * var(--h) / 72)}
.nh .cl-dreamworks{background-position:calc(-440 * var(--h) / 72) calc(-0 * var(--h) / 72)}
.nh .cl-intel{background-position:calc(-0 * var(--h) / 72) calc(-72 * var(--h) / 72)}
.nh .cl-lego{background-position:calc(-176 * var(--h) / 72) calc(-72 * var(--h) / 72)}
.nh .cl-tesla{background-position:calc(-352 * var(--h) / 72) calc(-72 * var(--h) / 72)}
.nh .cl-nasa{background-position:calc(-440 * var(--h) / 72) calc(-72 * var(--h) / 72)}
.nh .cl-mercedes-benz{background-position:calc(-0 * var(--h) / 72) calc(-144 * var(--h) / 72)}
.nh .cl-3m{background-position:calc(-352 * var(--h) / 72) calc(-216 * var(--h) / 72)}
.nh .cl-adidas{background-position:calc(-0 * var(--h) / 72) calc(-432 * var(--h) / 72)}
.nh .cl-airbus{background-position:calc(-88 * var(--h) / 72) calc(-216 * var(--h) / 72)}
.nh .cl-apple{background-position:calc(-176 * var(--h) / 72) calc(-216 * var(--h) / 72)}
.nh .cl-arup{background-position:calc(-264 * var(--h) / 72) calc(-360 * var(--h) / 72)}
.nh .cl-boeing{background-position:calc(-0 * var(--h) / 72) calc(-216 * var(--h) / 72)}
.nh .cl-caterpillar{background-position:calc(-352 * var(--h) / 72) calc(-360 * var(--h) / 72)}
.nh .cl-google{background-position:calc(-264 * var(--h) / 72) calc(-432 * var(--h) / 72)}
.nh .cl-ikea{background-position:calc(-176 * var(--h) / 72) calc(-360 * var(--h) / 72)}
.nh .cl-nike{background-position:calc(-0 * var(--h) / 72) calc(-360 * var(--h) / 72)}
.nh .cl-philips{background-position:calc(-88 * var(--h) / 72) calc(-432 * var(--h) / 72)}
.nh .cl-pixar{background-position:calc(-440 * var(--h) / 72) calc(-288 * var(--h) / 72)}
.nh .cl-rolls-royce{background-position:calc(-440 * var(--h) / 72) calc(-144 * var(--h) / 72)}
.nh .cl-samsung{background-position:calc(-528 * var(--h) / 72) calc(-144 * var(--h) / 72)}
.nh .cl-saudi-aramco{background-position:calc(-440 * var(--h) / 72) calc(-216 * var(--h) / 72)}
.nh .cl-siemens{background-position:calc(-264 * var(--h) / 72) calc(-288 * var(--h) / 72)}
.nh .cl-sony{background-position:calc(-176 * var(--h) / 72) calc(-288 * var(--h) / 72)}
.nh .cl-volvo{background-position:calc(-528 * var(--h) / 72) calc(-216 * var(--h) / 72)}
.nh .cl-zaha-hadid-architects{background-position:calc(-440 * var(--h) / 72) calc(-360 * var(--h) / 72)}

/* ---------- Trusted by (two-row marquee) ---------- */
.nh.trusted { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 48px 0 56px; color: var(--text); }
.nh .nh-container { max-width: 1240px; margin: 0 auto; padding: 0 clamp(16px, 4vw, 40px); }
.nh .trusted__head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 26px; }
.nh .trusted__title { margin: 0; font-size: var(--fs-sm); font-weight: 500; letter-spacing: 0.04em; color: var(--text-muted); }

.nh .marquee-toggle {
  flex: none; display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 6px 14px;
  background: transparent; border: 1px solid var(--line-strong); border-radius: 999px !important;
  font-size: var(--fs-xs); color: var(--text-muted); cursor: pointer;
}
.nh .marquee-toggle:hover { color: var(--text); border-color: var(--text-dim); }
.nh .marquee-toggle svg { width: 12px; height: 12px; fill: currentColor; }
.nh .marquee-toggle[hidden] { display: none; }
.nh .marquee-toggle .i-play, .nh .marquee-toggle[data-paused="true"] .i-pause { display: none; }
.nh .marquee-toggle[data-paused="true"] .i-play { display: block; }

.nh .marquee { display: grid; gap: 10px; overflow: hidden; max-width: 1440px; margin: 0 auto;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.nh .marquee__row { overflow: hidden; }
.nh .marquee__track { display: flex; width: max-content; list-style: none; margin: 0; padding: 0;
  background: var(--surface); /* the moving track is its own layer: give the logos' lighten blend a #222 backdrop */ }
.nh .marquee__track li { flex: none; padding: 0 clamp(14px, 2.2vw, 30px); display: grid; place-items: center; }
.nh .marquee .client-logo { --h: 52px; opacity: 0.8; transition: opacity 0.2s; }
.nh .marquee .client-logo:hover { opacity: 1; }
.nh .marquee .cl-tesla, .nh .marquee .cl-rolls-royce, .nh .marquee .cl-saudi-aramco { --h: 42px; }
.nh .marquee .cl-boeing, .nh .marquee .cl-airbus { --h: 62px; }
.nh .marquee.is-ready .marquee__track { animation: nh-marquee var(--dur, 50s) linear infinite; }
.nh .marquee.is-ready .marquee__row--rev .marquee__track { animation-direction: reverse; }
.nh .marquee.is-ready:hover .marquee__track,
.nh .marquee.is-paused .marquee__track { animation-play-state: paused; }
@keyframes nh-marquee { to { transform: translateX(-50%); } }

/* ---------- Company facts ---------- */
.nh .facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; margin: 44px 0 0; list-style: none; padding: 0;
  background: var(--line); border: 1px solid var(--line); border-radius: var(--radius) !important; overflow: hidden; }
.nh .facts__item { display: flex; flex-direction: column; gap: 4px; padding: 22px 24px; background: var(--surface); }
.nh .facts__item strong { font-size: var(--fs-xl); font-weight: 600; line-height: 1.1; letter-spacing: -0.02em; color: var(--gold); }
.nh .facts__item span { font-size: var(--fs-sm); color: var(--text-muted); line-height: 1.4; }
@media (max-width: 760px) { .nh .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- Reduced motion: still logos in a grid, no floating ---------- */
@media (prefers-reduced-motion: reduce) {
  .nh .hero__ring--1, .nh .hero__ring--2, .nh .hero__dragon, .nh .chip { animation: none; }
  .nh .marquee { -webkit-mask-image: none; mask-image: none; max-width: 1240px; padding: 0 clamp(16px, 4vw, 40px);
    grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 18px 8px; justify-items: center; align-items: center; }
  .nh .marquee__row, .nh .marquee__track { display: contents; }
  .nh .marquee__track li { padding: 0; }
  .nh .marquee__track { animation: none !important; transform: none !important; }
  .nh .marquee__track [aria-hidden="true"], .nh .marquee__track li:nth-child(n+13) { display: none; }
  .nh .marquee-toggle { display: none; }
}
@media (prefers-reduced-motion: reduce) and (max-width: 960px) { .nh .marquee { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
@media (prefers-reduced-motion: reduce) and (max-width: 640px) {
  .nh .marquee { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .nh .marquee__track li:nth-child(n+7) { display: none; }
}
@media (max-width: 640px) { .nh .chip { font-size: var(--fs-xs); padding: 6px 10px; } }
