/* ---------- intro loader ---------- */
#intro { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; background: radial-gradient(circle at 50% 45%, #0d1d38, #050b16 70%); transition: opacity .6s ease, visibility .6s; }
#intro.done { opacity: 0; visibility: hidden; }
#intro .wrapi { text-align: center; }
#intro svg { width: 120px; height: 120px; filter: drop-shadow(0 0 30px rgba(214,178,94,.45)); }
#intro .s1 { stroke-dasharray: 220; stroke-dashoffset: 220; animation: draw 1.1s cubic-bezier(.6,0,.2,1) forwards; }
#intro .s2 { stroke-dasharray: 60; stroke-dashoffset: 60; animation: draw .5s .9s ease-out forwards; }
#intro .fill { opacity: 0; animation: fadein .5s .7s forwards; }
#intro .name { font-family: var(--display); font-size: 26px; font-weight: 700; margin-top: 16px; letter-spacing: 6px; opacity: 0; animation: up .6s 1s forwards; }
#intro .name span { color: var(--gold2); }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fadein { to { opacity: 1; } }
@keyframes up { from { opacity: 0; transform: translateY(10px); letter-spacing: 12px; } to { opacity: 1; transform: none; letter-spacing: 6px; } }

/* ---------- background constellation ---------- */
#fxbg { position: fixed; inset: 0; z-index: 0; pointer-events: none; opacity: .75; }
.orb { position: fixed; z-index: 0; border-radius: 50%; filter: blur(80px); pointer-events: none; opacity: .5; animation: float 18s ease-in-out infinite; }
.orb.o1 { width: 420px; height: 420px; background: rgba(214,178,94,.22); top: -120px; left: -120px; }
.orb.o2 { width: 520px; height: 520px; background: rgba(59,130,246,.2); top: 30vh; right: -200px; animation-delay: -6s; }
.orb.o3 { width: 360px; height: 360px; background: rgba(34,211,238,.14); bottom: -120px; left: 30vw; animation-delay: -12s; }
@keyframes float { 0%,100% { transform: translate(0,0) scale(1); } 33% { transform: translate(40px,-30px) scale(1.08); } 66% { transform: translate(-30px,40px) scale(.95); } }

/* ---------- hero headline word reveal ---------- */
.hero h1 .w { display: inline-block; opacity: 0; transform: translateY(40px) rotateX(-60deg); transform-origin: bottom; animation: wordin .9s cubic-bezier(.2,.9,.2,1) forwards; }
@keyframes wordin { to { opacity: 1; transform: none; } }
.scanner { opacity: 0; transform: translateY(30px) scale(.98); animation: scannerin .9s .9s cubic-bezier(.2,.9,.2,1) forwards; }
@keyframes scannerin { to { opacity: 1; transform: none; } }
.scanner::after { content: ''; position: absolute; inset: -40px; z-index: -1; border-radius: 60px; background: conic-gradient(from var(--ang, 0deg), transparent 0 70%, rgba(214,178,94,.35) 80%, rgba(34,211,238,.35) 90%, transparent); filter: blur(40px); animation: spinang 8s linear infinite; opacity: .55; pointer-events: none; }
@property --ang { syntax: '<angle>'; initial-value: 0deg; inherits: false; }
@keyframes spinang { to { --ang: 360deg; } }

