/* ===== Landing page ===== */
.nav { display: flex; justify-content: space-between; align-items: center; padding: 22px 0; position: relative; z-index: 5; }
.logo { font-weight: 800; font-size: 20px; display: flex; align-items: center; gap: 8px; }
.logo-mark { display: inline-block; color: var(--brand-2); animation: spin 8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.nav-links { display: flex; align-items: center; gap: 26px; font-size: 14px; color: var(--muted); }
.nav-links a:not(.btn):hover { color: var(--text); }
.btn-sm { padding: 10px 18px; font-size: 14px; color: #fff; }

/* Hero */
.hero { display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: center; min-height: calc(100vh - 90px); padding: 30px 0 60px; }
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; font-size: 13px; background: rgba(255,255,255,.06); border: 1px solid var(--card-border); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 0 rgba(46,229,157,.7); animation: ping 1.8s infinite; }
@keyframes ping { 70% { box-shadow: 0 0 0 10px rgba(46,229,157,0); } 100% { box-shadow: 0 0 0 0 rgba(46,229,157,0); } }
.hero h1 { font-size: clamp(36px, 5.2vw, 62px); line-height: 1.08; font-weight: 800; margin: 18px 0; letter-spacing: -0.02em; }
.lead { font-size: 18px; color: var(--muted); max-width: 540px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 30px; }
.stats { display: flex; gap: 36px; margin-top: 40px; }
.stats b { display: block; font-size: 32px; font-weight: 800; }
.stats span { font-size: 13px; color: var(--muted); }

.hero-visual { position: relative; height: 560px; display: grid; place-items: center; }
.phone {
  width: 270px; height: 540px; border-radius: 42px; padding: 12px; position: relative; z-index: 2;
  background: linear-gradient(160deg, #2a2a40, #0c0c16); border: 1px solid rgba(255,255,255,.15);
  box-shadow: 0 40px 100px rgba(124,92,255,.35), inset 0 0 0 2px rgba(255,255,255,.04);
  animation: bob 6s ease-in-out infinite;
}
@keyframes bob { 0%,100% { translate: 0 0; } 50% { translate: 0 -16px; } }
.phone-notch { position: absolute; top: 18px; left: 50%; transform: translateX(-50%); width: 90px; height: 22px; border-radius: 12px; background: #000; z-index: 3; }
.phone-screen {
  height: 100%; border-radius: 32px; padding: 56px 18px 18px; text-align: center; overflow: hidden;
  background: radial-gradient(circle at 30% 0%, rgba(124,92,255,.45), transparent 60%), radial-gradient(circle at 100% 100%, rgba(0,212,255,.3), transparent 55%), #0b0b16;
}
.ph-avatar { width: 64px; height: 64px; margin: 0 auto; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 26px; background: linear-gradient(135deg, var(--brand), var(--brand-3)); box-shadow: 0 0 0 4px rgba(255,255,255,.08); }
.ph-title { font-weight: 700; margin-top: 10px; }
.ph-stars { margin: 12px 0; display: flex; justify-content: center; gap: 4px; }
.ph-stars i { font-style: normal; font-size: 26px; color: rgba(255,255,255,.15); animation: starFill 5s infinite; }
.ph-stars i:nth-child(2) { animation-delay: .15s; } .ph-stars i:nth-child(3) { animation-delay: .3s; }
.ph-stars i:nth-child(4) { animation-delay: .45s; } .ph-stars i:nth-child(5) { animation-delay: .6s; }
@keyframes starFill { 0%,8% { color: rgba(255,255,255,.15); transform: scale(1); } 14% { color: var(--gold); transform: scale(1.35); } 20%,90% { color: var(--gold); transform: scale(1); text-shadow: 0 0 12px rgba(255,200,61,.7); } 100% { color: rgba(255,255,255,.15); } }
.ph-ai { display: inline-block; font-size: 11px; padding: 4px 10px; border-radius: 999px; border: 1px solid rgba(124,92,255,.5); background: rgba(124,92,255,.15); }
.ph-text { margin-top: 12px; text-align: left; font-size: 12.5px; line-height: 1.55; min-height: 150px; padding: 12px; border-radius: 14px; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.08); color: #dcdcf0; }
.ph-caret { color: var(--brand-2); animation: blink .8s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.ph-btn { margin-top: 14px; padding: 11px; border-radius: 12px; background: #fff; color: #111; font-weight: 600; font-size: 13px; animation: glowBtn 2.4s ease-in-out infinite; }
@keyframes glowBtn { 50% { box-shadow: 0 0 24px rgba(255,255,255,.45); } }

.orbit { position: absolute; width: 440px; height: 440px; border-radius: 50%; border: 1px dashed rgba(255,255,255,.12); animation: spin 22s linear infinite; }
.orbit.o2 { width: 540px; height: 540px; animation-duration: 34s; animation-direction: reverse; }
.orbit span { position: absolute; top: -18px; left: 50%; transform: translateX(-50%); width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; background: linear-gradient(135deg, var(--gold), #ff8a3d); color: #111; box-shadow: 0 0 20px rgba(255,200,61,.6); }
.orbit.o2 span { background: #fff; color: #4285f4; box-shadow: 0 0 20px rgba(255,255,255,.4); }

.float-card { position: absolute; z-index: 3; padding: 14px 16px; border-radius: 16px; animation: bob 5s ease-in-out infinite; }
.fc1 { top: 70px; right: 0; animation-delay: -1.5s; }
.fc2 { bottom: 60px; left: 0; text-align: center; animation-delay: -3s; }
.fc-stars { color: var(--gold); letter-spacing: 2px; font-size: 18px; }
.fc-sub { font-size: 12px; color: var(--muted); margin-top: 4px; }
.qr-mini { width: 86px; height: 86px; background: #fff; border-radius: 10px; padding: 6px; }
.qr-mini img, .qr-mini canvas { width: 100%; height: 100%; display: block; image-rendering: pixelated; }
.scan-line { position: absolute; left: 4px; bottom: 136px; width: 104px; height: 3px; z-index: 4; border-radius: 3px; background: var(--brand-2); box-shadow: 0 0 14px var(--brand-2); animation: scan 2.2s ease-in-out infinite; }
@keyframes scan { 0%,100% { transform: translateY(0); } 50% { transform: translateY(80px); } }

/* Sections */
.section { padding: 90px 0; }
.section-title { text-align: center; font-size: clamp(30px, 4vw, 44px); font-weight: 800; margin-bottom: 50px; letter-spacing: -0.01em; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.step { padding: 32px 26px; position: relative; overflow: hidden; }
.step-num { position: absolute; top: 10px; right: 18px; font-size: 72px; font-weight: 800; color: rgba(255,255,255,.05); }
.step-icon { font-size: 36px; width: 66px; height: 66px; display: grid; place-items: center; border-radius: 18px; background: linear-gradient(135deg, rgba(124,92,255,.3), rgba(0,212,255,.2)); margin-bottom: 18px; animation: bob 4s ease-in-out infinite; }
.step:nth-child(2) .step-icon { animation-delay: -1.3s; } .step:nth-child(3) .step-icon { animation-delay: -2.6s; }
.step h3 { font-size: 20px; margin-bottom: 8px; }
.step p { color: var(--muted); font-size: 15px; }

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feat { padding: 24px; transition: transform .3s, border-color .3s; }
.feat:hover { transform: translateY(-6px); border-color: rgba(124,92,255,.5); }
.feat span { font-size: 28px; }
.feat h4 { margin: 10px 0 4px; font-size: 17px; }
.feat p { color: var(--muted); font-size: 14px; }

/* Creator */
.creator { display: grid; grid-template-columns: 1.1fr 1fr; gap: 24px; align-items: start; }
.form { padding: 28px; display: grid; gap: 16px; }
.form label { display: grid; gap: 6px; font-size: 13px; font-weight: 600; color: #d6d6ea; }
.form small { font-weight: 400; color: var(--muted); font-size: 12px; }
.form input:not([type=checkbox]):not([type=color]) {
  width: 100%; padding: 13px 14px; border-radius: 12px; font: inherit; font-size: 14px; color: var(--text);
  background: rgba(255,255,255,.05); border: 1px solid var(--card-border); transition: border-color .2s, box-shadow .2s;
}
.form input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px rgba(124,92,255,.2); }
.lang-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; font-size: 13px; font-weight: 600; }
.lang-row .check { display: flex; flex-direction: row; align-items: center; gap: 6px; font-weight: 500; }
.color-row { display: flex; gap: 20px; }
.color-row label { display: flex; flex-direction: row; align-items: center; gap: 10px; }
.color-row input { width: 42px; height: 32px; border: none; background: none; cursor: pointer; }

.preview { padding: 28px; position: sticky; top: 20px; }
.qr-frame { position: relative; background: #fff; border-radius: 20px; padding: 26px; text-align: center; }
.qr-out { aspect-ratio: 1; display: grid; place-items: center; }
.qr-out canvas { width: 100%; height: auto; animation: qrIn .7s cubic-bezier(.2,.9,.3,1.2); }
@keyframes qrIn { from { opacity: 0; transform: scale(.7) rotate(-8deg); filter: blur(6px); } to { opacity: 1; transform: none; filter: none; } }
.qr-placeholder { color: #9a9ab0; font-size: 14px; border: 2px dashed #ddd; border-radius: 12px; width: 100%; height: 100%; display: grid; place-items: center; }
.qr-caption { margin-top: 12px; font-weight: 800; letter-spacing: .2em; color: #1b1340; font-size: 14px; }
.qr-corners i { position: absolute; width: 26px; height: 26px; border: 4px solid var(--brand); animation: corner 2s ease-in-out infinite; }
.qr-corners i:nth-child(1) { top: 8px; left: 8px; border-right: 0; border-bottom: 0; border-radius: 10px 0 0 0; }
.qr-corners i:nth-child(2) { top: 8px; right: 8px; border-left: 0; border-bottom: 0; border-radius: 0 10px 0 0; }
.qr-corners i:nth-child(3) { bottom: 8px; left: 8px; border-right: 0; border-top: 0; border-radius: 0 0 0 10px; }
.qr-corners i:nth-child(4) { bottom: 8px; right: 8px; border-left: 0; border-top: 0; border-radius: 0 0 10px 0; }
@keyframes corner { 50% { opacity: .35; } }
.preview-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 18px; }
.preview-actions .span-2 { grid-column: span 2; }
.preview-actions .btn { padding: 12px 8px; font-size: 13px; }
.preview-actions a[aria-disabled="true"] { opacity: .5; pointer-events: none; }
.short-link { margin-top: 18px; font-size: 13px; color: var(--muted); }
.short-link summary { cursor: pointer; color: var(--text); font-weight: 600; }
.short-link p { margin: 10px 0; }
.short-link code { color: var(--brand-2); }
.short-link pre { background: rgba(0,0,0,.4); padding: 12px; border-radius: 10px; overflow: auto; font-size: 12px; color: #cfe; max-height: 220px; }

.footer { text-align: center; color: var(--muted); font-size: 13px; padding: 40px 0; border-top: 1px solid var(--card-border); }

.hero > *, .creator > * { min-width: 0; }

@media (max-width: 900px) {
  .hero, .creator { grid-template-columns: 1fr; }
  .hero { text-align: center; min-height: auto; padding-top: 10px; }
  .lead { margin: 0 auto; font-size: 16px; }
  .hero-cta, .stats { justify-content: center; }
  .hero-visual { height: 520px; overflow: hidden; }
  .steps, .features { grid-template-columns: 1fr; }
  .nav-links a:not(.btn) { display: none; }
  .preview { position: static; }
  .orbit { width: 330px; height: 330px; } .orbit.o2 { width: 400px; height: 400px; }
  .section { padding: 60px 0; }
}
@media (max-width: 480px) {
  .hero h1 { font-size: 34px; }
  .hero-cta .btn { width: 100%; }
  .stats { gap: 20px; }
  .stats b { font-size: 26px; }
  .hero-visual { height: 500px; }
  .phone { width: 240px; height: 480px; }
  .ph-text { min-height: 120px; }
  .fc1 { right: -6px; top: 40px; } .fc2 { left: -6px; bottom: 40px; }
  .scan-line { bottom: 116px; left: -2px; }
  .form, .preview { padding: 20px; }
  .lang-row span { width: 100%; }
  .form input:not([type=checkbox]):not([type=color]) { font-size: 16px; }
}

/* ===== Zmedia brand ===== */
.logo-z {
  width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center;
  font-size: 22px; font-weight: 800; color: #fff;
  background: linear-gradient(135deg, var(--brand), var(--brand-3), var(--brand-2));
  background-size: 200% 200%; animation: zshift 4s ease infinite;
  box-shadow: 0 8px 22px rgba(124,92,255,.5);
}
@keyframes zshift { 50% { background-position: 100% 100%; } }
.logo-txt { display: flex; flex-direction: column; line-height: 1.05; }
.logo-txt small { font-size: 10.5px; font-weight: 500; color: var(--muted); letter-spacing: .04em; }

/* ===== Hero waving person ===== */
.hero-person { position: absolute; right: 2%; bottom: -6px; width: 130px; height: 195px; z-index: 4; }
.hero-bubble { right: 0; bottom: 196px; }

/* ===== Happy people scene ===== */
.scene-sub { text-align: center; color: var(--muted); margin: -32px auto 40px; max-width: 560px; }
.scene { position: relative; display: flex; justify-content: center; align-items: flex-end; gap: 10px; padding-top: 70px; min-height: 360px; }
.stage-glow { position: absolute; left: 5%; right: 5%; bottom: -10px; height: 70px; border-radius: 50%; background: radial-gradient(ellipse at center, rgba(124,92,255,.45), transparent 70%); filter: blur(8px); }
.actor { position: relative; width: 150px; height: 225px; }
.actor [data-person] { width: 100%; height: 100%; }
.actor .bubble { left: 50%; top: -46px; translate: -50% 0; }
.standee { position: relative; width: 200px; display: flex; flex-direction: column; align-items: center; margin: 0 10px; }
.standee-card { background: #fff; border-radius: 18px; padding: 14px; text-align: center; color: #1b1340; font-size: 12px; letter-spacing: .16em; box-shadow: 0 20px 50px rgba(124,92,255,.45); animation: bob 4s ease-in-out infinite; }
.standee-qr { width: 150px; height: 150px; margin-bottom: 8px; }
.standee-qr canvas { width: 100%; height: 100%; display: block; }
.standee-leg { width: 12px; height: 60px; background: linear-gradient(#cfcfe6, #6b6b8f); border-radius: 0 0 6px 6px; }
.standee .floaty { top: 10px; }

@media (max-width: 900px) {
  .hero-person { width: 100px; height: 150px; right: 0; }
  .hero-bubble { bottom: 150px; font-size: 12px; }
  .scene { flex-wrap: wrap; gap: 80px 6px; padding-top: 50px; }
  .standee { order: -1; width: 100%; margin-bottom: 10px; }
  .actor { width: 44%; max-width: 170px; height: 210px; }
  .scene-sub { margin-top: -30px; padding: 0 10px; }
}

.powered-badge { display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; border-radius: 999px; margin-bottom: 10px;
  background: rgba(255,255,255,.05); border: 1px solid var(--card-border); color: var(--text); font-size: 14px; }
.logo-z.sm { width: 26px; height: 26px; border-radius: 8px; font-size: 14px; }
@media (max-width: 480px) { .pill { font-size: 11.5px; } }

/* Review card preview in the creator */
.qr-frame.has-card { background: transparent !important; padding: 0; }
.qr-frame.has-card .qr-corners, .qr-frame.has-card .qr-caption { display: none; }
.qr-frame.has-card .qr-out { aspect-ratio: auto; }
.qr-out canvas.card-preview { width: 100%; max-width: 360px; margin: 0 auto; display: block; border-radius: 18px; box-shadow: 0 18px 50px rgba(0,0,0,.45); }
