/* Página de entrada do Shark: uma dobra, acesso em destaque, telas do produto animadas. Escura em qualquer tema. */
html:has(body.landing) { height: auto; zoom: 1 !important; }
body.landing {
    --l-bg: #08090B; --l-ink: #eceef1; --l-ink2: #a9afb8; --l-ink3: #737b86;
    --l-line: rgba(255, 255, 255, .08); --l-brand: #4C8DFF; --l-ai: #38bdf8;
    --ease: cubic-bezier(.2, .75, .2, 1);
    height: auto; min-height: 100%; background: var(--l-bg); color: var(--l-ink); font-size: 15px; overflow-x: hidden;
}
body.landing ::selection { background: rgba(34, 211, 238, .35); }
.ld h1, .ld h2 { font-family: var(--font-display); letter-spacing: -.03em; margin: 0; }
.ld-mark { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 9px; color: #fff; background: linear-gradient(135deg, #3A78F2, #0E2F7A); box-shadow: 0 6px 18px rgba(139, 92, 246, .35); }
.ld-mark.lg { width: 44px; height: 44px; border-radius: 13px; }

/* Topo */
.ld-top { position: absolute; z-index: 20; inset: 0 0 auto; display: flex; align-items: center; padding: 20px clamp(16px, 4vw, 48px); animation: ld-fade .8s var(--ease) both; }
.ld-brand { display: inline-flex; align-items: center; gap: 10px; color: var(--l-ink); font: 800 18px var(--font-display); letter-spacing: -.02em; text-decoration: none; }

/* Dobra */
.ld-hero { position: relative; min-height: 100vh; min-height: 100svh; display: grid; align-items: center; padding: 96px clamp(16px, 5vw, 64px) 64px; overflow: hidden; isolation: isolate; }
.ld-aurora { position: absolute; inset: -20% -10% -10%; z-index: -2; pointer-events: none; }
.ld-aurora i { position: absolute; border-radius: 50%; filter: blur(80px); opacity: .55; animation: ld-drift 16s ease-in-out infinite alternate; }
.ld-aurora i:nth-child(1) { width: 52vw; height: 52vw; left: -8vw; top: -6vw; background: radial-gradient(circle, #0E2F7A 0, transparent 65%); }
.ld-aurora i:nth-child(2) { width: 44vw; height: 44vw; right: -6vw; top: 8vw; background: radial-gradient(circle, #1d4ed8 0, transparent 65%); animation-delay: -6s; opacity: .45; }
.ld-aurora i:nth-child(3) { width: 38vw; height: 38vw; left: 34vw; bottom: -14vw; background: radial-gradient(circle, #0891b2 0, transparent 65%); animation-delay: -11s; opacity: .35; }
@keyframes ld-drift { to { transform: translate3d(5vw, 4vw, 0) scale(1.12); } }
.ld-grid-bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; background-image: linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px); background-size: 56px 56px; mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 30%, transparent 75%); -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 30%, transparent 75%); animation: ld-grid 24s linear infinite; }
@keyframes ld-grid { to { background-position: 56px 56px; } }
.ld-hero-in { position: relative; z-index: 3; width: 100%; max-width: 1180px; margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 420px); gap: clamp(32px, 6vw, 96px); align-items: center; }

/* Texto */
.ld-eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px 6px 10px; border-radius: 999px; background: rgba(255, 255, 255, .06); border: 1px solid var(--l-line); color: var(--l-ink2); font-size: 12.5px; font-weight: 500; animation: ld-up .8s var(--ease) .1s both; }
.ld-eyebrow i { width: 7px; height: 7px; border-radius: 50%; background: var(--l-brand); animation: ld-ping 2.2s ease-out infinite; }
@keyframes ld-ping { 0% { box-shadow: 0 0 0 0 rgba(34, 211, 238, .55); } 70%, 100% { box-shadow: 0 0 0 9px rgba(34, 211, 238, 0); } }
.ld-copy h1 { margin: 22px 0 18px; font-size: clamp(42px, 6.2vw, 84px); line-height: .98; font-weight: 800; }
.ld-copy h1 .ln { display: block; overflow: hidden; padding-bottom: .06em; }
.ld-copy h1 .ln > * , .ld-copy h1 .ln { animation: ld-rise 1s var(--ease) both; }
.ld-copy h1 .ln:nth-child(1) { animation-delay: .2s; }
.ld-copy h1 .ln:nth-child(2) { animation-delay: .34s; }
.ld-copy h1 em { font-style: normal; background: linear-gradient(100deg, #F0D488, #1F5FE0 25%, #22d3ee 50%, #38bdf8 75%, #F0D488); background-size: 200% auto; -webkit-background-clip: text; background-clip: text; color: transparent; animation: ld-shine 7s linear infinite; }
@keyframes ld-shine { to { background-position: 200% center; } }
.ld-copy > p { max-width: 520px; margin: 0; font-size: clamp(16px, 1.4vw, 19px); line-height: 1.55; color: var(--l-ink2); animation: ld-up .9s var(--ease) .5s both; }
.ld-proof { display: flex; flex-wrap: wrap; gap: 10px 26px; margin: 30px 0 0; padding: 0; list-style: none; color: var(--l-ink3); font-size: 13.5px; }
.ld-proof li { animation: ld-up .8s var(--ease) both; }
.ld-proof li:nth-child(1) { animation-delay: .62s; } .ld-proof li:nth-child(2) { animation-delay: .72s; } .ld-proof li:nth-child(3) { animation-delay: .82s; }
.ld-proof b { color: var(--l-ink); font: 800 20px var(--font-display); margin-right: 6px; }

/* Acesso em destaque: borda de luz girando, brilho respirando atrás */
@property --ld-ang { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
.ld-login-wrap { position: relative; animation: ld-card 1.1s var(--ease) .35s both; }
.ld-glow { position: absolute; inset: -18%; z-index: -1; border-radius: 50%; background: radial-gradient(closest-side, rgba(34, 211, 238, .32), rgba(56, 189, 248, .16) 55%, transparent); filter: blur(30px); animation: ld-breathe 5s ease-in-out infinite; pointer-events: none; }
@keyframes ld-breathe { 50% { opacity: .55; transform: scale(.94); } }
.ld-login { position: relative; display: grid; gap: 14px; padding: 30px; border-radius: 24px; background: linear-gradient(160deg, rgba(28, 30, 36, .82), rgba(11, 12, 15, .9)); backdrop-filter: blur(22px) saturate(1.5); -webkit-backdrop-filter: blur(22px) saturate(1.5); box-shadow: 0 40px 100px rgba(0, 0, 0, .55), inset 0 1px 0 rgba(255, 255, 255, .1); }
.ld-login::before { content: ""; position: absolute; inset: 0; padding: 1.5px; border-radius: inherit; background: conic-gradient(from var(--ld-ang), rgba(255, 255, 255, .08) 0deg, #1F5FE0 60deg, #22d3ee 110deg, #38bdf8 160deg, rgba(255, 255, 255, .08) 220deg, rgba(255, 255, 255, .08) 360deg); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; animation: ld-spin 6s linear infinite; pointer-events: none; }
@keyframes ld-spin { to { --ld-ang: 360deg; } }
.ld-login-head { display: flex; align-items: center; gap: 14px; margin-bottom: 4px; }
.ld-login-head .ld-mark { animation: ld-bob 4s ease-in-out infinite; }
.ld-login h2 { font-size: 22px; font-weight: 800; }
.ld-login-head p { margin: 2px 0 0; color: var(--l-ink2); font-size: 13.5px; }
.ld-login label { display: grid; gap: 6px; font-size: 12.5px; font-weight: 600; color: var(--l-ink2); }
.ld-login input { height: 48px; padding: 0 14px; border-radius: 12px; border: 1px solid rgba(255, 255, 255, .14); background: rgba(8, 9, 11, .6); color: var(--l-ink); font: 400 15px var(--font); outline: 0; transition: border-color .2s, box-shadow .2s, background .2s; }
.ld-login input::placeholder { color: var(--l-ink3); }
.ld-login input:hover { border-color: rgba(255, 255, 255, .24); }
.ld-login input:focus { border-color: var(--l-brand); box-shadow: 0 0 0 4px rgba(34, 211, 238, .18); background: rgba(8, 9, 11, .85); }
.ld-login input:-webkit-autofill { -webkit-text-fill-color: var(--l-ink); -webkit-box-shadow: 0 0 0 40px #141619 inset; caret-color: var(--l-ink); }
.ld-login button[type="submit"] { position: relative; overflow: hidden; height: 50px; margin-top: 4px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 12px; color: #fff; font: 700 15.5px var(--font); cursor: pointer; background: linear-gradient(135deg, #F0D488, #1F5FE0 45%, #0E2F7A); box-shadow: 0 14px 34px rgba(34, 211, 238, .35), inset 0 1px 0 rgba(255, 255, 255, .45); transition: transform .15s, box-shadow .25s, filter .2s; }
.ld-login button[type="submit"]::after { content: ""; position: absolute; top: 0; bottom: 0; left: -40%; width: 30%; background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .55), transparent); transform: skewX(-20deg); animation: ld-sweep 4.5s ease-in-out 1.6s infinite; }
@keyframes ld-sweep { 0%, 60% { left: -40%; } 85%, 100% { left: 130%; } }
.ld-login button[type="submit"] .i { transform: scaleX(-1); transition: translate .2s; }
.ld-login button[type="submit"]:hover { filter: brightness(1.06); box-shadow: 0 18px 40px rgba(34, 211, 238, .45), inset 0 1px 0 rgba(255, 255, 255, .45); }
.ld-login button[type="submit"]:hover .i { translate: 3px 0; }
.ld-login button[type="submit"]:active { transform: scale(.985); }
.ld-login small { color: var(--l-ink3); font-size: 12.5px; text-align: center; }
.ld-err { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-radius: 10px; background: rgba(239, 68, 68, .14); border: 1px solid rgba(239, 68, 68, .35); color: #fecaca; font-size: 13.5px; animation: ld-shake .45s ease both; }
@keyframes ld-shake { 20%, 60% { translate: -5px 0; } 40%, 80% { translate: 5px 0; } }

/* Telas flutuantes */
.ld-float { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.ld-shot { position: absolute; border-radius: 18px; background: rgba(14, 30, 25, .8); border: 1px solid rgba(255, 255, 255, .1); box-shadow: 0 40px 90px rgba(0, 0, 0, .5), inset 0 1px 0 rgba(255, 255, 255, .06); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); color: var(--l-ink); will-change: transform; }
.ld-float .ld-chat { width: 330px; left: 34%; bottom: -24%; opacity: .55; animation: ld-in-up 1.4s var(--ease) .9s both; }
.ld-float .ld-chat .ld-bubbles { animation: ld-bob 9s ease-in-out infinite; }
.ld-float .ld-ai { width: 280px; right: 3%; bottom: 8%; animation: ld-in-right 1.2s var(--ease) 1.1s both, ld-bob 7s ease-in-out 2.3s infinite; }
.ld-float .ld-toast { right: 6%; top: 14%; animation: ld-in-down 1s var(--ease) 1.3s both; }
.ld-float .ld-pill { left: 3%; bottom: 12%; animation: ld-in-up 1s var(--ease) 1.5s both, ld-bob 8s ease-in-out 2.5s infinite; }
@keyframes ld-bob { 50% { translate: 0 -10px; } }
.ld-shot-bar { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-bottom: 1px solid var(--l-line); }
.ld-shot-bar div { flex: 1; display: grid; line-height: 1.2; }
.ld-shot-bar small { color: var(--l-brand); font-size: 11.5px; }
.ld-shot-bar em { font-style: normal; font-size: 11px; padding: 3px 9px; border-radius: 999px; background: rgba(56, 189, 248, .2); color: #c4b5fd; }
.ld-av { flex: none; display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; font-size: 12px; font-weight: 700; background: hsl(var(--h) 45% 26%); color: hsl(var(--h) 80% 86%); transition: background .4s; }
.ld-av.sm { width: 30px; height: 30px; font-size: 10.5px; }
.ld-bubbles { display: grid; gap: 7px; padding: 14px; font-size: 13px; line-height: 1.4; }
.ld-bubbles p { margin: 0; max-width: 82%; padding: 8px 11px; border-radius: 12px; }
.ld-bubbles .in { background: rgba(255, 255, 255, .08); border-top-left-radius: 4px; }
.ld-bubbles .out { justify-self: end; background: #075e4a; border-top-right-radius: 4px; }
.ld-bubbles .sys { justify-self: center; max-width: none; padding: 4px 10px; font-size: 11.5px; color: #c4b5fd; background: rgba(56, 189, 248, .14); border-radius: 8px; }
.ld-bubbles .typing { display: inline-flex; gap: 4px; padding: 11px 12px; justify-self: start; }
.ld-bubbles .typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--l-ink2); animation: ld-dot 1.2s ease-in-out infinite; }
.ld-bubbles .typing i:nth-child(2) { animation-delay: .15s; } .ld-bubbles .typing i:nth-child(3) { animation-delay: .3s; }
@keyframes ld-dot { 0%, 60%, 100% { opacity: .3; translate: 0 0; } 30% { opacity: 1; translate: 0 -3px; } }
.ld-ai { padding: 16px; }
.ld-ai-badge { position: relative; overflow: hidden; display: inline-flex; padding: 4px 10px; border-radius: 999px; font-size: 11.5px; font-weight: 600; color: #ede9fe; background: linear-gradient(120deg, rgba(56, 189, 248, .55), rgba(34, 211, 238, .4)); }
.ld-ai-badge::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, .45), transparent 70%); translate: -100% 0; animation: ld-badge 3.5s ease-in-out 2s infinite; }
@keyframes ld-badge { 0%, 55% { translate: -100% 0; } 85%, 100% { translate: 100% 0; } }
.ld-ai p { margin: 10px 0; font-size: 13.5px; line-height: 1.5; }
.ld-mood { display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; color: var(--l-ink2); }
.ld-mood i { width: 8px; height: 8px; border-radius: 50%; background: #22c55e; animation: ld-ping-g 2s ease-out infinite; }
@keyframes ld-ping-g { 0% { box-shadow: 0 0 0 0 rgba(34, 197, 94, .6); } 70%, 100% { box-shadow: 0 0 0 7px rgba(34, 197, 94, 0); } }
.ld-mood b { color: var(--l-ink); }
.ld-toast { display: flex; align-items: center; gap: 10px; width: 300px; padding: 12px 14px; border-radius: 16px; }
.ld-toast div { flex: 1; display: grid; min-width: 0; line-height: 1.25; }
.ld-toast small { color: var(--l-ink2); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ld-toast time { align-self: flex-start; font-size: 11px; color: var(--l-brand); }
.ld-toast.pop > * { animation: ld-swap .55s var(--ease) both; }
@keyframes ld-swap { from { opacity: 0; translate: 0 10px; } }
.ld-pill { display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 999px; font-size: 12.5px; font-weight: 600; color: #ddd6fe; border-color: rgba(56, 189, 248, .35); }
.ld-pill i { width: 8px; height: 8px; border-radius: 50%; background: #38bdf8; box-shadow: 0 0 10px #38bdf8; }

/* Entradas */
@keyframes ld-fade { from { opacity: 0; } }
@keyframes ld-up { from { opacity: 0; translate: 0 18px; } }
@keyframes ld-rise { from { opacity: 0; translate: 0 70%; } }
@keyframes ld-card { from { opacity: 0; translate: 0 26px; scale: .96; filter: blur(6px); } }
@keyframes ld-in-up { from { opacity: 0; translate: 0 60px; } }
@keyframes ld-in-right { from { opacity: 0; translate: 50px 0; } }
@keyframes ld-in-down { from { opacity: 0; translate: 0 -30px; } }

/* Telas menores */
@media (max-width: 1100px) {
    .ld-float .ld-chat, .ld-float .ld-pill { display: none; }
    .ld-float .ld-ai { right: 2%; bottom: 3%; width: 240px; opacity: .55; }
}
@media (max-width: 900px) {
    .ld-hero { padding-top: 84px; align-items: start; }
    .ld-hero-in { grid-template-columns: 1fr; }
    .ld-login-wrap { max-width: 460px; }
    .ld-float { display: none; }
}
@media (max-width: 560px) {
    .ld-copy h1 { font-size: 44px; }
    .ld-proof { display: none; }
    .ld-login { padding: 24px; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; }
}

/* Escala de 90% no computador (mesma sensação do painel), com a dobra ainda ocupando a tela toda */
@media (min-width: 1024px) and (pointer: fine) {
    html:has(body.landing) { zoom: .9 !important; }
    .ld-hero { min-height: calc(100vh / .9); min-height: calc(100svh / .9); }
}

/* Título que se escreve: linha com altura fixa (nada pula) e cursor piscando */
.ld-copy h1 .ln:nth-child(2) { white-space: nowrap; min-height: 1.04em; }
.ld-caret { display: inline-block; width: .07em; height: .82em; margin-left: .05em; vertical-align: -.04em; border-radius: 2px; background: #F0D488; box-shadow: 0 0 14px rgba(94, 242, 166, .7); animation: ld-blink 1s steps(1) infinite; }
@keyframes ld-blink { 50% { opacity: 0; } }
/* Movimento direto (sem paralaxe): as telas flutuam sozinhas, em ritmos diferentes */
.ld-float .ld-toast { animation: ld-in-down 1s var(--ease) 1.3s both, ld-bob 6s ease-in-out 2.4s infinite; }
.ld-float .ld-chat { animation: ld-in-up 1.4s var(--ease) .9s both, ld-bob 10s ease-in-out 2.4s infinite; }
.ld-float .ld-chat .ld-bubbles { animation: none; }
.ld-aurora i { animation-duration: 12s; }

/* Menos "cara de IA": verde do produto, sem arco-íris, sem violeta, sem borda girando nem reflexo */
.ld-aurora i:nth-child(2) { background: radial-gradient(circle, #132544 0, transparent 65%); opacity: .5; }
.ld-aurora i:nth-child(3) { background: radial-gradient(circle, #075e54 0, transparent 65%); opacity: .4; }
.ld-copy h1 em { background: none; color: #3A78F2; -webkit-text-fill-color: #3A78F2; animation: none; }
.ld-caret { background: #3A78F2; box-shadow: none; }
.ld-login::before { animation: none; background: linear-gradient(180deg, rgba(255, 255, 255, .16), rgba(255, 255, 255, .05)); }
.ld-glow { background: radial-gradient(closest-side, rgba(34, 211, 238, .22), transparent); }
.ld-login button[type="submit"] { background: #3A78F2; box-shadow: 0 10px 28px rgba(34, 211, 238, .28); }
.ld-login button[type="submit"]:hover { filter: none; background: #2be070; box-shadow: 0 14px 34px rgba(34, 211, 238, .36); }
.ld-login button[type="submit"]::after { display: none; }
.ld-shot-bar em { background: rgba(34, 211, 238, .14); color: #86efac; }
.ld-bubbles .sys { color: var(--l-ink2); background: rgba(255, 255, 255, .06); }
.ld-ai-badge { color: #86efac; background: rgba(34, 211, 238, .14); }
.ld-ai-badge::after { display: none; }
.ld-pill { color: var(--l-ink); border-color: rgba(34, 211, 238, .3); }
.ld-pill i { background: #3A78F2; box-shadow: none; animation: ld-ping-g 2s ease-out infinite; }
.ld-mark { box-shadow: none; }
body.landing ::selection { background: rgba(34, 211, 238, .35); }
/* Fundo levemente desfocado para não competir com o título e o acesso */
.ld-float .ld-chat { filter: blur(2.5px); opacity: .45; }
.ld-float .ld-ai { filter: blur(1.6px); opacity: .7; }
.ld-float .ld-toast { filter: blur(1.2px); opacity: .8; }
.ld-float .ld-pill { filter: blur(1.4px); opacity: .75; }
.ld-grid-bg { filter: blur(.6px); opacity: .7; }

.ld-install { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; border: 1px solid currentColor; border-radius: 12px; background: transparent; color: var(--l-ink); font: inherit; cursor: pointer; }

.ld-forgot { color: var(--l-brand); font-weight: 500; font-size: 12.5px; text-decoration: none; }
.ld-forgot:hover { text-decoration: underline; }

/* Acesso: campos só com placeholder, olho na senha, manter conectado + esqueci na mesma linha */
.ld-login .ld-pw { position: relative; }
.ld-login .ld-pw input { width: 100%; padding-right: 50px; }
.ld-eye { position: absolute; right: 6px; top: 50%; translate: 0 -50%; width: 38px; height: 38px; display: grid; place-items: center; border: 0; border-radius: 9px; background: none; color: var(--l-ink3); cursor: pointer; transition: color .15s, background .15s; }
.ld-eye:hover { color: var(--l-ink); background: rgba(255, 255, 255, .06); }
.ld-eye .i:last-child, .ld-eye[aria-pressed="true"] .i:first-child { display: none; }
.ld-eye[aria-pressed="true"] .i:last-child { display: block; }
.ld-opts { display: flex; align-items: center; justify-content: flex-end; gap: 8px 12px; flex-wrap: wrap; margin-top: -2px; }
.ld-login label.ld-check { display: inline-flex; align-items: center; gap: 9px; font-size: 13.5px; font-weight: 500; color: var(--l-ink2); cursor: pointer; user-select: none; }
.ld-login .ld-check input { width: 18px; height: 18px; padding: 0; margin: 0; border-radius: 5px; accent-color: #3A78F2; cursor: pointer; box-shadow: none; }
.ld-forgot { font-size: 13.5px; }
.ld-login .ld-note { margin: 0; color: var(--l-ink2); font-size: 14.5px; line-height: 1.55; }
.ld-login .ld-note b { color: var(--l-ink); font-weight: 600; }
.ld-login .ld-note.sm { font-size: 13px; color: var(--l-ink3); }
.ld-cta { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 50px; border-radius: 12px; color: #fff; background: #3A78F2; font: 700 15.5px var(--font); text-decoration: none; box-shadow: 0 10px 28px rgba(34, 211, 238, .28); }
.ld-cta:hover { background: #2be070; }
.ld-back { justify-self: center; color: var(--l-ink2); font-size: 13.5px; text-decoration: none; }
.ld-back:hover { color: var(--l-ink); text-decoration: underline; }
.ld-auth { justify-items: center; }
.ld-auth .ld-login-wrap { width: min(420px, 100%); }
@media (max-width: 900px) { .ld-auth { align-items: center; } }