/* ---------- ticker ---------- */
.ticker { position: relative; z-index: 1; margin-top: 46px; border-block: 1px solid var(--line); background: rgba(244,63,94,.04); overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.ticker .track { display: flex; gap: 38px; width: max-content; padding: 13px 0; animation: marquee 45s linear infinite; direction: ltr; }
.ticker:hover .track { animation-play-state: paused; }
.ticker span { font-family: ui-monospace, Menlo, monospace; font-size: 13.5px; color: #fecdd3; white-space: nowrap; display: inline-flex; align-items: center; gap: 8px; }
.ticker span b { font-family: var(--font); font-size: 10.5px; letter-spacing: 1px; color: #fff; background: var(--bad); padding: 2px 7px; border-radius: 6px; }
.ticker span i { font-style: normal; color: var(--muted); font-family: var(--font); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- live demo phone ---------- */
.demo { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
@media (max-width: 880px) { .demo { grid-template-columns: 1fr; } }
.phone3d { perspective: 1400px; display: grid; place-items: center; }
.device { width: 300px; height: 600px; border-radius: 46px; padding: 12px; background: linear-gradient(145deg, #2a3446, #0b111c); box-shadow: 0 0 0 2px #3a465c inset, 0 60px 120px -30px rgba(0,0,0,.9), 0 0 80px -20px rgba(214,178,94,.25); transform: rotateY(-14deg) rotateX(6deg); transition: transform .6s; animation: bob 7s ease-in-out infinite; position: relative; }
.phone3d:hover .device { transform: rotateY(0) rotateX(0); }
@keyframes bob { 0%,100% { translate: 0 0; } 50% { translate: 0 -14px; } }
.screen { position: relative; width: 100%; height: 100%; border-radius: 36px; overflow: hidden; background: linear-gradient(180deg, #0c1424, #070d18); }
.notch { position: absolute; top: 10px; left: 50%; transform: translateX(-50%); width: 96px; height: 26px; border-radius: 20px; background: #000; z-index: 5; }
.sbar { display: flex; justify-content: space-between; padding: 14px 26px 0; font-size: 12px; font-weight: 600; color: #cbd5e1; }
.chathead { display: flex; align-items: center; gap: 10px; padding: 26px 16px 12px; border-bottom: 1px solid rgba(255,255,255,.06); }
.chathead .av { width: 34px; height: 34px; border-radius: 50%; background: linear-gradient(135deg, #64748b, #334155); display: grid; place-items: center; font-size: 13px; font-weight: 700; }
.chathead small { display: block; color: var(--muted); font-size: 11px; }
.msgs { padding: 14px 12px; display: grid; gap: 10px; }
.sms { position: relative; background: #1e293b; border-radius: 18px; border-bottom-left-radius: 5px; padding: 11px 13px; font-size: 13px; line-height: 1.5; max-width: 94%; padding-inline-end: 62px; opacity: 0; transform: translateY(14px) scale(.96); transition: opacity .45s, transform .45s, box-shadow .4s, background .4s; overflow: hidden; }
.sms.show { opacity: 1; transform: none; }
.sms .lk { color: #93c5fd; text-decoration: underline; word-break: break-all; }
.sms.scanning::after { content: ''; position: absolute; left: 0; right: 0; height: 40%; top: -40%; background: linear-gradient(180deg, transparent, rgba(214,178,94,.55), transparent); animation: beam 1s ease-in-out; }
@keyframes beam { to { top: 100%; } }
.sms.bad { background: #3b1220; box-shadow: 0 0 0 1.5px var(--bad), 0 0 30px -6px rgba(244,63,94,.7); }
.sms.good { box-shadow: 0 0 0 1.5px var(--ok), 0 0 24px -8px rgba(52,211,153,.6); }
.sms.bad .lk { text-decoration: line-through; color: #fda4af; }
.stamp { position: absolute; inset-inline-end: 8px; top: 8px; font-size: 10px; font-weight: 800; letter-spacing: 1.5px; padding: 3px 7px; border-radius: 6px; transform: scale(2.4) rotate(-12deg); opacity: 0; transition: transform .35s cubic-bezier(.3,1.6,.5,1), opacity .2s; }
.sms.bad .stamp { background: var(--bad); color: #fff; opacity: 1; transform: scale(1) rotate(-6deg); }
.sms.good .stamp { background: var(--ok); color: #052e1c; opacity: 1; transform: scale(1) rotate(-6deg); }
.toastp { position: absolute; left: 10px; right: 10px; bottom: 16px; border-radius: 18px; padding: 12px 14px; background: rgba(15,30,54,.92); backdrop-filter: blur(10px); border: 1px solid rgba(244,63,94,.6); font-size: 12.5px; line-height: 1.45; transform: translateY(140%); transition: transform .5s cubic-bezier(.2,.9,.2,1); display: flex; gap: 10px; align-items: flex-start; }
.toastp.show { transform: none; }
.toastp b { color: #fda4af; display: block; font-size: 13px; }
.toastp svg { flex: none; width: 26px; height: 26px; }
.demo-steps { display: grid; gap: 14px; }
.step { display: grid; grid-template-columns: 44px 1fr; gap: 14px; padding: 16px; border-radius: 18px; border: 1px solid var(--line); background: var(--panel); transition: border-color .3s, transform .3s, background .3s; }
.step.on { border-color: rgba(214,178,94,.6); background: linear-gradient(90deg, rgba(214,178,94,.12), var(--panel)); transform: translateX(6px); }
[dir=rtl] .step.on { transform: translateX(-6px); }
.step .n { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; font-family: var(--display); font-weight: 700; background: rgba(255,255,255,.05); color: var(--gold2); }
.step.on .n { background: linear-gradient(180deg, var(--gold2), var(--gold)); color: #1a1305; }
.step h4 { margin: 2px 0 4px; }
.step p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.55; }

/* ---------- tilt cards ---------- */
.feature { transform-style: preserve-3d; will-change: transform; position: relative; overflow: hidden; }
.feature::after { content: ''; position: absolute; inset: 0; background: radial-gradient(300px circle at var(--mx, 50%) var(--my, 50%), rgba(214,178,94,.16), transparent 50%); opacity: 0; transition: opacity .3s; pointer-events: none; }
.feature:hover::after { opacity: 1; }
.feature .ic { transform: translateZ(30px); }

/* ---------- scroll progress ---------- */
#progress { position: fixed; top: 0; left: 0; height: 2px; z-index: 60; background: linear-gradient(90deg, var(--gold), var(--cyan)); width: 0; }

@media (prefers-reduced-motion: reduce) { #intro { display: none; } .hero h1 .w, .scanner { opacity: 1; transform: none; } .ticker .track, .device, .orb { animation: none; } }
.hero h1 .grad .w { background: inherit; background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; }
html, body { overflow-x: clip; }
