/* Guest landing (logged-out visitors). Shared class vocabulary `mgl-*` in both generator plugins.
   Backgrounds are #000 / #101010 only, borders #262626 / #333; the accent is used for text, icons and the filled button
   (whose label is computed from the accent, see --mgl-on-accent, so it stays readable on any accent and on any theme version). */
.mgl { --mgl-accent: var(--color-primary, var(--musiveo-accent, #ffffff)); --mgl-on-accent: #000000; --mgl-text: #f5f5f5; --mgl-muted: #a3a3a3;
    color: var(--mgl-text); max-width: 1180px; margin: 0 auto; padding: 24px 20px 80px; display: grid; gap: 72px; }
@supports (color: oklch(from red l c h)) { .mgl { --mgl-on-accent: oklch(from var(--mgl-accent) clamp(0, (0.6 - l) * 1000, 1) 0 0); } }
.mgl h1, .mgl h2, .mgl h3 { color: var(--mgl-text); margin: 0; line-height: 1.1; letter-spacing: -0.02em; }
.mgl h1, .mgl .mgl-title { font-size: clamp(2.2rem, 5vw, 4rem); margin: 0; margin-bottom: 0; }
.mgl h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); margin-bottom: 24px; }
.mgl h3 { font-size: 1.05rem; margin: 12px 0 6px; letter-spacing: 0; }
.mgl p { color: var(--mgl-muted); line-height: 1.6; margin: 0; padding: 0; text-indent: 0; }
.mgl h1, .mgl h2, .mgl h3 { padding: 0; text-indent: 0; }
.mgl-lead { margin: 20px 0 28px !important; }
.mgl-card i { display: block; margin: 0; padding: 0; }
.mgl-card h3 { margin: 14px 0 6px; }

.mgl-hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 48px; align-items: center; padding-top: 24px; }
.mgl-eyebrow { display: inline-block; color: var(--mgl-accent); font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 16px; }
.mgl-lead { font-size: 1.15rem; margin: 20px 0 28px; max-width: 34em; }
.mgl-cta { display: flex; flex-wrap: wrap; gap: 12px; }
.mgl-note { font-size: .85rem; margin-top: 14px; }
.mgl-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 28px; border-radius: 999px;
    font-weight: 600; text-decoration: none; border: 1px solid #333; transition: transform .15s ease, border-color .15s ease, background-color .15s ease; }
