/* Hansora Creative homepage: cinematic hero (moving 3D wall of real creations) + animated polish for the
   existing sections. Links, buttons and page logic are unchanged. */

/* ---------- Hero ---------- */
.he-hero { position: relative; isolation: isolate; overflow: hidden; display: grid; place-items: center; min-height: calc(100svh - 64px); padding: 64px 20px 120px; text-align: center; }
.he-wall { position: absolute; inset: -10% -10% -10% -10%; z-index: -3; perspective: 1400px; pointer-events: none; }
.he-wall-inner { position: absolute; inset: -20% -10%; display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; transform: rotateX(32deg) rotateZ(-12deg) scale(1.15); transform-origin: 50% 40%; }
.he-col { overflow: hidden; }
.he-col-track { display: grid; gap: 18px; animation: he-up 46s linear infinite; will-change: transform; }
.he-col.c1 .he-col-track, .he-col.c3 .he-col-track { animation-name: he-down; animation-duration: 54s; }
.he-col.c2 .he-col-track { animation-duration: 40s; }
.he-col.c4 .he-col-track { animation-duration: 50s; }
@keyframes he-up { from { transform: translateY(0); } to { transform: translateY(-50%); } }
@keyframes he-down { from { transform: translateY(-50%); } to { transform: translateY(0); } }
.he-tile { position: relative; overflow: hidden; aspect-ratio: 16 / 10; border-radius: 18px; background: #12101c; box-shadow: 0 20px 50px -20px rgba(0, 0, 0, .9), inset 0 0 0 1px rgba(255, 255, 255, .06); }
.he-tile img, .he-tile video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.he-tile video { opacity: 0; transition: opacity .8s ease; }
.he-tile video.he-ready { opacity: 1; }
.he-shade { position: absolute; inset: 0; z-index: -2; pointer-events: none;
  background:
    radial-gradient(ellipse 55% 48% at 50% 46%, rgba(5, 5, 10, .92), rgba(5, 5, 10, .55) 55%, rgba(5, 5, 10, .2) 80%),
    linear-gradient(180deg, rgba(5, 5, 10, .55), transparent 22%, transparent 70%, #07070d 98%); }
.he-shade::after { content: ""; position: absolute; inset: 0; background: radial-gradient(600px 300px at 50% 40%, rgba(139, 92, 246, .22), transparent 70%); animation: he-breathe 6s ease-in-out infinite; }
@keyframes he-breathe { 50% { opacity: .55; } }

.he-copy { position: relative; display: grid; justify-items: center; gap: 0; max-width: 980px; }
.he-kicker { display: inline-flex; align-items: center; gap: 9px; padding: 7px 16px; border: 1px solid rgba(167, 139, 250, .4); border-radius: 999px; background: rgba(139, 92, 246, .14); color: #ede9fe; font-weight: 800; font-size: 13px; letter-spacing: .18em; backdrop-filter: blur(10px); opacity: 0; transform: translateY(14px); animation: he-in .8s cubic-bezier(.2, .8, .2, 1) .1s forwards; }
.he-kicker i { width: 8px; height: 8px; border-radius: 50%; background: #a78bfa; box-shadow: 0 0 0 0 rgba(167, 139, 250, .7); animation: he-ping 2s infinite; }
@keyframes he-ping { 0% { box-shadow: 0 0 0 0 rgba(167, 139, 250, .6); } 80%, 100% { box-shadow: 0 0 0 10px rgba(167, 139, 250, 0); } }
.he-title { margin: 22px 0 18px; font-size: clamp(46px, 8.2vw, 116px); line-height: .98; letter-spacing: -.045em; font-weight: 900; color: #fff; }
.he-line { display: block; opacity: 0; transform: translateY(40px); filter: blur(12px); animation: he-rise 1s cubic-bezier(.2, .8, .2, 1) .25s forwards; }
.he-line + .he-line { animation-delay: .45s; }
.he-grad { background: linear-gradient(100deg, #f0abfc 0%, #c084fc 25%, #818cf8 50%, #38bdf8 75%, #f0abfc 100%); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: he-rise 1s cubic-bezier(.2, .8, .2, 1) .45s forwards, he-flow 8s linear infinite; }
@keyframes he-rise { to { opacity: 1; transform: none; filter: none; } }
@keyframes he-flow { to { background-position: -200% 0; } }
@keyframes he-in { to { opacity: 1; transform: none; } }
.he-lead { max-width: 640px; margin: 0 0 28px; color: rgba(236, 233, 254, .82); font-size: clamp(16px, 1.5vw, 20px); line-height: 1.6; opacity: 0; transform: translateY(14px); animation: he-in .8s ease .7s forwards; }

.he-prompt { display: flex; align-items: center; gap: 10px; width: min(640px, 100%); padding: 8px 8px 8px 18px; border: 1px solid rgba(255, 255, 255, .14); border-radius: 18px; background: rgba(14, 12, 24, .72); box-shadow: 0 30px 80px -30px rgba(124, 58, 237, .8), inset 0 1px 0 rgba(255, 255, 255, .08); backdrop-filter: blur(18px); text-align: left; opacity: 0; transform: translateY(14px); animation: he-in .8s ease .85s forwards; }
.he-spark { font-size: 18px; }
.he-typed { flex: 1; min-width: 0; overflow: hidden; color: #f5f3ff; font-size: 15.5px; white-space: nowrap; text-overflow: ellipsis; }
.he-typed::after { content: "|"; margin-left: 1px; color: #a78bfa; animation: he-caret .8s steps(1) infinite; }
@keyframes he-caret { 50% { opacity: 0; } }
.he-model { padding: 6px 10px; border: 1px solid rgba(167, 139, 250, .35); border-radius: 10px; background: rgba(139, 92, 246, .14); color: #ddd6fe; font-size: 12.5px; font-weight: 700; white-space: nowrap; }
.he-go { padding: 11px 18px; border-radius: 12px; background: linear-gradient(100deg, #a855f7, #6366f1 55%, #0ea5e9); color: #fff; font-size: 14px; font-weight: 800; white-space: nowrap; transition: transform .15s, filter .15s; }
.he-prompt.pressed .he-go { transform: scale(.94); filter: brightness(1.25); }
.he-prompt.generating .he-go { background: linear-gradient(100deg, #34d399, #0ea5e9); }

.he-cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 22px; opacity: 0; transform: translateY(14px); animation: he-in .8s ease 1s forwards; }
.he-btn { display: inline-flex !important; align-items: center; gap: 10px; height: 54px; padding: 0 28px !important; border-radius: 15px !important; font-size: 17px !important; font-weight: 800 !important; text-decoration: none; transition: transform .2s cubic-bezier(.2, .8, .2, 1), box-shadow .2s, filter .2s !important; }
.he-btn.btn-primary { border: 0 !important; background: linear-gradient(100deg, #a855f7, #7c3aed 30%, #4f46e5 62%, #0ea5e9) !important; color: #fff !important; box-shadow: 0 18px 44px -14px rgba(124, 58, 237, .95), inset 0 1px 0 rgba(255, 255, 255, .28) !important; }
.he-btn.btn-primary:hover { transform: translateY(-2px); filter: brightness(1.1); }
.he-btn.btn-primary b { transition: transform .2s; } .he-btn.btn-primary:hover b { transform: translateX(4px); }
.he-btn.ghost { border: 1px solid rgba(255, 255, 255, .2); background: rgba(255, 255, 255, .06); color: #fff; backdrop-filter: blur(10px); }
.he-btn.ghost:hover { border-color: rgba(255, 255, 255, .4); transform: translateY(-2px); }
.he-points { margin-top: 22px; opacity: 0; animation: he-in .8s ease 1.15s forwards; }

.he-models { position: absolute; left: 0; right: 0; bottom: 26px; overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 15%, #000 85%, transparent); }
.he-models-track { display: flex; gap: 14px; width: max-content; animation: he-marquee 34s linear infinite; }
.he-models-track span { padding: 9px 16px; border: 1px solid rgba(255, 255, 255, .12); border-radius: 999px; background: rgba(255, 255, 255, .05); color: rgba(255, 255, 255, .82); font-size: 14px; font-weight: 700; white-space: nowrap; backdrop-filter: blur(8px); }
@keyframes he-marquee { to { transform: translateX(-50%); } }

/* ---------- The rest of the page: reveal on scroll + richer cards ---------- */
.he-reveal { opacity: 0; transform: translateY(36px); transition: opacity .9s cubic-bezier(.2, .8, .2, 1), transform .9s cubic-bezier(.2, .8, .2, 1); }
.he-reveal.he-in { opacity: 1; transform: none; }

main .section-head h2, main .rail-title, main .pricing > .shell > h2, main .faq > h2 { background: linear-gradient(100deg, #fff 30%, #c4b5fd 70%, #7dd3fc); -webkit-background-clip: text; background-clip: text; color: transparent !important; }

.home-feature-card { transition: transform .3s cubic-bezier(.2, .8, .2, 1), box-shadow .3s, border-color .3s !important; }
.home-feature-card:hover { transform: translateY(-6px) !important; border-color: rgba(167, 139, 250, .55) !important; box-shadow: 0 26px 60px -28px rgba(124, 58, 237, .8) !important; }
.home-feature-card .home-feature-media img { transition: transform .5s cubic-bezier(.2, .8, .2, 1) !important; }
.home-feature-card:hover .home-feature-media img { transform: scale(1.08) rotate(-1deg); }

.studio-card, .latest-model-card, .top-used-models-section .slot, .top-reel .slot { transition: transform .35s cubic-bezier(.2, .8, .2, 1), box-shadow .35s !important; }
.studio-card:hover, .latest-model-card:hover, .top-used-models-section .slot:hover, .top-reel .slot:hover { transform: translateY(-6px) scale(1.02); box-shadow: 0 30px 70px -30px rgba(124, 58, 237, .85) !important; z-index: 2; }

.seedance-showcase-section .model-section { position: relative; }
.seedance-showcase-section .model-section::before { content: ""; position: absolute; inset: -2px; z-index: -1; border-radius: 26px; background: conic-gradient(from var(--he-angle, 0deg), transparent 0 60%, #a855f7 72%, #38bdf8 84%, transparent 96%); animation: he-spin 6s linear infinite; filter: blur(1px); opacity: .9; }
@property --he-angle { syntax: "<angle>"; initial-value: 0deg; inherits: false; }
@keyframes he-spin { to { --he-angle: 360deg; } }

.ready-cta-section { position: relative; overflow: hidden; }
.ready-cta-section::before, .ready-cta-section::after { content: ""; position: absolute; width: 420px; height: 420px; border-radius: 50%; pointer-events: none; z-index: 0; }
.ready-cta-section::before { left: -120px; top: -80px; background: radial-gradient(circle closest-side, rgba(168, 85, 247, .35), transparent); animation: he-orb 14s ease-in-out infinite alternate; }
.ready-cta-section::after { right: -120px; bottom: -120px; background: radial-gradient(circle closest-side, rgba(14, 165, 233, .3), transparent); animation: he-orb 18s ease-in-out infinite alternate-reverse; }
.ready-cta-section > .shell { position: relative; z-index: 1; }
@keyframes he-orb { to { transform: translate(120px, 60px) scale(1.15); } }

/* ---------- Phones ---------- */
@media (max-width: 760px) {
  .he-hero { min-height: calc(100svh - 56px); padding: 48px 16px 104px; }
  .he-wall-inner { grid-template-columns: repeat(3, 1fr); inset: -20% -40%; gap: 12px; }
  .he-col.c3, .he-col.c4 { display: none; }
  .he-col-track { gap: 12px; }
  .he-prompt { padding: 6px 6px 6px 14px; }
  .he-model { display: none; }
  .he-typed { font-size: 14px; }
  .he-go { padding: 10px 14px; font-size: 13px; }
  .he-btn { height: 50px; padding: 0 22px !important; font-size: 16px !important; }
  .he-models { bottom: 18px; }
}

/* ---------- Calm version ---------- */
@media (prefers-reduced-motion: reduce) {
  .he-col-track, .he-models-track, .he-grad, .he-shade::after, .seedance-showcase-section .model-section::before, .ready-cta-section::before, .ready-cta-section::after { animation: none !important; }
  .he-line, .he-kicker, .he-lead, .he-prompt, .he-cta, .he-points { animation: none !important; opacity: 1; transform: none; filter: none; }
  .he-reveal { opacity: 1; transform: none; transition: none; }
}
.he-copy { max-width: 1240px; }
.he-title { font-size: clamp(44px, 7.4vw, 108px); }
.he-line { white-space: nowrap; }
@media (max-width: 760px) { .he-line { white-space: normal; } }
.he-hero { grid-template-columns: minmax(0, 1fr); }
.he-copy { width: 100%; min-width: 0; }
.he-prompt { max-width: 100%; min-width: 0; }
@media (max-width: 760px) {
  .he-title { font-size: clamp(40px, 12vw, 60px); }
  .he-lead { font-size: 15.5px; }
  .he-points { flex-wrap: wrap; justify-content: center; }
}
/* Hero sits under the Latest news strip */
.he-hero { min-height: min(860px, calc(100svh - 40px)); margin-top: 8px; }
/* Hero first; Latest news slides up into the bottom of the hero as one design */
.he-hero { min-height: calc(100svh - 64px); margin-top: 0; padding-bottom: 210px; }
.top-reel { position: relative; z-index: 3; margin-top: -190px !important; }
.top-reel .rail-head { margin-bottom: 12px; }
.top-reel .rail-title { color: #fff !important; background: none !important; -webkit-text-fill-color: #fff; text-shadow: 0 2px 18px rgba(0, 0, 0, .8); }
.top-reel .slot { box-shadow: 0 24px 60px -24px rgba(0, 0, 0, .95), 0 0 0 1px rgba(255, 255, 255, .1) !important; border-radius: 18px !important; }
@media (max-width: 760px) {
  .he-hero { padding-bottom: 170px; }
  .top-reel { margin-top: -150px !important; }
}
/* Narrow version: the hero is a rounded panel in the page width, in place of the old "HANSORA AI" intro,
   right under Latest news. */
.he-hero { width: min(100% - 28px, var(--max, 1400px)); margin: 28px auto 0 !important; min-height: 0; height: clamp(560px, 70vh, 700px); padding: 56px 24px; border-radius: 30px; border: 1px solid rgba(255, 255, 255, .08); box-shadow: 0 40px 100px -50px rgba(124, 58, 237, .6); }
.he-wall { inset: 0; }
.he-title { font-size: clamp(40px, 6vw, 92px); margin: 18px 0 14px; }
.he-lead { margin-bottom: 22px; }
.top-reel { margin-top: 0 !important; z-index: auto; }
.top-reel .rail-title { text-shadow: none; }
@media (max-width: 760px) {
  .he-hero { height: auto; min-height: 600px; padding: 40px 14px 44px; border-radius: 24px; margin-top: 18px !important; }
  .he-title { font-size: clamp(36px, 11vw, 54px); }
}
/* The hero panel grows with its content, so nothing is ever cut off */
.he-hero { height: auto; min-height: 640px; padding: 64px 24px 60px; }
@media (max-width: 760px) { .he-hero { min-height: 0; padding: 40px 14px 44px; } }
/* Model names scroll along the bottom of the hero panel */
.he-hero { padding-bottom: 96px; }
.he-models { bottom: 22px; }
@media (max-width: 760px) { .he-hero { padding-bottom: 84px; } .he-models { bottom: 16px; } }

/* ================= Sections below the hero: one consistent, glowing design ================= */
:root { --he-panel-bg: linear-gradient(180deg, rgba(255, 255, 255, .045), rgba(255, 255, 255, .012) 40%, rgba(255, 255, 255, .02)); }

/* Glass panels */
.home-features-section > .shell,
.top-used-models-section > .shell,
.latest-models-section > .shell,
.pricing > .shell,
main .faq {
  position: relative; isolation: isolate;
  padding: 40px 36px 36px !important; border-radius: 32px;
  border: 1px solid transparent !important;
  background:
    radial-gradient(700px 260px at 50% -40px, rgba(139, 92, 246, .16), transparent 70%) padding-box,
    linear-gradient(180deg, #100e1a, #0a0911) padding-box,
    linear-gradient(160deg, rgba(167, 139, 250, .45), rgba(255, 255, 255, .06) 30%, rgba(255, 255, 255, .04) 70%, rgba(56, 189, 248, .35)) border-box !important;
  box-shadow: 0 50px 120px -60px rgba(0, 0, 0, 1), 0 30px 80px -60px rgba(124, 58, 237, .55);
}
main .section { padding-top: 34px !important; padding-bottom: 34px !important; }

/* Section headers: pill kicker + big gradient title */
main .section-head { align-items: flex-end !important; margin-bottom: 26px !important; }
main .section-head .kicker { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 10px; padding: 6px 13px; border: 1px solid rgba(167, 139, 250, .35); border-radius: 999px; background: rgba(139, 92, 246, .12); color: #ddd6fe !important; font-size: 12px !important; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
main .section-head .kicker::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #a78bfa; box-shadow: 0 0 10px #a78bfa; }
main .section-head h2, main .pricing > .shell > h2, main .faq > h2 { font-size: clamp(32px, 4.2vw, 58px) !important; line-height: 1.02 !important; letter-spacing: -.04em !important; font-weight: 900 !important; text-transform: none !important; }
main .section-head .btn, main .section-head .btn-ghost { border-radius: 999px !important; border: 1px solid rgba(255, 255, 255, .16) !important; background: rgba(255, 255, 255, .05) !important; color: #fff !important; font-weight: 700 !important; backdrop-filter: blur(8px); transition: border-color .2s, background .2s, transform .2s !important; }
main .section-head .btn:hover { border-color: rgba(167, 139, 250, .6) !important; background: rgba(139, 92, 246, .16) !important; transform: translateY(-2px); }

/* Top features: glowing tiles */
.home-feature-card { border-radius: 20px !important; border: 1px solid rgba(255, 255, 255, .08) !important; background: linear-gradient(160deg, rgba(255, 255, 255, .05), rgba(255, 255, 255, .015)) !important; }
.home-feature-card h3 { font-weight: 900 !important; letter-spacing: -.02em; }
.home-feature-card h3 span { background: linear-gradient(100deg, #c084fc, #38bdf8); -webkit-background-clip: text; background-clip: text; color: transparent !important; }
.home-feature-media { border-radius: 16px !important; overflow: hidden; box-shadow: 0 14px 30px -16px rgba(0, 0, 0, .9), 0 0 0 1px rgba(255, 255, 255, .08); }

/* Epic AI animations: a 3D tilted, slowly moving video wall */
.studio-marquee-section .studio-rows { perspective: 1400px; mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.studio-marquee-section .studio-clip { transform: rotateX(16deg) rotateZ(-3deg) scale(1.04); transform-origin: 50% 30%; }
.studio-marquee-section .studio-card { border-radius: 18px !important; overflow: hidden; box-shadow: 0 24px 50px -22px rgba(0, 0, 0, .95), 0 0 0 1px rgba(255, 255, 255, .08) !important; }
.studio-marquee-section .studio-card:hover { transform: translateY(-10px) scale(1.04) !important; box-shadow: 0 34px 70px -26px rgba(124, 58, 237, .9), 0 0 0 1px rgba(167, 139, 250, .5) !important; }

/* Creator choices */
.top-used-models-section .slot { border-radius: 22px !important; }
.top-used-models-section .slot-label { backdrop-filter: blur(8px); }

/* Latest models: banners zoom with a light sweep */
.latest-models-grid { gap: 16px !important; }
.latest-model-card { position: relative; overflow: hidden; border-radius: 20px !important; box-shadow: 0 0 0 1px rgba(255, 255, 255, .08), 0 24px 50px -26px rgba(0, 0, 0, .95) !important; }
.latest-model-card img { transition: transform .7s cubic-bezier(.2, .8, .2, 1) !important; }
.latest-model-card:hover img { transform: scale(1.07); }
.latest-model-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 35%, rgba(255, 255, 255, .22) 50%, transparent 65%); transform: translateX(-120%); transition: transform .9s ease; pointer-events: none; }
.latest-model-card:hover::after { transform: translateX(120%); }

/* Creative studio picture */
.creative-studio-image-wrap { border-radius: 28px !important; overflow: hidden; box-shadow: 0 0 0 1px rgba(255, 255, 255, .08), 0 40px 90px -50px rgba(124, 58, 237, .7) !important; }

/* Pricing cards: gradient borders and one Buy style, like the pricing page */
.pricing .price-card { border: 1px solid transparent !important; border-radius: 24px !important;
  background: linear-gradient(180deg, #14111f, #0c0a14) padding-box, linear-gradient(165deg, rgba(167, 139, 250, .5), rgba(255, 255, 255, .06) 35%, rgba(56, 189, 248, .4)) border-box !important;
  transition: transform .3s cubic-bezier(.2, .8, .2, 1), box-shadow .3s !important; }
.pricing .price-card:hover { transform: translateY(-6px); box-shadow: 0 34px 70px -34px rgba(124, 58, 237, .85) !important; }
.pricing .price-card .btn { border: 0 !important; border-radius: 14px !important; background: linear-gradient(100deg, #a855f7, #7c3aed 30%, #4f46e5 62%, #0ea5e9) !important; color: #fff !important; font-weight: 800 !important; box-shadow: 0 14px 34px -14px rgba(124, 58, 237, .9) !important; }

/* FAQ: clean rows with a plus that turns */
main .faq { max-width: min(100% - 28px, 980px); margin-left: auto; margin-right: auto; }
main .faq > h2 { margin-bottom: 18px !important; }
main .faq details { margin: 0 !important; padding: 18px 4px !important; border: 0 !important; border-top: 1px solid rgba(255, 255, 255, .08) !important; border-radius: 0 !important; background: none !important; }
main .faq summary { position: relative; padding-right: 40px; list-style: none; cursor: pointer; font-size: 17px; font-weight: 700; }
main .faq summary::-webkit-details-marker { display: none; }
main .faq summary::after { content: "+"; position: absolute; right: 4px; top: 50%; display: grid; place-items: center; width: 28px; height: 28px; margin-top: -14px; border: 1px solid rgba(255, 255, 255, .16); border-radius: 50%; color: #c4b5fd; font-size: 18px; font-weight: 400; transition: transform .25s, background .25s; }
main .faq details[open] summary::after { transform: rotate(45deg); background: rgba(139, 92, 246, .2); }
main .faq details p { margin: 10px 0 0 !important; color: rgba(236, 233, 254, .75) !important; line-height: 1.6; }

/* Final call: bigger glow */
.ready-cta-section .ready-grad { background: linear-gradient(100deg, #f0abfc, #c084fc 30%, #818cf8 60%, #38bdf8) !important; background-size: 200% 100% !important; -webkit-background-clip: text !important; background-clip: text !important; color: transparent !important; animation: he-flow 8s linear infinite; }
.ready-cta-section .btn-primary { border: 0 !important; background: linear-gradient(100deg, #a855f7, #7c3aed 30%, #4f46e5 62%, #0ea5e9) !important; box-shadow: 0 18px 44px -14px rgba(124, 58, 237, .95) !important; }

@media (max-width: 760px) {
  .home-features-section > .shell, .top-used-models-section > .shell, .latest-models-section > .shell, .pricing > .shell, main .faq { padding: 26px 16px 22px !important; border-radius: 24px; }
  .studio-marquee-section .studio-clip { transform: rotateX(10deg) rotateZ(-2deg); }
  main .section-head h2, main .pricing > .shell > h2, main .faq > h2 { font-size: clamp(28px, 8vw, 38px) !important; }
}
@media (prefers-reduced-motion: reduce) { .ready-cta-section .ready-grad { animation: none; } }

/* Big screens: the page grows wider instead of sitting small in the middle */
@media (min-width: 1800px) { :root { --max: min(1720px, 88vw) !important; } }

/* Creator choices: model cards float on a glass floor with a soft reflection and a glow in their own colour */
.top-used-models-section .model-rail { padding: 18px 6px 70px !important; overflow-y: visible; }
.top-used-models-section .model-card { position: relative; background: none !important; box-shadow: none !important; animation: he-card-float 5s ease-in-out infinite; }
.top-used-models-section .model-card:nth-child(2) { animation-delay: -1s; } .top-used-models-section .model-card:nth-child(3) { animation-delay: -2s; }
.top-used-models-section .model-card:nth-child(4) { animation-delay: -3s; } .top-used-models-section .model-card:nth-child(5) { animation-delay: -4s; }
.top-used-models-section .model-card img { -webkit-box-reflect: below 10px linear-gradient(transparent 62%, rgba(0, 0, 0, .28)); }
.top-used-models-section .model-card::after { content: ""; position: absolute; left: 12%; right: 12%; bottom: -46px; height: 34px; border-radius: 50%; background: var(--he-card-glow, rgba(139, 92, 246, .55)); filter: blur(22px); opacity: .55; pointer-events: none; transition: opacity .3s; }
.top-used-models-section .model-card:hover::after { opacity: .9; }
.top-used-models-section .model-card:nth-child(5n+1) { --he-card-glow: rgba(56, 132, 255, .7); }
.top-used-models-section .model-card:nth-child(5n+2) { --he-card-glow: rgba(52, 211, 113, .7); }
.top-used-models-section .model-card:nth-child(5n+3) { --he-card-glow: rgba(249, 115, 22, .7); }
.top-used-models-section .model-card:nth-child(5n+4) { --he-card-glow: rgba(251, 146, 60, .7); }
.top-used-models-section .model-card:nth-child(5n) { --he-card-glow: rgba(20, 184, 166, .7); }
.top-used-models-section > .shell::after { content: ""; position: absolute; left: 8%; right: 8%; bottom: 64px; height: 1px; background: linear-gradient(90deg, transparent, rgba(167, 139, 250, .5), rgba(56, 189, 248, .5), transparent); pointer-events: none; }
@keyframes he-card-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
.top-used-models-section .model-card:hover { animation-play-state: paused; }
@media (prefers-reduced-motion: reduce) { .top-used-models-section .model-card { animation: none; } }

/* ================= New: "From a prompt to a finished ad" studio demo ================= */
.he-studio > .shell { position: relative; isolation: isolate; overflow: hidden; padding: 64px 48px 52px !important; border-radius: 36px; border: 1px solid transparent;
  background:
    linear-gradient(180deg, #0f0c1c, #08070f) padding-box,
    conic-gradient(from var(--he-angle, 0deg), rgba(167, 139, 250, .7), rgba(56, 189, 248, .5), rgba(240, 171, 252, .6), rgba(167, 139, 250, .7)) border-box;
  animation: he-spin 10s linear infinite;
  box-shadow: 0 60px 140px -70px rgba(124, 58, 237, .9); }
.he-studio-aura { position: absolute; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.he-studio-aura i { position: absolute; width: 520px; height: 520px; border-radius: 50%; filter: blur(90px); opacity: .38; animation: he-drift 16s ease-in-out infinite alternate; }
.he-studio-aura i:nth-child(1) { left: -160px; top: -200px; background: #7c3aed; }
.he-studio-aura i:nth-child(2) { right: -180px; top: 30%; background: #0ea5e9; animation-duration: 19s; opacity: .26; }
.he-studio-aura i:nth-child(3) { left: 30%; bottom: -320px; background: #db2777; animation-duration: 22s; opacity: .22; }
.he-studio-aura::after { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px); background-size: 46px 46px; mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000, transparent 75%); -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000, transparent 75%); }
@keyframes he-drift { to { transform: translate(80px, 60px) scale(1.15); } }

.he-studio-head { text-align: center; max-width: 760px; margin: 0 auto 44px; }
.he-studio-kicker { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border: 1px solid rgba(167, 139, 250, .35); border-radius: 999px; background: rgba(139, 92, 246, .12); color: #ddd6fe; font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.he-studio-kicker::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #a78bfa; box-shadow: 0 0 10px #a78bfa; }
.he-studio-head h2 { margin: 16px 0 14px; color: #fff; font-size: clamp(34px, 4.6vw, 64px); line-height: 1.02; letter-spacing: -.04em; font-weight: 900; }
.he-studio-head h2 span { background: linear-gradient(100deg, #f0abfc, #c084fc 30%, #818cf8 60%, #38bdf8); -webkit-background-clip: text; background-clip: text; color: transparent; }
.he-studio-head p { margin: 0; color: rgba(236, 233, 254, .72); font-size: clamp(15px, 1.3vw, 18px); line-height: 1.6; }

.he-studio-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 8fr); gap: 36px; align-items: center; }

/* Steps */
.he-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.he-step button { position: relative; overflow: hidden; display: flex; align-items: center; gap: 16px; width: 100%; padding: 18px 20px; border: 1px solid rgba(255, 255, 255, .07); border-radius: 20px; background: rgba(255, 255, 255, .025); color: #fff; font: inherit; text-align: left; cursor: pointer; transition: background .4s, border-color .4s, transform .4s, box-shadow .4s; }
.he-step button:hover { border-color: rgba(167, 139, 250, .35); }
.he-step-n { flex: none; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 14px; background: rgba(255, 255, 255, .06); color: rgba(255, 255, 255, .55); font-weight: 900; font-size: 17px; transition: background .4s, color .4s, box-shadow .4s; }
.he-step-t { display: grid; gap: 4px; min-width: 0; }
.he-step-t strong { font-size: 17px; font-weight: 800; letter-spacing: -.01em; color: rgba(255, 255, 255, .6); transition: color .4s; }
.he-step-t small { font-size: 13.5px; color: rgba(236, 233, 254, .42); line-height: 1.45; transition: color .4s; }
.he-step-bar { position: absolute; left: 0; bottom: 0; height: 2px; width: 100%; transform: scaleX(0); transform-origin: left; background: linear-gradient(90deg, #a855f7, #38bdf8); }
.he-step.is-on button { border-color: rgba(167, 139, 250, .45); background: linear-gradient(120deg, rgba(139, 92, 246, .2), rgba(56, 189, 248, .07)); transform: translateX(6px); box-shadow: 0 20px 50px -28px rgba(124, 58, 237, .9); }
.he-step.is-on .he-step-n { background: linear-gradient(135deg, #a855f7, #3b82f6); color: #fff; box-shadow: 0 0 24px rgba(168, 85, 247, .6); }
.he-step.is-on strong { color: #fff; }
.he-step.is-on small { color: rgba(236, 233, 254, .75); }
.he-step.is-on .he-step-bar { animation: he-bar var(--he-step-ms, 3400ms) linear forwards; }
.he-step.is-done .he-step-n { background: rgba(139, 92, 246, .28); color: #ddd6fe; }
@keyframes he-bar { to { transform: scaleX(1); } }

/* The demo screen */
.he-screen { position: relative; border-radius: 24px; padding: 1px; background: linear-gradient(150deg, rgba(255, 255, 255, .28), rgba(255, 255, 255, .04) 40%, rgba(56, 189, 248, .35)); box-shadow: 0 50px 100px -40px rgba(0, 0, 0, 1), 0 0 90px -30px rgba(139, 92, 246, .75); transform: perspective(1600px) rotateY(-6deg) rotateX(3deg); transition: transform .8s cubic-bezier(.2, .8, .2, 1); }
.he-screen:hover { transform: perspective(1600px) rotateY(0) rotateX(0); }
.he-screen-bar { display: flex; align-items: center; gap: 7px; padding: 12px 16px; border-radius: 23px 23px 0 0; background: #110f1b; }
.he-screen-bar i { width: 10px; height: 10px; border-radius: 50%; background: #ff5f57; }
.he-screen-bar i:nth-child(2) { background: #febc2e; }
.he-screen-bar i:nth-child(3) { background: #28c840; }
.he-screen-bar span { margin-left: 12px; padding: 4px 14px; border-radius: 8px; background: rgba(255, 255, 255, .06); color: rgba(255, 255, 255, .45); font-size: 12px; }
.he-screen-body { position: relative; overflow: hidden; aspect-ratio: 16 / 9; border-radius: 0 0 23px 23px; background: #05040a; }
.he-scr-img, .he-scr-vid { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity 1s ease, filter 1.2s ease, transform 6s ease, clip-path 1.6s cubic-bezier(.6, 0, .2, 1); }
.he-scr-vid { opacity: 0; }
.he-scr-scan { position: absolute; top: 0; bottom: 0; left: 0; width: 120px; opacity: 0; pointer-events: none; background: linear-gradient(90deg, transparent, rgba(168, 85, 247, .55), rgba(255, 255, 255, .9) 52%, rgba(56, 189, 248, .55), transparent); filter: blur(6px); mix-blend-mode: screen; }
.he-scr-prompt { position: absolute; left: 50%; top: 50%; display: flex; align-items: center; gap: 10px; width: min(560px, 82%); padding: 16px 20px; border: 1px solid rgba(255, 255, 255, .18); border-radius: 18px; background: rgba(14, 12, 24, .78); backdrop-filter: blur(14px); color: #fff; font-size: clamp(14px, 1.4vw, 18px); font-weight: 600; transform: translate(-50%, -50%); box-shadow: 0 30px 70px -20px rgba(124, 58, 237, .8); transition: opacity .6s, transform .8s cubic-bezier(.2, .8, .2, 1); }
.he-scr-prompt b { width: 2px; height: 1.2em; background: #c084fc; animation: he-caret 1s steps(2) infinite; }
@keyframes he-caret { 50% { opacity: 0; } }
.he-scr-chip { position: absolute; top: 16px; left: 16px; display: inline-flex; align-items: center; gap: 8px; padding: 7px 13px; border-radius: 999px; background: rgba(10, 8, 18, .72); border: 1px solid rgba(255, 255, 255, .14); backdrop-filter: blur(10px); color: #fff; font-size: 12.5px; font-weight: 700; transition: opacity .5s; }
.he-scr-chip i { width: 8px; height: 8px; border-radius: 50%; background: #34d399; box-shadow: 0 0 10px #34d399; }
.he-scr-chip em { font-style: normal; }
.he-scr-caption { position: absolute; left: 50%; bottom: 22%; padding: 8px 18px; border-radius: 10px; background: rgba(0, 0, 0, .55); color: #fff; font-size: clamp(16px, 2.1vw, 28px); font-weight: 900; letter-spacing: -.02em; text-shadow: 0 2px 12px rgba(0, 0, 0, .8); transform: translate(-50%, 20px); opacity: 0; transition: opacity .6s, transform .6s cubic-bezier(.2, .8, .2, 1); white-space: nowrap; }
.he-scr-wave { position: absolute; left: 50%; bottom: 7%; display: flex; align-items: center; gap: 4px; height: 34px; padding: 0 16px; border-radius: 999px; background: rgba(10, 8, 18, .6); backdrop-filter: blur(8px); transform: translateX(-50%); opacity: 0; transition: opacity .6s; }
.he-scr-wave i { width: 3px; height: 30%; border-radius: 3px; background: linear-gradient(#c084fc, #38bdf8); animation: he-wave 1s ease-in-out infinite alternate; }
.he-scr-wave i:nth-child(3n) { animation-delay: -.3s; } .he-scr-wave i:nth-child(3n+1) { animation-delay: -.6s; } .he-scr-wave i:nth-child(4n) { animation-duration: .7s; } .he-scr-wave i:nth-child(5n) { animation-duration: 1.3s; }
@keyframes he-wave { to { height: 90%; } }

/* Screen states (the final state is the default, so it looks complete even without JavaScript) */
.he-screen[data-step="0"] .he-scr-img { filter: blur(26px) saturate(1.3) brightness(.55) hue-rotate(-40deg); transform: scale(1.15); }
.he-screen[data-step="0"] .he-scr-chip, .he-screen[data-step="1"] .he-scr-prompt, .he-screen[data-step="2"] .he-scr-prompt, .he-screen[data-step="3"] .he-scr-prompt { opacity: 0; }
.he-screen[data-step="1"] .he-scr-prompt, .he-screen[data-step="2"] .he-scr-prompt, .he-screen[data-step="3"] .he-scr-prompt { transform: translate(-50%, -30%) scale(.94); pointer-events: none; }
.he-screen[data-step="1"] .he-scr-img { animation: he-reveal 1.6s cubic-bezier(.6, 0, .2, 1) both; }
.he-screen[data-step="1"] .he-scr-scan { animation: he-scan 1.6s cubic-bezier(.6, 0, .2, 1) both; }
@keyframes he-reveal { from { clip-path: inset(0 100% 0 0); filter: brightness(1.6) saturate(1.4); } to { clip-path: inset(0 0 0 0); filter: none; } }
@keyframes he-scan { 0% { opacity: 1; transform: translateX(-120px); } 90% { opacity: 1; } 100% { opacity: 0; transform: translateX(calc(var(--he-scr-w, 800px))); } }
.he-screen[data-step="2"] .he-scr-vid.he-ready, .he-screen[data-step="3"] .he-scr-vid.he-ready { opacity: 1; }
.he-screen[data-step="2"] .he-scr-img, .he-screen[data-step="3"] .he-scr-img { transform: scale(1.04); }
.he-screen[data-step="3"] .he-scr-caption { opacity: 1; transform: translate(-50%, 0); }
.he-screen[data-step="3"] .he-scr-wave { opacity: 1; }

.he-studio-cta { display: flex; justify-content: center; margin-top: 44px; }
.he-studio-cta .he-btn { padding: 15px 30px !important; border-radius: 999px !important; font-size: 16px !important; font-weight: 800 !important; }

@media (max-width: 900px) {
  .he-studio > .shell { padding: 40px 18px 34px !important; border-radius: 28px; }
  .he-studio-head { margin-bottom: 28px; }
  .he-studio-grid { grid-template-columns: minmax(0, 1fr); gap: 22px; }
  .he-screen { order: -1; transform: none; }
  .he-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .he-step button { flex-direction: column; align-items: flex-start; gap: 10px; padding: 14px; height: 100%; }
  .he-step.is-on button { transform: none; }
  .he-step-n { width: 34px; height: 34px; border-radius: 11px; font-size: 15px; }
  .he-step-t strong { font-size: 15px; }
  .he-step-t small { font-size: 12.5px; }
  .he-scr-prompt { padding: 11px 14px; gap: 8px; }
  .he-studio-aura i { width: 320px; height: 320px; }
  .he-studio-cta { margin-top: 28px; }
}
@media (prefers-reduced-motion: reduce) {
  .he-studio > .shell, .he-studio-aura i, .he-scr-wave i, .he-step-bar { animation: none !important; }
  .he-screen { transform: none; }
}

/* ---------- Round 2 fixes ---------- */
/* Gradient headline: keep the descenders (g, y, p) inside the painted area */
.he-grad { padding-bottom: .14em; margin-bottom: -.14em; }
/* Generate in the hero prompt is a real button now */
a.he-go { text-decoration: none; cursor: pointer; }
a.he-go:hover { filter: brightness(1.15); transform: translateY(-1px); }

/* Studio demo: a slightly smaller screen so the whole thing fits on laptop screens */
@media (min-width: 901px) { .he-studio-head { margin-bottom: 36px; } }
@media (min-width: 901px) { .he-studio-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); } }
@media (min-width: 901px) and (max-height: 920px) { .he-studio > .shell { padding-top: 48px !important; } .he-studio-head h2 { font-size: clamp(34px, 4vw, 56px); } .he-step button { padding: 15px 18px; } }

/* Phones: tidy section headers and panels */
@media (max-width: 760px) {
  .home-features-section > .shell, .top-used-models-section > .shell, .latest-models-section > .shell, .pricing > .shell, main .faq { padding: 26px 16px 22px !important; border-radius: 24px; }
  main .section-head { flex-direction: row !important; flex-wrap: wrap; align-items: flex-end !important; justify-content: space-between; gap: 12px 10px !important; margin-bottom: 18px !important; text-align: left; }
  main .section-head > div { min-width: 0; flex: 1 1 auto; }
  main .section-head h2 { font-size: clamp(28px, 8.4vw, 38px) !important; }
  main .section-head .kicker { font-size: 10.5px !important; padding: 5px 10px; margin-bottom: 8px; }
  main .section-head .btn, main .section-head .btn-ghost { flex: none; min-height: 0 !important; height: 38px; padding: 0 14px !important; font-size: 13.5px !important; }
  /* Creator choices: big cards, about 1.4 per screen so it is clear the row scrolls */
  .top-used-models-section .x-scroll.model-rail { grid-auto-columns: 70% !important; gap: 14px !important; padding: 10px 2px 58px !important; }
  .top-used-models-section .model-rail .model-card img { padding: 4px !important; }
  .top-used-models-section .model-card::after { bottom: -34px; height: 26px; }
  .top-used-models-section > .shell::after { bottom: 48px; }
  .he-cta .he-btn { width: 100%; justify-content: center; }
}

/* Studio demo, compact: the screen shows the clip at about its real size (720px wide), so it stays sharp,
   and the whole section fits on one laptop screen. */
@media (min-width: 901px) {
  .he-studio > .shell { padding: 44px 40px 40px !important; }
  .he-studio-head { margin-bottom: 28px; }
  .he-studio-head h2 { margin: 12px 0 10px; font-size: clamp(32px, 3.4vw, 50px); }
  .he-studio-head p { font-size: 16px; }
  .he-studio-grid { grid-template-columns: minmax(0, 420px) auto; justify-content: center; gap: 40px; }
  .he-screen { width: min(640px, calc((100svh - 330px) * 16 / 9)); min-width: 460px; }
  .he-steps { gap: 10px; }
  .he-step button { padding: 14px 16px; gap: 14px; }
  .he-step-n { width: 38px; height: 38px; border-radius: 12px; font-size: 16px; }
  .he-step-t strong { font-size: 16px; }
  .he-step-t small { font-size: 13px; }
  .he-studio-cta { margin-top: 28px; }
  .he-studio-cta .he-btn { height: 50px; }
}
/* Studio demo, smaller still (user feedback) */
@media (min-width: 901px) {
  .he-studio > .shell { padding: 36px 40px 32px !important; }
  .he-studio-head { margin-bottom: 22px; }
  .he-studio-head h2 { font-size: clamp(30px, 3vw, 44px); }
  .he-studio-head p { font-size: 15px; }
  .he-studio-grid { grid-template-columns: minmax(0, 380px) auto; gap: 32px; }
  .he-screen { width: min(540px, calc((100svh - 400px) * 16 / 9)); min-width: 400px; }
  .he-screen-bar { padding: 9px 14px; }
  .he-screen-bar i { width: 9px; height: 9px; }
  .he-scr-prompt { font-size: 14px; padding: 12px 16px; }
  .he-scr-chip { font-size: 11.5px; padding: 6px 11px; top: 12px; left: 12px; }
  .he-scr-caption { font-size: 22px; }
  .he-steps { gap: 8px; }
  .he-step button { padding: 11px 14px; }
  .he-step-n { width: 34px; height: 34px; font-size: 15px; }
  .he-step-t strong { font-size: 15px; }
  .he-step-t small { font-size: 12.5px; }
  .he-studio-cta { margin-top: 22px; }
  .he-studio-cta .he-btn { height: 46px; font-size: 15px !important; }
}
/* Studio demo uses a vertical (3:4) ad, like a phone post */
.he-screen-body { aspect-ratio: 3 / 4; }
.he-scr-caption { bottom: 24%; font-size: clamp(16px, 1.6vw, 22px) !important; }
.he-scr-prompt { width: 86%; }
@media (min-width: 901px) {
  .he-studio-grid { grid-template-columns: minmax(0, 420px) auto; gap: 48px; }
  .he-screen { width: calc(clamp(330px, 100svh - 300px, 500px) * .75); min-width: 0; }
}
@media (max-width: 900px) { .he-screen { width: min(300px, 80%); justify-self: center; } }
.he-studio-left { display: grid; gap: 22px; min-width: 0; }
@media (min-width: 901px) {
  .he-studio-left .he-studio-cta { justify-content: flex-start; margin-top: 0; }
  .he-screen { width: calc(clamp(330px, 100svh - 320px, 500px) * .75); }
}
@media (max-width: 900px) { .he-studio-left .he-studio-cta { margin-top: 6px; } }
/* Studio demo back to a wide 16:9 ad */
.he-screen-body { aspect-ratio: 16 / 9; }
.he-scr-caption { bottom: 26%; }
@media (min-width: 901px) {
  .he-studio-grid { grid-template-columns: minmax(0, 380px) auto; gap: 36px; }
  .he-screen { width: min(560px, calc((100svh - 390px) * 16 / 9)); min-width: 420px; }
}
@media (max-width: 900px) { .he-screen { width: 100%; } }

/* ---------- Speed: cheaper effects ---------- */
/* Static gradient border instead of a spinning one (a spinning conic border repaints the whole panel every frame) */
.he-studio > .shell { animation: none !important; background: linear-gradient(180deg, #0f0c1c, #08070f) padding-box, linear-gradient(140deg, rgba(167, 139, 250, .7), rgba(56, 189, 248, .45) 45%, rgba(240, 171, 252, .55)) border-box !important; }
/* Soft lights stay still (big blurred shapes are expensive to move) */
.he-studio-aura i { animation: none !important; }
/* Music wave uses transform, not height */
.he-scr-wave i { height: 80%; transform: scaleY(.35); animation-name: he-wave2; will-change: transform; }
@keyframes he-wave2 { to { transform: scaleY(1); } }
/* Everything in a section that is off screen stops animating */
.he-paused, .he-paused *, .he-paused *::before, .he-paused *::after { animation-play-state: paused !important; }

/* ---------- Captions: modern word-by-word style (like CapCut / TikTok) ---------- */
.he-scr-caption { bottom: 18%; display: flex; flex-wrap: wrap; justify-content: center; gap: 0 .28em; width: 80%; padding: 0; background: none; border-radius: 0; font-size: clamp(13px, 1.25vw, 17px) !important; font-weight: 900; letter-spacing: -.01em; line-height: 1.35; text-transform: uppercase; white-space: normal; text-shadow: 0 2px 10px rgba(0, 0, 0, .55), 0 0 2px rgba(0, 0, 0, .6); }
.he-scr-caption span { display: inline-block; padding: 1px 6px; border-radius: 6px; opacity: 0; transform: translateY(8px) scale(.9); }
.he-screen[data-step="3"] .he-scr-caption span { animation: he-word-in .35s cubic-bezier(.2, .9, .3, 1.3) forwards, he-word-hi 3.2s linear infinite; }
.he-screen[data-step="3"] .he-scr-caption span:nth-child(2) { animation-delay: .25s, .8s; }
.he-screen[data-step="3"] .he-scr-caption span:nth-child(3) { animation-delay: .5s, 1.6s; }
.he-screen[data-step="3"] .he-scr-caption span:nth-child(4) { animation-delay: .75s, 2.4s; }
.he-screen[data-step="3"] .he-scr-caption span:nth-child(5) { animation-delay: 1s, 3.2s; }
.he-screen[data-step="3"] .he-scr-caption span:nth-child(6) { animation-delay: 1.25s, 4s; }
@keyframes he-word-in { to { opacity: 1; transform: none; } }
@keyframes he-word-hi { 0%, 24.9% { background: linear-gradient(100deg, #a855f7, #ec4899); color: #fff; } 25%, 100% { background: transparent; } }
.he-scr-wave { bottom: 6%; height: 26px; transform: translateX(-50%) scale(.85); }
@media (max-width: 900px) { .he-scr-caption { font-size: 12px !important; bottom: 20%; } }
/* The tilted video wall must not make the page scroll sideways */
.studio-marquee-section { overflow-x: clip; }
/* Tablets: sections use the same width as the hero (the old rule kept them at a 560px phone column) */
@media (min-width: 600px) and (max-width: 900px) {
  main .shell { width: calc(100% - 28px) !important; max-width: 820px !important; }
  .he-hero { width: calc(100% - 28px); max-width: 820px; }
  .top-used-models-section .x-scroll.model-rail { grid-auto-columns: 40% !important; }
  .he-screen { width: min(100%, 560px); justify-self: center; }
}
/* Big monitors: the studio demo grows with the screen instead of staying laptop-sized */
@media (min-width: 1500px) {
  .he-studio-grid { grid-template-columns: minmax(0, clamp(380px, 25vw, 500px)) auto; gap: clamp(36px, 3vw, 64px); }
  .he-screen { width: min(clamp(560px, 40vw, 860px), calc((100svh - 390px) * 16 / 9)); }
  .he-studio-head h2 { font-size: clamp(44px, 3.2vw, 64px); }
  .he-studio-head p { font-size: clamp(15px, 1vw, 19px); }
  .he-step button { padding: clamp(11px, .9vw, 18px) clamp(14px, 1vw, 20px); }
  .he-step-t strong { font-size: clamp(15px, 1vw, 19px); }
  .he-step-t small { font-size: clamp(12.5px, .8vw, 15px); }
  .he-step-n { width: clamp(34px, 2.3vw, 44px); height: clamp(34px, 2.3vw, 44px); }
  .he-scr-prompt { font-size: clamp(14px, .95vw, 18px); }
}
@media (min-width: 1500px) { .he-studio-head { max-width: 1100px; } }

/* Headline: second line ("…& more") a bit smaller so it always fits on one line */
.he-title .he-grad { font-size: .8em; }
/* Russian and Armenian words are longer: smaller headline so nothing is squeezed or cut */
html[lang="ru"] .he-title, html[lang="hy"] .he-title { font-size: clamp(36px, 5.2vw, 80px); line-height: 1.08; }
html[lang="hy"] .he-title { font-size: clamp(32px, 4.6vw, 72px); }
@media (max-width: 760px) {
  .he-title { font-size: clamp(32px, 9.4vw, 46px); line-height: 1.04; }
  .he-title .he-grad { font-size: .78em; }
  html[lang="ru"] .he-title { font-size: clamp(28px, 8.2vw, 38px); line-height: 1.1; }
  html[lang="hy"] .he-title { font-size: clamp(25px, 7.2vw, 34px); line-height: 1.16; }
  html[lang="ru"] .he-lead, html[lang="hy"] .he-lead { font-size: 14px; line-height: 1.5; }
  html[lang="ru"] .he-studio-head h2, html[lang="hy"] .he-studio-head h2 { font-size: clamp(26px, 7.4vw, 34px); line-height: 1.1; }
  html[lang="ru"] main .section-head h2, html[lang="hy"] main .section-head h2 { font-size: clamp(24px, 7vw, 32px) !important; }
}
/* The hero headline intro always plays, even if the page opens scrolled down */
.he-hero.he-paused .he-copy, .he-hero.he-paused .he-copy * { animation-play-state: running !important; }
/* Side-scrolling rows snap gently, so a slightly diagonal trackpad swipe keeps scrolling the page */
main .x-scroll, .home-features-grid { scroll-snap-type: x proximity !important; overscroll-behavior-y: auto; }
/* Room above the side-scrolling rows, so cards lifted on hover are not cut at the top */
.top-reel .x-scroll { padding-top: 12px !important; margin-top: -12px !important; padding-bottom: 14px !important; margin-bottom: -14px !important; }

/* Phones: side-scrolling rows never scroll up and down, so a vertical swipe always moves the page */
main .x-scroll, .home-features-grid, .top-reel .x-scroll { overflow-y: hidden !important; overscroll-behavior-y: auto; touch-action: pan-x pan-y; }
/* Touch screens keep a "hover" after a tap; no lifting cards there */
@media (hover: none) {
  .studio-card:hover, .latest-model-card:hover, .top-used-models-section .slot:hover, .top-reel .slot:hover, .studio-marquee-section .studio-card:hover { transform: none !important; }
  .top-reel .x-scroll { padding-top: 0 !important; margin-top: 0 !important; padding-bottom: 0 !important; margin-bottom: 0 !important; }
}
/* The moving wall in the hero never takes touches */
.he-wall, .he-shade, .he-models { pointer-events: none; touch-action: pan-y; }

/* Phones: "overflow-x: hidden" on html + body (+ main) made the body its own inner scroll box, so a swipe
   scrolled a few pixels and stopped. "clip" hides sideways overflow without creating a scroll box.
   Browsers without "clip" ignore these lines and keep the old rule. */
html, body { overflow-x: clip !important; overflow-y: visible !important; }
main { overflow-x: clip !important; overflow-y: visible !important; }
.he-hero, .he-col, .he-studio-aura, .ready-cta-section, .he-models { overflow: clip !important; }