.mgl-btn-primary { background: #ffffff; border-color: #ffffff; color: #000000; }
/* Every link state states its own colour: the theme's generic `a:hover { color: #fff }` is stronger than the base rule and made the label white on a white button. */
.mgl .mgl-btn-primary, .mgl .mgl-btn-primary:visited, .mgl .mgl-btn-primary:hover, .mgl .mgl-btn-primary:focus, .mgl .mgl-btn-primary:active { color: #000000; background-color: #ffffff; border-color: #ffffff; }
.mgl .mgl-btn-primary:hover { transform: translateY(-2px); }
.mgl .mgl-btn-ghost, .mgl .mgl-btn-ghost:visited, .mgl .mgl-btn-ghost:hover, .mgl .mgl-btn-ghost:focus, .mgl .mgl-btn-ghost:active { color: var(--mgl-text); background-color: #101010; }
.mgl-btn-ghost { background: #101010; color: var(--mgl-text); }
.mgl-btn-ghost:hover { border-color: var(--mgl-accent); }
.mgl-btn:focus-visible, .mgl-play:focus-visible, .mgl summary:focus-visible { outline: 2px solid var(--mgl-accent); outline-offset: 3px; }

.mgl-hero-media { background: #101010; border: 1px solid #262626; border-radius: 20px; overflow: hidden; aspect-ratio: 16 / 9; }
.mgl-video { width: 100%; height: 100%; object-fit: cover; display: block; background: #000; }

/* Animated stand-in for the demo video */
.mgl-mock { height: 100%; padding: 22px; display: grid; align-content: start; gap: 14px; background: #101010; }
.mgl-mock-prompt { background: #000; border: 1px solid #333; border-radius: 14px; padding: 16px; min-height: 64px; font-size: 1rem; color: var(--mgl-text); display: flex; align-items: center; }
.mgl-type { display: inline-block; overflow: hidden; white-space: nowrap; width: 0; animation: mgl-type 3.2s steps(36) .6s forwards; }
.mgl-caret { width: 2px; height: 1.1em; background: var(--mgl-accent); margin-left: 2px; animation: mgl-blink 1s steps(1) infinite; }
.mgl-mock-btn { justify-self: start; padding: 10px 26px; border-radius: 999px; background: var(--mgl-accent); color: var(--mgl-on-accent); font-weight: 600; animation: mgl-press 6s ease 3.6s infinite; }
.mgl-mock-row { display: flex; align-items: center; gap: 14px; background: #000; border: 1px solid #262626; border-radius: 14px; padding: 12px; opacity: 0; transform: translateY(10px); animation: mgl-rise .7s ease forwards; }
.mgl-mock-row:nth-of-type(3) { animation-delay: 4.2s; }
.mgl-mock-row:nth-of-type(4) { animation-delay: 4.8s; }
.mgl-mock-cover { width: 52px; height: 52px; border-radius: 10px; background: #1a1a1a; border: 1px solid #333; flex: none; }
.mgl-mock-lines { display: grid; gap: 8px; flex: 1; }
.mgl-mock-lines i { display: block; height: 8px; border-radius: 4px; background: #262626; }
.mgl-mock-lines i:first-child { width: 60%; background: #333; }
.mgl-mock-wave { display: flex; align-items: center; gap: 3px; height: 32px; }
.mgl-mock-wave i { width: 4px; border-radius: 2px; background: var(--mgl-accent); animation: mgl-wave 1.1s ease-in-out infinite; }
.mgl-mock-wave i:nth-child(odd) { animation-delay: -.5s; }
.mgl-mock-wave i:nth-child(3n) { animation-delay: -.2s; }
@keyframes mgl-type { to { width: 100%; } }
@keyframes mgl-blink { 50% { opacity: 0; } }
@keyframes mgl-rise { to { opacity: 1; transform: none; } }
@keyframes mgl-press { 0%, 90%, 100% { transform: scale(1); } 94% { transform: scale(.94); } }
@keyframes mgl-wave { 0%, 100% { height: 6px; } 50% { height: 28px; } }

.mgl-tracks { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.mgl-track { background: #101010; border: 1px solid #262626; border-radius: 16px; padding: 12px; display: grid; gap: 12px; }
.mgl-play { position: relative; display: block; width: 100%; height: auto !important; min-height: 0; aspect-ratio: 1 / 1; border: 0; padding: 0; margin: 0; border-radius: 12px; overflow: hidden; background: #000; cursor: pointer; color: #fff; line-height: 0; }
.mgl-play img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; display: block; }
.mgl-play i { position: absolute; inset: 0; display: grid; place-items: center; font-size: 2rem; background: rgba(0, 0, 0, .35); opacity: 0; transition: opacity .15s ease; }
.mgl-play:hover i, .mgl-play:focus-visible i, .mgl-play.is-playing i { opacity: 1; }
.mgl-play.is-playing i::before { content: "\f04c"; }
.mgl-still { cursor: default; }
.mgl-clip { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: #000; }
.mgl-track-meta { display: grid; gap: 2px; }
.mgl-track-meta span { color: var(--mgl-muted); font-size: .85rem; }

.mgl-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 900px) { .mgl-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .mgl-grid { grid-template-columns: 1fr; } }
.mgl-card { background: #101010; border: 1px solid #262626; border-radius: 16px; padding: 22px; transition: border-color .15s ease, transform .15s ease; }
.mgl-card:hover { border-color: #333; transform: translateY(-2px); }
.mgl-card i { color: var(--mgl-accent); font-size: 1.4rem; }

.mgl-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.mgl-steps li { display: flex; gap: 16px; align-items: center; background: #101010; border: 1px solid #262626; border-radius: 16px; padding: 20px; color: var(--mgl-text); }
.mgl-steps b { color: var(--mgl-accent); font-size: 1.6rem; flex: none; }

.mgl-costs { list-style: none; margin: 0 0 14px; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; }
.mgl-costs li { display: flex; justify-content: space-between; align-items: baseline; background: #101010; border: 1px solid #262626; border-radius: 14px; padding: 16px 18px; }
.mgl-costs b { color: var(--mgl-accent); font-size: 1.4rem; }

.mgl-cross { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; background: #101010; border: 1px solid #262626; border-radius: 20px; padding: 28px; }
.mgl-cross h2 { margin-bottom: 8px; }

.mgl-faq { display: grid; gap: 10px; }
.mgl details { background: #101010; border: 1px solid #262626; border-radius: 14px; padding: 0 20px; }
.mgl summary { cursor: pointer; padding: 18px 0; color: var(--mgl-text); font-weight: 600; }
.mgl details p { padding: 0 0 18px; }

.mgl-final { text-align: center; display: grid; gap: 22px; justify-items: center; }
.mgl-final h2 { margin: 0; }

@media (max-width: 900px) {
    .mgl { gap: 52px; }
    .mgl-hero { grid-template-columns: 1fr; gap: 28px; }
    .mgl-cta .mgl-btn { flex: 1 1 140px; }
}
@media (prefers-reduced-motion: reduce) {
    .mgl *, .mgl *::before, .mgl *::after { animation: none !important; transition: none !important; }
    .mgl-type { width: 100%; }
    .mgl-mock-row { opacity: 1; transform: none; }
    .mgl-mock-wave i { height: 16px; }
}

/* Powered-by strip: names who creates the results (Suno for music, Grok Imagine and GPT-Image for images and video). */
.mgl-powered { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 28px; margin: 0 0 8px; padding: 18px 22px; background: #101010; border: 1px solid #262626; border-radius: 18px; }
.mgl-powered-brand { display: flex; align-items: center; gap: 12px; }
.mgl-powered-label { color: #a3a3a3; font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; }
.mgl-suno-word { font-size: 1.9rem; font-weight: 800; letter-spacing: -.04em; line-height: 1; color: #fff; }
.mgl-suno-logo { height: 32px; width: auto; display: block; }
.mgl-model-logo { width: 28px; height: 28px; object-fit: contain; display: block; }
.mgl-powered-copy { flex: 1 1 260px; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.mgl-powered-copy strong { color: #fff; font-size: 1rem; }
.mgl-powered-copy span { color: #a3a3a3; font-size: .92rem; line-height: 1.45; }
.mgl-powered-models { list-style: none; display: flex; gap: 8px; margin: 0; padding: 0; flex-wrap: wrap; }
.mgl-powered-models li { padding: 6px 12px; border: 1px solid #333; border-radius: 999px; background: #000; color: #f5f5f5; font-size: .85rem; font-weight: 600; }
@media (max-width: 560px) { .mgl-powered { padding: 16px; } .mgl-powered-models { width: 100%; } }

/* Clone your voice: copy and the how-to clip side by side, stacked on small screens. */
.mgl-voice { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 28px; align-items: center; }
.mgl-voice-copy .mgl-btn { margin-top: 18px; }
.mgl-voice-media { background: #101010; border: 1px solid #262626; border-radius: 20px; overflow: hidden; aspect-ratio: 16 / 9; }
.mgl-voice-video { width: 100%; height: 100%; object-fit: cover; display: block; background: #000; }
@media (max-width: 800px) { .mgl-voice { grid-template-columns: 1fr; } }

/* Music video example: a real portrait clip from the Create Music Video feature, with the lyrics shown. */
.mgl-mv .mgl-voice-media { aspect-ratio: 9 / 16; max-width: 300px; width: 100%; margin: 0 auto; background: #000; }
.mgl-mv .mgl-voice-video { object-fit: cover; }
@media (max-width: 800px) { .mgl-mv .mgl-voice-media { max-width: 260px; } }

/* Videos start on click: a play badge sits on the poster and goes away while the video plays. */
.mgl-vwrap, [data-mgl-vwrap] { cursor: pointer; }
.mgl-vwrap { position: relative; width: 100%; height: 100%; }
.mgl-vicon { position: absolute; left: 50%; top: 50%; width: 64px; height: 64px; margin: -32px 0 0 -32px; border-radius: 50%; background: var(--mgl-accent); display: grid; place-items: center; pointer-events: none; box-shadow: 0 6px 24px rgba(0, 0, 0, .5); transition: opacity .2s ease, transform .2s ease; }
.mgl-vicon svg { width: 24px; height: 24px; margin-left: 3px; fill: var(--mgl-on-accent); }
[data-mgl-vwrap]:hover .mgl-vicon { transform: scale(1.06); }
[data-mgl-vwrap].is-playing .mgl-vicon { opacity: 0; }
[data-mgl-vwrap]:focus-visible { outline: 2px solid #ffffff; outline-offset: 3px; }
.mgl-model-logo { filter: invert(1); }
.mgl-model-name { color: #f5f5f5; font-size: .9rem; font-weight: 600; }
.mgl-model { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px 6px 8px; border: 1px solid #333; border-radius: 999px; background: #000; }

/* Karaoke demo: a small looping animated WebP, square so the lyrics stay readable on a phone. */
.mgl-karaoke .mgl-karaoke-media { aspect-ratio: 1 / 1; max-width: 520px; width: 100%; margin: 0 auto; }
.mgl-karaoke-img { width: 100%; height: 100%; object-fit: contain; display: block; background: #000; }

.mgl-made-with { display: inline-flex; align-items: center; gap: 6px; font-style: normal; font-size: .75rem; font-weight: 600; color: var(--mgl-muted); }
.mgl-made-with img { width: 14px; height: 14px; object-fit: contain; filter: invert(1); }

/* The model strip: one row of pills that wraps as a whole, names never broken inside a pill, the explanation on its own line below. */
.mgl-powered-brand { flex: 1 1 100%; flex-wrap: wrap; gap: 10px 10px; }
.mgl-powered-label { flex: 0 0 auto; margin-right: 6px; }
.mgl-model { flex: 0 0 auto; white-space: nowrap; }
.mgl-model-name { white-space: nowrap; }
.mgl-powered-copy { flex: 1 1 100%; }
@media (max-width: 560px) { .mgl-powered-label { flex: 0 0 100%; margin: 0 0 2px; } .mgl-model { padding: 5px 10px 5px 7px; } .mgl-model-name { font-size: .82rem; } }

/* Assistant landing: screenshots */
.mcl-shots { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
.mcl-shot { margin: 0; background: #101010; border: 1px solid #262626; border-radius: 16px; overflow: hidden; display: grid; }
.mcl-shot img { width: 100%; height: auto; display: block; aspect-ratio: 8 / 5; object-fit: cover; background: #0b0b0b; }
.mcl-shot figcaption { padding: 14px 16px 16px; display: grid; gap: 4px; }
.mcl-shot figcaption span { color: var(--mgl-muted); font-size: .9rem; }

/* ---------- animated bot and chat demo ---------- */
.mgl-hero-media.mgl-demo-wrap { aspect-ratio: auto; min-height: 360px; display: grid; }
.mgl-demo { display: flex; flex-direction: column; gap: 12px; padding: 18px; background: #101010; min-height: 360px; }
.mgl-demo-stage { position: relative; flex: 1; min-height: 240px; }
.mgl-demo-welcome { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; transition: opacity .5s, transform .5s; }
.mgl-demo.is-chat .mgl-demo-welcome { opacity: 0; transform: translateY(-10px); pointer-events: none; }
.mgl-demo-welcome .mgl-bot { width: 96px; height: 96px; }
.mgl-demo .mgl-demo-h { color: var(--mgl-text); font-weight: 600; font-size: 1.3rem; }
.mgl-demo-chat { position: absolute; inset: 0; display: flex; flex-direction: column; gap: 12px; opacity: 0; transition: opacity .4s; }
.mgl-demo.is-chat .mgl-demo-chat { opacity: 1; }
.mgl-demo-user { align-self: flex-end; max-width: 82%; background: #000; border: 1px solid #333; border-radius: 14px 14px 4px 14px; padding: 10px 14px; color: var(--mgl-text); font-size: .95rem; opacity: 0; transform: translateY(8px); transition: opacity .35s, transform .35s; }
.mgl-demo.is-user .mgl-demo-user { opacity: 1; transform: none; }
.mgl-demo-reply { display: none; flex-direction: column; gap: 8px; }
.mgl-demo.is-reply .mgl-demo-reply { display: flex; animation: mgl-rise .4s ease both; }
.mgl-demo-status { display: flex; align-items: center; gap: 8px; color: #b9b9b9; font-size: .86rem; min-height: 24px; }
.mgl-demo-status .mgl-bot { width: 34px; height: 34px; flex: none; }
.mgl-demo-answer { display: grid; gap: 4px; color: #e6e6e6; font-size: .94rem; line-height: 1.5; }
.mgl-demo-answer span { opacity: 0; transform: translateY(5px); transition: opacity .35s, transform .35s; }
.mgl-demo-answer span.is-on { opacity: 1; transform: none; }
.mgl-demo-chips { display: flex; flex-wrap: wrap; gap: 8px; opacity: 0; transition: opacity .4s; }
.mgl-demo.is-done .mgl-demo-chips { opacity: 1; }
.mgl-demo-chips span { border: 1px solid #333; border-radius: 999px; padding: 4px 12px; font-size: .8rem; color: #ddd; background: #000; }
.mgl-demo-composer { display: flex; align-items: center; gap: 4px; background: #000; border: 1px solid #333; border-radius: 16px; padding: 8px 8px 8px 16px; min-height: 52px; color: var(--mgl-text); }
.mgl-demo-typed { flex: 0 1 auto; max-width: calc(100% - 50px); overflow: hidden; white-space: nowrap; font-size: .95rem; }
.mgl-demo-typed:empty { flex: 1; }
.mgl-demo-typed:empty::before { content: attr(data-placeholder); color: #777; }
.mgl-demo-composer .mgl-caret { flex: none; margin-right: auto; }
.mgl-demo-send { flex: none; width: 34px; height: 34px; border-radius: 50%; background: var(--mgl-accent); color: var(--mgl-on-accent); display: grid; place-items: center; transition: transform .2s; }
.mgl-demo.is-sending .mgl-demo-send { transform: scale(.82); }
.mgl-spot { display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr); gap: 48px; align-items: center; background: #101010; border: 1px solid #262626; border-radius: 24px; padding: 40px 48px; }
.mgl-spot-bot { display: grid; place-items: center; }
.mgl-spot-bot .mgl-bot { width: 100%; max-width: 240px; height: auto; aspect-ratio: 1; }
.mgl-spot-copy h2 { margin: 10px 0 14px; }
.mgl-spot-copy p { max-width: 560px; }
.mgl-spot-list { list-style: none; margin: 22px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.mgl-spot-list li { background: #000; border: 1px solid #333; border-radius: 999px; padding: 8px 16px; font-size: .9rem; color: var(--mgl-text); margin: 0; }
@media (max-width: 800px) { .mgl-spot { grid-template-columns: 1fr; padding: 28px 22px; gap: 20px; text-align: center; } .mgl-spot-bot .mgl-bot { max-width: 150px; } .mgl-spot-copy p { margin-inline: auto; } .mgl-spot-list { justify-content: center; } }
.mgl-bot { display: block; overflow: visible; }
.mgl-bot [data-f] { display: none; }
.mgl-bot[data-state=idle] [data-f=idle], .mgl-bot[data-state=thinking] [data-f=thinking], .mgl-bot[data-state=searching] [data-f=searching], .mgl-bot[data-state=working] [data-f=working], .mgl-bot[data-state=writing] [data-f=writing], .mgl-bot[data-state=happy] [data-f=happy] { display: inline; }
.mgl-bot-body { animation: mgl-bot-bob 2.2s ease-in-out infinite; }
.mgl-bot-shadow { transform-box: fill-box; transform-origin: center; animation: mgl-bot-shadow 2.2s ease-in-out infinite; }
.mgl-bot-eyes { transform-box: fill-box; transform-origin: center; animation: mgl-bot-blink 3.6s infinite; }
.mgl-bot-dots circle { animation: mgl-bot-dot 1.2s ease-in-out infinite; }
.mgl-bot-dots circle:nth-child(2) { animation-delay: .2s; } .mgl-bot-dots circle:nth-child(3) { animation-delay: .4s; }
.mgl-bot-glass { transform-box: fill-box; transform-origin: 90% 90%; animation: mgl-bot-search 1.6s ease-in-out infinite; }
.mgl-bot-bars path { transform-box: fill-box; transform-origin: center; animation: mgl-bot-bar .8s ease-in-out infinite; }
.mgl-bot-bars path:nth-child(2) { animation-delay: .12s; } .mgl-bot-bars path:nth-child(3) { animation-delay: .24s; } .mgl-bot-bars path:nth-child(4) { animation-delay: .36s; } .mgl-bot-bars path:nth-child(5) { animation-delay: .48s; }
.mgl-bot-spark path { transform-box: fill-box; transform-origin: center; animation: mgl-bot-twinkle 1.2s ease-in-out infinite; }
@keyframes mgl-bot-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }
@keyframes mgl-bot-shadow { 0%, 100% { transform: scaleX(1); opacity: .55; } 50% { transform: scaleX(.86); opacity: .38; } }
@keyframes mgl-bot-blink { 0%, 90%, 100% { transform: scaleY(1); } 94% { transform: scaleY(.1); } }
@keyframes mgl-bot-dot { 0%, 100% { opacity: .25; } 50% { opacity: 1; } }
@keyframes mgl-bot-search { 0%, 100% { transform: rotate(-12deg); } 50% { transform: rotate(14deg); } }
@keyframes mgl-bot-bar { 0%, 100% { transform: scaleY(.45); } 50% { transform: scaleY(1.25); } }
@keyframes mgl-bot-twinkle { 0%, 100% { transform: scale(.8); opacity: .75; } 50% { transform: scale(1.15); opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .mgl-bot *, .mgl-demo * { animation: none !important; transition: none !important; } }

.mgl-orb-canvas { display: block; width: 100%; height: 100%; }
.mgl-bot { display: block; }
